From 23cc316a04e6285d8f4a69dfe96e977eb951e634 Mon Sep 17 00:00:00 2001 From: splincode Date: Sat, 2 Mar 2024 22:01:14 +0300 Subject: [PATCH 1/2] ci: lint --- package.json | 10 ++++++ .../arc-chart/arc-chart.component.ts | 10 +++--- .../components/axes/axes.component.ts | 2 +- .../axes/test/axes.component.spec.ts | 4 +-- .../bar-chart/bar-chart.component.ts | 14 ++++---- .../test/bar-chart.component.spec.ts | 2 +- .../components/bar-set/bar-set.component.ts | 4 +-- .../bar-set/test/bar-set.component.spec.ts | 2 +- .../components/bar/bar.component.ts | 4 +-- .../legend-item/legend-item.component.ts | 2 +- .../line-chart/line-chart-hint.directive.ts | 12 +++---- .../line-chart/line-chart.component.ts | 12 +++---- .../line-chart/line-chart.options.ts | 2 +- .../line-days-chart-hint.directive.ts | 12 +++---- .../line-days-chart.component.ts | 12 +++---- .../pie-chart/pie-chart.component.ts | 10 +++--- .../test/pie-chart.component.spec.ts | 2 +- .../ring-chart/ring-chart.component.ts | 2 +- .../addon-charts/constants/line-handlers.ts | 2 +- .../interfaces/line-chart-hint-context.ts | 2 +- projects/addon-charts/types/line-handler.ts | 2 +- projects/addon-charts/utils/control-point.ts | 2 +- projects/addon-charts/utils/draw-curve.ts | 2 +- projects/addon-charts/utils/draw.ts | 2 +- projects/addon-charts/utils/line-angle.ts | 2 +- projects/addon-charts/utils/line-length.ts | 2 +- .../utils/prepare-external-url.ts | 2 +- .../input-card-grouped.component.ts | 16 +++++----- .../input-card-grouped.options.ts | 6 ++-- .../input-card-grouped.providers.ts | 2 +- .../test/input-card-grouped.component.spec.ts | 8 ++--- .../input-card/abstract-input-card.ts | 12 +++---- .../input-card/input-card.component.ts | 6 ++-- .../input-card/input-card.directive.ts | 4 +-- .../input-card/input-card.options.ts | 8 ++--- .../test/input-card.component.spec.ts | 4 +-- .../input-cvc/input-cvc.component.ts | 14 ++++---- .../test/input-cvc.component.spec.ts | 4 +-- .../input-expire/input-expire.component.ts | 8 ++--- .../test/input-expire.component.spec.ts | 2 +- .../test/thumbnail-card.component.spec.ts | 6 ++-- .../thumbnail-card.component.ts | 4 +-- .../constants/card-holder-mask.ts | 2 +- .../constants/default-card-validator.ts | 2 +- .../pipes/amount/amount.options.ts | 9 ++++-- .../pipes/amount/amount.pipe.ts | 10 +++--- .../pipes/currency/currency.pipe.ts | 4 +-- .../pipes/format-card/format-card.pipe.ts | 2 +- projects/addon-commerce/tokens/i18n.ts | 2 +- .../addon-commerce/types/currency-variants.ts | 2 +- projects/addon-commerce/types/money-sign.ts | 2 +- .../addon-commerce/utils/format-currency.ts | 2 +- .../utils/format-sign-symbol.ts | 2 +- .../utils/get-currency-symbol.ts | 2 +- .../utils/get-payment-system.ts | 2 +- .../utils/payment-system-icons.ts | 2 +- .../validators/card-expire.validator.ts | 2 +- .../validators/card-number.validator.ts | 2 +- .../validators/luhn.validator.ts | 4 +-- .../test/card-expire.validator.spec.ts | 2 +- .../test/card-number.validator.spec.ts | 2 +- projects/addon-doc/addon-doc.module.ts | 2 +- .../components/code/code.component.ts | 2 +- .../code/tests/code.component.spec.ts | 2 +- .../components/code/tests/highlight.spec.ts | 6 ++-- .../components/copy/copy.component.ts | 2 +- .../components/demo/demo.component.ts | 10 +++--- ...umentation-property-connector.directive.ts | 6 ++-- .../documentation/documentation.component.ts | 6 ++-- .../documentation/pipes/cleaner.pipe.ts | 2 +- .../documentation/pipes/color.pipe.ts | 2 +- .../documentation/pipes/inspect.pipe.ts | 2 +- .../documentation/pipes/opacity.pipe.ts | 2 +- .../documentation/pipes/optional.pipe.ts | 2 +- .../primitive-polymorpheus-content.pipe.ts | 2 +- .../pipes/strip-optional.pipe.ts | 2 +- .../pipes/type-reference.pipe.ts | 2 +- .../example/example-get-tabs.pipe.ts | 2 +- .../components/example/example.component.ts | 8 ++--- .../components/example/example.options.ts | 6 ++-- .../source-code/source-code.component.ts | 2 +- .../language-switcher.component.ts | 6 +++- .../tests/language-switcher.component.spec.ts | 2 +- .../components/main/main.component.ts | 2 +- .../navigation/navigation.component.ts | 10 +++--- .../navigation/navigation.providers.ts | 6 ++-- .../components/page/page.component.ts | 2 +- .../components/page/page.providers.ts | 2 +- .../page/tests/page.component.spec.ts | 2 +- projects/addon-doc/interfaces/code-editor.ts | 2 +- projects/addon-doc/interfaces/page.ts | 2 +- .../addon-doc/pipes/markdown/markdown.pipe.ts | 8 ++--- projects/addon-doc/tokens/code-actions.ts | 4 +-- projects/addon-doc/tokens/code-editor.ts | 2 +- projects/addon-doc/tokens/doc-icons.ts | 2 +- .../tokens/example-content-processor.ts | 2 +- .../addon-doc/tokens/excluded-properties.ts | 2 +- projects/addon-doc/tokens/logo.ts | 2 +- projects/addon-doc/tokens/pages.ts | 4 +-- projects/addon-doc/tokens/source-code.ts | 4 +-- .../tokens/type-reference-handler.ts | 4 +-- projects/addon-doc/utils/generate-routes.ts | 4 +-- projects/addon-doc/utils/is-page-group.ts | 2 +- projects/addon-doc/utils/parse-code-block.ts | 2 +- .../addon-doc/utils/provide-route-page-tab.ts | 6 ++-- projects/addon-doc/utils/raw-load.ts | 2 +- projects/addon-doc/utils/sort-pages.ts | 2 +- .../components/app-bar/app-bar.component.ts | 4 +-- .../components/app-bar/app-bar.providers.ts | 2 +- .../mobile-calendar-dialog.component.ts | 10 +++--- .../mobile-calendar.component.ts | 10 +++--- .../mobile-calendar.providers.ts | 6 ++-- .../mobile-calendar.strategy.ts | 9 ++++-- .../mobile-dialog/mobile-dialog.component.ts | 4 +-- .../mobile-dialog/mobile-dialog.options.ts | 2 +- .../mobile-dialog/mobile-dialog.service.ts | 11 ++++--- .../test/mobile-dialog.component.spec.ts | 4 +-- .../loader-android.component.ts | 2 +- .../loader-ios/loader-ios.component.ts | 2 +- .../pull-to-refresh.component.ts | 15 ++++++--- .../pull-to-refresh.providers.ts | 6 ++-- .../sheet-dialog/sheet-dialog.component.ts | 8 ++--- .../sheet-dialog/sheet-dialog.directive.ts | 2 +- .../sheet-dialog/sheet-dialog.options.ts | 4 +-- .../sheet-dialog/sheet-dialog.service.ts | 5 ++- .../sheet-heading/sheet-heading.component.ts | 2 +- .../sheet/components/sheet/sheet.component.ts | 6 ++-- .../sheet/components/sheet/sheet.providers.ts | 4 +-- .../sheets-host/sheets-host.component.ts | 4 +-- .../sheet-close/sheet-close.directive.ts | 2 +- .../sheet-wrapper/sheet-wrapper.directive.ts | 2 +- .../components/sheet/ios.hacks.ts | 4 +-- .../components/sheet/sheet-options.ts | 4 +-- .../components/sheet/sheet-tokens.ts | 4 +-- .../components/sheet/sheet.directive.ts | 4 +-- .../components/sheet/sheet.service.ts | 6 ++-- .../addon-mobile/components/sheet/sheet.ts | 6 ++-- .../tab-bar/tab-bar-item.directive.ts | 2 +- .../components/tab-bar/tab-bar.component.ts | 2 +- .../const/mobile-alert-options.ts | 2 +- .../mobile-tabs/mobile-tabs.directive.ts | 2 +- .../directives/ripple/ripple.providers.ts | 4 +-- .../directives/sidebar/sidebar.component.ts | 8 ++--- .../directives/sidebar/sidebar.directive.ts | 6 ++-- .../touchable/touchable.directive.ts | 2 +- .../interfaces/mobile-alert-data.ts | 2 +- .../preview-dialog.component.ts | 2 +- .../test/preview-pagination.spec.ts | 2 +- .../components/preview/preview.component.ts | 2 +- .../addon-preview/tokens/preview-icons.ts | 2 +- .../components/reorder/reorder.options.ts | 2 +- .../table-pagination.component.ts | 2 +- .../table-pagination.options.ts | 6 ++-- .../test/table-pagination.component.spec.ts | 2 +- .../table/directives/row.directive.ts | 2 +- .../table/directives/sort-by.directive.ts | 4 +-- .../table/directives/sortable.directive.ts | 4 +-- .../table/directives/table.directive.ts | 6 ++-- .../test/direction-order.directive.spec.ts | 2 +- .../components/table/pipes/table-sort.pipe.ts | 4 +-- .../table/providers/stuck.provider.ts | 4 +-- .../table/providers/table.provider.ts | 2 +- .../components/table/table.options.ts | 4 +-- .../components/table/tbody/tbody.component.ts | 4 +-- .../table/th-group/th-group.component.ts | 6 ++-- .../components/table/th/th.component.ts | 2 +- .../components/table/tr/tr.component.ts | 4 +-- .../table-filters/table-filter.directive.ts | 6 ++-- .../directives/table-filters/table-filter.ts | 2 +- .../table-filters/table-filters.directive.ts | 4 +-- .../table-filters/table-filters.pipe.ts | 4 +-- .../addon-table/interfaces/row-context.ts | 2 +- projects/addon-tablebars/classes/table-bar.ts | 8 ++--- .../table-bars-host.component.ts | 6 ++-- .../test/table-bars-host.component.spec.ts | 6 ++-- .../interfaces/table-bar-options.ts | 2 +- .../services/table-bars.service.ts | 4 +-- projects/cdk/abstract/control.ts | 17 ++++++---- projects/cdk/abstract/controller.ts | 2 +- projects/cdk/abstract/portals.ts | 10 +++--- .../tests/abstract-control-no-control.spec.ts | 8 ++--- .../abstract-control-with-control.spec.ts | 8 ++--- .../tests/abstract-tui-controller.spec.ts | 2 +- projects/cdk/abstract/theme-switcher.ts | 2 +- projects/cdk/classes/validation-error.ts | 2 +- projects/cdk/constants/matcher.ts | 2 +- projects/cdk/constants/stringify.ts | 2 +- projects/cdk/constants/test/matcher.spec.ts | 2 +- projects/cdk/date-time/date-format.ts | 2 +- projects/cdk/date-time/day-range.ts | 2 +- projects/cdk/date-time/day.ts | 4 +-- projects/cdk/date-time/month-range.ts | 2 +- projects/cdk/date-time/month.ts | 2 +- projects/cdk/date-time/time.ts | 4 +-- projects/cdk/date-time/year.ts | 2 +- .../active-zone/active-zone.directive.ts | 4 +-- .../tests/active-zone.directive.spec.ts | 2 +- .../auto-focus/autofocus.directive.ts | 2 +- .../auto-focus/autofocus.options.ts | 6 ++-- .../auto-focus/handlers/abstract.handler.ts | 6 ++-- .../auto-focus/handlers/default.handler.ts | 6 ++-- .../auto-focus/handlers/ios.handler.ts | 4 +-- .../test/auto-focus.directive.spec.ts | 4 +-- .../click-outside/click-outside.directive.ts | 2 +- .../directives/control/control.directive.ts | 2 +- .../control/test/control.directive.spec.ts | 2 +- .../copy-processor.directive.ts | 2 +- .../cdk/directives/drag/drag.directive.ts | 2 +- .../test/droppable.directive.spec.ts | 2 +- .../focus-trap/focus-trap.directive.ts | 2 +- .../test/focusable.directive.spec.ts | 4 +-- .../directives/focused/focused.directive.ts | 2 +- .../focused/test/focused.directive.spec.ts | 4 +-- projects/cdk/directives/for/for.directive.ts | 6 ++-- .../directives/for/test/for.directive.spec.ts | 2 +- projects/cdk/directives/let/let-context.ts | 2 +- .../directives/let/test/let.directive.spec.ts | 9 ++++-- .../native-validator.directive.ts | 2 +- .../overscroll/overscroll.directive.ts | 2 +- .../directives/platform/platform.directive.ts | 2 +- .../directives/popover/popover.directive.ts | 4 +-- .../pressed/test/pressed.directive.spec.ts | 4 +-- .../repeat-times/repeat-times.directive.ts | 2 +- .../test/repeat-times.directive.spec.ts | 4 +-- .../directives/resizer/resizer.directive.ts | 2 +- .../test/validator.directive.spec.ts | 2 +- .../validator/validator.directive.ts | 16 +++++++--- .../test/value-changes.directive.spec.ts | 2 +- .../value-changes/value-changes.directive.ts | 4 +-- projects/cdk/interfaces/day-like.ts | 2 +- .../interfaces/focusable-element-accessor.ts | 2 +- projects/cdk/interfaces/month-like.ts | 2 +- projects/cdk/interfaces/safe-html.ts | 2 +- projects/cdk/observables/control-value.ts | 2 +- .../cdk/observables/drag-and-drop-from.ts | 11 ++++++- .../observables/focus-visible-observable.ts | 2 +- projects/cdk/observables/if-map.ts | 4 +-- projects/cdk/observables/is-alive.ts | 2 +- projects/cdk/observables/is-observed.ts | 2 +- .../items-query-list-observable.ts | 4 +-- .../cdk/observables/mouse-drag-finish-from.ts | 4 +-- projects/cdk/observables/must-be-present.ts | 2 +- .../cdk/observables/pressed-observable.ts | 2 +- projects/cdk/observables/prevent-default.ts | 2 +- projects/cdk/observables/scroll-from.ts | 2 +- projects/cdk/observables/stop-propagation.ts | 2 +- .../observables/test/control-value.spec.ts | 2 +- projects/cdk/observables/test/watch.spec.ts | 2 +- projects/cdk/observables/typed-from-event.ts | 4 +-- projects/cdk/observables/watch.ts | 4 +-- projects/cdk/observables/zone-free.ts | 4 +-- projects/cdk/pipes/filter/filter.pipe.ts | 4 +-- .../cdk/pipes/filter/test/filter.pipe.spec.ts | 2 +- .../cdk/pipes/is-present/is-present.pipe.ts | 2 +- projects/cdk/pipes/keys/keys.pipe.ts | 2 +- projects/cdk/pipes/mapper/mapper.pipe.ts | 4 +-- .../cdk/pipes/mapper/test/mapper.pipe.spec.ts | 2 +- projects/cdk/pipes/replace/replace.pipe.ts | 2 +- .../cdk/schematics/constants/file-globs.ts | 2 +- projects/cdk/schematics/ng-add/index.ts | 4 +-- .../cdk/schematics/ng-add/setup-project.ts | 4 +-- .../ng-add/steps/add-taiga-icons.ts | 6 ++-- .../ng-add/steps/add-taiga-modules.ts | 18 +++++------ .../ng-add/steps/add-taiga-styles.ts | 4 +-- .../ng-add/steps/wrap-with-tui-root.ts | 10 +++--- .../tests/schematic-ng-add-standalone.spec.ts | 2 +- .../ng-add/tests/schematic-ng-add.spec.ts | 2 +- .../replacement-attribute-to-directive.ts | 2 +- .../interfaces/replacement-attribute.ts | 2 +- .../interfaces/replacement-service.ts | 2 +- .../ng-update/interfaces/replacement-tag.ts | 2 +- .../ng-update/steps/icons/replace-imports.ts | 4 +-- .../ng-update/steps/remove-module.ts | 4 +-- .../ng-update/steps/rename-types.ts | 8 ++--- .../ng-update/steps/replace-deep-import.ts | 2 +- .../ng-update/steps/replace-enums.ts | 6 ++-- .../ng-update/steps/replace-identifier.ts | 4 +-- .../ng-update/steps/replace-services.ts | 11 +++++-- .../ng-update/steps/show-warnings.ts | 4 +-- .../ng-update/utils/get-file-system.ts | 4 +-- .../utils/templates/remove-inputs.ts | 8 ++--- .../utils/templates/replace-attr-values.ts | 8 ++--- .../templates/replace-attrs-by-directives.ts | 7 ++-- .../utils/templates/replace-attrs.ts | 8 ++--- .../ng-update/utils/templates/replace-tag.ts | 4 +-- .../ng-update/utils/templates/replace-tags.ts | 8 ++--- .../utils/templates/template-comments.ts | 6 ++-- .../ng-update/v3-30/constants/constants.ts | 2 +- .../cdk/schematics/ng-update/v3-30/index.ts | 4 +-- .../tests/schematic-migrate-icons.spec.ts | 2 +- .../ng-update/v3-35/constants/constants.ts | 2 +- .../cdk/schematics/ng-update/v3-35/index.ts | 4 +-- .../tests/schematic-migrate-icons.spec.ts | 2 +- .../cdk/schematics/ng-update/v3-36/index.ts | 4 +-- .../tests/schematic-migrate-editor.spec.ts | 2 +- .../cdk/schematics/ng-update/v3-40/index.ts | 6 ++-- .../tests/schematic-migrate-textarea.spec.ts | 2 +- .../cdk/schematics/ng-update/v3-5/index.ts | 4 +-- .../v3-5/steps/migrate-expand-templates.ts | 8 ++--- .../tests/schematic-migrate-templates.spec.ts | 2 +- .../ng-update/v3/constants/constants.ts | 2 +- .../v3/constants/deprecated-functions.ts | 2 +- .../ng-update/v3/constants/enums.ts | 2 +- .../ng-update/v3/constants/modules.ts | 2 +- .../ng-update/v3/constants/services.ts | 2 +- .../ng-update/v3/constants/templates.ts | 10 +++--- .../ng-update/v3/constants/types.ts | 2 +- .../ng-update/v3/constants/warnings.ts | 2 +- projects/cdk/schematics/ng-update/v3/index.ts | 9 ++++-- .../ng-update/v3/steps/migrate-date-time.ts | 4 +-- .../v3/steps/migrate-polymorpheus.ts | 8 ++--- .../ng-update/v3/steps/migrate-progress.ts | 8 ++--- .../v3/steps/migrate-sliders/index.ts | 4 +-- .../migrate-sliders/migrate-input-range.ts | 6 ++-- .../migrate-sliders/migrate-input-slider.ts | 6 ++-- .../steps/migrate-taiga-proprietary-icons.ts | 6 ++-- .../ng-update/v3/steps/migrate-templates.ts | 8 ++--- .../v3/steps/migrate-textfield-controller.ts | 8 ++--- .../ng-update/v3/steps/miscellaneous.ts | 4 +-- .../ng-update/v3/steps/replace-functions.ts | 2 +- .../v3/tests/schematic-date-time.spec.ts | 2 +- .../v3/tests/schematic-migrate-hints.spec.ts | 2 +- .../schematic-migrate-polymorpheus.spec.ts | 2 +- .../tests/schematic-migrate-progress.spec.ts | 2 +- .../tests/schematic-migrate-sliders.spec.ts | 2 +- .../v3/tests/schematic-migrate-tds.spec.ts | 2 +- .../schematic-migrate-textfields.spec.ts | 2 +- .../v3/tests/schematic-miscellaneous.spec.ts | 2 +- .../v3/tests/schematic-rename-types.spec.ts | 2 +- .../v3/tests/schematic-replace-consts.spec.ts | 2 +- .../schematic-replace-deep-imports.spec.ts | 2 +- ...matic-replace-deprecated-functions.spec.ts | 2 +- .../v3/tests/schematic-replace-enums.spec.ts | 2 +- .../tests/schematic-replace-functions.spec.ts | 2 +- .../v3/tests/schematic-replace-html.spec.ts | 2 +- ...hematic-replace-proprietary-consts.spec.ts | 2 +- .../tests/schematic-replace-services.spec.ts | 2 +- .../v3/tests/schematic-replace-styles.spec.ts | 2 +- .../v3/tests/schematic-textfield-icon.spec.ts | 2 +- .../v3/tests/schematic-warnings.spec.ts | 6 ++-- projects/cdk/schematics/ng-update/v4/index.ts | 9 ++++-- .../constants/attr-to-directive-replace.ts | 2 +- .../v4/steps/constants/attrs-to-replace.ts | 2 +- .../v4/steps/constants/html-comments.ts | 2 +- .../steps/constants/identifiers-to-replace.ts | 2 +- .../v4/steps/constants/inputs-to-remove.ts | 2 +- .../v4/steps/constants/migration-warnings.ts | 2 +- .../v4/steps/constants/modules-to-remove.ts | 2 +- .../v4/steps/constants/tags-to-replace.ts | 2 +- .../ng-update/v4/steps/migrate-legacy-mask.ts | 2 +- .../ng-update/v4/steps/migrate-templates.ts | 6 ++-- .../ng-update/v4/steps/restore-tui-mapper.ts | 2 +- .../ng-update/v4/steps/restore-tui-matcher.ts | 2 +- .../v4/steps/templates/migrate-avatar.ts | 8 ++--- .../v4/steps/templates/migrate-badge.ts | 8 ++--- .../steps/templates/migrate-badged-content.ts | 8 ++--- .../v4/steps/templates/migrate-expandable.ts | 6 ++-- .../v4/steps/templates/migrate-money.ts | 8 ++--- .../templates/migrate-prevent-default.ts | 6 ++-- .../v4/steps/templates/toggles/common.ts | 4 +-- .../templates/toggles/migrate-checkbox.ts | 6 ++-- .../steps/templates/toggles/migrate-radio.ts | 6 ++-- .../steps/templates/toggles/migrate-toggle.ts | 6 ++-- .../ng-update/v4/steps/utils/remove-attrs.ts | 4 +-- .../v4/tests/schematic-migrate-avatar.spec.ts | 2 +- .../v4/tests/schematic-migrate-badge.spec.ts | 2 +- .../schematic-migrate-badged-content.spec.ts | 2 +- .../tests/schematic-migrate-checkbox.spec.ts | 2 +- .../schematic-migrate-expandable.spec.ts | 2 +- .../schematic-migrate-input-count.spec.ts | 2 +- .../schematic-migrate-legacy-mask.spec.ts | 2 +- .../v4/tests/schematic-migrate-money.spec.ts | 2 +- .../schematic-migrate-prevent-default.spec.ts | 2 +- .../v4/tests/schematic-migrate-radio.spec.ts | 2 +- ...hematic-migrate-restore-tui-mapper.spec.ts | 2 +- ...ematic-migrate-restore-tui-matcher.spec.ts | 2 +- .../schematic-migrate-thumbnail-card.spec.ts | 2 +- .../v4/tests/schematic-migrate-toggle.spec.ts | 2 +- .../schematic-textfield-controller.spec.ts | 2 +- .../utils/angular-json-manipulations.ts | 8 ++--- .../utils/angular/is-standalone-component.ts | 2 +- .../schematics/utils/angular/ng-component.ts | 8 ++++- .../cdk/schematics/utils/angular/ng-module.ts | 8 ++--- .../utils/get-component-from-identifier.ts | 2 +- .../utils/get-named-import-references.ts | 2 +- .../utils/get-project-target-options.ts | 2 +- projects/cdk/schematics/utils/get-projects.ts | 4 +-- .../get-standalone-bootstrap-function.ts | 2 +- .../schematics/utils/import-manipulations.ts | 2 +- projects/cdk/schematics/utils/insert-todo.ts | 2 +- .../utils/push-to-array-property.ts | 2 +- .../schematics/utils/templates/elements.ts | 2 +- .../templates/get-component-templates.ts | 16 +++++----- .../cdk/schematics/utils/templates/inputs.ts | 2 +- .../ng-component-input-manipulations.ts | 6 ++-- .../utils/templates/template-resource.ts | 4 +-- projects/cdk/services/destroy.service.ts | 2 +- .../cdk/services/directive-styles.service.ts | 4 +-- projects/cdk/services/popover.service.ts | 14 +++++--- projects/cdk/services/scroll.service.ts | 2 +- .../cdk/services/static-request.service.ts | 2 +- projects/cdk/services/swipe.service.ts | 2 +- .../cdk/services/test/destroy.service.spec.ts | 2 +- projects/cdk/services/zoom.service.ts | 2 +- projects/cdk/tokens/active-element.ts | 2 +- projects/cdk/tokens/default-renderer.ts | 2 +- .../cdk/tokens/focusable-item-accessor.ts | 4 +-- projects/cdk/tokens/fonts-ready.ts | 2 +- projects/cdk/tokens/platform.ts | 2 +- projects/cdk/tokens/swipe-options.ts | 2 +- projects/cdk/tokens/window-size.ts | 2 +- projects/cdk/tokens/zoom-options.ts | 2 +- projects/cdk/types/matcher.ts | 4 +-- projects/cdk/utils/math/round-with.ts | 2 +- .../cdk/utils/miscellaneous/clean-object.ts | 2 +- .../cdk/utils/miscellaneous/create-options.ts | 2 +- .../get-original-array-from-query-list.ts | 2 +- .../miscellaneous/get-swipe-direction.ts | 2 +- .../mark-control-as-touched-and-validate.ts | 2 +- .../cdk/utils/miscellaneous/nullable-same.ts | 2 +- .../utils/miscellaneous/provide-options.ts | 7 +++- projects/cdk/utils/miscellaneous/uniq-by.ts | 2 +- .../svg/svg-linear-gradient-processor.ts | 2 +- .../abstract/abstract-driver.directive.ts | 2 +- .../core/abstract/abstract-textfield-host.ts | 2 +- projects/core/abstract/driver.ts | 2 +- projects/core/abstract/position-accessor.ts | 10 ++++-- projects/core/abstract/rect-accessor.ts | 7 +++- projects/core/abstract/vehicle.ts | 2 +- .../core/components/alert/alert.component.ts | 6 ++-- .../core/components/alert/alert.directive.ts | 2 +- .../core/components/alert/alert.interfaces.ts | 8 ++--- .../core/components/alert/alert.service.ts | 2 +- .../core/components/alert/alert.tokens.ts | 6 ++-- .../core/components/alert/alerts.component.ts | 4 +-- .../components/button/button.component.ts | 10 +++--- .../core/components/button/button.options.ts | 4 +-- .../button/test/button.component.spec.ts | 4 +-- .../components/calendar/calendar.component.ts | 12 +++---- .../calendar/test/calendar.component.spec.ts | 4 +-- .../data-list/data-list.component.ts | 10 +++--- .../data-list/data-list.directive.ts | 2 +- .../data-list/option/option.component.ts | 8 ++--- .../components/dialog/dialog.component.ts | 10 +++--- .../components/dialog/dialog.directive.ts | 2 +- .../components/dialog/dialog.interfaces.ts | 6 ++-- .../core/components/dialog/dialog.service.ts | 2 +- .../core/components/dialog/dialog.tokens.ts | 8 ++--- .../components/dialog/dialogs.component.ts | 4 +-- .../dialog/test/dialog.component.spec.ts | 4 +-- .../core/components/error/error.component.ts | 4 +-- .../components/expand/expand.component.ts | 6 ++-- .../expand/test/expand.component.spec.ts | 8 +++-- .../core/components/group/group.directive.ts | 2 +- .../core/components/group/group.options.ts | 4 +-- .../hints-host/hints-host.component.ts | 4 +-- .../accessor-proxy.directive.ts | 2 +- .../hosted-dropdown.component.ts | 10 +++--- .../test/hosted-dropdown.component.spec.ts | 4 +-- .../core/components/label/label.component.ts | 8 ++--- .../core/components/link/link.component.ts | 6 ++-- .../components/loader/loader.component.ts | 2 +- .../core/components/loader/loader.options.ts | 4 +-- .../loader/test/loader-options.spec.ts | 2 +- .../loader/test/loader.component.spec.ts | 6 ++-- .../notification/notification.options.ts | 8 ++--- .../test/notification.component.spec.ts | 6 ++-- .../primitive-calendar.component.ts | 6 ++-- .../test/primitive-calendar.component.spec.ts | 6 ++-- .../primitive-checkbox/checkbox.options.ts | 8 ++--- .../primitive-checkbox.component.ts | 6 ++-- .../primitive-spin-button.component.spec.ts | 2 +- .../primitive-textfield-options.ts | 2 +- .../primitive-textfield-types.ts | 5 ++- .../primitive-textfield.component.ts | 15 +++++---- .../primitive-textfield.component.spec.ts | 4 +-- .../test/textfield.component.spec.ts | 2 +- .../textfield/textfield.component.ts | 2 +- .../value-decoration.component.ts | 4 +-- .../primitive-year-picker.component.ts | 8 ++--- .../primitive-year-picker.component.spec.ts | 2 +- .../core/components/root/root.component.ts | 2 +- .../root/test/root.component.spec.ts | 2 +- .../scrollbar/scrollable.directive.ts | 2 +- projects/core/components/svg/svg-options.ts | 10 +++--- projects/core/components/svg/svg.component.ts | 20 ++++++++---- .../svg/test/svg-options.component.spec.ts | 6 ++-- .../components/svg/test/svg.component.spec.ts | 4 +-- .../components/tooltip/tooltip.component.ts | 2 +- projects/core/constants/default-icons-path.ts | 2 +- .../core/constants/default-marker-handler.ts | 2 +- .../core/constants/default-number-format.ts | 2 +- projects/core/constants/hint-directions.ts | 2 +- .../appearance/appearance.directive.ts | 2 +- .../appearance/appearance.options.ts | 2 +- .../dropdown/dropdown-hover.options.ts | 2 +- .../dropdown/dropdown-manual.directive.ts | 2 +- .../dropdown/dropdown-open.directive.ts | 2 +- .../dropdown/dropdown-options.directive.ts | 8 ++--- .../dropdown/dropdown-portal.directive.ts | 4 +-- .../dropdown-position-sided.directive.ts | 2 +- .../dropdown/dropdown-position.directive.ts | 2 +- .../dropdown/dropdown-selection.directive.ts | 6 ++-- .../directives/dropdown/dropdown.component.ts | 6 ++-- .../directives/dropdown/dropdown.directive.ts | 20 ++++++------ .../directives/dropdown/dropdown.driver.ts | 2 +- .../directives/dropdown/dropdown.providers.ts | 2 +- .../dropdown/test/dropdown.directive.spec.ts | 4 +-- .../hint/hint-describe.directive.ts | 9 +++++- .../directives/hint/hint-hover.directive.ts | 2 +- .../directives/hint/hint-manual.directive.ts | 2 +- .../directives/hint/hint-options.directive.ts | 6 ++-- .../directives/hint/hint-pointer.directive.ts | 6 +++- .../hint/hint-position.directive.ts | 4 +-- .../hint/hint-unstyled.component.ts | 4 +-- .../core/directives/hint/hint.component.ts | 6 ++-- .../core/directives/hint/hint.directive.ts | 12 +++---- .../core/directives/hint/hint.providers.ts | 2 +- .../hint/test/hint.directive.spec.ts | 4 +-- .../core/directives/icons/icons.directive.ts | 2 +- .../mask-accessor/mask-accessor.directive.ts | 2 +- .../core/directives/mode/mode.directive.ts | 2 +- .../number-format/number-format.directive.ts | 2 +- .../textfield-controller.provider.ts | 32 +++++++++++-------- .../textfield-custom-content.directive.ts | 2 +- .../textfield-icon-left.directive.ts | 6 ++-- .../textfield-icon.directive.ts | 6 ++-- .../textfield-size.directive.ts | 2 +- .../textfield.controller.ts | 30 ++++++++--------- .../textfield-controller/textfield.options.ts | 8 ++--- .../directives/wrapper/wrapper.directive.ts | 4 +-- projects/core/interfaces/data-list-host.ts | 2 +- .../core/interfaces/number-format-settings.ts | 4 +-- projects/core/interfaces/portal-item.ts | 7 ++-- .../core/interfaces/value-content-context.ts | 2 +- ...imitive-year-month-pagination.component.ts | 6 ++-- ...ve-year-month-pagination.component.spec.ts | 6 ++-- .../svg-defs-host/svg-defs-host.component.ts | 4 +-- projects/core/observables/smart-search.ts | 4 +-- .../observables/test/smart-search.spec.ts | 2 +- projects/core/observables/zoneful-map.ts | 4 +-- .../calendar-sheet/calendar-sheet.pipe.ts | 4 +-- projects/core/pipes/calendar-sheet/utils.ts | 4 +-- projects/core/pipes/flag/flag.pipe.ts | 2 +- .../pipes/format-date/format-date.pipe.ts | 4 +-- .../pipes/format-number/format-number.pipe.ts | 6 ++-- .../pipes/format-phone/format-phone.pipe.ts | 2 +- projects/core/pipes/month/month.pipe.ts | 6 ++-- .../order-week-days/order-week-days.pipe.ts | 4 +-- .../is-mobile-resolution.provider.ts | 4 +-- projects/core/providers/mode.provider.ts | 6 ++-- .../watched-controller-provider-factory.ts | 6 ++-- projects/core/services/breakpoint.service.ts | 2 +- projects/core/services/format-date.service.ts | 2 +- projects/core/services/hint.service.ts | 2 +- projects/core/services/position.service.ts | 2 +- projects/core/services/svg.service.ts | 2 +- .../core/services/visual-viewport.service.ts | 2 +- projects/core/tokens/common-icon.ts | 2 +- projects/core/tokens/data-list-accessor.ts | 4 +-- projects/core/tokens/data-list-host.ts | 4 +-- projects/core/tokens/day-type-handler.ts | 2 +- projects/core/tokens/element-ref.ts | 2 +- projects/core/tokens/icon-place.ts | 2 +- projects/core/tokens/icon-resolver.ts | 4 +-- projects/core/tokens/media.ts | 2 +- projects/core/tokens/mode.ts | 4 +-- projects/core/tokens/number-format.ts | 6 ++-- projects/core/tokens/option-content.ts | 6 ++-- projects/core/tokens/sanitizer.ts | 2 +- projects/core/tokens/selection-stream.ts | 2 +- projects/core/tokens/spin-icons.ts | 2 +- projects/core/tokens/svg-content-processor.ts | 4 +-- projects/core/tokens/svg-src-processor.ts | 2 +- projects/core/tokens/textfield-host.ts | 4 +-- projects/core/tokens/value-accessor.ts | 2 +- projects/core/tokens/viewport.ts | 4 +-- projects/core/types/marker-handler.ts | 2 +- .../core/utils/dom/tests/get-viewport.spec.ts | 2 +- projects/core/utils/format/format-number.ts | 2 +- .../core/utils/format/other-decimal-symbol.ts | 2 +- .../core/utils/miscellaneous/get-border.ts | 2 +- .../utils/miscellaneous/icons-path-factory.ts | 2 +- .../core/utils/miscellaneous/size-bigger.ts | 2 +- .../miscellaneous/to-animation-options.ts | 2 +- projects/core/utils/mobile/is-mobile.ts | 2 +- projects/demo-cypress/src/tests/range.cy.ts | 4 +-- projects/demo-cypress/src/tests/swipe.cy.ts | 2 +- projects/demo-cypress/src/tests/zoom.cy.ts | 2 +- projects/demo-playwright/playwright.config.ts | 2 +- .../addon-commerce/input-card-grouped.spec.ts | 2 +- .../tests/addon-commerce/input-expire.spec.ts | 2 +- .../tests/core/hint/hint.spec.ts | 2 +- .../tests/demo/get-demo-paths.ts | 2 +- .../input-date-range/input-date-range.spec.ts | 2 +- .../input-date-time/input-date-time.spec.ts | 2 +- .../tests/kit/input-date/input-date.spec.ts | 2 +- .../tests/kit/input-files/input-files.spec.ts | 2 +- .../input-month-range.spec.ts | 2 +- .../tests/kit/input-month/input-month.spec.ts | 2 +- .../kit/input-number/input-number.spec.ts | 2 +- .../tests/kit/input-phone/input-phone.spec.ts | 2 +- .../tests/kit/input-range/input-range.spec.ts | 2 +- .../tests/kit/input-time/input-time.spec.ts | 2 +- .../tests/kit/input-year/input-year.spec.ts | 2 +- .../kit/multi-select/multi-select.spec.ts | 2 +- .../kit/notification/notification.spec.ts | 2 +- .../tests/kit/range/range.spec.ts | 2 +- .../tests/kit/slider/slider.spec.ts | 2 +- projects/demo-playwright/utils/goto.ts | 2 +- .../demo-playwright/utils/hide-element.ts | 2 +- projects/demo-playwright/utils/mock-date.ts | 2 +- projects/demo-playwright/utils/mock-images.ts | 2 +- .../utils/page-objects/calendar.po.ts | 2 +- .../page-objects/documentation-api-page.po.ts | 2 +- .../page-objects/documentation-page.po.ts | 2 +- .../page-objects/input-card-grouped.po.ts | 2 +- .../utils/page-objects/input-card.po.ts | 2 +- .../utils/page-objects/input-date-range.po.ts | 2 +- .../utils/page-objects/input-date-time.po.ts | 2 +- .../page-objects/input-month-range.po.ts | 2 +- .../utils/page-objects/input-month.po.ts | 2 +- .../utils/page-objects/input-phone.po.ts | 2 +- .../utils/page-objects/input-range.po.ts | 2 +- .../utils/page-objects/input-slider.po.ts | 2 +- .../utils/page-objects/range.po.ts | 2 +- .../utils/page-objects/slider.po.ts | 2 +- .../page-objects/table-pagination-page.po.ts | 2 +- .../textfield-with-data-list.po.ts | 2 +- .../demo-playwright/utils/wait-for-fonts.ts | 2 +- .../utils/wait-stable-state.ts | 2 +- projects/demo/server.ts | 2 +- .../animations/animations.component.ts | 2 +- .../animations/examples/dropdown/index.ts | 2 +- .../animations/examples/fade-in/index.ts | 2 +- .../examples/height-collapse/index.ts | 2 +- .../animations/examples/scale-in/index.ts | 2 +- .../animations/examples/slide-in/index.ts | 2 +- .../examples/width-collapse/index.ts | 2 +- projects/demo/src/modules/app/abstract.app.ts | 4 +-- .../demo/src/modules/app/app.component.ts | 2 +- .../demo/src/modules/app/app.providers.ts | 8 ++--- projects/demo/src/modules/app/app.routes.ts | 2 +- .../customization/customization.component.ts | 8 ++--- .../customization/customization.providers.ts | 2 +- .../modules/app/landing/landing.component.ts | 4 +-- .../modules/app/metrika/metrika.service.ts | 2 +- projects/demo/src/modules/app/pages.ts | 2 +- .../app/stackblitz/stackblitz.service.ts | 4 +-- .../starter/stackblitz-starter.component.ts | 2 +- .../app/utils/ready-to-scroll-factory.ts | 4 +-- .../version-manager.component.ts | 2 +- .../version-manager.providers.ts | 4 +-- .../charts/arc-chart/arc-chart.component.ts | 4 +-- .../src/modules/charts/axes/axes.component.ts | 6 ++-- .../modules/charts/axes/examples/1/index.ts | 2 +- .../charts/bar-chart/bar-chart.component.ts | 4 +-- .../charts/bar-chart/examples/2/index.ts | 2 +- .../charts/bar-set/bar-set.component.ts | 4 +-- .../src/modules/charts/bar/bar.component.ts | 4 +-- .../legend-item/legend-item.component.ts | 4 +-- .../charts/line-chart/examples/1/index.ts | 4 +-- .../charts/line-chart/examples/2/index.ts | 2 +- .../charts/line-chart/examples/3/index.ts | 2 +- .../charts/line-chart/examples/4/index.ts | 4 +-- .../charts/line-chart/examples/5/index.ts | 4 +-- .../charts/line-chart/line-chart.component.ts | 6 ++-- .../line-days-chart/examples/1/index.ts | 6 ++-- .../line-days-chart/examples/2/index.ts | 8 ++--- .../charts/line-days-chart/examples/2/pipe.ts | 6 ++-- .../line-days-chart.component.ts | 8 ++--- .../charts/pie-chart/pie-chart.component.ts | 8 ++--- .../charts/ring-chart/ring-chart.component.ts | 4 +-- .../modules/components/abstract/control.ts | 18 +++++------ .../dropdown-documentation.component.ts | 2 +- .../modules/components/abstract/dropdown.ts | 6 ++-- ...hint-controller-documentation.component.ts | 2 +- .../abstract-props-accessor.ts | 2 +- .../inherited-documentation.component.ts | 2 +- .../supporting-documentation-component.ts | 6 ++-- ...ield-controller-documentation.component.ts | 2 +- .../accordion/accordion.component.ts | 6 ++-- .../components/action/action.component.ts | 2 +- .../components/alert/alert.component.ts | 10 +++--- .../components/alert/examples/2/index.ts | 4 +-- .../alert-example/alert-example.component.ts | 4 +-- .../alert-example-with-data.component.ts | 4 +-- ...ert-example-with-custom-label.component.ts | 4 +-- .../components/app-bar/app-bar.component.ts | 2 +- .../components/avatar/avatar.component.ts | 10 ++++-- .../components/avatar/examples/4/index.ts | 2 +- .../components/badge/badge.component.ts | 4 +-- .../badged-content.component.ts | 2 +- .../block-status/block-status.component.ts | 2 +- .../block-status/examples/2/index.ts | 4 +-- .../block-status/examples/3/index.ts | 4 +-- .../breadcrumbs/breadcrumbs.component.ts | 4 +-- .../components/button/button.component.ts | 8 ++--- .../calendar-month.component.ts | 4 +-- .../calendar-month/examples/1/index.ts | 2 +- .../calendar-range.component.ts | 10 +++--- .../components/calendar/calendar.component.ts | 6 ++-- .../components/calendar/examples/1/index.ts | 2 +- .../components/calendar/examples/2/index.ts | 2 +- .../components/calendar/examples/3/index.ts | 4 +-- .../components/calendar/examples/5/index.ts | 2 +- .../components/calendar/examples/6/index.ts | 2 +- .../components/calendar/examples/7/index.ts | 2 +- .../components/carousel/carousel.component.ts | 2 +- .../components/checkbox/checkbox.component.ts | 4 +-- .../combo-box/combo-box.component.ts | 12 +++---- .../components/combo-box/examples/1/index.ts | 2 +- .../combo-box/examples/2/request.service.ts | 4 +-- .../components/combo-box/examples/6/index.ts | 2 +- .../data-list-wrapper/examples/1/index.ts | 2 +- .../components/data-list/examples/2/index.ts | 2 +- .../4/custom-list/custom-list.component.ts | 2 +- .../components/data-list/examples/4/index.ts | 6 +++- .../components/dialog/dialog.component.ts | 8 ++--- .../dialog-example.component.ts | 4 +-- .../components/dialog/examples/3/index.ts | 4 +-- .../components/dialog/examples/4/index.ts | 4 +-- .../components/dialog/examples/5/index.ts | 8 +++-- .../search-dialog-example.component.ts | 2 +- .../components/dialog/examples/8/index.ts | 2 +- .../dialog/examples/9/helpers/mock-cards.ts | 2 +- .../dialog/examples/9/helpers/pay.service.ts | 4 +-- .../dialog/examples/9/helpers/validator.ts | 6 +++- .../9/pay-modal/pay-modal.component.ts | 16 +++++----- .../elastic-container.component.ts | 2 +- .../components/error/error.component.ts | 4 +-- .../components/expand/expand.component.ts | 2 +- .../components/filter/examples/1/index.ts | 2 +- .../components/filter/examples/2/index.ts | 2 +- .../components/filter/examples/4/index.ts | 2 +- .../components/filter/filter.component.ts | 10 ++++-- .../components/group/group.component.ts | 4 +-- .../hosted-dropdown/examples/5/accessor.ts | 2 +- .../hosted-dropdown.component.ts | 2 +- .../input-card-grouped/examples/1/index.ts | 2 +- .../input-card-grouped/examples/2/index.ts | 2 +- .../input-card-grouped/examples/3/index.ts | 2 +- .../input-card-grouped/examples/4/index.ts | 2 +- .../input-card-grouped/examples/5/index.ts | 2 +- .../input-card-grouped.component.ts | 6 ++-- .../input-card/input-card.component.ts | 6 ++-- .../input-copy/input-copy.component.ts | 4 +-- .../input-date-multi.component.ts | 6 ++-- .../input-date-range.component.ts | 12 +++---- .../input-date-time.component.ts | 6 ++-- .../input-date/input-date.component.ts | 6 ++-- .../input-files/examples/1/index.ts | 4 +-- .../input-files/examples/2/index.ts | 2 +- .../input-files/examples/3/index.ts | 2 +- .../input-files/examples/4/index.ts | 2 +- .../input-files/examples/5/index.ts | 2 +- .../input-files/examples/6/index.ts | 2 +- .../input-files/input-files.component.ts | 4 +-- .../input-inline/examples/3/component.ts | 2 +- .../input-inline/input-inline.component.ts | 2 +- .../input-month-range/examples/1/index.ts | 2 +- .../input-month-range/examples/2/index.ts | 2 +- .../input-month-range/examples/3/index.ts | 4 +-- .../input-month-range.component.ts | 6 ++-- .../input-month/examples/1/index.ts | 2 +- .../input-month/examples/2/index.ts | 2 +- .../input-month/input-month.component.ts | 4 +-- .../input-number/examples/7/index.ts | 4 +-- .../input-number/input-number.component.ts | 4 +-- .../input-password.component.ts | 2 +- .../input-phone-international.component.ts | 2 +- .../input-phone/examples/3/index.ts | 2 +- .../input-phone/input-phone.component.ts | 2 +- .../input-range/examples/5/index.ts | 2 +- .../input-range/input-range.component.ts | 8 ++--- .../input-slider/examples/3/index.ts | 2 +- .../input-slider/examples/5/index.ts | 2 +- .../input-slider/input-slider.component.ts | 8 ++--- .../components/input-tag/examples/2/index.ts | 2 +- .../components/input-tag/examples/4/index.ts | 4 +-- .../components/input-tag/examples/9/index.ts | 4 +-- .../input-tag/input-tag.component.ts | 8 ++--- .../components/input-time/examples/2/index.ts | 2 +- .../components/input-time/examples/3/index.ts | 2 +- .../components/input-time/examples/4/index.ts | 2 +- .../components/input-time/examples/5/index.ts | 2 +- .../input-time/input-time.component.ts | 8 ++--- .../input-year/input-year.component.ts | 4 +-- .../components/input/examples/3/index.ts | 2 +- .../components/input/examples/4/index.ts | 2 +- .../components/input/examples/8/index.ts | 2 +- .../components/input/input.component.ts | 6 ++-- .../components/island/island.component.ts | 4 +-- .../items-with-more.component.ts | 2 +- .../components/label/label.component.ts | 6 ++-- .../line-clamp/line-clamp.component.ts | 2 +- .../modules/components/link/link.component.ts | 4 +-- .../components/loader/loader.component.ts | 6 ++-- .../mobile-calendar/examples/1/index.ts | 2 +- .../mobile-calendar/examples/4/index.ts | 4 +-- .../mobile-calendar/examples/5/index.ts | 2 +- .../mobile-calendar.component.ts | 8 ++--- .../mobile-dialog/mobile-dialog.component.ts | 2 +- .../mobile-themes/mobile-themes.component.ts | 2 +- .../multi-select/examples/1/index.ts | 2 +- .../multi-select/examples/10/index.ts | 2 +- .../multi-select/examples/11/index.ts | 4 +-- .../multi-select/examples/2/index.ts | 2 +- .../multi-select/examples/3/index.ts | 6 +++- .../multi-select/examples/4/index.ts | 17 ++++++++-- .../multi-select/examples/8/index.ts | 2 +- .../multi-select/examples/9/index.ts | 9 ++++-- .../multi-select/multi-select.component.ts | 14 ++++---- .../notification/notification.component.ts | 4 +-- .../pagination/pagination.component.ts | 4 +-- .../components/pdf-viewer/examples/1/index.ts | 4 +-- .../examples/2/actions-content.component.ts | 4 +-- .../components/pdf-viewer/examples/2/index.ts | 4 +-- .../pdf-viewer/pdf-viewer.component.ts | 2 +- .../components/preview/examples/1/index.ts | 8 ++--- .../components/preview/examples/2/index.ts | 4 +-- .../components/preview/examples/3/index.ts | 6 ++-- .../components/preview/preview.component.ts | 2 +- .../primitive-textfield/examples/1/index.ts | 2 +- .../primitive-textfield/examples/2/index.ts | 2 +- .../primitive-textfield.component.ts | 8 ++--- .../progress-bar/progress-bar.component.ts | 4 +-- .../progress-circle.component.ts | 4 +-- .../progress-segmented.component.ts | 4 +-- .../components/prompt/examples/1/index.ts | 2 +- .../components/prompt/prompt.component.ts | 4 +-- .../pull-to-refresh.component.ts | 2 +- .../modules/components/push/push.component.ts | 2 +- .../radio-list/radio-list.component.ts | 6 ++-- .../components/radio/radio.component.ts | 6 ++-- .../components/range/examples/4/index.ts | 2 +- .../components/range/range.component.ts | 6 ++-- .../components/rating/rating.component.ts | 2 +- .../scrollbar/scrollbar.component.ts | 2 +- .../components/select/examples/11/index.ts | 2 +- .../components/select/examples/4/index.ts | 2 +- .../components/select/examples/5/index.ts | 2 +- .../components/select/examples/6/index.ts | 2 +- .../components/select/examples/7/index.ts | 4 +-- .../9/account/my-account.component.ts | 4 +-- .../components/select/examples/9/index.ts | 2 +- .../components/select/select.component.ts | 12 ++++--- .../sheet-dialog/examples/2/index.ts | 2 +- .../sheet-dialog/examples/4/index.ts | 2 +- .../sheet-dialog/sheet-dialog.component.ts | 2 +- .../components/sheet/examples/2/index.ts | 2 +- .../components/sheet/examples/3/index.ts | 2 +- .../components/sheet/examples/4/index.ts | 2 +- .../components/sheet/examples/5/index.ts | 2 +- .../components/sheet/examples/6/index.ts | 2 +- .../components/sheet/sheet.component.ts | 8 ++--- .../components/slider/examples/5/index.ts | 2 +- .../components/slider/slider.component.ts | 4 +-- .../components/stepper/stepper.component.ts | 6 ++-- .../swipe-action/swipe-actions.component.ts | 2 +- .../components/tab-bar/tab-bar.component.ts | 2 +- .../modules/components/tabs/tabs.component.ts | 2 +- .../modules/components/tag/tag.component.ts | 10 +++--- .../components/textarea/examples/4/index.ts | 2 +- .../components/textarea/textarea.component.ts | 4 +-- .../theme-switcher.component.ts | 2 +- .../thumbnail-card/examples/3/index.ts | 2 +- .../thumbnail-card.component.ts | 6 ++-- .../components/tiles/tiles.component.ts | 2 +- .../components/toggle/toggle.component.ts | 4 +-- .../components/tooltip/tooltip.component.ts | 2 +- .../components/tree/examples/3/index.ts | 2 +- .../components/tree/examples/4/index.ts | 2 +- .../components/tree/examples/5/index.ts | 2 +- .../components/tree/examples/6/index.ts | 2 +- .../components/tree/examples/7/index.ts | 2 +- .../components/tree/examples/7/service.ts | 4 +-- .../dialogs/dialogs.component.ts | 2 +- .../customization/dialogs/examples/1/index.ts | 2 +- .../examples/1/prompt/prompt.component.ts | 4 +-- .../examples/1/prompt/prompt.service.ts | 2 +- .../customization/i18n/i18n.component.ts | 2 +- .../customization/portals/examples/1/index.ts | 2 +- .../portals/portals.component.ts | 2 +- .../eager/routable-dialog.component.ts | 2 +- .../lazy/lazy-routable-dialog.component.ts | 2 +- .../variables/variables.component.ts | 2 +- .../viewport/examples/2/portal-host.ts | 2 +- .../viewport/viewport.component.ts | 2 +- .../wrapper/wrapper.component.ts | 2 +- .../active-zone/active-zone.component.ts | 2 +- .../active-zone/examples/1/index.ts | 2 +- .../appearance/appearance.component.ts | 4 +-- .../auto-focus/auto-focus.component.ts | 2 +- .../copy-processor.component.ts | 2 +- .../copy-processor/examples/1/index.ts | 2 +- .../dropdown-context.component.ts | 2 +- .../dropdown-hover.component.ts | 2 +- .../dropdown-open/dropdown-open.component.ts | 2 +- .../dropdown-open/examples/5/accessor.ts | 2 +- .../dropdown-selection.component.ts | 4 +-- .../dropdown-selection/examples/2/index.ts | 12 +++++-- .../directives/dropdown/dropdown.component.ts | 2 +- .../elastic-sticky.component.ts | 2 +- .../elastic-sticky/examples/1/index.ts | 4 +-- .../directives/element/element.component.ts | 2 +- .../modules/directives/fade/fade.component.ts | 2 +- .../modules/directives/for/for.component.ts | 2 +- .../highlight/highlight.component.ts | 2 +- .../hint-describe/hint-describe.component.ts | 2 +- .../hint-manual/hint-manual.component.ts | 2 +- .../hint-pointer/hint-pointer.component.ts | 2 +- .../modules/directives/hint/hint.component.ts | 2 +- .../hovered-change.component.ts | 2 +- .../lazy-loading/lazy-loading.component.ts | 2 +- .../modules/directives/let/let.component.ts | 2 +- .../directives/media/media.component.ts | 2 +- .../modules/directives/mode/mode.component.ts | 2 +- .../overscroll/overscroll.component.ts | 2 +- .../modules/directives/pan/pan.component.ts | 2 +- .../directives/present/present.component.ts | 2 +- .../directives/resizer/resizer.component.ts | 2 +- .../directives/ripple/ripple.component.ts | 2 +- .../directives/sidebar/sidebar.component.ts | 2 +- .../directives/swipe/examples/1/index.ts | 2 +- .../directives/swipe/examples/2/index.ts | 2 +- .../directives/swipe/swipe.component.ts | 2 +- .../textfield-controller.component.ts | 6 ++-- .../touchable/touchable.component.ts | 2 +- .../validator/validator.component.ts | 2 +- .../value-changes/value-changes.component.ts | 2 +- .../directives/zoom/examples/1/index.ts | 2 +- .../modules/directives/zoom/zoom.component.ts | 2 +- .../badge-notification.component.ts | 4 +-- .../button-close/button-close.component.ts | 2 +- .../button-group/button-group.component.ts | 2 +- .../button-vertical.component.ts | 2 +- .../experimental/button/button.component.ts | 4 +-- .../card-large/card-large.component.ts | 2 +- .../card-medium/card-medium.component.ts | 2 +- .../experimental/cell/cell.component.ts | 4 +-- .../checkbox/checkbox.component.ts | 2 +- .../experimental/checkbox/examples/1/index.ts | 6 ++-- .../experimental/chip/chip.component.ts | 2 +- .../experimental/compass/compass.component.ts | 2 +- .../experimental/header/header.component.ts | 4 +-- .../experimental/icon/icon.component.ts | 2 +- .../navigation/navigation.component.ts | 2 +- .../modules/experimental/pin/pin.component.ts | 2 +- .../progress-segmented.component.ts | 4 +-- .../experimental/radio/examples/1/index.ts | 6 ++-- .../experimental/rating/examples/2/index.ts | 4 +-- .../experimental/rating/rating.component.ts | 2 +- .../segmented/examples/4/index.ts | 2 +- .../segmented/segmented.component.ts | 2 +- .../sensitive/sensitive.component.ts | 2 +- .../experimental/surface/surface.component.ts | 2 +- .../textfield/textfield.component.ts | 2 +- .../thumbnail-card.component.ts | 6 ++-- .../experimental/title/title.component.ts | 2 +- .../experimental/toggle/examples/1/index.ts | 6 ++-- .../experimental/toggle/toggle.component.ts | 2 +- .../experimental/tooltip/tooltip.component.ts | 2 +- .../icons/customization/examples/1/index.ts | 2 +- .../icons-customization.component.ts | 2 +- .../icons-bundled/icons-bundled.component.ts | 2 +- .../icons-group/icons-group.component.ts | 4 +-- .../icons-mapping/icons-mapping.component.ts | 2 +- .../demo/src/modules/icons/icons.component.ts | 4 +-- .../demo/src/modules/icons/icons.tokens.ts | 2 +- .../marker-icon/marker-icon.component.ts | 6 ++-- .../breakpoints/breakpoints.component.ts | 2 +- .../markup/colors/table/table.component.ts | 2 +- .../src/modules/markup/form/form.component.ts | 2 +- .../modules/markup/lists/lists.component.ts | 2 +- .../markup/skeleton/skeleton.component.ts | 2 +- .../modules/markup/spaces/spaces.component.ts | 2 +- .../modules/markup/tables/tables.component.ts | 2 +- .../modules/pipes/amount/amount.component.ts | 2 +- .../pipes/currency/currency.component.ts | 2 +- .../pipes/field-error/examples/1/index.ts | 2 +- .../pipes/field-error/examples/3/index.ts | 8 ++--- .../pipes/field-error/examples/4/index.ts | 8 ++--- .../pipes/field-error/examples/5/index.ts | 6 ++-- .../field-error/field-error.component.ts | 2 +- .../filter-by-input.component.ts | 2 +- .../modules/pipes/filter/filter.component.ts | 2 +- .../src/modules/pipes/flag/flag.component.ts | 2 +- .../pipes/format-date/examples/1/service.ts | 2 +- .../format-date/format-date.component.ts | 2 +- .../format-number/format-number.component.ts | 4 +-- .../format-phone/format-phone.component.ts | 2 +- .../pipes/is-present/is-present.component.ts | 2 +- .../pipes/mapper/examples/2/component.ts | 2 +- .../modules/pipes/mapper/mapper.component.ts | 2 +- .../stringify-content.component.ts | 2 +- .../pipes/stringify/stringify.component.ts | 2 +- .../breakpoint/breakpoint.component.ts | 2 +- .../services/destroy/destroy.component.ts | 2 +- .../services/scroll/examples/1/index.ts | 2 +- .../services/scroll/scroll.component.ts | 2 +- .../services/table-bar/examples/1/index.ts | 2 +- .../services/table-bar/table-bar.component.ts | 8 ++--- .../tables/reorder/reorder.component.ts | 2 +- .../table-filters/table-filters.component.ts | 2 +- .../table-pagination/examples/2/index.ts | 2 +- .../table-pagination.component.ts | 2 +- .../modules/tables/table/examples/3/index.ts | 4 +-- .../modules/tables/table/examples/4/index.ts | 4 +-- .../modules/tables/table/examples/5/index.ts | 2 +- .../modules/tables/table/table.component.ts | 2 +- .../utils/browser/browser.component.ts | 2 +- .../modules/utils/format/examples/2/index.ts | 2 +- .../modules/utils/format/examples/5/index.ts | 2 +- .../modules/utils/format/format.component.ts | 2 +- .../src/modules/utils/math/math.component.ts | 2 +- .../utils/miscellaneous/examples/6/index.ts | 2 +- .../miscellaneous/miscellaneous.component.ts | 2 +- .../src/modules/utils/pure/pure.component.ts | 2 +- .../modules/utils/tokens/tokens.component.ts | 2 +- projects/demo/src/utils/example.pipe.ts | 4 +-- projects/demo/src/utils/setup.component.ts | 2 +- projects/demo/webpack.config.ts | 2 +- .../badge-notification.component.ts | 4 +-- .../badge-notification.options.ts | 4 +-- .../components/button/button.component.ts | 2 +- .../components/button/button.options.ts | 4 +-- .../components/checkbox/checkbox.component.ts | 6 ++-- .../components/checkbox/checkbox.options.ts | 6 ++-- .../components/chip/chip.directive.ts | 2 +- .../components/chip/chip.options.ts | 4 +-- .../components/radio/radio.component.ts | 4 +-- .../components/radio/radio.options.ts | 6 ++-- .../components/rating/rating.component.ts | 2 +- .../components/rating/rating.options.ts | 6 ++-- .../segmented/segmented.component.ts | 4 +-- .../segmented/segmented.directive.ts | 6 ++-- .../textfield/textfield.component.ts | 10 +++--- .../textfield/textfield.directive.ts | 4 +-- .../components/textfield/textfield.options.ts | 4 +-- .../thumbnail-card.component.ts | 4 +-- .../components/toggle/toggle.component.ts | 4 +-- .../components/toggle/toggle.options.ts | 6 ++-- .../components/tooltip/tooltip.component.ts | 2 +- .../components/tooltip/tooltip.options.ts | 4 +-- .../directives/cell/cell.directive.ts | 2 +- .../directives/header/header.directive.ts | 2 +- .../directives/title/title.directive.ts | 2 +- .../pipes/auto-color/auto-color.pipe.ts | 2 +- .../pipes/fallback-src/fallback-src.pipe.ts | 4 +-- .../pipes/initials/initials.pipe.ts | 2 +- projects/i18n/interfaces/language.ts | 4 +-- .../languages/belarusian/addon-commerce.ts | 2 +- .../i18n/languages/belarusian/addon-editor.ts | 2 +- .../languages/belarusian/addon-preview.ts | 2 +- .../i18n/languages/belarusian/addon-table.ts | 2 +- .../i18n/languages/belarusian/belarusian.ts | 2 +- projects/i18n/languages/belarusian/core.ts | 2 +- projects/i18n/languages/belarusian/kit.ts | 2 +- .../i18n/languages/chinese/addon-commerce.ts | 2 +- .../i18n/languages/chinese/addon-editor.ts | 2 +- .../i18n/languages/chinese/addon-preview.ts | 2 +- .../i18n/languages/chinese/addon-table.ts | 2 +- projects/i18n/languages/chinese/chinese.ts | 2 +- projects/i18n/languages/chinese/core.ts | 2 +- projects/i18n/languages/chinese/kit.ts | 2 +- .../i18n/languages/dutch/addon-commerce.ts | 2 +- projects/i18n/languages/dutch/addon-editor.ts | 2 +- .../i18n/languages/dutch/addon-preview.ts | 2 +- projects/i18n/languages/dutch/addon-table.ts | 2 +- projects/i18n/languages/dutch/core.ts | 2 +- projects/i18n/languages/dutch/dutch.ts | 2 +- projects/i18n/languages/dutch/kit.ts | 2 +- .../i18n/languages/english/addon-commerce.ts | 2 +- .../i18n/languages/english/addon-editor.ts | 2 +- .../i18n/languages/english/addon-preview.ts | 2 +- .../i18n/languages/english/addon-table.ts | 2 +- projects/i18n/languages/english/core.ts | 2 +- projects/i18n/languages/english/english.ts | 2 +- projects/i18n/languages/english/kit.ts | 2 +- .../i18n/languages/french/addon-commerce.ts | 2 +- .../i18n/languages/french/addon-editor.ts | 2 +- .../i18n/languages/french/addon-preview.ts | 2 +- projects/i18n/languages/french/addon-table.ts | 2 +- projects/i18n/languages/french/core.ts | 2 +- projects/i18n/languages/french/french.ts | 2 +- projects/i18n/languages/french/kit.ts | 2 +- .../i18n/languages/german/addon-commerce.ts | 2 +- .../i18n/languages/german/addon-editor.ts | 2 +- .../i18n/languages/german/addon-preview.ts | 2 +- projects/i18n/languages/german/addon-table.ts | 2 +- projects/i18n/languages/german/core.ts | 2 +- projects/i18n/languages/german/german.ts | 2 +- projects/i18n/languages/german/kit.ts | 2 +- .../i18n/languages/italian/addon-commerce.ts | 2 +- .../i18n/languages/italian/addon-editor.ts | 2 +- .../i18n/languages/italian/addon-preview.ts | 2 +- .../i18n/languages/italian/addon-table.ts | 2 +- projects/i18n/languages/italian/core.ts | 2 +- projects/i18n/languages/italian/italian.ts | 2 +- projects/i18n/languages/italian/kit.ts | 2 +- .../i18n/languages/kazakh/addon-commerce.ts | 2 +- .../i18n/languages/kazakh/addon-editor.ts | 2 +- .../i18n/languages/kazakh/addon-preview.ts | 2 +- projects/i18n/languages/kazakh/addon-table.ts | 2 +- projects/i18n/languages/kazakh/core.ts | 2 +- projects/i18n/languages/kazakh/kazakh.ts | 2 +- projects/i18n/languages/kazakh/kit.ts | 2 +- .../i18n/languages/malay/addon-commerce.ts | 2 +- projects/i18n/languages/malay/addon-editor.ts | 2 +- .../i18n/languages/malay/addon-preview.ts | 2 +- projects/i18n/languages/malay/addon-table.ts | 2 +- projects/i18n/languages/malay/core.ts | 2 +- projects/i18n/languages/malay/kit.ts | 2 +- projects/i18n/languages/malay/malay.ts | 2 +- .../i18n/languages/polish/addon-commerce.ts | 2 +- .../i18n/languages/polish/addon-editor.ts | 2 +- .../i18n/languages/polish/addon-preview.ts | 2 +- projects/i18n/languages/polish/addon-table.ts | 2 +- projects/i18n/languages/polish/core.ts | 2 +- projects/i18n/languages/polish/kit.ts | 2 +- projects/i18n/languages/polish/polish.ts | 2 +- .../languages/portuguese/addon-commerce.ts | 2 +- .../i18n/languages/portuguese/addon-editor.ts | 2 +- .../languages/portuguese/addon-preview.ts | 2 +- .../i18n/languages/portuguese/addon-table.ts | 2 +- projects/i18n/languages/portuguese/core.ts | 2 +- projects/i18n/languages/portuguese/kit.ts | 2 +- .../i18n/languages/portuguese/portuguese.ts | 2 +- .../i18n/languages/russian/addon-commerce.ts | 2 +- .../i18n/languages/russian/addon-editor.ts | 2 +- .../i18n/languages/russian/addon-preview.ts | 2 +- .../i18n/languages/russian/addon-table.ts | 2 +- projects/i18n/languages/russian/core.ts | 2 +- projects/i18n/languages/russian/kit.ts | 2 +- projects/i18n/languages/russian/russian.ts | 2 +- .../i18n/languages/spanish/addon-commerce.ts | 2 +- .../i18n/languages/spanish/addon-editor.ts | 2 +- .../i18n/languages/spanish/addon-preview.ts | 2 +- .../i18n/languages/spanish/addon-table.ts | 2 +- projects/i18n/languages/spanish/core.ts | 2 +- projects/i18n/languages/spanish/kit.ts | 2 +- projects/i18n/languages/spanish/spanish.ts | 2 +- .../i18n/languages/turkish/addon-commerce.ts | 2 +- .../i18n/languages/turkish/addon-editor.ts | 2 +- .../i18n/languages/turkish/addon-preview.ts | 2 +- .../i18n/languages/turkish/addon-table.ts | 2 +- projects/i18n/languages/turkish/core.ts | 2 +- projects/i18n/languages/turkish/kit.ts | 2 +- projects/i18n/languages/turkish/turkish.ts | 2 +- .../languages/ukrainian/addon-commerce.ts | 2 +- .../i18n/languages/ukrainian/addon-editor.ts | 2 +- .../i18n/languages/ukrainian/addon-preview.ts | 2 +- .../i18n/languages/ukrainian/addon-table.ts | 2 +- projects/i18n/languages/ukrainian/core.ts | 2 +- projects/i18n/languages/ukrainian/kit.ts | 2 +- .../i18n/languages/ukrainian/ukrainian.ts | 2 +- .../languages/vietnamese/addon-commerce.ts | 2 +- .../i18n/languages/vietnamese/addon-editor.ts | 2 +- .../languages/vietnamese/addon-preview.ts | 2 +- .../i18n/languages/vietnamese/addon-table.ts | 2 +- projects/i18n/languages/vietnamese/core.ts | 2 +- projects/i18n/languages/vietnamese/kit.ts | 2 +- .../i18n/languages/vietnamese/vietnamese.ts | 2 +- .../switch/language-switcher.providers.ts | 2 +- .../i18n/switch/language-switcher.service.ts | 4 +-- projects/i18n/switch/utils.ts | 2 +- projects/i18n/tokens/language.ts | 4 +-- projects/i18n/tools/extract-i18n.ts | 4 +-- .../convert-all-compile-file-to-all-file.ts | 4 +-- .../icons/scripts/post-prettier-format.ts | 2 +- projects/icons/scripts/rollup-svgo.ts | 4 +-- .../kit/abstract/abstract-native-select.ts | 8 +++-- projects/kit/classes/day-range-period.ts | 4 +-- projects/kit/classes/named-day.ts | 2 +- projects/kit/classes/stringifiable-item.ts | 2 +- .../accordion-item.component.ts | 8 ++--- .../accordion/accordion.component.ts | 4 +-- .../test/accordion.component.spec.ts | 6 ++-- .../kit/components/action/action.component.ts | 2 +- .../action/test/action.component.spec.ts | 4 +-- .../kit/components/arrow/arrow.component.ts | 2 +- .../kit/components/arrow/arrow.options.ts | 4 +-- .../kit/components/arrow/arrow.providers.ts | 8 ++--- .../avatar-stack/avatar-stack.component.ts | 2 +- .../kit/components/avatar/avatar.component.ts | 2 +- .../kit/components/avatar/avatar.options.ts | 4 +-- .../kit/components/badge/badge.options.ts | 4 +-- .../kit/components/block/block.directive.ts | 4 +-- .../kit/components/block/block.options.ts | 4 +-- .../breadcrumbs/breadcrumbs.component.ts | 2 +- .../breadcrumbs/breadcrumbs.options.ts | 4 +-- .../test/breadcrumbs.component.spec.ts | 6 ++-- .../calendar-month.component.ts | 14 +++++--- .../test/calendar-month.component.spec.ts | 2 +- .../calendar-range.component.ts | 16 +++++----- .../test/range-calendar.component.spec.ts | 6 ++-- .../components/carousel/carousel.component.ts | 4 +-- .../checkbox-labeled.component.ts | 11 +++++-- .../components/checkbox/checkbox.component.ts | 6 ++-- .../combo-box/combo-box.component.ts | 24 +++++++------- .../combo-box/combo-box.directive.ts | 2 +- .../test/combo-box.component.spec.ts | 12 +++---- .../data-list-wrapper/data-list-wrapper.ts | 14 ++++---- .../components/files/file/file.component.ts | 14 ++++---- .../kit/components/files/file/file.options.ts | 8 ++--- projects/kit/components/files/files.types.ts | 2 +- projects/kit/components/files/files.utils.ts | 2 +- .../kit/components/files/files.validators.ts | 4 +-- .../components/files/files/files.component.ts | 2 +- .../input-files-validator.directive.ts | 9 +++++- .../input-files/input-files.component.ts | 2 +- .../files/input-files/input-files.content.ts | 4 +-- .../input-files/input-files.directive.ts | 4 +-- .../files/input-files/input-files.options.ts | 4 +-- .../files/pipes/file-rejected.pipe.ts | 6 ++-- .../kit/components/filter/filter.component.ts | 17 ++++++---- .../filter/test/filter.component.spec.ts | 10 ++++-- .../input-copy/input-copy.component.ts | 25 ++++++++++----- .../input-copy/input-copy.directive.ts | 2 +- .../input-copy/input-copy.options.ts | 8 ++--- .../test/input-copy.component.spec.ts | 6 ++-- .../input-date-multi.component.ts | 24 +++++++------- .../input-date-range.component.ts | 28 ++++++++-------- .../input-date-range.directive.ts | 4 +-- .../test/input-date-range.component.spec.ts | 12 +++++-- .../input-date-time.component.ts | 31 +++++++++++------- .../input-date-time.directive.ts | 4 +-- .../test/input-date-time.component.spec.ts | 4 +-- .../input-date/input-date.component.ts | 26 +++++++-------- .../input-date/input-date.directive.ts | 4 +-- .../test/input-date.component.spec.ts | 8 ++--- .../input-inline/input-inline.component.ts | 6 ++-- .../test/input-inline.component.spec.ts | 4 +-- .../input-month-range.component.ts | 18 +++++------ .../input-month-range.directive.ts | 6 ++-- .../test/input-month-range.component.spec.ts | 2 +- .../input-month/input-month.component.ts | 14 ++++---- .../input-month/input-month.directive.ts | 6 ++-- .../test/input-month.component.spec.ts | 2 +- .../input-number/input-number.component.ts | 21 ++++++------ .../input-number/input-number.directive.ts | 4 +-- .../input-number/input-number.options.ts | 6 ++-- .../test/input-number-format.spec.ts | 4 +-- .../test/input-number.component.spec.ts | 10 +++--- .../input-password.component.ts | 16 +++++----- .../input-password.directive.ts | 4 +-- .../input-password/input-password.options.ts | 8 ++--- .../test/input-password.component.spec.ts | 6 ++-- .../input-phone-international.component.ts | 14 ++++---- .../input-phone-international.options.ts | 2 +- ...nput-phone-international.component.spec.ts | 6 ++-- .../input-phone/input-phone.component.ts | 20 +++++++----- .../input-phone/input-phone.directive.ts | 4 +-- .../input-phone/input-phone.options.ts | 2 +- ...plete-phone-insertion-preprocessor.spec.ts | 2 +- .../test/input-phone.component.spec.ts | 2 +- .../complete-phone-insertion-preprocessor.ts | 2 +- .../input-range/input-range.component.ts | 16 +++++----- .../test/input-range.component.spec.ts | 4 +-- .../input-slider/input-slider.component.ts | 14 ++++---- .../test/input-slider.component.spec.ts | 6 ++-- .../input-tag/input-tag.component.ts | 24 +++++++------- .../components/input-tag/input-tag.options.ts | 4 +-- .../test/input-tag-no-mode.component.spec.ts | 6 ++-- .../test/input-tag.component.spec.ts | 8 ++--- .../input-time/input-time.component.ts | 20 ++++++------ .../input-time/input-time.directive.ts | 4 +-- .../input-time/input-time.options.ts | 15 ++++++--- .../test/input-time.component.spec.ts | 8 ++--- .../input-year/input-year.component.ts | 16 +++++----- .../input-year/input-year.directive.ts | 2 +- .../kit/components/input/input.component.ts | 14 ++++---- .../kit/components/input/input.directive.ts | 2 +- .../input/test/input.component.spec.ts | 8 ++--- .../kit/components/island/island.component.ts | 2 +- .../island/test/island.component.spec.ts | 4 +-- .../items-with-more.component.ts | 4 +-- .../items-with-more/more.directive.ts | 2 +- .../line-clamp-position.directive.ts | 4 +-- .../line-clamp/line-clamp.component.ts | 8 ++--- .../line-clamp/line-clamp.options.ts | 2 +- .../marker-icon/marker-icon.component.ts | 4 +-- .../multi-select-option.component.ts | 2 +- .../multi-select/hide-selected.pipe.ts | 4 +-- .../multi-select-group.component.ts | 12 +++---- .../multi-select-group.directive.ts | 6 +++- .../multi-select/multi-select.component.ts | 31 ++++++++++-------- .../multi-select/multi-select.directive.ts | 4 +-- .../multi-select/multi-select.options.ts | 6 ++-- .../native-multi-select.ts | 4 +-- .../test/multi-select.component.spec.ts | 4 +-- .../pagination/pagination.component.ts | 22 ++++++------- .../test/pagination.component.spec.ts | 2 +- .../pdf-viewer/pdf-viewer.component.ts | 4 +-- .../pdf-viewer/pdf-viewer.directive.ts | 2 +- .../pdf-viewer/pdf-viewer.options.ts | 4 +-- .../pdf-viewer/pdf-viewer.service.ts | 10 +++--- .../test/pdf-viewer.component.spec.ts | 4 +-- .../progress-bar/progress-bar.component.ts | 2 +- .../progress-color-segments.directive.ts | 2 +- .../progress-circle.component.ts | 2 +- .../progress-segmented.component.ts | 2 +- .../kit/components/prompt/prompt.component.ts | 4 +-- .../components/push/push-alert.component.ts | 4 +-- .../kit/components/push/push.directive.ts | 6 +++- projects/kit/components/push/push.options.ts | 2 +- projects/kit/components/push/push.service.ts | 2 +- .../push/test/push.component.spec.ts | 4 +-- .../radio-labeled/radio-labeled.component.ts | 8 ++--- .../radio-list/radio-list.component.ts | 16 ++++++---- .../kit/components/radio/radio.component.ts | 10 +++--- .../kit/components/radio/radio.options.ts | 4 +-- .../kit/components/range/range.component.ts | 10 +++--- .../kit/components/rating/rating.component.ts | 4 +-- .../kit/components/rating/rating.options.ts | 2 +- .../rating/tests/rating.component.spec.ts | 2 +- .../generate-dialogable-route.ts | 6 ++-- .../test/routable-dialog.component.spec.ts | 12 +++---- .../select-option/select-option.component.ts | 12 +++---- .../native-select-group.component.ts | 2 +- .../native-select/native-select.component.ts | 2 +- .../kit/components/select/select.component.ts | 22 ++++++------- .../kit/components/select/select.directive.ts | 4 +-- .../kit/components/select/select.options.ts | 6 ++-- .../select/test/select.component.spec.ts | 4 +-- .../helpers/slider-key-steps.directive.ts | 4 +-- .../slider-thumb-label.component.ts | 4 +-- .../kit/components/slider/slider.component.ts | 2 +- .../kit/components/slider/slider.options.ts | 4 +-- .../slider/test/slider-key-steps.spec.ts | 4 +-- .../kit/components/slider/test/slider.spec.ts | 4 +-- .../components/stepper/step/step.component.ts | 2 +- .../components/stepper/stepper.component.ts | 6 ++-- .../kit/components/tabs/tab/tab.component.ts | 2 +- .../kit/components/tabs/tab/tab.providers.ts | 4 +-- .../tabs-vertical/tabs-vertical.component.ts | 2 +- .../tabs-with-more.component.ts | 10 +++--- .../tabs-with-more.providers.ts | 17 ++++++++-- .../kit/components/tabs/tabs.directive.ts | 2 +- projects/kit/components/tabs/tabs.options.ts | 2 +- .../components/tabs/tabs/tabs.component.ts | 4 +-- projects/kit/components/tag/tag.component.ts | 10 +++--- projects/kit/components/tag/tag.options.ts | 6 ++-- .../components/tag/test/tag-options.spec.ts | 2 +- .../components/tag/test/tag.component.spec.ts | 4 +-- .../textarea/test/textarea.component.spec.ts | 4 +-- .../components/textarea/textarea.component.ts | 10 +++--- .../components/textarea/textarea.directive.ts | 2 +- .../kit/components/tiles/tile.component.ts | 4 +-- projects/kit/components/tiles/tile.service.ts | 4 +-- .../toggle/test/toggle.component.spec.ts | 4 +-- .../kit/components/toggle/toggle.component.ts | 17 ++++++---- .../kit/components/toggle/toggle.options.ts | 8 ++--- .../tree-item/tree-item.component.ts | 6 ++-- .../tree-item/tree-item.providers.ts | 2 +- .../tree/components/tree/tree.component.ts | 10 +++--- .../directives/tree-children.directive.ts | 2 +- .../directives/tree-controller.directive.ts | 4 +-- .../tree-item-controller.directive.ts | 4 +-- .../tree/directives/tree-node.directive.ts | 4 +-- .../components/tree/misc/tree.interfaces.ts | 8 ++--- .../kit/components/tree/misc/tree.service.ts | 2 +- .../kit/components/tree/misc/tree.tokens.ts | 2 +- .../constants/date-mode-maskito-adapter.ts | 4 +-- projects/kit/constants/masks.ts | 2 +- .../constants/max-day-range-length-mapper.ts | 7 +++- projects/kit/constants/max-time-values.ts | 2 +- .../data-list-dropdown-manager.directive.ts | 6 ++-- .../kit/directives/fade/fade.directive.ts | 2 +- .../highlight/highlight.directive.ts | 9 +++++- .../lazy-loading/lazy-loading.directive.ts | 2 +- .../lazy-loading/lazy-loading.service.ts | 2 +- .../directives/present/present.directive.ts | 2 +- .../project-class/project-class.directive.ts | 2 +- .../test/project-class.directive.spec.ts | 2 +- .../unfinished-validator.directive.ts | 2 +- .../unfinished.validator.ts | 6 ++-- .../unmask-handler.directive.ts | 8 +++-- .../kit/interfaces/mobile-calendar-data.ts | 2 +- projects/kit/interfaces/month-context.ts | 2 +- .../primitive-calendar-range.component.ts | 14 ++++---- ...primitive-calendar-range.component.spec.ts | 2 +- .../field-error/field-error-content-pipe.ts | 11 +++++-- .../kit/pipes/field-error/field-error-pipe.ts | 8 ++--- .../test/field-error-content-pipe.spec.ts | 2 +- .../filter-by-input-with.pipe.ts | 6 ++-- .../filter-by-input/filter-by-input.base.ts | 6 ++-- .../filter-by-input/filter-by-input.pipe.ts | 6 ++-- .../iso-to-country-code.pipe.ts | 4 +-- .../sort-countries/sort-countries.pipe.ts | 6 ++-- .../stringify-content.pipe.ts | 6 ++-- .../kit/pipes/stringify/stringify.pipe.ts | 4 +-- .../to-country-code/to-country-code.pipe.ts | 2 +- projects/kit/pipes/to-year/to-year.pipe.ts | 2 +- .../kit/providers/month-formatter.provider.ts | 6 ++-- .../kit/providers/value-accessor.provider.ts | 2 +- projects/kit/services/dialog-form.service.ts | 6 ++-- projects/kit/tokens/calendar-date-stream.ts | 10 ++++-- .../tokens/date-inputs-value-transformers.ts | 7 +++- projects/kit/tokens/i18n.ts | 6 ++-- projects/kit/tokens/input-date-options.ts | 10 +++--- projects/kit/tokens/items-handlers.ts | 8 ++--- projects/kit/tokens/mobile-calendar.ts | 2 +- projects/kit/tokens/month-formatter.ts | 4 +-- projects/kit/tokens/validation-errors.ts | 4 +-- projects/kit/types/test/key-steps.spec.ts | 2 +- projects/kit/utils/date/update.ts | 2 +- .../math/horizontal-direction-to-number.ts | 2 +- projects/kit/utils/math/key-steps.ts | 2 +- .../kit/utils/math/test/key-steps.spec.ts | 2 +- .../replay-control-value-changes-factory.ts | 12 +++---- .../phone/get-max-allowed-phone-length.ts | 2 +- .../kit/utils/phone/iso-to-country-code.ts | 2 +- projects/testing/core/island.harness.ts | 2 +- .../core/primitive-calender.harness.ts | 2 +- .../core/primitive-year-picker.harness.ts | 2 +- projects/testing/core/tag.harness.ts | 2 +- projects/testing/mocks/sanitizer.ts | 2 +- projects/testing/utils/active-element.ts | 2 +- .../testing/utils/configure-test-suite.ts | 2 +- projects/testing/utils/helpers.ts | 4 +-- .../utils/input/cleaner.unit-common.ts | 10 +++--- .../testing/utils/input/filler.unit-common.ts | 10 +++--- .../input/form-control-state.unit-common.ts | 6 ++-- .../utils/input/placeholder.unit-common.ts | 8 ++--- .../utils/input/tooltip.unit-common.ts | 8 ++--- .../testing/utils/native-input.page-object.ts | 4 +-- projects/testing/utils/page-object.ts | 4 +-- scripts/compile-icons.ts | 2 +- scripts/release.ts | 2 +- scripts/shared/bump-version.ts | 2 +- scripts/shared/execute.ts | 2 +- scripts/shared/run-standard-version.ts | 2 +- 1434 files changed, 3085 insertions(+), 2763 deletions(-) diff --git a/package.json b/package.json index d1cb1e627919..8ee49720cfd5 100644 --- a/package.json +++ b/package.json @@ -80,6 +80,16 @@ "plugin:@taiga-ui/experience/all", "plugin:@taiga-ui/experience/taiga-naming" ], + "rules": { + "@typescript-eslint/consistent-type-imports": [ + "error", + { + "prefer": "type-imports", + "disallowTypeAnnotations": false, + "fixStyle": "inline-type-imports" + } + ] + }, "root": true }, "stylelint": { diff --git a/projects/addon-charts/components/arc-chart/arc-chart.component.ts b/projects/addon-charts/components/arc-chart/arc-chart.component.ts index 8ea17da674fe..dcf581b3246d 100644 --- a/projects/addon-charts/components/arc-chart/arc-chart.component.ts +++ b/projects/addon-charts/components/arc-chart/arc-chart.component.ts @@ -2,21 +2,21 @@ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, - ElementRef, + type ElementRef, HostBinding, inject, Input, Output, - QueryList, + type QueryList, ViewChildren, } from '@angular/core'; -import {DomSanitizer, SafeValue} from '@angular/platform-browser'; +import {DomSanitizer, type SafeValue} from '@angular/platform-browser'; import {TuiDestroyService, tuiTypedFromEvent, tuiWatch} from '@taiga-ui/cdk'; -import {TuiSizeXL} from '@taiga-ui/core'; +import {type TuiSizeXL} from '@taiga-ui/core'; import { map, merge, - Observable, + type Observable, ReplaySubject, startWith, switchMap, diff --git a/projects/addon-charts/components/axes/axes.component.ts b/projects/addon-charts/components/axes/axes.component.ts index fd144183635b..a835dca9bfe2 100644 --- a/projects/addon-charts/components/axes/axes.component.ts +++ b/projects/addon-charts/components/axes/axes.component.ts @@ -6,7 +6,7 @@ import { Input, } from '@angular/core'; import {TUI_ALWAYS_DASHED, TUI_ALWAYS_SOLID} from '@taiga-ui/addon-charts/constants'; -import {TuiLineHandler, TuiLineType} from '@taiga-ui/addon-charts/types'; +import {type TuiLineHandler, type TuiLineType} from '@taiga-ui/addon-charts/types'; import {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk'; import {MODE_PROVIDER, TUI_MODE} from '@taiga-ui/core'; diff --git a/projects/addon-charts/components/axes/test/axes.component.spec.ts b/projects/addon-charts/components/axes/test/axes.component.spec.ts index b4bc50688b5e..bfec54fba157 100644 --- a/projects/addon-charts/components/axes/test/axes.component.spec.ts +++ b/projects/addon-charts/components/axes/test/axes.component.spec.ts @@ -1,6 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; -import {TuiAxesComponent, TuiAxesModule} from '@taiga-ui/addon-charts'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import {type TuiAxesComponent, TuiAxesModule} from '@taiga-ui/addon-charts'; import {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk'; describe('Axes', () => { diff --git a/projects/addon-charts/components/bar-chart/bar-chart.component.ts b/projects/addon-charts/components/bar-chart/bar-chart.component.ts index c5077464d235..72a8a5a5381b 100644 --- a/projects/addon-charts/components/bar-chart/bar-chart.component.ts +++ b/projects/addon-charts/components/bar-chart/bar-chart.component.ts @@ -3,26 +3,26 @@ import { Component, inject, Input, - QueryList, + type QueryList, ViewChildren, } from '@angular/core'; import { EMPTY_QUERY, - TuiContext, + type TuiContext, TuiIdService, tuiPure, tuiSum, - TuiTypedMapper, + type TuiTypedMapper, } from '@taiga-ui/cdk'; import { TuiHintHoverDirective, TuiHintOptionsDirective, tuiHintOptionsProvider, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, } from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {Observable} from 'rxjs'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Observable} from 'rxjs'; @Component({ selector: 'tui-bar-chart', diff --git a/projects/addon-charts/components/bar-chart/test/bar-chart.component.spec.ts b/projects/addon-charts/components/bar-chart/test/bar-chart.component.spec.ts index dce1e8ae24c6..2b955a03f56a 100644 --- a/projects/addon-charts/components/bar-chart/test/bar-chart.component.spec.ts +++ b/projects/addon-charts/components/bar-chart/test/bar-chart.component.spec.ts @@ -1,5 +1,5 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TuiBarChartComponent, TuiBarChartModule} from '@taiga-ui/addon-charts'; describe('BarChart', () => { diff --git a/projects/addon-charts/components/bar-set/bar-set.component.ts b/projects/addon-charts/components/bar-set/bar-set.component.ts index 266db0593dd5..1a0a05a339a0 100644 --- a/projects/addon-charts/components/bar-set/bar-set.component.ts +++ b/projects/addon-charts/components/bar-set/bar-set.component.ts @@ -1,7 +1,7 @@ import {ChangeDetectionStrategy, Component, Input} from '@angular/core'; -import {SafeValue} from '@angular/platform-browser'; +import {type SafeValue} from '@angular/platform-browser'; import {tuiPure} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; const PERCENT = 100; const EMPTY_ARRAY: readonly number[] = []; diff --git a/projects/addon-charts/components/bar-set/test/bar-set.component.spec.ts b/projects/addon-charts/components/bar-set/test/bar-set.component.spec.ts index 13fae7289801..fc7ec2acfc2c 100644 --- a/projects/addon-charts/components/bar-set/test/bar-set.component.spec.ts +++ b/projects/addon-charts/components/bar-set/test/bar-set.component.spec.ts @@ -1,5 +1,5 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {TuiBarSetComponent, TuiBarSetModule} from '@taiga-ui/addon-charts'; diff --git a/projects/addon-charts/components/bar/bar.component.ts b/projects/addon-charts/components/bar/bar.component.ts index 0125bd29ca63..afd91740db42 100644 --- a/projects/addon-charts/components/bar/bar.component.ts +++ b/projects/addon-charts/components/bar/bar.component.ts @@ -1,7 +1,7 @@ import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core'; -import {SafeValue} from '@angular/platform-browser'; +import {type SafeValue} from '@angular/platform-browser'; import {tuiPure, tuiSum} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'tui-bar', diff --git a/projects/addon-charts/components/legend-item/legend-item.component.ts b/projects/addon-charts/components/legend-item/legend-item.component.ts index c69ecc170765..86b96de2f322 100644 --- a/projects/addon-charts/components/legend-item/legend-item.component.ts +++ b/projects/addon-charts/components/legend-item/legend-item.component.ts @@ -1,5 +1,5 @@ import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core'; -import {TuiSizeS} from '@taiga-ui/core'; +import {type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'tui-legend-item', diff --git a/projects/addon-charts/components/line-chart/line-chart-hint.directive.ts b/projects/addon-charts/components/line-chart/line-chart-hint.directive.ts index 0bd21a51c735..8da237ac7342 100644 --- a/projects/addon-charts/components/line-chart/line-chart-hint.directive.ts +++ b/projects/addon-charts/components/line-chart/line-chart-hint.directive.ts @@ -1,5 +1,5 @@ import { - AfterViewInit, + type AfterViewInit, ContentChildren, Directive, ElementRef, @@ -7,26 +7,26 @@ import { inject, Input, NgZone, - QueryList, + type QueryList, Renderer2, } from '@angular/core'; import { EMPTY_QUERY, - TuiContext, + type TuiContext, TuiDestroyService, TuiHoveredService, tuiPure, tuiQueryListChanges, tuiZonefree, } from '@taiga-ui/cdk'; -import {TuiPoint} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiPoint} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import { combineLatest, distinctUntilChanged, filter, map, - Observable, + type Observable, startWith, switchMap, takeUntil, diff --git a/projects/addon-charts/components/line-chart/line-chart.component.ts b/projects/addon-charts/components/line-chart/line-chart.component.ts index 58799b43ce36..009498e2e182 100644 --- a/projects/addon-charts/components/line-chart/line-chart.component.ts +++ b/projects/addon-charts/components/line-chart/line-chart.component.ts @@ -5,27 +5,27 @@ import { inject, Input, NgZone, - QueryList, + type QueryList, ViewChildren, } from '@angular/core'; -import {TuiLineChartHintContext} from '@taiga-ui/addon-charts/interfaces'; +import {type TuiLineChartHintContext} from '@taiga-ui/addon-charts/interfaces'; import {tuiDraw} from '@taiga-ui/addon-charts/utils'; import { EMPTY_QUERY, TuiIdService, tuiIsPresent, tuiPure, - TuiStringHandler, + type TuiStringHandler, tuiZoneOptimized, } from '@taiga-ui/cdk'; import { TuiHintHoverDirective, TuiHintOptionsDirective, tuiHintOptionsProvider, - TuiPoint, + type TuiPoint, } from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {distinctUntilChanged, Observable, Subject} from 'rxjs'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {distinctUntilChanged, type Observable, Subject} from 'rxjs'; import {TUI_LINE_CHART_OPTIONS} from './line-chart.options'; import {TuiLineChartHintDirective} from './line-chart-hint.directive'; diff --git a/projects/addon-charts/components/line-chart/line-chart.options.ts b/projects/addon-charts/components/line-chart/line-chart.options.ts index 8d6b372301b1..f1c43484e2b6 100644 --- a/projects/addon-charts/components/line-chart/line-chart.options.ts +++ b/projects/addon-charts/components/line-chart/line-chart.options.ts @@ -1,4 +1,4 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiLineChartOptions { diff --git a/projects/addon-charts/components/line-days-chart/line-days-chart-hint.directive.ts b/projects/addon-charts/components/line-days-chart/line-days-chart-hint.directive.ts index 6879459a24d2..1e88a45cc8ad 100644 --- a/projects/addon-charts/components/line-days-chart/line-days-chart-hint.directive.ts +++ b/projects/addon-charts/components/line-days-chart/line-days-chart-hint.directive.ts @@ -1,25 +1,25 @@ import { - AfterContentInit, + type AfterContentInit, ContentChildren, Directive, forwardRef, inject, Input, NgZone, - QueryList, + type QueryList, } from '@angular/core'; import {tuiLineChartDrivers} from '@taiga-ui/addon-charts/components/line-chart'; import { EMPTY_QUERY, - TuiContext, - TuiDay, + type TuiContext, + type TuiDay, TuiDestroyService, TuiHoveredService, tuiPure, tuiZonefree, } from '@taiga-ui/cdk'; -import {TuiPoint} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiPoint} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {combineLatest, filter, takeUntil} from 'rxjs'; import {TuiLineDaysChartComponent} from './line-days-chart.component'; diff --git a/projects/addon-charts/components/line-days-chart/line-days-chart.component.ts b/projects/addon-charts/components/line-days-chart/line-days-chart.component.ts index 107714fe03fa..2d0c421c0302 100644 --- a/projects/addon-charts/components/line-days-chart/line-days-chart.component.ts +++ b/projects/addon-charts/components/line-days-chart/line-days-chart.component.ts @@ -1,12 +1,12 @@ import { - AfterViewInit, + type AfterViewInit, ChangeDetectionStrategy, Component, HostBinding, inject, Input, NgZone, - QueryList, + type QueryList, ViewChildren, } from '@angular/core'; import { @@ -18,7 +18,7 @@ import { import { EMPTY_ARRAY, EMPTY_QUERY, - TuiContext, + type TuiContext, TuiDay, TuiDestroyService, TuiHoveredService, @@ -26,11 +26,11 @@ import { tuiIsPresent, TuiMonth, tuiPure, - TuiStringHandler, + type TuiStringHandler, tuiZonefree, } from '@taiga-ui/cdk'; -import {TuiPoint} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiPoint} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {combineLatest, filter, takeUntil} from 'rxjs'; import {TuiLineDaysChartHintDirective} from './line-days-chart-hint.directive'; diff --git a/projects/addon-charts/components/pie-chart/pie-chart.component.ts b/projects/addon-charts/components/pie-chart/pie-chart.component.ts index 8e61ff1cc4bb..83981557a1d3 100644 --- a/projects/addon-charts/components/pie-chart/pie-chart.component.ts +++ b/projects/addon-charts/components/pie-chart/pie-chart.component.ts @@ -7,15 +7,15 @@ import { Input, Output, } from '@angular/core'; -import {SafeValue} from '@angular/platform-browser'; -import {TuiContext, TuiIdService, tuiPure, tuiSum} from '@taiga-ui/cdk'; +import {type SafeValue} from '@angular/platform-browser'; +import {type TuiContext, TuiIdService, tuiPure, tuiSum} from '@taiga-ui/cdk'; import { TuiHintOptionsDirective, tuiHintOptionsProvider, - TuiSizeXL, - TuiSizeXS, + type TuiSizeXL, + type TuiSizeXS, } from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; const RADII = { xs: '50', diff --git a/projects/addon-charts/components/pie-chart/test/pie-chart.component.spec.ts b/projects/addon-charts/components/pie-chart/test/pie-chart.component.spec.ts index f3e4b84ed837..5a7ac0335ff5 100644 --- a/projects/addon-charts/components/pie-chart/test/pie-chart.component.spec.ts +++ b/projects/addon-charts/components/pie-chart/test/pie-chart.component.spec.ts @@ -1,6 +1,6 @@ import {Location} from '@angular/common'; import {Component} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TuiPieChartModule} from '@taiga-ui/addon-charts'; import {TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/addon-charts/components/ring-chart/ring-chart.component.ts b/projects/addon-charts/components/ring-chart/ring-chart.component.ts index bd56bcb5fd04..149c89e1392c 100644 --- a/projects/addon-charts/components/ring-chart/ring-chart.component.ts +++ b/projects/addon-charts/components/ring-chart/ring-chart.component.ts @@ -6,7 +6,7 @@ import { Input, Output, } from '@angular/core'; -import {TuiSizeS, TuiSizeXL} from '@taiga-ui/core'; +import {type TuiSizeS, type TuiSizeXL} from '@taiga-ui/core'; @Component({ selector: 'tui-ring-chart', diff --git a/projects/addon-charts/constants/line-handlers.ts b/projects/addon-charts/constants/line-handlers.ts index 3a92f22a3d2a..45c0cb1db323 100644 --- a/projects/addon-charts/constants/line-handlers.ts +++ b/projects/addon-charts/constants/line-handlers.ts @@ -1,4 +1,4 @@ -import {TuiLineHandler} from '@taiga-ui/addon-charts/types'; +import {type TuiLineHandler} from '@taiga-ui/addon-charts/types'; export const TUI_ALWAYS_DASHED: TuiLineHandler = () => 'dashed'; export const TUI_ALWAYS_DOTTED: TuiLineHandler = () => 'dotted'; diff --git a/projects/addon-charts/interfaces/line-chart-hint-context.ts b/projects/addon-charts/interfaces/line-chart-hint-context.ts index 24e885b95cfa..9ad368eb9425 100644 --- a/projects/addon-charts/interfaces/line-chart-hint-context.ts +++ b/projects/addon-charts/interfaces/line-chart-hint-context.ts @@ -1,4 +1,4 @@ -import {TuiContext} from '@taiga-ui/cdk'; +import {type TuiContext} from '@taiga-ui/cdk'; export interface TuiLineChartHintContext extends TuiContext { readonly index?: number; diff --git a/projects/addon-charts/types/line-handler.ts b/projects/addon-charts/types/line-handler.ts index 4e407a6229cd..871c9da5b578 100644 --- a/projects/addon-charts/types/line-handler.ts +++ b/projects/addon-charts/types/line-handler.ts @@ -1,3 +1,3 @@ -import {TuiLineType} from './line-type'; +import {type TuiLineType} from './line-type'; export type TuiLineHandler = (index: number, total: number) => TuiLineType; diff --git a/projects/addon-charts/utils/control-point.ts b/projects/addon-charts/utils/control-point.ts index a54cfa06524c..d744dd0d4e82 100644 --- a/projects/addon-charts/utils/control-point.ts +++ b/projects/addon-charts/utils/control-point.ts @@ -1,4 +1,4 @@ -import {TuiPoint} from '@taiga-ui/core'; +import {type TuiPoint} from '@taiga-ui/core'; import {tuiLineAngle} from './line-angle'; import {tuiLineLength} from './line-length'; diff --git a/projects/addon-charts/utils/draw-curve.ts b/projects/addon-charts/utils/draw-curve.ts index 62b7ca02de42..b5f791a0a5b0 100644 --- a/projects/addon-charts/utils/draw-curve.ts +++ b/projects/addon-charts/utils/draw-curve.ts @@ -1,4 +1,4 @@ -import {TuiPoint} from '@taiga-ui/core'; +import {type TuiPoint} from '@taiga-ui/core'; import {tuiControlPoint} from './control-point'; diff --git a/projects/addon-charts/utils/draw.ts b/projects/addon-charts/utils/draw.ts index a58750c30d4d..179046d9b887 100644 --- a/projects/addon-charts/utils/draw.ts +++ b/projects/addon-charts/utils/draw.ts @@ -1,4 +1,4 @@ -import {TuiPoint} from '@taiga-ui/core'; +import {type TuiPoint} from '@taiga-ui/core'; import {tuiDrawCurve} from './draw-curve'; import {tuiDrawLine} from './draw-line'; diff --git a/projects/addon-charts/utils/line-angle.ts b/projects/addon-charts/utils/line-angle.ts index 46561274942b..cb053ee2bb80 100644 --- a/projects/addon-charts/utils/line-angle.ts +++ b/projects/addon-charts/utils/line-angle.ts @@ -1,4 +1,4 @@ -import {TuiPoint} from '@taiga-ui/core'; +import {type TuiPoint} from '@taiga-ui/core'; export function tuiLineAngle(a: TuiPoint, b: TuiPoint): number { const x = b[0] - a[0]; diff --git a/projects/addon-charts/utils/line-length.ts b/projects/addon-charts/utils/line-length.ts index 1310346d8f88..0a1e9c410daa 100644 --- a/projects/addon-charts/utils/line-length.ts +++ b/projects/addon-charts/utils/line-length.ts @@ -1,4 +1,4 @@ -import {TuiPoint} from '@taiga-ui/core'; +import {type TuiPoint} from '@taiga-ui/core'; export function tuiLineLength(a: TuiPoint, b: TuiPoint): number { const x = b[0] - a[0]; diff --git a/projects/addon-charts/utils/prepare-external-url.ts b/projects/addon-charts/utils/prepare-external-url.ts index f54bcd47d0ae..ac6241352ba6 100644 --- a/projects/addon-charts/utils/prepare-external-url.ts +++ b/projects/addon-charts/utils/prepare-external-url.ts @@ -1,4 +1,4 @@ -import {Location as NgLocation} from '@angular/common'; +import {type Location as NgLocation} from '@angular/common'; /** @deprecated */ export function tuiPrepareExternalUrl( diff --git a/projects/addon-commerce/components/input-card-grouped/input-card-grouped.component.ts b/projects/addon-commerce/components/input-card-grouped/input-card-grouped.component.ts index e0e9034f4dcf..5cf20b58593f 100644 --- a/projects/addon-commerce/components/input-card-grouped/input-card-grouped.component.ts +++ b/projects/addon-commerce/components/input-card-grouped/input-card-grouped.component.ts @@ -11,18 +11,18 @@ import { TemplateRef, ViewChild, } from '@angular/core'; -import {MaskitoOptions} from '@maskito/core'; +import {type MaskitoOptions} from '@maskito/core'; import {maskitoDateOptionsGenerator} from '@maskito/kit'; import {AbstractTuiInputCard} from '@taiga-ui/addon-commerce/components/input-card'; import {TUI_CARD_MASK} from '@taiga-ui/addon-commerce/constants'; -import {TuiCard} from '@taiga-ui/addon-commerce/interfaces'; -import {TuiCodeCVCLength} from '@taiga-ui/addon-commerce/types'; +import {type TuiCard} from '@taiga-ui/addon-commerce/interfaces'; +import {type TuiCodeCVCLength} from '@taiga-ui/addon-commerce/types'; import { tuiAsControl, tuiAsFocusableItemAccessor, - TuiAutofillFieldName, + type TuiAutofillFieldName, TuiAutoFocusDirective, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, tuiIsElement, tuiIsInput, tuiIsNativeFocused, @@ -40,14 +40,14 @@ import { tuiAsDataListHost, TuiDataListComponent, TuiDataListDirective, - TuiDataListHost, + type TuiDataListHost, } from '@taiga-ui/core'; import {TUI_ARROW_OPTIONS} from '@taiga-ui/kit'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import { TUI_INPUT_CARD_GROUPED_OPTIONS, - TuiInputCardGroupedOptions, + type TuiInputCardGroupedOptions, } from './input-card-grouped.options'; import {TUI_INPUT_CARD_GROUPED_TEXTS} from './input-card-grouped.providers'; diff --git a/projects/addon-commerce/components/input-card-grouped/input-card-grouped.options.ts b/projects/addon-commerce/components/input-card-grouped/input-card-grouped.options.ts index 72747e64efa7..c2f41f8804ed 100644 --- a/projects/addon-commerce/components/input-card-grouped/input-card-grouped.options.ts +++ b/projects/addon-commerce/components/input-card-grouped/input-card-grouped.options.ts @@ -1,10 +1,10 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import { TUI_INPUT_CARD_DEFAULT_OPTIONS, - TuiInputCardOptions, + type TuiInputCardOptions, } from '@taiga-ui/addon-commerce/components/input-card'; import {tuiDefaultCardValidator} from '@taiga-ui/addon-commerce/constants'; -import {TuiBooleanHandler, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import {type TuiBooleanHandler, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiInputCardGroupedOptions extends TuiInputCardOptions { readonly cardValidator: TuiBooleanHandler; diff --git a/projects/addon-commerce/components/input-card-grouped/input-card-grouped.providers.ts b/projects/addon-commerce/components/input-card-grouped/input-card-grouped.providers.ts index 5b46a09e1c6e..a81d43b84ab2 100644 --- a/projects/addon-commerce/components/input-card-grouped/input-card-grouped.providers.ts +++ b/projects/addon-commerce/components/input-card-grouped/input-card-grouped.providers.ts @@ -7,7 +7,7 @@ import { } from '@taiga-ui/addon-commerce/tokens'; import {tuiCreateTokenFromFactory, tuiTypedFromEvent} from '@taiga-ui/cdk'; import {TUI_MEDIA} from '@taiga-ui/core'; -import {combineLatest, map, Observable, of, startWith, switchMap} from 'rxjs'; +import {combineLatest, map, type Observable, of, startWith, switchMap} from 'rxjs'; export interface TuiCardGroupedTexts { readonly cardNumberText: string; diff --git a/projects/addon-commerce/components/input-card-grouped/test/input-card-grouped.component.spec.ts b/projects/addon-commerce/components/input-card-grouped/test/input-card-grouped.component.spec.ts index 29c4a3d5e5e7..fed7d8d940cf 100644 --- a/projects/addon-commerce/components/input-card-grouped/test/input-card-grouped.component.spec.ts +++ b/projects/addon-commerce/components/input-card-grouped/test/input-card-grouped.component.spec.ts @@ -6,22 +6,22 @@ import { TemplateRef, ViewChild, } from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import { - TuiCard, + type TuiCard, TuiInputCardGroupedComponent, TuiInputCardGroupedModule, } from '@taiga-ui/addon-commerce'; import { TUI_AUTOFOCUS_HANDLER, TUI_FOCUSABLE_ITEM_ACCESSOR, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, TuiSynchronousAutofocusHandler, } from '@taiga-ui/cdk'; import {TuiSvgModule} from '@taiga-ui/core'; import {TuiNativeInputPO} from '@taiga-ui/testing'; -import {Mock} from 'jest-mock'; +import {type Mock} from 'jest-mock'; describe('InputCardGrouped', () => { @Component({ diff --git a/projects/addon-commerce/components/input-card/abstract-input-card.ts b/projects/addon-commerce/components/input-card/abstract-input-card.ts index 854c7ad7a143..fa183bccc57b 100644 --- a/projects/addon-commerce/components/input-card/abstract-input-card.ts +++ b/projects/addon-commerce/components/input-card/abstract-input-card.ts @@ -1,15 +1,15 @@ import {Directive, EventEmitter, Input, Output} from '@angular/core'; -import {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; +import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; import { AbstractTuiNullableControl, - TuiAutofillFieldName, - TuiFocusableElementAccessor, - TuiNativeFocusableElement, + type TuiAutofillFieldName, + type TuiFocusableElementAccessor, + type TuiNativeFocusableElement, tuiPure, } from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {TuiInputCardOptions} from './input-card.options'; +import {type TuiInputCardOptions} from './input-card.options'; @Directive() export abstract class AbstractTuiInputCard< diff --git a/projects/addon-commerce/components/input-card/input-card.component.ts b/projects/addon-commerce/components/input-card/input-card.component.ts index fd0d2f662cd0..391e1f7a7716 100644 --- a/projects/addon-commerce/components/input-card/input-card.component.ts +++ b/projects/addon-commerce/components/input-card/input-card.component.ts @@ -5,14 +5,14 @@ import { inject, ViewChild, } from '@angular/core'; -import {MaskitoOptions} from '@maskito/core'; +import {type MaskitoOptions} from '@maskito/core'; import {TUI_CARD_MASK} from '@taiga-ui/addon-commerce/constants'; import {tuiAsControl, tuiAsFocusableItemAccessor} from '@taiga-ui/cdk'; import { TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, } from '@taiga-ui/core'; import {AbstractTuiInputCard} from './abstract-input-card'; diff --git a/projects/addon-commerce/components/input-card/input-card.directive.ts b/projects/addon-commerce/components/input-card/input-card.directive.ts index 6054cfc3e99f..c81242d7b7da 100644 --- a/projects/addon-commerce/components/input-card/input-card.directive.ts +++ b/projects/addon-commerce/components/input-card/input-card.directive.ts @@ -1,7 +1,7 @@ -import {AfterViewInit, Directive} from '@angular/core'; +import {type AfterViewInit, Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {TuiInputCardComponent} from './input-card.component'; +import {type TuiInputCardComponent} from './input-card.component'; @Directive({ selector: 'tui-input-card', diff --git a/projects/addon-commerce/components/input-card/input-card.options.ts b/projects/addon-commerce/components/input-card/input-card.options.ts index 83cd021dedb5..f8897371d756 100644 --- a/projects/addon-commerce/components/input-card/input-card.options.ts +++ b/projects/addon-commerce/components/input-card/input-card.options.ts @@ -1,11 +1,11 @@ -import {Provider} from '@angular/core'; -import {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; +import {type Provider} from '@angular/core'; +import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; import { TUI_PAYMENT_SYSTEM_ICONS, tuiGetPaymentSystem, } from '@taiga-ui/addon-commerce/utils'; -import {tuiCreateToken, TuiHandler, tuiProvideOptions} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {tuiCreateToken, type TuiHandler, tuiProvideOptions} from '@taiga-ui/cdk'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiInputCardOptions { readonly autocompleteEnabled: boolean; diff --git a/projects/addon-commerce/components/input-card/test/input-card.component.spec.ts b/projects/addon-commerce/components/input-card/test/input-card.component.spec.ts index 0a2cbbe13a84..a38bcbc39986 100644 --- a/projects/addon-commerce/components/input-card/test/input-card.component.spec.ts +++ b/projects/addon-commerce/components/input-card/test/input-card.component.spec.ts @@ -1,8 +1,8 @@ import {Component, TemplateRef, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {TuiInputCardComponent, TuiInputCardModule} from '@taiga-ui/addon-commerce'; -import {Mock} from 'jest-mock'; +import {type Mock} from 'jest-mock'; describe('InputCard', () => { @Component({ diff --git a/projects/addon-commerce/components/input-cvc/input-cvc.component.ts b/projects/addon-commerce/components/input-cvc/input-cvc.component.ts index c0b2a2724ffa..8afcb05de479 100644 --- a/projects/addon-commerce/components/input-cvc/input-cvc.component.ts +++ b/projects/addon-commerce/components/input-cvc/input-cvc.component.ts @@ -6,23 +6,23 @@ import { Input, ViewChild, } from '@angular/core'; -import {MaskitoOptions} from '@maskito/core'; -import {TuiCodeCVCLength} from '@taiga-ui/addon-commerce/types'; +import {type MaskitoOptions} from '@maskito/core'; +import {type TuiCodeCVCLength} from '@taiga-ui/addon-commerce/types'; import { AbstractTuiControl, tuiAsControl, tuiAsFocusableItemAccessor, - TuiAutofillFieldName, - TuiFocusableElementAccessor, - TuiNativeFocusableElement, + type TuiAutofillFieldName, + type TuiFocusableElementAccessor, + type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; import { TUI_DIGIT_REGEXP, TUI_TEXTFIELD_LABEL_OUTSIDE, TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, } from '@taiga-ui/core'; @Component({ diff --git a/projects/addon-commerce/components/input-cvc/test/input-cvc.component.spec.ts b/projects/addon-commerce/components/input-cvc/test/input-cvc.component.spec.ts index 9a1b3cb1f7b2..9a96c1cc4556 100644 --- a/projects/addon-commerce/components/input-cvc/test/input-cvc.component.spec.ts +++ b/projects/addon-commerce/components/input-cvc/test/input-cvc.component.spec.ts @@ -1,7 +1,7 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; -import {TuiInputCVCComponent, TuiInputCVCModule} from '@taiga-ui/addon-commerce'; +import {type TuiInputCVCComponent, TuiInputCVCModule} from '@taiga-ui/addon-commerce'; import {TUI_DIGIT_REGEXP} from '@taiga-ui/core'; describe('InputCVC', () => { diff --git a/projects/addon-commerce/components/input-expire/input-expire.component.ts b/projects/addon-commerce/components/input-expire/input-expire.component.ts index 91601390d043..f84714e09558 100644 --- a/projects/addon-commerce/components/input-expire/input-expire.component.ts +++ b/projects/addon-commerce/components/input-expire/input-expire.component.ts @@ -11,14 +11,14 @@ import { AbstractTuiControl, tuiAsControl, tuiAsFocusableItemAccessor, - TuiAutofillFieldName, - TuiFocusableElementAccessor, + type TuiAutofillFieldName, + type TuiFocusableElementAccessor, } from '@taiga-ui/cdk'; import { TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, } from '@taiga-ui/core'; @Component({ diff --git a/projects/addon-commerce/components/input-expire/test/input-expire.component.spec.ts b/projects/addon-commerce/components/input-expire/test/input-expire.component.spec.ts index abc3113394fa..cd69e8d7d22d 100644 --- a/projects/addon-commerce/components/input-expire/test/input-expire.component.spec.ts +++ b/projects/addon-commerce/components/input-expire/test/input-expire.component.spec.ts @@ -1,5 +1,5 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormsModule} from '@angular/forms'; import {By} from '@angular/platform-browser'; diff --git a/projects/addon-commerce/components/thumbnail-card/test/thumbnail-card.component.spec.ts b/projects/addon-commerce/components/thumbnail-card/test/thumbnail-card.component.spec.ts index 54cfe8217464..d34e3ab4b80a 100644 --- a/projects/addon-commerce/components/thumbnail-card/test/thumbnail-card.component.spec.ts +++ b/projects/addon-commerce/components/thumbnail-card/test/thumbnail-card.component.spec.ts @@ -1,12 +1,12 @@ -import {HarnessLoader} from '@angular/cdk/testing'; +import {type HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import { TuiThumbnailCardComponent, TuiThumbnailCardModule, } from '@taiga-ui/addon-commerce'; -import {TuiSizeS} from '@taiga-ui/core'; +import {type TuiSizeS} from '@taiga-ui/core'; import {TuiThumbnailCardHarness} from '@taiga-ui/testing'; describe('TuiThumbnailCard', () => { diff --git a/projects/addon-commerce/components/thumbnail-card/thumbnail-card.component.ts b/projects/addon-commerce/components/thumbnail-card/thumbnail-card.component.ts index 80b7a2f9bd11..8a9cf6391dd3 100644 --- a/projects/addon-commerce/components/thumbnail-card/thumbnail-card.component.ts +++ b/projects/addon-commerce/components/thumbnail-card/thumbnail-card.component.ts @@ -6,8 +6,8 @@ import { Input, } from '@angular/core'; import {TUI_INPUT_CARD_OPTIONS} from '@taiga-ui/addon-commerce/components/input-card'; -import {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; -import {TuiSizeS} from '@taiga-ui/core'; +import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; +import {type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'tui-thumbnail-card', diff --git a/projects/addon-commerce/constants/card-holder-mask.ts b/projects/addon-commerce/constants/card-holder-mask.ts index fcc1ece22be0..089d28033ff2 100644 --- a/projects/addon-commerce/constants/card-holder-mask.ts +++ b/projects/addon-commerce/constants/card-holder-mask.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import {type MaskitoOptions} from '@maskito/core'; const MAP: Record = { А: 'F', diff --git a/projects/addon-commerce/constants/default-card-validator.ts b/projects/addon-commerce/constants/default-card-validator.ts index c8840e65374c..6349af92341a 100644 --- a/projects/addon-commerce/constants/default-card-validator.ts +++ b/projects/addon-commerce/constants/default-card-validator.ts @@ -1,5 +1,5 @@ import {tuiIsCardLengthValid, tuiIsCardNumberValid} from '@taiga-ui/addon-commerce/utils'; -import {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {type TuiBooleanHandler} from '@taiga-ui/cdk'; export const tuiDefaultCardValidator: TuiBooleanHandler = card => card.length > 11 && tuiIsCardLengthValid(card) && tuiIsCardNumberValid(card); diff --git a/projects/addon-commerce/pipes/amount/amount.options.ts b/projects/addon-commerce/pipes/amount/amount.options.ts index 4f28de0ace8e..0d038de23a83 100644 --- a/projects/addon-commerce/pipes/amount/amount.options.ts +++ b/projects/addon-commerce/pipes/amount/amount.options.ts @@ -1,7 +1,10 @@ -import {Provider} from '@angular/core'; -import {TuiCurrencyVariants, TuiMoneySign} from '@taiga-ui/addon-commerce/types'; +import {type Provider} from '@angular/core'; +import { + type TuiCurrencyVariants, + type TuiMoneySign, +} from '@taiga-ui/addon-commerce/types'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiHorizontalDirection} from '@taiga-ui/core'; +import {type TuiHorizontalDirection} from '@taiga-ui/core'; export interface TuiAmountOptions { readonly currency: TuiCurrencyVariants; diff --git a/projects/addon-commerce/pipes/amount/amount.pipe.ts b/projects/addon-commerce/pipes/amount/amount.pipe.ts index 950ff7f22526..14b87521cff3 100644 --- a/projects/addon-commerce/pipes/amount/amount.pipe.ts +++ b/projects/addon-commerce/pipes/amount/amount.pipe.ts @@ -1,14 +1,14 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; -import {TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; +import {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types'; import {tuiFormatCurrency, tuiFormatSignSymbol} from '@taiga-ui/addon-commerce/utils'; import {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk'; import { TUI_NUMBER_FORMAT, - TuiDecimal, + type TuiDecimal, tuiFormatNumber, - TuiHorizontalDirection, + type TuiHorizontalDirection, } from '@taiga-ui/core'; -import {map, Observable} from 'rxjs'; +import {map, type Observable} from 'rxjs'; import {TUI_AMOUNT_OPTIONS} from './amount.options'; diff --git a/projects/addon-commerce/pipes/currency/currency.pipe.ts b/projects/addon-commerce/pipes/currency/currency.pipe.ts index b326f6cd95da..42743275e281 100644 --- a/projects/addon-commerce/pipes/currency/currency.pipe.ts +++ b/projects/addon-commerce/pipes/currency/currency.pipe.ts @@ -1,5 +1,5 @@ -import {Pipe, PipeTransform} from '@angular/core'; -import {TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types'; +import {Pipe, type PipeTransform} from '@angular/core'; +import {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types'; import {tuiFormatCurrency} from '@taiga-ui/addon-commerce/utils'; @Pipe({ diff --git a/projects/addon-commerce/pipes/format-card/format-card.pipe.ts b/projects/addon-commerce/pipes/format-card/format-card.pipe.ts index 6dff96febae1..03de9a559fbe 100644 --- a/projects/addon-commerce/pipes/format-card/format-card.pipe.ts +++ b/projects/addon-commerce/pipes/format-card/format-card.pipe.ts @@ -1,4 +1,4 @@ -import {Pipe, PipeTransform} from '@angular/core'; +import {Pipe, type PipeTransform} from '@angular/core'; @Pipe({name: 'tuiFormatCard'}) export class TuiFormatCardPipe implements PipeTransform { diff --git a/projects/addon-commerce/tokens/i18n.ts b/projects/addon-commerce/tokens/i18n.ts index 161459d0a15e..85078dbe26bb 100644 --- a/projects/addon-commerce/tokens/i18n.ts +++ b/projects/addon-commerce/tokens/i18n.ts @@ -1,6 +1,6 @@ import {tuiCreateToken, tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; import {tuiExtractI18n} from '@taiga-ui/i18n'; -import {Observable, of} from 'rxjs'; +import {type Observable, of} from 'rxjs'; /** * Number and card number i18n diff --git a/projects/addon-commerce/types/currency-variants.ts b/projects/addon-commerce/types/currency-variants.ts index 4cd1434fabff..65b44835543f 100644 --- a/projects/addon-commerce/types/currency-variants.ts +++ b/projects/addon-commerce/types/currency-variants.ts @@ -1,4 +1,4 @@ -import {TuiCurrency, TuiCurrencyCode} from '@taiga-ui/addon-commerce/enums'; +import {type TuiCurrency, type TuiCurrencyCode} from '@taiga-ui/addon-commerce/enums'; export type TuiCurrencyAutocompletion = | keyof Record diff --git a/projects/addon-commerce/types/money-sign.ts b/projects/addon-commerce/types/money-sign.ts index bc766d2af751..d7f7c047231e 100644 --- a/projects/addon-commerce/types/money-sign.ts +++ b/projects/addon-commerce/types/money-sign.ts @@ -1,4 +1,4 @@ -import {CHAR_MINUS, CHAR_PLUS} from '@taiga-ui/cdk'; +import {type CHAR_MINUS, type CHAR_PLUS} from '@taiga-ui/cdk'; export type TuiMoneySign = | 'always' diff --git a/projects/addon-commerce/utils/format-currency.ts b/projects/addon-commerce/utils/format-currency.ts index 932d7e13d0e9..db0369a915bf 100644 --- a/projects/addon-commerce/utils/format-currency.ts +++ b/projects/addon-commerce/utils/format-currency.ts @@ -1,4 +1,4 @@ -import {TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types'; +import {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types'; import {tuiIsString} from '@taiga-ui/cdk'; import {tuiGetCurrencySymbol} from './get-currency-symbol'; diff --git a/projects/addon-commerce/utils/format-sign-symbol.ts b/projects/addon-commerce/utils/format-sign-symbol.ts index 33462a83fdc9..e83df1cce113 100644 --- a/projects/addon-commerce/utils/format-sign-symbol.ts +++ b/projects/addon-commerce/utils/format-sign-symbol.ts @@ -1,4 +1,4 @@ -import {TuiMoneySign, TuiMoneySignSymbol} from '@taiga-ui/addon-commerce/types'; +import {type TuiMoneySign, type TuiMoneySignSymbol} from '@taiga-ui/addon-commerce/types'; import {CHAR_MINUS, CHAR_PLUS} from '@taiga-ui/cdk'; export function tuiFormatSignSymbol( diff --git a/projects/addon-commerce/utils/get-currency-symbol.ts b/projects/addon-commerce/utils/get-currency-symbol.ts index 60606a643d52..33564ee24501 100644 --- a/projects/addon-commerce/utils/get-currency-symbol.ts +++ b/projects/addon-commerce/utils/get-currency-symbol.ts @@ -1,5 +1,5 @@ import {TuiCurrency, TuiCurrencyCode} from '@taiga-ui/addon-commerce/enums'; -import {TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types'; +import {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types'; export function tuiGetCurrencySymbol(currency: TuiCurrencyVariants): string | null { switch (currency) { diff --git a/projects/addon-commerce/utils/get-payment-system.ts b/projects/addon-commerce/utils/get-payment-system.ts index 980f318518a1..8055f3f8b1fa 100644 --- a/projects/addon-commerce/utils/get-payment-system.ts +++ b/projects/addon-commerce/utils/get-payment-system.ts @@ -1,4 +1,4 @@ -import {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; +import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; // https://en.wikipedia.org/wiki/Payment_card_number#Issuer_identification_number_(IIN) export const TUI_BIN_TABLE: ReadonlyArray< diff --git a/projects/addon-commerce/utils/payment-system-icons.ts b/projects/addon-commerce/utils/payment-system-icons.ts index fde8b233d0f7..b4c66eba0600 100644 --- a/projects/addon-commerce/utils/payment-system-icons.ts +++ b/projects/addon-commerce/utils/payment-system-icons.ts @@ -1,4 +1,4 @@ -import {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; +import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; // TODO: Make it a token in 4.0, think about mono icons for card component export const TUI_PAYMENT_SYSTEM_ICONS: Record = { diff --git a/projects/addon-commerce/validators/card-expire.validator.ts b/projects/addon-commerce/validators/card-expire.validator.ts index 69e6a684e67f..4816403d84fa 100644 --- a/projects/addon-commerce/validators/card-expire.validator.ts +++ b/projects/addon-commerce/validators/card-expire.validator.ts @@ -1,4 +1,4 @@ -import {AbstractControl, ValidationErrors} from '@angular/forms'; +import {type AbstractControl, type ValidationErrors} from '@angular/forms'; import {tuiIsExpireValid} from '@taiga-ui/addon-commerce/utils'; import {TuiValidationError} from '@taiga-ui/cdk'; diff --git a/projects/addon-commerce/validators/card-number.validator.ts b/projects/addon-commerce/validators/card-number.validator.ts index 2ccdae8c79e7..5dff6a779920 100644 --- a/projects/addon-commerce/validators/card-number.validator.ts +++ b/projects/addon-commerce/validators/card-number.validator.ts @@ -1,4 +1,4 @@ -import {AbstractControl, ValidationErrors} from '@angular/forms'; +import {type AbstractControl, type ValidationErrors} from '@angular/forms'; import {tuiIsCardNumberValid} from '@taiga-ui/addon-commerce/utils'; import {TuiValidationError} from '@taiga-ui/cdk'; diff --git a/projects/addon-commerce/validators/luhn.validator.ts b/projects/addon-commerce/validators/luhn.validator.ts index bb640ca454d2..1cfb8c70a53d 100644 --- a/projects/addon-commerce/validators/luhn.validator.ts +++ b/projects/addon-commerce/validators/luhn.validator.ts @@ -1,7 +1,7 @@ -import {AbstractControl, ValidatorFn} from '@angular/forms'; +import {type AbstractControl, type ValidatorFn} from '@angular/forms'; import {tuiIsCardNumberValid} from '@taiga-ui/addon-commerce/utils'; import {TuiValidationError} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export function tuiCreateLuhnValidator(message: PolymorpheusContent): ValidatorFn { return ({value}: AbstractControl) => diff --git a/projects/addon-commerce/validators/test/card-expire.validator.spec.ts b/projects/addon-commerce/validators/test/card-expire.validator.spec.ts index 3594191d10f1..879c9f16d796 100644 --- a/projects/addon-commerce/validators/test/card-expire.validator.spec.ts +++ b/projects/addon-commerce/validators/test/card-expire.validator.spec.ts @@ -1,5 +1,5 @@ import {FormControl} from '@angular/forms'; -import {TuiCard, tuiCardExpireValidator} from '@taiga-ui/addon-commerce'; +import {type TuiCard, tuiCardExpireValidator} from '@taiga-ui/addon-commerce'; describe('tuiCardExpireValidator', () => { let control: FormControl | null = null; diff --git a/projects/addon-commerce/validators/test/card-number.validator.spec.ts b/projects/addon-commerce/validators/test/card-number.validator.spec.ts index b2703d57aebf..00107dccb883 100644 --- a/projects/addon-commerce/validators/test/card-number.validator.spec.ts +++ b/projects/addon-commerce/validators/test/card-number.validator.spec.ts @@ -1,5 +1,5 @@ import {FormControl} from '@angular/forms'; -import {TuiCard, tuiCardNumberValidator} from '@taiga-ui/addon-commerce'; +import {type TuiCard, tuiCardNumberValidator} from '@taiga-ui/addon-commerce'; describe('tuiCardNumberValidator', () => { let control: FormControl | null = null; diff --git a/projects/addon-doc/addon-doc.module.ts b/projects/addon-doc/addon-doc.module.ts index af0a791e80f0..c8b3d5bcdce2 100644 --- a/projects/addon-doc/addon-doc.module.ts +++ b/projects/addon-doc/addon-doc.module.ts @@ -1,4 +1,4 @@ -import {ModuleWithProviders, NgModule, Type} from '@angular/core'; +import {type ModuleWithProviders, NgModule, type Type} from '@angular/core'; import {RouterModule} from '@angular/router'; import { TuiDocCodeModule, diff --git a/projects/addon-doc/components/code/code.component.ts b/projects/addon-doc/components/code/code.component.ts index e042bd1d3728..5c23522985a4 100644 --- a/projects/addon-doc/components/code/code.component.ts +++ b/projects/addon-doc/components/code/code.component.ts @@ -5,7 +5,7 @@ import { inject, Input, } from '@angular/core'; -import {TuiRawLoaderContent} from '@taiga-ui/addon-doc/interfaces'; +import {type TuiRawLoaderContent} from '@taiga-ui/addon-doc/interfaces'; import {TUI_DOC_EXAMPLE_MARKDOWN_CODE_PROCESSOR} from '@taiga-ui/addon-doc/tokens'; import {tuiRawLoad} from '@taiga-ui/addon-doc/utils'; import type {TuiHandler} from '@taiga-ui/cdk'; diff --git a/projects/addon-doc/components/code/tests/code.component.spec.ts b/projects/addon-doc/components/code/tests/code.component.spec.ts index 22819ca29344..e96428717640 100644 --- a/projects/addon-doc/components/code/tests/code.component.spec.ts +++ b/projects/addon-doc/components/code/tests/code.component.spec.ts @@ -1,4 +1,4 @@ -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TuiDocCodeComponent} from '@taiga-ui/addon-doc'; import {HIGHLIGHT_OPTIONS, HighlightModule} from 'ngx-highlightjs'; diff --git a/projects/addon-doc/components/code/tests/highlight.spec.ts b/projects/addon-doc/components/code/tests/highlight.spec.ts index 0305f5fade92..32cb42daeb6b 100644 --- a/projects/addon-doc/components/code/tests/highlight.spec.ts +++ b/projects/addon-doc/components/code/tests/highlight.spec.ts @@ -1,6 +1,6 @@ -import {Component, DebugElement, Input} from '@angular/core'; +import {Component, type DebugElement, Input} from '@angular/core'; import { - ComponentFixture, + type ComponentFixture, fakeAsync, TestBed, tick, @@ -8,7 +8,7 @@ import { } from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import hljs from 'highlight.js'; -import {Highlight, HighlightLibrary, HighlightLoader} from 'ngx-highlightjs'; +import {Highlight, type HighlightLibrary, HighlightLoader} from 'ngx-highlightjs'; import {BehaviorSubject} from 'rxjs'; describe('Highlight Directive', () => { diff --git a/projects/addon-doc/components/copy/copy.component.ts b/projects/addon-doc/components/copy/copy.component.ts index f7882f86e518..9074d6bfda47 100644 --- a/projects/addon-doc/components/copy/copy.component.ts +++ b/projects/addon-doc/components/copy/copy.component.ts @@ -1,7 +1,7 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {ALWAYS_FALSE_HANDLER, TuiDestroyService, tuiPure} from '@taiga-ui/cdk'; import {TUI_COPY_TEXTS} from '@taiga-ui/kit'; -import {map, Observable, startWith, Subject, switchMap, timer} from 'rxjs'; +import {map, type Observable, startWith, Subject, switchMap, timer} from 'rxjs'; const COPIED_TIMEOUT = 1500; diff --git a/projects/addon-doc/components/demo/demo.component.ts b/projects/addon-doc/components/demo/demo.component.ts index 3b4bd167ba1f..88a9def2ef4c 100644 --- a/projects/addon-doc/components/demo/demo.component.ts +++ b/projects/addon-doc/components/demo/demo.component.ts @@ -9,13 +9,13 @@ import { HostListener, inject, Input, - OnInit, + type OnInit, TemplateRef, ViewChild, } from '@angular/core'; -import {AbstractControl, FormGroup} from '@angular/forms'; -import {Params, UrlSerializer, UrlTree} from '@angular/router'; -import {TuiDemoParams} from '@taiga-ui/addon-doc/interfaces'; +import {type AbstractControl, FormGroup} from '@angular/forms'; +import {type Params, UrlSerializer, type UrlTree} from '@angular/router'; +import {type TuiDemoParams} from '@taiga-ui/addon-doc/interfaces'; import {TUI_DOC_DEMO_TEXTS, TUI_DOC_URL_STATE_HANDLER} from '@taiga-ui/addon-doc/tokens'; import {tuiCoerceValueIsTrue} from '@taiga-ui/addon-doc/utils'; import { @@ -28,7 +28,7 @@ import { TuiResizeableDirective, tuiToInteger, } from '@taiga-ui/cdk'; -import {TuiBrightness, TuiModeDirective} from '@taiga-ui/core'; +import {type TuiBrightness, TuiModeDirective} from '@taiga-ui/core'; import {TUI_ARROW_OPTIONS} from '@taiga-ui/kit'; import {Subject} from 'rxjs'; diff --git a/projects/addon-doc/components/documentation/documentation-property-connector.directive.ts b/projects/addon-doc/components/documentation/documentation-property-connector.directive.ts index be3c4a51ea2b..4e5c1f570553 100644 --- a/projects/addon-doc/components/documentation/documentation-property-connector.directive.ts +++ b/projects/addon-doc/components/documentation/documentation-property-connector.directive.ts @@ -4,12 +4,12 @@ import { EventEmitter, inject, Input, - OnChanges, - OnInit, + type OnChanges, + type OnInit, Output, TemplateRef, } from '@angular/core'; -import {ActivatedRoute, Params, UrlSerializer} from '@angular/router'; +import {ActivatedRoute, type Params, UrlSerializer} from '@angular/router'; import {TUI_DOC_URL_STATE_HANDLER} from '@taiga-ui/addon-doc/tokens'; import {tuiCoerceValue, tuiInspectAny} from '@taiga-ui/addon-doc/utils'; import {tuiIsNumber} from '@taiga-ui/cdk'; diff --git a/projects/addon-doc/components/documentation/documentation.component.ts b/projects/addon-doc/components/documentation/documentation.component.ts index 3363dd98d337..e06096e61e20 100644 --- a/projects/addon-doc/components/documentation/documentation.component.ts +++ b/projects/addon-doc/components/documentation/documentation.component.ts @@ -1,13 +1,13 @@ import {animate, style, transition, trigger} from '@angular/animations'; import { - AfterContentInit, + type AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, inject, Input, - QueryList, + type QueryList, } from '@angular/core'; import { TUI_DOC_DOCUMENTATION_TEXTS, @@ -18,7 +18,7 @@ import { TuiDestroyService, tuiHexToRgb, tuiQueryListChanges, - TuiTypedMatcher, + type TuiTypedMatcher, tuiWatch, } from '@taiga-ui/cdk'; import {merge, switchMap, takeUntil} from 'rxjs'; diff --git a/projects/addon-doc/components/documentation/pipes/cleaner.pipe.ts b/projects/addon-doc/components/documentation/pipes/cleaner.pipe.ts index c062bd4b9e85..534ba2167bd5 100644 --- a/projects/addon-doc/components/documentation/pipes/cleaner.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/cleaner.pipe.ts @@ -1,4 +1,4 @@ -import {Pipe, PipeTransform} from '@angular/core'; +import {Pipe, type PipeTransform} from '@angular/core'; @Pipe({name: 'tuiShowCleanerPipe'}) export class TuiShowCleanerPipe implements PipeTransform { diff --git a/projects/addon-doc/components/documentation/pipes/color.pipe.ts b/projects/addon-doc/components/documentation/pipes/color.pipe.ts index 6a2ff7350b25..c495899350c4 100644 --- a/projects/addon-doc/components/documentation/pipes/color.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/color.pipe.ts @@ -1,4 +1,4 @@ -import {Pipe, PipeTransform} from '@angular/core'; +import {Pipe, type PipeTransform} from '@angular/core'; import {tuiRgbToHex} from '@taiga-ui/cdk'; @Pipe({name: 'tuiGetColorPipe'}) diff --git a/projects/addon-doc/components/documentation/pipes/inspect.pipe.ts b/projects/addon-doc/components/documentation/pipes/inspect.pipe.ts index b7d0e46a0915..6a3caecf2cfa 100644 --- a/projects/addon-doc/components/documentation/pipes/inspect.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/inspect.pipe.ts @@ -1,4 +1,4 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; import {tuiInspectAny} from '@taiga-ui/addon-doc/utils'; import {TUI_IS_E2E} from '@taiga-ui/cdk'; diff --git a/projects/addon-doc/components/documentation/pipes/opacity.pipe.ts b/projects/addon-doc/components/documentation/pipes/opacity.pipe.ts index dd27e0b22d03..78ef256f5bf0 100644 --- a/projects/addon-doc/components/documentation/pipes/opacity.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/opacity.pipe.ts @@ -1,4 +1,4 @@ -import {Pipe, PipeTransform} from '@angular/core'; +import {Pipe, type PipeTransform} from '@angular/core'; @Pipe({name: 'tuiGetOpacity'}) export class TuiGetOpacityPipe implements PipeTransform { diff --git a/projects/addon-doc/components/documentation/pipes/optional.pipe.ts b/projects/addon-doc/components/documentation/pipes/optional.pipe.ts index aebf91327eef..e6a79ad73f02 100644 --- a/projects/addon-doc/components/documentation/pipes/optional.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/optional.pipe.ts @@ -1,4 +1,4 @@ -import {Pipe, PipeTransform} from '@angular/core'; +import {Pipe, type PipeTransform} from '@angular/core'; @Pipe({name: 'tuiIsOptionalPipe'}) export class TuiIsOptionalPipe implements PipeTransform { diff --git a/projects/addon-doc/components/documentation/pipes/primitive-polymorpheus-content.pipe.ts b/projects/addon-doc/components/documentation/pipes/primitive-polymorpheus-content.pipe.ts index f86119c11d34..a6b617c3a73a 100644 --- a/projects/addon-doc/components/documentation/pipes/primitive-polymorpheus-content.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/primitive-polymorpheus-content.pipe.ts @@ -1,4 +1,4 @@ -import {Pipe, PipeTransform} from '@angular/core'; +import {Pipe, type PipeTransform} from '@angular/core'; import {tuiIsNumber, tuiIsString} from '@taiga-ui/cdk'; @Pipe({name: 'tuiIsPrimitivePolymorpheusContentPipe'}) diff --git a/projects/addon-doc/components/documentation/pipes/strip-optional.pipe.ts b/projects/addon-doc/components/documentation/pipes/strip-optional.pipe.ts index 6ed840014dd0..8e14ffcb312f 100644 --- a/projects/addon-doc/components/documentation/pipes/strip-optional.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/strip-optional.pipe.ts @@ -1,4 +1,4 @@ -import {Pipe, PipeTransform} from '@angular/core'; +import {Pipe, type PipeTransform} from '@angular/core'; @Pipe({name: 'tuiStripOptionalPipe'}) export class TuiStripOptionalPipe implements PipeTransform { diff --git a/projects/addon-doc/components/documentation/pipes/type-reference.pipe.ts b/projects/addon-doc/components/documentation/pipes/type-reference.pipe.ts index 7e476dbfce2d..ccc3209bb1f3 100644 --- a/projects/addon-doc/components/documentation/pipes/type-reference.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/type-reference.pipe.ts @@ -1,4 +1,4 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; import { TUI_DOC_TYPE_REFERENCE_HANDLER, TUI_DOC_TYPE_REFERENCE_PARSER, diff --git a/projects/addon-doc/components/example/example-get-tabs.pipe.ts b/projects/addon-doc/components/example/example-get-tabs.pipe.ts index 5f8d83e5eb98..00c337189f75 100644 --- a/projects/addon-doc/components/example/example-get-tabs.pipe.ts +++ b/projects/addon-doc/components/example/example-get-tabs.pipe.ts @@ -1,4 +1,4 @@ -import {Pipe, PipeTransform} from '@angular/core'; +import {Pipe, type PipeTransform} from '@angular/core'; @Pipe({name: 'tuiDocExampleGetTabs'}) export class TuiDocExampleGetTabsPipe implements PipeTransform { diff --git a/projects/addon-doc/components/example/example.component.ts b/projects/addon-doc/components/example/example.component.ts index 3600a357e30c..af3c13577e41 100644 --- a/projects/addon-doc/components/example/example.component.ts +++ b/projects/addon-doc/components/example/example.component.ts @@ -7,7 +7,7 @@ import { Input, } from '@angular/core'; import {LOCATION} from '@ng-web-apis/common'; -import {TuiDocExample} from '@taiga-ui/addon-doc/interfaces'; +import {type TuiDocExample} from '@taiga-ui/addon-doc/interfaces'; import { TUI_DOC_CODE_ACTIONS, TUI_DOC_CODE_EDITOR, @@ -15,11 +15,11 @@ import { TUI_DOC_EXAMPLE_TEXTS, } from '@taiga-ui/addon-doc/tokens'; import {tuiRawLoadRecord} from '@taiga-ui/addon-doc/utils'; -import {TUI_IS_E2E, TuiContext} from '@taiga-ui/cdk'; +import {TUI_IS_E2E, type TuiContext} from '@taiga-ui/cdk'; import {TuiAlertService} from '@taiga-ui/core'; import {TUI_COPY_TEXTS} from '@taiga-ui/kit'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {BehaviorSubject, map, Observable, Subject, switchMap} from 'rxjs'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {BehaviorSubject, map, type Observable, Subject, switchMap} from 'rxjs'; import {TUI_DOC_EXAMPLE_OPTIONS} from './example.options'; diff --git a/projects/addon-doc/components/example/example.options.ts b/projects/addon-doc/components/example/example.options.ts index dfc8f1d42f6d..8a7ec0cab38a 100644 --- a/projects/addon-doc/components/example/example.options.ts +++ b/projects/addon-doc/components/example/example.options.ts @@ -1,7 +1,7 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {TUI_EXAMPLE_PRIMARY_FILE_NAME} from '@taiga-ui/addon-doc/interfaces'; -import {TuiBooleanHandler, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiBooleanHandler, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiDocExampleOptions { codeEditorVisibilityHandler: TuiBooleanHandler>; diff --git a/projects/addon-doc/components/internal/source-code/source-code.component.ts b/projects/addon-doc/components/internal/source-code/source-code.component.ts index de47b1cc6a19..be159ac5ccb7 100644 --- a/projects/addon-doc/components/internal/source-code/source-code.component.ts +++ b/projects/addon-doc/components/internal/source-code/source-code.component.ts @@ -1,5 +1,5 @@ import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core'; -import {TuiDocSourceCodePathOptions} from '@taiga-ui/addon-doc/interfaces'; +import {type TuiDocSourceCodePathOptions} from '@taiga-ui/addon-doc/interfaces'; import { TUI_DOC_ICONS, TUI_DOC_SOURCE_CODE, diff --git a/projects/addon-doc/components/language-switcher/language-switcher.component.ts b/projects/addon-doc/components/language-switcher/language-switcher.component.ts index 8d60a3ca9491..4e3393d7e4e3 100644 --- a/projects/addon-doc/components/language-switcher/language-switcher.component.ts +++ b/projects/addon-doc/components/language-switcher/language-switcher.component.ts @@ -7,7 +7,11 @@ import { TuiFlagPipe, TuiFlagPipeModule, } from '@taiga-ui/core'; -import {TuiCountryIsoCode, TuiLanguageName, TuiLanguageSwitcher} from '@taiga-ui/i18n'; +import { + TuiCountryIsoCode, + type TuiLanguageName, + TuiLanguageSwitcher, +} from '@taiga-ui/i18n'; import {TuiSelectModule} from '@taiga-ui/kit'; @Component({ diff --git a/projects/addon-doc/components/language-switcher/tests/language-switcher.component.spec.ts b/projects/addon-doc/components/language-switcher/tests/language-switcher.component.spec.ts index 5950a580de86..765812f7c38a 100644 --- a/projects/addon-doc/components/language-switcher/tests/language-switcher.component.spec.ts +++ b/projects/addon-doc/components/language-switcher/tests/language-switcher.component.spec.ts @@ -1,4 +1,4 @@ -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {ReactiveFormsModule} from '@angular/forms'; import {TuiLanguageSwitcherComponent} from '@taiga-ui/addon-doc'; import {TuiDataListModule} from '@taiga-ui/core'; diff --git a/projects/addon-doc/components/main/main.component.ts b/projects/addon-doc/components/main/main.component.ts index 0a49c2cc260f..a11ce7c32678 100644 --- a/projects/addon-doc/components/main/main.component.ts +++ b/projects/addon-doc/components/main/main.component.ts @@ -9,7 +9,7 @@ import { import {TuiThemeNightService, TuiThemeService} from '@taiga-ui/addon-doc/services'; import {TUI_DOC_ICONS} from '@taiga-ui/addon-doc/tokens'; import {TuiSwipeService} from '@taiga-ui/cdk'; -import {TuiBrightness, TuiModeDirective} from '@taiga-ui/core'; +import {type TuiBrightness, TuiModeDirective} from '@taiga-ui/core'; import {distinctUntilChanged, map, share, startWith} from 'rxjs'; @Component({ diff --git a/projects/addon-doc/components/navigation/navigation.component.ts b/projects/addon-doc/components/navigation/navigation.component.ts index d11c3f0b247d..7b84c9ace1c8 100644 --- a/projects/addon-doc/components/navigation/navigation.component.ts +++ b/projects/addon-doc/components/navigation/navigation.component.ts @@ -9,13 +9,13 @@ import { import {FormControl} from '@angular/forms'; import {Title} from '@angular/platform-browser'; import {ActivatedRoute, Router, Scroll} from '@angular/router'; -import {TuiDocPage} from '@taiga-ui/addon-doc/interfaces'; +import {type TuiDocPage} from '@taiga-ui/addon-doc/interfaces'; import { TUI_DOC_ICONS, TUI_DOC_PAGE_LOADED, TUI_DOC_SEARCH_TEXT, } from '@taiga-ui/addon-doc/tokens'; -import {TuiDocPages} from '@taiga-ui/addon-doc/types'; +import {type TuiDocPages} from '@taiga-ui/addon-doc/types'; import {tuiTransliterateKeyboardLayout} from '@taiga-ui/addon-doc/utils'; import {TuiSidebarDirective} from '@taiga-ui/addon-mobile'; import { @@ -25,13 +25,13 @@ import { tuiUniqBy, tuiWatch, } from '@taiga-ui/cdk'; -import {TUI_COMMON_ICONS, TuiBrightness, TuiModeDirective} from '@taiga-ui/core'; -import {TuiInputComponent} from '@taiga-ui/kit'; +import {TUI_COMMON_ICONS, type TuiBrightness, TuiModeDirective} from '@taiga-ui/core'; +import {type TuiInputComponent} from '@taiga-ui/kit'; import { combineLatest, filter, map, - Observable, + type Observable, startWith, switchMap, take, diff --git a/projects/addon-doc/components/navigation/navigation.providers.ts b/projects/addon-doc/components/navigation/navigation.providers.ts index a08474638073..54a597094cea 100644 --- a/projects/addon-doc/components/navigation/navigation.providers.ts +++ b/projects/addon-doc/components/navigation/navigation.providers.ts @@ -1,9 +1,9 @@ -import {InjectionToken, Provider} from '@angular/core'; +import {InjectionToken, type Provider} from '@angular/core'; import {ActivatedRoute, NavigationEnd, Router} from '@angular/router'; import {TUI_DOC_PAGES, TUI_DOC_TITLE} from '@taiga-ui/addon-doc/tokens'; -import {TuiDocPages} from '@taiga-ui/addon-doc/types'; +import {type TuiDocPages} from '@taiga-ui/addon-doc/types'; import {TuiDestroyService, tuiIsPresent} from '@taiga-ui/cdk'; -import {filter, map, mergeMap, Observable, takeUntil} from 'rxjs'; +import {filter, map, mergeMap, type Observable, takeUntil} from 'rxjs'; function labelsProviderFactory(pages: TuiDocPages): readonly string[] { return pages diff --git a/projects/addon-doc/components/page/page.component.ts b/projects/addon-doc/components/page/page.component.ts index 1a299896e72e..8a50f8475c82 100644 --- a/projects/addon-doc/components/page/page.component.ts +++ b/projects/addon-doc/components/page/page.component.ts @@ -4,7 +4,7 @@ import { ContentChildren, inject, Input, - QueryList, + type QueryList, } from '@angular/core'; import {TUI_DOC_DEFAULT_TABS} from '@taiga-ui/addon-doc/tokens'; import {EMPTY_QUERY} from '@taiga-ui/cdk'; diff --git a/projects/addon-doc/components/page/page.providers.ts b/projects/addon-doc/components/page/page.providers.ts index c7257e36818e..8be484f20e08 100644 --- a/projects/addon-doc/components/page/page.providers.ts +++ b/projects/addon-doc/components/page/page.providers.ts @@ -1,4 +1,4 @@ -import {ElementRef, InjectionToken, Provider} from '@angular/core'; +import {ElementRef, InjectionToken, type Provider} from '@angular/core'; import {TUI_DOC_SEE_ALSO} from '@taiga-ui/addon-doc/tokens'; /** diff --git a/projects/addon-doc/components/page/tests/page.component.spec.ts b/projects/addon-doc/components/page/tests/page.component.spec.ts index 28ef44d866b6..de28d4bdbf0b 100644 --- a/projects/addon-doc/components/page/tests/page.component.spec.ts +++ b/projects/addon-doc/components/page/tests/page.component.spec.ts @@ -1,4 +1,4 @@ -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {PAGE_SEE_ALSO, TuiDocPageComponent} from '@taiga-ui/addon-doc'; import {TUI_DOC_DEFAULT_TABS} from '@taiga-ui/addon-doc/tokens'; import {EMPTY_QUERY} from '@taiga-ui/cdk'; diff --git a/projects/addon-doc/interfaces/code-editor.ts b/projects/addon-doc/interfaces/code-editor.ts index e1c0c70c681d..279a8cc33a71 100644 --- a/projects/addon-doc/interfaces/code-editor.ts +++ b/projects/addon-doc/interfaces/code-editor.ts @@ -1,4 +1,4 @@ -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiCodeEditor { readonly content?: PolymorpheusContent; diff --git a/projects/addon-doc/interfaces/page.ts b/projects/addon-doc/interfaces/page.ts index b80d8b96cfca..bb39727d2533 100644 --- a/projects/addon-doc/interfaces/page.ts +++ b/projects/addon-doc/interfaces/page.ts @@ -1,4 +1,4 @@ -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiDocPageBase { readonly section?: string; diff --git a/projects/addon-doc/pipes/markdown/markdown.pipe.ts b/projects/addon-doc/pipes/markdown/markdown.pipe.ts index 13a385e839c8..8177089204b4 100644 --- a/projects/addon-doc/pipes/markdown/markdown.pipe.ts +++ b/projects/addon-doc/pipes/markdown/markdown.pipe.ts @@ -1,11 +1,11 @@ -import {inject, Pipe, PipeTransform, SecurityContext} from '@angular/core'; +import {inject, Pipe, type PipeTransform, SecurityContext} from '@angular/core'; import {DomSanitizer} from '@angular/platform-browser'; -import {TuiRawLoaderContent} from '@taiga-ui/addon-doc/interfaces'; +import {type TuiRawLoaderContent} from '@taiga-ui/addon-doc/interfaces'; import {tuiRawLoad} from '@taiga-ui/addon-doc/utils'; -import {TuiSafeHtml, TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiSafeHtml, type TuiStringHandler} from '@taiga-ui/cdk'; import {TUI_SANITIZER} from '@taiga-ui/core'; import {marked, Renderer} from 'marked'; -import {identity, map, Observable, of, switchMap} from 'rxjs'; +import {identity, map, type Observable, of, switchMap} from 'rxjs'; @Pipe({ standalone: true, diff --git a/projects/addon-doc/tokens/code-actions.ts b/projects/addon-doc/tokens/code-actions.ts index cc4e4d7fd4dc..3ddeb2bbe46f 100644 --- a/projects/addon-doc/tokens/code-actions.ts +++ b/projects/addon-doc/tokens/code-actions.ts @@ -1,5 +1,5 @@ -import {TuiContext, tuiCreateToken} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiContext, tuiCreateToken} from '@taiga-ui/cdk'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; /** * Code actions for the opened tab with code example diff --git a/projects/addon-doc/tokens/code-editor.ts b/projects/addon-doc/tokens/code-editor.ts index 9b791c584f4e..298b57be4895 100644 --- a/projects/addon-doc/tokens/code-editor.ts +++ b/projects/addon-doc/tokens/code-editor.ts @@ -1,5 +1,5 @@ import {InjectionToken} from '@angular/core'; -import {TuiCodeEditor} from '@taiga-ui/addon-doc/interfaces'; +import {type TuiCodeEditor} from '@taiga-ui/addon-doc/interfaces'; /** * Service for opening online IDE e.g. Stackblitz diff --git a/projects/addon-doc/tokens/doc-icons.ts b/projects/addon-doc/tokens/doc-icons.ts index 72dfba82668a..ab229098362f 100644 --- a/projects/addon-doc/tokens/doc-icons.ts +++ b/projects/addon-doc/tokens/doc-icons.ts @@ -1,4 +1,4 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiDocIcons { diff --git a/projects/addon-doc/tokens/example-content-processor.ts b/projects/addon-doc/tokens/example-content-processor.ts index 99c929d2dfed..99b96edacc57 100644 --- a/projects/addon-doc/tokens/example-content-processor.ts +++ b/projects/addon-doc/tokens/example-content-processor.ts @@ -1,5 +1,5 @@ import {tuiTryParseMarkdownCodeBlock} from '@taiga-ui/addon-doc/utils'; -import {tuiCreateToken, TuiHandler} from '@taiga-ui/cdk'; +import {tuiCreateToken, type TuiHandler} from '@taiga-ui/cdk'; import {identity} from 'rxjs'; /** diff --git a/projects/addon-doc/tokens/excluded-properties.ts b/projects/addon-doc/tokens/excluded-properties.ts index f1e734141231..b462e63a66ca 100644 --- a/projects/addon-doc/tokens/excluded-properties.ts +++ b/projects/addon-doc/tokens/excluded-properties.ts @@ -1,4 +1,4 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken} from '@taiga-ui/cdk'; /** diff --git a/projects/addon-doc/tokens/logo.ts b/projects/addon-doc/tokens/logo.ts index ff26f6094955..0353a3a5bc57 100644 --- a/projects/addon-doc/tokens/logo.ts +++ b/projects/addon-doc/tokens/logo.ts @@ -1,5 +1,5 @@ import {tuiCreateToken} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; /** * Main logo diff --git a/projects/addon-doc/tokens/pages.ts b/projects/addon-doc/tokens/pages.ts index ec71c39333a3..ea8bb28cc02c 100644 --- a/projects/addon-doc/tokens/pages.ts +++ b/projects/addon-doc/tokens/pages.ts @@ -1,5 +1,5 @@ -import {inject, InjectionToken} from '@angular/core'; -import {TuiDocPage} from '@taiga-ui/addon-doc/interfaces'; +import {inject, type InjectionToken} from '@angular/core'; +import {type TuiDocPage} from '@taiga-ui/addon-doc/interfaces'; import type {TuiDocPages} from '@taiga-ui/addon-doc/types'; import {tuiToFlatMapPages} from '@taiga-ui/addon-doc/utils'; import {tuiCreateToken, tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; diff --git a/projects/addon-doc/tokens/source-code.ts b/projects/addon-doc/tokens/source-code.ts index ca55f5ea290f..f2d46ab98898 100644 --- a/projects/addon-doc/tokens/source-code.ts +++ b/projects/addon-doc/tokens/source-code.ts @@ -1,6 +1,6 @@ -import {TuiDocSourceCodePathOptions} from '@taiga-ui/addon-doc/interfaces'; +import {type TuiDocSourceCodePathOptions} from '@taiga-ui/addon-doc/interfaces'; import {tuiCreateToken} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; /** * Source code link diff --git a/projects/addon-doc/tokens/type-reference-handler.ts b/projects/addon-doc/tokens/type-reference-handler.ts index 8ebf176e1c45..1ea238324465 100644 --- a/projects/addon-doc/tokens/type-reference-handler.ts +++ b/projects/addon-doc/tokens/type-reference-handler.ts @@ -1,8 +1,8 @@ import { - TuiDocTypeReferenceParsed, + type TuiDocTypeReferenceParsed, tuiTypeReferenceParser, } from '@taiga-ui/addon-doc/utils'; -import {tuiCreateToken, TuiHandler, TuiStringHandler} from '@taiga-ui/cdk'; +import {tuiCreateToken, type TuiHandler, type TuiStringHandler} from '@taiga-ui/cdk'; export const TUI_DOC_TYPE_REFERENCE_HANDLER = tuiCreateToken): Routes { return [ diff --git a/projects/addon-doc/utils/is-page-group.ts b/projects/addon-doc/utils/is-page-group.ts index 3b603434cbc8..5aaece6140f1 100644 --- a/projects/addon-doc/utils/is-page-group.ts +++ b/projects/addon-doc/utils/is-page-group.ts @@ -1,4 +1,4 @@ -import {TuiDocPage, TuiDocPageGroup} from '@taiga-ui/addon-doc/interfaces'; +import {type TuiDocPage, type TuiDocPageGroup} from '@taiga-ui/addon-doc/interfaces'; export function tuiIsPageGroup( page: TuiDocPage | TuiDocPageGroup, diff --git a/projects/addon-doc/utils/parse-code-block.ts b/projects/addon-doc/utils/parse-code-block.ts index d5196f3e2fe5..e1faed9ed0fb 100644 --- a/projects/addon-doc/utils/parse-code-block.ts +++ b/projects/addon-doc/utils/parse-code-block.ts @@ -1,5 +1,5 @@ import MarkdownIt from 'markdown-it'; -import Token from 'markdown-it/lib/token'; +import type Token from 'markdown-it/lib/token'; export function tuiTryParseMarkdownCodeBlock(text = ''): string[] { const tokens: Token[] = new MarkdownIt().parse(text, {}); diff --git a/projects/addon-doc/utils/provide-route-page-tab.ts b/projects/addon-doc/utils/provide-route-page-tab.ts index 84046d6e067b..037d9014c4b8 100644 --- a/projects/addon-doc/utils/provide-route-page-tab.ts +++ b/projects/addon-doc/utils/provide-route-page-tab.ts @@ -1,6 +1,6 @@ -import {Type} from '@angular/core'; -import {DefaultExport, Route} from '@angular/router'; -import {Observable} from 'rxjs'; +import {type Type} from '@angular/core'; +import {type DefaultExport, type Route} from '@angular/router'; +import {type Observable} from 'rxjs'; interface Options { path?: string; diff --git a/projects/addon-doc/utils/raw-load.ts b/projects/addon-doc/utils/raw-load.ts index 98d97fd3443d..01e2ab5a02d4 100644 --- a/projects/addon-doc/utils/raw-load.ts +++ b/projects/addon-doc/utils/raw-load.ts @@ -1,4 +1,4 @@ -import {TuiRawLoaderContent} from '@taiga-ui/addon-doc/interfaces'; +import {type TuiRawLoaderContent} from '@taiga-ui/addon-doc/interfaces'; export async function tuiRawLoad(content: TuiRawLoaderContent): Promise { return content instanceof Promise ? (await content).default : content; diff --git a/projects/addon-doc/utils/sort-pages.ts b/projects/addon-doc/utils/sort-pages.ts index ed6b1699d96f..698b4001bff1 100644 --- a/projects/addon-doc/utils/sort-pages.ts +++ b/projects/addon-doc/utils/sort-pages.ts @@ -1,4 +1,4 @@ -import {TuiDocPage, TuiDocPageGroup} from '@taiga-ui/addon-doc/interfaces'; +import {type TuiDocPage, type TuiDocPageGroup} from '@taiga-ui/addon-doc/interfaces'; import {tuiIsPageGroup} from './is-page-group'; diff --git a/projects/addon-mobile/components/app-bar/app-bar.component.ts b/projects/addon-mobile/components/app-bar/app-bar.component.ts index f6fc7458d4c2..d82b382e903a 100644 --- a/projects/addon-mobile/components/app-bar/app-bar.component.ts +++ b/projects/addon-mobile/components/app-bar/app-bar.component.ts @@ -1,9 +1,9 @@ import { ChangeDetectionStrategy, Component, - ElementRef, + type ElementRef, inject, - QueryList, + type QueryList, ViewChildren, } from '@angular/core'; import {MutationObserverService} from '@ng-web-apis/mutation-observer'; diff --git a/projects/addon-mobile/components/app-bar/app-bar.providers.ts b/projects/addon-mobile/components/app-bar/app-bar.providers.ts index b3691a34dc32..f51cf3f75755 100644 --- a/projects/addon-mobile/components/app-bar/app-bar.providers.ts +++ b/projects/addon-mobile/components/app-bar/app-bar.providers.ts @@ -1,4 +1,4 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import { MUTATION_OBSERVER_INIT, MutationObserverService, diff --git a/projects/addon-mobile/components/mobile-calendar-dialog/mobile-calendar-dialog.component.ts b/projects/addon-mobile/components/mobile-calendar-dialog/mobile-calendar-dialog.component.ts index 39b26a9a5f65..b9e31477c7ba 100644 --- a/projects/addon-mobile/components/mobile-calendar-dialog/mobile-calendar-dialog.component.ts +++ b/projects/addon-mobile/components/mobile-calendar-dialog/mobile-calendar-dialog.component.ts @@ -3,12 +3,12 @@ import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - TuiBooleanHandler, - TuiDay, - TuiDayRange, + type TuiBooleanHandler, + type TuiDay, + type TuiDayRange, } from '@taiga-ui/cdk'; -import {TuiDialogContext} from '@taiga-ui/core'; -import {TuiMobileCalendarData} from '@taiga-ui/kit'; +import {type TuiDialogContext} from '@taiga-ui/core'; +import {type TuiMobileCalendarData} from '@taiga-ui/kit'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; @Component({ diff --git a/projects/addon-mobile/components/mobile-calendar/mobile-calendar.component.ts b/projects/addon-mobile/components/mobile-calendar/mobile-calendar.component.ts index fb4a40164f43..daeab052d5af 100644 --- a/projects/addon-mobile/components/mobile-calendar/mobile-calendar.component.ts +++ b/projects/addon-mobile/components/mobile-calendar/mobile-calendar.component.ts @@ -1,7 +1,7 @@ -import {CdkVirtualScrollViewport} from '@angular/cdk/scrolling'; +import {type CdkVirtualScrollViewport} from '@angular/cdk/scrolling'; import {DOCUMENT} from '@angular/common'; import { - AfterViewInit, + type AfterViewInit, ChangeDetectionStrategy, Component, EventEmitter, @@ -18,13 +18,13 @@ import { TUI_IS_E2E, TUI_IS_IOS, TUI_LAST_DAY, - TuiBooleanHandler, + type TuiBooleanHandler, TuiDay, TuiDayRange, TuiDestroyService, TuiMonth, tuiTypedFromEvent, - TuiTypedMapper, + type TuiTypedMapper, tuiZonefree, } from '@taiga-ui/cdk'; import { @@ -47,7 +47,7 @@ import { identity, map, mergeMap, - MonoTypeOperatorFunction, + type MonoTypeOperatorFunction, race, switchMap, take, diff --git a/projects/addon-mobile/components/mobile-calendar/mobile-calendar.providers.ts b/projects/addon-mobile/components/mobile-calendar/mobile-calendar.providers.ts index 63c6e5d2009b..595fee59096c 100644 --- a/projects/addon-mobile/components/mobile-calendar/mobile-calendar.providers.ts +++ b/projects/addon-mobile/components/mobile-calendar/mobile-calendar.providers.ts @@ -1,14 +1,14 @@ import {VIRTUAL_SCROLL_STRATEGY} from '@angular/cdk/scrolling'; -import {ChangeDetectorRef, InjectionToken, Optional, Provider} from '@angular/core'; +import {ChangeDetectorRef, InjectionToken, Optional, type Provider} from '@angular/core'; import { TUI_IS_IOS, - TuiDayRange, + type TuiDayRange, TuiDestroyService, TuiScrollService, tuiWatch, } from '@taiga-ui/cdk'; import {TUI_CALENDAR_DATE_STREAM} from '@taiga-ui/kit'; -import {EMPTY, Observable, takeUntil} from 'rxjs'; +import {EMPTY, type Observable, takeUntil} from 'rxjs'; import {TuiMobileCalendarStrategy} from './mobile-calendar.strategy'; diff --git a/projects/addon-mobile/components/mobile-calendar/mobile-calendar.strategy.ts b/projects/addon-mobile/components/mobile-calendar/mobile-calendar.strategy.ts index 43237e6957d5..b8033036416e 100644 --- a/projects/addon-mobile/components/mobile-calendar/mobile-calendar.strategy.ts +++ b/projects/addon-mobile/components/mobile-calendar/mobile-calendar.strategy.ts @@ -1,6 +1,9 @@ -import {CdkVirtualScrollViewport, VirtualScrollStrategy} from '@angular/cdk/scrolling'; -import {MONTHS_IN_YEAR, tuiPure, TuiScrollService} from '@taiga-ui/cdk'; -import {distinctUntilChanged, Observable, Subject, takeUntil} from 'rxjs'; +import { + type CdkVirtualScrollViewport, + type VirtualScrollStrategy, +} from '@angular/cdk/scrolling'; +import {MONTHS_IN_YEAR, tuiPure, type TuiScrollService} from '@taiga-ui/cdk'; +import {distinctUntilChanged, type Observable, Subject, takeUntil} from 'rxjs'; import { ANDROID_CYCLE, diff --git a/projects/addon-mobile/components/mobile-dialog/mobile-dialog.component.ts b/projects/addon-mobile/components/mobile-dialog/mobile-dialog.component.ts index 81a23e5c1fef..d165b030c89b 100644 --- a/projects/addon-mobile/components/mobile-dialog/mobile-dialog.component.ts +++ b/projects/addon-mobile/components/mobile-dialog/mobile-dialog.component.ts @@ -1,8 +1,8 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; -import {TUI_IS_IOS, TuiPopover} from '@taiga-ui/cdk'; +import {TUI_IS_IOS, type TuiPopover} from '@taiga-ui/cdk'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; -import {TuiMobileDialogOptions} from './mobile-dialog.options'; +import {type TuiMobileDialogOptions} from './mobile-dialog.options'; @Component({ selector: 'tui-mobile-dialog', diff --git a/projects/addon-mobile/components/mobile-dialog/mobile-dialog.options.ts b/projects/addon-mobile/components/mobile-dialog/mobile-dialog.options.ts index 6bf0839e424f..765f5ddd61ac 100644 --- a/projects/addon-mobile/components/mobile-dialog/mobile-dialog.options.ts +++ b/projects/addon-mobile/components/mobile-dialog/mobile-dialog.options.ts @@ -1,4 +1,4 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiMobileDialogOptions { diff --git a/projects/addon-mobile/components/mobile-dialog/mobile-dialog.service.ts b/projects/addon-mobile/components/mobile-dialog/mobile-dialog.service.ts index dcec46f3c87c..32488cb1ddc6 100644 --- a/projects/addon-mobile/components/mobile-dialog/mobile-dialog.service.ts +++ b/projects/addon-mobile/components/mobile-dialog/mobile-dialog.service.ts @@ -1,11 +1,14 @@ import {inject, Injectable} from '@angular/core'; -import {TuiPopoverContext, TuiPopoverService} from '@taiga-ui/cdk'; +import {type TuiPopoverContext, TuiPopoverService} from '@taiga-ui/cdk'; import {TUI_DIALOGS} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {Observable} from 'rxjs'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Observable} from 'rxjs'; import {TuiMobileDialogComponent} from './mobile-dialog.component'; -import {TUI_MOBILE_DIALOG_OPTIONS, TuiMobileDialogOptions} from './mobile-dialog.options'; +import { + TUI_MOBILE_DIALOG_OPTIONS, + type TuiMobileDialogOptions, +} from './mobile-dialog.options'; @Injectable({ providedIn: 'root', diff --git a/projects/addon-mobile/components/mobile-dialog/test/mobile-dialog.component.spec.ts b/projects/addon-mobile/components/mobile-dialog/test/mobile-dialog.component.spec.ts index d42cc75909ac..b0b66c8eaf3d 100644 --- a/projects/addon-mobile/components/mobile-dialog/test/mobile-dialog.component.spec.ts +++ b/projects/addon-mobile/components/mobile-dialog/test/mobile-dialog.component.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiRootModule} from '@taiga-ui/core'; import {TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/addon-mobile/components/pull-to-refresh/loader-android/loader-android.component.ts b/projects/addon-mobile/components/pull-to-refresh/loader-android/loader-android.component.ts index f9dc2a980c75..3906960e2a7f 100644 --- a/projects/addon-mobile/components/pull-to-refresh/loader-android/loader-android.component.ts +++ b/projects/addon-mobile/components/pull-to-refresh/loader-android/loader-android.component.ts @@ -1,6 +1,6 @@ import {NgIf} from '@angular/common'; import {ChangeDetectionStrategy, Component, HostBinding, inject} from '@angular/core'; -import {TuiContext} from '@taiga-ui/cdk'; +import {type TuiContext} from '@taiga-ui/cdk'; import {TuiLoaderModule} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT, PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; diff --git a/projects/addon-mobile/components/pull-to-refresh/loader-ios/loader-ios.component.ts b/projects/addon-mobile/components/pull-to-refresh/loader-ios/loader-ios.component.ts index 8dff62b06f35..557e6eb0195f 100644 --- a/projects/addon-mobile/components/pull-to-refresh/loader-ios/loader-ios.component.ts +++ b/projects/addon-mobile/components/pull-to-refresh/loader-ios/loader-ios.component.ts @@ -1,5 +1,5 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; -import {TuiContext} from '@taiga-ui/cdk'; +import {type TuiContext} from '@taiga-ui/cdk'; import {POLYMORPHEUS_CONTEXT, PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; import {TUI_PULL_TO_REFRESH_THRESHOLD} from '../pull-to-refresh.providers'; diff --git a/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.component.ts b/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.component.ts index 68478572c5f6..6160ed70d2f9 100644 --- a/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.component.ts +++ b/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.component.ts @@ -8,16 +8,23 @@ import { } from '@angular/core'; import { TUI_IS_IOS, - TuiContext, + type TuiContext, TuiDestroyService, - TuiHandler, + type TuiHandler, tuiPx, tuiScrollFrom, tuiZonefree, } from '@taiga-ui/cdk'; import {TUI_SCROLL_REF} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {distinctUntilChanged, filter, map, Observable, startWith, takeUntil} from 'rxjs'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import { + distinctUntilChanged, + filter, + map, + type Observable, + startWith, + takeUntil, +} from 'rxjs'; import { TUI_PULL_TO_REFRESH_COMPONENT, diff --git a/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.providers.ts b/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.providers.ts index 0aa9ebb0d246..f5ef046765d2 100644 --- a/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.providers.ts +++ b/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.providers.ts @@ -1,12 +1,12 @@ import {inject} from '@angular/core'; import { TUI_IS_IOS, - TuiContext, + type TuiContext, tuiCreateToken, tuiCreateTokenFromFactory, } from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {EMPTY, Observable} from 'rxjs'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {EMPTY, type Observable} from 'rxjs'; import {TUI_ANDROID_LOADER} from './loader-android/loader-android.component'; import {TUI_IOS_LOADER} from './loader-ios/loader-ios.component'; diff --git a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.component.ts b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.component.ts index b4f00385b08e..48c129ff3977 100644 --- a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.component.ts +++ b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.component.ts @@ -1,16 +1,16 @@ import { - AfterViewInit, + type AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, HostBinding, HostListener, inject, - QueryList, + type QueryList, ViewChild, ViewChildren, } from '@angular/core'; -import {EMPTY_QUERY, TuiPopover, tuiPure} from '@taiga-ui/cdk'; +import {EMPTY_QUERY, type TuiPopover, tuiPure} from '@taiga-ui/cdk'; import { TUI_ANIMATIONS_SPEED, TUI_CLOSE_WORD, @@ -22,7 +22,7 @@ import {shouldCall} from '@tinkoff/ng-event-plugins'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; import {BehaviorSubject} from 'rxjs'; -import {TuiSheetDialogOptions} from './sheet-dialog.options'; +import {type TuiSheetDialogOptions} from './sheet-dialog.options'; // So we re-enter ngZone and trigger change detection function isCloseable(this: TuiSheetDialogComponent): boolean { diff --git a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.directive.ts b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.directive.ts index b04db754c5b0..fe9f4e027aaa 100644 --- a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.directive.ts +++ b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {tuiAsPopover, TuiPopoverDirective} from '@taiga-ui/cdk'; -import {TuiSheetDialogOptions} from './sheet-dialog.options'; +import {type TuiSheetDialogOptions} from './sheet-dialog.options'; import {TuiSheetDialogService} from './sheet-dialog.service'; @Directive({ diff --git a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.options.ts b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.options.ts index ea2f0feded63..4a96b2d38e80 100644 --- a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.options.ts +++ b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiSheetDialogOptions { readonly closeable: boolean; diff --git a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.service.ts b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.service.ts index 77e73cd26b2a..2b1a389601e4 100644 --- a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.service.ts +++ b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.service.ts @@ -3,7 +3,10 @@ import {TuiPopoverService} from '@taiga-ui/cdk'; import {TUI_DIALOGS} from '@taiga-ui/core'; import {TuiSheetDialogComponent} from './sheet-dialog.component'; -import {TUI_SHEET_DIALOG_OPTIONS, TuiSheetDialogOptions} from './sheet-dialog.options'; +import { + TUI_SHEET_DIALOG_OPTIONS, + type TuiSheetDialogOptions, +} from './sheet-dialog.options'; @Injectable({ providedIn: 'root', diff --git a/projects/addon-mobile/components/sheet/components/sheet-heading/sheet-heading.component.ts b/projects/addon-mobile/components/sheet/components/sheet-heading/sheet-heading.component.ts index d0d8d3c8f2b5..15ef79f84223 100644 --- a/projects/addon-mobile/components/sheet/components/sheet-heading/sheet-heading.component.ts +++ b/projects/addon-mobile/components/sheet/components/sheet-heading/sheet-heading.component.ts @@ -1,5 +1,5 @@ import { - AfterViewInit, + type AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, diff --git a/projects/addon-mobile/components/sheet/components/sheet/sheet.component.ts b/projects/addon-mobile/components/sheet/components/sheet/sheet.component.ts index d7dd63545384..04bc3c6f04c5 100644 --- a/projects/addon-mobile/components/sheet/components/sheet/sheet.component.ts +++ b/projects/addon-mobile/components/sheet/components/sheet/sheet.component.ts @@ -1,5 +1,5 @@ import { - AfterViewInit, + type AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, @@ -7,7 +7,7 @@ import { inject, Input, NgZone, - QueryList, + type QueryList, ViewChild, ViewChildren, } from '@angular/core'; @@ -22,7 +22,7 @@ import {tuiSlideInTop} from '@taiga-ui/core'; import {TUI_MORE_WORD} from '@taiga-ui/kit'; import {map, takeUntil, timer} from 'rxjs'; -import {TuiSheet, TuiSheetRequiredProps} from '../../sheet'; +import {type TuiSheet, type TuiSheetRequiredProps} from '../../sheet'; import {TUI_SHEET_SCROLL} from '../../sheet-tokens'; import {TUI_SHEET_ID} from '../sheet-heading/sheet-heading.component'; import {TUI_SHEET_PROVIDERS} from './sheet.providers'; diff --git a/projects/addon-mobile/components/sheet/components/sheet/sheet.providers.ts b/projects/addon-mobile/components/sheet/components/sheet/sheet.providers.ts index 4028df03da0b..604ed7b8a54b 100644 --- a/projects/addon-mobile/components/sheet/components/sheet/sheet.providers.ts +++ b/projects/addon-mobile/components/sheet/components/sheet/sheet.providers.ts @@ -1,5 +1,5 @@ import {DOCUMENT} from '@angular/common'; -import {ElementRef, forwardRef, NgZone, Provider} from '@angular/core'; +import {ElementRef, forwardRef, NgZone, type Provider} from '@angular/core'; import { ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER, @@ -8,7 +8,7 @@ import { tuiZonefree, } from '@taiga-ui/cdk'; import {TUI_SCROLL_REF} from '@taiga-ui/core'; -import {map, merge, Observable, share} from 'rxjs'; +import {map, merge, type Observable, share} from 'rxjs'; import {iosScrollFactory} from '../../ios.hacks'; import {TUI_SHEET, TUI_SHEET_DRAGGED, TUI_SHEET_SCROLL} from '../../sheet-tokens'; diff --git a/projects/addon-mobile/components/sheet/components/sheets-host/sheets-host.component.ts b/projects/addon-mobile/components/sheet/components/sheets-host/sheets-host.component.ts index c5f6a5138229..05e279b81132 100644 --- a/projects/addon-mobile/components/sheet/components/sheets-host/sheets-host.component.ts +++ b/projects/addon-mobile/components/sheet/components/sheets-host/sheets-host.component.ts @@ -3,7 +3,7 @@ import { ChangeDetectorRef, Component, inject, - OnInit, + type OnInit, } from '@angular/core'; import {TUI_WINDOW_HEIGHT, TuiDestroyService} from '@taiga-ui/cdk'; import { @@ -14,7 +14,7 @@ import { } from '@taiga-ui/core'; import {takeUntil} from 'rxjs'; -import {TuiSheet} from '../../sheet'; +import {type TuiSheet} from '../../sheet'; import {TuiSheetService} from '../../sheet.service'; @Component({ diff --git a/projects/addon-mobile/components/sheet/directives/sheet-close/sheet-close.directive.ts b/projects/addon-mobile/components/sheet/directives/sheet-close/sheet-close.directive.ts index 7e401d13ae63..f12e61b1bc08 100644 --- a/projects/addon-mobile/components/sheet/directives/sheet-close/sheet-close.directive.ts +++ b/projects/addon-mobile/components/sheet/directives/sheet-close/sheet-close.directive.ts @@ -1,7 +1,7 @@ import {Directive, ElementRef, inject, NgZone, Output} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; import {tuiIfMap, tuiIsFalsy, tuiTypedFromEvent, tuiZonefull} from '@taiga-ui/cdk'; -import {distinctUntilChanged, filter, merge, Observable, startWith} from 'rxjs'; +import {distinctUntilChanged, filter, merge, type Observable, startWith} from 'rxjs'; import {TuiSheetComponent} from '../../components/sheet/sheet.component'; import {TUI_SHEET_CLOSE} from '../../components/sheet-heading/sheet-heading.component'; diff --git a/projects/addon-mobile/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.ts b/projects/addon-mobile/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.ts index dddfe6f1694f..1efbc8845b52 100644 --- a/projects/addon-mobile/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.ts +++ b/projects/addon-mobile/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.ts @@ -12,7 +12,7 @@ import { distinctUntilChanged, filter, map, - Observable, + type Observable, race, startWith, switchMap, diff --git a/projects/addon-mobile/components/sheet/ios.hacks.ts b/projects/addon-mobile/components/sheet/ios.hacks.ts index 4372bf8415bc..4b8c5dcbd3f7 100644 --- a/projects/addon-mobile/components/sheet/ios.hacks.ts +++ b/projects/addon-mobile/components/sheet/ios.hacks.ts @@ -1,11 +1,11 @@ -import {NgZone} from '@angular/core'; +import {type NgZone} from '@angular/core'; import {tuiTypedFromEvent, tuiZonefree} from '@taiga-ui/cdk'; import { concat, delay, map, merge, - Observable, + type Observable, share, switchMap, take, diff --git a/projects/addon-mobile/components/sheet/sheet-options.ts b/projects/addon-mobile/components/sheet/sheet-options.ts index 8d3171a3e224..74dd09b03235 100644 --- a/projects/addon-mobile/components/sheet/sheet-options.ts +++ b/projects/addon-mobile/components/sheet/sheet-options.ts @@ -1,7 +1,7 @@ import {tuiCreateToken} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {TuiSheet} from './sheet'; +import {type TuiSheet} from './sheet'; /** * @deprecated: drop in v4.0 diff --git a/projects/addon-mobile/components/sheet/sheet-tokens.ts b/projects/addon-mobile/components/sheet/sheet-tokens.ts index 2e9172c093ec..66e6badd514e 100644 --- a/projects/addon-mobile/components/sheet/sheet-tokens.ts +++ b/projects/addon-mobile/components/sheet/sheet-tokens.ts @@ -1,7 +1,7 @@ import {InjectionToken} from '@angular/core'; -import {Observable} from 'rxjs'; +import {type Observable} from 'rxjs'; -import {TuiSheetRequiredProps} from './sheet'; +import {type TuiSheetRequiredProps} from './sheet'; /** * Sheet main component diff --git a/projects/addon-mobile/components/sheet/sheet.directive.ts b/projects/addon-mobile/components/sheet/sheet.directive.ts index 58cf4ebf8c8b..cbe7cabfec35 100644 --- a/projects/addon-mobile/components/sheet/sheet.directive.ts +++ b/projects/addon-mobile/components/sheet/sheet.directive.ts @@ -3,9 +3,9 @@ import {tuiIfMap} from '@taiga-ui/cdk'; import {PolymorpheusTemplate} from '@tinkoff/ng-polymorpheus'; import {endWith, ignoreElements, share, Subject} from 'rxjs'; -import {TuiSheet} from './sheet'; +import {type TuiSheet} from './sheet'; import {TuiSheetService} from './sheet.service'; -import {TuiSheetOptions} from './sheet-options'; +import {type TuiSheetOptions} from './sheet-options'; /** * @deprecated: use {@link TuiSheetDialogDirective} diff --git a/projects/addon-mobile/components/sheet/sheet.service.ts b/projects/addon-mobile/components/sheet/sheet.service.ts index 496ef1922731..1ac8af98e2f8 100644 --- a/projects/addon-mobile/components/sheet/sheet.service.ts +++ b/projects/addon-mobile/components/sheet/sheet.service.ts @@ -1,11 +1,11 @@ import {DOCUMENT} from '@angular/common'; import {inject, Injectable} from '@angular/core'; import {tuiGetNativeFocused, tuiIsHTMLElement} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {BehaviorSubject, EMPTY, Observable} from 'rxjs'; -import {TuiSheet} from './sheet'; -import {TUI_SHEET_OPTIONS, TuiSheetOptions} from './sheet-options'; +import {type TuiSheet} from './sheet'; +import {TUI_SHEET_OPTIONS, type TuiSheetOptions} from './sheet-options'; /** * @deprecated: use {@link TuiSheetDialogService} diff --git a/projects/addon-mobile/components/sheet/sheet.ts b/projects/addon-mobile/components/sheet/sheet.ts index 488549b84108..f98701f13037 100644 --- a/projects/addon-mobile/components/sheet/sheet.ts +++ b/projects/addon-mobile/components/sheet/sheet.ts @@ -1,6 +1,6 @@ -import {TuiContext} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {Observable, Observer} from 'rxjs'; +import {type TuiContext} from '@taiga-ui/cdk'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Observable, type Observer} from 'rxjs'; import type {TuiSheetOptions} from './sheet-options'; diff --git a/projects/addon-mobile/components/tab-bar/tab-bar-item.directive.ts b/projects/addon-mobile/components/tab-bar/tab-bar-item.directive.ts index a2b930c0643b..e96adf56fb15 100644 --- a/projects/addon-mobile/components/tab-bar/tab-bar-item.directive.ts +++ b/projects/addon-mobile/components/tab-bar/tab-bar-item.directive.ts @@ -1,7 +1,7 @@ import {ChangeDetectorRef, Directive, ElementRef, inject} from '@angular/core'; import {RouterLinkActive} from '@angular/router'; import {TuiDestroyService, tuiWatch} from '@taiga-ui/cdk'; -import {EMPTY, filter, Observable, takeUntil} from 'rxjs'; +import {EMPTY, filter, type Observable, takeUntil} from 'rxjs'; import {TuiTabBarComponent} from './tab-bar.component'; diff --git a/projects/addon-mobile/components/tab-bar/tab-bar.component.ts b/projects/addon-mobile/components/tab-bar/tab-bar.component.ts index 0435d98e9c71..9055c10c2eff 100644 --- a/projects/addon-mobile/components/tab-bar/tab-bar.component.ts +++ b/projects/addon-mobile/components/tab-bar/tab-bar.component.ts @@ -9,7 +9,7 @@ import { HostListener, Input, Output, - QueryList, + type QueryList, } from '@angular/core'; import {EMPTY_QUERY, tuiIsElement} from '@taiga-ui/cdk'; diff --git a/projects/addon-mobile/const/mobile-alert-options.ts b/projects/addon-mobile/const/mobile-alert-options.ts index 6aef80b33fd4..33dff64c59a7 100644 --- a/projects/addon-mobile/const/mobile-alert-options.ts +++ b/projects/addon-mobile/const/mobile-alert-options.ts @@ -1,4 +1,4 @@ -import {TuiDialogOptions} from '@taiga-ui/core'; +import {type TuiDialogOptions} from '@taiga-ui/core'; const MOBILE_ALERT_OPTIONS: TuiMobileAlertOptions = { size: 'fullscreen', diff --git a/projects/addon-mobile/directives/mobile-tabs/mobile-tabs.directive.ts b/projects/addon-mobile/directives/mobile-tabs/mobile-tabs.directive.ts index 84374a964f90..9ce1a397e7c1 100644 --- a/projects/addon-mobile/directives/mobile-tabs/mobile-tabs.directive.ts +++ b/projects/addon-mobile/directives/mobile-tabs/mobile-tabs.directive.ts @@ -1,5 +1,5 @@ import {Directive, HostBinding, inject} from '@angular/core'; -import {TUI_IS_ANDROID, TUI_IS_IOS, TuiPlatform, tuiWithStyles} from '@taiga-ui/cdk'; +import {TUI_IS_ANDROID, TUI_IS_IOS, type TuiPlatform, tuiWithStyles} from '@taiga-ui/cdk'; import {TUI_TAB_MARGIN} from '@taiga-ui/kit'; import {TuiMobileTabsComponent} from './mobile-tabs.component'; diff --git a/projects/addon-mobile/directives/ripple/ripple.providers.ts b/projects/addon-mobile/directives/ripple/ripple.providers.ts index 8d23d2b8dc8c..c1987c0c5f98 100644 --- a/projects/addon-mobile/directives/ripple/ripple.providers.ts +++ b/projects/addon-mobile/directives/ripple/ripple.providers.ts @@ -1,4 +1,4 @@ -import {ElementRef, InjectionToken, Provider, Renderer2} from '@angular/core'; +import {ElementRef, InjectionToken, type Provider, Renderer2} from '@angular/core'; import { TUI_IS_IOS, TUI_TOUCH_SUPPORTED, @@ -7,7 +7,7 @@ import { tuiPx, tuiTypedFromEvent, } from '@taiga-ui/cdk'; -import {EMPTY, filter, map, Observable, takeUntil} from 'rxjs'; +import {EMPTY, filter, map, type Observable, takeUntil} from 'rxjs'; export const RIPPLE_ON = 'tuiRippleOn'; export const RIPPLE_OFF = 'tuiRippleOff'; diff --git a/projects/addon-mobile/directives/sidebar/sidebar.component.ts b/projects/addon-mobile/directives/sidebar/sidebar.component.ts index 2e92b3371b53..0e92158d8805 100644 --- a/projects/addon-mobile/directives/sidebar/sidebar.component.ts +++ b/projects/addon-mobile/directives/sidebar/sidebar.component.ts @@ -1,18 +1,18 @@ -import {AnimationOptions} from '@angular/animations'; +import {type AnimationOptions} from '@angular/animations'; import { ChangeDetectionStrategy, Component, - DoCheck, + type DoCheck, HostBinding, inject, } from '@angular/core'; import { TUI_ANIMATIONS_SPEED, - TuiHorizontalDirection, + type TuiHorizontalDirection, tuiSlideIn, tuiToAnimationOptions, } from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TuiSidebarDirective} from './sidebar.directive'; diff --git a/projects/addon-mobile/directives/sidebar/sidebar.directive.ts b/projects/addon-mobile/directives/sidebar/sidebar.directive.ts index 7dab11334df4..a16f8ac0bd37 100644 --- a/projects/addon-mobile/directives/sidebar/sidebar.directive.ts +++ b/projects/addon-mobile/directives/sidebar/sidebar.directive.ts @@ -1,13 +1,13 @@ import { - ComponentRef, + type ComponentRef, Directive, inject, INJECTOR, Input, - OnDestroy, + type OnDestroy, TemplateRef, } from '@angular/core'; -import {TuiDropdownService, TuiHorizontalDirection} from '@taiga-ui/core'; +import {TuiDropdownService, type TuiHorizontalDirection} from '@taiga-ui/core'; import {PolymorpheusComponent, PolymorpheusTemplate} from '@tinkoff/ng-polymorpheus'; import {TuiSidebarComponent} from './sidebar.component'; diff --git a/projects/addon-mobile/directives/touchable/touchable.directive.ts b/projects/addon-mobile/directives/touchable/touchable.directive.ts index e6bc449fe13d..862aad580755 100644 --- a/projects/addon-mobile/directives/touchable/touchable.directive.ts +++ b/projects/addon-mobile/directives/touchable/touchable.directive.ts @@ -1,5 +1,5 @@ import {Directive, ElementRef, inject, Input, Renderer2} from '@angular/core'; -import {TuiTouchMode} from '@taiga-ui/addon-mobile/types'; +import {type TuiTouchMode} from '@taiga-ui/addon-mobile/types'; import {tuiFindTouchIndex} from '@taiga-ui/addon-mobile/utils'; import {TUI_IS_IOS, TuiDestroyService, tuiTypedFromEvent} from '@taiga-ui/cdk'; import {TUI_ELEMENT_REF} from '@taiga-ui/core'; diff --git a/projects/addon-mobile/interfaces/mobile-alert-data.ts b/projects/addon-mobile/interfaces/mobile-alert-data.ts index 46eb36a4001a..83811c2476af 100644 --- a/projects/addon-mobile/interfaces/mobile-alert-data.ts +++ b/projects/addon-mobile/interfaces/mobile-alert-data.ts @@ -1,4 +1,4 @@ -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiMobileAlertData { readonly confirmText?: string; diff --git a/projects/addon-preview/components/preview-dialog/preview-dialog.component.ts b/projects/addon-preview/components/preview-dialog/preview-dialog.component.ts index cd7e3fb01314..1ec7cfb3ac6c 100644 --- a/projects/addon-preview/components/preview-dialog/preview-dialog.component.ts +++ b/projects/addon-preview/components/preview-dialog/preview-dialog.component.ts @@ -5,7 +5,7 @@ import { inject, ViewEncapsulation, } from '@angular/core'; -import {TuiPopover} from '@taiga-ui/cdk'; +import {type TuiPopover} from '@taiga-ui/cdk'; import {tuiSlideInTop} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; diff --git a/projects/addon-preview/components/preview/pagination/test/preview-pagination.spec.ts b/projects/addon-preview/components/preview/pagination/test/preview-pagination.spec.ts index 642623499859..4340c65d91d6 100644 --- a/projects/addon-preview/components/preview/pagination/test/preview-pagination.spec.ts +++ b/projects/addon-preview/components/preview/pagination/test/preview-pagination.spec.ts @@ -1,5 +1,5 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {TuiPreviewModule, TuiPreviewPaginationComponent} from '@taiga-ui/addon-preview'; diff --git a/projects/addon-preview/components/preview/preview.component.ts b/projects/addon-preview/components/preview/preview.component.ts index facf4755998b..de254e10b0f8 100644 --- a/projects/addon-preview/components/preview/preview.component.ts +++ b/projects/addon-preview/components/preview/preview.component.ts @@ -14,7 +14,7 @@ import { tuiPx, tuiRound, tuiTypedFromEvent, - TuiZoom, + type TuiZoom, } from '@taiga-ui/cdk'; import {tuiSlideInTop} from '@taiga-ui/core'; import {BehaviorSubject, combineLatest, map, merge, startWith} from 'rxjs'; diff --git a/projects/addon-preview/tokens/preview-icons.ts b/projects/addon-preview/tokens/preview-icons.ts index 1e99868ecc7f..27d16c9ecdca 100644 --- a/projects/addon-preview/tokens/preview-icons.ts +++ b/projects/addon-preview/tokens/preview-icons.ts @@ -1,4 +1,4 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiPreviewIcons { diff --git a/projects/addon-table/components/reorder/reorder.options.ts b/projects/addon-table/components/reorder/reorder.options.ts index 9cb9fa401a54..f9fa845a59d6 100644 --- a/projects/addon-table/components/reorder/reorder.options.ts +++ b/projects/addon-table/components/reorder/reorder.options.ts @@ -1,4 +1,4 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiReorderOptions { diff --git a/projects/addon-table/components/table-pagination/table-pagination.component.ts b/projects/addon-table/components/table-pagination/table-pagination.component.ts index 3c0ea29f5c75..36806a2b7b4e 100644 --- a/projects/addon-table/components/table-pagination/table-pagination.component.ts +++ b/projects/addon-table/components/table-pagination/table-pagination.component.ts @@ -11,7 +11,7 @@ import {TUI_COMMON_ICONS, TUI_SPIN_ICONS, TUI_SPIN_TEXTS} from '@taiga-ui/core'; import { TUI_TABLE_PAGINATION_OPTIONS, - TuiTablePaginationOptions, + type TuiTablePaginationOptions, } from './table-pagination.options'; export interface TuiTablePagination { diff --git a/projects/addon-table/components/table-pagination/table-pagination.options.ts b/projects/addon-table/components/table-pagination/table-pagination.options.ts index af40dcc0e9da..e0fbbc453f72 100644 --- a/projects/addon-table/components/table-pagination/table-pagination.options.ts +++ b/projects/addon-table/components/table-pagination/table-pagination.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; -import {TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Provider} from '@angular/core'; +import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; function defaultSizeOptionContent({$implicit}: TuiContext): string { return `${$implicit}`; diff --git a/projects/addon-table/components/table-pagination/test/table-pagination.component.spec.ts b/projects/addon-table/components/table-pagination/test/table-pagination.component.spec.ts index bbb0ac41bb97..adb35d8e56fa 100644 --- a/projects/addon-table/components/table-pagination/test/table-pagination.component.spec.ts +++ b/projects/addon-table/components/table-pagination/test/table-pagination.component.spec.ts @@ -1,5 +1,5 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import { TuiTablePaginationComponent, TuiTablePaginationModule, diff --git a/projects/addon-table/components/table/directives/row.directive.ts b/projects/addon-table/components/table/directives/row.directive.ts index fb3d8e735732..68502d5cac96 100644 --- a/projects/addon-table/components/table/directives/row.directive.ts +++ b/projects/addon-table/components/table/directives/row.directive.ts @@ -1,5 +1,5 @@ import {Directive, inject, Input, TemplateRef} from '@angular/core'; -import {TuiRowContext} from '@taiga-ui/addon-table/interfaces'; +import {type TuiRowContext} from '@taiga-ui/addon-table/interfaces'; /** * @deprecated use `*ngFor` + `tuiTableSort`-pipe instead. diff --git a/projects/addon-table/components/table/directives/sort-by.directive.ts b/projects/addon-table/components/table/directives/sort-by.directive.ts index 621acb6759d3..cad707f536d7 100644 --- a/projects/addon-table/components/table/directives/sort-by.directive.ts +++ b/projects/addon-table/components/table/directives/sort-by.directive.ts @@ -4,9 +4,9 @@ import { inject, Input, Output, - QueryList, + type QueryList, } from '@angular/core'; -import {TuiComparator} from '@taiga-ui/addon-table/types'; +import {type TuiComparator} from '@taiga-ui/addon-table/types'; import {EMPTY_QUERY} from '@taiga-ui/cdk'; import {delay, filter, map} from 'rxjs'; diff --git a/projects/addon-table/components/table/directives/sortable.directive.ts b/projects/addon-table/components/table/directives/sortable.directive.ts index 4e52a302e84d..daf4ad86cc87 100644 --- a/projects/addon-table/components/table/directives/sortable.directive.ts +++ b/projects/addon-table/components/table/directives/sortable.directive.ts @@ -1,5 +1,5 @@ -import {Directive, forwardRef, inject, OnInit} from '@angular/core'; -import {TuiComparator} from '@taiga-ui/addon-table/types'; +import {Directive, forwardRef, inject, type OnInit} from '@angular/core'; +import {type TuiComparator} from '@taiga-ui/addon-table/types'; import {TuiThComponent} from '../th/th.component'; import {TuiSortByDirective} from './sort-by.directive'; diff --git a/projects/addon-table/components/table/directives/table.directive.ts b/projects/addon-table/components/table/directives/table.directive.ts index f48feb284a7a..4f0e102e2a99 100644 --- a/projects/addon-table/components/table/directives/table.directive.ts +++ b/projects/addon-table/components/table/directives/table.directive.ts @@ -1,5 +1,5 @@ import { - AfterViewInit, + type AfterViewInit, ChangeDetectorRef, Directive, EventEmitter, @@ -9,10 +9,10 @@ import { Output, } from '@angular/core'; import {IntersectionObserverService} from '@ng-web-apis/intersection-observer'; -import {TuiComparator} from '@taiga-ui/addon-table/types'; +import {type TuiComparator} from '@taiga-ui/addon-table/types'; import {AbstractTuiController} from '@taiga-ui/cdk'; import {TUI_MODE} from '@taiga-ui/core'; -import {Observable} from 'rxjs'; +import {type Observable} from 'rxjs'; import {TUI_STUCK} from '../providers/stuck.provider'; import {TUI_TABLE_PROVIDERS} from '../providers/table.providers'; diff --git a/projects/addon-table/components/table/directives/test/direction-order.directive.spec.ts b/projects/addon-table/components/table/directives/test/direction-order.directive.spec.ts index 029dc29221c3..c038564eefb1 100644 --- a/projects/addon-table/components/table/directives/test/direction-order.directive.spec.ts +++ b/projects/addon-table/components/table/directives/test/direction-order.directive.spec.ts @@ -1,5 +1,5 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TuiTableDirective, TuiTableModule} from '@taiga-ui/addon-table'; describe('TuiDirectionOrder directive', () => { diff --git a/projects/addon-table/components/table/pipes/table-sort.pipe.ts b/projects/addon-table/components/table/pipes/table-sort.pipe.ts index eb41e3d0c39d..60a1a1354bd7 100644 --- a/projects/addon-table/components/table/pipes/table-sort.pipe.ts +++ b/projects/addon-table/components/table/pipes/table-sort.pipe.ts @@ -1,5 +1,5 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; -import {TuiComparator} from '@taiga-ui/addon-table/types'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; +import {type TuiComparator} from '@taiga-ui/addon-table/types'; import {tuiPure} from '@taiga-ui/cdk'; import {TuiTableDirective} from '../directives/table.directive'; diff --git a/projects/addon-table/components/table/providers/stuck.provider.ts b/projects/addon-table/components/table/providers/stuck.provider.ts index 32a82ee895ae..79833a87d3da 100644 --- a/projects/addon-table/components/table/providers/stuck.provider.ts +++ b/projects/addon-table/components/table/providers/stuck.provider.ts @@ -1,6 +1,6 @@ -import {ElementRef, InjectionToken, Provider} from '@angular/core'; +import {ElementRef, InjectionToken, type Provider} from '@angular/core'; import {IntersectionObserverService} from '@ng-web-apis/intersection-observer'; -import {map, Observable} from 'rxjs'; +import {map, type Observable} from 'rxjs'; /** * Stream of sticky stuck events */ diff --git a/projects/addon-table/components/table/providers/table.provider.ts b/projects/addon-table/components/table/providers/table.provider.ts index 51281e685044..48ae1a91a9a3 100644 --- a/projects/addon-table/components/table/providers/table.provider.ts +++ b/projects/addon-table/components/table/providers/table.provider.ts @@ -1,4 +1,4 @@ -import {ChangeDetectorRef, Provider, SkipSelf} from '@angular/core'; +import {ChangeDetectorRef, type Provider, SkipSelf} from '@angular/core'; import {TuiDestroyService} from '@taiga-ui/cdk'; import {tuiWatchedControllerFactory} from '@taiga-ui/core'; diff --git a/projects/addon-table/components/table/table.options.ts b/projects/addon-table/components/table/table.options.ts index 5efbcd2fcd78..112a7e4d8cd6 100644 --- a/projects/addon-table/components/table/table.options.ts +++ b/projects/addon-table/components/table/table.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; export interface TuiTableOptions { readonly direction: -1 | 1; diff --git a/projects/addon-table/components/table/tbody/tbody.component.ts b/projects/addon-table/components/table/tbody/tbody.component.ts index 24b7be934f15..3a28e303c29d 100644 --- a/projects/addon-table/components/table/tbody/tbody.component.ts +++ b/projects/addon-table/components/table/tbody/tbody.component.ts @@ -8,11 +8,11 @@ import { inject, Input, Output, - QueryList, + type QueryList, } from '@angular/core'; import {EMPTY_QUERY} from '@taiga-ui/cdk'; import {TUI_ARROW_OPTIONS} from '@taiga-ui/kit'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TuiRowDirective} from '../directives/row.directive'; import {TuiTableDirective} from '../directives/table.directive'; diff --git a/projects/addon-table/components/table/th-group/th-group.component.ts b/projects/addon-table/components/table/th-group/th-group.component.ts index 058ed1226171..a2b471440fdf 100644 --- a/projects/addon-table/components/table/th-group/th-group.component.ts +++ b/projects/addon-table/components/table/th-group/th-group.component.ts @@ -1,15 +1,15 @@ import { - AfterContentInit, + type AfterContentInit, ChangeDetectionStrategy, Component, ContentChild, ContentChildren, forwardRef, inject, - QueryList, + type QueryList, } from '@angular/core'; import {EMPTY_QUERY} from '@taiga-ui/cdk'; -import {map, Observable, startWith} from 'rxjs'; +import {map, type Observable, startWith} from 'rxjs'; import {TuiHeadDirective} from '../directives/head.directive'; import {TuiTableDirective} from '../directives/table.directive'; diff --git a/projects/addon-table/components/table/th/th.component.ts b/projects/addon-table/components/table/th/th.component.ts index 8018b6b9ed3d..4651fca81082 100644 --- a/projects/addon-table/components/table/th/th.component.ts +++ b/projects/addon-table/components/table/th/th.component.ts @@ -7,7 +7,7 @@ import { inject, Input, } from '@angular/core'; -import {TuiComparator} from '@taiga-ui/addon-table/types'; +import {type TuiComparator} from '@taiga-ui/addon-table/types'; import {tuiDefaultSort, TuiTableSortKeyException} from '@taiga-ui/cdk'; import {TUI_ELEMENT_REF} from '@taiga-ui/core'; diff --git a/projects/addon-table/components/table/tr/tr.component.ts b/projects/addon-table/components/table/tr/tr.component.ts index 5ec393979a0a..7db6cf738897 100644 --- a/projects/addon-table/components/table/tr/tr.component.ts +++ b/projects/addon-table/components/table/tr/tr.component.ts @@ -1,11 +1,11 @@ import { - AfterContentInit, + type AfterContentInit, ChangeDetectionStrategy, Component, ContentChildren, forwardRef, inject, - QueryList, + type QueryList, } from '@angular/core'; import {EMPTY_QUERY, tuiQueryListChanges} from '@taiga-ui/cdk'; import {map, ReplaySubject, switchMap} from 'rxjs'; diff --git a/projects/addon-table/directives/table-filters/table-filter.directive.ts b/projects/addon-table/directives/table-filters/table-filter.directive.ts index c21b85cb4e9b..7bc5f4662949 100644 --- a/projects/addon-table/directives/table-filters/table-filter.directive.ts +++ b/projects/addon-table/directives/table-filters/table-filter.directive.ts @@ -1,11 +1,11 @@ -import {Directive, inject, Input, OnDestroy, OnInit} from '@angular/core'; +import {Directive, inject, Input, type OnDestroy, type OnInit} from '@angular/core'; import {NgControl} from '@angular/forms'; import {TuiHeadDirective} from '@taiga-ui/addon-table/components'; -import {TuiValuesOf} from '@taiga-ui/cdk'; +import {type TuiValuesOf} from '@taiga-ui/cdk'; import {defer, distinctUntilChanged, EMPTY, merge} from 'rxjs'; import {AbstractTuiTableFilter} from './abstract-table-filter'; -import {TuiTableFilter} from './table-filter'; +import {type TuiTableFilter} from './table-filter'; import {TuiTableFiltersDirective} from './table-filters.directive'; @Directive({ diff --git a/projects/addon-table/directives/table-filters/table-filter.ts b/projects/addon-table/directives/table-filters/table-filter.ts index 62d1c8b0d37f..c477a3ab6206 100644 --- a/projects/addon-table/directives/table-filters/table-filter.ts +++ b/projects/addon-table/directives/table-filters/table-filter.ts @@ -1,4 +1,4 @@ -import {Observable} from 'rxjs'; +import {type Observable} from 'rxjs'; export interface TuiTableFilter { filter(item: T): boolean; diff --git a/projects/addon-table/directives/table-filters/table-filters.directive.ts b/projects/addon-table/directives/table-filters/table-filters.directive.ts index 2ecca5d48071..8cae320605bf 100644 --- a/projects/addon-table/directives/table-filters/table-filters.directive.ts +++ b/projects/addon-table/directives/table-filters/table-filters.directive.ts @@ -3,13 +3,13 @@ import { identity, map, merge, - Observable, + type Observable, ReplaySubject, startWith, switchMap, } from 'rxjs'; -import {TuiTableFilter} from './table-filter'; +import {type TuiTableFilter} from './table-filter'; @Directive({ selector: '[tuiTableFilters]', diff --git a/projects/addon-table/directives/table-filters/table-filters.pipe.ts b/projects/addon-table/directives/table-filters/table-filters.pipe.ts index 36271622f676..031be41f23d5 100644 --- a/projects/addon-table/directives/table-filters/table-filters.pipe.ts +++ b/projects/addon-table/directives/table-filters/table-filters.pipe.ts @@ -1,5 +1,5 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; -import {Observable} from 'rxjs'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; +import {type Observable} from 'rxjs'; import {TuiTableFiltersDirective} from './table-filters.directive'; diff --git a/projects/addon-table/interfaces/row-context.ts b/projects/addon-table/interfaces/row-context.ts index f20892e9aa5a..4a87d8b57f4b 100644 --- a/projects/addon-table/interfaces/row-context.ts +++ b/projects/addon-table/interfaces/row-context.ts @@ -1,4 +1,4 @@ -import {TuiContext} from '@taiga-ui/cdk'; +import {type TuiContext} from '@taiga-ui/cdk'; export interface TuiRowContext extends TuiContext { readonly index: number; diff --git a/projects/addon-tablebars/classes/table-bar.ts b/projects/addon-tablebars/classes/table-bar.ts index 21620310f9c4..2ed196ad4741 100644 --- a/projects/addon-tablebars/classes/table-bar.ts +++ b/projects/addon-tablebars/classes/table-bar.ts @@ -1,8 +1,8 @@ -import {TuiBrightness} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {Observer} from 'rxjs'; +import {type TuiBrightness} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Observer} from 'rxjs'; -import {TuiTableBarOptions} from '../interfaces/table-bar-options'; +import {type TuiTableBarOptions} from '../interfaces/table-bar-options'; export class TuiTableBar { public readonly adaptive: boolean; diff --git a/projects/addon-tablebars/components/table-bars-host/table-bars-host.component.ts b/projects/addon-tablebars/components/table-bars-host/table-bars-host.component.ts index 848280172f79..61fb5e205b4f 100644 --- a/projects/addon-tablebars/components/table-bars-host/table-bars-host.component.ts +++ b/projects/addon-tablebars/components/table-bars-host/table-bars-host.component.ts @@ -1,19 +1,19 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; -import {TuiContext} from '@taiga-ui/cdk'; +import {type TuiContext} from '@taiga-ui/cdk'; import { TUI_ANIMATIONS_SPEED, TUI_CLOSE_WORD, TUI_COMMON_ICONS, TUI_MEDIA, TUI_PARENT_ANIMATION, - TuiBrightness, + type TuiBrightness, tuiIsMobile, tuiSlideInTop, tuiToAnimationOptions, } from '@taiga-ui/core'; -import {TuiTableBar} from '../../classes/table-bar'; +import {type TuiTableBar} from '../../classes/table-bar'; import {TuiTableBarsService} from '../../services/table-bars.service'; // TODO: Accessibility diff --git a/projects/addon-tablebars/components/table-bars-host/test/table-bars-host.component.spec.ts b/projects/addon-tablebars/components/table-bars-host/test/table-bars-host.component.spec.ts index 83cce7737399..d34a3e158252 100644 --- a/projects/addon-tablebars/components/table-bars-host/test/table-bars-host.component.spec.ts +++ b/projects/addon-tablebars/components/table-bars-host/test/table-bars-host.component.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement, ViewChild} from '@angular/core'; -import {ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing'; +import {Component, type DebugElement, ViewChild} from '@angular/core'; +import {type ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { TuiTableBarsHostComponent, @@ -7,7 +7,7 @@ import { TuiTableBarsService, } from '@taiga-ui/addon-tablebars'; import {TuiPageObject} from '@taiga-ui/testing'; -import {skip, Subscription, take, takeUntil, timer} from 'rxjs'; +import {skip, type Subscription, take, takeUntil, timer} from 'rxjs'; describe('TableBarsHost', () => { @Component({ diff --git a/projects/addon-tablebars/interfaces/table-bar-options.ts b/projects/addon-tablebars/interfaces/table-bar-options.ts index 52efdc6f69b0..e4076ccf475c 100644 --- a/projects/addon-tablebars/interfaces/table-bar-options.ts +++ b/projects/addon-tablebars/interfaces/table-bar-options.ts @@ -1,4 +1,4 @@ -import {TuiBrightness} from '@taiga-ui/core'; +import {type TuiBrightness} from '@taiga-ui/core'; export interface TuiTableBarOptions { readonly adaptive?: boolean; diff --git a/projects/addon-tablebars/services/table-bars.service.ts b/projects/addon-tablebars/services/table-bars.service.ts index 4e8116f25b57..24a9721e6981 100644 --- a/projects/addon-tablebars/services/table-bars.service.ts +++ b/projects/addon-tablebars/services/table-bars.service.ts @@ -1,11 +1,11 @@ /// import {Injectable} from '@angular/core'; import {tuiAssert, tuiIsObserved} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {Observable, ReplaySubject} from 'rxjs'; import {TuiTableBar} from '../classes/table-bar'; -import {TuiTableBarOptions} from '../interfaces/table-bar-options'; +import {type TuiTableBarOptions} from '../interfaces/table-bar-options'; const NO_HOST = 'Table bars are disabled, enable support by adding TuiTableBarsHostModule to your main app module ' + diff --git a/projects/cdk/abstract/control.ts b/projects/cdk/abstract/control.ts index 59a4289748ca..3c02b3512065 100644 --- a/projects/cdk/abstract/control.ts +++ b/projects/cdk/abstract/control.ts @@ -5,15 +5,20 @@ import { HostBinding, inject, Input, - OnDestroy, - OnInit, - Provider, - Type, + type OnDestroy, + type OnInit, + type Provider, + type Type, } from '@angular/core'; -import {AbstractControl, ControlValueAccessor, NgControl, NgModel} from '@angular/forms'; +import { + type AbstractControl, + type ControlValueAccessor, + NgControl, + NgModel, +} from '@angular/forms'; import {tuiAssert} from '@taiga-ui/cdk/classes'; import {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants'; -import {TuiControlValueTransformer} from '@taiga-ui/cdk/interfaces'; +import {type TuiControlValueTransformer} from '@taiga-ui/cdk/interfaces'; import {tuiIsPresent} from '@taiga-ui/cdk/utils'; import { delay, diff --git a/projects/cdk/abstract/controller.ts b/projects/cdk/abstract/controller.ts index bd5e46b0734f..0a921f256230 100644 --- a/projects/cdk/abstract/controller.ts +++ b/projects/cdk/abstract/controller.ts @@ -1,4 +1,4 @@ -import {Directive, OnChanges} from '@angular/core'; +import {Directive, type OnChanges} from '@angular/core'; import {Subject} from 'rxjs'; @Directive() diff --git a/projects/cdk/abstract/portals.ts b/projects/cdk/abstract/portals.ts index f0fe10ddc9b9..2e56f365626c 100644 --- a/projects/cdk/abstract/portals.ts +++ b/projects/cdk/abstract/portals.ts @@ -1,17 +1,17 @@ import { - ComponentRef, + type ComponentRef, Directive, - EmbeddedViewRef, + type EmbeddedViewRef, inject, Injectable, INJECTOR, - Provider, - TemplateRef, + type Provider, + type TemplateRef, ViewChild, ViewContainerRef, } from '@angular/core'; import {TuiNoHostException} from '@taiga-ui/cdk/exceptions'; -import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; /** * Abstract class for host element for dynamically created portals. diff --git a/projects/cdk/abstract/tests/abstract-control-no-control.spec.ts b/projects/cdk/abstract/tests/abstract-control-no-control.spec.ts index 3b800345aa1f..edbe236981d8 100644 --- a/projects/cdk/abstract/tests/abstract-control-no-control.spec.ts +++ b/projects/cdk/abstract/tests/abstract-control-no-control.spec.ts @@ -2,15 +2,15 @@ import { ChangeDetectorRef, Component, inject, - OnDestroy, - OnInit, + type OnDestroy, + type OnInit, ViewChild, } from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import { AbstractTuiControl, tuiAsControl, - TuiControlValueTransformer, + type TuiControlValueTransformer, } from '@taiga-ui/cdk'; describe('AbstractTuiControl and NgControl not injected in MyControlComponent', () => { diff --git a/projects/cdk/abstract/tests/abstract-control-with-control.spec.ts b/projects/cdk/abstract/tests/abstract-control-with-control.spec.ts index e9dfc8328cac..f15ec7a59f9e 100644 --- a/projects/cdk/abstract/tests/abstract-control-with-control.spec.ts +++ b/projects/cdk/abstract/tests/abstract-control-with-control.spec.ts @@ -2,16 +2,16 @@ import { ChangeDetectorRef, Component, inject, - OnDestroy, - OnInit, + type OnDestroy, + type OnInit, ViewChild, } from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, FormsModule, ReactiveFormsModule} from '@angular/forms'; import { AbstractTuiControl, tuiAsControl, - TuiControlValueTransformer, + type TuiControlValueTransformer, } from '@taiga-ui/cdk'; describe('AbstractTuiControl and FormControl', () => { diff --git a/projects/cdk/abstract/tests/abstract-tui-controller.spec.ts b/projects/cdk/abstract/tests/abstract-tui-controller.spec.ts index 633d29a025fc..3a90da1e4ac8 100644 --- a/projects/cdk/abstract/tests/abstract-tui-controller.spec.ts +++ b/projects/cdk/abstract/tests/abstract-tui-controller.spec.ts @@ -1,5 +1,5 @@ import {Component, Input, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {AbstractTuiController} from '@taiga-ui/cdk'; describe('AbstractTuiController', () => { diff --git a/projects/cdk/abstract/theme-switcher.ts b/projects/cdk/abstract/theme-switcher.ts index e7bc9fab0b81..466be4b1c3d4 100644 --- a/projects/cdk/abstract/theme-switcher.ts +++ b/projects/cdk/abstract/theme-switcher.ts @@ -1,5 +1,5 @@ import {DOCUMENT} from '@angular/common'; -import {Directive, inject, OnDestroy} from '@angular/core'; +import {Directive, inject, type OnDestroy} from '@angular/core'; /** * Use this abstract class to create your own toggleable themes. diff --git a/projects/cdk/classes/validation-error.ts b/projects/cdk/classes/validation-error.ts index 5090e60f9e7c..77a3efb18cb7 100644 --- a/projects/cdk/classes/validation-error.ts +++ b/projects/cdk/classes/validation-error.ts @@ -1,4 +1,4 @@ -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export class TuiValidationError = Record> { constructor( diff --git a/projects/cdk/constants/matcher.ts b/projects/cdk/constants/matcher.ts index b1061deccb1a..414af3f3d120 100644 --- a/projects/cdk/constants/matcher.ts +++ b/projects/cdk/constants/matcher.ts @@ -1,4 +1,4 @@ -import {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types'; +import {type TuiHandler, type TuiIdentityMatcher} from '@taiga-ui/cdk/types'; import {TUI_DEFAULT_STRINGIFY} from './stringify'; diff --git a/projects/cdk/constants/stringify.ts b/projects/cdk/constants/stringify.ts index fe9ba60c148a..d93d69ad0dc0 100644 --- a/projects/cdk/constants/stringify.ts +++ b/projects/cdk/constants/stringify.ts @@ -1,4 +1,4 @@ -import {TuiStringHandler} from '@taiga-ui/cdk/types'; +import {type TuiStringHandler} from '@taiga-ui/cdk/types'; /** * Default method to turn arbitrary object into string diff --git a/projects/cdk/constants/test/matcher.spec.ts b/projects/cdk/constants/test/matcher.spec.ts index cc6cc9024408..c2614ea9fdce 100644 --- a/projects/cdk/constants/test/matcher.spec.ts +++ b/projects/cdk/constants/test/matcher.spec.ts @@ -3,7 +3,7 @@ import { TUI_DEFAULT_MATCHER, TUI_DEFAULT_STRINGIFY, TUI_STRICT_MATCHER, - TuiStringHandler, + type TuiStringHandler, } from '@taiga-ui/cdk'; class Item { diff --git a/projects/cdk/date-time/date-format.ts b/projects/cdk/date-time/date-format.ts index 0b3fda5150f6..17c654e5d34c 100644 --- a/projects/cdk/date-time/date-format.ts +++ b/projects/cdk/date-time/date-format.ts @@ -1,4 +1,4 @@ -import {TuiDateMode} from '@taiga-ui/cdk/types'; +import {type TuiDateMode} from '@taiga-ui/cdk/types'; import {tuiCreateToken} from '@taiga-ui/cdk/utils'; /** diff --git a/projects/cdk/date-time/day-range.ts b/projects/cdk/date-time/day-range.ts index 42438b84574a..41aaa3ad09bb 100644 --- a/projects/cdk/date-time/day-range.ts +++ b/projects/cdk/date-time/day-range.ts @@ -1,6 +1,6 @@ /// import {tuiAssert} from '@taiga-ui/cdk/classes'; -import {TuiDateMode} from '@taiga-ui/cdk/types'; +import {type TuiDateMode} from '@taiga-ui/cdk/types'; import {DATE_FILLER_LENGTH, DATE_RANGE_FILLER_LENGTH} from './date-fillers'; import {RANGE_SEPARATOR_CHAR} from './date-time'; diff --git a/projects/cdk/date-time/day.ts b/projects/cdk/date-time/day.ts index f9616b4876f0..53e7466ad703 100644 --- a/projects/cdk/date-time/day.ts +++ b/projects/cdk/date-time/day.ts @@ -6,8 +6,8 @@ import { TuiInvalidMonthException, TuiInvalidYearException, } from '@taiga-ui/cdk/exceptions'; -import {TuiDayLike} from '@taiga-ui/cdk/interfaces'; -import {TuiDateMode} from '@taiga-ui/cdk/types'; +import {type TuiDayLike} from '@taiga-ui/cdk/interfaces'; +import {type TuiDateMode} from '@taiga-ui/cdk/types'; import {tuiInRange, tuiNormalizeToIntNumber} from '@taiga-ui/cdk/utils/math'; import {DATE_FILLER_LENGTH} from './date-fillers'; diff --git a/projects/cdk/date-time/month-range.ts b/projects/cdk/date-time/month-range.ts index 750cca52b8a5..c539e6981026 100644 --- a/projects/cdk/date-time/month-range.ts +++ b/projects/cdk/date-time/month-range.ts @@ -2,7 +2,7 @@ import {tuiAssert} from '@taiga-ui/cdk/classes'; import {RANGE_SEPARATOR_CHAR} from './date-time'; -import {TuiMonth} from './month'; +import {type TuiMonth} from './month'; /** * An immutable range of two {@link TuiMonth} objects diff --git a/projects/cdk/date-time/month.ts b/projects/cdk/date-time/month.ts index a3180e540e0e..9f9cb149e680 100644 --- a/projects/cdk/date-time/month.ts +++ b/projects/cdk/date-time/month.ts @@ -1,7 +1,7 @@ /// import {tuiAssert} from '@taiga-ui/cdk/classes'; import {TuiMonthNumber} from '@taiga-ui/cdk/enums'; -import {TuiMonthLike} from '@taiga-ui/cdk/interfaces'; +import {type TuiMonthLike} from '@taiga-ui/cdk/interfaces'; import {tuiInRange, tuiNormalizeToIntNumber} from '@taiga-ui/cdk/utils/math'; import {MAX_MONTH, MIN_MONTH, MONTHS_IN_YEAR} from './date-time'; diff --git a/projects/cdk/date-time/time.ts b/projects/cdk/date-time/time.ts index 1d81eec9b467..a24a7e49e2a3 100644 --- a/projects/cdk/date-time/time.ts +++ b/projects/cdk/date-time/time.ts @@ -1,7 +1,7 @@ /// import {tuiAssert} from '@taiga-ui/cdk/classes'; -import {TuiTimeLike} from '@taiga-ui/cdk/interfaces'; -import {TuiTimeMode} from '@taiga-ui/cdk/types'; +import {type TuiTimeLike} from '@taiga-ui/cdk/interfaces'; +import {type TuiTimeMode} from '@taiga-ui/cdk/types'; import {tuiInRange} from '@taiga-ui/cdk/utils/math'; import { diff --git a/projects/cdk/date-time/year.ts b/projects/cdk/date-time/year.ts index 2b1500a870a7..8731259aee2d 100644 --- a/projects/cdk/date-time/year.ts +++ b/projects/cdk/date-time/year.ts @@ -1,6 +1,6 @@ /// import {tuiAssert} from '@taiga-ui/cdk/classes'; -import {TuiYearLike} from '@taiga-ui/cdk/interfaces'; +import {type TuiYearLike} from '@taiga-ui/cdk/interfaces'; import {tuiInRange, tuiNormalizeToIntNumber} from '@taiga-ui/cdk/utils/math'; import {MAX_YEAR, MIN_YEAR} from './date-time'; diff --git a/projects/cdk/directives/active-zone/active-zone.directive.ts b/projects/cdk/directives/active-zone/active-zone.directive.ts index 367c236fda85..a91c7a6698e7 100644 --- a/projects/cdk/directives/active-zone/active-zone.directive.ts +++ b/projects/cdk/directives/active-zone/active-zone.directive.ts @@ -4,14 +4,14 @@ import { inject, Input, NgZone, - OnDestroy, + type OnDestroy, Output, } from '@angular/core'; import {tuiPure} from '@taiga-ui/cdk/decorators'; import {tuiZoneOptimized} from '@taiga-ui/cdk/observables'; import {TUI_ACTIVE_ELEMENT} from '@taiga-ui/cdk/tokens'; import {tuiArrayRemove} from '@taiga-ui/cdk/utils'; -import {distinctUntilChanged, map, Observable, skip, startWith} from 'rxjs'; +import {distinctUntilChanged, map, type Observable, skip, startWith} from 'rxjs'; @Directive({ standalone: true, diff --git a/projects/cdk/directives/active-zone/tests/active-zone.directive.spec.ts b/projects/cdk/directives/active-zone/tests/active-zone.directive.spec.ts index 59cb00465555..1a106521dde5 100644 --- a/projects/cdk/directives/active-zone/tests/active-zone.directive.spec.ts +++ b/projects/cdk/directives/active-zone/tests/active-zone.directive.spec.ts @@ -1,6 +1,6 @@ import {CommonModule} from '@angular/common'; import {Component} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {TuiActiveZoneModule} from '@taiga-ui/cdk'; diff --git a/projects/cdk/directives/auto-focus/autofocus.directive.ts b/projects/cdk/directives/auto-focus/autofocus.directive.ts index db9b176a0ae6..0b478ceca515 100644 --- a/projects/cdk/directives/auto-focus/autofocus.directive.ts +++ b/projects/cdk/directives/auto-focus/autofocus.directive.ts @@ -1,4 +1,4 @@ -import {AfterViewInit, Directive, inject, Input} from '@angular/core'; +import {type AfterViewInit, Directive, inject, Input} from '@angular/core'; import {tuiCoerceBooleanProperty} from '@taiga-ui/cdk/coercion'; import {TuiDestroyService} from '@taiga-ui/cdk/services'; import {takeUntil, timer} from 'rxjs'; diff --git a/projects/cdk/directives/auto-focus/autofocus.options.ts b/projects/cdk/directives/auto-focus/autofocus.options.ts index bcc75e6a4c49..ec887cd11f34 100644 --- a/projects/cdk/directives/auto-focus/autofocus.options.ts +++ b/projects/cdk/directives/auto-focus/autofocus.options.ts @@ -3,16 +3,16 @@ import { InjectionToken, NgZone, Optional, - Provider, + type Provider, Renderer2, Self, } from '@angular/core'; import {ANIMATION_FRAME, WINDOW} from '@ng-web-apis/common'; -import {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces'; +import {type TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces'; import {TuiDestroyService} from '@taiga-ui/cdk/services'; import {TUI_FOCUSABLE_ITEM_ACCESSOR, TUI_IS_IOS} from '@taiga-ui/cdk/tokens'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous'; -import {Observable} from 'rxjs'; +import {type Observable} from 'rxjs'; import {TuiDefaultAutofocusHandler} from './handlers/default.handler'; import {TuiIosAutofocusHandler} from './handlers/ios.handler'; diff --git a/projects/cdk/directives/auto-focus/handlers/abstract.handler.ts b/projects/cdk/directives/auto-focus/handlers/abstract.handler.ts index 32e50b4afa40..951903d6da1e 100644 --- a/projects/cdk/directives/auto-focus/handlers/abstract.handler.ts +++ b/projects/cdk/directives/auto-focus/handlers/abstract.handler.ts @@ -1,7 +1,7 @@ -import {ElementRef} from '@angular/core'; +import {type ElementRef} from '@angular/core'; import { - TuiFocusableElementAccessor, - TuiNativeFocusableElement, + type TuiFocusableElementAccessor, + type TuiNativeFocusableElement, } from '@taiga-ui/cdk/interfaces'; import type {TuiAutofocusHandler} from '../autofocus.options'; diff --git a/projects/cdk/directives/auto-focus/handlers/default.handler.ts b/projects/cdk/directives/auto-focus/handlers/default.handler.ts index b9ac8453a6cb..bf97dc565be7 100644 --- a/projects/cdk/directives/auto-focus/handlers/default.handler.ts +++ b/projects/cdk/directives/auto-focus/handlers/default.handler.ts @@ -1,7 +1,7 @@ -import {ElementRef} from '@angular/core'; +import {type ElementRef} from '@angular/core'; import {POLLING_TIME} from '@taiga-ui/cdk/constants'; -import {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces'; -import {map, Observable, race, skipWhile, take, throttleTime, timer} from 'rxjs'; +import {type TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces'; +import {map, type Observable, race, skipWhile, take, throttleTime, timer} from 'rxjs'; import {AbstractTuiAutofocusHandler} from './abstract.handler'; diff --git a/projects/cdk/directives/auto-focus/handlers/ios.handler.ts b/projects/cdk/directives/auto-focus/handlers/ios.handler.ts index 0e313108801a..651ff021daab 100644 --- a/projects/cdk/directives/auto-focus/handlers/ios.handler.ts +++ b/projects/cdk/directives/auto-focus/handlers/ios.handler.ts @@ -1,5 +1,5 @@ -import {ElementRef, NgZone, Renderer2} from '@angular/core'; -import {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces'; +import {type ElementRef, type NgZone, type Renderer2} from '@angular/core'; +import {type TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces'; import {tuiIsPresent, tuiPx} from '@taiga-ui/cdk/utils'; import {AbstractTuiAutofocusHandler} from './abstract.handler'; diff --git a/projects/cdk/directives/auto-focus/test/auto-focus.directive.spec.ts b/projects/cdk/directives/auto-focus/test/auto-focus.directive.spec.ts index 845f72efaaab..ba689fb4c0d7 100644 --- a/projects/cdk/directives/auto-focus/test/auto-focus.directive.spec.ts +++ b/projects/cdk/directives/auto-focus/test/auto-focus.directive.spec.ts @@ -8,7 +8,7 @@ import { Self, ViewChild, } from '@angular/core'; -import {ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing'; +import {type ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing'; import {WINDOW} from '@ng-web-apis/common'; import { TUI_AUTOFOCUS_HANDLER, @@ -16,7 +16,7 @@ import { tuiAsFocusableItemAccessor, TuiAutoFocusDirective, TuiAutoFocusModule, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, TuiIosAutofocusHandler, tuiIsNativeFocused, } from '@taiga-ui/cdk'; diff --git a/projects/cdk/directives/click-outside/click-outside.directive.ts b/projects/cdk/directives/click-outside/click-outside.directive.ts index 12c1669f57e0..7ba6f38c95fa 100644 --- a/projects/cdk/directives/click-outside/click-outside.directive.ts +++ b/projects/cdk/directives/click-outside/click-outside.directive.ts @@ -2,7 +2,7 @@ import {DOCUMENT} from '@angular/common'; import {Directive, ElementRef, inject, NgZone, Output} from '@angular/core'; import {tuiZoneOptimized} from '@taiga-ui/cdk/observables'; import {tuiContainsOrAfter, tuiGetActualTarget} from '@taiga-ui/cdk/utils'; -import {filter, fromEvent, map, Observable} from 'rxjs'; +import {filter, fromEvent, map, type Observable} from 'rxjs'; @Directive({ selector: '[tuiClickOutside]', diff --git a/projects/cdk/directives/control/control.directive.ts b/projects/cdk/directives/control/control.directive.ts index 5ce78ec80e97..0b933eba084c 100644 --- a/projects/cdk/directives/control/control.directive.ts +++ b/projects/cdk/directives/control/control.directive.ts @@ -1,5 +1,5 @@ import {Directive, inject} from '@angular/core'; -import {AbstractControl, NgControl} from '@angular/forms'; +import {type AbstractControl, NgControl} from '@angular/forms'; @Directive({ selector: '[tuiControl]', diff --git a/projects/cdk/directives/control/test/control.directive.spec.ts b/projects/cdk/directives/control/test/control.directive.spec.ts index bb6757fcbbeb..7d8e77a9197d 100644 --- a/projects/cdk/directives/control/test/control.directive.spec.ts +++ b/projects/cdk/directives/control/test/control.directive.spec.ts @@ -1,5 +1,5 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'; import {By} from '@angular/platform-browser'; import {TuiControlModule} from '@taiga-ui/cdk'; diff --git a/projects/cdk/directives/copy-processor/copy-processor.directive.ts b/projects/cdk/directives/copy-processor/copy-processor.directive.ts index 5e01da81b957..45aedafb37b3 100644 --- a/projects/cdk/directives/copy-processor/copy-processor.directive.ts +++ b/projects/cdk/directives/copy-processor/copy-processor.directive.ts @@ -1,6 +1,6 @@ import {Directive, HostListener, inject, Input} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; -import {TuiStringHandler} from '@taiga-ui/cdk/types'; +import {type TuiStringHandler} from '@taiga-ui/cdk/types'; import {tuiGetSelectedText} from '@taiga-ui/cdk/utils'; import {identity} from 'rxjs'; diff --git a/projects/cdk/directives/drag/drag.directive.ts b/projects/cdk/directives/drag/drag.directive.ts index a74e767477c1..6268d8300fd6 100644 --- a/projects/cdk/directives/drag/drag.directive.ts +++ b/projects/cdk/directives/drag/drag.directive.ts @@ -1,6 +1,6 @@ import {Directive, ElementRef, inject, Output} from '@angular/core'; import {tuiDragAndDropFrom, TuiDragStage} from '@taiga-ui/cdk/observables'; -import {filter, map, Observable} from 'rxjs'; +import {filter, map, type Observable} from 'rxjs'; /** * @deprecated not used anywhere diff --git a/projects/cdk/directives/droppable/test/droppable.directive.spec.ts b/projects/cdk/directives/droppable/test/droppable.directive.spec.ts index 18c7140ba82f..82f32572f50f 100644 --- a/projects/cdk/directives/droppable/test/droppable.directive.spec.ts +++ b/projects/cdk/directives/droppable/test/droppable.directive.spec.ts @@ -1,5 +1,5 @@ import {Component} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {TuiDroppableDirective} from '@taiga-ui/cdk'; import {TuiMockEvent} from '@taiga-ui/testing'; diff --git a/projects/cdk/directives/focus-trap/focus-trap.directive.ts b/projects/cdk/directives/focus-trap/focus-trap.directive.ts index 7e2cb8102ee7..8114f5e92824 100644 --- a/projects/cdk/directives/focus-trap/focus-trap.directive.ts +++ b/projects/cdk/directives/focus-trap/focus-trap.directive.ts @@ -4,7 +4,7 @@ import { ElementRef, HostListener, inject, - OnDestroy, + type OnDestroy, Renderer2, } from '@angular/core'; import {tuiContainsOrAfter, tuiIsHTMLElement} from '@taiga-ui/cdk/utils/dom'; diff --git a/projects/cdk/directives/focusable/test/focusable.directive.spec.ts b/projects/cdk/directives/focusable/test/focusable.directive.spec.ts index 41a335829ab2..deef5c09dea3 100644 --- a/projects/cdk/directives/focusable/test/focusable.directive.spec.ts +++ b/projects/cdk/directives/focusable/test/focusable.directive.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {TuiFocusableDirective, TuiFocusableModule} from '@taiga-ui/cdk'; diff --git a/projects/cdk/directives/focused/focused.directive.ts b/projects/cdk/directives/focused/focused.directive.ts index e55133facf2a..4ae720d88dee 100644 --- a/projects/cdk/directives/focused/focused.directive.ts +++ b/projects/cdk/directives/focused/focused.directive.ts @@ -1,7 +1,7 @@ import {Directive, ElementRef, inject, NgZone, Output} from '@angular/core'; import {tuiTypedFromEvent, tuiZoneOptimized} from '@taiga-ui/cdk/observables'; import {tuiIsNativeFocused} from '@taiga-ui/cdk/utils/focus'; -import {distinctUntilChanged, map, merge, Observable, skip, startWith} from 'rxjs'; +import {distinctUntilChanged, map, merge, type Observable, skip, startWith} from 'rxjs'; /** * Directive to monitor focus/blur status, works with focusIn/focus-out diff --git a/projects/cdk/directives/focused/test/focused.directive.spec.ts b/projects/cdk/directives/focused/test/focused.directive.spec.ts index 4ebcdc05a9e2..bb6a638644db 100644 --- a/projects/cdk/directives/focused/test/focused.directive.spec.ts +++ b/projects/cdk/directives/focused/test/focused.directive.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {TuiFocusedModule} from '@taiga-ui/cdk'; diff --git a/projects/cdk/directives/for/for.directive.ts b/projects/cdk/directives/for/for.directive.ts index 1c42d45557ea..a295cd25a594 100644 --- a/projects/cdk/directives/for/for.directive.ts +++ b/projects/cdk/directives/for/for.directive.ts @@ -1,10 +1,10 @@ import { Directive, - EmbeddedViewRef, + type EmbeddedViewRef, inject, Input, - OnChanges, - TemplateRef, + type OnChanges, + type TemplateRef, ViewContainerRef, } from '@angular/core'; diff --git a/projects/cdk/directives/for/test/for.directive.spec.ts b/projects/cdk/directives/for/test/for.directive.spec.ts index a53ee6c843df..501a08dd8ceb 100644 --- a/projects/cdk/directives/for/test/for.directive.spec.ts +++ b/projects/cdk/directives/for/test/for.directive.spec.ts @@ -1,5 +1,5 @@ import {Component, ElementRef, inject} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TuiForModule} from '@taiga-ui/cdk'; import {Subject} from 'rxjs'; diff --git a/projects/cdk/directives/let/let-context.ts b/projects/cdk/directives/let/let-context.ts index 3b1eb71a1c73..702e7f0feb02 100644 --- a/projects/cdk/directives/let/let-context.ts +++ b/projects/cdk/directives/let/let-context.ts @@ -1,4 +1,4 @@ -import {TuiContext} from '@taiga-ui/cdk/interfaces'; +import {type TuiContext} from '@taiga-ui/cdk/interfaces'; import type {TuiLetDirective} from './let.directive'; diff --git a/projects/cdk/directives/let/test/let.directive.spec.ts b/projects/cdk/directives/let/test/let.directive.spec.ts index 071459df41b9..48683066e8e9 100644 --- a/projects/cdk/directives/let/test/let.directive.spec.ts +++ b/projects/cdk/directives/let/test/let.directive.spec.ts @@ -1,5 +1,10 @@ -import {ChangeDetectionStrategy, Component, ElementRef, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import { + ChangeDetectionStrategy, + Component, + type ElementRef, + ViewChild, +} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TuiLetModule} from '@taiga-ui/cdk'; describe('Let', () => { diff --git a/projects/cdk/directives/native-validator/native-validator.directive.ts b/projects/cdk/directives/native-validator/native-validator.directive.ts index 70a264e174b6..1161a019aef5 100644 --- a/projects/cdk/directives/native-validator/native-validator.directive.ts +++ b/projects/cdk/directives/native-validator/native-validator.directive.ts @@ -1,5 +1,5 @@ import {Directive, ElementRef, HostListener, inject, Input, NgZone} from '@angular/core'; -import {AbstractControl, NG_VALIDATORS, Validator} from '@angular/forms'; +import {type AbstractControl, NG_VALIDATORS, type Validator} from '@angular/forms'; import {tuiZonefree} from '@taiga-ui/cdk/observables'; import {TuiDestroyService} from '@taiga-ui/cdk/services'; import {takeUntil, timer} from 'rxjs'; diff --git a/projects/cdk/directives/overscroll/overscroll.directive.ts b/projects/cdk/directives/overscroll/overscroll.directive.ts index 97cf8ffeb602..ccc8fb2b23ea 100644 --- a/projects/cdk/directives/overscroll/overscroll.directive.ts +++ b/projects/cdk/directives/overscroll/overscroll.directive.ts @@ -1,7 +1,7 @@ import {Directive, ElementRef, HostBinding, inject, Input, NgZone} from '@angular/core'; import {tuiTypedFromEvent, tuiZonefree} from '@taiga-ui/cdk/observables'; import {TuiDestroyService} from '@taiga-ui/cdk/services'; -import {TuiEventWith, TuiOverscrollMode} from '@taiga-ui/cdk/types'; +import {type TuiEventWith, type TuiOverscrollMode} from '@taiga-ui/cdk/types'; import {tuiCanScroll, tuiGetScrollParent, tuiIsElement} from '@taiga-ui/cdk/utils/dom'; import {filter, switchMap, takeUntil, tap} from 'rxjs'; diff --git a/projects/cdk/directives/platform/platform.directive.ts b/projects/cdk/directives/platform/platform.directive.ts index a2d56bf33636..15b91308e53c 100644 --- a/projects/cdk/directives/platform/platform.directive.ts +++ b/projects/cdk/directives/platform/platform.directive.ts @@ -1,6 +1,6 @@ import {Directive, HostBinding, inject, Input} from '@angular/core'; import {TUI_PLATFORM} from '@taiga-ui/cdk/tokens'; -import {TuiPlatform} from '@taiga-ui/cdk/types'; +import {type TuiPlatform} from '@taiga-ui/cdk/types'; @Directive({ selector: '[tuiPlatform]', diff --git a/projects/cdk/directives/popover/popover.directive.ts b/projects/cdk/directives/popover/popover.directive.ts index 63512050ca80..2c599addf1b7 100644 --- a/projects/cdk/directives/popover/popover.directive.ts +++ b/projects/cdk/directives/popover/popover.directive.ts @@ -1,6 +1,6 @@ -import {Directive, inject, OnChanges} from '@angular/core'; +import {Directive, inject, type OnChanges} from '@angular/core'; import {tuiIfMap} from '@taiga-ui/cdk/observables'; -import {TuiPopover, TuiPopoverService} from '@taiga-ui/cdk/services'; +import {type TuiPopover, TuiPopoverService} from '@taiga-ui/cdk/services'; import {PolymorpheusTemplate} from '@tinkoff/ng-polymorpheus'; import {distinctUntilChanged, endWith, ignoreElements, share, Subject} from 'rxjs'; diff --git a/projects/cdk/directives/pressed/test/pressed.directive.spec.ts b/projects/cdk/directives/pressed/test/pressed.directive.spec.ts index 65e5d08303f6..f5a2ad67ea69 100644 --- a/projects/cdk/directives/pressed/test/pressed.directive.spec.ts +++ b/projects/cdk/directives/pressed/test/pressed.directive.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {TuiPressedModule} from '@taiga-ui/cdk'; import {TUI_TAKE_ONLY_TRUSTED_EVENTS} from '@taiga-ui/cdk/tokens'; diff --git a/projects/cdk/directives/repeat-times/repeat-times.directive.ts b/projects/cdk/directives/repeat-times/repeat-times.directive.ts index bf0fad915d99..4d452062b05e 100644 --- a/projects/cdk/directives/repeat-times/repeat-times.directive.ts +++ b/projects/cdk/directives/repeat-times/repeat-times.directive.ts @@ -1,5 +1,5 @@ import {Directive, inject, Input, TemplateRef, ViewContainerRef} from '@angular/core'; -import {TuiContext} from '@taiga-ui/cdk/interfaces'; +import {type TuiContext} from '@taiga-ui/cdk/interfaces'; import {tuiClamp} from '@taiga-ui/cdk/utils/math'; const MAX_VALUE = 0x10000; diff --git a/projects/cdk/directives/repeat-times/test/repeat-times.directive.spec.ts b/projects/cdk/directives/repeat-times/test/repeat-times.directive.spec.ts index 8d3f10f2d1f2..2ec92d29ecd4 100644 --- a/projects/cdk/directives/repeat-times/test/repeat-times.directive.spec.ts +++ b/projects/cdk/directives/repeat-times/test/repeat-times.directive.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {TuiRepeatTimesModule} from '@taiga-ui/cdk'; diff --git a/projects/cdk/directives/resizer/resizer.directive.ts b/projects/cdk/directives/resizer/resizer.directive.ts index b39544c3ba0d..e8e751633792 100644 --- a/projects/cdk/directives/resizer/resizer.directive.ts +++ b/projects/cdk/directives/resizer/resizer.directive.ts @@ -1,6 +1,6 @@ import { Directive, - ElementRef, + type ElementRef, EventEmitter, HostBinding, HostListener, diff --git a/projects/cdk/directives/validator/test/validator.directive.spec.ts b/projects/cdk/directives/validator/test/validator.directive.spec.ts index 90ca629800d0..2e59e5646838 100644 --- a/projects/cdk/directives/validator/test/validator.directive.spec.ts +++ b/projects/cdk/directives/validator/test/validator.directive.spec.ts @@ -1,6 +1,6 @@ import {CommonModule} from '@angular/common'; import {Component} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule, Validators} from '@angular/forms'; import {TuiValidatorDirective} from '@taiga-ui/cdk'; diff --git a/projects/cdk/directives/validator/validator.directive.ts b/projects/cdk/directives/validator/validator.directive.ts index 1e04a4c9c78d..aab5dec05391 100644 --- a/projects/cdk/directives/validator/validator.directive.ts +++ b/projects/cdk/directives/validator/validator.directive.ts @@ -1,10 +1,16 @@ -import {Directive, forwardRef, Input, OnChanges, OnDestroy} from '@angular/core'; import { - AbstractControl, + Directive, + forwardRef, + Input, + type OnChanges, + type OnDestroy, +} from '@angular/core'; +import { + type AbstractControl, NG_VALIDATORS, - ValidationErrors, - Validator, - ValidatorFn, + type ValidationErrors, + type Validator, + type ValidatorFn, Validators, } from '@angular/forms'; import {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants'; diff --git a/projects/cdk/directives/value-changes/test/value-changes.directive.spec.ts b/projects/cdk/directives/value-changes/test/value-changes.directive.spec.ts index 0a801557af28..7d1663eaec7f 100644 --- a/projects/cdk/directives/value-changes/test/value-changes.directive.spec.ts +++ b/projects/cdk/directives/value-changes/test/value-changes.directive.spec.ts @@ -1,5 +1,5 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'; import {By} from '@angular/platform-browser'; import {TuiValueChangesModule} from '@taiga-ui/cdk'; diff --git a/projects/cdk/directives/value-changes/value-changes.directive.ts b/projects/cdk/directives/value-changes/value-changes.directive.ts index 5d2af6da2c14..9b3608476287 100644 --- a/projects/cdk/directives/value-changes/value-changes.directive.ts +++ b/projects/cdk/directives/value-changes/value-changes.directive.ts @@ -1,6 +1,6 @@ -import {Directive, DoCheck, inject, Output} from '@angular/core'; +import {Directive, type DoCheck, inject, Output} from '@angular/core'; import {ControlContainer, NgControl} from '@angular/forms'; -import {distinctUntilChanged, EMPTY, Observable, Subject, switchAll} from 'rxjs'; +import {distinctUntilChanged, EMPTY, type Observable, Subject, switchAll} from 'rxjs'; @Directive({ selector: '[tuiValueChanges]', diff --git a/projects/cdk/interfaces/day-like.ts b/projects/cdk/interfaces/day-like.ts index 6e6497c14b01..3929990e0526 100644 --- a/projects/cdk/interfaces/day-like.ts +++ b/projects/cdk/interfaces/day-like.ts @@ -1,4 +1,4 @@ -import {TuiMonthLike} from './month-like'; +import {type TuiMonthLike} from './month-like'; /** * Optionally has year and/or month and/or day diff --git a/projects/cdk/interfaces/focusable-element-accessor.ts b/projects/cdk/interfaces/focusable-element-accessor.ts index 6cc630deec04..453ae4c9cbd9 100644 --- a/projects/cdk/interfaces/focusable-element-accessor.ts +++ b/projects/cdk/interfaces/focusable-element-accessor.ts @@ -1,4 +1,4 @@ -import {Observable} from 'rxjs'; +import {type Observable} from 'rxjs'; export interface TuiNativeFocusableElement extends Element, HTMLOrSVGElement {} diff --git a/projects/cdk/interfaces/month-like.ts b/projects/cdk/interfaces/month-like.ts index b5edec918c48..80324fcf62c9 100644 --- a/projects/cdk/interfaces/month-like.ts +++ b/projects/cdk/interfaces/month-like.ts @@ -1,4 +1,4 @@ -import {TuiYearLike} from './year-like'; +import {type TuiYearLike} from './year-like'; /** * Optionally has year and/or month diff --git a/projects/cdk/interfaces/safe-html.ts b/projects/cdk/interfaces/safe-html.ts index d859ac37b478..b0d41e9a93ff 100644 --- a/projects/cdk/interfaces/safe-html.ts +++ b/projects/cdk/interfaces/safe-html.ts @@ -1,3 +1,3 @@ -import {SafeHtml} from '@angular/platform-browser'; +import {type SafeHtml} from '@angular/platform-browser'; export type TuiSafeHtml = SafeHtml | string; diff --git a/projects/cdk/observables/control-value.ts b/projects/cdk/observables/control-value.ts index 5e3b13515082..d0de26340b82 100644 --- a/projects/cdk/observables/control-value.ts +++ b/projects/cdk/observables/control-value.ts @@ -1,4 +1,4 @@ -import {AbstractControl, AbstractControlDirective} from '@angular/forms'; +import {type AbstractControl, type AbstractControlDirective} from '@angular/forms'; import {TuiValueChangesException} from '@taiga-ui/cdk/exceptions'; import {Observable, startWith} from 'rxjs'; diff --git a/projects/cdk/observables/drag-and-drop-from.ts b/projects/cdk/observables/drag-and-drop-from.ts index 7b417cb97d71..2fefe5634b6f 100644 --- a/projects/cdk/observables/drag-and-drop-from.ts +++ b/projects/cdk/observables/drag-and-drop-from.ts @@ -1,6 +1,15 @@ import {TuiOwnerDocumentException} from '@taiga-ui/cdk/exceptions'; import {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous'; -import {concat, endWith, map, merge, Observable, repeat, take, takeWhile} from 'rxjs'; +import { + concat, + endWith, + map, + merge, + type Observable, + repeat, + take, + takeWhile, +} from 'rxjs'; import {tuiMouseDragFinishFrom} from './mouse-drag-finish-from'; import {tuiTypedFromEvent} from './typed-from-event'; diff --git a/projects/cdk/observables/focus-visible-observable.ts b/projects/cdk/observables/focus-visible-observable.ts index f23e9d09e33a..c4e7a346b681 100644 --- a/projects/cdk/observables/focus-visible-observable.ts +++ b/projects/cdk/observables/focus-visible-observable.ts @@ -9,7 +9,7 @@ import { ignoreElements, map, merge, - Observable, + type Observable, repeat, shareReplay, startWith, diff --git a/projects/cdk/observables/if-map.ts b/projects/cdk/observables/if-map.ts index 24ad88cb9428..1fe663d648d3 100644 --- a/projects/cdk/observables/if-map.ts +++ b/projects/cdk/observables/if-map.ts @@ -1,5 +1,5 @@ -import {TuiBooleanHandler} from '@taiga-ui/cdk/types'; -import {EMPTY, Observable, OperatorFunction, pipe, switchMap} from 'rxjs'; +import {type TuiBooleanHandler} from '@taiga-ui/cdk/types'; +import {EMPTY, type Observable, type OperatorFunction, pipe, switchMap} from 'rxjs'; export function tuiIfMap( project: (value: T) => Observable, diff --git a/projects/cdk/observables/is-alive.ts b/projects/cdk/observables/is-alive.ts index e85f1d346682..27e9b1c4834e 100644 --- a/projects/cdk/observables/is-alive.ts +++ b/projects/cdk/observables/is-alive.ts @@ -2,7 +2,7 @@ import {ALWAYS_FALSE_HANDLER} from '@taiga-ui/cdk/constants'; import { distinctUntilChanged, map, - OperatorFunction, + type OperatorFunction, pipe, startWith, switchMap, diff --git a/projects/cdk/observables/is-observed.ts b/projects/cdk/observables/is-observed.ts index b63dbd8c21c3..c2ac4fd9883e 100644 --- a/projects/cdk/observables/is-observed.ts +++ b/projects/cdk/observables/is-observed.ts @@ -1,4 +1,4 @@ -import {Observer, Subject} from 'rxjs'; +import {type Observer, type Subject} from 'rxjs'; /* In RxJS 7 All subjects now have an observed property */ type SubjectRxJS7plus = Subject & {observed: boolean}; diff --git a/projects/cdk/observables/items-query-list-observable.ts b/projects/cdk/observables/items-query-list-observable.ts index c3cd1993e158..706fb9fa2572 100644 --- a/projects/cdk/observables/items-query-list-observable.ts +++ b/projects/cdk/observables/items-query-list-observable.ts @@ -1,6 +1,6 @@ -import {QueryList} from '@angular/core'; +import {type QueryList} from '@angular/core'; import {tuiGetOriginalArrayFromQueryList} from '@taiga-ui/cdk/utils/miscellaneous'; -import {map, Observable, startWith} from 'rxjs'; +import {map, type Observable, startWith} from 'rxjs'; /** * Converts changes observable of a QueryList to an Observable of arrays diff --git a/projects/cdk/observables/mouse-drag-finish-from.ts b/projects/cdk/observables/mouse-drag-finish-from.ts index 877ed4543539..8329c30e4d6f 100644 --- a/projects/cdk/observables/mouse-drag-finish-from.ts +++ b/projects/cdk/observables/mouse-drag-finish-from.ts @@ -1,5 +1,5 @@ -import {TuiEventWith, TuiTypedEventTarget} from '@taiga-ui/cdk/types'; -import {merge, Observable} from 'rxjs'; +import {type TuiEventWith, type TuiTypedEventTarget} from '@taiga-ui/cdk/types'; +import {merge, type Observable} from 'rxjs'; import {tuiTypedFromEvent} from './typed-from-event'; diff --git a/projects/cdk/observables/must-be-present.ts b/projects/cdk/observables/must-be-present.ts index 72e8dabf0e28..9bc38ada2df3 100644 --- a/projects/cdk/observables/must-be-present.ts +++ b/projects/cdk/observables/must-be-present.ts @@ -1,6 +1,6 @@ import {TuiValuePresentException} from '@taiga-ui/cdk/exceptions'; import {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous'; -import {map, OperatorFunction} from 'rxjs'; +import {map, type OperatorFunction} from 'rxjs'; export function tuiMustBePresent(): OperatorFunction { return map(value => { diff --git a/projects/cdk/observables/pressed-observable.ts b/projects/cdk/observables/pressed-observable.ts index c8f0a45ade3c..6f6ccf14ceb5 100644 --- a/projects/cdk/observables/pressed-observable.ts +++ b/projects/cdk/observables/pressed-observable.ts @@ -1,6 +1,6 @@ import {ALWAYS_FALSE_HANDLER} from '@taiga-ui/cdk/constants'; import {TuiOwnerDocumentException} from '@taiga-ui/cdk/exceptions'; -import {filter, map, Observable, startWith, switchMap, take} from 'rxjs'; +import {filter, map, type Observable, startWith, switchMap, take} from 'rxjs'; import {tuiMouseDragFinishFrom} from './mouse-drag-finish-from'; import {tuiTypedFromEvent} from './typed-from-event'; diff --git a/projects/cdk/observables/prevent-default.ts b/projects/cdk/observables/prevent-default.ts index 797beb3467fa..5889a8b7475c 100644 --- a/projects/cdk/observables/prevent-default.ts +++ b/projects/cdk/observables/prevent-default.ts @@ -1,4 +1,4 @@ -import {MonoTypeOperatorFunction, tap} from 'rxjs'; +import {type MonoTypeOperatorFunction, tap} from 'rxjs'; export function tuiPreventDefault(): MonoTypeOperatorFunction { return tap(event => event.preventDefault()); diff --git a/projects/cdk/observables/scroll-from.ts b/projects/cdk/observables/scroll-from.ts index a6fee120075d..b7ea59ef7f47 100644 --- a/projects/cdk/observables/scroll-from.ts +++ b/projects/cdk/observables/scroll-from.ts @@ -1,4 +1,4 @@ -import {Observable} from 'rxjs'; +import {type Observable} from 'rxjs'; import {tuiTypedFromEvent} from './typed-from-event'; diff --git a/projects/cdk/observables/stop-propagation.ts b/projects/cdk/observables/stop-propagation.ts index 702544372fc1..789a3e719370 100644 --- a/projects/cdk/observables/stop-propagation.ts +++ b/projects/cdk/observables/stop-propagation.ts @@ -1,4 +1,4 @@ -import {MonoTypeOperatorFunction, tap} from 'rxjs'; +import {type MonoTypeOperatorFunction, tap} from 'rxjs'; export function tuiStopPropagation(): MonoTypeOperatorFunction { return tap(e => { diff --git a/projects/cdk/observables/test/control-value.spec.ts b/projects/cdk/observables/test/control-value.spec.ts index 335f4a3dbada..b939b445749d 100644 --- a/projects/cdk/observables/test/control-value.spec.ts +++ b/projects/cdk/observables/test/control-value.spec.ts @@ -1,5 +1,5 @@ import {fakeAsync} from '@angular/core/testing'; -import {AbstractControl, FormControl} from '@angular/forms'; +import {type AbstractControl, FormControl} from '@angular/forms'; import {tuiControlValue} from '@taiga-ui/cdk'; import {tuiSwitchNgDevMode} from '@taiga-ui/testing'; import {skip} from 'rxjs'; diff --git a/projects/cdk/observables/test/watch.spec.ts b/projects/cdk/observables/test/watch.spec.ts index f59aad0952f8..61eb1bd0c6d8 100644 --- a/projects/cdk/observables/test/watch.spec.ts +++ b/projects/cdk/observables/test/watch.spec.ts @@ -1,4 +1,4 @@ -import {ChangeDetectorRef} from '@angular/core'; +import {type ChangeDetectorRef} from '@angular/core'; import {fakeAsync, tick} from '@angular/core/testing'; import {tuiWatch} from '@taiga-ui/cdk'; import {Subject} from 'rxjs'; diff --git a/projects/cdk/observables/typed-from-event.ts b/projects/cdk/observables/typed-from-event.ts index 9f25fc91c4e8..cf48825417cc 100644 --- a/projects/cdk/observables/typed-from-event.ts +++ b/projects/cdk/observables/typed-from-event.ts @@ -1,5 +1,5 @@ -import {TuiEventWith, TuiTypedEventTarget} from '@taiga-ui/cdk/types'; -import {fromEvent, Observable} from 'rxjs'; +import {type TuiEventWith, type TuiTypedEventTarget} from '@taiga-ui/cdk/types'; +import {fromEvent, type Observable} from 'rxjs'; export function tuiTypedFromEvent( target: Window, diff --git a/projects/cdk/observables/watch.ts b/projects/cdk/observables/watch.ts index c1eb121e201f..7674b51e49d2 100644 --- a/projects/cdk/observables/watch.ts +++ b/projects/cdk/observables/watch.ts @@ -1,5 +1,5 @@ -import {ChangeDetectorRef} from '@angular/core'; -import {MonoTypeOperatorFunction, tap} from 'rxjs'; +import {type ChangeDetectorRef} from '@angular/core'; +import {type MonoTypeOperatorFunction, tap} from 'rxjs'; export function tuiWatch(cdr: ChangeDetectorRef): MonoTypeOperatorFunction { return tap(() => { diff --git a/projects/cdk/observables/zone-free.ts b/projects/cdk/observables/zone-free.ts index 74b20c4ef079..e59c9d80715a 100644 --- a/projects/cdk/observables/zone-free.ts +++ b/projects/cdk/observables/zone-free.ts @@ -1,5 +1,5 @@ -import {NgZone} from '@angular/core'; -import {MonoTypeOperatorFunction, Observable, pipe} from 'rxjs'; +import {type NgZone} from '@angular/core'; +import {type MonoTypeOperatorFunction, Observable, pipe} from 'rxjs'; export function tuiZonefull(zone: NgZone): MonoTypeOperatorFunction { return source => diff --git a/projects/cdk/pipes/filter/filter.pipe.ts b/projects/cdk/pipes/filter/filter.pipe.ts index cb791d73e50f..8d59e94f2f13 100644 --- a/projects/cdk/pipes/filter/filter.pipe.ts +++ b/projects/cdk/pipes/filter/filter.pipe.ts @@ -1,5 +1,5 @@ -import {Pipe, PipeTransform} from '@angular/core'; -import {TuiMatcher, TuiTypedMatcher} from '@taiga-ui/cdk/types'; +import {Pipe, type PipeTransform} from '@angular/core'; +import {type TuiMatcher, type TuiTypedMatcher} from '@taiga-ui/cdk/types'; @Pipe({name: 'tuiFilter'}) export class TuiFilterPipe implements PipeTransform { diff --git a/projects/cdk/pipes/filter/test/filter.pipe.spec.ts b/projects/cdk/pipes/filter/test/filter.pipe.spec.ts index c44bb12fed70..db1c670590bd 100644 --- a/projects/cdk/pipes/filter/test/filter.pipe.spec.ts +++ b/projects/cdk/pipes/filter/test/filter.pipe.spec.ts @@ -1,4 +1,4 @@ -import {TuiFilterPipe, TuiTypedMatcher} from '@taiga-ui/cdk'; +import {TuiFilterPipe, type TuiTypedMatcher} from '@taiga-ui/cdk'; describe('TuiFilter pipe', () => { let pipe: TuiFilterPipe; diff --git a/projects/cdk/pipes/is-present/is-present.pipe.ts b/projects/cdk/pipes/is-present/is-present.pipe.ts index f79fa0c65ed8..d2d7e933c9aa 100644 --- a/projects/cdk/pipes/is-present/is-present.pipe.ts +++ b/projects/cdk/pipes/is-present/is-present.pipe.ts @@ -1,4 +1,4 @@ -import {Pipe, PipeTransform} from '@angular/core'; +import {Pipe, type PipeTransform} from '@angular/core'; import {tuiIsPresent} from '@taiga-ui/cdk/utils'; @Pipe({name: 'tuiIsPresent'}) diff --git a/projects/cdk/pipes/keys/keys.pipe.ts b/projects/cdk/pipes/keys/keys.pipe.ts index 24a31e7dfe00..eaa0de2487d4 100644 --- a/projects/cdk/pipes/keys/keys.pipe.ts +++ b/projects/cdk/pipes/keys/keys.pipe.ts @@ -1,4 +1,4 @@ -import {Pipe, PipeTransform} from '@angular/core'; +import {Pipe, type PipeTransform} from '@angular/core'; @Pipe({name: 'tuiKeys'}) export class TuiKeysPipe implements PipeTransform { diff --git a/projects/cdk/pipes/mapper/mapper.pipe.ts b/projects/cdk/pipes/mapper/mapper.pipe.ts index e20dde48d9fa..ccd3133f1ead 100644 --- a/projects/cdk/pipes/mapper/mapper.pipe.ts +++ b/projects/cdk/pipes/mapper/mapper.pipe.ts @@ -1,5 +1,5 @@ -import {Pipe, PipeTransform} from '@angular/core'; -import {TuiMapper, TuiTypedMapper} from '@taiga-ui/cdk/types'; +import {Pipe, type PipeTransform} from '@angular/core'; +import {type TuiMapper, type TuiTypedMapper} from '@taiga-ui/cdk/types'; @Pipe({name: 'tuiMapper'}) export class TuiMapperPipe implements PipeTransform { diff --git a/projects/cdk/pipes/mapper/test/mapper.pipe.spec.ts b/projects/cdk/pipes/mapper/test/mapper.pipe.spec.ts index bf5784da5143..1258c360730f 100644 --- a/projects/cdk/pipes/mapper/test/mapper.pipe.spec.ts +++ b/projects/cdk/pipes/mapper/test/mapper.pipe.spec.ts @@ -1,4 +1,4 @@ -import {TuiMapperPipe, TuiTypedMapper} from '@taiga-ui/cdk'; +import {TuiMapperPipe, type TuiTypedMapper} from '@taiga-ui/cdk'; describe('TuiMapper pipe', () => { let pipe: TuiMapperPipe; diff --git a/projects/cdk/pipes/replace/replace.pipe.ts b/projects/cdk/pipes/replace/replace.pipe.ts index d96c7a372646..4c045987194f 100644 --- a/projects/cdk/pipes/replace/replace.pipe.ts +++ b/projects/cdk/pipes/replace/replace.pipe.ts @@ -1,4 +1,4 @@ -import {Pipe, PipeTransform} from '@angular/core'; +import {Pipe, type PipeTransform} from '@angular/core'; @Pipe({name: 'tuiReplace'}) export class TuiReplacePipe implements PipeTransform { diff --git a/projects/cdk/schematics/constants/file-globs.ts b/projects/cdk/schematics/constants/file-globs.ts index 3e90ddf9579c..26d4f6f5727a 100644 --- a/projects/cdk/schematics/constants/file-globs.ts +++ b/projects/cdk/schematics/constants/file-globs.ts @@ -1,4 +1,4 @@ -import {Pattern} from 'ng-morph'; +import {type Pattern} from 'ng-morph'; const EXCLUDE_DIRECTORIES = [ 'e2e', diff --git a/projects/cdk/schematics/ng-add/index.ts b/projects/cdk/schematics/ng-add/index.ts index f7f4970fb3ec..a15dbb41562c 100644 --- a/projects/cdk/schematics/ng-add/index.ts +++ b/projects/cdk/schematics/ng-add/index.ts @@ -1,4 +1,4 @@ -import {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; +import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; import {NodePackageInstallTask, RunSchematicTask} from '@angular-devkit/schematics/tasks'; import { addPackageJsonDependency, @@ -14,7 +14,7 @@ import { NG_DOMPURIFY_VERSION, TAIGA_VERSION, } from './constants/versions'; -import {TuiSchema} from './schema'; +import {type TuiSchema} from './schema'; function addDependencies(tree: Tree, options: TuiSchema): void { const packages = [...MAIN_PACKAGES, ...options.addons]; diff --git a/projects/cdk/schematics/ng-add/setup-project.ts b/projects/cdk/schematics/ng-add/setup-project.ts index ea8fcccf27fb..b2c8bcf1c5f5 100644 --- a/projects/cdk/schematics/ng-add/setup-project.ts +++ b/projects/cdk/schematics/ng-add/setup-project.ts @@ -1,6 +1,6 @@ -import {chain, Rule} from '@angular-devkit/schematics'; +import {chain, type Rule} from '@angular-devkit/schematics'; -import {TuiSchema} from './schema'; +import {type TuiSchema} from './schema'; import {addTaigaIcons} from './steps/add-taiga-icons'; import {addTaigaModules} from './steps/add-taiga-modules'; import {addTaigaStyles} from './steps/add-taiga-styles'; diff --git a/projects/cdk/schematics/ng-add/steps/add-taiga-icons.ts b/projects/cdk/schematics/ng-add/steps/add-taiga-icons.ts index b87c580e93b5..033585c73a47 100644 --- a/projects/cdk/schematics/ng-add/steps/add-taiga-icons.ts +++ b/projects/cdk/schematics/ng-add/steps/add-taiga-icons.ts @@ -1,10 +1,10 @@ -import {JsonArray} from '@angular-devkit/core'; -import {Rule, Tree} from '@angular-devkit/schematics'; +import {type JsonArray} from '@angular-devkit/core'; +import {type Rule, type Tree} from '@angular-devkit/schematics'; import {updateWorkspace} from '@schematics/angular/utility/workspace'; import {getProjectTargetOptions} from '../../utils/get-project-target-options'; import {getProjects} from '../../utils/get-projects'; -import {TuiSchema} from '../schema'; +import {type TuiSchema} from '../schema'; const ICON_ASSETS = { glob: '**/*', diff --git a/projects/cdk/schematics/ng-add/steps/add-taiga-modules.ts b/projects/cdk/schematics/ng-add/steps/add-taiga-modules.ts index 8b808cdf2214..1f54384bab50 100644 --- a/projects/cdk/schematics/ng-add/steps/add-taiga-modules.ts +++ b/projects/cdk/schematics/ng-add/steps/add-taiga-modules.ts @@ -1,18 +1,18 @@ -import {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; +import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; import {getWorkspace} from '@schematics/angular/utility/workspace'; import { addImportToNgModule, addProviderToComponent, addProviderToNgModule, - ArrayLiteralExpression, - CallExpression, - ClassDeclaration, + type ArrayLiteralExpression, + type CallExpression, + type ClassDeclaration, createProject, getMainModule, - Identifier, + type Identifier, Node, - ObjectLiteralExpression, - PropertyAssignment, + type ObjectLiteralExpression, + type PropertyAssignment, saveActiveProject, setActiveProject, SyntaxKind, @@ -30,11 +30,11 @@ import { ALERT_MODULES, BROWSER_ANIMATION_MODULE, DIALOG_MODULES, - ImportingModule, + type ImportingModule, MAIN_MODULE, SANITIZER_MODULES, } from '../constants/modules'; -import {TuiSchema} from '../schema'; +import {type TuiSchema} from '../schema'; function addTuiModules({ mainClass, diff --git a/projects/cdk/schematics/ng-add/steps/add-taiga-styles.ts b/projects/cdk/schematics/ng-add/steps/add-taiga-styles.ts index e20339104788..1074c59b6290 100644 --- a/projects/cdk/schematics/ng-add/steps/add-taiga-styles.ts +++ b/projects/cdk/schematics/ng-add/steps/add-taiga-styles.ts @@ -1,4 +1,4 @@ -import {Rule, Tree} from '@angular-devkit/schematics'; +import {type Rule, type Tree} from '@angular-devkit/schematics'; import { TAIGA_GLOBAL_NEW_STYLE, @@ -6,7 +6,7 @@ import { TAIGA_THEME_STYLE, } from '../../constants/taiga-styles'; import {addStylesToAngularJson} from '../../utils/angular-json-manipulations'; -import {TuiSchema} from '../schema'; +import {type TuiSchema} from '../schema'; export function addTaigaStyles(options: TuiSchema): Rule { return (_: Tree, context) => { diff --git a/projects/cdk/schematics/ng-add/steps/wrap-with-tui-root.ts b/projects/cdk/schematics/ng-add/steps/wrap-with-tui-root.ts index 3898c0f5f49a..30595f588e9e 100644 --- a/projects/cdk/schematics/ng-add/steps/wrap-with-tui-root.ts +++ b/projects/cdk/schematics/ng-add/steps/wrap-with-tui-root.ts @@ -1,11 +1,11 @@ -import {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; +import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; import {getWorkspace} from '@schematics/angular/utility/workspace'; import { - ClassDeclaration, + type ClassDeclaration, createProject, - Expression, + type Expression, getMainModule, - Identifier, + type Identifier, Node, saveActiveProject, setActiveProject, @@ -16,7 +16,7 @@ import {getComponentFromIdentifier} from '../../utils/get-component-from-identif import {getProjectTargetOptions} from '../../utils/get-project-target-options'; import {getProjects} from '../../utils/get-projects'; import {getStandaloneBootstrapFunction} from '../../utils/get-standalone-bootstrap-function'; -import {TuiSchema} from '../schema'; +import {type TuiSchema} from '../schema'; function addTuiRootComponent( filePath: string, diff --git a/projects/cdk/schematics/ng-add/tests/schematic-ng-add-standalone.spec.ts b/projects/cdk/schematics/ng-add/tests/schematic-ng-add-standalone.spec.ts index 569a5eca447e..8e7b2388b94c 100644 --- a/projects/cdk/schematics/ng-add/tests/schematic-ng-add-standalone.spec.ts +++ b/projects/cdk/schematics/ng-add/tests/schematic-ng-add-standalone.spec.ts @@ -16,7 +16,7 @@ import { NG_DOMPURIFY_VERSION, TAIGA_VERSION, } from '../constants/versions'; -import {TuiSchema} from '../schema'; +import {type TuiSchema} from '../schema'; const collectionPath = join(__dirname, '../../collection.json'); diff --git a/projects/cdk/schematics/ng-add/tests/schematic-ng-add.spec.ts b/projects/cdk/schematics/ng-add/tests/schematic-ng-add.spec.ts index 199cd3288801..c80e2bc783a7 100644 --- a/projects/cdk/schematics/ng-add/tests/schematic-ng-add.spec.ts +++ b/projects/cdk/schematics/ng-add/tests/schematic-ng-add.spec.ts @@ -16,7 +16,7 @@ import { NG_DOMPURIFY_VERSION, TAIGA_VERSION, } from '../constants/versions'; -import {TuiSchema} from '../schema'; +import {type TuiSchema} from '../schema'; const collectionPath = join(__dirname, '../../collection.json'); diff --git a/projects/cdk/schematics/ng-update/interfaces/replacement-attribute-to-directive.ts b/projects/cdk/schematics/ng-update/interfaces/replacement-attribute-to-directive.ts index b61d9043c928..680dd5bfb2eb 100644 --- a/projects/cdk/schematics/ng-update/interfaces/replacement-attribute-to-directive.ts +++ b/projects/cdk/schematics/ng-update/interfaces/replacement-attribute-to-directive.ts @@ -1,4 +1,4 @@ -import {Element} from 'parse5'; +import {type Element} from 'parse5'; export interface ReplacementAttributeToDirective { readonly componentSelector: string[] | string; diff --git a/projects/cdk/schematics/ng-update/interfaces/replacement-attribute.ts b/projects/cdk/schematics/ng-update/interfaces/replacement-attribute.ts index 71e476980fc0..6f4da05d9e73 100644 --- a/projects/cdk/schematics/ng-update/interfaces/replacement-attribute.ts +++ b/projects/cdk/schematics/ng-update/interfaces/replacement-attribute.ts @@ -1,4 +1,4 @@ -import {Element} from 'parse5'; +import {type Element} from 'parse5'; export interface ReplacementAttribute { readonly from: { diff --git a/projects/cdk/schematics/ng-update/interfaces/replacement-service.ts b/projects/cdk/schematics/ng-update/interfaces/replacement-service.ts index 7c3571bc6c08..44ff7b5f4b3d 100644 --- a/projects/cdk/schematics/ng-update/interfaces/replacement-service.ts +++ b/projects/cdk/schematics/ng-update/interfaces/replacement-service.ts @@ -1,4 +1,4 @@ -import {ReplacementIdentifier} from './replacement-identifier'; +import {type ReplacementIdentifier} from './replacement-identifier'; export interface ReplacementService extends ReplacementIdentifier { readonly replaceMethods?: Array<{ diff --git a/projects/cdk/schematics/ng-update/interfaces/replacement-tag.ts b/projects/cdk/schematics/ng-update/interfaces/replacement-tag.ts index 2996dcbbb5d4..bb909e174dba 100644 --- a/projects/cdk/schematics/ng-update/interfaces/replacement-tag.ts +++ b/projects/cdk/schematics/ng-update/interfaces/replacement-tag.ts @@ -1,4 +1,4 @@ -import {Element} from 'parse5'; +import {type Element} from 'parse5'; export interface ReplacementTag { readonly addAttributes?: string[]; diff --git a/projects/cdk/schematics/ng-update/steps/icons/replace-imports.ts b/projects/cdk/schematics/ng-update/steps/icons/replace-imports.ts index 7215067ad633..063fe1f1b5e0 100644 --- a/projects/cdk/schematics/ng-update/steps/icons/replace-imports.ts +++ b/projects/cdk/schematics/ng-update/steps/icons/replace-imports.ts @@ -1,12 +1,12 @@ import {getImports, Node} from 'ng-morph'; import {ALL_TS_FILES} from '../../../constants'; -import {TuiSchema} from '../../../ng-add/schema'; +import {type TuiSchema} from '../../../ng-add/schema'; import {addUniqueImport} from '../../../utils/add-unique-import'; import {SMALL_TAB_SYMBOL, SUCCESS_SYMBOL, successLog} from '../../../utils/colored-log'; import {removeImport} from '../../../utils/import-manipulations'; import {setupProgressLogger} from '../../../utils/progress'; -import {ReplacementIdentifier} from '../../interfaces/replacement-identifier'; +import {type ReplacementIdentifier} from '../../interfaces/replacement-identifier'; export function replaceImports( replaceable: ReplacementIdentifier[], diff --git a/projects/cdk/schematics/ng-update/steps/remove-module.ts b/projects/cdk/schematics/ng-update/steps/remove-module.ts index 9a95fc6bd426..c2cc3c76dcd4 100644 --- a/projects/cdk/schematics/ng-update/steps/remove-module.ts +++ b/projects/cdk/schematics/ng-update/steps/remove-module.ts @@ -1,6 +1,6 @@ import {Node} from 'ng-morph'; -import {TuiSchema} from '../../ng-add/schema'; +import {type TuiSchema} from '../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, @@ -10,7 +10,7 @@ import { } from '../../utils/colored-log'; import {getNamedImportReferences} from '../../utils/get-named-import-references'; import {removeImport} from '../../utils/import-manipulations'; -import {RemovedModule} from '../interfaces/removed-module'; +import {type RemovedModule} from '../interfaces/removed-module'; export function removeModules( options: TuiSchema, diff --git a/projects/cdk/schematics/ng-update/steps/rename-types.ts b/projects/cdk/schematics/ng-update/steps/rename-types.ts index ea8598ba9444..1d5ae50931d8 100644 --- a/projects/cdk/schematics/ng-update/steps/rename-types.ts +++ b/projects/cdk/schematics/ng-update/steps/rename-types.ts @@ -1,7 +1,7 @@ -import {getImports, ImportSpecifier, Node} from 'ng-morph'; -import {TypeNode} from 'ts-morph'; +import {getImports, type ImportSpecifier, Node} from 'ng-morph'; +import {type TypeNode} from 'ts-morph'; -import {TuiSchema} from '../../ng-add/schema'; +import {type TuiSchema} from '../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, @@ -11,7 +11,7 @@ import { } from '../../utils/colored-log'; import {getNamedImportReferences} from '../../utils/get-named-import-references'; import {removeImport, renameImport} from '../../utils/import-manipulations'; -import {ReplacementType} from '../interfaces/replacement-type'; +import {type ReplacementType} from '../interfaces/replacement-type'; function renameType( from: string, diff --git a/projects/cdk/schematics/ng-update/steps/replace-deep-import.ts b/projects/cdk/schematics/ng-update/steps/replace-deep-import.ts index 27c013ca65d8..a6b607cd99a9 100644 --- a/projects/cdk/schematics/ng-update/steps/replace-deep-import.ts +++ b/projects/cdk/schematics/ng-update/steps/replace-deep-import.ts @@ -1,7 +1,7 @@ import {editImports, getImports} from 'ng-morph'; import {ALL_TS_FILES} from '../../constants'; -import {TuiSchema} from '../../ng-add/schema'; +import {type TuiSchema} from '../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, diff --git a/projects/cdk/schematics/ng-update/steps/replace-enums.ts b/projects/cdk/schematics/ng-update/steps/replace-enums.ts index 0dbc0ae17b91..35f78ba894cf 100644 --- a/projects/cdk/schematics/ng-update/steps/replace-enums.ts +++ b/projects/cdk/schematics/ng-update/steps/replace-enums.ts @@ -1,6 +1,6 @@ -import {ImportSpecifier, Node, VariableDeclaration} from 'ng-morph'; +import {type ImportSpecifier, Node, type VariableDeclaration} from 'ng-morph'; -import {TuiSchema} from '../../ng-add/schema'; +import {type TuiSchema} from '../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, @@ -10,7 +10,7 @@ import { } from '../../utils/colored-log'; import {getNamedImportReferences} from '../../utils/get-named-import-references'; import {removeImport} from '../../utils/import-manipulations'; -import {ReplacementEnum} from '../interfaces/replacement-enum'; +import {type ReplacementEnum} from '../interfaces/replacement-enum'; function replaceEnumWithString( enumName: string, diff --git a/projects/cdk/schematics/ng-update/steps/replace-identifier.ts b/projects/cdk/schematics/ng-update/steps/replace-identifier.ts index cf9513788ec3..33b5cbed40f1 100644 --- a/projects/cdk/schematics/ng-update/steps/replace-identifier.ts +++ b/projects/cdk/schematics/ng-update/steps/replace-identifier.ts @@ -1,6 +1,6 @@ import {Node} from 'ng-morph'; -import {TuiSchema} from '../../ng-add/schema'; +import {type TuiSchema} from '../../ng-add/schema'; import {addUniqueImport} from '../../utils/add-unique-import'; import { infoLog, @@ -11,7 +11,7 @@ import { } from '../../utils/colored-log'; import {getNamedImportReferences} from '../../utils/get-named-import-references'; import {removeImport} from '../../utils/import-manipulations'; -import {ReplacementIdentifier} from '../interfaces/replacement-identifier'; +import {type ReplacementIdentifier} from '../interfaces/replacement-identifier'; export function replaceIdentifiers( options: TuiSchema, diff --git a/projects/cdk/schematics/ng-update/steps/replace-services.ts b/projects/cdk/schematics/ng-update/steps/replace-services.ts index 51c81cd57fdf..816877faffda 100644 --- a/projects/cdk/schematics/ng-update/steps/replace-services.ts +++ b/projects/cdk/schematics/ng-update/steps/replace-services.ts @@ -1,6 +1,11 @@ -import {Node, PropertyAccessExpression, SyntaxKind, TypeReferenceNode} from 'ng-morph'; +import { + Node, + type PropertyAccessExpression, + SyntaxKind, + type TypeReferenceNode, +} from 'ng-morph'; -import {TuiSchema} from '../../ng-add/schema'; +import {type TuiSchema} from '../../ng-add/schema'; import {addUniqueImport} from '../../utils/add-unique-import'; import { infoLog, @@ -13,7 +18,7 @@ import { } from '../../utils/colored-log'; import {getNamedImportReferences} from '../../utils/get-named-import-references'; import {removeImport} from '../../utils/import-manipulations'; -import {ReplacementService} from '../interfaces/replacement-service'; +import {type ReplacementService} from '../interfaces/replacement-service'; function replaceService( {from, to, replaceMethods}: ReplacementService, diff --git a/projects/cdk/schematics/ng-update/steps/show-warnings.ts b/projects/cdk/schematics/ng-update/steps/show-warnings.ts index 1d6030756fc2..67a5d67f9a63 100644 --- a/projects/cdk/schematics/ng-update/steps/show-warnings.ts +++ b/projects/cdk/schematics/ng-update/steps/show-warnings.ts @@ -1,8 +1,8 @@ -import {SchematicContext} from '@angular-devkit/schematics'; +import {type SchematicContext} from '@angular-devkit/schematics'; import {getImports} from 'ng-morph'; import {ALL_TS_FILES} from '../../constants'; -import {MigrationWarning} from '../interfaces/migration-warning'; +import {type MigrationWarning} from '../interfaces/migration-warning'; function showWarning( {name, message, moduleSpecifier = '**/**'}: MigrationWarning, diff --git a/projects/cdk/schematics/ng-update/utils/get-file-system.ts b/projects/cdk/schematics/ng-update/utils/get-file-system.ts index d4324c1c4e99..d98d89b087bb 100644 --- a/projects/cdk/schematics/ng-update/utils/get-file-system.ts +++ b/projects/cdk/schematics/ng-update/utils/get-file-system.ts @@ -1,6 +1,6 @@ -import {Tree} from '@angular-devkit/schematics'; +import {type Tree} from '@angular-devkit/schematics'; import {createProject, setActiveProject} from 'ng-morph'; -import {DevkitFileSystem} from 'ng-morph/project/classes/devkit-file-system'; +import {type DevkitFileSystem} from 'ng-morph/project/classes/devkit-file-system'; import {ALL_FILES} from '../../constants'; import {projectRoot} from '../../utils/project-root'; diff --git a/projects/cdk/schematics/ng-update/utils/templates/remove-inputs.ts b/projects/cdk/schematics/ng-update/utils/templates/remove-inputs.ts index dfbd6a6f92df..39ed6d00c02d 100644 --- a/projects/cdk/schematics/ng-update/utils/templates/remove-inputs.ts +++ b/projects/cdk/schematics/ng-update/utils/templates/remove-inputs.ts @@ -1,13 +1,13 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {DevkitFileSystem} from 'ng-morph'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type DevkitFileSystem} from 'ng-morph'; import {getInputPropertyOffsets} from '../../../utils/templates/ng-component-input-manipulations'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {RemovableInput} from '../../interfaces/removable-input'; -import {TemplateResource} from '../../interfaces/template-resource'; +import {type RemovableInput} from '../../interfaces/removable-input'; +import {type TemplateResource} from '../../interfaces/template-resource'; export function removeInputs({ resource, diff --git a/projects/cdk/schematics/ng-update/utils/templates/replace-attr-values.ts b/projects/cdk/schematics/ng-update/utils/templates/replace-attr-values.ts index 6d0be200a482..b55847883774 100644 --- a/projects/cdk/schematics/ng-update/utils/templates/replace-attr-values.ts +++ b/projects/cdk/schematics/ng-update/utils/templates/replace-attr-values.ts @@ -1,13 +1,13 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {DevkitFileSystem} from 'ng-morph'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type DevkitFileSystem} from 'ng-morph'; import {findElementsWithAttributeOnTag} from '../../../utils/templates/elements'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {ReplacementAttributeValue} from '../../interfaces/replacement-attribute-value'; -import {TemplateResource} from '../../interfaces/template-resource'; +import {type ReplacementAttributeValue} from '../../interfaces/replacement-attribute-value'; +import {type TemplateResource} from '../../interfaces/template-resource'; export function replaceAttrValues({ resource, diff --git a/projects/cdk/schematics/ng-update/utils/templates/replace-attrs-by-directives.ts b/projects/cdk/schematics/ng-update/utils/templates/replace-attrs-by-directives.ts index 2703b907082f..8eae9e193557 100644 --- a/projects/cdk/schematics/ng-update/utils/templates/replace-attrs-by-directives.ts +++ b/projects/cdk/schematics/ng-update/utils/templates/replace-attrs-by-directives.ts @@ -1,7 +1,10 @@ -import {DevkitFileSystem} from 'ng-morph'; +import {type DevkitFileSystem} from 'ng-morph'; import {replaceInputPropertyByDirective} from '../../../utils/templates/ng-component-input-manipulations'; -import {ReplacementAttributeToDirective, TemplateResource} from '../../interfaces'; +import { + type ReplacementAttributeToDirective, + type TemplateResource, +} from '../../interfaces'; export function replaceAttrsByDirective({ resource, diff --git a/projects/cdk/schematics/ng-update/utils/templates/replace-attrs.ts b/projects/cdk/schematics/ng-update/utils/templates/replace-attrs.ts index cc09b48f71d8..6d36f75cb74e 100644 --- a/projects/cdk/schematics/ng-update/utils/templates/replace-attrs.ts +++ b/projects/cdk/schematics/ng-update/utils/templates/replace-attrs.ts @@ -1,5 +1,5 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {DevkitFileSystem} from 'ng-morph'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type DevkitFileSystem} from 'ng-morph'; import { findAttributeOnElementWithAttrs, @@ -9,8 +9,8 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {ReplacementAttribute} from '../../interfaces/replacement-attribute'; -import {TemplateResource} from '../../interfaces/template-resource'; +import {type ReplacementAttribute} from '../../interfaces/replacement-attribute'; +import {type TemplateResource} from '../../interfaces/template-resource'; export function replaceAttrs({ resource, diff --git a/projects/cdk/schematics/ng-update/utils/templates/replace-tag.ts b/projects/cdk/schematics/ng-update/utils/templates/replace-tag.ts index 594f4abb3068..9c8afe2b3a17 100644 --- a/projects/cdk/schematics/ng-update/utils/templates/replace-tag.ts +++ b/projects/cdk/schematics/ng-update/utils/templates/replace-tag.ts @@ -1,5 +1,5 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {ElementLocation} from 'parse5'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type ElementLocation} from 'parse5'; const START_TAG_OFFSET = 1; const END_TAG_OFFSET = 2; diff --git a/projects/cdk/schematics/ng-update/utils/templates/replace-tags.ts b/projects/cdk/schematics/ng-update/utils/templates/replace-tags.ts index 0e6d20272e90..482311521fd9 100644 --- a/projects/cdk/schematics/ng-update/utils/templates/replace-tags.ts +++ b/projects/cdk/schematics/ng-update/utils/templates/replace-tags.ts @@ -1,13 +1,13 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {DevkitFileSystem} from 'ng-morph'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type DevkitFileSystem} from 'ng-morph'; import {findElementsByTagName} from '../../../utils/templates/elements'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {ReplacementTag} from '../../interfaces/replacement-tag'; -import {TemplateResource} from '../../interfaces/template-resource'; +import {type ReplacementTag} from '../../interfaces/replacement-tag'; +import {type TemplateResource} from '../../interfaces/template-resource'; import {replaceTag} from './replace-tag'; export function replaceTags({ diff --git a/projects/cdk/schematics/ng-update/utils/templates/template-comments.ts b/projects/cdk/schematics/ng-update/utils/templates/template-comments.ts index 1ec71eff03f6..850a7875d734 100644 --- a/projects/cdk/schematics/ng-update/utils/templates/template-comments.ts +++ b/projects/cdk/schematics/ng-update/utils/templates/template-comments.ts @@ -1,5 +1,5 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {DevkitFileSystem} from 'ng-morph'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type DevkitFileSystem} from 'ng-morph'; import {TODO_MARK} from '../../../utils/insert-todo'; import {findElementsWithAttributeOnTag} from '../../../utils/templates/elements'; @@ -7,7 +7,7 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {HtmlComment, TemplateResource} from '../../interfaces'; +import {type HtmlComment, type TemplateResource} from '../../interfaces'; export function addHTMLCommentTags({ resource, diff --git a/projects/cdk/schematics/ng-update/v3-30/constants/constants.ts b/projects/cdk/schematics/ng-update/v3-30/constants/constants.ts index 6ac8c2bb0895..0b8f55a2a3db 100644 --- a/projects/cdk/schematics/ng-update/v3-30/constants/constants.ts +++ b/projects/cdk/schematics/ng-update/v3-30/constants/constants.ts @@ -1,4 +1,4 @@ -import {ReplacementIdentifier} from '../../interfaces/replacement-identifier'; +import {type ReplacementIdentifier} from '../../interfaces/replacement-identifier'; import {ICONS} from './icons'; export const ICONS_TS: ReplacementIdentifier[] = ICONS.map(({from, to}) => ({ diff --git a/projects/cdk/schematics/ng-update/v3-30/index.ts b/projects/cdk/schematics/ng-update/v3-30/index.ts index 27972f579241..9f25f5887494 100644 --- a/projects/cdk/schematics/ng-update/v3-30/index.ts +++ b/projects/cdk/schematics/ng-update/v3-30/index.ts @@ -1,7 +1,7 @@ -import {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; +import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; import {getPackageJsonDependency, saveActiveProject} from 'ng-morph'; -import {TuiSchema} from '../../ng-add/schema'; +import {type TuiSchema} from '../../ng-add/schema'; import { FINISH_SYMBOL, infoLog, diff --git a/projects/cdk/schematics/ng-update/v3-30/tests/schematic-migrate-icons.spec.ts b/projects/cdk/schematics/ng-update/v3-30/tests/schematic-migrate-icons.spec.ts index 0879e95ff3c4..72f16c5c3ea7 100644 --- a/projects/cdk/schematics/ng-update/v3-30/tests/schematic-migrate-icons.spec.ts +++ b/projects/cdk/schematics/ng-update/v3-30/tests/schematic-migrate-icons.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3-35/constants/constants.ts b/projects/cdk/schematics/ng-update/v3-35/constants/constants.ts index 6ac8c2bb0895..0b8f55a2a3db 100644 --- a/projects/cdk/schematics/ng-update/v3-35/constants/constants.ts +++ b/projects/cdk/schematics/ng-update/v3-35/constants/constants.ts @@ -1,4 +1,4 @@ -import {ReplacementIdentifier} from '../../interfaces/replacement-identifier'; +import {type ReplacementIdentifier} from '../../interfaces/replacement-identifier'; import {ICONS} from './icons'; export const ICONS_TS: ReplacementIdentifier[] = ICONS.map(({from, to}) => ({ diff --git a/projects/cdk/schematics/ng-update/v3-35/index.ts b/projects/cdk/schematics/ng-update/v3-35/index.ts index 7320fd3da5ed..3d3253344f5b 100644 --- a/projects/cdk/schematics/ng-update/v3-35/index.ts +++ b/projects/cdk/schematics/ng-update/v3-35/index.ts @@ -1,7 +1,7 @@ -import {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; +import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; import {getPackageJsonDependency, saveActiveProject} from 'ng-morph'; -import {TuiSchema} from '../../ng-add/schema'; +import {type TuiSchema} from '../../ng-add/schema'; import { FINISH_SYMBOL, infoLog, diff --git a/projects/cdk/schematics/ng-update/v3-35/tests/schematic-migrate-icons.spec.ts b/projects/cdk/schematics/ng-update/v3-35/tests/schematic-migrate-icons.spec.ts index 6da05ac8acc4..7c5e8cafca38 100644 --- a/projects/cdk/schematics/ng-update/v3-35/tests/schematic-migrate-icons.spec.ts +++ b/projects/cdk/schematics/ng-update/v3-35/tests/schematic-migrate-icons.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3-36/index.ts b/projects/cdk/schematics/ng-update/v3-36/index.ts index 8bc049bbfd84..25ebab83907b 100644 --- a/projects/cdk/schematics/ng-update/v3-36/index.ts +++ b/projects/cdk/schematics/ng-update/v3-36/index.ts @@ -1,4 +1,4 @@ -import {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; +import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; import {NodePackageInstallTask} from '@angular-devkit/schematics/tasks'; import { addPackageJsonDependency, @@ -8,7 +8,7 @@ import { } from 'ng-morph'; import {ALL_TS_FILES} from '../../constants'; -import {TuiSchema} from '../../ng-add/schema'; +import {type TuiSchema} from '../../ng-add/schema'; import { FINISH_SYMBOL, infoLog, diff --git a/projects/cdk/schematics/ng-update/v3-36/tests/schematic-migrate-editor.spec.ts b/projects/cdk/schematics/ng-update/v3-36/tests/schematic-migrate-editor.spec.ts index b1a11a29cf19..3bd2045931da 100644 --- a/projects/cdk/schematics/ng-update/v3-36/tests/schematic-migrate-editor.spec.ts +++ b/projects/cdk/schematics/ng-update/v3-36/tests/schematic-migrate-editor.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3-40/index.ts b/projects/cdk/schematics/ng-update/v3-40/index.ts index 25798e9feb1e..80f2dff7290e 100644 --- a/projects/cdk/schematics/ng-update/v3-40/index.ts +++ b/projects/cdk/schematics/ng-update/v3-40/index.ts @@ -1,13 +1,13 @@ -import {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; +import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; import { createProject, - DevkitFileSystem, + type DevkitFileSystem, saveActiveProject, setActiveProject, } from 'ng-morph'; import {ALL_FILES, ALL_TS_FILES} from '../../constants'; -import {TuiSchema} from '../../ng-add/schema'; +import {type TuiSchema} from '../../ng-add/schema'; import { FINISH_SYMBOL, infoLog, diff --git a/projects/cdk/schematics/ng-update/v3-40/tests/schematic-migrate-textarea.spec.ts b/projects/cdk/schematics/ng-update/v3-40/tests/schematic-migrate-textarea.spec.ts index 0f53ab1ff8db..752836973535 100644 --- a/projects/cdk/schematics/ng-update/v3-40/tests/schematic-migrate-textarea.spec.ts +++ b/projects/cdk/schematics/ng-update/v3-40/tests/schematic-migrate-textarea.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3-5/index.ts b/projects/cdk/schematics/ng-update/v3-5/index.ts index c1bb0faa16f6..74435df3b770 100644 --- a/projects/cdk/schematics/ng-update/v3-5/index.ts +++ b/projects/cdk/schematics/ng-update/v3-5/index.ts @@ -1,8 +1,8 @@ -import {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; +import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; import {saveActiveProject} from 'ng-morph'; import {TAIGA_VERSION} from '../../ng-add/constants/versions'; -import {TuiSchema} from '../../ng-add/schema'; +import {type TuiSchema} from '../../ng-add/schema'; import {FINISH_SYMBOL, titleLog} from '../../utils/colored-log'; import {getFileSystem} from '../utils/get-file-system'; import {migrateExpandTemplates} from './steps/migrate-expand-templates'; diff --git a/projects/cdk/schematics/ng-update/v3-5/steps/migrate-expand-templates.ts b/projects/cdk/schematics/ng-update/v3-5/steps/migrate-expand-templates.ts index f34d823c2cdd..574da4072ba4 100644 --- a/projects/cdk/schematics/ng-update/v3-5/steps/migrate-expand-templates.ts +++ b/projects/cdk/schematics/ng-update/v3-5/steps/migrate-expand-templates.ts @@ -1,8 +1,8 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {DevkitFileSystem} from 'ng-morph'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type DevkitFileSystem} from 'ng-morph'; import {ALL_TS_FILES} from '../../../constants'; -import {TuiSchema} from '../../../ng-add/schema'; +import {type TuiSchema} from '../../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, @@ -18,7 +18,7 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {TemplateResource} from '../../interfaces/template-resource'; +import {type TemplateResource} from '../../interfaces/template-resource'; function migrateExpand({ resource, diff --git a/projects/cdk/schematics/ng-update/v3-5/tests/schematic-migrate-templates.spec.ts b/projects/cdk/schematics/ng-update/v3-5/tests/schematic-migrate-templates.spec.ts index 2b05561fab76..968d8379c637 100644 --- a/projects/cdk/schematics/ng-update/v3-5/tests/schematic-migrate-templates.spec.ts +++ b/projects/cdk/schematics/ng-update/v3-5/tests/schematic-migrate-templates.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/constants/constants.ts b/projects/cdk/schematics/ng-update/v3/constants/constants.ts index e8c5be4de02b..0b24910ff1fb 100644 --- a/projects/cdk/schematics/ng-update/v3/constants/constants.ts +++ b/projects/cdk/schematics/ng-update/v3/constants/constants.ts @@ -1,4 +1,4 @@ -import {ReplacementIdentifier} from '../../interfaces/replacement-identifier'; +import {type ReplacementIdentifier} from '../../interfaces/replacement-identifier'; export const CONSTANTS_TO_REPLACE: ReplacementIdentifier[] = [ { diff --git a/projects/cdk/schematics/ng-update/v3/constants/deprecated-functions.ts b/projects/cdk/schematics/ng-update/v3/constants/deprecated-functions.ts index 8929c24538ac..ebb567360037 100644 --- a/projects/cdk/schematics/ng-update/v3/constants/deprecated-functions.ts +++ b/projects/cdk/schematics/ng-update/v3/constants/deprecated-functions.ts @@ -1,4 +1,4 @@ -import {ReplacementType} from '../../interfaces/replacement-type'; +import {type ReplacementType} from '../../interfaces/replacement-type'; export const DEPRECATED_FUNCTIONS: readonly ReplacementType[] = [ { diff --git a/projects/cdk/schematics/ng-update/v3/constants/enums.ts b/projects/cdk/schematics/ng-update/v3/constants/enums.ts index 2274dc0564a4..55024963b155 100644 --- a/projects/cdk/schematics/ng-update/v3/constants/enums.ts +++ b/projects/cdk/schematics/ng-update/v3/constants/enums.ts @@ -1,4 +1,4 @@ -import {ReplacementEnum} from '../../interfaces/replacement-enum'; +import {type ReplacementEnum} from '../../interfaces/replacement-enum'; export const ENUMS_TO_REPLACE: ReplacementEnum[] = [ { diff --git a/projects/cdk/schematics/ng-update/v3/constants/modules.ts b/projects/cdk/schematics/ng-update/v3/constants/modules.ts index 1d35b708543f..70efb4ea5573 100644 --- a/projects/cdk/schematics/ng-update/v3/constants/modules.ts +++ b/projects/cdk/schematics/ng-update/v3/constants/modules.ts @@ -1,4 +1,4 @@ -import {RemovedModule} from '../../interfaces/removed-module'; +import {type RemovedModule} from '../../interfaces/removed-module'; export const REMOVED_MODULES: readonly RemovedModule[] = [ {name: 'TuiResizableColumnModule', moduleSpecifier: '@taiga-ui/addon-table'}, diff --git a/projects/cdk/schematics/ng-update/v3/constants/services.ts b/projects/cdk/schematics/ng-update/v3/constants/services.ts index e44b5c73ff36..c295f50a8122 100644 --- a/projects/cdk/schematics/ng-update/v3/constants/services.ts +++ b/projects/cdk/schematics/ng-update/v3/constants/services.ts @@ -1,4 +1,4 @@ -import {ReplacementService} from '../../interfaces/replacement-service'; +import {type ReplacementService} from '../../interfaces/replacement-service'; export const SERVICES_TO_REPLACE: ReplacementService[] = [ { diff --git a/projects/cdk/schematics/ng-update/v3/constants/templates.ts b/projects/cdk/schematics/ng-update/v3/constants/templates.ts index c07d0d655c05..2565a598e450 100644 --- a/projects/cdk/schematics/ng-update/v3/constants/templates.ts +++ b/projects/cdk/schematics/ng-update/v3/constants/templates.ts @@ -1,9 +1,9 @@ import {hasElementAttribute} from '../../../utils/templates/elements'; -import {ReplacementAttributeToDirective} from '../../interfaces'; -import {RemovableInput} from '../../interfaces/removable-input'; -import {ReplacementAttribute} from '../../interfaces/replacement-attribute'; -import {ReplacementAttributeValue} from '../../interfaces/replacement-attribute-value'; -import {ReplacementTag} from '../../interfaces/replacement-tag'; +import {type ReplacementAttributeToDirective} from '../../interfaces'; +import {type RemovableInput} from '../../interfaces/removable-input'; +import {type ReplacementAttribute} from '../../interfaces/replacement-attribute'; +import {type ReplacementAttributeValue} from '../../interfaces/replacement-attribute-value'; +import {type ReplacementTag} from '../../interfaces/replacement-tag'; import {TUI_INTERACTIVE_SELECTORS} from './tui-interactive-selectors'; export const ATTRS_TO_REPLACE: ReplacementAttribute[] = [ diff --git a/projects/cdk/schematics/ng-update/v3/constants/types.ts b/projects/cdk/schematics/ng-update/v3/constants/types.ts index eca377c0b849..86570dd18c07 100644 --- a/projects/cdk/schematics/ng-update/v3/constants/types.ts +++ b/projects/cdk/schematics/ng-update/v3/constants/types.ts @@ -1,4 +1,4 @@ -import {ReplacementType} from '../../interfaces/replacement-type'; +import {type ReplacementType} from '../../interfaces/replacement-type'; export const TYPES_TO_RENAME: readonly ReplacementType[] = [ { diff --git a/projects/cdk/schematics/ng-update/v3/constants/warnings.ts b/projects/cdk/schematics/ng-update/v3/constants/warnings.ts index 8ac4282ac2ff..c2bb948e3af0 100644 --- a/projects/cdk/schematics/ng-update/v3/constants/warnings.ts +++ b/projects/cdk/schematics/ng-update/v3/constants/warnings.ts @@ -1,4 +1,4 @@ -import {MigrationWarning} from '../../interfaces/migration-warning'; +import {type MigrationWarning} from '../../interfaces/migration-warning'; export const MIGRATION_WARNINGS: readonly MigrationWarning[] = [ { diff --git a/projects/cdk/schematics/ng-update/v3/index.ts b/projects/cdk/schematics/ng-update/v3/index.ts index 12d7ee167b63..816871291017 100644 --- a/projects/cdk/schematics/ng-update/v3/index.ts +++ b/projects/cdk/schematics/ng-update/v3/index.ts @@ -1,4 +1,9 @@ -import {chain, Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; +import { + chain, + type Rule, + type SchematicContext, + type Tree, +} from '@angular-devkit/schematics'; import {getPackageJsonDependency, saveActiveProject} from 'ng-morph'; import {performance} from 'perf_hooks'; @@ -8,7 +13,7 @@ import { TAIGA_THEME_FONTS, } from '../../constants/taiga-styles'; import {TAIGA_VERSION} from '../../ng-add/constants/versions'; -import {TuiSchema} from '../../ng-add/schema'; +import {type TuiSchema} from '../../ng-add/schema'; import { addStylesToAngularJson, isInvalidAngularJson, diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-date-time.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-date-time.ts index da227b594e34..bec148b37561 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-date-time.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-date-time.ts @@ -1,7 +1,7 @@ -import {CallExpression, Identifier, Node, SyntaxKind} from 'ng-morph'; +import {type CallExpression, type Identifier, Node, SyntaxKind} from 'ng-morph'; import {performance} from 'perf_hooks'; -import {TuiSchema} from '../../../ng-add/schema'; +import {type TuiSchema} from '../../../ng-add/schema'; import { infoLog, PROCESSING_SYMBOL, diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-polymorpheus.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-polymorpheus.ts index 260bcd4fdfa5..8a179a55e8a4 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-polymorpheus.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-polymorpheus.ts @@ -1,6 +1,6 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {DevkitFileSystem} from 'ng-morph/project/classes/devkit-file-system'; -import {Element} from 'parse5'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type DevkitFileSystem} from 'ng-morph/project/classes/devkit-file-system'; +import {type Element} from 'parse5'; import { findElementsByFn, @@ -12,7 +12,7 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {TemplateResource} from '../../interfaces/template-resource'; +import {type TemplateResource} from '../../interfaces/template-resource'; import {replaceTag} from '../../utils/templates/replace-tag'; function insertPolymorpheus({ diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-progress.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-progress.ts index 5e83ef066a04..c0c6ff2de10d 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-progress.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-progress.ts @@ -1,13 +1,13 @@ import { createProject, - DevkitFileSystem, + type DevkitFileSystem, saveActiveProject, setActiveProject, } from 'ng-morph'; -import {Element} from 'parse5'; +import {type Element} from 'parse5'; import {ALL_FILES, ALL_TS_FILES} from '../../../constants'; -import {TuiSchema} from '../../../ng-add/schema'; +import {type TuiSchema} from '../../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, @@ -23,7 +23,7 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {TemplateResource} from '../../interfaces/template-resource'; +import {type TemplateResource} from '../../interfaces/template-resource'; const PROPERTY_FOR_DEPRECATED_PIPES = '[color]'; diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/index.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/index.ts index 047a64654c03..ccacba38ed2c 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/index.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/index.ts @@ -1,6 +1,6 @@ -import {DevkitFileSystem} from 'ng-morph'; +import {type DevkitFileSystem} from 'ng-morph'; -import {TuiSchema} from '../../../../ng-add/schema'; +import {type TuiSchema} from '../../../../ng-add/schema'; import { infoLog, PROCESSING_SYMBOL, diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.ts index a5dd3281f09b..40ffac73c75f 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.ts @@ -1,20 +1,20 @@ import { addMethods, createProject, - DevkitFileSystem, + type DevkitFileSystem, saveActiveProject, setActiveProject, } from 'ng-morph'; import {ALL_FILES, ALL_TS_FILES} from '../../../../constants'; -import {TuiSchema} from '../../../../ng-add/schema'; +import {type TuiSchema} from '../../../../ng-add/schema'; import {addUniqueImport} from '../../../../utils/add-unique-import'; import {getNgComponents} from '../../../../utils/angular/ng-component'; import {setupProgressLogger} from '../../../../utils/progress'; import {projectRoot} from '../../../../utils/project-root'; import {getComponentTemplates} from '../../../../utils/templates/get-component-templates'; import {replaceInputProperty} from '../../../../utils/templates/ng-component-input-manipulations'; -import {TemplateResource} from '../../../interfaces/template-resource'; +import {type TemplateResource} from '../../../interfaces/template-resource'; const MIN_LABELS_MIGRATION_METHOD_NAME = 'tuiMigrationInputRangeMinLabel'; const MAX_LABELS_MIGRATION_METHOD_NAME = 'tuiMigrationInputRangeMaxLabel'; diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.ts index 2e61775b7f3c..9c78eefccf8b 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.ts @@ -1,13 +1,13 @@ import { addMethods, createProject, - DevkitFileSystem, + type DevkitFileSystem, saveActiveProject, setActiveProject, } from 'ng-morph'; import {ALL_FILES, ALL_TS_FILES} from '../../../../constants'; -import {TuiSchema} from '../../../../ng-add/schema'; +import {type TuiSchema} from '../../../../ng-add/schema'; import {addUniqueImport} from '../../../../utils/add-unique-import'; import {getNgComponents} from '../../../../utils/angular/ng-component'; import {setupProgressLogger} from '../../../../utils/progress'; @@ -18,7 +18,7 @@ import { removeInputProperty, replaceInputProperty, } from '../../../../utils/templates/ng-component-input-manipulations'; -import {TemplateResource} from '../../../interfaces/template-resource'; +import {type TemplateResource} from '../../../interfaces/template-resource'; const MIN_MAX_LABELS_MIGRATION_METHOD_NAME = 'tuiMigrationMinMaxLabel'; diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.ts index 33b20fad1117..4c5c185066c9 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.ts @@ -1,13 +1,13 @@ -import {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; +import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; import {updateWorkspace} from '@schematics/angular/utility/workspace'; import {getPackageJsonDependency, getSourceFiles} from 'ng-morph'; import {tuiIsString} from '../../../../utils/miscellaneous/is-string'; -import {TuiSchema} from '../../../ng-add/schema'; +import {type TuiSchema} from '../../../ng-add/schema'; import {isInvalidAngularJson} from '../../../utils/angular-json-manipulations'; import {getProjectTargetOptions} from '../../../utils/get-project-target-options'; import {getProjects} from '../../../utils/get-projects'; -import {Asset} from '../../interfaces/asset'; +import {type Asset} from '../../interfaces/asset'; const PROPRIETARY_TDS_ICON_ASSETS = { glob: '**/*', diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-templates.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-templates.ts index b46d85403723..0b7ab1cd86be 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-templates.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-templates.ts @@ -1,8 +1,8 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {addProviderToComponent, DevkitFileSystem} from 'ng-morph'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {addProviderToComponent, type DevkitFileSystem} from 'ng-morph'; import {ALL_TS_FILES} from '../../../constants'; -import {TuiSchema} from '../../../ng-add/schema'; +import {type TuiSchema} from '../../../ng-add/schema'; import {addImportToClosestModule} from '../../../utils/add-import-to-closest-module'; import {addUniqueImport} from '../../../utils/add-unique-import'; import {getNgComponents} from '../../../utils/angular/ng-component'; @@ -28,7 +28,7 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {TemplateResource} from '../../interfaces/template-resource'; +import {type TemplateResource} from '../../interfaces/template-resource'; import {removeInputs} from '../../utils/templates/remove-inputs'; import {replaceAttrValues} from '../../utils/templates/replace-attr-values'; import {replaceAttrs} from '../../utils/templates/replace-attrs'; diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-textfield-controller.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-textfield-controller.ts index 138cf3cdcdb6..9f12958fda8b 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-textfield-controller.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-textfield-controller.ts @@ -1,7 +1,7 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; import {arrayFlat} from 'ng-morph'; -import {DevkitFileSystem} from 'ng-morph/project/classes/devkit-file-system'; -import {Attribute, Element} from 'parse5'; +import {type DevkitFileSystem} from 'ng-morph/project/classes/devkit-file-system'; +import {type Attribute, type Element} from 'parse5'; import { findElementsByFn, @@ -13,7 +13,7 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {TemplateResource} from '../../interfaces/template-resource'; +import {type TemplateResource} from '../../interfaces/template-resource'; const TEXTFIELDS = [ 'tui-input', diff --git a/projects/cdk/schematics/ng-update/v3/steps/miscellaneous.ts b/projects/cdk/schematics/ng-update/v3/steps/miscellaneous.ts index 0915d517a365..7db31919be53 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/miscellaneous.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/miscellaneous.ts @@ -1,6 +1,6 @@ -import {Node, SyntaxKind, TypeReferenceNode} from 'ng-morph'; +import {Node, SyntaxKind, type TypeReferenceNode} from 'ng-morph'; -import {TuiSchema} from '../../../ng-add/schema'; +import {type TuiSchema} from '../../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, diff --git a/projects/cdk/schematics/ng-update/v3/steps/replace-functions.ts b/projects/cdk/schematics/ng-update/v3/steps/replace-functions.ts index d048a1d1a004..e29292bdd233 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/replace-functions.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/replace-functions.ts @@ -1,6 +1,6 @@ import {Node} from 'ng-morph'; -import {TuiSchema} from '../../../ng-add/schema'; +import {type TuiSchema} from '../../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-date-time.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-date-time.spec.ts index 72ad87fefb11..96c6949bf33f 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-date-time.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-date-time.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-hints.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-hints.spec.ts index 0dc476384565..95e00da5ee6e 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-hints.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-hints.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-polymorpheus.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-polymorpheus.spec.ts index 5f25a4dfac21..51ba6d029bed 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-polymorpheus.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-polymorpheus.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-progress.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-progress.spec.ts index 714a5b303ef8..afbef751ba63 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-progress.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-progress.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-sliders.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-sliders.spec.ts index f5615dcc7132..489371c96b3a 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-sliders.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-sliders.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-tds.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-tds.spec.ts index 2ae117206751..947bb9a65228 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-tds.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-tds.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-textfields.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-textfields.spec.ts index d7cf084bb469..cc43064a6521 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-textfields.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-textfields.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-miscellaneous.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-miscellaneous.spec.ts index b9bb0d3eaa57..10773875bd3a 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-miscellaneous.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-miscellaneous.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-rename-types.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-rename-types.spec.ts index e00d49f7fc83..f4732ba42982 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-rename-types.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-rename-types.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-consts.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-consts.spec.ts index 2ba16703e548..4b77012a1f64 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-consts.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-consts.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-deep-imports.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-deep-imports.spec.ts index 50579fce1e95..98d0e7f029ec 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-deep-imports.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-deep-imports.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-deprecated-functions.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-deprecated-functions.spec.ts index a44c8b8fa867..9ba4e5c8d89d 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-deprecated-functions.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-deprecated-functions.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-enums.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-enums.spec.ts index d570cb3df9ff..607a4fe072e5 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-enums.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-enums.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-functions.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-functions.spec.ts index c2a9ef6b509a..c9ffc3eb673f 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-functions.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-functions.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-html.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-html.spec.ts index 5019cf41606c..1d322c558e0c 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-html.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-html.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-proprietary-consts.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-proprietary-consts.spec.ts index 63affcf1652a..7984307fcdcf 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-proprietary-consts.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-proprietary-consts.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-services.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-services.spec.ts index 5264798926c7..e3529fef03a5 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-services.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-services.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-styles.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-styles.spec.ts index 6b263d783046..bc4e4dc40b41 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-styles.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-styles.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-textfield-icon.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-textfield-icon.spec.ts index dcd258ffc25e..0201dd843943 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-textfield-icon.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-textfield-icon.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-warnings.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-warnings.spec.ts index 66b2b8d90976..c49a13592592 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-warnings.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-warnings.spec.ts @@ -1,7 +1,7 @@ -import {LogEntry} from '@angular-devkit/core/src/logger/logger'; +import {type LogEntry} from '@angular-devkit/core/src/logger/logger'; import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, @@ -10,7 +10,7 @@ import { setActiveProject, } from 'ng-morph'; import {join} from 'path'; -import {Subscription} from 'rxjs'; +import {type Subscription} from 'rxjs'; import {createAngularJsonWithAssets} from '../../../utils/create-angular-json'; import {MIGRATION_WARNINGS} from '../constants/warnings'; diff --git a/projects/cdk/schematics/ng-update/v4/index.ts b/projects/cdk/schematics/ng-update/v4/index.ts index d26a2a30146f..8e2e7129bc4a 100644 --- a/projects/cdk/schematics/ng-update/v4/index.ts +++ b/projects/cdk/schematics/ng-update/v4/index.ts @@ -1,10 +1,15 @@ -import {chain, Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; +import { + chain, + type Rule, + type SchematicContext, + type Tree, +} from '@angular-devkit/schematics'; import {createProject, saveActiveProject} from 'ng-morph'; import {performance} from 'perf_hooks'; import {ALL_FILES} from '../../constants'; import {TAIGA_VERSION} from '../../ng-add/constants/versions'; -import {TuiSchema} from '../../ng-add/schema'; +import {type TuiSchema} from '../../ng-add/schema'; import {FINISH_SYMBOL, START_SYMBOL, titleLog} from '../../utils/colored-log'; import {getExecutionTime} from '../../utils/get-execution-time'; import {projectRoot} from '../../utils/project-root'; diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.ts index 1d245649ebb5..4b7ed7c8af33 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.ts @@ -1,4 +1,4 @@ -import {ReplacementAttributeToDirective} from '../../../interfaces'; +import {type ReplacementAttributeToDirective} from '../../../interfaces'; export const ATTRS_TO_DIRECTIVE_REPLACE: ReplacementAttributeToDirective[] = [ { diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/attrs-to-replace.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/attrs-to-replace.ts index d4d11a0747e9..62970fce55a9 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/attrs-to-replace.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/attrs-to-replace.ts @@ -1,4 +1,4 @@ -import {ReplacementAttribute} from '../../../interfaces'; +import {type ReplacementAttribute} from '../../../interfaces'; export const ATTRS_TO_REPLACE: ReplacementAttribute[] = [ { diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/html-comments.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/html-comments.ts index b302e6167f79..f3e0ef5264ee 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/html-comments.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/html-comments.ts @@ -1,4 +1,4 @@ -import {HtmlComment} from '../../../interfaces'; +import {type HtmlComment} from '../../../interfaces'; export const HTML_COMMENTS: HtmlComment[] = [ { diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/identifiers-to-replace.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/identifiers-to-replace.ts index 51fdaa25e76c..de54ffbbe91c 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/identifiers-to-replace.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/identifiers-to-replace.ts @@ -1,4 +1,4 @@ -import {ReplacementIdentifier} from '../../../interfaces'; +import {type ReplacementIdentifier} from '../../../interfaces'; export const IDENTIFIERS_TO_REPLACE: ReplacementIdentifier[] = [ { diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/inputs-to-remove.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/inputs-to-remove.ts index a6d159396c24..63c5ea66876e 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/inputs-to-remove.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/inputs-to-remove.ts @@ -1,4 +1,4 @@ -import {RemovableInput} from '../../../interfaces'; +import {type RemovableInput} from '../../../interfaces'; export const INPUTS_TO_REMOVE: RemovableInput[] = [ {inputName: 'active', tags: ['tui-card', 'tui-thumbnail-card']}, diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/migration-warnings.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/migration-warnings.ts index e132b8060bf9..e3c757c728b4 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/migration-warnings.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/migration-warnings.ts @@ -1,4 +1,4 @@ -import {MigrationWarning} from '../../../interfaces'; +import {type MigrationWarning} from '../../../interfaces'; export const MIGRATION_WARNINGS: MigrationWarning[] = [ { diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/modules-to-remove.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/modules-to-remove.ts index 2d8a7b14de1f..c17541f2e94b 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/modules-to-remove.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/modules-to-remove.ts @@ -1,4 +1,4 @@ -import {RemovedModule} from '../../../interfaces'; +import {type RemovedModule} from '../../../interfaces'; export const MODULES_TO_REMOVE: RemovedModule[] = [ { diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/tags-to-replace.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/tags-to-replace.ts index a60647553b36..6e478787fd2d 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/tags-to-replace.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/tags-to-replace.ts @@ -1,4 +1,4 @@ -import {ReplacementTag} from '../../../interfaces'; +import {type ReplacementTag} from '../../../interfaces'; export const TAGS_TO_REPLACE: ReplacementTag[] = [ {from: 'tui-card', to: 'tui-thumbnail-card'}, diff --git a/projects/cdk/schematics/ng-update/v4/steps/migrate-legacy-mask.ts b/projects/cdk/schematics/ng-update/v4/steps/migrate-legacy-mask.ts index 448ecce6a8d1..1da2e6693502 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/migrate-legacy-mask.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/migrate-legacy-mask.ts @@ -10,7 +10,7 @@ import { } from '@taiga-ui/cdk/schematics'; import {Node} from 'ng-morph'; -import {TuiSchema} from '../../../ng-add/schema'; +import {type TuiSchema} from '../../../ng-add/schema'; export function migrateLegacyMask(options: TuiSchema): void { !options['skip-logs'] && diff --git a/projects/cdk/schematics/ng-update/v4/steps/migrate-templates.ts b/projects/cdk/schematics/ng-update/v4/steps/migrate-templates.ts index 06ce886138f0..d5569a8bf708 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/migrate-templates.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/migrate-templates.ts @@ -1,7 +1,7 @@ -import {DevkitFileSystem, UpdateRecorder} from 'ng-morph'; +import {type DevkitFileSystem, type UpdateRecorder} from 'ng-morph'; import {ALL_TS_FILES} from '../../../constants'; -import {TuiSchema} from '../../../ng-add/schema'; +import {type TuiSchema} from '../../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, @@ -12,7 +12,7 @@ import { import {setupProgressLogger} from '../../../utils/progress'; import {getComponentTemplates} from '../../../utils/templates/get-component-templates'; import {getPathFromTemplateResource} from '../../../utils/templates/template-resource'; -import {TemplateResource} from '../../interfaces/template-resource'; +import {type TemplateResource} from '../../interfaces/template-resource'; import { addHTMLCommentTags, removeInputs, diff --git a/projects/cdk/schematics/ng-update/v4/steps/restore-tui-mapper.ts b/projects/cdk/schematics/ng-update/v4/steps/restore-tui-mapper.ts index 613985269708..0ab6e143dcc4 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/restore-tui-mapper.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/restore-tui-mapper.ts @@ -1,6 +1,6 @@ import {Node} from 'ng-morph'; -import {TuiSchema} from '../../../ng-add/schema'; +import {type TuiSchema} from '../../../ng-add/schema'; import { FINISH_SYMBOL, infoLog, diff --git a/projects/cdk/schematics/ng-update/v4/steps/restore-tui-matcher.ts b/projects/cdk/schematics/ng-update/v4/steps/restore-tui-matcher.ts index f6c49c4bd25c..bbdf58a443ca 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/restore-tui-matcher.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/restore-tui-matcher.ts @@ -1,6 +1,6 @@ import {Node} from 'ng-morph'; -import {TuiSchema} from '../../../ng-add/schema'; +import {type TuiSchema} from '../../../ng-add/schema'; import { FINISH_SYMBOL, infoLog, diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-avatar.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-avatar.ts index a1cb814a5d04..c58859411725 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-avatar.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-avatar.ts @@ -1,6 +1,6 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {DevkitFileSystem} from 'ng-morph'; -import {Attribute} from 'parse5'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type DevkitFileSystem} from 'ng-morph'; +import {type Attribute} from 'parse5'; import {addImportToClosestModule} from '../../../../utils/add-import-to-closest-module'; import {findElementsByTagName} from '../../../../utils/templates/elements'; @@ -8,7 +8,7 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../../utils/templates/template-resource'; -import {TemplateResource} from '../../../interfaces'; +import {type TemplateResource} from '../../../interfaces'; import {removeAttrs} from '../utils/remove-attrs'; function addModules( diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-badge.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-badge.ts index 5516b667404d..65b7b5ec7580 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-badge.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-badge.ts @@ -1,13 +1,13 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {DevkitFileSystem} from 'ng-morph'; -import {Attribute, Element, ElementLocation} from 'parse5'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type DevkitFileSystem} from 'ng-morph'; +import {type Attribute, type Element, type ElementLocation} from 'parse5'; import {findElementsByTagName} from '../../../../utils/templates/elements'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../../utils/templates/template-resource'; -import {TemplateResource} from '../../../interfaces'; +import {type TemplateResource} from '../../../interfaces'; export function migrateBadge({ resource, diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-badged-content.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-badged-content.ts index 55e3d3a589f7..eed2903ace27 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-badged-content.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-badged-content.ts @@ -1,14 +1,14 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; import {findAttr} from '@taiga-ui/cdk/schematics/utils/templates/inputs'; -import {DevkitFileSystem} from 'ng-morph'; -import {Attribute, ElementLocation} from 'parse5'; +import {type DevkitFileSystem} from 'ng-morph'; +import {type Attribute, type ElementLocation} from 'parse5'; import {findElementsByTagName} from '../../../../utils/templates/elements'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../../utils/templates/template-resource'; -import {TemplateResource} from '../../../interfaces'; +import {type TemplateResource} from '../../../interfaces'; import {removeAttrs} from '../utils/remove-attrs'; export function migrateBadgedContent({ diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-expandable.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-expandable.ts index ebdfe36cf2f1..c2eee15d1c0e 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-expandable.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-expandable.ts @@ -1,12 +1,12 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {DevkitFileSystem} from 'ng-morph'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type DevkitFileSystem} from 'ng-morph'; import {findElementsWithAttributeOnTag} from '../../../../utils/templates/elements'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../../utils/templates/template-resource'; -import {TemplateResource} from '../../../interfaces'; +import {type TemplateResource} from '../../../interfaces'; export function migrateExpandable({ resource, diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-money.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-money.ts index e5e2b594e21e..f4e3f381892a 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-money.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-money.ts @@ -1,7 +1,7 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; import {tuiCleanObject} from '@taiga-ui/cdk'; import {addImportToClosestModule} from '@taiga-ui/cdk/schematics'; -import {TemplateResource} from '@taiga-ui/cdk/schematics/ng-update/interfaces'; +import {type TemplateResource} from '@taiga-ui/cdk/schematics/ng-update/interfaces'; import {removeAttrs} from '@taiga-ui/cdk/schematics/ng-update/v4/steps/utils/remove-attrs'; import {findElementsByTagName} from '@taiga-ui/cdk/schematics/utils/templates/elements'; import {findAttr, isBinding} from '@taiga-ui/cdk/schematics/utils/templates/inputs'; @@ -9,8 +9,8 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '@taiga-ui/cdk/schematics/utils/templates/template-resource'; -import {DevkitFileSystem} from 'ng-morph'; -import {Attribute} from 'parse5'; +import {type DevkitFileSystem} from 'ng-morph'; +import {type Attribute} from 'parse5'; export function migrateMoney({ resource, diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-prevent-default.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-prevent-default.ts index ff7ef3bea845..26ae464ad966 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-prevent-default.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-prevent-default.ts @@ -1,12 +1,12 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {TemplateResource} from '@taiga-ui/cdk/schematics/ng-update/interfaces'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type TemplateResource} from '@taiga-ui/cdk/schematics/ng-update/interfaces'; import {findElementsWithAttribute} from '@taiga-ui/cdk/schematics/utils/templates/elements'; import {findAttr} from '@taiga-ui/cdk/schematics/utils/templates/inputs'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '@taiga-ui/cdk/schematics/utils/templates/template-resource'; -import {DevkitFileSystem} from 'ng-morph'; +import {type DevkitFileSystem} from 'ng-morph'; export function migratePreventDefault({ resource, diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/common.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/common.ts index c2dfd13ca095..99ab8c49a666 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/common.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/common.ts @@ -1,5 +1,5 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {Attribute, ElementLocation} from 'parse5'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type Attribute, type ElementLocation} from 'parse5'; const sizeMap: Record = { l: 'm', diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.ts index f0b19e8c7d63..b45a7b970d5b 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.ts @@ -1,12 +1,12 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {DevkitFileSystem} from 'ng-morph'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type DevkitFileSystem} from 'ng-morph'; import {findElementsByTagName} from '../../../../../utils/templates/elements'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../../../utils/templates/template-resource'; -import {TemplateResource} from '../../../../interfaces'; +import {type TemplateResource} from '../../../../interfaces'; import {closeStartTag, removeClosingTag, replaceOpenTag, replaceSizeAttr} from './common'; export function migrateCheckbox({ diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.ts index 7ce7d79c7f8f..00c6d90d57ba 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.ts @@ -1,12 +1,12 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {DevkitFileSystem} from 'ng-morph'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type DevkitFileSystem} from 'ng-morph'; import {findElementsByTagName} from '../../../../../utils/templates/elements'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../../../utils/templates/template-resource'; -import {TemplateResource} from '../../../../interfaces'; +import {type TemplateResource} from '../../../../interfaces'; import {closeStartTag, removeClosingTag, replaceOpenTag, replaceSizeAttr} from './common'; export function migrateRadio({ diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.ts index 8e3dbc30a367..08e02d57d025 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.ts @@ -1,12 +1,12 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {DevkitFileSystem} from 'ng-morph'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type DevkitFileSystem} from 'ng-morph'; import {findElementsByTagName} from '../../../../../utils/templates/elements'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../../../utils/templates/template-resource'; -import {TemplateResource} from '../../../../interfaces'; +import {type TemplateResource} from '../../../../interfaces'; import {closeStartTag, removeClosingTag, replaceOpenTag, replaceSizeAttr} from './common'; export function migrateToggle({ diff --git a/projects/cdk/schematics/ng-update/v4/steps/utils/remove-attrs.ts b/projects/cdk/schematics/ng-update/v4/steps/utils/remove-attrs.ts index bf8bd1e88060..f31304f5d6a8 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/utils/remove-attrs.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/utils/remove-attrs.ts @@ -1,5 +1,5 @@ -import {UpdateRecorder} from '@angular-devkit/schematics'; -import {Attribute, ElementLocation} from 'parse5'; +import {type UpdateRecorder} from '@angular-devkit/schematics'; +import {type Attribute, type ElementLocation} from 'parse5'; export function removeAttrs( attrs: Attribute[], diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-avatar.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-avatar.spec.ts index ebb77239dd55..edeb33cf8013 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-avatar.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-avatar.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-badge.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-badge.spec.ts index 8032bf42d670..11786ab49d62 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-badge.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-badge.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-badged-content.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-badged-content.spec.ts index 2c01aafefcba..128233907034 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-badged-content.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-badged-content.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-checkbox.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-checkbox.spec.ts index c7174e627a36..0eff0caf4e27 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-checkbox.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-checkbox.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-expandable.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-expandable.spec.ts index eb993fad64a3..dc9d9aea9319 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-expandable.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-expandable.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-input-count.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-input-count.spec.ts index 0e5bee7ba5cf..b0ebefa5fb21 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-input-count.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-input-count.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-legacy-mask.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-legacy-mask.spec.ts index 7219c5e2502c..fd49d5b82292 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-legacy-mask.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-legacy-mask.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-money.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-money.spec.ts index 178906234314..417965915493 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-money.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-money.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-prevent-default.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-prevent-default.spec.ts index 3f35b6aad65d..8377c96bbea2 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-prevent-default.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-prevent-default.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-radio.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-radio.spec.ts index 8f39351f2dac..56ce9fc1ad16 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-radio.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-radio.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-restore-tui-mapper.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-restore-tui-mapper.spec.ts index 062ade233c34..75a462948119 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-restore-tui-mapper.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-restore-tui-mapper.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-restore-tui-matcher.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-restore-tui-matcher.spec.ts index e971a43b57ac..6b1db6eb8c4b 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-restore-tui-matcher.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-restore-tui-matcher.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-thumbnail-card.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-thumbnail-card.spec.ts index 254d967ba0b1..0951f6a73f70 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-thumbnail-card.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-thumbnail-card.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-toggle.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-toggle.spec.ts index 3e3ad827d673..ce07f25860d3 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-toggle.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-toggle.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-textfield-controller.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-textfield-controller.spec.ts index cac66434334b..c259fbc62093 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-textfield-controller.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-textfield-controller.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/utils/angular-json-manipulations.ts b/projects/cdk/schematics/utils/angular-json-manipulations.ts index dc8b0313e2e3..330d6ef004be 100644 --- a/projects/cdk/schematics/utils/angular-json-manipulations.ts +++ b/projects/cdk/schematics/utils/angular-json-manipulations.ts @@ -1,13 +1,13 @@ -import {JsonArray} from '@angular-devkit/core'; -import {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; +import {type JsonArray} from '@angular-devkit/core'; +import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; import {NodePackageInstallTask} from '@angular-devkit/schematics/tasks'; import {getWorkspace, updateWorkspace} from '@schematics/angular/utility/workspace'; import {addPackageJsonDependency} from 'ng-morph'; import {tuiIsString} from '../../utils/miscellaneous/is-string'; import {TAIGA_VERSION} from '../ng-add/constants/versions'; -import {TuiSchema} from '../ng-add/schema'; -import {Asset} from '../ng-update/interfaces/asset'; +import {type TuiSchema} from '../ng-add/schema'; +import {type Asset} from '../ng-update/interfaces/asset'; import {getProjectTargetOptions} from './get-project-target-options'; import {getProjects} from './get-projects'; diff --git a/projects/cdk/schematics/utils/angular/is-standalone-component.ts b/projects/cdk/schematics/utils/angular/is-standalone-component.ts index 40e276deac70..a1b2e87babe4 100644 --- a/projects/cdk/schematics/utils/angular/is-standalone-component.ts +++ b/projects/cdk/schematics/utils/angular/is-standalone-component.ts @@ -1,4 +1,4 @@ -import {ClassDeclaration, Node} from 'ng-morph'; +import {type ClassDeclaration, Node} from 'ng-morph'; // TODO: add to ng-morph export function isStandaloneComponent(component: ClassDeclaration): boolean { diff --git a/projects/cdk/schematics/utils/angular/ng-component.ts b/projects/cdk/schematics/utils/angular/ng-component.ts index 3fff1862e5e2..76dae91297e0 100644 --- a/projects/cdk/schematics/utils/angular/ng-component.ts +++ b/projects/cdk/schematics/utils/angular/ng-component.ts @@ -1,4 +1,10 @@ -import {ClassDeclaration, getClasses, Pattern, Query, StructureType} from 'ng-morph'; +import { + type ClassDeclaration, + getClasses, + type Pattern, + type Query, + type StructureType, +} from 'ng-morph'; export function getNgComponents( pattern: Pattern, diff --git a/projects/cdk/schematics/utils/angular/ng-module.ts b/projects/cdk/schematics/utils/angular/ng-module.ts index c3b5282bc419..cb7416286116 100644 --- a/projects/cdk/schematics/utils/angular/ng-module.ts +++ b/projects/cdk/schematics/utils/angular/ng-module.ts @@ -1,10 +1,10 @@ import { - ClassDeclaration, + type ClassDeclaration, getClasses, getImports, - Pattern, - Query, - StructureType, + type Pattern, + type Query, + type StructureType, } from 'ng-morph'; import {ALL_TS_FILES} from '../../constants'; diff --git a/projects/cdk/schematics/utils/get-component-from-identifier.ts b/projects/cdk/schematics/utils/get-component-from-identifier.ts index 872595d6a721..abc1fa1bd79c 100644 --- a/projects/cdk/schematics/utils/get-component-from-identifier.ts +++ b/projects/cdk/schematics/utils/get-component-from-identifier.ts @@ -1,4 +1,4 @@ -import {ClassDeclaration, getImports, Node} from 'ng-morph'; +import {type ClassDeclaration, getImports, type Node} from 'ng-morph'; import {getNgComponents} from './angular/ng-component'; diff --git a/projects/cdk/schematics/utils/get-named-import-references.ts b/projects/cdk/schematics/utils/get-named-import-references.ts index 581e7b650c73..9ddf376f5f41 100644 --- a/projects/cdk/schematics/utils/get-named-import-references.ts +++ b/projects/cdk/schematics/utils/get-named-import-references.ts @@ -1,4 +1,4 @@ -import {arrayFlat, getImports, Node} from 'ng-morph'; +import {arrayFlat, getImports, type Node} from 'ng-morph'; import {ALL_TS_FILES} from '../constants'; diff --git a/projects/cdk/schematics/utils/get-project-target-options.ts b/projects/cdk/schematics/utils/get-project-target-options.ts index 163fb911eaf9..961095eb6467 100644 --- a/projects/cdk/schematics/utils/get-project-target-options.ts +++ b/projects/cdk/schematics/utils/get-project-target-options.ts @@ -1,4 +1,4 @@ -import {JsonArray, JsonObject, workspaces} from '@angular-devkit/core'; +import {type JsonArray, type JsonObject, type workspaces} from '@angular-devkit/core'; import {SchematicsException} from '@angular-devkit/schematics'; export function getProjectTargetOptions( diff --git a/projects/cdk/schematics/utils/get-projects.ts b/projects/cdk/schematics/utils/get-projects.ts index e29b1567bfcf..3ee799149c56 100644 --- a/projects/cdk/schematics/utils/get-projects.ts +++ b/projects/cdk/schematics/utils/get-projects.ts @@ -1,6 +1,6 @@ -import {workspaces} from '@angular-devkit/core'; +import {type workspaces} from '@angular-devkit/core'; -import {TuiSchema} from '../ng-add/schema'; +import {type TuiSchema} from '../ng-add/schema'; export function getProjects( options: TuiSchema, diff --git a/projects/cdk/schematics/utils/get-standalone-bootstrap-function.ts b/projects/cdk/schematics/utils/get-standalone-bootstrap-function.ts index abf7035ebc22..7b0fbbec484f 100644 --- a/projects/cdk/schematics/utils/get-standalone-bootstrap-function.ts +++ b/projects/cdk/schematics/utils/get-standalone-bootstrap-function.ts @@ -1,4 +1,4 @@ -import {CallExpression, Node} from 'ng-morph'; +import {type CallExpression, Node} from 'ng-morph'; import {getNamedImportReferences} from './get-named-import-references'; diff --git a/projects/cdk/schematics/utils/import-manipulations.ts b/projects/cdk/schematics/utils/import-manipulations.ts index eca667e17291..219bbcd75ae5 100644 --- a/projects/cdk/schematics/utils/import-manipulations.ts +++ b/projects/cdk/schematics/utils/import-manipulations.ts @@ -1,4 +1,4 @@ -import {ImportSpecifier} from 'ng-morph'; +import {type ImportSpecifier} from 'ng-morph'; export function removeImport(specifier: ImportSpecifier): void { if (specifier.getImportDeclaration().getNamedImports().length === 1) { diff --git a/projects/cdk/schematics/utils/insert-todo.ts b/projects/cdk/schematics/utils/insert-todo.ts index 554d1e06b2b2..1332b461b91e 100644 --- a/projects/cdk/schematics/utils/insert-todo.ts +++ b/projects/cdk/schematics/utils/insert-todo.ts @@ -1,4 +1,4 @@ -import {Identifier} from 'ng-morph'; +import {type Identifier} from 'ng-morph'; export const TODO_MARK = 'TODO: (Taiga UI migration)'; diff --git a/projects/cdk/schematics/utils/push-to-array-property.ts b/projects/cdk/schematics/utils/push-to-array-property.ts index 50ba63b110ae..5a78925a4242 100644 --- a/projects/cdk/schematics/utils/push-to-array-property.ts +++ b/projects/cdk/schematics/utils/push-to-array-property.ts @@ -1,4 +1,4 @@ -import {Node, ObjectLiteralExpression} from 'ng-morph'; +import {Node, type ObjectLiteralExpression} from 'ng-morph'; export function pushToObjectArrayProperty( objectExpression: ObjectLiteralExpression, diff --git a/projects/cdk/schematics/utils/templates/elements.ts b/projects/cdk/schematics/utils/templates/elements.ts index 625db052690e..8127871557f5 100644 --- a/projects/cdk/schematics/utils/templates/elements.ts +++ b/projects/cdk/schematics/utils/templates/elements.ts @@ -1,5 +1,5 @@ import {ALWAYS_TRUE_HANDLER} from '@taiga-ui/cdk'; -import {ChildNode, Element, parseFragment} from 'parse5'; +import {type ChildNode, type Element, parseFragment} from 'parse5'; export function findElementsByFn( nodes: ChildNode[], diff --git a/projects/cdk/schematics/utils/templates/get-component-templates.ts b/projects/cdk/schematics/utils/templates/get-component-templates.ts index 26f54c7c845a..ae83da287f22 100644 --- a/projects/cdk/schematics/utils/templates/get-component-templates.ts +++ b/projects/cdk/schematics/utils/templates/get-component-templates.ts @@ -1,16 +1,16 @@ import { - ClassDeclaration, - Decorator, + type ClassDeclaration, + type Decorator, getClasses, - ObjectLiteralExpression, - Pattern, - PropertyAssignment, - Query, - StructureType, + type ObjectLiteralExpression, + type Pattern, + type PropertyAssignment, + type Query, + type StructureType, } from 'ng-morph'; import * as path from 'path'; -import {TemplateResource} from '../../ng-update/interfaces/template-resource'; +import {type TemplateResource} from '../../ng-update/interfaces/template-resource'; function decoratorToTemplateResource(decorator: Decorator): TemplateResource | null { const [metadata] = decorator.getArguments() as ObjectLiteralExpression[]; diff --git a/projects/cdk/schematics/utils/templates/inputs.ts b/projects/cdk/schematics/utils/templates/inputs.ts index 88d22a3f8208..3c8a27f329a1 100644 --- a/projects/cdk/schematics/utils/templates/inputs.ts +++ b/projects/cdk/schematics/utils/templates/inputs.ts @@ -1,4 +1,4 @@ -import {Attribute} from 'parse5'; +import {type Attribute} from 'parse5'; export function findAttr(attrs: Attribute[], name: string): Attribute | undefined { return attrs.find(attr => attr.name === name || attr.name === `[${name}]`); diff --git a/projects/cdk/schematics/utils/templates/ng-component-input-manipulations.ts b/projects/cdk/schematics/utils/templates/ng-component-input-manipulations.ts index da998d1d3c1a..da64e1b79839 100644 --- a/projects/cdk/schematics/utils/templates/ng-component-input-manipulations.ts +++ b/projects/cdk/schematics/utils/templates/ng-component-input-manipulations.ts @@ -1,7 +1,7 @@ -import {DevkitFileSystem} from 'ng-morph/project/classes/devkit-file-system'; -import {Element} from 'parse5'; +import {type DevkitFileSystem} from 'ng-morph/project/classes/devkit-file-system'; +import {type Element} from 'parse5'; -import {TemplateResource} from '../../ng-update/interfaces/template-resource'; +import {type TemplateResource} from '../../ng-update/interfaces/template-resource'; import {addImportToClosestModule} from '../add-import-to-closest-module'; import { findAttributeOnElementWithAttrs, diff --git a/projects/cdk/schematics/utils/templates/template-resource.ts b/projects/cdk/schematics/utils/templates/template-resource.ts index 93e026250d55..a2f26f638020 100644 --- a/projects/cdk/schematics/utils/templates/template-resource.ts +++ b/projects/cdk/schematics/utils/templates/template-resource.ts @@ -1,6 +1,6 @@ -import {DevkitFileSystem} from 'ng-morph'; +import {type DevkitFileSystem} from 'ng-morph'; -import {TemplateResource} from '../../ng-update/interfaces/template-resource'; +import {type TemplateResource} from '../../ng-update/interfaces/template-resource'; export function getTemplateFromTemplateResource( templateRes: TemplateResource, diff --git a/projects/cdk/services/destroy.service.ts b/projects/cdk/services/destroy.service.ts index 29f126a03463..da864ee9ecaf 100644 --- a/projects/cdk/services/destroy.service.ts +++ b/projects/cdk/services/destroy.service.ts @@ -1,4 +1,4 @@ -import {Injectable, OnDestroy} from '@angular/core'; +import {Injectable, type OnDestroy} from '@angular/core'; import {ReplaySubject} from 'rxjs'; /** diff --git a/projects/cdk/services/directive-styles.service.ts b/projects/cdk/services/directive-styles.service.ts index 8e2ffd93faca..175cd1a59aa8 100644 --- a/projects/cdk/services/directive-styles.service.ts +++ b/projects/cdk/services/directive-styles.service.ts @@ -5,8 +5,8 @@ import { inject, Injectable, INJECTOR, - OnDestroy, - Type, + type OnDestroy, + type Type, } from '@angular/core'; // TODO: Add cleanup with DestroyRef in Angular 16+ and replace service with just a map from a token diff --git a/projects/cdk/services/popover.service.ts b/projects/cdk/services/popover.service.ts index 3d5c3bb902c9..0ee75e89427e 100644 --- a/projects/cdk/services/popover.service.ts +++ b/projects/cdk/services/popover.service.ts @@ -1,7 +1,13 @@ -import {inject, Injectable, Provider, ProviderToken, Type} from '@angular/core'; -import {TuiContext} from '@taiga-ui/cdk/interfaces'; -import {PolymorpheusComponent, PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {BehaviorSubject, Observable, Observer} from 'rxjs'; +import { + inject, + Injectable, + type Provider, + type ProviderToken, + type Type, +} from '@angular/core'; +import {type TuiContext} from '@taiga-ui/cdk/interfaces'; +import {PolymorpheusComponent, type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type BehaviorSubject, Observable, type Observer} from 'rxjs'; import {TuiIdService} from './id.service'; diff --git a/projects/cdk/services/scroll.service.ts b/projects/cdk/services/scroll.service.ts index bfb802ed85f9..57e23635ef53 100644 --- a/projects/cdk/services/scroll.service.ts +++ b/projects/cdk/services/scroll.service.ts @@ -8,7 +8,7 @@ import { defer, endWith, map, - Observable, + type Observable, of, switchMap, takeUntil, diff --git a/projects/cdk/services/static-request.service.ts b/projects/cdk/services/static-request.service.ts index ca6a915d3087..8a20ef25216b 100644 --- a/projects/cdk/services/static-request.service.ts +++ b/projects/cdk/services/static-request.service.ts @@ -1,7 +1,7 @@ import {isPlatformServer} from '@angular/common'; import {inject, Injectable, PLATFORM_ID} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; -import {defer, from, Observable, shareReplay, switchMap} from 'rxjs'; +import {defer, from, type Observable, shareReplay, switchMap} from 'rxjs'; import {fromFetch} from 'rxjs/fetch'; @Injectable({ diff --git a/projects/cdk/services/swipe.service.ts b/projects/cdk/services/swipe.service.ts index 52598b839166..8ef2a2bf1f4e 100644 --- a/projects/cdk/services/swipe.service.ts +++ b/projects/cdk/services/swipe.service.ts @@ -1,6 +1,6 @@ import {DOCUMENT} from '@angular/common'; import {ElementRef, inject, Injectable} from '@angular/core'; -import {TuiSwipe} from '@taiga-ui/cdk/interfaces'; +import {type TuiSwipe} from '@taiga-ui/cdk/interfaces'; import {tuiTypedFromEvent} from '@taiga-ui/cdk/observables'; import {TUI_SWIPE_OPTIONS} from '@taiga-ui/cdk/tokens'; import {tuiGetSwipeDirection, tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous'; diff --git a/projects/cdk/services/test/destroy.service.spec.ts b/projects/cdk/services/test/destroy.service.spec.ts index 0a737ba45611..8808b7ca9c1c 100644 --- a/projects/cdk/services/test/destroy.service.spec.ts +++ b/projects/cdk/services/test/destroy.service.spec.ts @@ -1,5 +1,5 @@ import {TuiDestroyService} from '@taiga-ui/cdk'; -import {finalize, Observable, of, takeUntil, timer} from 'rxjs'; +import {finalize, type Observable, of, takeUntil, timer} from 'rxjs'; describe('TuiDestroy service', () => { let service: TuiDestroyService; diff --git a/projects/cdk/services/zoom.service.ts b/projects/cdk/services/zoom.service.ts index 0f7a32e5d655..e343aa1b2fc5 100644 --- a/projects/cdk/services/zoom.service.ts +++ b/projects/cdk/services/zoom.service.ts @@ -1,5 +1,5 @@ import {ElementRef, inject, Injectable} from '@angular/core'; -import {TuiZoom} from '@taiga-ui/cdk/interfaces'; +import {type TuiZoom} from '@taiga-ui/cdk/interfaces'; import {tuiPreventDefault, tuiTypedFromEvent} from '@taiga-ui/cdk/observables'; import {TUI_ZOOM_OPTIONS} from '@taiga-ui/cdk/tokens'; import {tuiDistanceBetweenTouches} from '@taiga-ui/cdk/utils'; diff --git a/projects/cdk/tokens/active-element.ts b/projects/cdk/tokens/active-element.ts index ddaaa53e78be..18c90dee95a4 100644 --- a/projects/cdk/tokens/active-element.ts +++ b/projects/cdk/tokens/active-element.ts @@ -12,7 +12,7 @@ import { filter, map, merge, - Observable, + type Observable, of, repeatWhen, share, diff --git a/projects/cdk/tokens/default-renderer.ts b/projects/cdk/tokens/default-renderer.ts index c1ccec1d2eec..67b633f82943 100644 --- a/projects/cdk/tokens/default-renderer.ts +++ b/projects/cdk/tokens/default-renderer.ts @@ -1,4 +1,4 @@ -import {inject, Renderer2, RendererFactory2} from '@angular/core'; +import {inject, type Renderer2, RendererFactory2} from '@angular/core'; import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils'; /** diff --git a/projects/cdk/tokens/focusable-item-accessor.ts b/projects/cdk/tokens/focusable-item-accessor.ts index f4243c88fb76..59a096053ac3 100644 --- a/projects/cdk/tokens/focusable-item-accessor.ts +++ b/projects/cdk/tokens/focusable-item-accessor.ts @@ -1,5 +1,5 @@ -import {InjectionToken, Provider, Type} from '@angular/core'; -import {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces'; +import {InjectionToken, type Provider, type Type} from '@angular/core'; +import {type TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces'; /** * A component that can be focused diff --git a/projects/cdk/tokens/fonts-ready.ts b/projects/cdk/tokens/fonts-ready.ts index 09e920e808a9..1dd78842e9a2 100644 --- a/projects/cdk/tokens/fonts-ready.ts +++ b/projects/cdk/tokens/fonts-ready.ts @@ -1,6 +1,6 @@ import {DOCUMENT} from '@angular/common'; import {inject, InjectionToken} from '@angular/core'; -import {EMPTY, from, Observable, shareReplay} from 'rxjs'; +import {EMPTY, from, type Observable, shareReplay} from 'rxjs'; export const TUI_FONTS_READY = new InjectionToken>( '[TUI_FONTS_READY]', diff --git a/projects/cdk/tokens/platform.ts b/projects/cdk/tokens/platform.ts index 6e4711b86e0c..8dca4c13d9a9 100644 --- a/projects/cdk/tokens/platform.ts +++ b/projects/cdk/tokens/platform.ts @@ -1,5 +1,5 @@ import {inject} from '@angular/core'; -import {TuiPlatform} from '@taiga-ui/cdk/types'; +import {type TuiPlatform} from '@taiga-ui/cdk/types'; import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils'; import {TUI_IS_ANDROID} from './is-android'; diff --git a/projects/cdk/tokens/swipe-options.ts b/projects/cdk/tokens/swipe-options.ts index a8213a1af86c..c376c2c91f29 100644 --- a/projects/cdk/tokens/swipe-options.ts +++ b/projects/cdk/tokens/swipe-options.ts @@ -1,4 +1,4 @@ -import {TuiSwipeOptions} from '@taiga-ui/cdk/interfaces'; +import {type TuiSwipeOptions} from '@taiga-ui/cdk/interfaces'; import {tuiCreateToken} from '@taiga-ui/cdk/utils'; /** diff --git a/projects/cdk/tokens/window-size.ts b/projects/cdk/tokens/window-size.ts index be3b6366cefd..c117a441bf65 100644 --- a/projects/cdk/tokens/window-size.ts +++ b/projects/cdk/tokens/window-size.ts @@ -1,7 +1,7 @@ import {inject, InjectionToken} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; import {tuiTypedFromEvent} from '@taiga-ui/cdk/observables'; -import {map, Observable, shareReplay, startWith} from 'rxjs'; +import {map, type Observable, shareReplay, startWith} from 'rxjs'; export const TUI_WINDOW_SIZE = new InjectionToken>( '[TUI_WINDOW_SIZE]', diff --git a/projects/cdk/tokens/zoom-options.ts b/projects/cdk/tokens/zoom-options.ts index 9612e7a73713..24ce410f4d3a 100644 --- a/projects/cdk/tokens/zoom-options.ts +++ b/projects/cdk/tokens/zoom-options.ts @@ -1,4 +1,4 @@ -import {TuiZoomOptions} from '@taiga-ui/cdk/interfaces'; +import {type TuiZoomOptions} from '@taiga-ui/cdk/interfaces'; import {tuiCreateToken} from '@taiga-ui/cdk/utils'; /** diff --git a/projects/cdk/types/matcher.ts b/projects/cdk/types/matcher.ts index 51ac57a7b903..812b67a1bc55 100644 --- a/projects/cdk/types/matcher.ts +++ b/projects/cdk/types/matcher.ts @@ -1,5 +1,5 @@ -import {TuiStringHandler} from './handler'; -import {TuiMapper, TuiTypedMapper} from './mapper'; +import {type TuiStringHandler} from './handler'; +import {type TuiMapper, type TuiTypedMapper} from './mapper'; /** * A matcher function to test items against with extra arguments. diff --git a/projects/cdk/utils/math/round-with.ts b/projects/cdk/utils/math/round-with.ts index 94985c74688b..1fa413c35544 100644 --- a/projects/cdk/utils/math/round-with.ts +++ b/projects/cdk/utils/math/round-with.ts @@ -1,4 +1,4 @@ -import {TuiRounding} from '@taiga-ui/cdk/types'; +import {type TuiRounding} from '@taiga-ui/cdk/types'; import {tuiCeil, tuiFloor, tuiRound, tuiTrunc} from './round'; diff --git a/projects/cdk/utils/miscellaneous/clean-object.ts b/projects/cdk/utils/miscellaneous/clean-object.ts index b8874ba975bb..dfe61e39bbc4 100644 --- a/projects/cdk/utils/miscellaneous/clean-object.ts +++ b/projects/cdk/utils/miscellaneous/clean-object.ts @@ -1,4 +1,4 @@ -import {TuiDeepPartial} from '@taiga-ui/cdk/types'; +import {type TuiDeepPartial} from '@taiga-ui/cdk/types'; import {tuiIsString} from './is-string'; diff --git a/projects/cdk/utils/miscellaneous/create-options.ts b/projects/cdk/utils/miscellaneous/create-options.ts index 1cb5a36255d3..b983e52023e6 100644 --- a/projects/cdk/utils/miscellaneous/create-options.ts +++ b/projects/cdk/utils/miscellaneous/create-options.ts @@ -1,4 +1,4 @@ -import {InjectionToken} from '@angular/core'; +import {type InjectionToken} from '@angular/core'; import {tuiCreateTokenFromFactory} from './create-token'; diff --git a/projects/cdk/utils/miscellaneous/get-original-array-from-query-list.ts b/projects/cdk/utils/miscellaneous/get-original-array-from-query-list.ts index e9b8ab5a37d9..89c2f84f0f0a 100644 --- a/projects/cdk/utils/miscellaneous/get-original-array-from-query-list.ts +++ b/projects/cdk/utils/miscellaneous/get-original-array-from-query-list.ts @@ -1,4 +1,4 @@ -import {QueryList} from '@angular/core'; +import {type QueryList} from '@angular/core'; /** * Extracts original array from {@link QueryList} rather than diff --git a/projects/cdk/utils/miscellaneous/get-swipe-direction.ts b/projects/cdk/utils/miscellaneous/get-swipe-direction.ts index bda16c41e5b7..271cc455df25 100644 --- a/projects/cdk/utils/miscellaneous/get-swipe-direction.ts +++ b/projects/cdk/utils/miscellaneous/get-swipe-direction.ts @@ -1,4 +1,4 @@ -import {TuiSwipeDirection} from '@taiga-ui/cdk/interfaces'; +import {type TuiSwipeDirection} from '@taiga-ui/cdk/interfaces'; export function tuiGetSwipeDirection(deltaX: number, deltaY: number): TuiSwipeDirection { if (Math.abs(deltaY) > Math.abs(deltaX)) { diff --git a/projects/cdk/utils/miscellaneous/mark-control-as-touched-and-validate.ts b/projects/cdk/utils/miscellaneous/mark-control-as-touched-and-validate.ts index 398a805f88cc..9571b861760e 100644 --- a/projects/cdk/utils/miscellaneous/mark-control-as-touched-and-validate.ts +++ b/projects/cdk/utils/miscellaneous/mark-control-as-touched-and-validate.ts @@ -1,4 +1,4 @@ -import {AbstractControl, FormArray, FormGroup} from '@angular/forms'; +import {type AbstractControl, FormArray, FormGroup} from '@angular/forms'; export function tuiMarkControlAsTouchedAndValidate(control: AbstractControl): void { if (control instanceof FormArray) { diff --git a/projects/cdk/utils/miscellaneous/nullable-same.ts b/projects/cdk/utils/miscellaneous/nullable-same.ts index 98167082c154..9dc26b359fbb 100644 --- a/projects/cdk/utils/miscellaneous/nullable-same.ts +++ b/projects/cdk/utils/miscellaneous/nullable-same.ts @@ -1,4 +1,4 @@ -import {TuiIdentityMatcher} from '@taiga-ui/cdk/types'; +import {type TuiIdentityMatcher} from '@taiga-ui/cdk/types'; /** * Checks identity for nullable elements. diff --git a/projects/cdk/utils/miscellaneous/provide-options.ts b/projects/cdk/utils/miscellaneous/provide-options.ts index 4244fd624207..a4b8c66fa31f 100644 --- a/projects/cdk/utils/miscellaneous/provide-options.ts +++ b/projects/cdk/utils/miscellaneous/provide-options.ts @@ -1,4 +1,9 @@ -import {FactoryProvider, InjectionToken, Optional, SkipSelf} from '@angular/core'; +import { + type FactoryProvider, + type InjectionToken, + Optional, + SkipSelf, +} from '@angular/core'; export function tuiProvideOptions( provide: InjectionToken, diff --git a/projects/cdk/utils/miscellaneous/uniq-by.ts b/projects/cdk/utils/miscellaneous/uniq-by.ts index bff46a37c786..6155a87f9529 100644 --- a/projects/cdk/utils/miscellaneous/uniq-by.ts +++ b/projects/cdk/utils/miscellaneous/uniq-by.ts @@ -1,4 +1,4 @@ -import {TuiValuesOf} from '@taiga-ui/cdk/types'; +import {type TuiValuesOf} from '@taiga-ui/cdk/types'; export function tuiUniqBy>( array: readonly T[], diff --git a/projects/cdk/utils/svg/svg-linear-gradient-processor.ts b/projects/cdk/utils/svg/svg-linear-gradient-processor.ts index 110b4e3dfa23..0c3ba1c1dccd 100644 --- a/projects/cdk/utils/svg/svg-linear-gradient-processor.ts +++ b/projects/cdk/utils/svg/svg-linear-gradient-processor.ts @@ -1,4 +1,4 @@ -import {TuiSafeHtml} from '@taiga-ui/cdk/interfaces'; +import {type TuiSafeHtml} from '@taiga-ui/cdk/interfaces'; import {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous'; function makeRandomSalt(): number { diff --git a/projects/core/abstract/abstract-driver.directive.ts b/projects/core/abstract/abstract-driver.directive.ts index 44c30e9f0139..171d2bb73a46 100644 --- a/projects/core/abstract/abstract-driver.directive.ts +++ b/projects/core/abstract/abstract-driver.directive.ts @@ -1,4 +1,4 @@ -import {Directive, inject, OnInit} from '@angular/core'; +import {Directive, inject, type OnInit} from '@angular/core'; import {TuiDestroyService} from '@taiga-ui/cdk'; import {distinctUntilChanged, merge, takeUntil} from 'rxjs'; diff --git a/projects/core/abstract/abstract-textfield-host.ts b/projects/core/abstract/abstract-textfield-host.ts index 0971f8bb9f24..eb421b106218 100644 --- a/projects/core/abstract/abstract-textfield-host.ts +++ b/projects/core/abstract/abstract-textfield-host.ts @@ -1,6 +1,6 @@ import {Directive, inject} from '@angular/core'; import {AbstractTuiControl} from '@taiga-ui/cdk'; -import {TuiTextfieldHost} from '@taiga-ui/core/interfaces'; +import {type TuiTextfieldHost} from '@taiga-ui/core/interfaces'; @Directive() export abstract class AbstractTuiTextfieldHost> diff --git a/projects/core/abstract/driver.ts b/projects/core/abstract/driver.ts index 577b9901b4c6..1423d003785b 100644 --- a/projects/core/abstract/driver.ts +++ b/projects/core/abstract/driver.ts @@ -1,4 +1,4 @@ -import {ExistingProvider, Type} from '@angular/core'; +import {type ExistingProvider, type Type} from '@angular/core'; import {Observable} from 'rxjs'; export abstract class TuiDriver extends Observable { diff --git a/projects/core/abstract/position-accessor.ts b/projects/core/abstract/position-accessor.ts index dfba2b9707e1..7cf975f0ac9b 100644 --- a/projects/core/abstract/position-accessor.ts +++ b/projects/core/abstract/position-accessor.ts @@ -1,5 +1,11 @@ -import {ExistingProvider, FactoryProvider, Optional, SkipSelf, Type} from '@angular/core'; -import {TuiPoint} from '@taiga-ui/core/types'; +import { + type ExistingProvider, + type FactoryProvider, + Optional, + SkipSelf, + type Type, +} from '@angular/core'; +import {type TuiPoint} from '@taiga-ui/core/types'; export abstract class TuiPositionAccessor { public abstract readonly type: string; diff --git a/projects/core/abstract/rect-accessor.ts b/projects/core/abstract/rect-accessor.ts index 98658902e97b..8bb341b26f3e 100644 --- a/projects/core/abstract/rect-accessor.ts +++ b/projects/core/abstract/rect-accessor.ts @@ -1,4 +1,9 @@ -import {ExistingProvider, FactoryProvider, SkipSelf, Type} from '@angular/core'; +import { + type ExistingProvider, + type FactoryProvider, + SkipSelf, + type Type, +} from '@angular/core'; // TODO: Rename to getBoundingClientRect to match the DOM API export abstract class TuiRectAccessor { diff --git a/projects/core/abstract/vehicle.ts b/projects/core/abstract/vehicle.ts index 8b47e184f443..9d32668b6ccc 100644 --- a/projects/core/abstract/vehicle.ts +++ b/projects/core/abstract/vehicle.ts @@ -1,4 +1,4 @@ -import {ExistingProvider, Type} from '@angular/core'; +import {type ExistingProvider, type Type} from '@angular/core'; export abstract class TuiVehicle { public abstract readonly type: string; diff --git a/projects/core/components/alert/alert.component.ts b/projects/core/components/alert/alert.component.ts index f984f6792bf0..1976509d8981 100644 --- a/projects/core/components/alert/alert.component.ts +++ b/projects/core/components/alert/alert.component.ts @@ -3,16 +3,16 @@ import { Component, ElementRef, inject, - OnInit, + type OnInit, } from '@angular/core'; -import {TuiDestroyService, TuiPopover} from '@taiga-ui/cdk'; +import {TuiDestroyService, type TuiPopover} from '@taiga-ui/cdk'; import {tuiFadeIn, tuiHeightCollapse, tuiSlideIn} from '@taiga-ui/core/animations'; import {TUI_ANIMATIONS_SPEED} from '@taiga-ui/core/tokens'; import {tuiToAnimationOptions} from '@taiga-ui/core/utils'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; import {fromEvent, repeat, takeUntil, timer} from 'rxjs'; -import {TuiAlertOptions} from './alert.interfaces'; +import {type TuiAlertOptions} from './alert.interfaces'; import {TUI_ALERT_POSITION} from './alert.tokens'; // TODO: get rid of $any in template diff --git a/projects/core/components/alert/alert.directive.ts b/projects/core/components/alert/alert.directive.ts index f8a8e5503804..0cb1b3e73f75 100644 --- a/projects/core/components/alert/alert.directive.ts +++ b/projects/core/components/alert/alert.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {tuiAsPopover, TuiPopoverDirective} from '@taiga-ui/cdk'; -import {TuiAlertOptions} from './alert.interfaces'; +import {type TuiAlertOptions} from './alert.interfaces'; import {TuiAlertService} from './alert.service'; @Directive({ diff --git a/projects/core/components/alert/alert.interfaces.ts b/projects/core/components/alert/alert.interfaces.ts index c2084b3c963d..0848dab2774c 100644 --- a/projects/core/components/alert/alert.interfaces.ts +++ b/projects/core/components/alert/alert.interfaces.ts @@ -1,9 +1,9 @@ -import {TuiHandler, TuiPopoverContext} from '@taiga-ui/cdk'; +import {type TuiHandler, type TuiPopoverContext} from '@taiga-ui/cdk'; import { - TuiNotification, - TuiNotificationOptions, + type TuiNotification, + type TuiNotificationOptions, } from '@taiga-ui/core/components/notification'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export type TuiAlertAutoClose = TuiHandler | number; diff --git a/projects/core/components/alert/alert.service.ts b/projects/core/components/alert/alert.service.ts index f8cb85deb010..374d7b464101 100644 --- a/projects/core/components/alert/alert.service.ts +++ b/projects/core/components/alert/alert.service.ts @@ -2,7 +2,7 @@ import {inject, Injectable} from '@angular/core'; import {TuiPopoverService} from '@taiga-ui/cdk'; import {TuiAlertComponent} from './alert.component'; -import {TuiAlertOptions} from './alert.interfaces'; +import {type TuiAlertOptions} from './alert.interfaces'; import {TUI_ALERT_OPTIONS, TUI_ALERTS} from './alert.tokens'; @Injectable({ diff --git a/projects/core/components/alert/alert.tokens.ts b/projects/core/components/alert/alert.tokens.ts index 4589d9bb1762..aa293390a83e 100644 --- a/projects/core/components/alert/alert.tokens.ts +++ b/projects/core/components/alert/alert.tokens.ts @@ -1,14 +1,14 @@ -import {inject, Type} from '@angular/core'; +import {inject, type Type} from '@angular/core'; import { TUI_IS_MOBILE, tuiCreateToken, tuiCreateTokenFromFactory, - TuiPopover, + type TuiPopover, } from '@taiga-ui/cdk'; import {TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/components/notification'; import {BehaviorSubject, combineLatest, map, of} from 'rxjs'; -import {TuiAlertOptions} from './alert.interfaces'; +import {type TuiAlertOptions} from './alert.interfaces'; export const TUI_ALERT_DEFAULT_OPTIONS: Omit = { autoClose: 3000, diff --git a/projects/core/components/alert/alerts.component.ts b/projects/core/components/alert/alerts.component.ts index 41e4dfaff369..f7e838342cbc 100644 --- a/projects/core/components/alert/alerts.component.ts +++ b/projects/core/components/alert/alerts.component.ts @@ -5,10 +5,10 @@ import { inject, INJECTOR, Injector, - Type, + type Type, ViewEncapsulation, } from '@angular/core'; -import {TuiMapperPipeModule, TuiTypedMapper} from '@taiga-ui/cdk'; +import {TuiMapperPipeModule, type TuiTypedMapper} from '@taiga-ui/cdk'; import {TUI_PARENT_ANIMATION} from '@taiga-ui/core/animations'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; import {identity} from 'rxjs'; diff --git a/projects/core/components/button/button.component.ts b/projects/core/components/button/button.component.ts index a2ecb4e912a3..47a3e9feba8c 100644 --- a/projects/core/components/button/button.component.ts +++ b/projects/core/components/button/button.component.ts @@ -11,15 +11,15 @@ import { AbstractTuiInteractive, tuiAsFocusableItemAccessor, TuiDestroyService, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, tuiIsNativeFocused, } from '@taiga-ui/cdk'; import {TuiModeDirective} from '@taiga-ui/core/directives'; -import {TuiSizeS} from '@taiga-ui/core/types'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {distinctUntilChanged, EMPTY, map, Observable, startWith} from 'rxjs'; +import {type TuiSizeS} from '@taiga-ui/core/types'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {distinctUntilChanged, EMPTY, map, type Observable, startWith} from 'rxjs'; -import {TUI_BUTTON_OPTIONS, TuiButtonOptions} from './button.options'; +import {TUI_BUTTON_OPTIONS, type TuiButtonOptions} from './button.options'; @Component({ selector: 'button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]', diff --git a/projects/core/components/button/button.options.ts b/projects/core/components/button/button.options.ts index bfe33c7650bb..d028322f0e13 100644 --- a/projects/core/components/button/button.options.ts +++ b/projects/core/components/button/button.options.ts @@ -1,7 +1,7 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; import {TuiAppearance} from '@taiga-ui/core/enums'; -import {TuiSizeXL, TuiSizeXS} from '@taiga-ui/core/types'; +import {type TuiSizeXL, type TuiSizeXS} from '@taiga-ui/core/types'; export interface TuiButtonOptions { readonly appearance: TuiAppearance | string | null; diff --git a/projects/core/components/button/test/button.component.spec.ts b/projects/core/components/button/test/button.component.spec.ts index 22c31a111092..50fc6676cdf5 100644 --- a/projects/core/components/button/test/button.component.spec.ts +++ b/projects/core/components/button/test/button.component.spec.ts @@ -1,7 +1,7 @@ -import {HarnessLoader} from '@angular/cdk/testing'; +import {type HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TuiButtonHarness, TuiLoaderHarness} from '@taiga-ui/testing'; import {TuiButtonModule} from '../button.module'; diff --git a/projects/core/components/calendar/calendar.component.ts b/projects/core/components/calendar/calendar.component.ts index db1380749249..6856a3db7d33 100644 --- a/projects/core/components/calendar/calendar.component.ts +++ b/projects/core/components/calendar/calendar.component.ts @@ -9,17 +9,17 @@ import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - TuiBooleanHandler, + type TuiBooleanHandler, TuiDay, - TuiDayRange, + type TuiDayRange, TuiMonth, tuiNullableSame, - TuiTypedMapper, - TuiYear, + type TuiTypedMapper, + type TuiYear, } from '@taiga-ui/cdk'; import {TUI_DEFAULT_MARKER_HANDLER} from '@taiga-ui/core/constants'; -import {TuiWithOptionalMinMax} from '@taiga-ui/core/interfaces'; -import {TuiCalendarView, TuiMarkerHandler} from '@taiga-ui/core/types'; +import {type TuiWithOptionalMinMax} from '@taiga-ui/core/interfaces'; +import {type TuiCalendarView, type TuiMarkerHandler} from '@taiga-ui/core/types'; @Component({ selector: 'tui-calendar', diff --git a/projects/core/components/calendar/test/calendar.component.spec.ts b/projects/core/components/calendar/test/calendar.component.spec.ts index 6189c74a395c..a2e31f2d3911 100644 --- a/projects/core/components/calendar/test/calendar.component.spec.ts +++ b/projects/core/components/calendar/test/calendar.component.spec.ts @@ -1,7 +1,7 @@ -import {HarnessLoader} from '@angular/cdk/testing'; +import {type HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TuiDay, TuiMonth} from '@taiga-ui/cdk'; import {TuiCalendarComponent, TuiCalendarModule} from '@taiga-ui/core'; import {TuiCalendarHarness} from '@taiga-ui/testing'; diff --git a/projects/core/components/data-list/data-list.component.ts b/projects/core/components/data-list/data-list.component.ts index dd0a7529e8e5..fbb97e856feb 100644 --- a/projects/core/components/data-list/data-list.component.ts +++ b/projects/core/components/data-list/data-list.component.ts @@ -8,7 +8,7 @@ import { HostListener, inject, Input, - QueryList, + type QueryList, ViewEncapsulation, } from '@angular/core'; import { @@ -25,11 +25,11 @@ import { TEXTFIELD_CONTROLLER_PROVIDER, TUI_TEXTFIELD_WATCHED_CONTROLLER, } from '@taiga-ui/core/directives'; -import {TuiDataListAccessor} from '@taiga-ui/core/interfaces'; +import {type TuiDataListAccessor} from '@taiga-ui/core/interfaces'; import {TUI_NOTHING_FOUND_MESSAGE, tuiAsDataListAccessor} from '@taiga-ui/core/tokens'; -import {TuiDataListRole} from '@taiga-ui/core/types'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {map, Observable} from 'rxjs'; +import {type TuiDataListRole} from '@taiga-ui/core/types'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {map, type Observable} from 'rxjs'; import {TuiOptionComponent} from './option/option.component'; diff --git a/projects/core/components/data-list/data-list.directive.ts b/projects/core/components/data-list/data-list.directive.ts index 94723a9dc039..aee92ddd7507 100644 --- a/projects/core/components/data-list/data-list.directive.ts +++ b/projects/core/components/data-list/data-list.directive.ts @@ -1,4 +1,4 @@ -import {Directive, Provider, Type} from '@angular/core'; +import {Directive, type Provider, type Type} from '@angular/core'; @Directive({ selector: 'ng-template[tuiDataList]', diff --git a/projects/core/components/data-list/option/option.component.ts b/projects/core/components/data-list/option/option.component.ts index 896e745e8992..3b7ce635c379 100644 --- a/projects/core/components/data-list/option/option.component.ts +++ b/projects/core/components/data-list/option/option.component.ts @@ -7,17 +7,17 @@ import { HostListener, inject, Input, - OnDestroy, + type OnDestroy, } from '@angular/core'; -import {TuiEventWith, tuiIsNativeFocused} from '@taiga-ui/cdk'; +import {type TuiEventWith, tuiIsNativeFocused} from '@taiga-ui/cdk'; import {TuiDropdownDirective} from '@taiga-ui/core/directives/dropdown'; -import {TuiDataListHost} from '@taiga-ui/core/interfaces'; +import {type TuiDataListHost} from '@taiga-ui/core/interfaces'; import { TUI_COMMON_ICONS, TUI_DATA_LIST_HOST, TUI_OPTION_CONTENT, } from '@taiga-ui/core/tokens'; -import {TuiOptionRole, TuiSizeL, TuiSizeXS} from '@taiga-ui/core/types'; +import {type TuiOptionRole, type TuiSizeL, type TuiSizeXS} from '@taiga-ui/core/types'; import {shouldCall} from '@tinkoff/ng-event-plugins'; import {TuiDataListComponent} from '../data-list.component'; diff --git a/projects/core/components/dialog/dialog.component.ts b/projects/core/components/dialog/dialog.component.ts index f9bc6ae9f6de..0e8189d455ff 100644 --- a/projects/core/components/dialog/dialog.component.ts +++ b/projects/core/components/dialog/dialog.component.ts @@ -1,10 +1,10 @@ -import {AnimationOptions} from '@angular/animations'; +import {type AnimationOptions} from '@angular/animations'; import {ChangeDetectionStrategy, Component, HostBinding, inject} from '@angular/core'; import { ALWAYS_TRUE_HANDLER, TUI_IS_MOBILE, TuiDestroyService, - TuiPopover, + type TuiPopover, } from '@taiga-ui/cdk'; import {tuiFadeIn, tuiSlideInTop} from '@taiga-ui/core/animations'; import { @@ -13,20 +13,20 @@ import { TUI_COMMON_ICONS, } from '@taiga-ui/core/tokens'; import {tuiGetDuration} from '@taiga-ui/core/utils'; -import {POLYMORPHEUS_CONTEXT, PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {POLYMORPHEUS_CONTEXT, type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import { filter, isObservable, map, merge, - Observable, + type Observable, of, Subject, switchMap, takeUntil, } from 'rxjs'; -import {TuiDialogOptions, TuiDialogSize} from './dialog.interfaces'; +import {type TuiDialogOptions, type TuiDialogSize} from './dialog.interfaces'; import {TUI_DIALOGS_CLOSE} from './dialog.tokens'; import {TuiDialogCloseService} from './dialog-close.service'; diff --git a/projects/core/components/dialog/dialog.directive.ts b/projects/core/components/dialog/dialog.directive.ts index 97368228d743..123b062ab160 100644 --- a/projects/core/components/dialog/dialog.directive.ts +++ b/projects/core/components/dialog/dialog.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {tuiAsPopover, TuiPopoverDirective} from '@taiga-ui/cdk'; -import {TuiDialogOptions} from './dialog.interfaces'; +import {type TuiDialogOptions} from './dialog.interfaces'; import {TuiDialogService} from './dialog.service'; @Directive({ diff --git a/projects/core/components/dialog/dialog.interfaces.ts b/projects/core/components/dialog/dialog.interfaces.ts index f7acd9c833f3..90fbfc60f165 100644 --- a/projects/core/components/dialog/dialog.interfaces.ts +++ b/projects/core/components/dialog/dialog.interfaces.ts @@ -1,7 +1,7 @@ -import {TuiPopover, TuiPopoverContext} from '@taiga-ui/cdk'; +import {type TuiPopover, type TuiPopoverContext} from '@taiga-ui/cdk'; import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {Observable} from 'rxjs'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Observable} from 'rxjs'; export type TuiDialogSize = TuiSizeL | TuiSizeS | 'auto' | 'fullscreen' | 'page'; diff --git a/projects/core/components/dialog/dialog.service.ts b/projects/core/components/dialog/dialog.service.ts index 9c94fd2a5e9b..7363601e2cfd 100644 --- a/projects/core/components/dialog/dialog.service.ts +++ b/projects/core/components/dialog/dialog.service.ts @@ -2,7 +2,7 @@ import {inject, Injectable} from '@angular/core'; import {TuiPopoverService} from '@taiga-ui/cdk'; import {TuiDialogComponent} from './dialog.component'; -import {TuiDialogOptions} from './dialog.interfaces'; +import {type TuiDialogOptions} from './dialog.interfaces'; import {TUI_DIALOG_OPTIONS, TUI_DIALOGS} from './dialog.tokens'; @Injectable({ diff --git a/projects/core/components/dialog/dialog.tokens.ts b/projects/core/components/dialog/dialog.tokens.ts index c7b0778afbe2..0c1edfe7488e 100644 --- a/projects/core/components/dialog/dialog.tokens.ts +++ b/projects/core/components/dialog/dialog.tokens.ts @@ -1,8 +1,8 @@ -import {Provider} from '@angular/core'; -import {tuiCreateToken, TuiPopover, tuiProvideOptions} from '@taiga-ui/cdk'; -import {BehaviorSubject, EMPTY, Observable} from 'rxjs'; +import {type Provider} from '@angular/core'; +import {tuiCreateToken, type TuiPopover, tuiProvideOptions} from '@taiga-ui/cdk'; +import {BehaviorSubject, EMPTY, type Observable} from 'rxjs'; -import {TuiDialogOptions} from './dialog.interfaces'; +import {type TuiDialogOptions} from './dialog.interfaces'; export const TUI_DIALOGS = tuiCreateToken( new BehaviorSubject>>([]), diff --git a/projects/core/components/dialog/dialogs.component.ts b/projects/core/components/dialog/dialogs.component.ts index 6f07479d45ae..3387d4700b37 100644 --- a/projects/core/components/dialog/dialogs.component.ts +++ b/projects/core/components/dialog/dialogs.component.ts @@ -1,10 +1,10 @@ import {CommonModule, DOCUMENT} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; -import {TuiFocusTrapModule, TuiOverscrollModule, TuiPopover} from '@taiga-ui/cdk'; +import {TuiFocusTrapModule, TuiOverscrollModule, type TuiPopover} from '@taiga-ui/cdk'; import {tuiHost} from '@taiga-ui/core/animations'; import {TuiScrollControlsComponent} from '@taiga-ui/core/components/scroll-controls'; import {PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; -import {Observable, tap} from 'rxjs'; +import {type Observable, tap} from 'rxjs'; import {TUI_DIALOGS} from './dialog.tokens'; diff --git a/projects/core/components/dialog/test/dialog.component.spec.ts b/projects/core/components/dialog/test/dialog.component.spec.ts index f95a11b0ff0d..c850ca942b1e 100644 --- a/projects/core/components/dialog/test/dialog.component.spec.ts +++ b/projects/core/components/dialog/test/dialog.component.spec.ts @@ -1,7 +1,7 @@ -import {HarnessLoader} from '@angular/cdk/testing'; +import {type HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiDialogHarness} from '@taiga-ui/testing'; diff --git a/projects/core/components/error/error.component.ts b/projects/core/components/error/error.component.ts index 566c66102c0d..04af0b59db0b 100644 --- a/projects/core/components/error/error.component.ts +++ b/projects/core/components/error/error.component.ts @@ -13,9 +13,9 @@ import { TUI_DEFAULT_ERROR_MESSAGE, TUI_MODE, } from '@taiga-ui/core/tokens'; -import {TuiBrightness} from '@taiga-ui/core/types'; +import {type TuiBrightness} from '@taiga-ui/core/types'; import {tuiToAnimationOptions} from '@taiga-ui/core/utils'; -import {Observable} from 'rxjs'; +import {type Observable} from 'rxjs'; @Component({ selector: 'tui-error', diff --git a/projects/core/components/expand/expand.component.ts b/projects/core/components/expand/expand.component.ts index cf2c4c1727d9..3de52798d2d6 100644 --- a/projects/core/components/expand/expand.component.ts +++ b/projects/core/components/expand/expand.component.ts @@ -1,10 +1,10 @@ -import {NgIfContext} from '@angular/common'; +import {type NgIfContext} from '@angular/common'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, - ElementRef, + type ElementRef, HostBinding, HostListener, inject, @@ -12,7 +12,7 @@ import { TemplateRef, ViewChild, } from '@angular/core'; -import {TuiDestroyService, TuiValuesOf} from '@taiga-ui/cdk'; +import {TuiDestroyService, type TuiValuesOf} from '@taiga-ui/cdk'; import {TUI_PARENT_ANIMATION} from '@taiga-ui/core/animations'; import {TUI_EXPAND_LOADED} from '@taiga-ui/core/constants'; import {takeUntil, timer} from 'rxjs'; diff --git a/projects/core/components/expand/test/expand.component.spec.ts b/projects/core/components/expand/test/expand.component.spec.ts index e37f81dedf59..cf2ae262e410 100644 --- a/projects/core/components/expand/test/expand.component.spec.ts +++ b/projects/core/components/expand/test/expand.component.spec.ts @@ -1,7 +1,11 @@ import {Component, ElementRef, ViewChild} from '@angular/core'; -import {ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing'; +import {type ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; -import {TUI_EXPAND_LOADED, TuiExpandComponent, TuiExpandModule} from '@taiga-ui/core'; +import { + TUI_EXPAND_LOADED, + type TuiExpandComponent, + TuiExpandModule, +} from '@taiga-ui/core'; import {TuiPageObject} from '@taiga-ui/testing'; const ANIMATION_DELAY = 900; diff --git a/projects/core/components/group/group.directive.ts b/projects/core/components/group/group.directive.ts index 222cfbbe6587..cd2bb617a07d 100644 --- a/projects/core/components/group/group.directive.ts +++ b/projects/core/components/group/group.directive.ts @@ -1,6 +1,6 @@ import {Directive, HostBinding, inject, Input} from '@angular/core'; import {tuiWithStyles} from '@taiga-ui/cdk'; -import {TuiOrientation, TuiSizeL} from '@taiga-ui/core/types'; +import {type TuiOrientation, type TuiSizeL} from '@taiga-ui/core/types'; import {TuiGroupComponent} from './group.component'; import {TUI_GROUP_OPTIONS} from './group.options'; diff --git a/projects/core/components/group/group.options.ts b/projects/core/components/group/group.options.ts index 9ac46a6d5f19..0f6a5ae14f67 100644 --- a/projects/core/components/group/group.options.ts +++ b/projects/core/components/group/group.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiOrientation, TuiSizeL} from '@taiga-ui/core/types'; +import {type TuiOrientation, type TuiSizeL} from '@taiga-ui/core/types'; export interface TuiGroupOptions { readonly size: TuiSizeL; diff --git a/projects/core/components/hints-host/hints-host.component.ts b/projects/core/components/hints-host/hints-host.component.ts index 396d5420a32a..9edc0ab0413d 100644 --- a/projects/core/components/hints-host/hints-host.component.ts +++ b/projects/core/components/hints-host/hints-host.component.ts @@ -3,11 +3,11 @@ import { ChangeDetectorRef, Component, inject, - OnInit, + type OnInit, } from '@angular/core'; import {TuiDestroyService} from '@taiga-ui/cdk'; import {TUI_PARENT_ANIMATION} from '@taiga-ui/core/animations'; -import {TuiPortalItem} from '@taiga-ui/core/interfaces'; +import {type TuiPortalItem} from '@taiga-ui/core/interfaces'; import {TuiHintService} from '@taiga-ui/core/services'; import {takeUntil} from 'rxjs'; diff --git a/projects/core/components/hosted-dropdown/accessor-proxy.directive.ts b/projects/core/components/hosted-dropdown/accessor-proxy.directive.ts index b24e975eba10..8e1f7c1819bd 100644 --- a/projects/core/components/hosted-dropdown/accessor-proxy.directive.ts +++ b/projects/core/components/hosted-dropdown/accessor-proxy.directive.ts @@ -1,6 +1,6 @@ import {Directive, Optional, SkipSelf} from '@angular/core'; import {TuiPositionAccessor} from '@taiga-ui/core/abstract'; -import {TuiPoint} from '@taiga-ui/core/types'; +import {type TuiPoint} from '@taiga-ui/core/types'; @Directive({ selector: '[tuiAccessorProxy]', diff --git a/projects/core/components/hosted-dropdown/hosted-dropdown.component.ts b/projects/core/components/hosted-dropdown/hosted-dropdown.component.ts index 28f8e531c69a..c3bb5b6028fd 100644 --- a/projects/core/components/hosted-dropdown/hosted-dropdown.component.ts +++ b/projects/core/components/hosted-dropdown/hosted-dropdown.component.ts @@ -15,8 +15,8 @@ import { import { TuiActiveZoneDirective, tuiAsFocusableItemAccessor, - TuiContext, - TuiFocusableElementAccessor, + type TuiContext, + type TuiFocusableElementAccessor, tuiGetActualTarget, tuiGetClosestFocusable, tuiIsElement, @@ -25,7 +25,7 @@ import { tuiIsNativeFocusedIn, tuiIsNativeKeyboardFocusable, tuiIsPresent, - TuiNativeFocusableElement, + type TuiNativeFocusableElement, tuiTypedFromEvent, } from '@taiga-ui/cdk'; import {TuiPositionAccessor} from '@taiga-ui/core/abstract'; @@ -35,7 +35,7 @@ import { } from '@taiga-ui/core/directives/dropdown'; import {tuiIsEditingKey} from '@taiga-ui/core/utils/miscellaneous'; import {shouldCall} from '@tinkoff/ng-event-plugins'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import { BehaviorSubject, combineLatestWith, @@ -45,7 +45,7 @@ import { filter, map, merge, - Observable, + type Observable, of, share, skip, diff --git a/projects/core/components/hosted-dropdown/test/hosted-dropdown.component.spec.ts b/projects/core/components/hosted-dropdown/test/hosted-dropdown.component.spec.ts index cd8e5221db66..4763cc5878e0 100644 --- a/projects/core/components/hosted-dropdown/test/hosted-dropdown.component.spec.ts +++ b/projects/core/components/hosted-dropdown/test/hosted-dropdown.component.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement, ElementRef, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, ElementRef, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiElementModule} from '@taiga-ui/cdk'; import { diff --git a/projects/core/components/label/label.component.ts b/projects/core/components/label/label.component.ts index 5e0a23e6a4a2..a77d373fc5c7 100644 --- a/projects/core/components/label/label.component.ts +++ b/projects/core/components/label/label.component.ts @@ -7,12 +7,12 @@ import { Input, } from '@angular/core'; import {NgControl} from '@angular/forms'; -import {TuiContext} from '@taiga-ui/cdk'; +import {type TuiContext} from '@taiga-ui/cdk'; import {MODE_PROVIDER} from '@taiga-ui/core/providers'; import {TUI_MODE} from '@taiga-ui/core/tokens'; -import {TuiBrightness} from '@taiga-ui/core/types'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {Observable} from 'rxjs'; +import {type TuiBrightness} from '@taiga-ui/core/types'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Observable} from 'rxjs'; @Component({ selector: 'label[tuiLabel]', diff --git a/projects/core/components/link/link.component.ts b/projects/core/components/link/link.component.ts index e34f8bdc285f..b0e35db1f49f 100644 --- a/projects/core/components/link/link.component.ts +++ b/projects/core/components/link/link.component.ts @@ -11,15 +11,15 @@ import { ALWAYS_TRUE_HANDLER, tuiAsFocusableItemAccessor, TuiDestroyService, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, TuiFocusVisibleService, tuiIsNativeFocused, - TuiNativeFocusableElement, + type TuiNativeFocusableElement, tuiTypedFromEvent, } from '@taiga-ui/cdk'; import {MODE_PROVIDER} from '@taiga-ui/core/providers'; import {TUI_MODE} from '@taiga-ui/core/tokens'; -import {TuiHorizontalDirection} from '@taiga-ui/core/types'; +import {type TuiHorizontalDirection} from '@taiga-ui/core/types'; import {map, merge} from 'rxjs'; // @bad TODO: Think about extending Interactive diff --git a/projects/core/components/loader/loader.component.ts b/projects/core/components/loader/loader.component.ts index 6e28bcd0924c..6688a242cccb 100644 --- a/projects/core/components/loader/loader.component.ts +++ b/projects/core/components/loader/loader.component.ts @@ -14,7 +14,7 @@ import { tuiIsSafari, } from '@taiga-ui/cdk'; import {tuiSizeBigger} from '@taiga-ui/core/utils/miscellaneous'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TUI_LOADER_OPTIONS} from './loader.options'; diff --git a/projects/core/components/loader/loader.options.ts b/projects/core/components/loader/loader.options.ts index 933d745af64f..ee1f84c3f03e 100644 --- a/projects/core/components/loader/loader.options.ts +++ b/projects/core/components/loader/loader.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core/types'; +import {type TuiSizeXS, type TuiSizeXXL} from '@taiga-ui/core/types'; export interface TuiLoaderOptions { readonly inheritColor: boolean; diff --git a/projects/core/components/loader/test/loader-options.spec.ts b/projects/core/components/loader/test/loader-options.spec.ts index a4d3a440bbdd..c1b0c1b3b822 100644 --- a/projects/core/components/loader/test/loader-options.spec.ts +++ b/projects/core/components/loader/test/loader-options.spec.ts @@ -1,5 +1,5 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import { TuiLoaderComponent, TuiLoaderModule, diff --git a/projects/core/components/loader/test/loader.component.spec.ts b/projects/core/components/loader/test/loader.component.spec.ts index 602f2f2507d3..188ab5b70d0d 100644 --- a/projects/core/components/loader/test/loader.component.spec.ts +++ b/projects/core/components/loader/test/loader.component.spec.ts @@ -1,9 +1,9 @@ -import {HarnessLoader} from '@angular/cdk/testing'; +import {type HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TuiLoaderHarness} from '@taiga-ui/testing'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TuiLoaderComponent} from '../loader.component'; import {TuiLoaderModule} from '../loader.module'; diff --git a/projects/core/components/notification/notification.options.ts b/projects/core/components/notification/notification.options.ts index 4d8e07f2d11a..0d6f4f4d2fcf 100644 --- a/projects/core/components/notification/notification.options.ts +++ b/projects/core/components/notification/notification.options.ts @@ -1,7 +1,7 @@ -import {Provider} from '@angular/core'; -import {TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Provider} from '@angular/core'; +import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export type TuiNotification = 'error' | 'info' | 'neutral' | 'success' | 'warning'; diff --git a/projects/core/components/notification/test/notification.component.spec.ts b/projects/core/components/notification/test/notification.component.spec.ts index ab56b54c8f48..a31b106ff208 100644 --- a/projects/core/components/notification/test/notification.component.spec.ts +++ b/projects/core/components/notification/test/notification.component.spec.ts @@ -1,10 +1,10 @@ -import {Component, DebugElement, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { TUI_NOTIFICATION_DEFAULT_OPTIONS, TUI_NOTIFICATION_OPTIONS, - TuiNotification, + type TuiNotification, TuiNotificationComponent, TuiNotificationModule, TuiSvgService, diff --git a/projects/core/components/primitive-calendar/primitive-calendar.component.ts b/projects/core/components/primitive-calendar/primitive-calendar.component.ts index 7f8fde980ab6..e4596cd800dd 100644 --- a/projects/core/components/primitive-calendar/primitive-calendar.component.ts +++ b/projects/core/components/primitive-calendar/primitive-calendar.component.ts @@ -9,16 +9,16 @@ import { } from '@angular/core'; import { ALWAYS_FALSE_HANDLER, - TuiBooleanHandler, + type TuiBooleanHandler, TuiDay, TuiDayRange, TuiMonth, tuiNullableSame, } from '@taiga-ui/cdk'; import {TUI_DEFAULT_MARKER_HANDLER} from '@taiga-ui/core/constants'; -import {TuiInteractiveState, TuiRangeState} from '@taiga-ui/core/enums'; +import {TuiInteractiveState, type TuiRangeState} from '@taiga-ui/core/enums'; import {TUI_DAY_TYPE_HANDLER, TUI_SHORT_WEEK_DAYS} from '@taiga-ui/core/tokens'; -import {TuiMarkerHandler} from '@taiga-ui/core/types'; +import {type TuiMarkerHandler} from '@taiga-ui/core/types'; @Component({ selector: 'tui-primitive-calendar', diff --git a/projects/core/components/primitive-calendar/test/primitive-calendar.component.spec.ts b/projects/core/components/primitive-calendar/test/primitive-calendar.component.spec.ts index 2d133c8b77e9..31cdca49f262 100644 --- a/projects/core/components/primitive-calendar/test/primitive-calendar.component.spec.ts +++ b/projects/core/components/primitive-calendar/test/primitive-calendar.component.spec.ts @@ -1,9 +1,9 @@ -import {Component, DebugElement, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import { ALWAYS_FALSE_HANDLER, - TuiBooleanHandler, + type TuiBooleanHandler, TuiDay, TuiDayOfWeek, TuiDayRange, diff --git a/projects/core/components/primitive-checkbox/checkbox.options.ts b/projects/core/components/primitive-checkbox/checkbox.options.ts index 14a59e80d766..3df3f54dcc11 100644 --- a/projects/core/components/primitive-checkbox/checkbox.options.ts +++ b/projects/core/components/primitive-checkbox/checkbox.options.ts @@ -1,8 +1,8 @@ -import {Provider} from '@angular/core'; -import {TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import {type Provider} from '@angular/core'; +import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; import {TuiAppearance} from '@taiga-ui/core/enums'; -import {TuiSizeL} from '@taiga-ui/core/types'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiSizeL} from '@taiga-ui/core/types'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiCheckboxOptions { readonly appearances: Readonly<{ diff --git a/projects/core/components/primitive-checkbox/primitive-checkbox.component.ts b/projects/core/components/primitive-checkbox/primitive-checkbox.component.ts index 48f8091eb66f..f6e4688998c6 100644 --- a/projects/core/components/primitive-checkbox/primitive-checkbox.component.ts +++ b/projects/core/components/primitive-checkbox/primitive-checkbox.component.ts @@ -5,9 +5,9 @@ import { inject, Input, } from '@angular/core'; -import {TuiContext} from '@taiga-ui/cdk'; -import {TuiSizeL} from '@taiga-ui/core/types'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiContext} from '@taiga-ui/cdk'; +import {type TuiSizeL} from '@taiga-ui/core/types'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TUI_CHECKBOX_OPTIONS} from './checkbox.options'; diff --git a/projects/core/components/primitive-spin-button/test/primitive-spin-button.component.spec.ts b/projects/core/components/primitive-spin-button/test/primitive-spin-button.component.spec.ts index df81b85c96be..07e7d845a2a8 100644 --- a/projects/core/components/primitive-spin-button/test/primitive-spin-button.component.spec.ts +++ b/projects/core/components/primitive-spin-button/test/primitive-spin-button.component.spec.ts @@ -1,5 +1,5 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import { TuiPrimitiveSpinButtonComponent, TuiPrimitiveSpinButtonModule, diff --git a/projects/core/components/primitive-textfield/primitive-textfield-options.ts b/projects/core/components/primitive-textfield/primitive-textfield-options.ts index 6d8d90355b25..f3a8fcf5a04f 100644 --- a/projects/core/components/primitive-textfield/primitive-textfield-options.ts +++ b/projects/core/components/primitive-textfield/primitive-textfield-options.ts @@ -1,7 +1,7 @@ import { TUI_TEXTFIELD_DEFAULT_OPTIONS, TUI_TEXTFIELD_OPTIONS, - TuiTextfieldOptions, + type TuiTextfieldOptions, tuiTextfieldOptionsProvider, } from '@taiga-ui/core/directives'; diff --git a/projects/core/components/primitive-textfield/primitive-textfield-types.ts b/projects/core/components/primitive-textfield/primitive-textfield-types.ts index 2a8c43c984d0..947b20c803f7 100644 --- a/projects/core/components/primitive-textfield/primitive-textfield-types.ts +++ b/projects/core/components/primitive-textfield/primitive-textfield-types.ts @@ -1,4 +1,7 @@ -import {AbstractTuiInteractive, TuiFocusableElementAccessor} from '@taiga-ui/cdk'; +import { + type AbstractTuiInteractive, + type TuiFocusableElementAccessor, +} from '@taiga-ui/cdk'; export type TuiPrimitiveTextfield = AbstractTuiInteractive & TuiFocusableElementAccessor & { diff --git a/projects/core/components/primitive-textfield/primitive-textfield.component.ts b/projects/core/components/primitive-textfield/primitive-textfield.component.ts index e4bed852cb27..d9227c13f4a7 100644 --- a/projects/core/components/primitive-textfield/primitive-textfield.component.ts +++ b/projects/core/components/primitive-textfield/primitive-textfield.component.ts @@ -9,13 +9,13 @@ import { inject, Input, Output, - QueryList, + type QueryList, ViewChild, } from '@angular/core'; import { AbstractTuiInteractive, tuiAsFocusableItemAccessor, - TuiContext, + type TuiContext, tuiIsNativeFocusedIn, tuiPure, tuiRetargetedBoundaryCrossing, @@ -26,12 +26,15 @@ import { TUI_TEXTFIELD_OPTIONS, TUI_TEXTFIELD_WATCHED_CONTROLLER, } from '@taiga-ui/core/directives/textfield-controller'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types'; import {tuiGetBorder} from '@taiga-ui/core/utils/miscellaneous'; -import {PolymorpheusContent, PolymorpheusOutletDirective} from '@tinkoff/ng-polymorpheus'; -import {fromEvent, map, Observable} from 'rxjs'; +import { + type PolymorpheusContent, + PolymorpheusOutletDirective, +} from '@tinkoff/ng-polymorpheus'; +import {fromEvent, map, type Observable} from 'rxjs'; -import {TuiPrimitiveTextfield} from './primitive-textfield-types'; +import {type TuiPrimitiveTextfield} from './primitive-textfield-types'; export const TUI_ICON_PADDINGS: Record = { s: 1.25, diff --git a/projects/core/components/primitive-textfield/test/primitive-textfield.component.spec.ts b/projects/core/components/primitive-textfield/test/primitive-textfield.component.spec.ts index 39476b1250c7..73ed362feb67 100644 --- a/projects/core/components/primitive-textfield/test/primitive-textfield.component.spec.ts +++ b/projects/core/components/primitive-textfield/test/primitive-textfield.component.spec.ts @@ -1,7 +1,7 @@ -import {HarnessLoader} from '@angular/cdk/testing'; +import {type HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { TuiHintModule, diff --git a/projects/core/components/primitive-textfield/test/textfield.component.spec.ts b/projects/core/components/primitive-textfield/test/textfield.component.spec.ts index 5dd92d79aecd..4bf1a79ac821 100644 --- a/projects/core/components/primitive-textfield/test/textfield.component.spec.ts +++ b/projects/core/components/primitive-textfield/test/textfield.component.spec.ts @@ -1,5 +1,5 @@ import {Component, ElementRef, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TUI_TEXTFIELD_HOST} from '@taiga-ui/core/tokens'; import {TuiPrimitiveTextfieldModule} from '../primitive-textfield.module'; diff --git a/projects/core/components/primitive-textfield/textfield/textfield.component.ts b/projects/core/components/primitive-textfield/textfield/textfield.component.ts index 1812229be217..4dd0807debf9 100644 --- a/projects/core/components/primitive-textfield/textfield/textfield.component.ts +++ b/projects/core/components/primitive-textfield/textfield/textfield.component.ts @@ -4,7 +4,7 @@ import { TEXTFIELD_CONTROLLER_PROVIDER, TUI_TEXTFIELD_WATCHED_CONTROLLER, } from '@taiga-ui/core/directives'; -import {TuiTextfieldHost} from '@taiga-ui/core/interfaces'; +import {type TuiTextfieldHost} from '@taiga-ui/core/interfaces'; import {TUI_TEXTFIELD_HOST} from '@taiga-ui/core/tokens'; @Component({ diff --git a/projects/core/components/primitive-textfield/value-decoration/value-decoration.component.ts b/projects/core/components/primitive-textfield/value-decoration/value-decoration.component.ts index 53fcbcb77eb7..568cb387fd8a 100644 --- a/projects/core/components/primitive-textfield/value-decoration/value-decoration.component.ts +++ b/projects/core/components/primitive-textfield/value-decoration/value-decoration.component.ts @@ -1,7 +1,7 @@ import { ChangeDetectionStrategy, Component, - DoCheck, + type DoCheck, ElementRef, HostBinding, HostListener, @@ -12,7 +12,7 @@ import {TUI_FOCUSABLE_ITEM_ACCESSOR, TUI_FONTS_READY} from '@taiga-ui/cdk'; import {TuiAppearance} from '@taiga-ui/core/enums'; import {BehaviorSubject, delay, distinctUntilChanged, filter, map, merge} from 'rxjs'; -import {TuiPrimitiveTextfield} from '../primitive-textfield-types'; +import {type TuiPrimitiveTextfield} from '../primitive-textfield-types'; @Component({ selector: 'tui-value-decoration', diff --git a/projects/core/components/primitive-year-picker/primitive-year-picker.component.ts b/projects/core/components/primitive-year-picker/primitive-year-picker.component.ts index 6a4f72c83da3..a896fb86f46c 100644 --- a/projects/core/components/primitive-year-picker/primitive-year-picker.component.ts +++ b/projects/core/components/primitive-year-picker/primitive-year-picker.component.ts @@ -10,15 +10,15 @@ import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - TuiBooleanHandler, - TuiDay, - TuiDayRange, + type TuiBooleanHandler, + type TuiDay, + type TuiDayRange, tuiInRange, TuiMonth, TuiMonthRange, TuiYear, } from '@taiga-ui/cdk'; -import {TuiInteractiveState, TuiRangeState} from '@taiga-ui/core/enums'; +import {TuiInteractiveState, type TuiRangeState} from '@taiga-ui/core/enums'; const LIMIT = 100; const ITEMS_IN_ROW = 4; diff --git a/projects/core/components/primitive-year-picker/test/primitive-year-picker.component.spec.ts b/projects/core/components/primitive-year-picker/test/primitive-year-picker.component.spec.ts index 3ab417a413f9..867cfb8e1deb 100644 --- a/projects/core/components/primitive-year-picker/test/primitive-year-picker.component.spec.ts +++ b/projects/core/components/primitive-year-picker/test/primitive-year-picker.component.spec.ts @@ -1,5 +1,5 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TUI_FIRST_DAY, TuiDay, TuiDayRange, TuiYear} from '@taiga-ui/cdk'; import { TuiInteractiveState, diff --git a/projects/core/components/root/root.component.ts b/projects/core/components/root/root.component.ts index 9d578d537aa8..22afcee6a72e 100644 --- a/projects/core/components/root/root.component.ts +++ b/projects/core/components/root/root.component.ts @@ -10,7 +10,7 @@ import {TUI_DIALOGS} from '@taiga-ui/core/components/dialog'; import {TuiBreakpointService} from '@taiga-ui/core/services'; import {TUI_ANIMATIONS_SPEED, TUI_REDUCED_MOTION, TUI_THEME} from '@taiga-ui/core/tokens'; import {tuiGetDuration} from '@taiga-ui/core/utils'; -import {debounceTime, map, Observable, of} from 'rxjs'; +import {debounceTime, map, type Observable, of} from 'rxjs'; @Component({ selector: 'tui-root', diff --git a/projects/core/components/root/test/root.component.spec.ts b/projects/core/components/root/test/root.component.spec.ts index 843012596464..cd52d5274db9 100644 --- a/projects/core/components/root/test/root.component.spec.ts +++ b/projects/core/components/root/test/root.component.spec.ts @@ -1,4 +1,4 @@ -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiRootComponent} from '../root.component'; diff --git a/projects/core/components/scrollbar/scrollable.directive.ts b/projects/core/components/scrollbar/scrollable.directive.ts index 3a5f3b8abd7f..ea0306ad9976 100644 --- a/projects/core/components/scrollbar/scrollable.directive.ts +++ b/projects/core/components/scrollbar/scrollable.directive.ts @@ -1,4 +1,4 @@ -import {Directive, ElementRef, inject, OnInit} from '@angular/core'; +import {Directive, ElementRef, inject, type OnInit} from '@angular/core'; import {TUI_SCROLLABLE} from '@taiga-ui/core/constants'; @Directive({ diff --git a/projects/core/components/svg/svg-options.ts b/projects/core/components/svg/svg-options.ts index ecc9732282e3..2c5f2693a638 100644 --- a/projects/core/components/svg/svg-options.ts +++ b/projects/core/components/svg/svg-options.ts @@ -1,17 +1,17 @@ import { - FactoryProvider, + type FactoryProvider, inject, InjectionToken, Optional, - Provider, + type Provider, SkipSelf, } from '@angular/core'; import { tuiCreateTokenFromFactory, - TuiHandler, + type TuiHandler, tuiIsString, - TuiSafeHtml, - TuiStringHandler, + type TuiSafeHtml, + type TuiStringHandler, tuiSvgLinearGradientProcessor, } from '@taiga-ui/cdk'; import { diff --git a/projects/core/components/svg/svg.component.ts b/projects/core/components/svg/svg.component.ts index 11d43eb1f373..920e0ccce329 100644 --- a/projects/core/components/svg/svg.component.ts +++ b/projects/core/components/svg/svg.component.ts @@ -8,7 +8,7 @@ import { Input, SecurityContext, } from '@angular/core'; -import {DomSanitizer, SafeHtml} from '@angular/platform-browser'; +import {DomSanitizer, type SafeHtml} from '@angular/platform-browser'; import {WINDOW} from '@ng-web-apis/common'; import { TUI_BASE_HREF, @@ -16,21 +16,29 @@ import { tuiGetDocumentOrShadowRoot, tuiIsString, tuiPure, - TuiSafeHtml, + type TuiSafeHtml, TuiStaticRequestService, } from '@taiga-ui/cdk'; import {TUI_CACHE_BUSTING_PAYLOAD, TUI_ICON_ERROR} from '@taiga-ui/core/constants'; -import {TuiIconError} from '@taiga-ui/core/interfaces'; +import {type TuiIconError} from '@taiga-ui/core/interfaces'; import {TuiSvgService} from '@taiga-ui/core/services'; import {TUI_SANITIZER} from '@taiga-ui/core/tokens'; import {tuiIsPresumedHTMLString} from '@taiga-ui/core/utils/miscellaneous'; -import {catchError, map, Observable, of, ReplaySubject, startWith, switchMap} from 'rxjs'; +import { + catchError, + map, + type Observable, + of, + ReplaySubject, + startWith, + switchMap, +} from 'rxjs'; import { TUI_SVG_OPTIONS, TUI_SVG_SRC_INTERCEPTORS, - TuiSvgInterceptorHandler, - TuiSvgOptions, + type TuiSvgInterceptorHandler, + type TuiSvgOptions, } from './svg-options'; const UNDEFINED_NAMED_ICON = 'Attempted to use undefined named icon'; diff --git a/projects/core/components/svg/test/svg-options.component.spec.ts b/projects/core/components/svg/test/svg-options.component.spec.ts index 616b088e1390..e5507e0077d0 100644 --- a/projects/core/components/svg/test/svg-options.component.spec.ts +++ b/projects/core/components/svg/test/svg-options.component.spec.ts @@ -1,11 +1,11 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import { TUI_BASE_HREF, TUI_VERSION, tuiIsString, - TuiSafeHtml, - TuiStringHandler, + type TuiSafeHtml, + type TuiStringHandler, } from '@taiga-ui/cdk'; import { TUI_ICONS_PATH, diff --git a/projects/core/components/svg/test/svg.component.spec.ts b/projects/core/components/svg/test/svg.component.spec.ts index 5a2e36c67eef..e6099b6d7622 100644 --- a/projects/core/components/svg/test/svg.component.spec.ts +++ b/projects/core/components/svg/test/svg.component.spec.ts @@ -1,7 +1,7 @@ -import {HarnessLoader} from '@angular/cdk/testing'; +import {type HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component, inject, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TuiStaticRequestService} from '@taiga-ui/cdk'; import {TuiSvgComponent, TuiSvgModule, TuiSvgService} from '@taiga-ui/core'; import {TUI_SANITIZER_MOCK, TuiSvgHarness} from '@taiga-ui/testing'; diff --git a/projects/core/components/tooltip/tooltip.component.ts b/projects/core/components/tooltip/tooltip.component.ts index b4467d5f156d..cda4170538bc 100644 --- a/projects/core/components/tooltip/tooltip.component.ts +++ b/projects/core/components/tooltip/tooltip.component.ts @@ -11,7 +11,7 @@ import {TUI_IS_MOBILE, TuiDestroyService} from '@taiga-ui/cdk'; import {TuiHintHoverDirective, TuiHintOptionsDirective} from '@taiga-ui/core/directives'; import {MODE_PROVIDER} from '@taiga-ui/core/providers'; import {TUI_MODE} from '@taiga-ui/core/tokens'; -import {TuiBrightness} from '@taiga-ui/core/types'; +import {type TuiBrightness} from '@taiga-ui/core/types'; import {takeUntil} from 'rxjs'; @Component({ diff --git a/projects/core/constants/default-icons-path.ts b/projects/core/constants/default-icons-path.ts index 60ca69c5e754..12a061406098 100644 --- a/projects/core/constants/default-icons-path.ts +++ b/projects/core/constants/default-icons-path.ts @@ -1,4 +1,4 @@ -import {TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiStringHandler} from '@taiga-ui/cdk'; export const DEFAULT_ICONS_PATH: TuiStringHandler = name => name.includes('.svg#') ? name : `#${name}`; diff --git a/projects/core/constants/default-marker-handler.ts b/projects/core/constants/default-marker-handler.ts index 893fd7ae3bed..aa452447a619 100644 --- a/projects/core/constants/default-marker-handler.ts +++ b/projects/core/constants/default-marker-handler.ts @@ -1,4 +1,4 @@ import {EMPTY_ARRAY} from '@taiga-ui/cdk'; -import {TuiMarkerHandler} from '@taiga-ui/core/types'; +import {type TuiMarkerHandler} from '@taiga-ui/core/types'; export const TUI_DEFAULT_MARKER_HANDLER: TuiMarkerHandler = () => EMPTY_ARRAY; diff --git a/projects/core/constants/default-number-format.ts b/projects/core/constants/default-number-format.ts index dfa41e92d102..eac8ba960e5a 100644 --- a/projects/core/constants/default-number-format.ts +++ b/projects/core/constants/default-number-format.ts @@ -1,5 +1,5 @@ import {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk'; -import {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; +import {type TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; export const TUI_DEFAULT_NUMBER_FORMAT: TuiNumberFormatSettings = { decimalLimit: NaN, diff --git a/projects/core/constants/hint-directions.ts b/projects/core/constants/hint-directions.ts index 5247d72efddc..92e3a2a0965b 100644 --- a/projects/core/constants/hint-directions.ts +++ b/projects/core/constants/hint-directions.ts @@ -1,4 +1,4 @@ -import {TuiHintDirection} from '@taiga-ui/core/types'; +import {type TuiHintDirection} from '@taiga-ui/core/types'; export const TUI_HINT_DIRECTIONS: readonly TuiHintDirection[] = [ 'bottom-left', diff --git a/projects/core/directives/appearance/appearance.directive.ts b/projects/core/directives/appearance/appearance.directive.ts index 6ee7558a72e1..2b54065b1757 100644 --- a/projects/core/directives/appearance/appearance.directive.ts +++ b/projects/core/directives/appearance/appearance.directive.ts @@ -1,5 +1,5 @@ import {Directive, inject, Input} from '@angular/core'; -import {TuiInteractiveStateT} from '@taiga-ui/core/enums'; +import {type TuiInteractiveStateT} from '@taiga-ui/core/enums'; import {TUI_APPEARANCE_OPTIONS} from './appearance.options'; diff --git a/projects/core/directives/appearance/appearance.options.ts b/projects/core/directives/appearance/appearance.options.ts index 252a523a57f6..edde85d8cead 100644 --- a/projects/core/directives/appearance/appearance.options.ts +++ b/projects/core/directives/appearance/appearance.options.ts @@ -1,4 +1,4 @@ -import {Provider, ProviderToken} from '@angular/core'; +import {type Provider, type ProviderToken} from '@angular/core'; import {tuiCreateToken} from '@taiga-ui/cdk'; export interface TuiAppearanceOptions { diff --git a/projects/core/directives/dropdown/dropdown-hover.options.ts b/projects/core/directives/dropdown/dropdown-hover.options.ts index 4e630169b8f7..80b000825356 100644 --- a/projects/core/directives/dropdown/dropdown-hover.options.ts +++ b/projects/core/directives/dropdown/dropdown-hover.options.ts @@ -1,4 +1,4 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiDropdownHoverOptions { diff --git a/projects/core/directives/dropdown/dropdown-manual.directive.ts b/projects/core/directives/dropdown/dropdown-manual.directive.ts index a9630c17b0f7..1a6569e81729 100644 --- a/projects/core/directives/dropdown/dropdown-manual.directive.ts +++ b/projects/core/directives/dropdown/dropdown-manual.directive.ts @@ -1,4 +1,4 @@ -import {Directive, inject, Input, OnChanges} from '@angular/core'; +import {Directive, inject, Input, type OnChanges} from '@angular/core'; import {tuiAsDriver} from '@taiga-ui/core/abstract'; import {TuiDropdownDriver} from './dropdown.driver'; diff --git a/projects/core/directives/dropdown/dropdown-open.directive.ts b/projects/core/directives/dropdown/dropdown-open.directive.ts index 96dc77a7ab28..3e471cf9cf38 100644 --- a/projects/core/directives/dropdown/dropdown-open.directive.ts +++ b/projects/core/directives/dropdown/dropdown-open.directive.ts @@ -6,7 +6,7 @@ import { HostListener, inject, Input, - OnChanges, + type OnChanges, Output, } from '@angular/core'; import { diff --git a/projects/core/directives/dropdown/dropdown-options.directive.ts b/projects/core/directives/dropdown/dropdown-options.directive.ts index e4a978e09085..56e22e7461cb 100644 --- a/projects/core/directives/dropdown/dropdown-options.directive.ts +++ b/projects/core/directives/dropdown/dropdown-options.directive.ts @@ -1,6 +1,6 @@ import { Directive, - FactoryProvider, + type FactoryProvider, forwardRef, inject, Input, @@ -9,9 +9,9 @@ import { } from '@angular/core'; import {tuiCreateToken} from '@taiga-ui/cdk'; import { - TuiDropdownAlign, - TuiDropdownWidth, - TuiVerticalDirection, + type TuiDropdownAlign, + type TuiDropdownWidth, + type TuiVerticalDirection, } from '@taiga-ui/core/types'; import {tuiOverrideOptions} from '@taiga-ui/core/utils'; diff --git a/projects/core/directives/dropdown/dropdown-portal.directive.ts b/projects/core/directives/dropdown/dropdown-portal.directive.ts index a43629017955..849b223eeedc 100644 --- a/projects/core/directives/dropdown/dropdown-portal.directive.ts +++ b/projects/core/directives/dropdown/dropdown-portal.directive.ts @@ -1,9 +1,9 @@ import { Directive, - EmbeddedViewRef, + type EmbeddedViewRef, inject, Input, - OnDestroy, + type OnDestroy, TemplateRef, } from '@angular/core'; diff --git a/projects/core/directives/dropdown/dropdown-position-sided.directive.ts b/projects/core/directives/dropdown/dropdown-position-sided.directive.ts index 6715b64bae10..a6a193a5c579 100644 --- a/projects/core/directives/dropdown/dropdown-position-sided.directive.ts +++ b/projects/core/directives/dropdown/dropdown-position-sided.directive.ts @@ -2,7 +2,7 @@ import {Directive, inject, Input} from '@angular/core'; import {EMPTY_CLIENT_RECT} from '@taiga-ui/cdk'; import {tuiAsPositionAccessor, TuiPositionAccessor} from '@taiga-ui/core/abstract'; import {TUI_VIEWPORT} from '@taiga-ui/core/tokens'; -import {TuiPoint} from '@taiga-ui/core/types'; +import {type TuiPoint} from '@taiga-ui/core/types'; import {TUI_DROPDOWN_OPTIONS} from './dropdown-options.directive'; import {TuiDropdownPositionDirective} from './dropdown-position.directive'; diff --git a/projects/core/directives/dropdown/dropdown-position.directive.ts b/projects/core/directives/dropdown/dropdown-position.directive.ts index 673319fb0ce5..0d8ead2413b7 100644 --- a/projects/core/directives/dropdown/dropdown-position.directive.ts +++ b/projects/core/directives/dropdown/dropdown-position.directive.ts @@ -6,7 +6,7 @@ import { TuiRectAccessor, } from '@taiga-ui/core/abstract'; import {TUI_VIEWPORT} from '@taiga-ui/core/tokens'; -import {TuiPoint, TuiVerticalDirection} from '@taiga-ui/core/types'; +import {type TuiPoint, type TuiVerticalDirection} from '@taiga-ui/core/types'; import {TuiDropdownDirective} from './dropdown.directive'; import {TUI_DROPDOWN_OPTIONS} from './dropdown-options.directive'; diff --git a/projects/core/directives/dropdown/dropdown-selection.directive.ts b/projects/core/directives/dropdown/dropdown-selection.directive.ts index 055cc1d201f2..dc61d96cf412 100644 --- a/projects/core/directives/dropdown/dropdown-selection.directive.ts +++ b/projects/core/directives/dropdown/dropdown-selection.directive.ts @@ -4,7 +4,7 @@ import { ElementRef, inject, Input, - OnDestroy, + type OnDestroy, ViewContainerRef, } from '@angular/core'; import { @@ -13,7 +13,7 @@ import { CHAR_ZERO_WIDTH_SPACE, EMPTY_CLIENT_RECT, TUI_RANGE, - TuiBooleanHandler, + type TuiBooleanHandler, tuiGetNativeFocused, tuiIsElement, tuiIsString, @@ -25,7 +25,7 @@ import { tuiAsDriver, tuiAsRectAccessor, TuiDriver, - TuiRectAccessor, + type TuiRectAccessor, } from '@taiga-ui/core/abstract'; import {TUI_SELECTION_STREAM} from '@taiga-ui/core/tokens'; import {tuiGetWordRange} from '@taiga-ui/core/utils'; diff --git a/projects/core/directives/dropdown/dropdown.component.ts b/projects/core/directives/dropdown/dropdown.component.ts index 4e84dad74d35..ab8853af0f43 100644 --- a/projects/core/directives/dropdown/dropdown.component.ts +++ b/projects/core/directives/dropdown/dropdown.component.ts @@ -3,7 +3,7 @@ import { Component, ElementRef, inject, - OnInit, + type OnInit, } from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; import { @@ -24,10 +24,10 @@ import {TuiScrollbarComponent} from '@taiga-ui/core/components/scrollbar'; import {MODE_PROVIDER} from '@taiga-ui/core/providers'; import {TuiPositionService, TuiVisualViewportService} from '@taiga-ui/core/services'; import {TUI_ANIMATIONS_SPEED, TUI_MODE} from '@taiga-ui/core/tokens'; -import {TuiBrightness} from '@taiga-ui/core/types'; +import {type TuiBrightness} from '@taiga-ui/core/types'; import {tuiToAnimationOptions} from '@taiga-ui/core/utils'; import {PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; -import {map, Observable, takeUntil} from 'rxjs'; +import {map, type Observable, takeUntil} from 'rxjs'; import {TuiDropdownDirective} from './dropdown.directive'; import {TUI_DROPDOWN_CONTEXT} from './dropdown.providers'; diff --git a/projects/core/directives/dropdown/dropdown.directive.ts b/projects/core/directives/dropdown/dropdown.directive.ts index eb6ecf2983aa..4f8f9cf7aa6b 100644 --- a/projects/core/directives/dropdown/dropdown.directive.ts +++ b/projects/core/directives/dropdown/dropdown.directive.ts @@ -1,33 +1,33 @@ import { - AfterViewChecked, + type AfterViewChecked, ChangeDetectorRef, - ComponentRef, + type ComponentRef, Directive, ElementRef, inject, INJECTOR, Input, - OnChanges, - OnDestroy, + type OnChanges, + type OnDestroy, TemplateRef, } from '@angular/core'; import { - TuiActiveZoneDirective, - TuiContext, + type TuiActiveZoneDirective, + type TuiContext, TuiDestroyService, tuiPure, } from '@taiga-ui/cdk'; import { tuiAsRectAccessor, tuiAsVehicle, - TuiRectAccessor, - TuiVehicle, + type TuiRectAccessor, + type TuiVehicle, } from '@taiga-ui/core/abstract'; -import {TuiPortalItem} from '@taiga-ui/core/interfaces'; +import {type TuiPortalItem} from '@taiga-ui/core/interfaces'; import {tuiCheckFixedPosition} from '@taiga-ui/core/utils'; import { PolymorpheusComponent, - PolymorpheusContent, + type PolymorpheusContent, PolymorpheusTemplate, } from '@tinkoff/ng-polymorpheus'; import {Subject, takeUntil, throttleTime} from 'rxjs'; diff --git a/projects/core/directives/dropdown/dropdown.driver.ts b/projects/core/directives/dropdown/dropdown.driver.ts index ef1bfac18dab..223b390d3615 100644 --- a/projects/core/directives/dropdown/dropdown.driver.ts +++ b/projects/core/directives/dropdown/dropdown.driver.ts @@ -1,6 +1,6 @@ import {Directive, Injectable} from '@angular/core'; import {TuiDestroyService} from '@taiga-ui/cdk'; -import {AbstractTuiDriverDirective, TuiDriver} from '@taiga-ui/core/abstract'; +import {AbstractTuiDriverDirective, type TuiDriver} from '@taiga-ui/core/abstract'; import {Subject} from 'rxjs'; @Injectable() diff --git a/projects/core/directives/dropdown/dropdown.providers.ts b/projects/core/directives/dropdown/dropdown.providers.ts index 89aa2d9baa86..844838cddea8 100644 --- a/projects/core/directives/dropdown/dropdown.providers.ts +++ b/projects/core/directives/dropdown/dropdown.providers.ts @@ -1,4 +1,4 @@ -import {InjectionToken, Type} from '@angular/core'; +import {InjectionToken, type Type} from '@angular/core'; import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; import {TuiDropdownComponent} from './dropdown.component'; diff --git a/projects/core/directives/dropdown/test/dropdown.directive.spec.ts b/projects/core/directives/dropdown/test/dropdown.directive.spec.ts index ff568e30c3a8..a047de829df3 100644 --- a/projects/core/directives/dropdown/test/dropdown.directive.spec.ts +++ b/projects/core/directives/dropdown/test/dropdown.directive.spec.ts @@ -1,5 +1,5 @@ -import {Component, ElementRef} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type ElementRef} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiPageObject} from '@taiga-ui/testing'; import {PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; diff --git a/projects/core/directives/hint/hint-describe.directive.ts b/projects/core/directives/hint/hint-describe.directive.ts index af594f3e965d..d2784e5e1ffd 100644 --- a/projects/core/directives/hint/hint-describe.directive.ts +++ b/projects/core/directives/hint/hint-describe.directive.ts @@ -1,5 +1,12 @@ import {DOCUMENT} from '@angular/common'; -import {Directive, ElementRef, inject, Input, NgZone, OnChanges} from '@angular/core'; +import { + Directive, + ElementRef, + inject, + Input, + NgZone, + type OnChanges, +} from '@angular/core'; import { tuiIfMap, tuiIsNativeFocused, diff --git a/projects/core/directives/hint/hint-hover.directive.ts b/projects/core/directives/hint/hint-hover.directive.ts index b5cabdb15b85..42e011e10d4c 100644 --- a/projects/core/directives/hint/hint-hover.directive.ts +++ b/projects/core/directives/hint/hint-hover.directive.ts @@ -16,7 +16,7 @@ import { tap, } from 'rxjs'; -import {TUI_HINT_OPTIONS, TuiHintOptions} from './hint-options.directive'; +import {TUI_HINT_OPTIONS, type TuiHintOptions} from './hint-options.directive'; @Directive({ selector: '[tuiHint]:not(ng-container):not(ng-template)', diff --git a/projects/core/directives/hint/hint-manual.directive.ts b/projects/core/directives/hint/hint-manual.directive.ts index 90d8f0f3c198..b29039300e8f 100644 --- a/projects/core/directives/hint/hint-manual.directive.ts +++ b/projects/core/directives/hint/hint-manual.directive.ts @@ -1,4 +1,4 @@ -import {Directive, inject, Input, OnChanges} from '@angular/core'; +import {Directive, inject, Input, type OnChanges} from '@angular/core'; import {tuiAsDriver, TuiDriver} from '@taiga-ui/core/abstract'; import {BehaviorSubject} from 'rxjs'; diff --git a/projects/core/directives/hint/hint-options.directive.ts b/projects/core/directives/hint/hint-options.directive.ts index e667a51049d8..101682090e4b 100644 --- a/projects/core/directives/hint/hint-options.directive.ts +++ b/projects/core/directives/hint/hint-options.directive.ts @@ -1,6 +1,6 @@ import { Directive, - FactoryProvider, + type FactoryProvider, forwardRef, inject, Input, @@ -8,9 +8,9 @@ import { SkipSelf, } from '@angular/core'; import {AbstractTuiController, tuiCreateToken} from '@taiga-ui/cdk'; -import {TuiHintDirection} from '@taiga-ui/core/types'; +import {type TuiHintDirection} from '@taiga-ui/core/types'; import {tuiOverrideOptions} from '@taiga-ui/core/utils'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiHintOptions { readonly appearance: string; diff --git a/projects/core/directives/hint/hint-pointer.directive.ts b/projects/core/directives/hint/hint-pointer.directive.ts index 595af9d55062..453ab4dcf9be 100644 --- a/projects/core/directives/hint/hint-pointer.directive.ts +++ b/projects/core/directives/hint/hint-pointer.directive.ts @@ -1,6 +1,10 @@ import {Directive, HostListener} from '@angular/core'; import {EMPTY_CLIENT_RECT, tuiPointToClientRect} from '@taiga-ui/cdk'; -import {tuiAsDriver, tuiAsRectAccessor, TuiRectAccessor} from '@taiga-ui/core/abstract'; +import { + tuiAsDriver, + tuiAsRectAccessor, + type TuiRectAccessor, +} from '@taiga-ui/core/abstract'; import {TuiHintHoverDirective} from './hint-hover.directive'; diff --git a/projects/core/directives/hint/hint-position.directive.ts b/projects/core/directives/hint/hint-position.directive.ts index a81ac0ce6605..5bb9f5effd6f 100644 --- a/projects/core/directives/hint/hint-position.directive.ts +++ b/projects/core/directives/hint/hint-position.directive.ts @@ -7,10 +7,10 @@ import { } from '@taiga-ui/core/abstract'; import {TUI_HINT_DIRECTIONS} from '@taiga-ui/core/constants'; import {TUI_VIEWPORT} from '@taiga-ui/core/tokens'; -import {TuiHintDirection, TuiPoint} from '@taiga-ui/core/types'; +import {type TuiHintDirection, type TuiPoint} from '@taiga-ui/core/types'; import {TuiHintDirective} from './hint.directive'; -import {TUI_HINT_OPTIONS, TuiHintOptions} from './hint-options.directive'; +import {TUI_HINT_OPTIONS, type TuiHintOptions} from './hint-options.directive'; const OFFSET = 8; const ARROW_OFFSET = 22; diff --git a/projects/core/directives/hint/hint-unstyled.component.ts b/projects/core/directives/hint/hint-unstyled.component.ts index e5beb25bfa41..11a1ceb374cb 100644 --- a/projects/core/directives/hint/hint-unstyled.component.ts +++ b/projects/core/directives/hint/hint-unstyled.component.ts @@ -5,9 +5,9 @@ import { inject, TemplateRef, } from '@angular/core'; -import {TuiContext} from '@taiga-ui/cdk'; +import {type TuiContext} from '@taiga-ui/cdk'; import {TUI_PARENT_ANIMATION} from '@taiga-ui/core/animations'; -import {TuiPortalItem} from '@taiga-ui/core/interfaces'; +import {type TuiPortalItem} from '@taiga-ui/core/interfaces'; import {POLYMORPHEUS_CONTEXT, PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; import {TuiHintDirective} from './hint.directive'; diff --git a/projects/core/directives/hint/hint.component.ts b/projects/core/directives/hint/hint.component.ts index 4b3c6c6be47f..9ac029c7c5fc 100644 --- a/projects/core/directives/hint/hint.component.ts +++ b/projects/core/directives/hint/hint.component.ts @@ -9,7 +9,7 @@ import { import { EMPTY_CLIENT_RECT, tuiClamp, - TuiContext, + type TuiContext, TuiDestroyService, TuiHoveredService, tuiPure, @@ -22,11 +22,11 @@ import { } from '@taiga-ui/core/abstract'; import {tuiFadeIn} from '@taiga-ui/core/animations'; import {TuiModeDirective} from '@taiga-ui/core/directives/mode'; -import {TuiPortalItem} from '@taiga-ui/core/interfaces'; +import {type TuiPortalItem} from '@taiga-ui/core/interfaces'; import {TuiPositionService, TuiVisualViewportService} from '@taiga-ui/core/services'; import {TUI_ANIMATIONS_SPEED, TUI_VIEWPORT} from '@taiga-ui/core/tokens'; import {tuiIsObscured, tuiToAnimationOptions} from '@taiga-ui/core/utils'; -import {POLYMORPHEUS_CONTEXT, PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {POLYMORPHEUS_CONTEXT, type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {map, takeUntil} from 'rxjs'; import {TuiHintDirective} from './hint.directive'; diff --git a/projects/core/directives/hint/hint.directive.ts b/projects/core/directives/hint/hint.directive.ts index ab8d8fc10740..cfa75d873ba8 100644 --- a/projects/core/directives/hint/hint.directive.ts +++ b/projects/core/directives/hint/hint.directive.ts @@ -4,19 +4,19 @@ import { inject, INJECTOR, Input, - OnChanges, - OnDestroy, + type OnChanges, + type OnDestroy, } from '@angular/core'; import {TuiActiveZoneDirective} from '@taiga-ui/cdk'; import { tuiAsRectAccessor, tuiAsVehicle, - TuiRectAccessor, - TuiVehicle, + type TuiRectAccessor, + type TuiVehicle, } from '@taiga-ui/core/abstract'; -import {TuiPortalItem} from '@taiga-ui/core/interfaces'; +import {type TuiPortalItem} from '@taiga-ui/core/interfaces'; import {TuiHintService} from '@taiga-ui/core/services'; -import {PolymorpheusComponent, PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {PolymorpheusComponent, type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TUI_HINT_COMPONENT} from './hint.providers'; import {TUI_HINT_OPTIONS} from './hint-options.directive'; diff --git a/projects/core/directives/hint/hint.providers.ts b/projects/core/directives/hint/hint.providers.ts index 8709575fa2a5..4f8c2eb86b90 100644 --- a/projects/core/directives/hint/hint.providers.ts +++ b/projects/core/directives/hint/hint.providers.ts @@ -1,4 +1,4 @@ -import {Type} from '@angular/core'; +import {type Type} from '@angular/core'; import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; import {TuiHintComponent} from './hint.component'; diff --git a/projects/core/directives/hint/test/hint.directive.spec.ts b/projects/core/directives/hint/test/hint.directive.spec.ts index ed7a5f8ae457..8269df597315 100644 --- a/projects/core/directives/hint/test/hint.directive.spec.ts +++ b/projects/core/directives/hint/test/hint.directive.spec.ts @@ -1,6 +1,6 @@ -import {Component, TemplateRef} from '@angular/core'; +import {Component, type TemplateRef} from '@angular/core'; import { - ComponentFixture, + type ComponentFixture, discardPeriodicTasks, fakeAsync, TestBed, diff --git a/projects/core/directives/icons/icons.directive.ts b/projects/core/directives/icons/icons.directive.ts index ddf0df86216c..847f848f72e2 100644 --- a/projects/core/directives/icons/icons.directive.ts +++ b/projects/core/directives/icons/icons.directive.ts @@ -1,5 +1,5 @@ import {Directive, inject, Input} from '@angular/core'; -import {TuiStringHandler, tuiWithStyles} from '@taiga-ui/cdk'; +import {type TuiStringHandler, tuiWithStyles} from '@taiga-ui/cdk'; import {TUI_ICON_RESOLVER} from '@taiga-ui/core/tokens'; import {TuiIconsComponent} from './icons.component'; diff --git a/projects/core/directives/mask-accessor/mask-accessor.directive.ts b/projects/core/directives/mask-accessor/mask-accessor.directive.ts index 28ce7eb953c5..3f59827198b6 100644 --- a/projects/core/directives/mask-accessor/mask-accessor.directive.ts +++ b/projects/core/directives/mask-accessor/mask-accessor.directive.ts @@ -1,6 +1,6 @@ import {Directive, Optional} from '@angular/core'; import { - ControlValueAccessor, + type ControlValueAccessor, DefaultValueAccessor, NG_VALUE_ACCESSOR, } from '@angular/forms'; diff --git a/projects/core/directives/mode/mode.directive.ts b/projects/core/directives/mode/mode.directive.ts index c5d8c619ef75..ec3956edeaa9 100644 --- a/projects/core/directives/mode/mode.directive.ts +++ b/projects/core/directives/mode/mode.directive.ts @@ -1,6 +1,6 @@ import {Directive, Input} from '@angular/core'; import {AbstractTuiController} from '@taiga-ui/cdk'; -import {TuiBrightness} from '@taiga-ui/core/types'; +import {type TuiBrightness} from '@taiga-ui/core/types'; @Directive({ selector: '[tuiMode]', diff --git a/projects/core/directives/number-format/number-format.directive.ts b/projects/core/directives/number-format/number-format.directive.ts index b38976d3a9d8..5baaa789b8ea 100644 --- a/projects/core/directives/number-format/number-format.directive.ts +++ b/projects/core/directives/number-format/number-format.directive.ts @@ -1,5 +1,5 @@ import {Directive, forwardRef, inject, Input} from '@angular/core'; -import {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; +import {type TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; import {TUI_NUMBER_FORMAT} from '@taiga-ui/core/tokens'; import {combineLatest, map, Observable, ReplaySubject} from 'rxjs'; diff --git a/projects/core/directives/textfield-controller/textfield-controller.provider.ts b/projects/core/directives/textfield-controller/textfield-controller.provider.ts index 56b19ebdc8eb..5f2e8e428c26 100644 --- a/projects/core/directives/textfield-controller/textfield-controller.provider.ts +++ b/projects/core/directives/textfield-controller/textfield-controller.provider.ts @@ -1,44 +1,50 @@ -import {ChangeDetectorRef, InjectionToken, Provider} from '@angular/core'; +import {ChangeDetectorRef, InjectionToken, type Provider} from '@angular/core'; import {TuiDestroyService, tuiWatch} from '@taiga-ui/cdk'; import {TUI_TEXTFIELD_APPEARANCE} from '@taiga-ui/core/tokens'; -import {merge, NEVER, Observable, takeUntil} from 'rxjs'; +import {merge, NEVER, type Observable, takeUntil} from 'rxjs'; import {TuiTextfieldController} from './textfield.controller'; -import {TUI_TEXTFIELD_OPTIONS, TuiTextfieldOptions} from './textfield.options'; +import {TUI_TEXTFIELD_OPTIONS, type TuiTextfieldOptions} from './textfield.options'; import { TUI_TEXTFIELD_APPEARANCE_DIRECTIVE, - TuiTextfieldAppearanceDirective, + type TuiTextfieldAppearanceDirective, } from './textfield-appearance.directive'; import { TUI_TEXTFIELD_CLEANER, - TuiTextfieldCleanerDirective, + type TuiTextfieldCleanerDirective, } from './textfield-cleaner.directive'; import { TUI_TEXTFIELD_CUSTOM_CONTENT, - TuiTextfieldCustomContentDirective, + type TuiTextfieldCustomContentDirective, } from './textfield-custom-content.directive'; import { TUI_TEXTFIELD_FILLER, - TuiTextfieldFillerDirective, + type TuiTextfieldFillerDirective, } from './textfield-filler.directive'; -import {TUI_TEXTFIELD_ICON, TuiTextfieldIconDirective} from './textfield-icon.directive'; +import { + TUI_TEXTFIELD_ICON, + type TuiTextfieldIconDirective, +} from './textfield-icon.directive'; import { TUI_TEXTFIELD_ICON_LEFT, - TuiTextfieldIconLeftDirective, + type TuiTextfieldIconLeftDirective, } from './textfield-icon-left.directive'; import { TUI_TEXTFIELD_LABEL_OUTSIDE, - TuiTextfieldLabelOutsideDirective, + type TuiTextfieldLabelOutsideDirective, } from './textfield-label-outside.directive'; import { TUI_TEXTFIELD_POSTFIX, - TuiTextfieldPostfixDirective, + type TuiTextfieldPostfixDirective, } from './textfield-postfix.directive'; import { TUI_TEXTFIELD_PREFIX, - TuiTextfieldPrefixDirective, + type TuiTextfieldPrefixDirective, } from './textfield-prefix.directive'; -import {TUI_TEXTFIELD_SIZE, TuiTextfieldSizeDirective} from './textfield-size.directive'; +import { + TUI_TEXTFIELD_SIZE, + type TuiTextfieldSizeDirective, +} from './textfield-size.directive'; export const TUI_TEXTFIELD_WATCHED_CONTROLLER = new InjectionToken('[TUI_TEXTFIELD_WATCHED_CONTROLLER]'); diff --git a/projects/core/directives/textfield-controller/textfield-custom-content.directive.ts b/projects/core/directives/textfield-controller/textfield-custom-content.directive.ts index dee6834ad730..491170582c24 100644 --- a/projects/core/directives/textfield-controller/textfield-custom-content.directive.ts +++ b/projects/core/directives/textfield-controller/textfield-custom-content.directive.ts @@ -1,6 +1,6 @@ import {Directive, forwardRef, Input} from '@angular/core'; import {AbstractTuiController, tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export const TUI_TEXTFIELD_CUSTOM_CONTENT = tuiCreateTokenFromFactory( () => new TuiTextfieldCustomContentDirective(), diff --git a/projects/core/directives/textfield-controller/textfield-icon-left.directive.ts b/projects/core/directives/textfield-controller/textfield-icon-left.directive.ts index 8e802add2b52..bf4e89e69cab 100644 --- a/projects/core/directives/textfield-controller/textfield-icon-left.directive.ts +++ b/projects/core/directives/textfield-controller/textfield-icon-left.directive.ts @@ -1,11 +1,11 @@ import {Directive, forwardRef, Input} from '@angular/core'; import { AbstractTuiController, - TuiContext, + type TuiContext, tuiCreateTokenFromFactory, } from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export const TUI_TEXTFIELD_ICON_LEFT = tuiCreateTokenFromFactory( () => new TuiTextfieldIconLeftDirective(), diff --git a/projects/core/directives/textfield-controller/textfield-icon.directive.ts b/projects/core/directives/textfield-controller/textfield-icon.directive.ts index 9f541463dba9..c2b7a43001f0 100644 --- a/projects/core/directives/textfield-controller/textfield-icon.directive.ts +++ b/projects/core/directives/textfield-controller/textfield-icon.directive.ts @@ -1,11 +1,11 @@ import {Directive, forwardRef, Input} from '@angular/core'; import { AbstractTuiController, - TuiContext, + type TuiContext, tuiCreateTokenFromFactory, } from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export const TUI_TEXTFIELD_ICON = tuiCreateTokenFromFactory( () => new TuiTextfieldIconDirective(), diff --git a/projects/core/directives/textfield-controller/textfield-size.directive.ts b/projects/core/directives/textfield-controller/textfield-size.directive.ts index c50ccd6833ce..92a01c70028f 100644 --- a/projects/core/directives/textfield-controller/textfield-size.directive.ts +++ b/projects/core/directives/textfield-controller/textfield-size.directive.ts @@ -1,6 +1,6 @@ import {Directive, forwardRef, Input} from '@angular/core'; import {AbstractTuiController, tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types'; export const TUI_TEXTFIELD_SIZE = tuiCreateTokenFromFactory( () => new TuiTextfieldSizeDirective(), diff --git a/projects/core/directives/textfield-controller/textfield.controller.ts b/projects/core/directives/textfield-controller/textfield.controller.ts index 16387021bd6a..6182054472f6 100644 --- a/projects/core/directives/textfield-controller/textfield.controller.ts +++ b/projects/core/directives/textfield-controller/textfield.controller.ts @@ -1,19 +1,19 @@ -import {TuiContext} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {Observable} from 'rxjs'; +import {type TuiContext} from '@taiga-ui/cdk'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Observable} from 'rxjs'; -import {TuiTextfieldOptions} from './textfield.options'; -import {TuiTextfieldAppearanceDirective} from './textfield-appearance.directive'; -import {TuiTextfieldCleanerDirective} from './textfield-cleaner.directive'; -import {TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive'; -import {TuiTextfieldFillerDirective} from './textfield-filler.directive'; -import {TuiTextfieldIconDirective} from './textfield-icon.directive'; -import {TuiTextfieldIconLeftDirective} from './textfield-icon-left.directive'; -import {TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive'; -import {TuiTextfieldPostfixDirective} from './textfield-postfix.directive'; -import {TuiTextfieldPrefixDirective} from './textfield-prefix.directive'; -import {TuiTextfieldSizeDirective} from './textfield-size.directive'; +import {type TuiTextfieldOptions} from './textfield.options'; +import {type TuiTextfieldAppearanceDirective} from './textfield-appearance.directive'; +import {type TuiTextfieldCleanerDirective} from './textfield-cleaner.directive'; +import {type TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive'; +import {type TuiTextfieldFillerDirective} from './textfield-filler.directive'; +import {type TuiTextfieldIconDirective} from './textfield-icon.directive'; +import {type TuiTextfieldIconLeftDirective} from './textfield-icon-left.directive'; +import {type TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive'; +import {type TuiTextfieldPostfixDirective} from './textfield-postfix.directive'; +import {type TuiTextfieldPrefixDirective} from './textfield-prefix.directive'; +import {type TuiTextfieldSizeDirective} from './textfield-size.directive'; export class TuiTextfieldController { constructor( diff --git a/projects/core/directives/textfield-controller/textfield.options.ts b/projects/core/directives/textfield-controller/textfield.options.ts index b323ce67739a..0dc1b1035870 100644 --- a/projects/core/directives/textfield-controller/textfield.options.ts +++ b/projects/core/directives/textfield-controller/textfield.options.ts @@ -1,7 +1,7 @@ -import {Provider} from '@angular/core'; -import {TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Provider} from '@angular/core'; +import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; /** * TODO: replace with TUI_COMMON_ICONS and drop hintOnDisabled, switching it to true in v.4 diff --git a/projects/core/directives/wrapper/wrapper.directive.ts b/projects/core/directives/wrapper/wrapper.directive.ts index 97897ac561bb..1c547b1d4a58 100644 --- a/projects/core/directives/wrapper/wrapper.directive.ts +++ b/projects/core/directives/wrapper/wrapper.directive.ts @@ -2,8 +2,8 @@ import {Directive, HostBinding, inject, Input} from '@angular/core'; import {TuiInteractiveState} from '@taiga-ui/core/enums'; import {MODE_PROVIDER} from '@taiga-ui/core/providers'; import {TUI_MODE} from '@taiga-ui/core/tokens'; -import {TuiBrightness} from '@taiga-ui/core/types'; -import {Observable} from 'rxjs'; +import {type TuiBrightness} from '@taiga-ui/core/types'; +import {type Observable} from 'rxjs'; @Directive({ selector: '[tuiWrapper]', diff --git a/projects/core/interfaces/data-list-host.ts b/projects/core/interfaces/data-list-host.ts index e297690159bd..f5b5db8fcc9f 100644 --- a/projects/core/interfaces/data-list-host.ts +++ b/projects/core/interfaces/data-list-host.ts @@ -1,4 +1,4 @@ -import {TuiIdentityMatcher, TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiIdentityMatcher, type TuiStringHandler} from '@taiga-ui/cdk'; // TODO: Consider refactoring checkOption, it is only needed in ComboBox export interface TuiDataListHost { diff --git a/projects/core/interfaces/number-format-settings.ts b/projects/core/interfaces/number-format-settings.ts index 6dbacf98b25e..b258eab53251 100644 --- a/projects/core/interfaces/number-format-settings.ts +++ b/projects/core/interfaces/number-format-settings.ts @@ -1,5 +1,5 @@ -import {TuiRounding} from '@taiga-ui/cdk'; -import {TuiDecimal, TuiDecimalSymbol} from '@taiga-ui/core/types'; +import {type TuiRounding} from '@taiga-ui/cdk'; +import {type TuiDecimal, type TuiDecimalSymbol} from '@taiga-ui/core/types'; /** * Formatting configuration for displayed numbers diff --git a/projects/core/interfaces/portal-item.ts b/projects/core/interfaces/portal-item.ts index 93dbbc89e254..8093532aa721 100644 --- a/projects/core/interfaces/portal-item.ts +++ b/projects/core/interfaces/portal-item.ts @@ -1,5 +1,8 @@ -import {TuiActiveZoneDirective} from '@taiga-ui/cdk'; -import {PolymorpheusComponent, PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiActiveZoneDirective} from '@taiga-ui/cdk'; +import { + type PolymorpheusComponent, + type PolymorpheusContent, +} from '@tinkoff/ng-polymorpheus'; export interface TuiPortalItem { readonly activeZone?: TuiActiveZoneDirective | null; diff --git a/projects/core/interfaces/value-content-context.ts b/projects/core/interfaces/value-content-context.ts index 6f51ffe315ad..6cd91cb47ca1 100644 --- a/projects/core/interfaces/value-content-context.ts +++ b/projects/core/interfaces/value-content-context.ts @@ -1,4 +1,4 @@ -import {TuiContext} from '@taiga-ui/cdk'; +import {type TuiContext} from '@taiga-ui/cdk'; export interface TuiValueContentContext extends TuiContext { active: boolean; diff --git a/projects/core/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.ts b/projects/core/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.ts index fbd897615ad2..b974f72f974c 100644 --- a/projects/core/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.ts +++ b/projects/core/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.ts @@ -9,10 +9,10 @@ import { TUI_FIRST_DAY, TUI_LAST_DAY, TuiMonth, - TuiMonthLike, - TuiYear, + type TuiMonthLike, + type TuiYear, } from '@taiga-ui/cdk'; -import {TuiWithOptionalMinMax} from '@taiga-ui/core/interfaces'; +import {type TuiWithOptionalMinMax} from '@taiga-ui/core/interfaces'; @Component({ selector: 'tui-primitive-year-month-pagination', diff --git a/projects/core/internal/primitive-year-month-pagination/test/primitive-year-month-pagination.component.spec.ts b/projects/core/internal/primitive-year-month-pagination/test/primitive-year-month-pagination.component.spec.ts index 34306f9ff59f..d877e26ae729 100644 --- a/projects/core/internal/primitive-year-month-pagination/test/primitive-year-month-pagination.component.spec.ts +++ b/projects/core/internal/primitive-year-month-pagination/test/primitive-year-month-pagination.component.spec.ts @@ -1,6 +1,6 @@ -import {Component, DebugElement, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; -import {TuiMonth, TuiYear} from '@taiga-ui/cdk'; +import {Component, type DebugElement, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import {TuiMonth, type TuiYear} from '@taiga-ui/cdk'; import {TuiPageObject} from '@taiga-ui/testing'; import {TuiPrimitiveYearMonthPaginationComponent} from '../primitive-year-month-pagination.component'; diff --git a/projects/core/internal/svg-defs-host/svg-defs-host.component.ts b/projects/core/internal/svg-defs-host/svg-defs-host.component.ts index 4e93142170c0..f94cc6e3f8e2 100644 --- a/projects/core/internal/svg-defs-host/svg-defs-host.component.ts +++ b/projects/core/internal/svg-defs-host/svg-defs-host.component.ts @@ -4,10 +4,10 @@ import { ChangeDetectorRef, Component, inject, - OnInit, + type OnInit, PLATFORM_ID, } from '@angular/core'; -import {SafeHtml} from '@angular/platform-browser'; +import {type SafeHtml} from '@angular/platform-browser'; import {TuiDestroyService} from '@taiga-ui/cdk'; import {TuiSvgService} from '@taiga-ui/core/services'; import {takeUntil} from 'rxjs'; diff --git a/projects/core/observables/smart-search.ts b/projects/core/observables/smart-search.ts index 6bcc6877ddf6..d71494be65af 100644 --- a/projects/core/observables/smart-search.ts +++ b/projects/core/observables/smart-search.ts @@ -2,8 +2,8 @@ import {EMPTY_ARRAY} from '@taiga-ui/cdk'; import { debounceTime, distinctUntilChanged, - Observable, - OperatorFunction, + type Observable, + type OperatorFunction, scan, startWith, switchMap, diff --git a/projects/core/observables/test/smart-search.spec.ts b/projects/core/observables/test/smart-search.spec.ts index ceb5b0aaafe1..9eb969c133f3 100644 --- a/projects/core/observables/test/smart-search.spec.ts +++ b/projects/core/observables/test/smart-search.spec.ts @@ -1,5 +1,5 @@ import {tuiSmartSearch} from '@taiga-ui/core'; -import {from, Observable, of, skip, take} from 'rxjs'; +import {from, type Observable, of, skip, take} from 'rxjs'; describe('tuiSmartSearch', () => { let source: Observable; diff --git a/projects/core/observables/zoneful-map.ts b/projects/core/observables/zoneful-map.ts index 0b913af563af..77da80ac06d1 100644 --- a/projects/core/observables/zoneful-map.ts +++ b/projects/core/observables/zoneful-map.ts @@ -1,6 +1,6 @@ -import {NgZone} from '@angular/core'; +import {type NgZone} from '@angular/core'; import {tuiZonefull} from '@taiga-ui/cdk'; -import {distinctUntilChanged, map, OperatorFunction, pipe} from 'rxjs'; +import {distinctUntilChanged, map, type OperatorFunction, pipe} from 'rxjs'; /** * Works like regular map + distinctUntilChanged diff --git a/projects/core/pipes/calendar-sheet/calendar-sheet.pipe.ts b/projects/core/pipes/calendar-sheet/calendar-sheet.pipe.ts index adf7b13720f9..56426cff7f67 100644 --- a/projects/core/pipes/calendar-sheet/calendar-sheet.pipe.ts +++ b/projects/core/pipes/calendar-sheet/calendar-sheet.pipe.ts @@ -1,5 +1,5 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; -import {DAYS_IN_WEEK, TuiDay, TuiMonth} from '@taiga-ui/cdk'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; +import {DAYS_IN_WEEK, type TuiDay, type TuiMonth} from '@taiga-ui/cdk'; import {TUI_FIRST_DAY_OF_WEEK} from '@taiga-ui/core/tokens'; import {getDayFromMonthRowCol} from './utils'; diff --git a/projects/core/pipes/calendar-sheet/utils.ts b/projects/core/pipes/calendar-sheet/utils.ts index 9ba76ff5af2c..75e3da568390 100644 --- a/projects/core/pipes/calendar-sheet/utils.ts +++ b/projects/core/pipes/calendar-sheet/utils.ts @@ -3,9 +3,9 @@ import { DAYS_IN_WEEK, tuiAssert, TuiDay, - TuiDayOfWeek, + type TuiDayOfWeek, tuiInRange, - TuiMonth, + type TuiMonth, } from '@taiga-ui/cdk'; /** diff --git a/projects/core/pipes/flag/flag.pipe.ts b/projects/core/pipes/flag/flag.pipe.ts index 2d327ed6ccb8..dbd83a74593d 100644 --- a/projects/core/pipes/flag/flag.pipe.ts +++ b/projects/core/pipes/flag/flag.pipe.ts @@ -1,4 +1,4 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; import {TUI_SVG_OPTIONS} from '@taiga-ui/core/components/svg'; import {TUI_CACHE_BUSTING_PAYLOAD} from '@taiga-ui/core/constants'; import {TuiCountryIsoCode} from '@taiga-ui/i18n'; diff --git a/projects/core/pipes/format-date/format-date.pipe.ts b/projects/core/pipes/format-date/format-date.pipe.ts index cb36703805f1..3640d36bec4e 100644 --- a/projects/core/pipes/format-date/format-date.pipe.ts +++ b/projects/core/pipes/format-date/format-date.pipe.ts @@ -1,6 +1,6 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; import {TuiFormatDateService} from '@taiga-ui/core/services'; -import {Observable} from 'rxjs'; +import {type Observable} from 'rxjs'; @Pipe({ name: 'tuiFormatDate', diff --git a/projects/core/pipes/format-number/format-number.pipe.ts b/projects/core/pipes/format-number/format-number.pipe.ts index 14885c1e40f6..a2c8cb09bdc1 100644 --- a/projects/core/pipes/format-number/format-number.pipe.ts +++ b/projects/core/pipes/format-number/format-number.pipe.ts @@ -1,8 +1,8 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; -import {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; +import {type TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; import {TUI_NUMBER_FORMAT} from '@taiga-ui/core/tokens'; import {tuiFormatNumber} from '@taiga-ui/core/utils/format'; -import {map, Observable} from 'rxjs'; +import {map, type Observable} from 'rxjs'; @Pipe({name: 'tuiFormatNumber'}) export class TuiFormatNumberPipe implements PipeTransform { diff --git a/projects/core/pipes/format-phone/format-phone.pipe.ts b/projects/core/pipes/format-phone/format-phone.pipe.ts index d8f2b1a50e7f..5bd4917335bb 100644 --- a/projects/core/pipes/format-phone/format-phone.pipe.ts +++ b/projects/core/pipes/format-phone/format-phone.pipe.ts @@ -1,5 +1,5 @@ /// -import {Pipe, PipeTransform} from '@angular/core'; +import {Pipe, type PipeTransform} from '@angular/core'; import {CHAR_PLUS, tuiAssert} from '@taiga-ui/cdk'; import {tuiFormatPhone} from '@taiga-ui/core/utils/format'; diff --git a/projects/core/pipes/month/month.pipe.ts b/projects/core/pipes/month/month.pipe.ts index 0570eb0bcf2c..6993808dddd3 100644 --- a/projects/core/pipes/month/month.pipe.ts +++ b/projects/core/pipes/month/month.pipe.ts @@ -1,7 +1,7 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; -import {TuiMonth} from '@taiga-ui/cdk'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; +import {type TuiMonth} from '@taiga-ui/cdk'; import {TUI_MONTHS} from '@taiga-ui/core/tokens'; -import {map, Observable} from 'rxjs'; +import {map, type Observable} from 'rxjs'; @Pipe({name: 'tuiMonth'}) export class TuiMonthPipe implements PipeTransform { diff --git a/projects/core/pipes/order-week-days/order-week-days.pipe.ts b/projects/core/pipes/order-week-days/order-week-days.pipe.ts index 675832c4bcc4..06e42bec7661 100644 --- a/projects/core/pipes/order-week-days/order-week-days.pipe.ts +++ b/projects/core/pipes/order-week-days/order-week-days.pipe.ts @@ -1,6 +1,6 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; import {TUI_FIRST_DAY_OF_WEEK} from '@taiga-ui/core/tokens'; -import {map, Observable} from 'rxjs'; +import {map, type Observable} from 'rxjs'; type WeekDays = [T, T, T, T, T, T, T]; diff --git a/projects/core/providers/is-mobile-resolution.provider.ts b/projects/core/providers/is-mobile-resolution.provider.ts index 5f1e8e260705..0baf3ece222b 100644 --- a/projects/core/providers/is-mobile-resolution.provider.ts +++ b/projects/core/providers/is-mobile-resolution.provider.ts @@ -1,6 +1,6 @@ -import {ElementRef, Provider, SkipSelf} from '@angular/core'; +import {ElementRef, type Provider, SkipSelf} from '@angular/core'; import {TUI_IS_MOBILE_RES} from '@taiga-ui/core/tokens'; -import {Observable} from 'rxjs'; +import {type Observable} from 'rxjs'; /** * @deprecated: drop in v4.0 diff --git a/projects/core/providers/mode.provider.ts b/projects/core/providers/mode.provider.ts index bc491e42e724..fd16bd32e6fa 100644 --- a/projects/core/providers/mode.provider.ts +++ b/projects/core/providers/mode.provider.ts @@ -1,8 +1,8 @@ -import {ElementRef, Optional, Provider} from '@angular/core'; +import {ElementRef, Optional, type Provider} from '@angular/core'; import {TuiModeDirective} from '@taiga-ui/core/directives/mode'; import {TUI_MODE} from '@taiga-ui/core/tokens'; -import {TuiBrightness} from '@taiga-ui/core/types'; -import {map, Observable, of, startWith} from 'rxjs'; +import {type TuiBrightness} from '@taiga-ui/core/types'; +import {map, type Observable, of, startWith} from 'rxjs'; export const MODE_PROVIDER: Provider = { provide: TUI_MODE, diff --git a/projects/core/providers/watched-controller-provider-factory.ts b/projects/core/providers/watched-controller-provider-factory.ts index 86fa309cf841..221d012eee05 100644 --- a/projects/core/providers/watched-controller-provider-factory.ts +++ b/projects/core/providers/watched-controller-provider-factory.ts @@ -1,6 +1,6 @@ -import {ChangeDetectorRef} from '@angular/core'; -import {AbstractTuiController, tuiWatch} from '@taiga-ui/cdk'; -import {Observable, takeUntil} from 'rxjs'; +import {type ChangeDetectorRef} from '@angular/core'; +import {type AbstractTuiController, tuiWatch} from '@taiga-ui/cdk'; +import {type Observable, takeUntil} from 'rxjs'; export function tuiWatchedControllerFactory( controller: AbstractTuiController, diff --git a/projects/core/services/breakpoint.service.ts b/projects/core/services/breakpoint.service.ts index 488964de6a31..cb91d7df23ee 100644 --- a/projects/core/services/breakpoint.service.ts +++ b/projects/core/services/breakpoint.service.ts @@ -1,6 +1,6 @@ import {inject, Injectable, NgZone} from '@angular/core'; import {TUI_WINDOW_SIZE, tuiZoneOptimized} from '@taiga-ui/cdk'; -import {TuiMedia} from '@taiga-ui/core/interfaces'; +import {type TuiMedia} from '@taiga-ui/core/interfaces'; import {TUI_MEDIA} from '@taiga-ui/core/tokens'; import {distinctUntilChanged, map, Observable, shareReplay} from 'rxjs'; diff --git a/projects/core/services/format-date.service.ts b/projects/core/services/format-date.service.ts index d83b87d6bc66..035575dec22d 100644 --- a/projects/core/services/format-date.service.ts +++ b/projects/core/services/format-date.service.ts @@ -1,5 +1,5 @@ import {inject, Injectable, LOCALE_ID} from '@angular/core'; -import {Observable, of} from 'rxjs'; +import {type Observable, of} from 'rxjs'; @Injectable({ providedIn: 'root', diff --git a/projects/core/services/hint.service.ts b/projects/core/services/hint.service.ts index 28df1e0cbee3..eb96853d821d 100644 --- a/projects/core/services/hint.service.ts +++ b/projects/core/services/hint.service.ts @@ -1,5 +1,5 @@ import {Injectable} from '@angular/core'; -import {TuiPortalItem} from '@taiga-ui/core/interfaces'; +import {type TuiPortalItem} from '@taiga-ui/core/interfaces'; import {BehaviorSubject} from 'rxjs'; /** diff --git a/projects/core/services/position.service.ts b/projects/core/services/position.service.ts index bce95dabea68..e8a50b3b0678 100644 --- a/projects/core/services/position.service.ts +++ b/projects/core/services/position.service.ts @@ -2,7 +2,7 @@ import {ElementRef, inject, Injectable, NgZone} from '@angular/core'; import {ANIMATION_FRAME} from '@ng-web-apis/common'; import {EMPTY_CLIENT_RECT, tuiZonefree} from '@taiga-ui/cdk'; import {TuiPositionAccessor} from '@taiga-ui/core/abstract'; -import {TuiPoint} from '@taiga-ui/core/types'; +import {type TuiPoint} from '@taiga-ui/core/types'; import {finalize, map, Observable} from 'rxjs'; @Injectable() diff --git a/projects/core/services/svg.service.ts b/projects/core/services/svg.service.ts index b4163e8b5654..d85846ce301a 100644 --- a/projects/core/services/svg.service.ts +++ b/projects/core/services/svg.service.ts @@ -1,6 +1,6 @@ /// import {inject, Injectable, SecurityContext} from '@angular/core'; -import {DomSanitizer, SafeHtml} from '@angular/platform-browser'; +import {DomSanitizer, type SafeHtml} from '@angular/platform-browser'; import {tuiAssert} from '@taiga-ui/cdk'; import {TUI_ICONS, TUI_SANITIZER} from '@taiga-ui/core/tokens'; import {tuiProcessIcon} from '@taiga-ui/core/utils/dom'; diff --git a/projects/core/services/visual-viewport.service.ts b/projects/core/services/visual-viewport.service.ts index 6dc72d1b4ff8..72d960608e4e 100644 --- a/projects/core/services/visual-viewport.service.ts +++ b/projects/core/services/visual-viewport.service.ts @@ -1,7 +1,7 @@ import {inject, Injectable} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; import {TUI_IS_WEBKIT} from '@taiga-ui/cdk'; -import {TuiPoint} from '@taiga-ui/core/types'; +import {type TuiPoint} from '@taiga-ui/core/types'; @Injectable({ providedIn: 'root', diff --git a/projects/core/tokens/common-icon.ts b/projects/core/tokens/common-icon.ts index 574578b2c3be..bdf6fd024502 100644 --- a/projects/core/tokens/common-icon.ts +++ b/projects/core/tokens/common-icon.ts @@ -1,4 +1,4 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; const COMMON_ICONS: TuiCommonIcons = { diff --git a/projects/core/tokens/data-list-accessor.ts b/projects/core/tokens/data-list-accessor.ts index 55752842e471..b59de5459390 100644 --- a/projects/core/tokens/data-list-accessor.ts +++ b/projects/core/tokens/data-list-accessor.ts @@ -1,5 +1,5 @@ -import {InjectionToken, Provider, Type} from '@angular/core'; -import {TuiDataListAccessor} from '@taiga-ui/core/interfaces'; +import {InjectionToken, type Provider, type Type} from '@angular/core'; +import {type TuiDataListAccessor} from '@taiga-ui/core/interfaces'; /** * Accessor for data-list options diff --git a/projects/core/tokens/data-list-host.ts b/projects/core/tokens/data-list-host.ts index 3237b4cd3acc..e8c7723895fb 100644 --- a/projects/core/tokens/data-list-host.ts +++ b/projects/core/tokens/data-list-host.ts @@ -1,5 +1,5 @@ -import {InjectionToken, Provider, Type} from '@angular/core'; -import {TuiDataListHost} from '@taiga-ui/core/interfaces'; +import {InjectionToken, type Provider, type Type} from '@angular/core'; +import {type TuiDataListHost} from '@taiga-ui/core/interfaces'; /** * DataList controller diff --git a/projects/core/tokens/day-type-handler.ts b/projects/core/tokens/day-type-handler.ts index 51bc51bb0349..73e03afac021 100644 --- a/projects/core/tokens/day-type-handler.ts +++ b/projects/core/tokens/day-type-handler.ts @@ -1,4 +1,4 @@ -import {tuiCreateToken, TuiDay, TuiHandler} from '@taiga-ui/cdk'; +import {tuiCreateToken, type TuiDay, type TuiHandler} from '@taiga-ui/cdk'; /** * Token for adding data-type attribute to calendar cell diff --git a/projects/core/tokens/element-ref.ts b/projects/core/tokens/element-ref.ts index 4f10865520d0..e7555f7d51b9 100644 --- a/projects/core/tokens/element-ref.ts +++ b/projects/core/tokens/element-ref.ts @@ -1,4 +1,4 @@ -import {ElementRef, InjectionToken} from '@angular/core'; +import {type ElementRef, InjectionToken} from '@angular/core'; /** * ElementRef when you cannot use @Input for single time injection diff --git a/projects/core/tokens/icon-place.ts b/projects/core/tokens/icon-place.ts index 333f2f7cf0a4..bd875952c44d 100644 --- a/projects/core/tokens/icon-place.ts +++ b/projects/core/tokens/icon-place.ts @@ -1,4 +1,4 @@ -import {InjectionToken} from '@angular/core'; +import {type InjectionToken} from '@angular/core'; import {tuiCreateToken} from '@taiga-ui/cdk'; export const TUI_DEFAULT_ICONS_PLACE = 'assets/taiga-ui/icons' as const; diff --git a/projects/core/tokens/icon-resolver.ts b/projects/core/tokens/icon-resolver.ts index de3d2bbc8d82..6a7a918ae1d2 100644 --- a/projects/core/tokens/icon-resolver.ts +++ b/projects/core/tokens/icon-resolver.ts @@ -1,5 +1,5 @@ -import {Provider} from '@angular/core'; -import {tuiCreateTokenFromFactory, TuiStringHandler} from '@taiga-ui/cdk'; +import {type Provider} from '@angular/core'; +import {tuiCreateTokenFromFactory, type TuiStringHandler} from '@taiga-ui/cdk'; export const TUI_ICON_RESOLVER = tuiCreateTokenFromFactory>( // TODO: Remove backwards compatibility in 4.0 diff --git a/projects/core/tokens/media.ts b/projects/core/tokens/media.ts index 60af2423db3f..8038de687b9c 100644 --- a/projects/core/tokens/media.ts +++ b/projects/core/tokens/media.ts @@ -1,5 +1,5 @@ import {tuiCreateToken} from '@taiga-ui/cdk'; -import {TuiMedia} from '@taiga-ui/core/interfaces'; +import {type TuiMedia} from '@taiga-ui/core/interfaces'; /** * Token for media constant diff --git a/projects/core/tokens/mode.ts b/projects/core/tokens/mode.ts index f2f8d9962571..5942f3be0a28 100644 --- a/projects/core/tokens/mode.ts +++ b/projects/core/tokens/mode.ts @@ -1,6 +1,6 @@ import {InjectionToken} from '@angular/core'; -import {TuiBrightness} from '@taiga-ui/core/types'; -import {Observable} from 'rxjs'; +import {type TuiBrightness} from '@taiga-ui/core/types'; +import {type Observable} from 'rxjs'; /** * Mode stream for private providers diff --git a/projects/core/tokens/number-format.ts b/projects/core/tokens/number-format.ts index ecd6a5789b1d..20005f5e5848 100644 --- a/projects/core/tokens/number-format.ts +++ b/projects/core/tokens/number-format.ts @@ -1,8 +1,8 @@ -import {InjectionToken, Optional, Provider, SkipSelf} from '@angular/core'; +import {type InjectionToken, Optional, type Provider, SkipSelf} from '@angular/core'; import {tuiCreateToken} from '@taiga-ui/cdk'; import {TUI_DEFAULT_NUMBER_FORMAT} from '@taiga-ui/core/constants'; -import {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; -import {map, Observable, of} from 'rxjs'; +import {type TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; +import {map, type Observable, of} from 'rxjs'; /** * Formatting configuration for displayed numbers diff --git a/projects/core/tokens/option-content.ts b/projects/core/tokens/option-content.ts index 01b9eb84dcb7..ff54e7d6caa3 100644 --- a/projects/core/tokens/option-content.ts +++ b/projects/core/tokens/option-content.ts @@ -1,6 +1,6 @@ -import {InjectionToken, Provider, TemplateRef} from '@angular/core'; -import {TuiContext} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {InjectionToken, type Provider, type TemplateRef} from '@angular/core'; +import {type TuiContext} from '@taiga-ui/cdk'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; /** * Content for tuiOption component diff --git a/projects/core/tokens/sanitizer.ts b/projects/core/tokens/sanitizer.ts index f78143dc8436..84aa18a586f5 100644 --- a/projects/core/tokens/sanitizer.ts +++ b/projects/core/tokens/sanitizer.ts @@ -1,4 +1,4 @@ -import {InjectionToken, Sanitizer} from '@angular/core'; +import {InjectionToken, type Sanitizer} from '@angular/core'; /** * A custom Sanitizer to sanitize source before inlining diff --git a/projects/core/tokens/selection-stream.ts b/projects/core/tokens/selection-stream.ts index 2b21d96af423..ae82d91ed89e 100644 --- a/projects/core/tokens/selection-stream.ts +++ b/projects/core/tokens/selection-stream.ts @@ -1,7 +1,7 @@ import {DOCUMENT} from '@angular/common'; import {inject} from '@angular/core'; import {tuiCreateTokenFromFactory, tuiTypedFromEvent} from '@taiga-ui/cdk'; -import {merge, Observable, share, switchMap, takeUntil} from 'rxjs'; +import {merge, type Observable, share, switchMap, takeUntil} from 'rxjs'; /** * A stream of possible selection changes */ diff --git a/projects/core/tokens/spin-icons.ts b/projects/core/tokens/spin-icons.ts index ec92ca6e4795..0f4d0e4fb658 100644 --- a/projects/core/tokens/spin-icons.ts +++ b/projects/core/tokens/spin-icons.ts @@ -1,5 +1,5 @@ import {tuiCreateToken} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiSpinIcons { readonly decrement: PolymorpheusContent; diff --git a/projects/core/tokens/svg-content-processor.ts b/projects/core/tokens/svg-content-processor.ts index 4d47fc659647..275c569a2b76 100644 --- a/projects/core/tokens/svg-content-processor.ts +++ b/projects/core/tokens/svg-content-processor.ts @@ -1,7 +1,7 @@ import { tuiCreateToken, - TuiHandler, - TuiSafeHtml, + type TuiHandler, + type TuiSafeHtml, tuiSvgLinearGradientProcessor, } from '@taiga-ui/cdk'; diff --git a/projects/core/tokens/svg-src-processor.ts b/projects/core/tokens/svg-src-processor.ts index 606b7fce252e..d3d80f009746 100644 --- a/projects/core/tokens/svg-src-processor.ts +++ b/projects/core/tokens/svg-src-processor.ts @@ -1,4 +1,4 @@ -import {tuiCreateToken, TuiHandler, TuiSafeHtml} from '@taiga-ui/cdk'; +import {tuiCreateToken, type TuiHandler, type TuiSafeHtml} from '@taiga-ui/cdk'; import {identity} from 'rxjs'; /** diff --git a/projects/core/tokens/textfield-host.ts b/projects/core/tokens/textfield-host.ts index 3648742a7a15..80e081acd911 100644 --- a/projects/core/tokens/textfield-host.ts +++ b/projects/core/tokens/textfield-host.ts @@ -1,5 +1,5 @@ -import {InjectionToken, Provider, Type} from '@angular/core'; -import {TuiTextfieldHost} from '@taiga-ui/core/interfaces'; +import {InjectionToken, type Provider, type Type} from '@angular/core'; +import {type TuiTextfieldHost} from '@taiga-ui/core/interfaces'; /** * An interface to communicate with textfield based controls diff --git a/projects/core/tokens/value-accessor.ts b/projects/core/tokens/value-accessor.ts index 1bb86683c2a2..774f62475b8b 100644 --- a/projects/core/tokens/value-accessor.ts +++ b/projects/core/tokens/value-accessor.ts @@ -1,5 +1,5 @@ import {InjectionToken} from '@angular/core'; -import {ControlValueAccessor} from '@angular/forms'; +import {type ControlValueAccessor} from '@angular/forms'; /** * Buffer token to pass NG_VALUE_ACCESSOR to a different Injector diff --git a/projects/core/tokens/viewport.ts b/projects/core/tokens/viewport.ts index 9d52b3c743fe..22e320e34d28 100644 --- a/projects/core/tokens/viewport.ts +++ b/projects/core/tokens/viewport.ts @@ -1,7 +1,7 @@ -import {inject, Provider, Type} from '@angular/core'; +import {inject, type Provider, type Type} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; -import {TuiRectAccessor} from '@taiga-ui/core/abstract'; +import {type TuiRectAccessor} from '@taiga-ui/core/abstract'; /** * Viewport accessor diff --git a/projects/core/types/marker-handler.ts b/projects/core/types/marker-handler.ts index 2259b8639038..34704fb294af 100644 --- a/projects/core/types/marker-handler.ts +++ b/projects/core/types/marker-handler.ts @@ -1,3 +1,3 @@ -import {TuiDay, TuiHandler} from '@taiga-ui/cdk'; +import {type TuiDay, type TuiHandler} from '@taiga-ui/cdk'; export type TuiMarkerHandler = TuiHandler; diff --git a/projects/core/utils/dom/tests/get-viewport.spec.ts b/projects/core/utils/dom/tests/get-viewport.spec.ts index 33eea45ba930..2b4e2e97931f 100644 --- a/projects/core/utils/dom/tests/get-viewport.spec.ts +++ b/projects/core/utils/dom/tests/get-viewport.spec.ts @@ -2,7 +2,7 @@ import { tuiGetViewportHeight, tuiGetViewportWidth, tuiIsMobile, - TuiMedia, + type TuiMedia, } from '@taiga-ui/core'; import {tuiTestingViewport} from '@taiga-ui/testing'; diff --git a/projects/core/utils/format/format-number.ts b/projects/core/utils/format/format-number.ts index b2075defd1c2..56626c9a84e6 100644 --- a/projects/core/utils/format/format-number.ts +++ b/projects/core/utils/format/format-number.ts @@ -1,6 +1,6 @@ import {CHAR_HYPHEN, tuiRoundWith} from '@taiga-ui/cdk'; import {TUI_DEFAULT_NUMBER_FORMAT} from '@taiga-ui/core/constants'; -import {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; +import {type TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; import {tuiGetFractionPartPadded} from './get-fractional-part-padded'; diff --git a/projects/core/utils/format/other-decimal-symbol.ts b/projects/core/utils/format/other-decimal-symbol.ts index 813274c0622e..566b87656937 100644 --- a/projects/core/utils/format/other-decimal-symbol.ts +++ b/projects/core/utils/format/other-decimal-symbol.ts @@ -1,4 +1,4 @@ -import {TuiDecimalSymbol} from '@taiga-ui/core/types'; +import {type TuiDecimalSymbol} from '@taiga-ui/core/types'; export function tuiOtherDecimalSymbol(symbol: TuiDecimalSymbol): TuiDecimalSymbol { return symbol === '.' ? ',' : '.'; diff --git a/projects/core/utils/miscellaneous/get-border.ts b/projects/core/utils/miscellaneous/get-border.ts index 9c1f91fb703b..de5e456816d4 100644 --- a/projects/core/utils/miscellaneous/get-border.ts +++ b/projects/core/utils/miscellaneous/get-border.ts @@ -1,4 +1,4 @@ -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types'; const ITEM_SIZE = 1.5; const CONTENT_SIZE = 2.5; diff --git a/projects/core/utils/miscellaneous/icons-path-factory.ts b/projects/core/utils/miscellaneous/icons-path-factory.ts index 305c15f717a4..4f2029d66d6a 100644 --- a/projects/core/utils/miscellaneous/icons-path-factory.ts +++ b/projects/core/utils/miscellaneous/icons-path-factory.ts @@ -1,4 +1,4 @@ -import {TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiStringHandler} from '@taiga-ui/cdk'; import {DEFAULT_ICONS_PATH, TUI_CACHE_BUSTING_PAYLOAD} from '@taiga-ui/core/constants'; export function tuiIconsPathFactory(staticPath: string): TuiStringHandler { diff --git a/projects/core/utils/miscellaneous/size-bigger.ts b/projects/core/utils/miscellaneous/size-bigger.ts index 40bd4fc26914..2a1a08bb30c2 100644 --- a/projects/core/utils/miscellaneous/size-bigger.ts +++ b/projects/core/utils/miscellaneous/size-bigger.ts @@ -1,4 +1,4 @@ -import {TuiSizeXXL, TuiSizeXXS} from '@taiga-ui/core/types'; +import {type TuiSizeXXL, type TuiSizeXXS} from '@taiga-ui/core/types'; const SIZES: Record = { xxs: 0, diff --git a/projects/core/utils/miscellaneous/to-animation-options.ts b/projects/core/utils/miscellaneous/to-animation-options.ts index 6f98814a94d9..f58fdba369ea 100644 --- a/projects/core/utils/miscellaneous/to-animation-options.ts +++ b/projects/core/utils/miscellaneous/to-animation-options.ts @@ -1,4 +1,4 @@ -import {AnimationOptions} from '@angular/animations'; +import {type AnimationOptions} from '@angular/animations'; export const TUI_ANIMATIONS_DEFAULT_DURATION = 300; diff --git a/projects/core/utils/mobile/is-mobile.ts b/projects/core/utils/mobile/is-mobile.ts index b10dd821e2eb..7edfaed28bec 100644 --- a/projects/core/utils/mobile/is-mobile.ts +++ b/projects/core/utils/mobile/is-mobile.ts @@ -1,4 +1,4 @@ -import {TuiMedia} from '@taiga-ui/core/interfaces'; +import {type TuiMedia} from '@taiga-ui/core/interfaces'; import {tuiGetViewportWidth} from '@taiga-ui/core/utils/dom'; export function tuiIsMobile(win: Window, {mobile}: TuiMedia): boolean { diff --git a/projects/demo-cypress/src/tests/range.cy.ts b/projects/demo-cypress/src/tests/range.cy.ts index c14c44a72aff..97e125c7f645 100644 --- a/projects/demo-cypress/src/tests/range.cy.ts +++ b/projects/demo-cypress/src/tests/range.cy.ts @@ -1,8 +1,8 @@ import {Component, ElementRef, ViewChild} from '@angular/core'; -import {ComponentFixture} from '@angular/core/testing'; +import {type ComponentFixture} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {TuiRootModule} from '@taiga-ui/core'; -import {TuiKeySteps, TuiRangeComponent, TuiRangeModule} from '@taiga-ui/kit'; +import {type TuiKeySteps, TuiRangeComponent, TuiRangeModule} from '@taiga-ui/kit'; describe('TuiRange', () => { let component: TestComponent; diff --git a/projects/demo-cypress/src/tests/swipe.cy.ts b/projects/demo-cypress/src/tests/swipe.cy.ts index 535fa77503ed..571348c7f6e9 100644 --- a/projects/demo-cypress/src/tests/swipe.cy.ts +++ b/projects/demo-cypress/src/tests/swipe.cy.ts @@ -1,5 +1,5 @@ import {Component} from '@angular/core'; -import {TuiSwipe, TuiSwipeModule} from '@taiga-ui/cdk'; +import {type TuiSwipe, TuiSwipeModule} from '@taiga-ui/cdk'; import {TuiRootModule} from '@taiga-ui/core'; describe('TuiSwipe', () => { diff --git a/projects/demo-cypress/src/tests/zoom.cy.ts b/projects/demo-cypress/src/tests/zoom.cy.ts index fc0ace8f7b21..6a1ec5f119d7 100644 --- a/projects/demo-cypress/src/tests/zoom.cy.ts +++ b/projects/demo-cypress/src/tests/zoom.cy.ts @@ -1,5 +1,5 @@ import {Component} from '@angular/core'; -import {tuiFloor, TuiZoom, TuiZoomModule} from '@taiga-ui/cdk'; +import {tuiFloor, type TuiZoom, TuiZoomModule} from '@taiga-ui/cdk'; import {TuiRootModule} from '@taiga-ui/core'; describe('TuiZoom', () => { diff --git a/projects/demo-playwright/playwright.config.ts b/projects/demo-playwright/playwright.config.ts index e0ffd0c1cfd4..2faaf7a650ef 100644 --- a/projects/demo-playwright/playwright.config.ts +++ b/projects/demo-playwright/playwright.config.ts @@ -1,5 +1,5 @@ import {defineConfig, devices} from '@playwright/test'; -import {ViewportSize} from 'playwright-core'; +import {type ViewportSize} from 'playwright-core'; import {pages as PUBLIC_PAGES} from '../demo/src/modules/app/pages'; import {tuiGetDemoPathsForE2E} from './tests/demo/get-demo-paths'; diff --git a/projects/demo-playwright/tests/addon-commerce/input-card-grouped.spec.ts b/projects/demo-playwright/tests/addon-commerce/input-card-grouped.spec.ts index 506e161b5e3c..2cd7bf742720 100644 --- a/projects/demo-playwright/tests/addon-commerce/input-card-grouped.spec.ts +++ b/projects/demo-playwright/tests/addon-commerce/input-card-grouped.spec.ts @@ -3,7 +3,7 @@ import { tuiGoto, TuiInputCardGroupedPO, } from '@demo-playwright/utils'; -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; test.describe('InputCardGrouped', () => { let documentationPage: TuiDocumentationPagePO; diff --git a/projects/demo-playwright/tests/addon-commerce/input-expire.spec.ts b/projects/demo-playwright/tests/addon-commerce/input-expire.spec.ts index 7984c74b2643..ce24bdca5274 100644 --- a/projects/demo-playwright/tests/addon-commerce/input-expire.spec.ts +++ b/projects/demo-playwright/tests/addon-commerce/input-expire.spec.ts @@ -1,5 +1,5 @@ import {TuiDocumentationPagePO, tuiGoto, TuiInputCardPO} from '@demo-playwright/utils'; -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; test.describe('InputExpire', () => { let expiryTextfield: Locator; diff --git a/projects/demo-playwright/tests/core/hint/hint.spec.ts b/projects/demo-playwright/tests/core/hint/hint.spec.ts index a598cbe3207c..d5a384da04e5 100644 --- a/projects/demo-playwright/tests/core/hint/hint.spec.ts +++ b/projects/demo-playwright/tests/core/hint/hint.spec.ts @@ -1,6 +1,6 @@ import {TuiDocumentationPagePO, tuiGoto} from '@demo-playwright/utils'; import {expect, test} from '@playwright/test'; -import {TuiHintDirection} from '@taiga-ui/core'; +import {type TuiHintDirection} from '@taiga-ui/core'; test.describe('TuiHint', () => { test('TuiHint works', async ({page}) => { diff --git a/projects/demo-playwright/tests/demo/get-demo-paths.ts b/projects/demo-playwright/tests/demo/get-demo-paths.ts index c484d4ea5f3d..330e458be0ca 100644 --- a/projects/demo-playwright/tests/demo/get-demo-paths.ts +++ b/projects/demo-playwright/tests/demo/get-demo-paths.ts @@ -1,4 +1,4 @@ -import {TuiDocPage, TuiDocPages} from '@taiga-ui/addon-doc'; +import {type TuiDocPage, type TuiDocPages} from '@taiga-ui/addon-doc'; function flatPages(pages: TuiDocPages): readonly TuiDocPage[] { return pages.reduce( diff --git a/projects/demo-playwright/tests/kit/input-date-range/input-date-range.spec.ts b/projects/demo-playwright/tests/kit/input-date-range/input-date-range.spec.ts index 878919f7bf2f..b08603c41efd 100644 --- a/projects/demo-playwright/tests/kit/input-date-range/input-date-range.spec.ts +++ b/projects/demo-playwright/tests/kit/input-date-range/input-date-range.spec.ts @@ -1,4 +1,4 @@ -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; import { CHAR_NO_BREAK_SPACE, diff --git a/projects/demo-playwright/tests/kit/input-date-time/input-date-time.spec.ts b/projects/demo-playwright/tests/kit/input-date-time/input-date-time.spec.ts index e250213159a0..4aeb7d984d28 100644 --- a/projects/demo-playwright/tests/kit/input-date-time/input-date-time.spec.ts +++ b/projects/demo-playwright/tests/kit/input-date-time/input-date-time.spec.ts @@ -4,7 +4,7 @@ import { TuiInputDateTimePO, TuiSelectPO, } from '@demo-playwright/utils'; -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; test.describe('InputDateTime', () => { test.describe('API page', () => { diff --git a/projects/demo-playwright/tests/kit/input-date/input-date.spec.ts b/projects/demo-playwright/tests/kit/input-date/input-date.spec.ts index 96d85943b44e..069ae9af0fed 100644 --- a/projects/demo-playwright/tests/kit/input-date/input-date.spec.ts +++ b/projects/demo-playwright/tests/kit/input-date/input-date.spec.ts @@ -1,5 +1,5 @@ import {TuiDocumentationPagePO, tuiGoto} from '@demo-playwright/utils'; -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; import {TUI_PLAYWRIGHT_MOBILE_USER_AGENT} from '../../../playwright.options'; diff --git a/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts b/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts index e50afd859807..96f3ef2b4955 100644 --- a/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts +++ b/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts @@ -1,5 +1,5 @@ import {TuiDocumentationApiPagePO, tuiGoto} from '@demo-playwright/utils'; -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; import {join} from 'path'; test.describe('InputFiles', () => { diff --git a/projects/demo-playwright/tests/kit/input-month-range/input-month-range.spec.ts b/projects/demo-playwright/tests/kit/input-month-range/input-month-range.spec.ts index 00bc35419c52..9adfc0882921 100644 --- a/projects/demo-playwright/tests/kit/input-month-range/input-month-range.spec.ts +++ b/projects/demo-playwright/tests/kit/input-month-range/input-month-range.spec.ts @@ -3,7 +3,7 @@ import { tuiGoto, TuiInputMonthRangePO, } from '@demo-playwright/utils'; -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; test.describe('InputMonthRange', () => { test.describe('API', () => { diff --git a/projects/demo-playwright/tests/kit/input-month/input-month.spec.ts b/projects/demo-playwright/tests/kit/input-month/input-month.spec.ts index 79fb44174087..f01cc1952dca 100644 --- a/projects/demo-playwright/tests/kit/input-month/input-month.spec.ts +++ b/projects/demo-playwright/tests/kit/input-month/input-month.spec.ts @@ -1,5 +1,5 @@ import {TuiDocumentationPagePO, tuiGoto, TuiInputMonthPO} from '@demo-playwright/utils'; -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; test.describe('InputMonth', () => { test.describe('API', () => { diff --git a/projects/demo-playwright/tests/kit/input-number/input-number.spec.ts b/projects/demo-playwright/tests/kit/input-number/input-number.spec.ts index adb3a37ec419..154ecb2260eb 100644 --- a/projects/demo-playwright/tests/kit/input-number/input-number.spec.ts +++ b/projects/demo-playwright/tests/kit/input-number/input-number.spec.ts @@ -7,7 +7,7 @@ import { TuiDocumentationPagePO, tuiGoto, } from '@demo-playwright/utils'; -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; test.describe('InputNumber', () => { let example: Locator; diff --git a/projects/demo-playwright/tests/kit/input-phone/input-phone.spec.ts b/projects/demo-playwright/tests/kit/input-phone/input-phone.spec.ts index 4960da9e8de5..b63534836695 100644 --- a/projects/demo-playwright/tests/kit/input-phone/input-phone.spec.ts +++ b/projects/demo-playwright/tests/kit/input-phone/input-phone.spec.ts @@ -5,7 +5,7 @@ import { tuiGoto, TuiInputPhonePO, } from '@demo-playwright/utils'; -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; test.describe('InputPhone', () => { test.describe('API page', () => { diff --git a/projects/demo-playwright/tests/kit/input-range/input-range.spec.ts b/projects/demo-playwright/tests/kit/input-range/input-range.spec.ts index 18530722365a..5374467f8656 100644 --- a/projects/demo-playwright/tests/kit/input-range/input-range.spec.ts +++ b/projects/demo-playwright/tests/kit/input-range/input-range.spec.ts @@ -3,7 +3,7 @@ import { tuiGoto, TuiInputRangePO, } from '@demo-playwright/utils'; -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; import {TUI_PLAYWRIGHT_MOBILE_USER_AGENT} from '../../../playwright.options'; import {CHAR_MINUS} from '../../../utils/common'; diff --git a/projects/demo-playwright/tests/kit/input-time/input-time.spec.ts b/projects/demo-playwright/tests/kit/input-time/input-time.spec.ts index dc33530fe48d..252fff6a0b09 100644 --- a/projects/demo-playwright/tests/kit/input-time/input-time.spec.ts +++ b/projects/demo-playwright/tests/kit/input-time/input-time.spec.ts @@ -1,5 +1,5 @@ import {TuiDocumentationPagePO, tuiGoto, TuiInputTimePO} from '@demo-playwright/utils'; -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; const MOCK_DATE = new Date(2021, 10, 10, 15, 30, 42, 300); diff --git a/projects/demo-playwright/tests/kit/input-year/input-year.spec.ts b/projects/demo-playwright/tests/kit/input-year/input-year.spec.ts index d4701ca7e152..b517d122a94e 100644 --- a/projects/demo-playwright/tests/kit/input-year/input-year.spec.ts +++ b/projects/demo-playwright/tests/kit/input-year/input-year.spec.ts @@ -1,5 +1,5 @@ import {TuiDocumentationPagePO, tuiGoto} from '@demo-playwright/utils'; -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; test.describe('InputYear', () => { let input: Locator; diff --git a/projects/demo-playwright/tests/kit/multi-select/multi-select.spec.ts b/projects/demo-playwright/tests/kit/multi-select/multi-select.spec.ts index 3f1e4eca3eb2..064ba8242b75 100644 --- a/projects/demo-playwright/tests/kit/multi-select/multi-select.spec.ts +++ b/projects/demo-playwright/tests/kit/multi-select/multi-select.spec.ts @@ -1,5 +1,5 @@ import {TuiDocumentationPagePO, tuiGoto, TuiMultiSelectPO} from '@demo-playwright/utils'; -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; test.describe('MultiSelect', () => { test.describe('Examples', () => { diff --git a/projects/demo-playwright/tests/kit/notification/notification.spec.ts b/projects/demo-playwright/tests/kit/notification/notification.spec.ts index c5ffc30f4a36..46e74a51c894 100644 --- a/projects/demo-playwright/tests/kit/notification/notification.spec.ts +++ b/projects/demo-playwright/tests/kit/notification/notification.spec.ts @@ -1,5 +1,5 @@ import {TuiDocumentationPagePO, tuiGoto} from '@demo-playwright/utils'; -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; test.describe('Notification', () => { const viewports = generateDimensions(180, 320, 10); diff --git a/projects/demo-playwright/tests/kit/range/range.spec.ts b/projects/demo-playwright/tests/kit/range/range.spec.ts index 6ac5e4b02bd8..9b82bafcdffc 100644 --- a/projects/demo-playwright/tests/kit/range/range.spec.ts +++ b/projects/demo-playwright/tests/kit/range/range.spec.ts @@ -1,5 +1,5 @@ import {TuiDocumentationPagePO, tuiGoto, TuiRangePO} from '@demo-playwright/utils'; -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; test.describe('TuiRange', () => { test.beforeEach(async ({page}) => tuiGoto(page, '/components/range')); diff --git a/projects/demo-playwright/tests/kit/slider/slider.spec.ts b/projects/demo-playwright/tests/kit/slider/slider.spec.ts index d2ebf04bab4f..f176b286fb1a 100644 --- a/projects/demo-playwright/tests/kit/slider/slider.spec.ts +++ b/projects/demo-playwright/tests/kit/slider/slider.spec.ts @@ -1,5 +1,5 @@ import {TuiDocumentationPagePO, tuiGoto, TuiSliderPO} from '@demo-playwright/utils'; -import {expect, Locator, test} from '@playwright/test'; +import {expect, type Locator, test} from '@playwright/test'; test.describe('Slider', () => { test.use({viewport: {width: 500, height: 500}}); diff --git a/projects/demo-playwright/utils/goto.ts b/projects/demo-playwright/utils/goto.ts index eba4ebaa8dbb..193b40606800 100644 --- a/projects/demo-playwright/utils/goto.ts +++ b/projects/demo-playwright/utils/goto.ts @@ -1,4 +1,4 @@ -import {expect, Page} from '@playwright/test'; +import {expect, type Page} from '@playwright/test'; import {tuiRemoveElement} from './hide-element'; import {tuiMockDate} from './mock-date'; diff --git a/projects/demo-playwright/utils/hide-element.ts b/projects/demo-playwright/utils/hide-element.ts index 5a920ca8eba1..d7dbaa65b951 100644 --- a/projects/demo-playwright/utils/hide-element.ts +++ b/projects/demo-playwright/utils/hide-element.ts @@ -1,4 +1,4 @@ -import {Locator} from '@playwright/test'; +import {type Locator} from '@playwright/test'; export async function tuiHideElement(element: Locator): Promise { return element.evaluate(el => { diff --git a/projects/demo-playwright/utils/mock-date.ts b/projects/demo-playwright/utils/mock-date.ts index 09f34dfb0c4b..f83c8bebf7e6 100644 --- a/projects/demo-playwright/utils/mock-date.ts +++ b/projects/demo-playwright/utils/mock-date.ts @@ -1,4 +1,4 @@ -import {Page} from '@playwright/test'; +import {type Page} from '@playwright/test'; export async function tuiMockDate(page: Page, date: Date): Promise { await page.addInitScript(fakeNow => { diff --git a/projects/demo-playwright/utils/mock-images.ts b/projects/demo-playwright/utils/mock-images.ts index e2cd737d7d60..d8e8904a4d84 100644 --- a/projects/demo-playwright/utils/mock-images.ts +++ b/projects/demo-playwright/utils/mock-images.ts @@ -1,4 +1,4 @@ -import {Page} from '@playwright/test'; +import {type Page} from '@playwright/test'; const DEFAULT_MOCKS = [ { diff --git a/projects/demo-playwright/utils/page-objects/calendar.po.ts b/projects/demo-playwright/utils/page-objects/calendar.po.ts index 3747ab33422c..32a8040bd482 100644 --- a/projects/demo-playwright/utils/page-objects/calendar.po.ts +++ b/projects/demo-playwright/utils/page-objects/calendar.po.ts @@ -1,4 +1,4 @@ -import {Locator} from '@playwright/test'; +import {type Locator} from '@playwright/test'; export class TuiCalendarPO { constructor(private readonly host: Locator) {} diff --git a/projects/demo-playwright/utils/page-objects/documentation-api-page.po.ts b/projects/demo-playwright/utils/page-objects/documentation-api-page.po.ts index ea0df2e13267..c76205634f0b 100644 --- a/projects/demo-playwright/utils/page-objects/documentation-api-page.po.ts +++ b/projects/demo-playwright/utils/page-objects/documentation-api-page.po.ts @@ -1,4 +1,4 @@ -import {expect, Locator, Page, Request} from '@playwright/test'; +import {expect, type Locator, type Page, type Request} from '@playwright/test'; import {tuiHideElement} from '../hide-element'; import {waitStableState} from '../wait-stable-state'; diff --git a/projects/demo-playwright/utils/page-objects/documentation-page.po.ts b/projects/demo-playwright/utils/page-objects/documentation-page.po.ts index 9867fc7c2975..207b3a3fc124 100644 --- a/projects/demo-playwright/utils/page-objects/documentation-page.po.ts +++ b/projects/demo-playwright/utils/page-objects/documentation-page.po.ts @@ -1,4 +1,4 @@ -import {Locator} from '@playwright/test'; +import {type Locator} from '@playwright/test'; import {TuiDocumentationApiPagePO} from './documentation-api-page.po'; diff --git a/projects/demo-playwright/utils/page-objects/input-card-grouped.po.ts b/projects/demo-playwright/utils/page-objects/input-card-grouped.po.ts index 72ca56abc9fb..367e920b3bbb 100644 --- a/projects/demo-playwright/utils/page-objects/input-card-grouped.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-card-grouped.po.ts @@ -1,4 +1,4 @@ -import {Locator} from '@playwright/test'; +import {type Locator} from '@playwright/test'; export class TuiInputCardGroupedPO { public readonly numberTextfield = this.host.locator( diff --git a/projects/demo-playwright/utils/page-objects/input-card.po.ts b/projects/demo-playwright/utils/page-objects/input-card.po.ts index 2a54a57e48a6..3410d14d0d52 100644 --- a/projects/demo-playwright/utils/page-objects/input-card.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-card.po.ts @@ -1,4 +1,4 @@ -import {Locator} from '@playwright/test'; +import {type Locator} from '@playwright/test'; export class TuiInputCardPO { public readonly expiryTextfield = this.host diff --git a/projects/demo-playwright/utils/page-objects/input-date-range.po.ts b/projects/demo-playwright/utils/page-objects/input-date-range.po.ts index 9e2423bafd03..67df24daaaf2 100644 --- a/projects/demo-playwright/utils/page-objects/input-date-range.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-date-range.po.ts @@ -1,4 +1,4 @@ -import {expect, Locator} from '@playwright/test'; +import {expect, type Locator} from '@playwright/test'; export class TuiInputDateRangePO { public readonly textfield: Locator = this.host.getByRole('textbox'); diff --git a/projects/demo-playwright/utils/page-objects/input-date-time.po.ts b/projects/demo-playwright/utils/page-objects/input-date-time.po.ts index 454acd980cd4..076aa103d0aa 100644 --- a/projects/demo-playwright/utils/page-objects/input-date-time.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-date-time.po.ts @@ -1,4 +1,4 @@ -import {Locator} from '@playwright/test'; +import {type Locator} from '@playwright/test'; export class TuiInputDateTimePO { public readonly textfield: Locator = this.host.getByRole('textbox'); diff --git a/projects/demo-playwright/utils/page-objects/input-month-range.po.ts b/projects/demo-playwright/utils/page-objects/input-month-range.po.ts index c9a7dc1d5070..8101a2bcf7e4 100644 --- a/projects/demo-playwright/utils/page-objects/input-month-range.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-month-range.po.ts @@ -1,4 +1,4 @@ -import {Locator} from '@playwright/test'; +import {type Locator} from '@playwright/test'; export class TuiInputMonthRangePO { public readonly textfield: Locator = this.host.getByRole('textbox'); diff --git a/projects/demo-playwright/utils/page-objects/input-month.po.ts b/projects/demo-playwright/utils/page-objects/input-month.po.ts index 74a3cfb5fd80..b3efab89fd1a 100644 --- a/projects/demo-playwright/utils/page-objects/input-month.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-month.po.ts @@ -1,4 +1,4 @@ -import {Locator} from '@playwright/test'; +import {type Locator} from '@playwright/test'; export class TuiInputMonthPO { public readonly textfield: Locator = this.host.getByRole('textbox'); diff --git a/projects/demo-playwright/utils/page-objects/input-phone.po.ts b/projects/demo-playwright/utils/page-objects/input-phone.po.ts index d3a6eca97d25..b5dcaeeafa97 100644 --- a/projects/demo-playwright/utils/page-objects/input-phone.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-phone.po.ts @@ -1,4 +1,4 @@ -import {Locator} from '@playwright/test'; +import {type Locator} from '@playwright/test'; export class TuiInputPhonePO { public readonly textfield = this.host.getByRole('textbox'); diff --git a/projects/demo-playwright/utils/page-objects/input-range.po.ts b/projects/demo-playwright/utils/page-objects/input-range.po.ts index 377094d68074..e539a5e1f8ba 100644 --- a/projects/demo-playwright/utils/page-objects/input-range.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-range.po.ts @@ -1,4 +1,4 @@ -import {Locator} from '@playwright/test'; +import {type Locator} from '@playwright/test'; import {TuiRangePO} from './range.po'; diff --git a/projects/demo-playwright/utils/page-objects/input-slider.po.ts b/projects/demo-playwright/utils/page-objects/input-slider.po.ts index 81548cac013e..84f0cfc977ce 100644 --- a/projects/demo-playwright/utils/page-objects/input-slider.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-slider.po.ts @@ -1,4 +1,4 @@ -import {Locator} from '@playwright/test'; +import {type Locator} from '@playwright/test'; export class TuiInputSliderPO { public readonly textfield = this.host.getByRole('textbox'); diff --git a/projects/demo-playwright/utils/page-objects/range.po.ts b/projects/demo-playwright/utils/page-objects/range.po.ts index ad70766084c1..b50f7e09d213 100644 --- a/projects/demo-playwright/utils/page-objects/range.po.ts +++ b/projects/demo-playwright/utils/page-objects/range.po.ts @@ -1,4 +1,4 @@ -import {Locator} from '@playwright/test'; +import {type Locator} from '@playwright/test'; export class TuiRangePO { public readonly left = this.host.locator('input[type=range]:first-child'); diff --git a/projects/demo-playwright/utils/page-objects/slider.po.ts b/projects/demo-playwright/utils/page-objects/slider.po.ts index 071dd3a3635f..9f618e9d0fe5 100644 --- a/projects/demo-playwright/utils/page-objects/slider.po.ts +++ b/projects/demo-playwright/utils/page-objects/slider.po.ts @@ -1,4 +1,4 @@ -import {expect, Locator} from '@playwright/test'; +import {expect, type Locator} from '@playwright/test'; export class TuiSliderPO { constructor(private readonly host: Locator) {} diff --git a/projects/demo-playwright/utils/page-objects/table-pagination-page.po.ts b/projects/demo-playwright/utils/page-objects/table-pagination-page.po.ts index 1cc7b1cd1bdd..ae7ccedeae22 100644 --- a/projects/demo-playwright/utils/page-objects/table-pagination-page.po.ts +++ b/projects/demo-playwright/utils/page-objects/table-pagination-page.po.ts @@ -1,4 +1,4 @@ -import {Locator} from '@playwright/test'; +import {type Locator} from '@playwright/test'; export class TuiTablePaginationPO { public readonly linesPerPageButton = this.host.locator( diff --git a/projects/demo-playwright/utils/page-objects/textfield-with-data-list.po.ts b/projects/demo-playwright/utils/page-objects/textfield-with-data-list.po.ts index b4103b1d5a15..a12623d5febe 100644 --- a/projects/demo-playwright/utils/page-objects/textfield-with-data-list.po.ts +++ b/projects/demo-playwright/utils/page-objects/textfield-with-data-list.po.ts @@ -1,4 +1,4 @@ -import {expect, Locator} from '@playwright/test'; +import {expect, type Locator} from '@playwright/test'; export class TuiTextfieldWithDataListPO { public readonly textfield: Locator = this.host.getByRole('textbox'); diff --git a/projects/demo-playwright/utils/wait-for-fonts.ts b/projects/demo-playwright/utils/wait-for-fonts.ts index 441a0c244636..ce9df16f5d30 100644 --- a/projects/demo-playwright/utils/wait-for-fonts.ts +++ b/projects/demo-playwright/utils/wait-for-fonts.ts @@ -1,4 +1,4 @@ -import {expect, Page} from '@playwright/test'; +import {expect, type Page} from '@playwright/test'; export async function tuiWaitForFonts(page: Page): Promise { await expect(async () => { diff --git a/projects/demo-playwright/utils/wait-stable-state.ts b/projects/demo-playwright/utils/wait-stable-state.ts index bdd6706ed945..26e9e1765f62 100644 --- a/projects/demo-playwright/utils/wait-stable-state.ts +++ b/projects/demo-playwright/utils/wait-stable-state.ts @@ -1,4 +1,4 @@ -import {Locator} from '@playwright/test'; +import {type Locator} from '@playwright/test'; export async function waitStableState(locator: Locator): Promise { try { diff --git a/projects/demo/server.ts b/projects/demo/server.ts index d6eecd70895a..731fced95a47 100644 --- a/projects/demo/server.ts +++ b/projects/demo/server.ts @@ -4,7 +4,7 @@ import 'zone.js/node'; import {APP_BASE_HREF} from '@angular/common'; import {provideLocation, provideUserAgent} from '@ng-web-apis/universal'; import {ngExpressEngine} from '@nguniversal/express-engine'; -import express, {Express} from 'express'; +import express, {type Express} from 'express'; import {existsSync} from 'fs'; import {join} from 'path'; diff --git a/projects/demo/src/modules/animations/animations.component.ts b/projects/demo/src/modules/animations/animations.component.ts index 7bd6315a03e1..aa739e6d3f68 100644 --- a/projects/demo/src/modules/animations/animations.component.ts +++ b/projects/demo/src/modules/animations/animations.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-animations', diff --git a/projects/demo/src/modules/animations/examples/dropdown/index.ts b/projects/demo/src/modules/animations/examples/dropdown/index.ts index 1fca2e510817..08b7eaf55f7b 100644 --- a/projects/demo/src/modules/animations/examples/dropdown/index.ts +++ b/projects/demo/src/modules/animations/examples/dropdown/index.ts @@ -2,7 +2,7 @@ import {Component, Input} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiPure} from '@taiga-ui/cdk'; -import {tuiDropdownAnimation, TuiDurationOptions} from '@taiga-ui/core'; +import {tuiDropdownAnimation, type TuiDurationOptions} from '@taiga-ui/core'; @Component({ selector: 'tui-dropdown-example', diff --git a/projects/demo/src/modules/animations/examples/fade-in/index.ts b/projects/demo/src/modules/animations/examples/fade-in/index.ts index 26e0c4cb6789..e37c9b608d9c 100644 --- a/projects/demo/src/modules/animations/examples/fade-in/index.ts +++ b/projects/demo/src/modules/animations/examples/fade-in/index.ts @@ -2,7 +2,7 @@ import {Component, Input} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiPure} from '@taiga-ui/cdk'; -import {TuiDurationOptions, tuiFadeIn} from '@taiga-ui/core'; +import {type TuiDurationOptions, tuiFadeIn} from '@taiga-ui/core'; import {concatMap, delay, from, of, repeat, startWith} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/animations/examples/height-collapse/index.ts b/projects/demo/src/modules/animations/examples/height-collapse/index.ts index 7706ba0ba206..7ef070ce52bb 100644 --- a/projects/demo/src/modules/animations/examples/height-collapse/index.ts +++ b/projects/demo/src/modules/animations/examples/height-collapse/index.ts @@ -2,7 +2,7 @@ import {Component, Input} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiPure} from '@taiga-ui/cdk'; -import {TuiDurationOptions, tuiHeightCollapse} from '@taiga-ui/core'; +import {type TuiDurationOptions, tuiHeightCollapse} from '@taiga-ui/core'; @Component({ selector: 'tui-height-collapse-example', diff --git a/projects/demo/src/modules/animations/examples/scale-in/index.ts b/projects/demo/src/modules/animations/examples/scale-in/index.ts index e60fad7123f6..0c2100a29264 100644 --- a/projects/demo/src/modules/animations/examples/scale-in/index.ts +++ b/projects/demo/src/modules/animations/examples/scale-in/index.ts @@ -2,7 +2,7 @@ import {Component, Input} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiPure} from '@taiga-ui/cdk'; -import {TuiDurationOptions, tuiScaleIn} from '@taiga-ui/core'; +import {type TuiDurationOptions, tuiScaleIn} from '@taiga-ui/core'; @Component({ selector: 'tui-scale-in-example', diff --git a/projects/demo/src/modules/animations/examples/slide-in/index.ts b/projects/demo/src/modules/animations/examples/slide-in/index.ts index f776232dedc2..2f69c1ce3088 100644 --- a/projects/demo/src/modules/animations/examples/slide-in/index.ts +++ b/projects/demo/src/modules/animations/examples/slide-in/index.ts @@ -3,7 +3,7 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiPure} from '@taiga-ui/cdk'; import { - TuiDurationOptions, + type TuiDurationOptions, tuiSlideInBottom, tuiSlideInLeft, tuiSlideInRight, diff --git a/projects/demo/src/modules/animations/examples/width-collapse/index.ts b/projects/demo/src/modules/animations/examples/width-collapse/index.ts index 3e0567a1c39d..16d7f7d337ea 100644 --- a/projects/demo/src/modules/animations/examples/width-collapse/index.ts +++ b/projects/demo/src/modules/animations/examples/width-collapse/index.ts @@ -2,7 +2,7 @@ import {Component, Input} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiPure} from '@taiga-ui/cdk'; -import {TuiDurationOptions, tuiWidthCollapse} from '@taiga-ui/core'; +import {type TuiDurationOptions, tuiWidthCollapse} from '@taiga-ui/core'; @Component({ selector: 'tui-width-collapse-example', diff --git a/projects/demo/src/modules/app/abstract.app.ts b/projects/demo/src/modules/app/abstract.app.ts index d38203ada180..d405c6b67627 100644 --- a/projects/demo/src/modules/app/abstract.app.ts +++ b/projects/demo/src/modules/app/abstract.app.ts @@ -1,5 +1,5 @@ -import {Directive, ElementRef, HostBinding, inject, OnInit} from '@angular/core'; -import {Router} from '@angular/router'; +import {Directive, ElementRef, HostBinding, inject, type OnInit} from '@angular/core'; +import {type Router} from '@angular/router'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import {TUI_DOC_PAGE_LOADED} from '@taiga-ui/addon-doc'; import {TuiDestroyService, tuiPure} from '@taiga-ui/cdk'; diff --git a/projects/demo/src/modules/app/app.component.ts b/projects/demo/src/modules/app/app.component.ts index fdf2760276d9..f10450c35fbb 100644 --- a/projects/demo/src/modules/app/app.component.ts +++ b/projects/demo/src/modules/app/app.component.ts @@ -1,5 +1,5 @@ import {APP_BASE_HREF, DOCUMENT} from '@angular/common'; -import {Component, inject, OnInit, ViewEncapsulation} from '@angular/core'; +import {Component, inject, type OnInit, ViewEncapsulation} from '@angular/core'; import {NavigationEnd, Router} from '@angular/router'; import {changeDetection} from '@demo/emulate/change-detection'; import {LOCAL_STORAGE} from '@ng-web-apis/common'; diff --git a/projects/demo/src/modules/app/app.providers.ts b/projects/demo/src/modules/app/app.providers.ts index ebffd7cb4383..dfe4d6561d7d 100644 --- a/projects/demo/src/modules/app/app.providers.ts +++ b/projects/demo/src/modules/app/app.providers.ts @@ -5,9 +5,9 @@ import { LocationStrategy, PathLocationStrategy, } from '@angular/common'; -import {inject, PLATFORM_ID, Provider} from '@angular/core'; +import {inject, PLATFORM_ID, type Provider} from '@angular/core'; import {Title} from '@angular/platform-browser'; -import {UrlTree} from '@angular/router'; +import {type UrlTree} from '@angular/router'; import {environment} from '@demo/environments/environment'; import {SESSION_STORAGE} from '@ng-web-apis/common'; import { @@ -22,7 +22,7 @@ import { TUI_DOC_TYPE_REFERENCE_HANDLER, TUI_DOC_URL_STATE_HANDLER, tuiDocExampleOptionsProvider, - TuiDocSourceCodePathOptions, + type TuiDocSourceCodePathOptions, tuiSortPages, } from '@taiga-ui/addon-doc'; import { @@ -39,7 +39,7 @@ import { TUI_HINT_OPTIONS, TUI_SANITIZER, } from '@taiga-ui/core'; -import {TuiLanguageName, tuiLanguageSwitcher} from '@taiga-ui/i18n'; +import {type TuiLanguageName, tuiLanguageSwitcher} from '@taiga-ui/i18n'; import {NgDompurifySanitizer} from '@tinkoff/ng-dompurify'; import {HIGHLIGHT_OPTIONS} from 'ngx-highlightjs'; diff --git a/projects/demo/src/modules/app/app.routes.ts b/projects/demo/src/modules/app/app.routes.ts index 30700ef3bcfc..5c929465e22f 100644 --- a/projects/demo/src/modules/app/app.routes.ts +++ b/projects/demo/src/modules/app/app.routes.ts @@ -1,5 +1,5 @@ import {NgModule} from '@angular/core'; -import {RouterModule, Routes} from '@angular/router'; +import {RouterModule, type Routes} from '@angular/router'; import {tuiProvideRoutePageTab as route} from '@taiga-ui/addon-doc'; export const ROUTES: Routes = [ diff --git a/projects/demo/src/modules/app/customization/customization.component.ts b/projects/demo/src/modules/app/customization/customization.component.ts index 4352dbf68481..020319d6d5bf 100644 --- a/projects/demo/src/modules/app/customization/customization.component.ts +++ b/projects/demo/src/modules/app/customization/customization.component.ts @@ -1,9 +1,9 @@ -import {AfterViewInit, Component, inject, ViewChild} from '@angular/core'; -import {DomSanitizer, SafeStyle} from '@angular/platform-browser'; +import {type AfterViewInit, Component, inject, ViewChild} from '@angular/core'; +import {DomSanitizer, type SafeStyle} from '@angular/platform-browser'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocDemoComponent} from '@taiga-ui/addon-doc'; +import {type TuiDocDemoComponent} from '@taiga-ui/addon-doc'; import {TuiDestroyService, tuiIsString, tuiPure, tuiPx} from '@taiga-ui/cdk'; -import {TuiBrightness} from '@taiga-ui/core'; +import {type TuiBrightness} from '@taiga-ui/core'; import {Subject, takeUntil} from 'rxjs'; import { diff --git a/projects/demo/src/modules/app/customization/customization.providers.ts b/projects/demo/src/modules/app/customization/customization.providers.ts index 39e16f3c77cc..55f66097bcf6 100644 --- a/projects/demo/src/modules/app/customization/customization.providers.ts +++ b/projects/demo/src/modules/app/customization/customization.providers.ts @@ -1,4 +1,4 @@ -import {forwardRef, InjectionToken, Provider} from '@angular/core'; +import {forwardRef, InjectionToken, type Provider} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; import {TuiDestroyService} from '@taiga-ui/cdk'; import {TuiModeDirective} from '@taiga-ui/core'; diff --git a/projects/demo/src/modules/app/landing/landing.component.ts b/projects/demo/src/modules/app/landing/landing.component.ts index 84f04e8f0833..a78ec90319f7 100644 --- a/projects/demo/src/modules/app/landing/landing.component.ts +++ b/projects/demo/src/modules/app/landing/landing.component.ts @@ -5,8 +5,8 @@ import { ElementRef, HostBinding, inject, - OnInit, - QueryList, + type OnInit, + type QueryList, ViewChildren, } from '@angular/core'; import {ActivatedRoute, Router, RouterLink} from '@angular/router'; diff --git a/projects/demo/src/modules/app/metrika/metrika.service.ts b/projects/demo/src/modules/app/metrika/metrika.service.ts index 0ec7b35452ae..1ff017d0406b 100644 --- a/projects/demo/src/modules/app/metrika/metrika.service.ts +++ b/projects/demo/src/modules/app/metrika/metrika.service.ts @@ -1,5 +1,5 @@ import {DOCUMENT, isPlatformBrowser} from '@angular/common'; -import {inject, Injectable, PLATFORM_ID, Provider} from '@angular/core'; +import {inject, Injectable, PLATFORM_ID, type Provider} from '@angular/core'; import {TUI_IS_E2E, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; declare global { diff --git a/projects/demo/src/modules/app/pages.ts b/projects/demo/src/modules/app/pages.ts index 3b500ae6d210..5bdf07bd66a2 100644 --- a/projects/demo/src/modules/app/pages.ts +++ b/projects/demo/src/modules/app/pages.ts @@ -1,4 +1,4 @@ -import {TuiDocPages} from '@taiga-ui/addon-doc'; +import {type TuiDocPages} from '@taiga-ui/addon-doc'; export const pages: TuiDocPages = [ // Documentation diff --git a/projects/demo/src/modules/app/stackblitz/stackblitz.service.ts b/projects/demo/src/modules/app/stackblitz/stackblitz.service.ts index cf019b5bc791..7429faf40806 100644 --- a/projects/demo/src/modules/app/stackblitz/stackblitz.service.ts +++ b/projects/demo/src/modules/app/stackblitz/stackblitz.service.ts @@ -1,6 +1,6 @@ import {inject, Injectable} from '@angular/core'; -import stackblitz, {OpenOptions, Project} from '@stackblitz/sdk'; -import {TuiCodeEditor} from '@taiga-ui/addon-doc'; +import stackblitz, {type OpenOptions, type Project} from '@stackblitz/sdk'; +import {type TuiCodeEditor} from '@taiga-ui/addon-doc'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; import {TsFileComponentParser, TsFileModuleParser} from '../classes'; diff --git a/projects/demo/src/modules/app/stackblitz/starter/stackblitz-starter.component.ts b/projects/demo/src/modules/app/stackblitz/starter/stackblitz-starter.component.ts index 142c93deca52..d462e5302538 100644 --- a/projects/demo/src/modules/app/stackblitz/starter/stackblitz-starter.component.ts +++ b/projects/demo/src/modules/app/stackblitz/starter/stackblitz-starter.component.ts @@ -1,4 +1,4 @@ -import {ChangeDetectionStrategy, Component, inject, OnInit} from '@angular/core'; +import {ChangeDetectionStrategy, Component, inject, type OnInit} from '@angular/core'; import {tuiRawLoad, tuiTryParseMarkdownCodeBlock} from '@taiga-ui/addon-doc'; import {TuiStackblitzService} from '../stackblitz.service'; diff --git a/projects/demo/src/modules/app/utils/ready-to-scroll-factory.ts b/projects/demo/src/modules/app/utils/ready-to-scroll-factory.ts index e66a8aabc77d..da52fe46901d 100644 --- a/projects/demo/src/modules/app/utils/ready-to-scroll-factory.ts +++ b/projects/demo/src/modules/app/utils/ready-to-scroll-factory.ts @@ -1,5 +1,5 @@ -import {ElementRef} from '@angular/core'; -import {debounceTime, map, Observable, startWith, takeUntil} from 'rxjs'; +import {type ElementRef} from '@angular/core'; +import {debounceTime, map, type Observable, startWith, takeUntil} from 'rxjs'; export function readyToScrollFactory( hostElement: ElementRef, diff --git a/projects/demo/src/modules/app/version-manager/version-manager.component.ts b/projects/demo/src/modules/app/version-manager/version-manager.component.ts index 83a997de5850..f9896723d230 100644 --- a/projects/demo/src/modules/app/version-manager/version-manager.component.ts +++ b/projects/demo/src/modules/app/version-manager/version-manager.component.ts @@ -4,7 +4,7 @@ import {LOCATION} from '@ng-web-apis/common'; import {tuiPure} from '@taiga-ui/cdk'; import {TUI_SELECTED_VERSION_META} from './version-manager.providers'; -import {TUI_VERSIONS_META_OPTIONS, TuiVersionMeta} from './versions.constants'; +import {TUI_VERSIONS_META_OPTIONS, type TuiVersionMeta} from './versions.constants'; @Component({ selector: 'version-manager', diff --git a/projects/demo/src/modules/app/version-manager/version-manager.providers.ts b/projects/demo/src/modules/app/version-manager/version-manager.providers.ts index 44887e77800c..c6d777bd716a 100644 --- a/projects/demo/src/modules/app/version-manager/version-manager.providers.ts +++ b/projects/demo/src/modules/app/version-manager/version-manager.providers.ts @@ -1,8 +1,8 @@ import {DOCUMENT} from '@angular/common'; -import {InjectionToken, Provider} from '@angular/core'; +import {InjectionToken, type Provider} from '@angular/core'; import {TUI_BASE_HREF} from '@taiga-ui/cdk'; -import {TUI_VERSIONS_META_MAP, TuiVersionMeta} from './versions.constants'; +import {TUI_VERSIONS_META_MAP, type TuiVersionMeta} from './versions.constants'; export const TUI_SELECTED_VERSION_META = new InjectionToken( '[TUI_SELECTED_VERSION_META]: Meta information about selected version of Taiga docs', diff --git a/projects/demo/src/modules/charts/arc-chart/arc-chart.component.ts b/projects/demo/src/modules/charts/arc-chart/arc-chart.component.ts index b4826cee6e64..7b53d8bd4ff6 100644 --- a/projects/demo/src/modules/charts/arc-chart/arc-chart.component.ts +++ b/projects/demo/src/modules/charts/arc-chart/arc-chart.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeXL} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeXL} from '@taiga-ui/core'; @Component({ selector: 'example-tui-arc-chart', diff --git a/projects/demo/src/modules/charts/axes/axes.component.ts b/projects/demo/src/modules/charts/axes/axes.component.ts index bb1daf5e8db6..d24f72a6f1f5 100644 --- a/projects/demo/src/modules/charts/axes/axes.component.ts +++ b/projects/demo/src/modules/charts/axes/axes.component.ts @@ -3,10 +3,10 @@ import {changeDetection} from '@demo/emulate/change-detection'; import { TUI_ALWAYS_DASHED, TUI_ALWAYS_SOLID, - TuiLineHandler, - TuiLineType, + type TuiLineHandler, + type TuiLineType, } from '@taiga-ui/addon-charts'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-axes', diff --git a/projects/demo/src/modules/charts/axes/examples/1/index.ts b/projects/demo/src/modules/charts/axes/examples/1/index.ts index 40768ffd0726..6e54385301de 100644 --- a/projects/demo/src/modules/charts/axes/examples/1/index.ts +++ b/projects/demo/src/modules/charts/axes/examples/1/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiLineHandler} from '@taiga-ui/addon-charts'; +import {type TuiLineHandler} from '@taiga-ui/addon-charts'; @Component({ selector: 'tui-axes-example-1', diff --git a/projects/demo/src/modules/charts/bar-chart/bar-chart.component.ts b/projects/demo/src/modules/charts/bar-chart/bar-chart.component.ts index 28a9ed6b1c51..081355ecdbbe 100644 --- a/projects/demo/src/modules/charts/bar-chart/bar-chart.component.ts +++ b/projects/demo/src/modules/charts/bar-chart/bar-chart.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-tui-bar-chart', diff --git a/projects/demo/src/modules/charts/bar-chart/examples/2/index.ts b/projects/demo/src/modules/charts/bar-chart/examples/2/index.ts index 3c1390601831..150287c78d62 100644 --- a/projects/demo/src/modules/charts/bar-chart/examples/2/index.ts +++ b/projects/demo/src/modules/charts/bar-chart/examples/2/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiContext} from '@taiga-ui/cdk'; +import {type TuiContext} from '@taiga-ui/cdk'; import {tuiFormatNumber} from '@taiga-ui/core'; @Component({ diff --git a/projects/demo/src/modules/charts/bar-set/bar-set.component.ts b/projects/demo/src/modules/charts/bar-set/bar-set.component.ts index f061e499e421..5cbf9c96d315 100644 --- a/projects/demo/src/modules/charts/bar-set/bar-set.component.ts +++ b/projects/demo/src/modules/charts/bar-set/bar-set.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-tui-bar-set', diff --git a/projects/demo/src/modules/charts/bar/bar.component.ts b/projects/demo/src/modules/charts/bar/bar.component.ts index 3eaaa7830a92..5b46b29e2c71 100644 --- a/projects/demo/src/modules/charts/bar/bar.component.ts +++ b/projects/demo/src/modules/charts/bar/bar.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-tui-bar', diff --git a/projects/demo/src/modules/charts/legend-item/legend-item.component.ts b/projects/demo/src/modules/charts/legend-item/legend-item.component.ts index 4285b8f63881..17beda5f8e0e 100644 --- a/projects/demo/src/modules/charts/legend-item/legend-item.component.ts +++ b/projects/demo/src/modules/charts/legend-item/legend-item.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeS} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-tui-legend-item', diff --git a/projects/demo/src/modules/charts/line-chart/examples/1/index.ts b/projects/demo/src/modules/charts/line-chart/examples/1/index.ts index af90bcb85503..dc7595848b55 100644 --- a/projects/demo/src/modules/charts/line-chart/examples/1/index.ts +++ b/projects/demo/src/modules/charts/line-chart/examples/1/index.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TUI_DEFAULT_STRINGIFY, TuiContext} from '@taiga-ui/cdk'; -import {TuiPoint} from '@taiga-ui/core'; +import {TUI_DEFAULT_STRINGIFY, type TuiContext} from '@taiga-ui/cdk'; +import {type TuiPoint} from '@taiga-ui/core'; @Component({ selector: 'tui-line-chart-example-1', diff --git a/projects/demo/src/modules/charts/line-chart/examples/2/index.ts b/projects/demo/src/modules/charts/line-chart/examples/2/index.ts index 69af8671526a..817d6aa1b7d3 100644 --- a/projects/demo/src/modules/charts/line-chart/examples/2/index.ts +++ b/projects/demo/src/modules/charts/line-chart/examples/2/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiPoint} from '@taiga-ui/core'; +import {type TuiPoint} from '@taiga-ui/core'; @Component({ selector: 'tui-line-chart-example-2', diff --git a/projects/demo/src/modules/charts/line-chart/examples/3/index.ts b/projects/demo/src/modules/charts/line-chart/examples/3/index.ts index 5e1c42862b33..a4f42fb4b337 100644 --- a/projects/demo/src/modules/charts/line-chart/examples/3/index.ts +++ b/projects/demo/src/modules/charts/line-chart/examples/3/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiPoint} from '@taiga-ui/core'; +import {type TuiPoint} from '@taiga-ui/core'; @Component({ selector: 'tui-line-chart-example-3', diff --git a/projects/demo/src/modules/charts/line-chart/examples/4/index.ts b/projects/demo/src/modules/charts/line-chart/examples/4/index.ts index fb285de82e2d..102f36822d2d 100644 --- a/projects/demo/src/modules/charts/line-chart/examples/4/index.ts +++ b/projects/demo/src/modules/charts/line-chart/examples/4/index.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiContext, TuiStringHandler} from '@taiga-ui/cdk'; -import {TuiPoint} from '@taiga-ui/core'; +import {type TuiContext, type TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiPoint} from '@taiga-ui/core'; @Component({ selector: 'tui-line-chart-example-4', diff --git a/projects/demo/src/modules/charts/line-chart/examples/5/index.ts b/projects/demo/src/modules/charts/line-chart/examples/5/index.ts index 684e75cd247d..1939db6b7450 100644 --- a/projects/demo/src/modules/charts/line-chart/examples/5/index.ts +++ b/projects/demo/src/modules/charts/line-chart/examples/5/index.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiContext, TuiStringHandler} from '@taiga-ui/cdk'; -import {TuiPoint} from '@taiga-ui/core'; +import {type TuiContext, type TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiPoint} from '@taiga-ui/core'; @Component({ selector: 'tui-line-chart-example-5', diff --git a/projects/demo/src/modules/charts/line-chart/line-chart.component.ts b/projects/demo/src/modules/charts/line-chart/line-chart.component.ts index 706bbd6953fd..9f0de09e7755 100644 --- a/projects/demo/src/modules/charts/line-chart/line-chart.component.ts +++ b/projects/demo/src/modules/charts/line-chart/line-chart.component.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiStringHandler} from '@taiga-ui/cdk'; -import {TuiPoint} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiPoint} from '@taiga-ui/core'; @Component({ selector: 'example-tui-line-chart', diff --git a/projects/demo/src/modules/charts/line-days-chart/examples/1/index.ts b/projects/demo/src/modules/charts/line-days-chart/examples/1/index.ts index f99006d2c850..94626ed13150 100644 --- a/projects/demo/src/modules/charts/line-days-chart/examples/1/index.ts +++ b/projects/demo/src/modules/charts/line-days-chart/examples/1/index.ts @@ -4,14 +4,14 @@ import {encapsulation} from '@demo/emulate/encapsulation'; import { TUI_IS_E2E, TuiDay, - TuiDayLike, + type TuiDayLike, TuiDayRange, TuiMonth, tuiPure, - TuiStringHandler, + type TuiStringHandler, } from '@taiga-ui/cdk'; import {TUI_MONTHS} from '@taiga-ui/core'; -import {map, Observable} from 'rxjs'; +import {map, type Observable} from 'rxjs'; @Component({ selector: 'tui-line-days-chart-example-1', diff --git a/projects/demo/src/modules/charts/line-days-chart/examples/2/index.ts b/projects/demo/src/modules/charts/line-days-chart/examples/2/index.ts index 6ead54a6ef0e..fed828f0f55a 100644 --- a/projects/demo/src/modules/charts/line-days-chart/examples/2/index.ts +++ b/projects/demo/src/modules/charts/line-days-chart/examples/2/index.ts @@ -3,13 +3,13 @@ import {changeDetection} from '@demo/emulate/change-detection'; import { TUI_IS_E2E, TuiDay, - TuiDayLike, + type TuiDayLike, TuiDayRange, tuiPure, - TuiTypedMapper, - TuiTypedMatcher, + type TuiTypedMapper, + type TuiTypedMatcher, } from '@taiga-ui/cdk'; -import {TuiPoint} from '@taiga-ui/core'; +import {type TuiPoint} from '@taiga-ui/core'; @Component({ selector: 'tui-line-days-chart-example-2', diff --git a/projects/demo/src/modules/charts/line-days-chart/examples/2/pipe.ts b/projects/demo/src/modules/charts/line-days-chart/examples/2/pipe.ts index b1f512ceb4d1..b1b499f6a599 100644 --- a/projects/demo/src/modules/charts/line-days-chart/examples/2/pipe.ts +++ b/projects/demo/src/modules/charts/line-days-chart/examples/2/pipe.ts @@ -1,7 +1,7 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; -import {TuiDay, TuiDayRange, TuiMonth} from '@taiga-ui/cdk'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; +import {TuiDay, type TuiDayRange, TuiMonth} from '@taiga-ui/cdk'; import {TUI_MONTHS} from '@taiga-ui/core'; -import {map, Observable, of} from 'rxjs'; +import {map, type Observable, of} from 'rxjs'; function onlyMondays(range: readonly TuiDay[]): readonly string[] { return range.filter(day => !day.dayOfWeek()).map(String); diff --git a/projects/demo/src/modules/charts/line-days-chart/line-days-chart.component.ts b/projects/demo/src/modules/charts/line-days-chart/line-days-chart.component.ts index 87e49672c987..a86c0d092779 100644 --- a/projects/demo/src/modules/charts/line-days-chart/line-days-chart.component.ts +++ b/projects/demo/src/modules/charts/line-days-chart/line-days-chart.component.ts @@ -1,10 +1,10 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiContext, TuiDay, TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiContext, TuiDay, type TuiStringHandler} from '@taiga-ui/cdk'; import {TUI_MONTHS} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {map, Observable} from 'rxjs'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {map, type Observable} from 'rxjs'; @Component({ selector: 'example-tui-line-days-chart', diff --git a/projects/demo/src/modules/charts/pie-chart/pie-chart.component.ts b/projects/demo/src/modules/charts/pie-chart/pie-chart.component.ts index d1da9aa4b9a9..de3924aef6aa 100644 --- a/projects/demo/src/modules/charts/pie-chart/pie-chart.component.ts +++ b/projects/demo/src/modules/charts/pie-chart/pie-chart.component.ts @@ -1,10 +1,10 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {TuiCurrency, tuiGetCurrencySymbol} from '@taiga-ui/addon-commerce'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiContext, tuiRound, tuiSum} from '@taiga-ui/cdk'; -import {tuiFormatNumber, TuiSizeXL, TuiSizeXS} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiContext, tuiRound, tuiSum} from '@taiga-ui/cdk'; +import {tuiFormatNumber, type TuiSizeXL, type TuiSizeXS} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'example-tui-pie-chart', diff --git a/projects/demo/src/modules/charts/ring-chart/ring-chart.component.ts b/projects/demo/src/modules/charts/ring-chart/ring-chart.component.ts index 61369d1d6475..ab5e19d98f16 100644 --- a/projects/demo/src/modules/charts/ring-chart/ring-chart.component.ts +++ b/projects/demo/src/modules/charts/ring-chart/ring-chart.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeS, TuiSizeXL} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeS, type TuiSizeXL} from '@taiga-ui/core'; @Component({ selector: 'example-tui-ring-chart', diff --git a/projects/demo/src/modules/components/abstract/control.ts b/projects/demo/src/modules/components/abstract/control.ts index 8f549f4668e6..ed4834c2b122 100644 --- a/projects/demo/src/modules/components/abstract/control.ts +++ b/projects/demo/src/modules/components/abstract/control.ts @@ -1,18 +1,18 @@ -import {AbstractControl} from '@angular/forms'; -import {TuiInputMode, TuiInputType} from '@taiga-ui/cdk'; +import {type AbstractControl} from '@angular/forms'; +import {type TuiInputMode, type TuiInputType} from '@taiga-ui/cdk'; import { TUI_DROPDOWN_DEFAULT_OPTIONS, TUI_HINT_DIRECTIONS, - TuiDropdownAlign, - TuiDropdownWidth, - TuiSizeL, - TuiSizeS, - TuiVerticalDirection, + type TuiDropdownAlign, + type TuiDropdownWidth, + type TuiSizeL, + type TuiSizeS, + type TuiVerticalDirection, } from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {BehaviorSubject} from 'rxjs'; -import {AbstractExampleTuiDropdown} from './dropdown'; +import {type AbstractExampleTuiDropdown} from './dropdown'; import {AbstractExampleTuiInteractive} from './interactive'; const CUSTOM_SVG = `( diff --git a/projects/demo/src/modules/components/abstract/inherited-documentation/inherited-documentation.component.ts b/projects/demo/src/modules/components/abstract/inherited-documentation/inherited-documentation.component.ts index b9e84d2c5cb3..f0cecb8ace61 100644 --- a/projects/demo/src/modules/components/abstract/inherited-documentation/inherited-documentation.component.ts +++ b/projects/demo/src/modules/components/abstract/inherited-documentation/inherited-documentation.component.ts @@ -6,7 +6,7 @@ import {AbstractExampleTuiControl} from '../control'; import {AbstractExampleTuiHint} from '../hint'; import {AbstractExampleTuiInteractive} from '../interactive'; import {ABSTRACT_PROPS_ACCESSOR} from './abstract-props-accessor'; -import {TuiSupportingDocumentationComponent} from './supporting-documentation-component'; +import {type TuiSupportingDocumentationComponent} from './supporting-documentation-component'; @Component({ selector: 'inherited-documentation', diff --git a/projects/demo/src/modules/components/abstract/inherited-documentation/supporting-documentation-component.ts b/projects/demo/src/modules/components/abstract/inherited-documentation/supporting-documentation-component.ts index d736bbe5dad9..3f932f5e91ec 100644 --- a/projects/demo/src/modules/components/abstract/inherited-documentation/supporting-documentation-component.ts +++ b/projects/demo/src/modules/components/abstract/inherited-documentation/supporting-documentation-component.ts @@ -1,6 +1,6 @@ -import {AbstractExampleTuiControl} from '../control'; -import {AbstractExampleTuiHint} from '../hint'; -import {AbstractExampleTuiInteractive} from '../interactive'; +import {type AbstractExampleTuiControl} from '../control'; +import {type AbstractExampleTuiHint} from '../hint'; +import {type AbstractExampleTuiInteractive} from '../interactive'; export type TuiSupportingDocumentationComponent = | AbstractExampleTuiControl diff --git a/projects/demo/src/modules/components/abstract/textfield-controller-documentation/textfield-controller-documentation.component.ts b/projects/demo/src/modules/components/abstract/textfield-controller-documentation/textfield-controller-documentation.component.ts index a656baafb9d1..cb1469f18f5e 100644 --- a/projects/demo/src/modules/components/abstract/textfield-controller-documentation/textfield-controller-documentation.component.ts +++ b/projects/demo/src/modules/components/abstract/textfield-controller-documentation/textfield-controller-documentation.component.ts @@ -1,7 +1,7 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {AbstractExampleTuiControl} from '../control'; +import {type AbstractExampleTuiControl} from '../control'; import {ABSTRACT_PROPS_ACCESSOR} from '../inherited-documentation/abstract-props-accessor'; @Component({ diff --git a/projects/demo/src/modules/components/accordion/accordion.component.ts b/projects/demo/src/modules/components/accordion/accordion.component.ts index 52cbb25772d9..b70a27eaffc9 100644 --- a/projects/demo/src/modules/components/accordion/accordion.component.ts +++ b/projects/demo/src/modules/components/accordion/accordion.component.ts @@ -1,8 +1,8 @@ -import {Component, ElementRef, inject, ViewChild} from '@angular/core'; +import {Component, type ElementRef, inject, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {TuiDestroyService} from '@taiga-ui/cdk'; -import {TUI_EXPAND_LOADED, TuiSizeS} from '@taiga-ui/core'; +import {TUI_EXPAND_LOADED, type TuiSizeS} from '@taiga-ui/core'; import {takeUntil, timer} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/components/action/action.component.ts b/projects/demo/src/modules/components/action/action.component.ts index cdd952d0693a..00a523d5f687 100644 --- a/projects/demo/src/modules/components/action/action.component.ts +++ b/projects/demo/src/modules/components/action/action.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-action', diff --git a/projects/demo/src/modules/components/alert/alert.component.ts b/projects/demo/src/modules/components/alert/alert.component.ts index 286ca97645d6..b1c9e0cf7509 100644 --- a/projects/demo/src/modules/components/alert/alert.component.ts +++ b/projects/demo/src/modules/components/alert/alert.component.ts @@ -1,14 +1,14 @@ import {Component, inject, INJECTOR} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiPopoverContext} from '@taiga-ui/cdk'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiPopoverContext} from '@taiga-ui/cdk'; import { TUI_NOTIFICATION_OPTIONS, - TuiAlertOptions, + type TuiAlertOptions, TuiAlertService, - TuiNotification, + type TuiNotification, } from '@taiga-ui/core'; -import {PolymorpheusComponent, PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {PolymorpheusComponent, type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {switchMap} from 'rxjs'; import {AlertExampleWithDataComponent} from './examples/4/alert-example-with-data/alert-example-with-data.component'; diff --git a/projects/demo/src/modules/components/alert/examples/2/index.ts b/projects/demo/src/modules/components/alert/examples/2/index.ts index 3d8ff04a8dbc..fe160a156019 100644 --- a/projects/demo/src/modules/components/alert/examples/2/index.ts +++ b/projects/demo/src/modules/components/alert/examples/2/index.ts @@ -1,7 +1,7 @@ -import {Component, inject, TemplateRef, ViewChild} from '@angular/core'; +import {Component, inject, type TemplateRef, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiAlertContext, TuiAlertService} from '@taiga-ui/core'; +import {type TuiAlertContext, TuiAlertService} from '@taiga-ui/core'; @Component({ selector: 'tui-alerts-example-2', diff --git a/projects/demo/src/modules/components/alert/examples/3/alert-example/alert-example.component.ts b/projects/demo/src/modules/components/alert/examples/3/alert-example/alert-example.component.ts index f93713273be4..ce383c8cc1e0 100644 --- a/projects/demo/src/modules/components/alert/examples/3/alert-example/alert-example.component.ts +++ b/projects/demo/src/modules/components/alert/examples/3/alert-example/alert-example.component.ts @@ -1,7 +1,7 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiPopover} from '@taiga-ui/cdk'; -import {TuiAlertOptions} from '@taiga-ui/core'; +import {type TuiPopover} from '@taiga-ui/cdk'; +import {type TuiAlertOptions} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; @Component({ diff --git a/projects/demo/src/modules/components/alert/examples/4/alert-example-with-data/alert-example-with-data.component.ts b/projects/demo/src/modules/components/alert/examples/4/alert-example-with-data/alert-example-with-data.component.ts index edd5cc801a82..5a5b5b078490 100644 --- a/projects/demo/src/modules/components/alert/examples/4/alert-example-with-data/alert-example-with-data.component.ts +++ b/projects/demo/src/modules/components/alert/examples/4/alert-example-with-data/alert-example-with-data.component.ts @@ -1,7 +1,7 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiPopover} from '@taiga-ui/cdk'; -import {TuiAlertOptions} from '@taiga-ui/core'; +import {type TuiPopover} from '@taiga-ui/cdk'; +import {type TuiAlertOptions} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; @Component({ diff --git a/projects/demo/src/modules/components/alert/examples/5/alert-example-with-custom-label/alert-example-with-custom-label.component.ts b/projects/demo/src/modules/components/alert/examples/5/alert-example-with-custom-label/alert-example-with-custom-label.component.ts index 77f9f54ada66..4601eaf9d6c8 100644 --- a/projects/demo/src/modules/components/alert/examples/5/alert-example-with-custom-label/alert-example-with-custom-label.component.ts +++ b/projects/demo/src/modules/components/alert/examples/5/alert-example-with-custom-label/alert-example-with-custom-label.component.ts @@ -1,7 +1,7 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiPopover} from '@taiga-ui/cdk'; -import {TuiAlertOptions} from '@taiga-ui/core'; +import {type TuiPopover} from '@taiga-ui/cdk'; +import {type TuiAlertOptions} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; @Component({ diff --git a/projects/demo/src/modules/components/app-bar/app-bar.component.ts b/projects/demo/src/modules/components/app-bar/app-bar.component.ts index 3a5d9063cc1b..1e5e48aae5cd 100644 --- a/projects/demo/src/modules/components/app-bar/app-bar.component.ts +++ b/projects/demo/src/modules/components/app-bar/app-bar.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-app-bar', diff --git a/projects/demo/src/modules/components/avatar/avatar.component.ts b/projects/demo/src/modules/components/avatar/avatar.component.ts index 8363b80f424b..2dbec2a41893 100644 --- a/projects/demo/src/modules/components/avatar/avatar.component.ts +++ b/projects/demo/src/modules/components/avatar/avatar.component.ts @@ -1,8 +1,12 @@ import {Component, inject} from '@angular/core'; -import {DomSanitizer, SafeResourceUrl} from '@angular/platform-browser'; +import {DomSanitizer, type SafeResourceUrl} from '@angular/platform-browser'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiAddonDocModule, TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; -import {TuiNotificationModule, TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core'; +import { + TuiAddonDocModule, + type TuiDocExample, + type TuiRawLoaderContent, +} from '@taiga-ui/addon-doc'; +import {TuiNotificationModule, type TuiSizeXS, type TuiSizeXXL} from '@taiga-ui/core'; import {TuiAvatarComponent} from '@taiga-ui/kit'; import {TuiAvatarExample1} from './examples/1'; diff --git a/projects/demo/src/modules/components/avatar/examples/4/index.ts b/projects/demo/src/modules/components/avatar/examples/4/index.ts index 62b2fe2f40aa..c4cf7a02d35d 100644 --- a/projects/demo/src/modules/components/avatar/examples/4/index.ts +++ b/projects/demo/src/modules/components/avatar/examples/4/index.ts @@ -2,7 +2,7 @@ import {NgForOf} from '@angular/common'; import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core'; +import {type TuiSizeXS, type TuiSizeXXL} from '@taiga-ui/core'; import {TuiAutoColorModule, TuiInitialsModule} from '@taiga-ui/experimental'; import {TuiAvatarComponent, TuiAvatarStackComponent} from '@taiga-ui/kit'; diff --git a/projects/demo/src/modules/components/badge/badge.component.ts b/projects/demo/src/modules/components/badge/badge.component.ts index 9edf3f9da9a8..0fe4058fdb4d 100644 --- a/projects/demo/src/modules/components/badge/badge.component.ts +++ b/projects/demo/src/modules/components/badge/badge.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiRawLoaderContent} from '@taiga-ui/addon-doc'; -import {TuiSizeS, TuiSizeXL} from '@taiga-ui/core'; +import {type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiSizeS, type TuiSizeXL} from '@taiga-ui/core'; @Component({ selector: 'example-badge', diff --git a/projects/demo/src/modules/components/badged-content/badged-content.component.ts b/projects/demo/src/modules/components/badged-content/badged-content.component.ts index d01b92d721e4..57775c59a050 100644 --- a/projects/demo/src/modules/components/badged-content/badged-content.component.ts +++ b/projects/demo/src/modules/components/badged-content/badged-content.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-badged-content', diff --git a/projects/demo/src/modules/components/block-status/block-status.component.ts b/projects/demo/src/modules/components/block-status/block-status.component.ts index 2729830b3d84..1fb5d6d92d96 100644 --- a/projects/demo/src/modules/components/block-status/block-status.component.ts +++ b/projects/demo/src/modules/components/block-status/block-status.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-block-status', diff --git a/projects/demo/src/modules/components/block-status/examples/2/index.ts b/projects/demo/src/modules/components/block-status/examples/2/index.ts index 36ac8ddc73b1..08503eb42c63 100644 --- a/projects/demo/src/modules/components/block-status/examples/2/index.ts +++ b/projects/demo/src/modules/components/block-status/examples/2/index.ts @@ -1,8 +1,8 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiBreakpointService, TuiSizeL} from '@taiga-ui/core'; -import {map, Observable} from 'rxjs'; +import {TuiBreakpointService, type TuiSizeL} from '@taiga-ui/core'; +import {map, type Observable} from 'rxjs'; @Component({ selector: 'tui-block-status-example-2', diff --git a/projects/demo/src/modules/components/block-status/examples/3/index.ts b/projects/demo/src/modules/components/block-status/examples/3/index.ts index 996711d40bad..6f02d87f1d98 100644 --- a/projects/demo/src/modules/components/block-status/examples/3/index.ts +++ b/projects/demo/src/modules/components/block-status/examples/3/index.ts @@ -1,8 +1,8 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiBreakpointService, TuiSizeL} from '@taiga-ui/core'; -import {map, Observable} from 'rxjs'; +import {TuiBreakpointService, type TuiSizeL} from '@taiga-ui/core'; +import {map, type Observable} from 'rxjs'; @Component({ selector: 'tui-block-status-example-3', diff --git a/projects/demo/src/modules/components/breadcrumbs/breadcrumbs.component.ts b/projects/demo/src/modules/components/breadcrumbs/breadcrumbs.component.ts index afbfaf79fc3d..36446a304ada 100644 --- a/projects/demo/src/modules/components/breadcrumbs/breadcrumbs.component.ts +++ b/projects/demo/src/modules/components/breadcrumbs/breadcrumbs.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeL} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeL} from '@taiga-ui/core'; @Component({ selector: 'example-breadcrumbs', diff --git a/projects/demo/src/modules/components/button/button.component.ts b/projects/demo/src/modules/components/button/button.component.ts index a697fb2a401a..fa7d0544d774 100644 --- a/projects/demo/src/modules/components/button/button.component.ts +++ b/projects/demo/src/modules/components/button/button.component.ts @@ -1,9 +1,9 @@ -import {Component, forwardRef, TemplateRef} from '@angular/core'; +import {Component, forwardRef, type TemplateRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {tuiPure} from '@taiga-ui/cdk'; -import {TuiSizeXL, TuiSizeXS} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiSizeXL, type TuiSizeXS} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; import {AbstractExampleTuiInteractive} from '../abstract/interactive'; diff --git a/projects/demo/src/modules/components/calendar-month/calendar-month.component.ts b/projects/demo/src/modules/components/calendar-month/calendar-month.component.ts index ce8bfcfdb671..0d5f97bccc63 100644 --- a/projects/demo/src/modules/components/calendar-month/calendar-month.component.ts +++ b/projects/demo/src/modules/components/calendar-month/calendar-month.component.ts @@ -1,11 +1,11 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - TuiBooleanHandler, + type TuiBooleanHandler, TuiDay, TuiMonth, TuiMonthRange, diff --git a/projects/demo/src/modules/components/calendar-month/examples/1/index.ts b/projects/demo/src/modules/components/calendar-month/examples/1/index.ts index bb4d16cf69cf..31ea5ae98d79 100644 --- a/projects/demo/src/modules/components/calendar-month/examples/1/index.ts +++ b/projects/demo/src/modules/components/calendar-month/examples/1/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiMonth} from '@taiga-ui/cdk'; +import {type TuiMonth} from '@taiga-ui/cdk'; @Component({ selector: 'tui-calendar-month-example-1', diff --git a/projects/demo/src/modules/components/calendar-range/calendar-range.component.ts b/projects/demo/src/modules/components/calendar-range/calendar-range.component.ts index 6a61e189f427..ddb8e48b1d26 100644 --- a/projects/demo/src/modules/components/calendar-range/calendar-range.component.ts +++ b/projects/demo/src/modules/components/calendar-range/calendar-range.component.ts @@ -1,17 +1,17 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - TuiBooleanHandler, + type TuiBooleanHandler, TuiDay, - TuiDayLike, + type TuiDayLike, TuiMonth, } from '@taiga-ui/cdk'; -import {TUI_DEFAULT_MARKER_HANDLER, TuiMarkerHandler} from '@taiga-ui/core'; -import {tuiCreateDefaultDayRangePeriods, TuiDayRangePeriod} from '@taiga-ui/kit'; +import {TUI_DEFAULT_MARKER_HANDLER, type TuiMarkerHandler} from '@taiga-ui/core'; +import {tuiCreateDefaultDayRangePeriods, type TuiDayRangePeriod} from '@taiga-ui/kit'; const TWO_DOTS: [string, string] = ['var(--tui-primary)', 'var(--tui-info-fill)']; const ONE_DOT: [string] = ['var(--tui-success-fill)']; diff --git a/projects/demo/src/modules/components/calendar/calendar.component.ts b/projects/demo/src/modules/components/calendar/calendar.component.ts index d8be50546660..095a379ced30 100644 --- a/projects/demo/src/modules/components/calendar/calendar.component.ts +++ b/projects/demo/src/modules/components/calendar/calendar.component.ts @@ -1,16 +1,16 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - TuiBooleanHandler, + type TuiBooleanHandler, TuiDay, TuiDayRange, TuiMonth, } from '@taiga-ui/cdk'; -import {TUI_DEFAULT_MARKER_HANDLER, TuiMarkerHandler} from '@taiga-ui/core'; +import {TUI_DEFAULT_MARKER_HANDLER, type TuiMarkerHandler} from '@taiga-ui/core'; const TWO_DOTS: [string, string] = ['var(--tui-primary)', 'var(--tui-info-fill)']; const ONE_DOT: [string] = ['var(--tui-success-fill)']; diff --git a/projects/demo/src/modules/components/calendar/examples/1/index.ts b/projects/demo/src/modules/components/calendar/examples/1/index.ts index 283667e83339..967eb2e65f90 100644 --- a/projects/demo/src/modules/components/calendar/examples/1/index.ts +++ b/projects/demo/src/modules/components/calendar/examples/1/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDay} from '@taiga-ui/cdk'; +import {type TuiDay} from '@taiga-ui/cdk'; @Component({ selector: 'tui-calendar-example-1', diff --git a/projects/demo/src/modules/components/calendar/examples/2/index.ts b/projects/demo/src/modules/components/calendar/examples/2/index.ts index b2be71a36df1..3e3e0a3feb40 100644 --- a/projects/demo/src/modules/components/calendar/examples/2/index.ts +++ b/projects/demo/src/modules/components/calendar/examples/2/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDay, TuiDayRange, TuiMonth} from '@taiga-ui/cdk'; +import {type TuiDay, TuiDayRange, TuiMonth} from '@taiga-ui/cdk'; @Component({ selector: 'tui-calendar-example-2', diff --git a/projects/demo/src/modules/components/calendar/examples/3/index.ts b/projects/demo/src/modules/components/calendar/examples/3/index.ts index 904e0f682371..32cc2a8c66f2 100644 --- a/projects/demo/src/modules/components/calendar/examples/3/index.ts +++ b/projects/demo/src/modules/components/calendar/examples/3/index.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDay, TuiDayRange, TuiMonth} from '@taiga-ui/cdk'; -import {TuiMarkerHandler} from '@taiga-ui/core'; +import {type TuiDay, TuiDayRange, TuiMonth} from '@taiga-ui/cdk'; +import {type TuiMarkerHandler} from '@taiga-ui/core'; const TWO_DOTS: [string, string] = ['var(--tui-primary)', 'var(--tui-info-fill)']; const ONE_DOT: [string] = ['var(--tui-success-fill)']; diff --git a/projects/demo/src/modules/components/calendar/examples/5/index.ts b/projects/demo/src/modules/components/calendar/examples/5/index.ts index 62cc2d27543f..d97d6246dfa4 100644 --- a/projects/demo/src/modules/components/calendar/examples/5/index.ts +++ b/projects/demo/src/modules/components/calendar/examples/5/index.ts @@ -1,6 +1,6 @@ import {Component, ViewEncapsulation} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDay, TuiHandler} from '@taiga-ui/cdk'; +import {type TuiDay, type TuiHandler} from '@taiga-ui/cdk'; import {TUI_DAY_TYPE_HANDLER} from '@taiga-ui/core'; const handler: TuiHandler = (day: TuiDay) => { diff --git a/projects/demo/src/modules/components/calendar/examples/6/index.ts b/projects/demo/src/modules/components/calendar/examples/6/index.ts index 497b2ee16c5e..2fc982c6b17d 100644 --- a/projects/demo/src/modules/components/calendar/examples/6/index.ts +++ b/projects/demo/src/modules/components/calendar/examples/6/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDay} from '@taiga-ui/cdk'; +import {type TuiDay} from '@taiga-ui/cdk'; @Component({ selector: 'tui-calendar-example-6', diff --git a/projects/demo/src/modules/components/calendar/examples/7/index.ts b/projects/demo/src/modules/components/calendar/examples/7/index.ts index cd7fef8cfa03..fc5b8d8902e0 100644 --- a/projects/demo/src/modules/components/calendar/examples/7/index.ts +++ b/projects/demo/src/modules/components/calendar/examples/7/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDay} from '@taiga-ui/cdk'; +import {type TuiDay} from '@taiga-ui/cdk'; @Component({ selector: 'tui-calendar-example-7', diff --git a/projects/demo/src/modules/components/carousel/carousel.component.ts b/projects/demo/src/modules/components/carousel/carousel.component.ts index 8c51b8257076..fcd8c39e51b2 100644 --- a/projects/demo/src/modules/components/carousel/carousel.component.ts +++ b/projects/demo/src/modules/components/carousel/carousel.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-carousel', diff --git a/projects/demo/src/modules/components/checkbox/checkbox.component.ts b/projects/demo/src/modules/components/checkbox/checkbox.component.ts index cc1212a9425f..33f06b31aa66 100644 --- a/projects/demo/src/modules/components/checkbox/checkbox.component.ts +++ b/projects/demo/src/modules/components/checkbox/checkbox.component.ts @@ -1,8 +1,8 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeL} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeL} from '@taiga-ui/core'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/combo-box/combo-box.component.ts b/projects/demo/src/modules/components/combo-box/combo-box.component.ts index 84f9b6205b9d..052256824db6 100644 --- a/projects/demo/src/modules/components/combo-box/combo-box.component.ts +++ b/projects/demo/src/modules/components/combo-box/combo-box.component.ts @@ -1,18 +1,18 @@ import {Component, forwardRef, ViewChild} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; import { TUI_DEFAULT_MATCHER, TUI_DEFAULT_STRINGIFY, TUI_STRICT_MATCHER, - TuiIdentityMatcher, + type TuiIdentityMatcher, tuiPure, - TuiStringHandler, - TuiStringMatcher, + type TuiStringHandler, + type TuiStringMatcher, } from '@taiga-ui/cdk'; -import {TuiValueContentContext} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiValueContentContext} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/combo-box/examples/1/index.ts b/projects/demo/src/modules/components/combo-box/examples/1/index.ts index 7342fdcaad41..c2d5186ee7dc 100644 --- a/projects/demo/src/modules/components/combo-box/examples/1/index.ts +++ b/projects/demo/src/modules/components/combo-box/examples/1/index.ts @@ -4,7 +4,7 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {assets} from '@demo/utils'; import {TUI_DEFAULT_MATCHER} from '@taiga-ui/cdk'; -import {delay, filter, Observable, of, startWith, Subject, switchMap} from 'rxjs'; +import {delay, filter, type Observable, of, startWith, Subject, switchMap} from 'rxjs'; class User { constructor( diff --git a/projects/demo/src/modules/components/combo-box/examples/2/request.service.ts b/projects/demo/src/modules/components/combo-box/examples/2/request.service.ts index 5bd25a943103..20530f2b903d 100644 --- a/projects/demo/src/modules/components/combo-box/examples/2/request.service.ts +++ b/projects/demo/src/modules/components/combo-box/examples/2/request.service.ts @@ -3,7 +3,7 @@ import {TUI_DEFAULT_MATCHER, TuiDestroyService} from '@taiga-ui/cdk'; import { delay, distinctUntilChanged, - Observable, + type Observable, of, shareReplay, startWith, @@ -13,7 +13,7 @@ import { } from 'rxjs'; import {databaseMockData} from './database-mock-data'; -import {User} from './user'; +import {type User} from './user'; @Injectable() export class RequestService { diff --git a/projects/demo/src/modules/components/combo-box/examples/6/index.ts b/projects/demo/src/modules/components/combo-box/examples/6/index.ts index 4be5981109da..99bb19fe7c1b 100644 --- a/projects/demo/src/modules/components/combo-box/examples/6/index.ts +++ b/projects/demo/src/modules/components/combo-box/examples/6/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiStringHandler} from '@taiga-ui/cdk'; import {tuiItemsHandlersProvider} from '@taiga-ui/kit'; interface Employee { diff --git a/projects/demo/src/modules/components/data-list-wrapper/examples/1/index.ts b/projects/demo/src/modules/components/data-list-wrapper/examples/1/index.ts index 076449ef34fc..cbc8ac71a8af 100644 --- a/projects/demo/src/modules/components/data-list-wrapper/examples/1/index.ts +++ b/projects/demo/src/modules/components/data-list-wrapper/examples/1/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {type TuiBooleanHandler} from '@taiga-ui/cdk'; @Component({ selector: 'tui-data-list-wrapper-example-1', diff --git a/projects/demo/src/modules/components/data-list/examples/2/index.ts b/projects/demo/src/modules/components/data-list/examples/2/index.ts index 16d3f2c3bd2d..a8c6e98271a3 100644 --- a/projects/demo/src/modules/components/data-list/examples/2/index.ts +++ b/projects/demo/src/modules/components/data-list/examples/2/index.ts @@ -1,7 +1,7 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDialogService, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TuiDialogService, type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'tui-data-list-example-2', diff --git a/projects/demo/src/modules/components/data-list/examples/4/custom-list/custom-list.component.ts b/projects/demo/src/modules/components/data-list/examples/4/custom-list/custom-list.component.ts index 6054946c521c..91c311134384 100644 --- a/projects/demo/src/modules/components/data-list/examples/4/custom-list/custom-list.component.ts +++ b/projects/demo/src/modules/components/data-list/examples/4/custom-list/custom-list.component.ts @@ -1,7 +1,7 @@ import {Component, Input} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {EMPTY_ARRAY, TUI_DEFAULT_MATCHER} from '@taiga-ui/cdk'; -import {TuiDataListComponent, tuiIsEditingKey} from '@taiga-ui/core'; +import {type TuiDataListComponent, tuiIsEditingKey} from '@taiga-ui/core'; interface Items { readonly items: readonly T[]; diff --git a/projects/demo/src/modules/components/data-list/examples/4/index.ts b/projects/demo/src/modules/components/data-list/examples/4/index.ts index b4b7658307f2..4a955fe506a9 100644 --- a/projects/demo/src/modules/components/data-list/examples/4/index.ts +++ b/projects/demo/src/modules/components/data-list/examples/4/index.ts @@ -1,7 +1,11 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiContext, TuiIdentityMatcher, TuiStringHandler} from '@taiga-ui/cdk'; +import { + type TuiContext, + type TuiIdentityMatcher, + type TuiStringHandler, +} from '@taiga-ui/cdk'; const INCOME = { name: 'Income', diff --git a/projects/demo/src/modules/components/dialog/dialog.component.ts b/projects/demo/src/modules/components/dialog/dialog.component.ts index e5386a0f035b..62b4b1883ad4 100644 --- a/projects/demo/src/modules/components/dialog/dialog.component.ts +++ b/projects/demo/src/modules/components/dialog/dialog.component.ts @@ -1,11 +1,11 @@ -import {Component, inject, TemplateRef} from '@angular/core'; +import {Component, inject, type TemplateRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import { TuiAlertService, - TuiDialogContext, + type TuiDialogContext, TuiDialogService, - TuiDialogSize, + type TuiDialogSize, } from '@taiga-ui/core'; import {switchMap} from 'rxjs'; diff --git a/projects/demo/src/modules/components/dialog/examples/2/dialog-example/dialog-example.component.ts b/projects/demo/src/modules/components/dialog/examples/2/dialog-example/dialog-example.component.ts index 9bf5b2495732..71f56fa783e6 100644 --- a/projects/demo/src/modules/components/dialog/examples/2/dialog-example/dialog-example.component.ts +++ b/projects/demo/src/modules/components/dialog/examples/2/dialog-example/dialog-example.component.ts @@ -1,6 +1,6 @@ -import {Component, inject, TemplateRef} from '@angular/core'; +import {Component, inject, type TemplateRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDialogContext, TuiDialogService} from '@taiga-ui/core'; +import {type TuiDialogContext, TuiDialogService} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; @Component({ diff --git a/projects/demo/src/modules/components/dialog/examples/3/index.ts b/projects/demo/src/modules/components/dialog/examples/3/index.ts index 660f0c2a437e..ea92a6cafa36 100644 --- a/projects/demo/src/modules/components/dialog/examples/3/index.ts +++ b/projects/demo/src/modules/components/dialog/examples/3/index.ts @@ -1,8 +1,8 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDialogContext, TuiDialogService} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiDialogContext, TuiDialogService} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-dialog-example-3', diff --git a/projects/demo/src/modules/components/dialog/examples/4/index.ts b/projects/demo/src/modules/components/dialog/examples/4/index.ts index af259c85c13d..4f141fbfbd11 100644 --- a/projects/demo/src/modules/components/dialog/examples/4/index.ts +++ b/projects/demo/src/modules/components/dialog/examples/4/index.ts @@ -1,9 +1,9 @@ -import {Component, inject, TemplateRef} from '@angular/core'; +import {Component, inject, type TemplateRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiClamp} from '@taiga-ui/cdk'; import {TuiDialogService, TuiDropdownService} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-dialog-example-4', diff --git a/projects/demo/src/modules/components/dialog/examples/5/index.ts b/projects/demo/src/modules/components/dialog/examples/5/index.ts index 541ef18760c3..55e42a0b4f4e 100644 --- a/projects/demo/src/modules/components/dialog/examples/5/index.ts +++ b/projects/demo/src/modules/components/dialog/examples/5/index.ts @@ -1,8 +1,12 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDialogContext, TuiDialogService, TuiDialogSize} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import { + type TuiDialogContext, + TuiDialogService, + type TuiDialogSize, +} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-dialog-example-5', diff --git a/projects/demo/src/modules/components/dialog/examples/7/search-example/search-dialog-example.component.ts b/projects/demo/src/modules/components/dialog/examples/7/search-example/search-dialog-example.component.ts index d17c0ad31e5f..9960bf1af9b5 100644 --- a/projects/demo/src/modules/components/dialog/examples/7/search-example/search-dialog-example.component.ts +++ b/projects/demo/src/modules/components/dialog/examples/7/search-example/search-dialog-example.component.ts @@ -1,6 +1,6 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDialogContext} from '@taiga-ui/core'; +import {type TuiDialogContext} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; @Component({ diff --git a/projects/demo/src/modules/components/dialog/examples/8/index.ts b/projects/demo/src/modules/components/dialog/examples/8/index.ts index 7720808bd820..795f07d43e07 100644 --- a/projects/demo/src/modules/components/dialog/examples/8/index.ts +++ b/projects/demo/src/modules/components/dialog/examples/8/index.ts @@ -3,7 +3,7 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiDialogService} from '@taiga-ui/core'; import {TuiDialogFormService} from '@taiga-ui/kit'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-dialog-example-8', diff --git a/projects/demo/src/modules/components/dialog/examples/9/helpers/mock-cards.ts b/projects/demo/src/modules/components/dialog/examples/9/helpers/mock-cards.ts index 82c67972963f..7b34bbc80aee 100644 --- a/projects/demo/src/modules/components/dialog/examples/9/helpers/mock-cards.ts +++ b/projects/demo/src/modules/components/dialog/examples/9/helpers/mock-cards.ts @@ -1,4 +1,4 @@ -import {AccountCard} from './models'; +import {type AccountCard} from './models'; export const MOCK_CARDS: AccountCard[] = [ { diff --git a/projects/demo/src/modules/components/dialog/examples/9/helpers/pay.service.ts b/projects/demo/src/modules/components/dialog/examples/9/helpers/pay.service.ts index 0464e3d3b2c6..992b72d28b40 100644 --- a/projects/demo/src/modules/components/dialog/examples/9/helpers/pay.service.ts +++ b/projects/demo/src/modules/components/dialog/examples/9/helpers/pay.service.ts @@ -1,9 +1,9 @@ import {inject, Injectable} from '@angular/core'; import {TUI_IS_E2E} from '@taiga-ui/cdk'; -import {map, Observable, timer} from 'rxjs'; +import {map, type Observable, timer} from 'rxjs'; import {MOCK_CARDS} from './mock-cards'; -import {AccountCard, FetchedCards} from './models'; +import {type AccountCard, type FetchedCards} from './models'; @Injectable({ providedIn: 'root', diff --git a/projects/demo/src/modules/components/dialog/examples/9/helpers/validator.ts b/projects/demo/src/modules/components/dialog/examples/9/helpers/validator.ts index b6d0051ae766..a14c6ed8a773 100644 --- a/projects/demo/src/modules/components/dialog/examples/9/helpers/validator.ts +++ b/projects/demo/src/modules/components/dialog/examples/9/helpers/validator.ts @@ -1,4 +1,8 @@ -import {AbstractControl, ValidationErrors, ValidatorFn} from '@angular/forms'; +import { + type AbstractControl, + type ValidationErrors, + type ValidatorFn, +} from '@angular/forms'; export function inputCardGroupedCVCValidator(): ValidatorFn { return (control: AbstractControl): ValidationErrors | null => { diff --git a/projects/demo/src/modules/components/dialog/examples/9/pay-modal/pay-modal.component.ts b/projects/demo/src/modules/components/dialog/examples/9/pay-modal/pay-modal.component.ts index b0e4fc1f190c..0521be1aec18 100644 --- a/projects/demo/src/modules/components/dialog/examples/9/pay-modal/pay-modal.component.ts +++ b/projects/demo/src/modules/components/dialog/examples/9/pay-modal/pay-modal.component.ts @@ -2,25 +2,25 @@ import { ChangeDetectionStrategy, Component, inject, - OnInit, + type OnInit, ViewChild, } from '@angular/core'; import {FormControl, FormGroup, Validators} from '@angular/forms'; import { - TuiCard, + type TuiCard, tuiCardNumberValidator, tuiDefaultCardValidator, - TuiInputCardGroupedComponent, + type TuiInputCardGroupedComponent, } from '@taiga-ui/addon-commerce'; -import {TUI_IS_IOS, TuiDestroyService, TuiValuesOf} from '@taiga-ui/cdk'; -import {TuiDialogContext} from '@taiga-ui/core'; +import {TUI_IS_IOS, TuiDestroyService, type TuiValuesOf} from '@taiga-ui/cdk'; +import {type TuiDialogContext} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; import {BehaviorSubject, map, switchMap, takeUntil} from 'rxjs'; import { - AccountCard, - DataForPayCardModal, - FetchedCards, + type AccountCard, + type DataForPayCardModal, + type FetchedCards, PaymentMode, } from '../helpers/models'; import {PayService} from '../helpers/pay.service'; diff --git a/projects/demo/src/modules/components/elastic-container/elastic-container.component.ts b/projects/demo/src/modules/components/elastic-container/elastic-container.component.ts index dae5ec61e1ef..8919f8e11864 100644 --- a/projects/demo/src/modules/components/elastic-container/elastic-container.component.ts +++ b/projects/demo/src/modules/components/elastic-container/elastic-container.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-elastic-container', diff --git a/projects/demo/src/modules/components/error/error.component.ts b/projects/demo/src/modules/components/error/error.component.ts index ce5bd495e4aa..f1eb9aabb117 100644 --- a/projects/demo/src/modules/components/error/error.component.ts +++ b/projects/demo/src/modules/components/error/error.component.ts @@ -1,6 +1,6 @@ -import {Component, TemplateRef, ViewChild} from '@angular/core'; +import {Component, type TemplateRef, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {TuiValidationError} from '@taiga-ui/cdk'; @Component({ diff --git a/projects/demo/src/modules/components/expand/expand.component.ts b/projects/demo/src/modules/components/expand/expand.component.ts index ed351e02cc54..c6a47668d4c6 100644 --- a/projects/demo/src/modules/components/expand/expand.component.ts +++ b/projects/demo/src/modules/components/expand/expand.component.ts @@ -1,6 +1,6 @@ import {ChangeDetectorRef, Component, ElementRef, inject, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {TuiDestroyService} from '@taiga-ui/cdk'; import {TUI_EXPAND_LOADED, TuiExpandComponent} from '@taiga-ui/core'; import {takeUntil, timer} from 'rxjs'; diff --git a/projects/demo/src/modules/components/filter/examples/1/index.ts b/projects/demo/src/modules/components/filter/examples/1/index.ts index 86a2d5fa0d37..5072e0d1f324 100644 --- a/projects/demo/src/modules/components/filter/examples/1/index.ts +++ b/projects/demo/src/modules/components/filter/examples/1/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {type TuiBooleanHandler} from '@taiga-ui/cdk'; @Component({ selector: 'tui-filter-example-1', diff --git a/projects/demo/src/modules/components/filter/examples/2/index.ts b/projects/demo/src/modules/components/filter/examples/2/index.ts index a753ef6dd0a3..b2dbab2c50d4 100644 --- a/projects/demo/src/modules/components/filter/examples/2/index.ts +++ b/projects/demo/src/modules/components/filter/examples/2/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk'; +import {type TuiHandler, type TuiIdentityMatcher} from '@taiga-ui/cdk'; interface Operations { operations: readonly Operation[]; diff --git a/projects/demo/src/modules/components/filter/examples/4/index.ts b/projects/demo/src/modules/components/filter/examples/4/index.ts index 6afeb81a9123..a2e4f6013a81 100644 --- a/projects/demo/src/modules/components/filter/examples/4/index.ts +++ b/projects/demo/src/modules/components/filter/examples/4/index.ts @@ -3,7 +3,7 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiPure} from '@taiga-ui/cdk'; import {TuiAppearance} from '@taiga-ui/core'; -import {BehaviorSubject, map, Observable} from 'rxjs'; +import {BehaviorSubject, map, type Observable} from 'rxjs'; const Department = { IT: 'IT', diff --git a/projects/demo/src/modules/components/filter/filter.component.ts b/projects/demo/src/modules/components/filter/filter.component.ts index 785d87639c11..22735067c050 100644 --- a/projects/demo/src/modules/components/filter/filter.component.ts +++ b/projects/demo/src/modules/components/filter/filter.component.ts @@ -1,9 +1,13 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {ALWAYS_FALSE_HANDLER, TuiBooleanHandler, TuiHandler} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeXS} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import { + ALWAYS_FALSE_HANDLER, + type TuiBooleanHandler, + type TuiHandler, +} from '@taiga-ui/cdk'; +import {type TuiSizeL, type TuiSizeXS} from '@taiga-ui/core'; class ItemWithBadge { constructor( diff --git a/projects/demo/src/modules/components/group/group.component.ts b/projects/demo/src/modules/components/group/group.component.ts index ca7f2b375f39..db8e3e811ffd 100644 --- a/projects/demo/src/modules/components/group/group.component.ts +++ b/projects/demo/src/modules/components/group/group.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiOrientation, TuiSizeL} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiOrientation, type TuiSizeL} from '@taiga-ui/core'; @Component({ selector: 'example-group', diff --git a/projects/demo/src/modules/components/hosted-dropdown/examples/5/accessor.ts b/projects/demo/src/modules/components/hosted-dropdown/examples/5/accessor.ts index 8d33bf945b63..c8aca51c11a6 100644 --- a/projects/demo/src/modules/components/hosted-dropdown/examples/5/accessor.ts +++ b/projects/demo/src/modules/components/hosted-dropdown/examples/5/accessor.ts @@ -1,5 +1,5 @@ import {Directive, ElementRef, inject} from '@angular/core'; -import {tuiAsPositionAccessor, TuiPoint, TuiPositionAccessor} from '@taiga-ui/core'; +import {tuiAsPositionAccessor, type TuiPoint, TuiPositionAccessor} from '@taiga-ui/core'; @Directive({ selector: '[topRight]', diff --git a/projects/demo/src/modules/components/hosted-dropdown/hosted-dropdown.component.ts b/projects/demo/src/modules/components/hosted-dropdown/hosted-dropdown.component.ts index 492194874770..cc253470ae86 100644 --- a/projects/demo/src/modules/components/hosted-dropdown/hosted-dropdown.component.ts +++ b/projects/demo/src/modules/components/hosted-dropdown/hosted-dropdown.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiDropdown} from '../abstract/dropdown'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-card-grouped/examples/1/index.ts b/projects/demo/src/modules/components/input-card-grouped/examples/1/index.ts index 910b6d074366..4c821bb08383 100644 --- a/projects/demo/src/modules/components/input-card-grouped/examples/1/index.ts +++ b/projects/demo/src/modules/components/input-card-grouped/examples/1/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import { - TuiCard, + type TuiCard, tuiCardExpireValidator, tuiCardNumberValidator, } from '@taiga-ui/addon-commerce'; diff --git a/projects/demo/src/modules/components/input-card-grouped/examples/2/index.ts b/projects/demo/src/modules/components/input-card-grouped/examples/2/index.ts index eb691e319148..5ec3996da589 100644 --- a/projects/demo/src/modules/components/input-card-grouped/examples/2/index.ts +++ b/projects/demo/src/modules/components/input-card-grouped/examples/2/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiInputCardGroupedComponent} from '@taiga-ui/addon-commerce'; +import {type TuiInputCardGroupedComponent} from '@taiga-ui/addon-commerce'; @Component({ selector: 'tui-input-card-grouped-example-2', diff --git a/projects/demo/src/modules/components/input-card-grouped/examples/3/index.ts b/projects/demo/src/modules/components/input-card-grouped/examples/3/index.ts index fff210be75ab..f5d55d27002b 100644 --- a/projects/demo/src/modules/components/input-card-grouped/examples/3/index.ts +++ b/projects/demo/src/modules/components/input-card-grouped/examples/3/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import { - TuiCard, + type TuiCard, tuiCardExpireValidator, tuiCardNumberValidator, } from '@taiga-ui/addon-commerce'; diff --git a/projects/demo/src/modules/components/input-card-grouped/examples/4/index.ts b/projects/demo/src/modules/components/input-card-grouped/examples/4/index.ts index b2c7096236f9..3b68c73d9ead 100644 --- a/projects/demo/src/modules/components/input-card-grouped/examples/4/index.ts +++ b/projects/demo/src/modules/components/input-card-grouped/examples/4/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiCard} from '@taiga-ui/addon-commerce'; +import {type TuiCard} from '@taiga-ui/addon-commerce'; @Component({ selector: 'tui-input-card-grouped-example-4', diff --git a/projects/demo/src/modules/components/input-card-grouped/examples/5/index.ts b/projects/demo/src/modules/components/input-card-grouped/examples/5/index.ts index 75ad92880d06..589d4dadc96d 100644 --- a/projects/demo/src/modules/components/input-card-grouped/examples/5/index.ts +++ b/projects/demo/src/modules/components/input-card-grouped/examples/5/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TUI_INPUT_CARD_GROUPED_TEXTS, TuiCard} from '@taiga-ui/addon-commerce'; +import {TUI_INPUT_CARD_GROUPED_TEXTS, type TuiCard} from '@taiga-ui/addon-commerce'; import {of} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/components/input-card-grouped/input-card-grouped.component.ts b/projects/demo/src/modules/components/input-card-grouped/input-card-grouped.component.ts index 900649cbba6f..167281faefdb 100644 --- a/projects/demo/src/modules/components/input-card-grouped/input-card-grouped.component.ts +++ b/projects/demo/src/modules/components/input-card-grouped/input-card-grouped.component.ts @@ -1,10 +1,10 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiCard, TuiCodeCVCLength} from '@taiga-ui/addon-commerce'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiCard, type TuiCodeCVCLength} from '@taiga-ui/addon-commerce'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {tuiIsString} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; import {AbstractExampleTuiInteractive} from '../abstract/interactive'; diff --git a/projects/demo/src/modules/components/input-card/input-card.component.ts b/projects/demo/src/modules/components/input-card/input-card.component.ts index 7b383ed310b6..5f7d000ea5e3 100644 --- a/projects/demo/src/modules/components/input-card/input-card.component.ts +++ b/projects/demo/src/modules/components/input-card/input-card.component.ts @@ -1,12 +1,12 @@ import {Component, forwardRef, ViewChild} from '@angular/core'; import {FormControl, FormGroup, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiCodeCVCLength, tuiCreateLuhnValidator} from '@taiga-ui/addon-commerce'; +import {type TuiCodeCVCLength, tuiCreateLuhnValidator} from '@taiga-ui/addon-commerce'; import { TuiDocDocumentationPropertyConnectorDirective, - TuiDocExample, + type TuiDocExample, } from '@taiga-ui/addon-doc'; -import {TuiHintOptions} from '@taiga-ui/core'; +import {type TuiHintOptions} from '@taiga-ui/core'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-copy/input-copy.component.ts b/projects/demo/src/modules/components/input-copy/input-copy.component.ts index 5885317a5345..5976d0b9fed0 100644 --- a/projects/demo/src/modules/components/input-copy/input-copy.component.ts +++ b/projects/demo/src/modules/components/input-copy/input-copy.component.ts @@ -1,8 +1,8 @@ import {Component, forwardRef, ViewChild} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-date-multi/input-date-multi.component.ts b/projects/demo/src/modules/components/input-date-multi/input-date-multi.component.ts index 2c653bff2a69..6ba779154017 100644 --- a/projects/demo/src/modules/components/input-date-multi/input-date-multi.component.ts +++ b/projects/demo/src/modules/components/input-date-multi/input-date-multi.component.ts @@ -1,15 +1,15 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - TuiBooleanHandler, + type TuiBooleanHandler, TuiDay, } from '@taiga-ui/cdk'; -import {TUI_DEFAULT_MARKER_HANDLER, TuiMarkerHandler} from '@taiga-ui/core'; +import {TUI_DEFAULT_MARKER_HANDLER, type TuiMarkerHandler} from '@taiga-ui/core'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-date-range/input-date-range.component.ts b/projects/demo/src/modules/components/input-date-range/input-date-range.component.ts index 6f1164568bb5..be11a4b72717 100644 --- a/projects/demo/src/modules/components/input-date-range/input-date-range.component.ts +++ b/projects/demo/src/modules/components/input-date-range/input-date-range.component.ts @@ -1,19 +1,19 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - TuiBooleanHandler, + type TuiBooleanHandler, TuiDay, - TuiDayLike, - TuiDayRange, + type TuiDayLike, + type TuiDayRange, TuiMonth, } from '@taiga-ui/cdk'; -import {TUI_DEFAULT_MARKER_HANDLER, TuiMarkerHandler} from '@taiga-ui/core'; -import {tuiCreateDefaultDayRangePeriods, TuiDayRangePeriod} from '@taiga-ui/kit'; +import {TUI_DEFAULT_MARKER_HANDLER, type TuiMarkerHandler} from '@taiga-ui/core'; +import {tuiCreateDefaultDayRangePeriods, type TuiDayRangePeriod} from '@taiga-ui/kit'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-date-time/input-date-time.component.ts b/projects/demo/src/modules/components/input-date-time/input-date-time.component.ts index da38cb0a7f10..7f4c8d23cd83 100644 --- a/projects/demo/src/modules/components/input-date-time/input-date-time.component.ts +++ b/projects/demo/src/modules/components/input-date-time/input-date-time.component.ts @@ -1,16 +1,16 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - TuiBooleanHandler, + type TuiBooleanHandler, TuiDay, TuiMonth, TuiTime, - TuiTimeMode, + type TuiTimeMode, } from '@taiga-ui/cdk'; import {TuiNamedDay} from '@taiga-ui/kit'; diff --git a/projects/demo/src/modules/components/input-date/input-date.component.ts b/projects/demo/src/modules/components/input-date/input-date.component.ts index 13ef5cf17533..798885df21a0 100644 --- a/projects/demo/src/modules/components/input-date/input-date.component.ts +++ b/projects/demo/src/modules/components/input-date/input-date.component.ts @@ -1,15 +1,15 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - TuiBooleanHandler, + type TuiBooleanHandler, TuiDay, } from '@taiga-ui/cdk'; -import {TUI_DEFAULT_MARKER_HANDLER, TuiMarkerHandler} from '@taiga-ui/core'; +import {TUI_DEFAULT_MARKER_HANDLER, type TuiMarkerHandler} from '@taiga-ui/core'; import {TuiNamedDay} from '@taiga-ui/kit'; import {AbstractExampleTuiControl} from '../abstract/control'; diff --git a/projects/demo/src/modules/components/input-files/examples/1/index.ts b/projects/demo/src/modules/components/input-files/examples/1/index.ts index a62c3e754dea..77b569a160e0 100644 --- a/projects/demo/src/modules/components/input-files/examples/1/index.ts +++ b/projects/demo/src/modules/components/input-files/examples/1/index.ts @@ -2,8 +2,8 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiFileLike} from '@taiga-ui/kit'; -import {finalize, map, Observable, of, Subject, switchMap, timer} from 'rxjs'; +import {type TuiFileLike} from '@taiga-ui/kit'; +import {finalize, map, type Observable, of, Subject, switchMap, timer} from 'rxjs'; @Component({ selector: 'tui-input-files-example-1', diff --git a/projects/demo/src/modules/components/input-files/examples/2/index.ts b/projects/demo/src/modules/components/input-files/examples/2/index.ts index 026bfb3abb60..f5f737e46c31 100644 --- a/projects/demo/src/modules/components/input-files/examples/2/index.ts +++ b/projects/demo/src/modules/components/input-files/examples/2/index.ts @@ -1,5 +1,5 @@ import {Component} from '@angular/core'; -import {AbstractControl, FormControl, ValidatorFn} from '@angular/forms'; +import {type AbstractControl, FormControl, type ValidatorFn} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiValidationError} from '@taiga-ui/cdk'; diff --git a/projects/demo/src/modules/components/input-files/examples/3/index.ts b/projects/demo/src/modules/components/input-files/examples/3/index.ts index 851a35ff7c01..bde1a7ea8ea5 100644 --- a/projects/demo/src/modules/components/input-files/examples/3/index.ts +++ b/projects/demo/src/modules/components/input-files/examples/3/index.ts @@ -3,7 +3,7 @@ import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TUI_IS_E2E} from '@taiga-ui/cdk'; -import {TuiFileLike} from '@taiga-ui/kit'; +import {type TuiFileLike} from '@taiga-ui/kit'; @Component({ selector: 'tui-input-files-example-3', diff --git a/projects/demo/src/modules/components/input-files/examples/4/index.ts b/projects/demo/src/modules/components/input-files/examples/4/index.ts index 94fc360736bf..b89ed9e4b400 100644 --- a/projects/demo/src/modules/components/input-files/examples/4/index.ts +++ b/projects/demo/src/modules/components/input-files/examples/4/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiFileLike} from '@taiga-ui/kit'; +import {type TuiFileLike} from '@taiga-ui/kit'; @Component({ selector: 'tui-input-files-example-4', diff --git a/projects/demo/src/modules/components/input-files/examples/5/index.ts b/projects/demo/src/modules/components/input-files/examples/5/index.ts index 31803282a94b..85d02b578d60 100644 --- a/projects/demo/src/modules/components/input-files/examples/5/index.ts +++ b/projects/demo/src/modules/components/input-files/examples/5/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiFileLike} from '@taiga-ui/kit'; +import {type TuiFileLike} from '@taiga-ui/kit'; @Component({ selector: 'tui-input-files-example-5', diff --git a/projects/demo/src/modules/components/input-files/examples/6/index.ts b/projects/demo/src/modules/components/input-files/examples/6/index.ts index 99c4f99f7bf4..ac0b540c3d4f 100644 --- a/projects/demo/src/modules/components/input-files/examples/6/index.ts +++ b/projects/demo/src/modules/components/input-files/examples/6/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiFileLike} from '@taiga-ui/kit'; +import {type TuiFileLike} from '@taiga-ui/kit'; @Component({ selector: 'tui-input-files-example-6', diff --git a/projects/demo/src/modules/components/input-files/input-files.component.ts b/projects/demo/src/modules/components/input-files/input-files.component.ts index 1664d6b667fe..27edaca00f03 100644 --- a/projects/demo/src/modules/components/input-files/input-files.component.ts +++ b/projects/demo/src/modules/components/input-files/input-files.component.ts @@ -1,8 +1,8 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeL} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeL} from '@taiga-ui/core'; import {tuiFilesAccepted} from '@taiga-ui/kit'; import {map} from 'rxjs'; diff --git a/projects/demo/src/modules/components/input-inline/examples/3/component.ts b/projects/demo/src/modules/components/input-inline/examples/3/component.ts index 88a2d7cdb80a..7c1e05388c93 100644 --- a/projects/demo/src/modules/components/input-inline/examples/3/component.ts +++ b/projects/demo/src/modules/components/input-inline/examples/3/component.ts @@ -1,4 +1,4 @@ -import {ChangeDetectorRef, Component, inject, NgZone, OnInit} from '@angular/core'; +import {ChangeDetectorRef, Component, inject, NgZone, type OnInit} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TUI_IS_E2E, TuiDestroyService, tuiWatch, tuiZoneOptimized} from '@taiga-ui/cdk'; diff --git a/projects/demo/src/modules/components/input-inline/input-inline.component.ts b/projects/demo/src/modules/components/input-inline/input-inline.component.ts index 9594133ed935..cf774450892a 100644 --- a/projects/demo/src/modules/components/input-inline/input-inline.component.ts +++ b/projects/demo/src/modules/components/input-inline/input-inline.component.ts @@ -1,6 +1,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiControl} from '../abstract/control'; diff --git a/projects/demo/src/modules/components/input-month-range/examples/1/index.ts b/projects/demo/src/modules/components/input-month-range/examples/1/index.ts index d1bfb73a5bc7..75767259b3d8 100644 --- a/projects/demo/src/modules/components/input-month-range/examples/1/index.ts +++ b/projects/demo/src/modules/components/input-month-range/examples/1/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiMonthRange} from '@taiga-ui/cdk'; +import {type TuiMonthRange} from '@taiga-ui/cdk'; @Component({ selector: 'tui-input-month-range-example-1', diff --git a/projects/demo/src/modules/components/input-month-range/examples/2/index.ts b/projects/demo/src/modules/components/input-month-range/examples/2/index.ts index cbb0112fdede..9d9f959b0917 100644 --- a/projects/demo/src/modules/components/input-month-range/examples/2/index.ts +++ b/projects/demo/src/modules/components/input-month-range/examples/2/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiMonthRange} from '@taiga-ui/cdk'; +import {type TuiMonthRange} from '@taiga-ui/cdk'; @Component({ selector: 'tui-input-month-range-example-2', diff --git a/projects/demo/src/modules/components/input-month-range/examples/3/index.ts b/projects/demo/src/modules/components/input-month-range/examples/3/index.ts index 729887659330..26da5b85f1a1 100644 --- a/projects/demo/src/modules/components/input-month-range/examples/3/index.ts +++ b/projects/demo/src/modules/components/input-month-range/examples/3/index.ts @@ -2,8 +2,8 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiMonth, TuiMonthRange} from '@taiga-ui/cdk'; -import {TuiBooleanHandlerWithContext, TuiMonthContext} from '@taiga-ui/kit'; +import {type TuiMonth, TuiMonthRange} from '@taiga-ui/cdk'; +import {type TuiBooleanHandlerWithContext, type TuiMonthContext} from '@taiga-ui/kit'; @Component({ selector: 'tui-input-month-range-example-3', diff --git a/projects/demo/src/modules/components/input-month-range/input-month-range.component.ts b/projects/demo/src/modules/components/input-month-range/input-month-range.component.ts index c8f63ef22a0b..4f8d3bb5386f 100644 --- a/projects/demo/src/modules/components/input-month-range/input-month-range.component.ts +++ b/projects/demo/src/modules/components/input-month-range/input-month-range.component.ts @@ -1,16 +1,16 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, TuiDay, TuiMonth, - TuiMonthRange, + type TuiMonthRange, } from '@taiga-ui/cdk'; -import {TuiBooleanHandlerWithContext, TuiMonthContext} from '@taiga-ui/kit'; +import {type TuiBooleanHandlerWithContext, type TuiMonthContext} from '@taiga-ui/kit'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-month/examples/1/index.ts b/projects/demo/src/modules/components/input-month/examples/1/index.ts index 0e610007adca..4e85d2178ac5 100644 --- a/projects/demo/src/modules/components/input-month/examples/1/index.ts +++ b/projects/demo/src/modules/components/input-month/examples/1/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiMonth} from '@taiga-ui/cdk'; +import {type TuiMonth} from '@taiga-ui/cdk'; @Component({ selector: 'input-month-example-1', diff --git a/projects/demo/src/modules/components/input-month/examples/2/index.ts b/projects/demo/src/modules/components/input-month/examples/2/index.ts index 5b235257cb67..8dee0e2a6c52 100644 --- a/projects/demo/src/modules/components/input-month/examples/2/index.ts +++ b/projects/demo/src/modules/components/input-month/examples/2/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiMonth} from '@taiga-ui/cdk'; +import {type TuiMonth} from '@taiga-ui/cdk'; @Component({ selector: 'input-month-example-2', diff --git a/projects/demo/src/modules/components/input-month/input-month.component.ts b/projects/demo/src/modules/components/input-month/input-month.component.ts index 183139043c0a..46bef210228c 100644 --- a/projects/demo/src/modules/components/input-month/input-month.component.ts +++ b/projects/demo/src/modules/components/input-month/input-month.component.ts @@ -1,12 +1,12 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - TuiBooleanHandler, + type TuiBooleanHandler, TuiDay, TuiMonth, } from '@taiga-ui/cdk'; diff --git a/projects/demo/src/modules/components/input-number/examples/7/index.ts b/projects/demo/src/modules/components/input-number/examples/7/index.ts index f9d3dc3ed6ac..ffd66e2aac4e 100644 --- a/projects/demo/src/modules/components/input-number/examples/7/index.ts +++ b/projects/demo/src/modules/components/input-number/examples/7/index.ts @@ -2,8 +2,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TUI_DEFAULT_NUMBER_FORMAT, TUI_NUMBER_FORMAT} from '@taiga-ui/core'; -import {TUI_LANGUAGE, TuiLanguage} from '@taiga-ui/i18n'; -import {BehaviorSubject, map, Observable, switchMap} from 'rxjs'; +import {TUI_LANGUAGE, type TuiLanguage} from '@taiga-ui/i18n'; +import {type BehaviorSubject, map, type Observable, switchMap} from 'rxjs'; @Component({ selector: 'tui-input-number-example-7', diff --git a/projects/demo/src/modules/components/input-number/input-number.component.ts b/projects/demo/src/modules/components/input-number/input-number.component.ts index 1ad6c6f595c1..5d91acca6f3f 100644 --- a/projects/demo/src/modules/components/input-number/input-number.component.ts +++ b/projects/demo/src/modules/components/input-number/input-number.component.ts @@ -1,8 +1,8 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiDecimal} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDecimal} from '@taiga-ui/core'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-password/input-password.component.ts b/projects/demo/src/modules/components/input-password/input-password.component.ts index c417d16a4cc2..12539d321555 100644 --- a/projects/demo/src/modules/components/input-password/input-password.component.ts +++ b/projects/demo/src/modules/components/input-password/input-password.component.ts @@ -1,7 +1,7 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-phone-international/input-phone-international.component.ts b/projects/demo/src/modules/components/input-phone-international/input-phone-international.component.ts index ea24c4056996..3c1007b74f4e 100644 --- a/projects/demo/src/modules/components/input-phone-international/input-phone-international.component.ts +++ b/projects/demo/src/modules/components/input-phone-international/input-phone-international.component.ts @@ -1,7 +1,7 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {TuiCountryIsoCode} from '@taiga-ui/i18n'; import {AbstractExampleTuiControl} from '../abstract/control'; diff --git a/projects/demo/src/modules/components/input-phone/examples/3/index.ts b/projects/demo/src/modules/components/input-phone/examples/3/index.ts index 031813530391..2eae01263fa6 100644 --- a/projects/demo/src/modules/components/input-phone/examples/3/index.ts +++ b/projects/demo/src/modules/components/input-phone/examples/3/index.ts @@ -7,7 +7,7 @@ import { combineLatest, map, merge, - Observable, + type Observable, of, share, startWith, diff --git a/projects/demo/src/modules/components/input-phone/input-phone.component.ts b/projects/demo/src/modules/components/input-phone/input-phone.component.ts index 94e7bb9c620d..643243b397b3 100644 --- a/projects/demo/src/modules/components/input-phone/input-phone.component.ts +++ b/projects/demo/src/modules/components/input-phone/input-phone.component.ts @@ -1,7 +1,7 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-range/examples/5/index.ts b/projects/demo/src/modules/components/input-range/examples/5/index.ts index 0775824e7d67..dc113e2b6590 100644 --- a/projects/demo/src/modules/components/input-range/examples/5/index.ts +++ b/projects/demo/src/modules/components/input-range/examples/5/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiKeySteps} from '@taiga-ui/kit'; +import {type TuiKeySteps} from '@taiga-ui/kit'; @Component({ selector: 'tui-input-range-example-5', diff --git a/projects/demo/src/modules/components/input-range/input-range.component.ts b/projects/demo/src/modules/components/input-range/input-range.component.ts index 1d026245ee0a..d844974ffe59 100644 --- a/projects/demo/src/modules/components/input-range/input-range.component.ts +++ b/projects/demo/src/modules/components/input-range/input-range.component.ts @@ -1,10 +1,10 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiContext} from '@taiga-ui/cdk'; -import {TuiSizeL} from '@taiga-ui/core'; -import {TuiKeySteps} from '@taiga-ui/kit'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiContext} from '@taiga-ui/cdk'; +import {type TuiSizeL} from '@taiga-ui/core'; +import {type TuiKeySteps} from '@taiga-ui/kit'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-slider/examples/3/index.ts b/projects/demo/src/modules/components/input-slider/examples/3/index.ts index b2b2d20a14f2..f027c5cbe4fe 100644 --- a/projects/demo/src/modules/components/input-slider/examples/3/index.ts +++ b/projects/demo/src/modules/components/input-slider/examples/3/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiKeySteps} from '@taiga-ui/kit'; +import {type TuiKeySteps} from '@taiga-ui/kit'; @Component({ selector: 'tui-input-slider-example-3', diff --git a/projects/demo/src/modules/components/input-slider/examples/5/index.ts b/projects/demo/src/modules/components/input-slider/examples/5/index.ts index e43a47008855..bab1a785ab45 100644 --- a/projects/demo/src/modules/components/input-slider/examples/5/index.ts +++ b/projects/demo/src/modules/components/input-slider/examples/5/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiContext} from '@taiga-ui/cdk'; +import {type TuiContext} from '@taiga-ui/cdk'; @Component({ selector: 'tui-input-slider-example-5', diff --git a/projects/demo/src/modules/components/input-slider/input-slider.component.ts b/projects/demo/src/modules/components/input-slider/input-slider.component.ts index 29fddfcc017c..0db9fda5f483 100644 --- a/projects/demo/src/modules/components/input-slider/input-slider.component.ts +++ b/projects/demo/src/modules/components/input-slider/input-slider.component.ts @@ -1,10 +1,10 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiContext} from '@taiga-ui/cdk'; -import {TuiSizeL} from '@taiga-ui/core'; -import {TuiKeySteps} from '@taiga-ui/kit'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiContext} from '@taiga-ui/cdk'; +import {type TuiSizeL} from '@taiga-ui/core'; +import {type TuiKeySteps} from '@taiga-ui/kit'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-tag/examples/2/index.ts b/projects/demo/src/modules/components/input-tag/examples/2/index.ts index f0471441da32..af86d45820a5 100644 --- a/projects/demo/src/modules/components/input-tag/examples/2/index.ts +++ b/projects/demo/src/modules/components/input-tag/examples/2/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {delay, Observable, of, startWith, Subject, switchMap} from 'rxjs'; +import {delay, type Observable, of, startWith, Subject, switchMap} from 'rxjs'; const databaseMockData: readonly string[] = [ 'John Cleese', diff --git a/projects/demo/src/modules/components/input-tag/examples/4/index.ts b/projects/demo/src/modules/components/input-tag/examples/4/index.ts index a0f342ba6bfd..883055e35a9e 100644 --- a/projects/demo/src/modules/components/input-tag/examples/4/index.ts +++ b/projects/demo/src/modules/components/input-tag/examples/4/index.ts @@ -1,11 +1,11 @@ import {Component} from '@angular/core'; -import {AbstractControl, FormControl, ValidatorFn} from '@angular/forms'; +import {type AbstractControl, FormControl, type ValidatorFn} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import { EMPTY_ARRAY, TUI_DEFAULT_MATCHER, - TuiBooleanHandler, + type TuiBooleanHandler, tuiPure, TuiValidationError, } from '@taiga-ui/cdk'; diff --git a/projects/demo/src/modules/components/input-tag/examples/9/index.ts b/projects/demo/src/modules/components/input-tag/examples/9/index.ts index 8fb5d073c73f..6c3add6f5de6 100644 --- a/projects/demo/src/modules/components/input-tag/examples/9/index.ts +++ b/projects/demo/src/modules/components/input-tag/examples/9/index.ts @@ -2,9 +2,9 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {MaskitoOptions} from '@maskito/core'; +import {type MaskitoOptions} from '@maskito/core'; import {maskitoDateOptionsGenerator} from '@maskito/kit'; -import {TuiBooleanHandler, TuiDay} from '@taiga-ui/cdk'; +import {type TuiBooleanHandler, TuiDay} from '@taiga-ui/cdk'; @Component({ selector: 'tui-input-tag-example-9', diff --git a/projects/demo/src/modules/components/input-tag/input-tag.component.ts b/projects/demo/src/modules/components/input-tag/input-tag.component.ts index b1fcd77ecc38..07dcf3f6cb1a 100644 --- a/projects/demo/src/modules/components/input-tag/input-tag.component.ts +++ b/projects/demo/src/modules/components/input-tag/input-tag.component.ts @@ -1,14 +1,14 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; import { ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER, - TuiBooleanHandler, + type TuiBooleanHandler, } from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; -import {TuiStringifiableItem} from '@taiga-ui/kit'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import {type TuiStringifiableItem} from '@taiga-ui/kit'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-time/examples/2/index.ts b/projects/demo/src/modules/components/input-time/examples/2/index.ts index 75329a3ea019..e96993a97b4b 100644 --- a/projects/demo/src/modules/components/input-time/examples/2/index.ts +++ b/projects/demo/src/modules/components/input-time/examples/2/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiTime} from '@taiga-ui/cdk'; +import {type TuiTime} from '@taiga-ui/cdk'; import {tuiCreateTimePeriods} from '@taiga-ui/kit'; @Component({ diff --git a/projects/demo/src/modules/components/input-time/examples/3/index.ts b/projects/demo/src/modules/components/input-time/examples/3/index.ts index cf9356d1a63d..f433b36d78b3 100644 --- a/projects/demo/src/modules/components/input-time/examples/3/index.ts +++ b/projects/demo/src/modules/components/input-time/examples/3/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiTime} from '@taiga-ui/cdk'; +import {type TuiTime} from '@taiga-ui/cdk'; import {tuiCreateTimePeriods, tuiInputTimeOptionsProvider} from '@taiga-ui/kit'; @Component({ diff --git a/projects/demo/src/modules/components/input-time/examples/4/index.ts b/projects/demo/src/modules/components/input-time/examples/4/index.ts index 7bedaa2d80b1..486a3ed21dda 100644 --- a/projects/demo/src/modules/components/input-time/examples/4/index.ts +++ b/projects/demo/src/modules/components/input-time/examples/4/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiTime} from '@taiga-ui/cdk'; +import {type TuiTime} from '@taiga-ui/cdk'; import {tuiInputTimeOptionsProvider} from '@taiga-ui/kit'; @Component({ diff --git a/projects/demo/src/modules/components/input-time/examples/5/index.ts b/projects/demo/src/modules/components/input-time/examples/5/index.ts index f4516b955bbb..fa258fc48ac1 100644 --- a/projects/demo/src/modules/components/input-time/examples/5/index.ts +++ b/projects/demo/src/modules/components/input-time/examples/5/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiTime} from '@taiga-ui/cdk'; +import {type TuiTime} from '@taiga-ui/cdk'; import {tuiInputTimeOptionsProvider} from '@taiga-ui/kit'; @Component({ diff --git a/projects/demo/src/modules/components/input-time/input-time.component.ts b/projects/demo/src/modules/components/input-time/input-time.component.ts index 1d98e4982138..c68bf7967fc6 100644 --- a/projects/demo/src/modules/components/input-time/input-time.component.ts +++ b/projects/demo/src/modules/components/input-time/input-time.component.ts @@ -1,14 +1,14 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; import { ALWAYS_FALSE_HANDLER, - TuiBooleanHandler, + type TuiBooleanHandler, TuiTime, - TuiTimeMode, + type TuiTimeMode, } from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; import {tuiCreateTimePeriods} from '@taiga-ui/kit'; import {AbstractExampleTuiControl} from '../abstract/control'; diff --git a/projects/demo/src/modules/components/input-year/input-year.component.ts b/projects/demo/src/modules/components/input-year/input-year.component.ts index 9c78015e36c5..00dc8ff494b1 100644 --- a/projects/demo/src/modules/components/input-year/input-year.component.ts +++ b/projects/demo/src/modules/components/input-year/input-year.component.ts @@ -1,12 +1,12 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - TuiBooleanHandler, + type TuiBooleanHandler, } from '@taiga-ui/cdk'; import {AbstractExampleTuiControl} from '../abstract/control'; diff --git a/projects/demo/src/modules/components/input/examples/3/index.ts b/projects/demo/src/modules/components/input/examples/3/index.ts index b48a3e54c152..5c25e4dd38b1 100644 --- a/projects/demo/src/modules/components/input/examples/3/index.ts +++ b/projects/demo/src/modules/components/input/examples/3/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {MaskitoOptions} from '@maskito/core'; +import {type MaskitoOptions} from '@maskito/core'; @Component({ selector: 'tui-input-example-3', diff --git a/projects/demo/src/modules/components/input/examples/4/index.ts b/projects/demo/src/modules/components/input/examples/4/index.ts index 1045e57d23c7..064123326408 100644 --- a/projects/demo/src/modules/components/input/examples/4/index.ts +++ b/projects/demo/src/modules/components/input/examples/4/index.ts @@ -5,7 +5,7 @@ import {encapsulation} from '@demo/emulate/encapsulation'; import {assets} from '@demo/utils'; import {TuiCurrency} from '@taiga-ui/addon-commerce'; import {TUI_DEFAULT_MATCHER, tuiControlValue} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {map} from 'rxjs'; class User { diff --git a/projects/demo/src/modules/components/input/examples/8/index.ts b/projects/demo/src/modules/components/input/examples/8/index.ts index 25f9f1c099a1..0c6094ded2d3 100644 --- a/projects/demo/src/modules/components/input/examples/8/index.ts +++ b/projects/demo/src/modules/components/input/examples/8/index.ts @@ -4,7 +4,7 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {assets} from '@demo/utils'; import {TUI_DEFAULT_MATCHER} from '@taiga-ui/cdk'; -import {map, Observable, of, startWith, switchMap} from 'rxjs'; +import {map, type Observable, of, startWith, switchMap} from 'rxjs'; class User { constructor( diff --git a/projects/demo/src/modules/components/input/input.component.ts b/projects/demo/src/modules/components/input/input.component.ts index 56a0aaf14d40..ddd3c9a71d13 100644 --- a/projects/demo/src/modules/components/input/input.component.ts +++ b/projects/demo/src/modules/components/input/input.component.ts @@ -1,8 +1,8 @@ -import {Component, forwardRef, TemplateRef, ViewChild} from '@angular/core'; +import {Component, forwardRef, type TemplateRef, ViewChild} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/island/island.component.ts b/projects/demo/src/modules/components/island/island.component.ts index e1c0e14b6404..8d08cc7d233c 100644 --- a/projects/demo/src/modules/components/island/island.component.ts +++ b/projects/demo/src/modules/components/island/island.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-island', diff --git a/projects/demo/src/modules/components/items-with-more/items-with-more.component.ts b/projects/demo/src/modules/components/items-with-more/items-with-more.component.ts index 3568fcd17cb6..fc971eeaaf82 100644 --- a/projects/demo/src/modules/components/items-with-more/items-with-more.component.ts +++ b/projects/demo/src/modules/components/items-with-more/items-with-more.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-items-with-more', diff --git a/projects/demo/src/modules/components/label/label.component.ts b/projects/demo/src/modules/components/label/label.component.ts index 20e5cdcf7584..ebca085950e4 100644 --- a/projects/demo/src/modules/components/label/label.component.ts +++ b/projects/demo/src/modules/components/label/label.component.ts @@ -1,7 +1,7 @@ -import {Component, TemplateRef} from '@angular/core'; +import {Component, type TemplateRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'example-tui-label', diff --git a/projects/demo/src/modules/components/line-clamp/line-clamp.component.ts b/projects/demo/src/modules/components/line-clamp/line-clamp.component.ts index 2f2d60220850..0494f34c5ca9 100644 --- a/projects/demo/src/modules/components/line-clamp/line-clamp.component.ts +++ b/projects/demo/src/modules/components/line-clamp/line-clamp.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-line-clamp', diff --git a/projects/demo/src/modules/components/link/link.component.ts b/projects/demo/src/modules/components/link/link.component.ts index d3f54b2b331e..2fa4e333c1fa 100644 --- a/projects/demo/src/modules/components/link/link.component.ts +++ b/projects/demo/src/modules/components/link/link.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiHorizontalDirection} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiHorizontalDirection} from '@taiga-ui/core'; @Component({ selector: 'example-tui-link', diff --git a/projects/demo/src/modules/components/loader/loader.component.ts b/projects/demo/src/modules/components/loader/loader.component.ts index a09cd6678513..22084925b029 100644 --- a/projects/demo/src/modules/components/loader/loader.component.ts +++ b/projects/demo/src/modules/components/loader/loader.component.ts @@ -1,8 +1,8 @@ import {Component, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeXS, type TuiSizeXXL} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'example-tui-loader', diff --git a/projects/demo/src/modules/components/mobile-calendar/examples/1/index.ts b/projects/demo/src/modules/components/mobile-calendar/examples/1/index.ts index 0f126f78cdb0..abc17259ebfa 100644 --- a/projects/demo/src/modules/components/mobile-calendar/examples/1/index.ts +++ b/projects/demo/src/modules/components/mobile-calendar/examples/1/index.ts @@ -7,7 +7,7 @@ import {tuiControlValue, TuiDay} from '@taiga-ui/cdk'; import {TUI_MONTHS, TuiDialogService} from '@taiga-ui/core'; import {TUI_CALENDAR_DATE_STREAM} from '@taiga-ui/kit'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; -import {combineLatest, map, Observable} from 'rxjs'; +import {combineLatest, map, type Observable} from 'rxjs'; @Component({ selector: 'tui-mobile-calendar-example-1', diff --git a/projects/demo/src/modules/components/mobile-calendar/examples/4/index.ts b/projects/demo/src/modules/components/mobile-calendar/examples/4/index.ts index ae42d1e7f9a5..1678cc299b68 100644 --- a/projects/demo/src/modules/components/mobile-calendar/examples/4/index.ts +++ b/projects/demo/src/modules/components/mobile-calendar/examples/4/index.ts @@ -3,11 +3,11 @@ import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiMobileCalendarDialogComponent} from '@taiga-ui/addon-mobile'; -import {tuiControlValue, TuiDay, TuiDayRange} from '@taiga-ui/cdk'; +import {tuiControlValue, TuiDay, type TuiDayRange} from '@taiga-ui/cdk'; import {TUI_MONTHS, TuiDialogService} from '@taiga-ui/core'; import {TUI_CALENDAR_DATE_STREAM} from '@taiga-ui/kit'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; -import {combineLatest, map, Observable} from 'rxjs'; +import {combineLatest, map, type Observable} from 'rxjs'; @Component({ selector: 'tui-mobile-calendar-example-4', diff --git a/projects/demo/src/modules/components/mobile-calendar/examples/5/index.ts b/projects/demo/src/modules/components/mobile-calendar/examples/5/index.ts index 6fedff743ee0..7c4ed69ffde9 100644 --- a/projects/demo/src/modules/components/mobile-calendar/examples/5/index.ts +++ b/projects/demo/src/modules/components/mobile-calendar/examples/5/index.ts @@ -7,7 +7,7 @@ import {tuiControlValue, TuiDay} from '@taiga-ui/cdk'; import {TUI_MONTHS, TuiDialogService} from '@taiga-ui/core'; import {TUI_CALENDAR_DATE_STREAM} from '@taiga-ui/kit'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; -import {combineLatest, map, Observable} from 'rxjs'; +import {combineLatest, map, type Observable} from 'rxjs'; @Component({ selector: 'tui-mobile-calendar-example-5', diff --git a/projects/demo/src/modules/components/mobile-calendar/mobile-calendar.component.ts b/projects/demo/src/modules/components/mobile-calendar/mobile-calendar.component.ts index 278690448b96..4a734f186eef 100644 --- a/projects/demo/src/modules/components/mobile-calendar/mobile-calendar.component.ts +++ b/projects/demo/src/modules/components/mobile-calendar/mobile-calendar.component.ts @@ -1,18 +1,18 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - TuiBooleanHandler, + type TuiBooleanHandler, tuiControlValue, TuiDay, - TuiDayRange, + type TuiDayRange, } from '@taiga-ui/cdk'; import {TUI_CALENDAR_DATE_STREAM} from '@taiga-ui/kit'; -import {Observable} from 'rxjs'; +import {type Observable} from 'rxjs'; @Component({ selector: 'example-tui-mobile-calendar', diff --git a/projects/demo/src/modules/components/mobile-dialog/mobile-dialog.component.ts b/projects/demo/src/modules/components/mobile-dialog/mobile-dialog.component.ts index 7c666063d916..e017cf73b734 100644 --- a/projects/demo/src/modules/components/mobile-dialog/mobile-dialog.component.ts +++ b/projects/demo/src/modules/components/mobile-dialog/mobile-dialog.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-mobile-dialog', diff --git a/projects/demo/src/modules/components/mobile-themes/mobile-themes.component.ts b/projects/demo/src/modules/components/mobile-themes/mobile-themes.component.ts index 6c6bbfa49ab8..72419a405da4 100644 --- a/projects/demo/src/modules/components/mobile-themes/mobile-themes.component.ts +++ b/projects/demo/src/modules/components/mobile-themes/mobile-themes.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-mobile-themes', diff --git a/projects/demo/src/modules/components/multi-select/examples/1/index.ts b/projects/demo/src/modules/components/multi-select/examples/1/index.ts index fe7ff2510e99..b8217a07c7c4 100644 --- a/projects/demo/src/modules/components/multi-select/examples/1/index.ts +++ b/projects/demo/src/modules/components/multi-select/examples/1/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TUI_DEFAULT_MATCHER, TuiBooleanHandler, tuiPure} from '@taiga-ui/cdk'; +import {TUI_DEFAULT_MATCHER, type TuiBooleanHandler, tuiPure} from '@taiga-ui/cdk'; const ITEMS: readonly string[] = [ 'Luke Skywalker', diff --git a/projects/demo/src/modules/components/multi-select/examples/10/index.ts b/projects/demo/src/modules/components/multi-select/examples/10/index.ts index 5181467a7353..fe4f966c3080 100644 --- a/projects/demo/src/modules/components/multi-select/examples/10/index.ts +++ b/projects/demo/src/modules/components/multi-select/examples/10/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiBooleanHandler, TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiBooleanHandler, type TuiStringHandler} from '@taiga-ui/cdk'; interface Item { readonly id: number; diff --git a/projects/demo/src/modules/components/multi-select/examples/11/index.ts b/projects/demo/src/modules/components/multi-select/examples/11/index.ts index d67351e10c6a..e11da7969d3f 100644 --- a/projects/demo/src/modules/components/multi-select/examples/11/index.ts +++ b/projects/demo/src/modules/components/multi-select/examples/11/index.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiContext} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiContext} from '@taiga-ui/cdk'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-multi-select-example-11', diff --git a/projects/demo/src/modules/components/multi-select/examples/2/index.ts b/projects/demo/src/modules/components/multi-select/examples/2/index.ts index bb43eb26cd24..0ec1b5e54291 100644 --- a/projects/demo/src/modules/components/multi-select/examples/2/index.ts +++ b/projects/demo/src/modules/components/multi-select/examples/2/index.ts @@ -4,7 +4,7 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {assets} from '@demo/utils'; import {TUI_DEFAULT_MATCHER} from '@taiga-ui/cdk'; -import {delay, filter, Observable, of, startWith, Subject, switchMap} from 'rxjs'; +import {delay, filter, type Observable, of, startWith, Subject, switchMap} from 'rxjs'; class User { constructor( diff --git a/projects/demo/src/modules/components/multi-select/examples/3/index.ts b/projects/demo/src/modules/components/multi-select/examples/3/index.ts index 7bb1c4221d4d..3e2c2182fdd1 100644 --- a/projects/demo/src/modules/components/multi-select/examples/3/index.ts +++ b/projects/demo/src/modules/components/multi-select/examples/3/index.ts @@ -2,7 +2,11 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiContext, TuiIdentityMatcher, TuiStringHandler} from '@taiga-ui/cdk'; +import { + type TuiContext, + type TuiIdentityMatcher, + type TuiStringHandler, +} from '@taiga-ui/cdk'; interface Hero { readonly id: number; diff --git a/projects/demo/src/modules/components/multi-select/examples/4/index.ts b/projects/demo/src/modules/components/multi-select/examples/4/index.ts index f65798db49b0..e225d6672f05 100644 --- a/projects/demo/src/modules/components/multi-select/examples/4/index.ts +++ b/projects/demo/src/modules/components/multi-select/examples/4/index.ts @@ -1,8 +1,21 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TUI_DEFAULT_MATCHER, TuiContext, TuiHandler, tuiIsNumber} from '@taiga-ui/cdk'; -import {map, Observable, shareReplay, startWith, Subject, switchMap, timer} from 'rxjs'; +import { + TUI_DEFAULT_MATCHER, + type TuiContext, + type TuiHandler, + tuiIsNumber, +} from '@taiga-ui/cdk'; +import { + map, + type Observable, + shareReplay, + startWith, + Subject, + switchMap, + timer, +} from 'rxjs'; const DICTIONARY = [ {id: 1, name: 'Luke Skywalker'}, diff --git a/projects/demo/src/modules/components/multi-select/examples/8/index.ts b/projects/demo/src/modules/components/multi-select/examples/8/index.ts index 7cac25883dd8..f514fb588bcd 100644 --- a/projects/demo/src/modules/components/multi-select/examples/8/index.ts +++ b/projects/demo/src/modules/components/multi-select/examples/8/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiContext} from '@taiga-ui/cdk'; +import {type TuiContext} from '@taiga-ui/cdk'; import {tuiItemsHandlersProvider} from '@taiga-ui/kit'; interface Employee { diff --git a/projects/demo/src/modules/components/multi-select/examples/9/index.ts b/projects/demo/src/modules/components/multi-select/examples/9/index.ts index 42e3767b65cf..48e9eea6f0cd 100644 --- a/projects/demo/src/modules/components/multi-select/examples/9/index.ts +++ b/projects/demo/src/modules/components/multi-select/examples/9/index.ts @@ -2,8 +2,13 @@ import {Component, inject} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDialogContext, TuiDialogService, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import { + type TuiDialogContext, + TuiDialogService, + type TuiSizeL, + type TuiSizeS, +} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-multi-select-example-9', diff --git a/projects/demo/src/modules/components/multi-select/multi-select.component.ts b/projects/demo/src/modules/components/multi-select/multi-select.component.ts index 6a3d67a02fdf..4418df053809 100644 --- a/projects/demo/src/modules/components/multi-select/multi-select.component.ts +++ b/projects/demo/src/modules/components/multi-select/multi-select.component.ts @@ -1,18 +1,18 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; import { ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER, TUI_DEFAULT_STRINGIFY, - TuiBooleanHandler, - TuiContext, - TuiIdentityMatcher, - TuiStringHandler, + type TuiBooleanHandler, + type TuiContext, + type TuiIdentityMatcher, + type TuiStringHandler, } from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/notification/notification.component.ts b/projects/demo/src/modules/components/notification/notification.component.ts index a52c419f3996..12d219221439 100644 --- a/projects/demo/src/modules/components/notification/notification.component.ts +++ b/projects/demo/src/modules/components/notification/notification.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiNotification} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiNotification} from '@taiga-ui/core'; @Component({ selector: 'example-notification', diff --git a/projects/demo/src/modules/components/pagination/pagination.component.ts b/projects/demo/src/modules/components/pagination/pagination.component.ts index e90063a7ca1e..63ce77d7af44 100644 --- a/projects/demo/src/modules/components/pagination/pagination.component.ts +++ b/projects/demo/src/modules/components/pagination/pagination.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-tui-pagination', diff --git a/projects/demo/src/modules/components/pdf-viewer/examples/1/index.ts b/projects/demo/src/modules/components/pdf-viewer/examples/1/index.ts index 3c6506e7c566..d9dee8e05a6a 100644 --- a/projects/demo/src/modules/components/pdf-viewer/examples/1/index.ts +++ b/projects/demo/src/modules/components/pdf-viewer/examples/1/index.ts @@ -3,8 +3,8 @@ import {DomSanitizer} from '@angular/platform-browser'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TUI_IS_MOBILE} from '@taiga-ui/cdk'; -import {TuiPdfViewerOptions, TuiPdfViewerService} from '@taiga-ui/kit'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiPdfViewerOptions, TuiPdfViewerService} from '@taiga-ui/kit'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-pdf-viewer-example-1', diff --git a/projects/demo/src/modules/components/pdf-viewer/examples/2/actions-content.component.ts b/projects/demo/src/modules/components/pdf-viewer/examples/2/actions-content.component.ts index c8a488330b2c..51b26becd4e4 100644 --- a/projects/demo/src/modules/components/pdf-viewer/examples/2/actions-content.component.ts +++ b/projects/demo/src/modules/components/pdf-viewer/examples/2/actions-content.component.ts @@ -1,6 +1,6 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; -import {TuiPopover} from '@taiga-ui/cdk'; -import {TuiPdfViewerOptions} from '@taiga-ui/kit'; +import {type TuiPopover} from '@taiga-ui/cdk'; +import {type TuiPdfViewerOptions} from '@taiga-ui/kit'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; import type {Buttons} from './index'; diff --git a/projects/demo/src/modules/components/pdf-viewer/examples/2/index.ts b/projects/demo/src/modules/components/pdf-viewer/examples/2/index.ts index 0b890d9c9297..46296787eaeb 100644 --- a/projects/demo/src/modules/components/pdf-viewer/examples/2/index.ts +++ b/projects/demo/src/modules/components/pdf-viewer/examples/2/index.ts @@ -1,9 +1,9 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiPopover} from '@taiga-ui/cdk'; +import {type TuiPopover} from '@taiga-ui/cdk'; import {TuiAlertService} from '@taiga-ui/core'; -import {TuiPdfViewerOptions, TuiPdfViewerService} from '@taiga-ui/kit'; +import {type TuiPdfViewerOptions, TuiPdfViewerService} from '@taiga-ui/kit'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; import {switchMap} from 'rxjs'; diff --git a/projects/demo/src/modules/components/pdf-viewer/pdf-viewer.component.ts b/projects/demo/src/modules/components/pdf-viewer/pdf-viewer.component.ts index e0fbd0ff15fd..74c4dabc4534 100644 --- a/projects/demo/src/modules/components/pdf-viewer/pdf-viewer.component.ts +++ b/projects/demo/src/modules/components/pdf-viewer/pdf-viewer.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-pdf-viewer', diff --git a/projects/demo/src/modules/components/preview/examples/1/index.ts b/projects/demo/src/modules/components/preview/examples/1/index.ts index f0517b0d835f..d6d67199e79d 100644 --- a/projects/demo/src/modules/components/preview/examples/1/index.ts +++ b/projects/demo/src/modules/components/preview/examples/1/index.ts @@ -1,10 +1,10 @@ -import {Component, inject, TemplateRef, ViewChild} from '@angular/core'; +import {Component, inject, type TemplateRef, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiPreviewDialogService} from '@taiga-ui/addon-preview'; -import {tuiClamp, TuiSwipe} from '@taiga-ui/cdk'; -import {TuiAlertService, TuiDialogContext} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {tuiClamp, type TuiSwipe} from '@taiga-ui/cdk'; +import {TuiAlertService, type TuiDialogContext} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-preview-example-1', diff --git a/projects/demo/src/modules/components/preview/examples/2/index.ts b/projects/demo/src/modules/components/preview/examples/2/index.ts index 76504dbb93bb..adf8bf1f13b5 100644 --- a/projects/demo/src/modules/components/preview/examples/2/index.ts +++ b/projects/demo/src/modules/components/preview/examples/2/index.ts @@ -1,8 +1,8 @@ -import {Component, inject, TemplateRef, ViewChild} from '@angular/core'; +import {Component, inject, type TemplateRef, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiPreviewDialogService} from '@taiga-ui/addon-preview'; -import {TuiDialogContext} from '@taiga-ui/core'; +import {type TuiDialogContext} from '@taiga-ui/core'; @Component({ selector: 'tui-preview-example-2', diff --git a/projects/demo/src/modules/components/preview/examples/3/index.ts b/projects/demo/src/modules/components/preview/examples/3/index.ts index a189221e0c11..61183a5fae06 100644 --- a/projects/demo/src/modules/components/preview/examples/3/index.ts +++ b/projects/demo/src/modules/components/preview/examples/3/index.ts @@ -1,14 +1,14 @@ -import {Component, inject, TemplateRef, ViewChild} from '@angular/core'; +import {Component, inject, type TemplateRef, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiPreviewDialogService} from '@taiga-ui/addon-preview'; import {tuiIsPresent} from '@taiga-ui/cdk'; -import {TuiDialogContext} from '@taiga-ui/core'; +import {type TuiDialogContext} from '@taiga-ui/core'; import { BehaviorSubject, filter, map, - Observable, + type Observable, of, startWith, switchMap, diff --git a/projects/demo/src/modules/components/preview/preview.component.ts b/projects/demo/src/modules/components/preview/preview.component.ts index 34b914db702b..c2c2b04e4c9f 100644 --- a/projects/demo/src/modules/components/preview/preview.component.ts +++ b/projects/demo/src/modules/components/preview/preview.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-preview', diff --git a/projects/demo/src/modules/components/primitive-textfield/examples/1/index.ts b/projects/demo/src/modules/components/primitive-textfield/examples/1/index.ts index 4f364470aaa0..b044c671e0b3 100644 --- a/projects/demo/src/modules/components/primitive-textfield/examples/1/index.ts +++ b/projects/demo/src/modules/components/primitive-textfield/examples/1/index.ts @@ -1,7 +1,7 @@ import {Component, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {AbstractTuiControl, TuiNativeFocusableElement} from '@taiga-ui/cdk'; +import {AbstractTuiControl, type TuiNativeFocusableElement} from '@taiga-ui/cdk'; import {TuiPrimitiveTextfieldComponent} from '@taiga-ui/core'; @Component({ diff --git a/projects/demo/src/modules/components/primitive-textfield/examples/2/index.ts b/projects/demo/src/modules/components/primitive-textfield/examples/2/index.ts index 013fb585ff39..e59d6f5e150e 100644 --- a/projects/demo/src/modules/components/primitive-textfield/examples/2/index.ts +++ b/projects/demo/src/modules/components/primitive-textfield/examples/2/index.ts @@ -1,7 +1,7 @@ import {Component, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {AbstractTuiControl, TuiNativeFocusableElement} from '@taiga-ui/cdk'; +import {AbstractTuiControl, type TuiNativeFocusableElement} from '@taiga-ui/cdk'; import { TuiPrimitiveTextfieldComponent, tuiTextfieldOptionsProvider, diff --git a/projects/demo/src/modules/components/primitive-textfield/primitive-textfield.component.ts b/projects/demo/src/modules/components/primitive-textfield/primitive-textfield.component.ts index 8bd978994464..f26a71dfbdcc 100644 --- a/projects/demo/src/modules/components/primitive-textfield/primitive-textfield.component.ts +++ b/projects/demo/src/modules/components/primitive-textfield/primitive-textfield.component.ts @@ -1,9 +1,9 @@ import {Component, forwardRef, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiContext, TuiInputMode, TuiInputType} from '@taiga-ui/cdk'; -import {TUI_HINT_DIRECTIONS, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiContext, type TuiInputMode, type TuiInputType} from '@taiga-ui/cdk'; +import {TUI_HINT_DIRECTIONS, type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; import {AbstractExampleTuiInteractive} from '../abstract/interactive'; diff --git a/projects/demo/src/modules/components/progress-bar/progress-bar.component.ts b/projects/demo/src/modules/components/progress-bar/progress-bar.component.ts index bba653fe1bc3..f6e09badbab3 100644 --- a/projects/demo/src/modules/components/progress-bar/progress-bar.component.ts +++ b/projects/demo/src/modules/components/progress-bar/progress-bar.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeXS, type TuiSizeXXL} from '@taiga-ui/core'; @Component({ selector: 'example-tui-progress-bar', diff --git a/projects/demo/src/modules/components/progress-circle/progress-circle.component.ts b/projects/demo/src/modules/components/progress-circle/progress-circle.component.ts index 0402a431ef31..1f313b43de2d 100644 --- a/projects/demo/src/modules/components/progress-circle/progress-circle.component.ts +++ b/projects/demo/src/modules/components/progress-circle/progress-circle.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeS, TuiSizeXL} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeS, type TuiSizeXL} from '@taiga-ui/core'; import {tuiInputNumberOptionsProvider} from '@taiga-ui/kit'; @Component({ diff --git a/projects/demo/src/modules/components/progress-segmented/progress-segmented.component.ts b/projects/demo/src/modules/components/progress-segmented/progress-segmented.component.ts index e8f4e421dc6d..5fc7e74ddc6b 100644 --- a/projects/demo/src/modules/components/progress-segmented/progress-segmented.component.ts +++ b/projects/demo/src/modules/components/progress-segmented/progress-segmented.component.ts @@ -1,6 +1,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeS} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-progress-segmented', diff --git a/projects/demo/src/modules/components/prompt/examples/1/index.ts b/projects/demo/src/modules/components/prompt/examples/1/index.ts index e37ffd7a2a2f..367aacf4a4d6 100644 --- a/projects/demo/src/modules/components/prompt/examples/1/index.ts +++ b/projects/demo/src/modules/components/prompt/examples/1/index.ts @@ -2,7 +2,7 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiAlertService, TuiDialogService} from '@taiga-ui/core'; -import {TUI_PROMPT, TuiPromptData} from '@taiga-ui/kit'; +import {TUI_PROMPT, type TuiPromptData} from '@taiga-ui/kit'; import {switchMap} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/components/prompt/prompt.component.ts b/projects/demo/src/modules/components/prompt/prompt.component.ts index 6ee900d3c01f..414bad3ac0f2 100644 --- a/projects/demo/src/modules/components/prompt/prompt.component.ts +++ b/projects/demo/src/modules/components/prompt/prompt.component.ts @@ -1,8 +1,8 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {TuiAlertService, TuiDialogService} from '@taiga-ui/core'; -import {TUI_PROMPT, TuiPromptData} from '@taiga-ui/kit'; +import {TUI_PROMPT, type TuiPromptData} from '@taiga-ui/kit'; import {switchMap} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/components/pull-to-refresh/pull-to-refresh.component.ts b/projects/demo/src/modules/components/pull-to-refresh/pull-to-refresh.component.ts index cd616b30abae..3aef4b081b3c 100644 --- a/projects/demo/src/modules/components/pull-to-refresh/pull-to-refresh.component.ts +++ b/projects/demo/src/modules/components/pull-to-refresh/pull-to-refresh.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-mobile-pull-to-refresh-page', diff --git a/projects/demo/src/modules/components/push/push.component.ts b/projects/demo/src/modules/components/push/push.component.ts index 8eee6081ba6e..2dfe47d6c9db 100644 --- a/projects/demo/src/modules/components/push/push.component.ts +++ b/projects/demo/src/modules/components/push/push.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-push', diff --git a/projects/demo/src/modules/components/radio-list/radio-list.component.ts b/projects/demo/src/modules/components/radio-list/radio-list.component.ts index cbf898b7e39d..97025c09418d 100644 --- a/projects/demo/src/modules/components/radio-list/radio-list.component.ts +++ b/projects/demo/src/modules/components/radio-list/radio-list.component.ts @@ -1,13 +1,13 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import { ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER, - TuiBooleanHandler, + type TuiBooleanHandler, } from '@taiga-ui/cdk'; -import {TuiOrientation, TuiSizeL} from '@taiga-ui/core'; +import {type TuiOrientation, type TuiSizeL} from '@taiga-ui/core'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/radio/radio.component.ts b/projects/demo/src/modules/components/radio/radio.component.ts index 719ad4406c14..3f5b8819349c 100644 --- a/projects/demo/src/modules/components/radio/radio.component.ts +++ b/projects/demo/src/modules/components/radio/radio.component.ts @@ -1,9 +1,9 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TUI_DEFAULT_IDENTITY_MATCHER, TuiIdentityMatcher} from '@taiga-ui/cdk'; -import {TuiSizeL} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {TUI_DEFAULT_IDENTITY_MATCHER, type TuiIdentityMatcher} from '@taiga-ui/cdk'; +import {type TuiSizeL} from '@taiga-ui/core'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/range/examples/4/index.ts b/projects/demo/src/modules/components/range/examples/4/index.ts index c09b7dfe7ee5..63b5d42842dd 100644 --- a/projects/demo/src/modules/components/range/examples/4/index.ts +++ b/projects/demo/src/modules/components/range/examples/4/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiKeySteps} from '@taiga-ui/kit'; +import {type TuiKeySteps} from '@taiga-ui/kit'; @Component({ selector: 'tui-range-example-4', diff --git a/projects/demo/src/modules/components/range/range.component.ts b/projects/demo/src/modules/components/range/range.component.ts index 3e4debe68593..e9639541c2af 100644 --- a/projects/demo/src/modules/components/range/range.component.ts +++ b/projects/demo/src/modules/components/range/range.component.ts @@ -1,9 +1,9 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeS} from '@taiga-ui/core'; -import {TuiKeySteps} from '@taiga-ui/kit'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeS} from '@taiga-ui/core'; +import {type TuiKeySteps} from '@taiga-ui/kit'; @Component({ selector: 'example-range', diff --git a/projects/demo/src/modules/components/rating/rating.component.ts b/projects/demo/src/modules/components/rating/rating.component.ts index 08b6a9443bdc..4cd07b7bd85f 100644 --- a/projects/demo/src/modules/components/rating/rating.component.ts +++ b/projects/demo/src/modules/components/rating/rating.component.ts @@ -2,7 +2,7 @@ import {Component, inject} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; import {TUI_RATING_OPTIONS} from '@taiga-ui/kit'; @Component({ diff --git a/projects/demo/src/modules/components/scrollbar/scrollbar.component.ts b/projects/demo/src/modules/components/scrollbar/scrollbar.component.ts index 53ce0adf4ecc..727f49db539f 100644 --- a/projects/demo/src/modules/components/scrollbar/scrollbar.component.ts +++ b/projects/demo/src/modules/components/scrollbar/scrollbar.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-scrollbar', diff --git a/projects/demo/src/modules/components/select/examples/11/index.ts b/projects/demo/src/modules/components/select/examples/11/index.ts index 56075457e00c..2e652bb92fdc 100644 --- a/projects/demo/src/modules/components/select/examples/11/index.ts +++ b/projects/demo/src/modules/components/select/examples/11/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiBooleanHandler, TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiBooleanHandler, type TuiStringHandler} from '@taiga-ui/cdk'; interface Item { id: number; diff --git a/projects/demo/src/modules/components/select/examples/4/index.ts b/projects/demo/src/modules/components/select/examples/4/index.ts index 3e47457a531c..a9a51648157c 100644 --- a/projects/demo/src/modules/components/select/examples/4/index.ts +++ b/projects/demo/src/modules/components/select/examples/4/index.ts @@ -2,7 +2,7 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiAlertService} from '@taiga-ui/core'; -import {TuiSelectComponent} from '@taiga-ui/kit'; +import {type TuiSelectComponent} from '@taiga-ui/kit'; @Component({ selector: 'tui-select-example-4', diff --git a/projects/demo/src/modules/components/select/examples/5/index.ts b/projects/demo/src/modules/components/select/examples/5/index.ts index ea89e8f8bcf9..a5c54028951a 100644 --- a/projects/demo/src/modules/components/select/examples/5/index.ts +++ b/projects/demo/src/modules/components/select/examples/5/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiContext, tuiPure, TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiContext, tuiPure, type TuiStringHandler} from '@taiga-ui/cdk'; import {delay, of} from 'rxjs'; interface Python { diff --git a/projects/demo/src/modules/components/select/examples/6/index.ts b/projects/demo/src/modules/components/select/examples/6/index.ts index b9ff564ddea6..82d1e77e7a13 100644 --- a/projects/demo/src/modules/components/select/examples/6/index.ts +++ b/projects/demo/src/modules/components/select/examples/6/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {assets} from '@demo/utils'; -import {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {type TuiBooleanHandler} from '@taiga-ui/cdk'; import {delay, of} from 'rxjs'; class User { diff --git a/projects/demo/src/modules/components/select/examples/7/index.ts b/projects/demo/src/modules/components/select/examples/7/index.ts index fafdb73cddf8..2dbf1f285cd9 100644 --- a/projects/demo/src/modules/components/select/examples/7/index.ts +++ b/projects/demo/src/modules/components/select/examples/7/index.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {EMPTY_ARRAY, TuiStringHandler} from '@taiga-ui/cdk'; -import {TuiValueContentContext} from '@taiga-ui/core'; +import {EMPTY_ARRAY, type TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiValueContentContext} from '@taiga-ui/core'; interface Account { readonly account: string; diff --git a/projects/demo/src/modules/components/select/examples/9/account/my-account.component.ts b/projects/demo/src/modules/components/select/examples/9/account/my-account.component.ts index 10b5f46b896b..bc099574477e 100644 --- a/projects/demo/src/modules/components/select/examples/9/account/my-account.component.ts +++ b/projects/demo/src/modules/components/select/examples/9/account/my-account.component.ts @@ -1,6 +1,6 @@ import {ChangeDetectionStrategy, Component, Input} from '@angular/core'; -import {TuiCurrencyVariants} from '@taiga-ui/addon-commerce'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface MyAccount { amount: number; diff --git a/projects/demo/src/modules/components/select/examples/9/index.ts b/projects/demo/src/modules/components/select/examples/9/index.ts index ae56f173d9ec..dd1d89857615 100644 --- a/projects/demo/src/modules/components/select/examples/9/index.ts +++ b/projects/demo/src/modules/components/select/examples/9/index.ts @@ -4,7 +4,7 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiCurrency} from '@taiga-ui/addon-commerce'; -import {MyAccount} from './account/my-account.component'; +import {type MyAccount} from './account/my-account.component'; @Component({ selector: 'tui-select-example-9', diff --git a/projects/demo/src/modules/components/select/select.component.ts b/projects/demo/src/modules/components/select/select.component.ts index 68f699ed8f2c..822121166519 100644 --- a/projects/demo/src/modules/components/select/select.component.ts +++ b/projects/demo/src/modules/components/select/select.component.ts @@ -1,10 +1,14 @@ import {Component, forwardRef, ViewChild} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; -import {ALWAYS_FALSE_HANDLER, TuiBooleanHandler, TuiIdentityMatcher} from '@taiga-ui/cdk'; -import {TuiValueContentContext} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; +import { + ALWAYS_FALSE_HANDLER, + type TuiBooleanHandler, + type TuiIdentityMatcher, +} from '@taiga-ui/cdk'; +import {type TuiValueContentContext} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/sheet-dialog/examples/2/index.ts b/projects/demo/src/modules/components/sheet-dialog/examples/2/index.ts index 8963b28ad784..103d9e4f95ae 100644 --- a/projects/demo/src/modules/components/sheet-dialog/examples/2/index.ts +++ b/projects/demo/src/modules/components/sheet-dialog/examples/2/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiSheetDialogOptions} from '@taiga-ui/addon-mobile'; +import {type TuiSheetDialogOptions} from '@taiga-ui/addon-mobile'; @Component({ selector: 'tui-sheet-dialog-example-2', diff --git a/projects/demo/src/modules/components/sheet-dialog/examples/4/index.ts b/projects/demo/src/modules/components/sheet-dialog/examples/4/index.ts index b5c9b5e95e0e..dd31e3c5b0e8 100644 --- a/projects/demo/src/modules/components/sheet-dialog/examples/4/index.ts +++ b/projects/demo/src/modules/components/sheet-dialog/examples/4/index.ts @@ -6,7 +6,7 @@ import { TUI_DEFAULT_MATCHER, TUI_WINDOW_SIZE, tuiControlValue, - TuiSwipeDirection, + type TuiSwipeDirection, } from '@taiga-ui/cdk'; import {TuiInputComponent} from '@taiga-ui/kit'; import {map} from 'rxjs'; diff --git a/projects/demo/src/modules/components/sheet-dialog/sheet-dialog.component.ts b/projects/demo/src/modules/components/sheet-dialog/sheet-dialog.component.ts index 51a881da54fd..7521d502a687 100644 --- a/projects/demo/src/modules/components/sheet-dialog/sheet-dialog.component.ts +++ b/projects/demo/src/modules/components/sheet-dialog/sheet-dialog.component.ts @@ -1,6 +1,6 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {TUI_SHEET_DIALOG_DEFAULT_OPTIONS} from '@taiga-ui/addon-mobile'; import {TUI_IS_MOBILE} from '@taiga-ui/cdk'; diff --git a/projects/demo/src/modules/components/sheet/examples/2/index.ts b/projects/demo/src/modules/components/sheet/examples/2/index.ts index ac42b01f7485..87b5dff500c8 100644 --- a/projects/demo/src/modules/components/sheet/examples/2/index.ts +++ b/projects/demo/src/modules/components/sheet/examples/2/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiSheetOptions} from '@taiga-ui/addon-mobile'; +import {type TuiSheetOptions} from '@taiga-ui/addon-mobile'; @Component({ selector: 'tui-sheet-example-2', diff --git a/projects/demo/src/modules/components/sheet/examples/3/index.ts b/projects/demo/src/modules/components/sheet/examples/3/index.ts index 506701760d93..97edc43f7ae4 100644 --- a/projects/demo/src/modules/components/sheet/examples/3/index.ts +++ b/projects/demo/src/modules/components/sheet/examples/3/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiSheetOptions} from '@taiga-ui/addon-mobile'; +import {type TuiSheetOptions} from '@taiga-ui/addon-mobile'; @Component({ selector: 'tui-sheet-example-3', diff --git a/projects/demo/src/modules/components/sheet/examples/4/index.ts b/projects/demo/src/modules/components/sheet/examples/4/index.ts index f1a82b0c53d5..d51c3cb1f1f0 100644 --- a/projects/demo/src/modules/components/sheet/examples/4/index.ts +++ b/projects/demo/src/modules/components/sheet/examples/4/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiSheetOptions} from '@taiga-ui/addon-mobile'; +import {type TuiSheetOptions} from '@taiga-ui/addon-mobile'; @Component({ selector: 'tui-sheet-example-4', diff --git a/projects/demo/src/modules/components/sheet/examples/5/index.ts b/projects/demo/src/modules/components/sheet/examples/5/index.ts index bc23cd4291de..8fe23ea2480b 100644 --- a/projects/demo/src/modules/components/sheet/examples/5/index.ts +++ b/projects/demo/src/modules/components/sheet/examples/5/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiSheetOptions} from '@taiga-ui/addon-mobile'; +import {type TuiSheetOptions} from '@taiga-ui/addon-mobile'; const FRAMES = 166; diff --git a/projects/demo/src/modules/components/sheet/examples/6/index.ts b/projects/demo/src/modules/components/sheet/examples/6/index.ts index 07088afe59ea..050c303484dc 100644 --- a/projects/demo/src/modules/components/sheet/examples/6/index.ts +++ b/projects/demo/src/modules/components/sheet/examples/6/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiSheetOptions} from '@taiga-ui/addon-mobile'; +import {type TuiSheetOptions} from '@taiga-ui/addon-mobile'; @Component({ selector: 'tui-sheet-example-6', diff --git a/projects/demo/src/modules/components/sheet/sheet.component.ts b/projects/demo/src/modules/components/sheet/sheet.component.ts index 49a388f4be91..c314c1ca16f0 100644 --- a/projects/demo/src/modules/components/sheet/sheet.component.ts +++ b/projects/demo/src/modules/components/sheet/sheet.component.ts @@ -1,13 +1,13 @@ import {Component, inject, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import { TUI_SHEET_DEFAULT_OPTIONS, - TuiSheet, - TuiSheetOptions, + type TuiSheet, + type TuiSheetOptions, } from '@taiga-ui/addon-mobile'; import {TUI_IS_MOBILE} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'example-sheet', diff --git a/projects/demo/src/modules/components/slider/examples/5/index.ts b/projects/demo/src/modules/components/slider/examples/5/index.ts index b452135c2c3e..d02431d6c6aa 100644 --- a/projects/demo/src/modules/components/slider/examples/5/index.ts +++ b/projects/demo/src/modules/components/slider/examples/5/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiKeySteps} from '@taiga-ui/kit'; +import {type TuiKeySteps} from '@taiga-ui/kit'; @Component({ selector: 'tui-slider-example-5', diff --git a/projects/demo/src/modules/components/slider/slider.component.ts b/projects/demo/src/modules/components/slider/slider.component.ts index 648cbdc9ca29..042fde26081b 100644 --- a/projects/demo/src/modules/components/slider/slider.component.ts +++ b/projects/demo/src/modules/components/slider/slider.component.ts @@ -1,7 +1,7 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormControl} from '@angular/forms'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeS} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-slider', diff --git a/projects/demo/src/modules/components/stepper/stepper.component.ts b/projects/demo/src/modules/components/stepper/stepper.component.ts index 42f50be3ca9a..71884f1625cb 100644 --- a/projects/demo/src/modules/components/stepper/stepper.component.ts +++ b/projects/demo/src/modules/components/stepper/stepper.component.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiOrientation} from '@taiga-ui/core'; -import {TuiStepState} from '@taiga-ui/kit'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiOrientation} from '@taiga-ui/core'; +import {type TuiStepState} from '@taiga-ui/kit'; @Component({ selector: 'example-tui-stepper', diff --git a/projects/demo/src/modules/components/swipe-action/swipe-actions.component.ts b/projects/demo/src/modules/components/swipe-action/swipe-actions.component.ts index fc6a0a69f524..57cd8e682c2d 100644 --- a/projects/demo/src/modules/components/swipe-action/swipe-actions.component.ts +++ b/projects/demo/src/modules/components/swipe-action/swipe-actions.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-swipe-actions', diff --git a/projects/demo/src/modules/components/tab-bar/tab-bar.component.ts b/projects/demo/src/modules/components/tab-bar/tab-bar.component.ts index a4d4a7a56e99..81eef9151ea9 100644 --- a/projects/demo/src/modules/components/tab-bar/tab-bar.component.ts +++ b/projects/demo/src/modules/components/tab-bar/tab-bar.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-tab-bar', diff --git a/projects/demo/src/modules/components/tabs/tabs.component.ts b/projects/demo/src/modules/components/tabs/tabs.component.ts index fd69272c192c..786c0ca91c13 100644 --- a/projects/demo/src/modules/components/tabs/tabs.component.ts +++ b/projects/demo/src/modules/components/tabs/tabs.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, tuiDocExampleOptionsProvider} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, tuiDocExampleOptionsProvider} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-tabs', diff --git a/projects/demo/src/modules/components/tag/tag.component.ts b/projects/demo/src/modules/components/tag/tag.component.ts index 5da3364d7825..53cc62da04e5 100644 --- a/projects/demo/src/modules/components/tag/tag.component.ts +++ b/projects/demo/src/modules/components/tag/tag.component.ts @@ -1,9 +1,9 @@ -import {Component, TemplateRef, ViewChild} from '@angular/core'; +import {Component, type TemplateRef, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; -import {TuiStatus} from '@taiga-ui/kit'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import {type TuiStatus} from '@taiga-ui/kit'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'example-tag', diff --git a/projects/demo/src/modules/components/textarea/examples/4/index.ts b/projects/demo/src/modules/components/textarea/examples/4/index.ts index 78cb028e4852..ad5760b4a1dc 100644 --- a/projects/demo/src/modules/components/textarea/examples/4/index.ts +++ b/projects/demo/src/modules/components/textarea/examples/4/index.ts @@ -1,4 +1,4 @@ -import {AfterViewInit, Component} from '@angular/core'; +import {type AfterViewInit, Component} from '@angular/core'; import {FormControl, FormGroup, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; diff --git a/projects/demo/src/modules/components/textarea/textarea.component.ts b/projects/demo/src/modules/components/textarea/textarea.component.ts index ce99df081bcb..7941868b9fe6 100644 --- a/projects/demo/src/modules/components/textarea/textarea.component.ts +++ b/projects/demo/src/modules/components/textarea/textarea.component.ts @@ -1,8 +1,8 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; -import {TuiSizeL, TuiSizeM} from '@taiga-ui/core'; +import {type TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; +import {type TuiSizeL, type TuiSizeM} from '@taiga-ui/core'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/theme-switcher/theme-switcher.component.ts b/projects/demo/src/modules/components/theme-switcher/theme-switcher.component.ts index 9c886c35cbe6..3a7cd6230332 100644 --- a/projects/demo/src/modules/components/theme-switcher/theme-switcher.component.ts +++ b/projects/demo/src/modules/components/theme-switcher/theme-switcher.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-theme-switcher', diff --git a/projects/demo/src/modules/components/thumbnail-card/examples/3/index.ts b/projects/demo/src/modules/components/thumbnail-card/examples/3/index.ts index bd0242f1f131..f6a7ce4e3c5d 100644 --- a/projects/demo/src/modules/components/thumbnail-card/examples/3/index.ts +++ b/projects/demo/src/modules/components/thumbnail-card/examples/3/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiPaymentSystem} from '@taiga-ui/addon-commerce'; +import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce'; @Component({ selector: 'tui-thumbnail-card-example-3', diff --git a/projects/demo/src/modules/components/thumbnail-card/thumbnail-card.component.ts b/projects/demo/src/modules/components/thumbnail-card/thumbnail-card.component.ts index 992bbca1d9a7..229054632200 100644 --- a/projects/demo/src/modules/components/thumbnail-card/thumbnail-card.component.ts +++ b/projects/demo/src/modules/components/thumbnail-card/thumbnail-card.component.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiPaymentSystem} from '@taiga-ui/addon-commerce'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeS} from '@taiga-ui/core'; +import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeS} from '@taiga-ui/core'; const BRAND_LOGOS = [ ` diff --git a/projects/demo/src/modules/components/tiles/tiles.component.ts b/projects/demo/src/modules/components/tiles/tiles.component.ts index 21ee99ca4540..3766db89a1bd 100644 --- a/projects/demo/src/modules/components/tiles/tiles.component.ts +++ b/projects/demo/src/modules/components/tiles/tiles.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-tiles', diff --git a/projects/demo/src/modules/components/toggle/toggle.component.ts b/projects/demo/src/modules/components/toggle/toggle.component.ts index 87ca6724de15..9ff2a39dd727 100644 --- a/projects/demo/src/modules/components/toggle/toggle.component.ts +++ b/projects/demo/src/modules/components/toggle/toggle.component.ts @@ -1,8 +1,8 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeL} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeL} from '@taiga-ui/core'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; import {AbstractExampleTuiInteractive} from '../abstract/interactive'; diff --git a/projects/demo/src/modules/components/tooltip/tooltip.component.ts b/projects/demo/src/modules/components/tooltip/tooltip.component.ts index ee9b81bd3353..872714f5b997 100644 --- a/projects/demo/src/modules/components/tooltip/tooltip.component.ts +++ b/projects/demo/src/modules/components/tooltip/tooltip.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {TUI_HINT_DIRECTIONS} from '@taiga-ui/core'; @Component({ diff --git a/projects/demo/src/modules/components/tree/examples/3/index.ts b/projects/demo/src/modules/components/tree/examples/3/index.ts index 47586c419d06..4a83847a2165 100644 --- a/projects/demo/src/modules/components/tree/examples/3/index.ts +++ b/projects/demo/src/modules/components/tree/examples/3/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {EMPTY_ARRAY, TuiHandler} from '@taiga-ui/cdk'; +import {EMPTY_ARRAY, type TuiHandler} from '@taiga-ui/cdk'; interface TreeNode { readonly children?: readonly TreeNode[]; diff --git a/projects/demo/src/modules/components/tree/examples/4/index.ts b/projects/demo/src/modules/components/tree/examples/4/index.ts index ecea95ab6b3e..7c77d59448fd 100644 --- a/projects/demo/src/modules/components/tree/examples/4/index.ts +++ b/projects/demo/src/modules/components/tree/examples/4/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {EMPTY_ARRAY, TuiHandler} from '@taiga-ui/cdk'; +import {EMPTY_ARRAY, type TuiHandler} from '@taiga-ui/cdk'; interface TreeNode { readonly children?: readonly TreeNode[]; diff --git a/projects/demo/src/modules/components/tree/examples/5/index.ts b/projects/demo/src/modules/components/tree/examples/5/index.ts index 251a7898dbb7..17dca83e9e61 100644 --- a/projects/demo/src/modules/components/tree/examples/5/index.ts +++ b/projects/demo/src/modules/components/tree/examples/5/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {EMPTY_ARRAY, TuiHandler} from '@taiga-ui/cdk'; +import {EMPTY_ARRAY, type TuiHandler} from '@taiga-ui/cdk'; import {TUI_TREE_CONTENT} from '@taiga-ui/kit'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; diff --git a/projects/demo/src/modules/components/tree/examples/6/index.ts b/projects/demo/src/modules/components/tree/examples/6/index.ts index 51465c8e7964..4b5a77f78c6e 100644 --- a/projects/demo/src/modules/components/tree/examples/6/index.ts +++ b/projects/demo/src/modules/components/tree/examples/6/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {EMPTY_ARRAY, TuiHandler} from '@taiga-ui/cdk'; +import {EMPTY_ARRAY, type TuiHandler} from '@taiga-ui/cdk'; interface TreeNode { readonly children?: readonly TreeNode[]; diff --git a/projects/demo/src/modules/components/tree/examples/7/index.ts b/projects/demo/src/modules/components/tree/examples/7/index.ts index 8dfa8838eb08..ca963570a9fc 100644 --- a/projects/demo/src/modules/components/tree/examples/7/index.ts +++ b/projects/demo/src/modules/components/tree/examples/7/index.ts @@ -1,7 +1,7 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiHandler} from '@taiga-ui/cdk'; +import {type TuiHandler} from '@taiga-ui/cdk'; import { TUI_TREE_LOADER, TUI_TREE_LOADING, diff --git a/projects/demo/src/modules/components/tree/examples/7/service.ts b/projects/demo/src/modules/components/tree/examples/7/service.ts index 2d5ed3a2f6b6..ea99c61c8c33 100644 --- a/projects/demo/src/modules/components/tree/examples/7/service.ts +++ b/projects/demo/src/modules/components/tree/examples/7/service.ts @@ -1,6 +1,6 @@ import {Injectable} from '@angular/core'; -import {TuiTreeLoader} from '@taiga-ui/kit'; -import {map, Observable, timer} from 'rxjs'; +import {type TuiTreeLoader} from '@taiga-ui/kit'; +import {map, type Observable, timer} from 'rxjs'; import type {Item} from './index'; diff --git a/projects/demo/src/modules/customization/dialogs/dialogs.component.ts b/projects/demo/src/modules/customization/dialogs/dialogs.component.ts index 49fcbe367857..0cd5de6afaa7 100644 --- a/projects/demo/src/modules/customization/dialogs/dialogs.component.ts +++ b/projects/demo/src/modules/customization/dialogs/dialogs.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'dialogs', diff --git a/projects/demo/src/modules/customization/dialogs/examples/1/index.ts b/projects/demo/src/modules/customization/dialogs/examples/1/index.ts index f136ab9cf854..2a6e18736c0f 100644 --- a/projects/demo/src/modules/customization/dialogs/examples/1/index.ts +++ b/projects/demo/src/modules/customization/dialogs/examples/1/index.ts @@ -1,7 +1,7 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {TuiAlertService} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {switchMap} from 'rxjs'; import {PromptService} from './prompt/prompt.service'; diff --git a/projects/demo/src/modules/customization/dialogs/examples/1/prompt/prompt.component.ts b/projects/demo/src/modules/customization/dialogs/examples/1/prompt/prompt.component.ts index bfb885f8706d..610aa9b6d968 100644 --- a/projects/demo/src/modules/customization/dialogs/examples/1/prompt/prompt.component.ts +++ b/projects/demo/src/modules/customization/dialogs/examples/1/prompt/prompt.component.ts @@ -1,11 +1,11 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDestroyService, TuiPopover} from '@taiga-ui/cdk'; +import {TuiDestroyService, type TuiPopover} from '@taiga-ui/cdk'; import {TuiDialogCloseService} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; import {takeUntil} from 'rxjs'; -import {PromptOptions} from './prompt-options'; +import {type PromptOptions} from './prompt-options'; @Component({ selector: 'prompt', diff --git a/projects/demo/src/modules/customization/dialogs/examples/1/prompt/prompt.service.ts b/projects/demo/src/modules/customization/dialogs/examples/1/prompt/prompt.service.ts index 5e7e2b8529cd..0bc90d793f0b 100644 --- a/projects/demo/src/modules/customization/dialogs/examples/1/prompt/prompt.service.ts +++ b/projects/demo/src/modules/customization/dialogs/examples/1/prompt/prompt.service.ts @@ -3,7 +3,7 @@ import {TuiPopoverService} from '@taiga-ui/cdk'; import {TUI_DIALOGS} from '@taiga-ui/core'; import {PromptComponent} from './prompt.component'; -import {PromptOptions} from './prompt-options'; +import {type PromptOptions} from './prompt-options'; @Injectable({ providedIn: 'root', diff --git a/projects/demo/src/modules/customization/i18n/i18n.component.ts b/projects/demo/src/modules/customization/i18n/i18n.component.ts index f85e4f89c696..4b1b2fd00134 100644 --- a/projects/demo/src/modules/customization/i18n/i18n.component.ts +++ b/projects/demo/src/modules/customization/i18n/i18n.component.ts @@ -3,7 +3,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import { TuiDocCodeModule, - TuiDocExample, + type TuiDocExample, TuiDocExampleModule, TuiDocPageModule, TuiLanguageSwitcherComponent, diff --git a/projects/demo/src/modules/customization/portals/examples/1/index.ts b/projects/demo/src/modules/customization/portals/examples/1/index.ts index 22f4393c51c0..58f04a9931ae 100644 --- a/projects/demo/src/modules/customization/portals/examples/1/index.ts +++ b/projects/demo/src/modules/customization/portals/examples/1/index.ts @@ -1,4 +1,4 @@ -import {Component, EmbeddedViewRef, inject, TemplateRef} from '@angular/core'; +import {Component, type EmbeddedViewRef, inject, type TemplateRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {CustomPortalService} from './portal/custom-portal.service'; diff --git a/projects/demo/src/modules/customization/portals/portals.component.ts b/projects/demo/src/modules/customization/portals/portals.component.ts index a4371f0a6951..797bb6297244 100644 --- a/projects/demo/src/modules/customization/portals/portals.component.ts +++ b/projects/demo/src/modules/customization/portals/portals.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'portals', diff --git a/projects/demo/src/modules/customization/routable/eager/routable-dialog.component.ts b/projects/demo/src/modules/customization/routable/eager/routable-dialog.component.ts index 3306ef846621..4c0ec4e50b74 100644 --- a/projects/demo/src/modules/customization/routable/eager/routable-dialog.component.ts +++ b/projects/demo/src/modules/customization/routable/eager/routable-dialog.component.ts @@ -1,7 +1,7 @@ import {Component, inject} from '@angular/core'; import {NavigationEnd, Router} from '@angular/router'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {TuiDestroyService} from '@taiga-ui/cdk'; import {filter, map, shareReplay, takeUntil} from 'rxjs'; diff --git a/projects/demo/src/modules/customization/routable/lazy/lazy-routable-dialog.component.ts b/projects/demo/src/modules/customization/routable/lazy/lazy-routable-dialog.component.ts index 1935373d7a1f..8c4e9c8f1af6 100644 --- a/projects/demo/src/modules/customization/routable/lazy/lazy-routable-dialog.component.ts +++ b/projects/demo/src/modules/customization/routable/lazy/lazy-routable-dialog.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'lazy-routable-dialog', diff --git a/projects/demo/src/modules/customization/variables/variables.component.ts b/projects/demo/src/modules/customization/variables/variables.component.ts index b685cbd30537..c99fdedd55ce 100644 --- a/projects/demo/src/modules/customization/variables/variables.component.ts +++ b/projects/demo/src/modules/customization/variables/variables.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'variables', diff --git a/projects/demo/src/modules/customization/viewport/examples/2/portal-host.ts b/projects/demo/src/modules/customization/viewport/examples/2/portal-host.ts index f5c9bd747e9d..6bfb015b6ea9 100644 --- a/projects/demo/src/modules/customization/viewport/examples/2/portal-host.ts +++ b/projects/demo/src/modules/customization/viewport/examples/2/portal-host.ts @@ -1,6 +1,6 @@ import {ChangeDetectionStrategy, Component, ElementRef, inject} from '@angular/core'; import {tuiAsPortal, TuiPortalsComponent} from '@taiga-ui/cdk'; -import {tuiAsViewport, TuiDropdownService, TuiRectAccessor} from '@taiga-ui/core'; +import {tuiAsViewport, TuiDropdownService, type TuiRectAccessor} from '@taiga-ui/core'; @Component({ selector: 'portal-host', diff --git a/projects/demo/src/modules/customization/viewport/viewport.component.ts b/projects/demo/src/modules/customization/viewport/viewport.component.ts index bbbeff222cbf..e2f61f7ea57a 100644 --- a/projects/demo/src/modules/customization/viewport/viewport.component.ts +++ b/projects/demo/src/modules/customization/viewport/viewport.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-viewport', diff --git a/projects/demo/src/modules/customization/wrapper/wrapper.component.ts b/projects/demo/src/modules/customization/wrapper/wrapper.component.ts index fc4a3c336b21..7f12ccd885ee 100644 --- a/projects/demo/src/modules/customization/wrapper/wrapper.component.ts +++ b/projects/demo/src/modules/customization/wrapper/wrapper.component.ts @@ -1,6 +1,6 @@ import {Component, ViewEncapsulation} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'wrapper', diff --git a/projects/demo/src/modules/directives/active-zone/active-zone.component.ts b/projects/demo/src/modules/directives/active-zone/active-zone.component.ts index ce3a9993b98a..a3e5c794f9ae 100644 --- a/projects/demo/src/modules/directives/active-zone/active-zone.component.ts +++ b/projects/demo/src/modules/directives/active-zone/active-zone.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-active-zone', diff --git a/projects/demo/src/modules/directives/active-zone/examples/1/index.ts b/projects/demo/src/modules/directives/active-zone/examples/1/index.ts index 8dd0ecf77b7b..061404a4ca2a 100644 --- a/projects/demo/src/modules/directives/active-zone/examples/1/index.ts +++ b/projects/demo/src/modules/directives/active-zone/examples/1/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiInputComponent} from '@taiga-ui/kit'; +import {type TuiInputComponent} from '@taiga-ui/kit'; @Component({ selector: 'tui-active-zone-example-1', diff --git a/projects/demo/src/modules/directives/appearance/appearance.component.ts b/projects/demo/src/modules/directives/appearance/appearance.component.ts index 0666b8ac0019..5db63ce59ba8 100644 --- a/projects/demo/src/modules/directives/appearance/appearance.component.ts +++ b/projects/demo/src/modules/directives/appearance/appearance.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; -import {TuiInteractiveStateT} from '@taiga-ui/core'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiInteractiveStateT} from '@taiga-ui/core'; @Component({ selector: 'example-appearance', diff --git a/projects/demo/src/modules/directives/auto-focus/auto-focus.component.ts b/projects/demo/src/modules/directives/auto-focus/auto-focus.component.ts index f42789ae840d..935a04fe73ab 100644 --- a/projects/demo/src/modules/directives/auto-focus/auto-focus.component.ts +++ b/projects/demo/src/modules/directives/auto-focus/auto-focus.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-auto-focus', diff --git a/projects/demo/src/modules/directives/copy-processor/copy-processor.component.ts b/projects/demo/src/modules/directives/copy-processor/copy-processor.component.ts index 5037741ab1f7..cc03344d7262 100644 --- a/projects/demo/src/modules/directives/copy-processor/copy-processor.component.ts +++ b/projects/demo/src/modules/directives/copy-processor/copy-processor.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-copy-processor', diff --git a/projects/demo/src/modules/directives/copy-processor/examples/1/index.ts b/projects/demo/src/modules/directives/copy-processor/examples/1/index.ts index 8f514ddd3196..4f8491140030 100644 --- a/projects/demo/src/modules/directives/copy-processor/examples/1/index.ts +++ b/projects/demo/src/modules/directives/copy-processor/examples/1/index.ts @@ -1,7 +1,7 @@ import {Component, HostListener, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiStringHandler} from '@taiga-ui/cdk'; import {TUI_NUMBER_FORMAT, TuiAlertService} from '@taiga-ui/core'; import {map} from 'rxjs'; diff --git a/projects/demo/src/modules/directives/dropdown-context/dropdown-context.component.ts b/projects/demo/src/modules/directives/dropdown-context/dropdown-context.component.ts index a6a5a23e9a0c..6c84d4d6c58b 100644 --- a/projects/demo/src/modules/directives/dropdown-context/dropdown-context.component.ts +++ b/projects/demo/src/modules/directives/dropdown-context/dropdown-context.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiDropdown} from '../../components/abstract/dropdown'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/dropdown-hover/dropdown-hover.component.ts b/projects/demo/src/modules/directives/dropdown-hover/dropdown-hover.component.ts index 4a2b430447f0..b8c286e0c5c2 100644 --- a/projects/demo/src/modules/directives/dropdown-hover/dropdown-hover.component.ts +++ b/projects/demo/src/modules/directives/dropdown-hover/dropdown-hover.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiDropdown} from '../../components/abstract/dropdown'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/dropdown-open/dropdown-open.component.ts b/projects/demo/src/modules/directives/dropdown-open/dropdown-open.component.ts index cff49edbb5ae..0233cea8e605 100644 --- a/projects/demo/src/modules/directives/dropdown-open/dropdown-open.component.ts +++ b/projects/demo/src/modules/directives/dropdown-open/dropdown-open.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiDropdown} from '../../components/abstract/dropdown'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/dropdown-open/examples/5/accessor.ts b/projects/demo/src/modules/directives/dropdown-open/examples/5/accessor.ts index 8d33bf945b63..c8aca51c11a6 100644 --- a/projects/demo/src/modules/directives/dropdown-open/examples/5/accessor.ts +++ b/projects/demo/src/modules/directives/dropdown-open/examples/5/accessor.ts @@ -1,5 +1,5 @@ import {Directive, ElementRef, inject} from '@angular/core'; -import {tuiAsPositionAccessor, TuiPoint, TuiPositionAccessor} from '@taiga-ui/core'; +import {tuiAsPositionAccessor, type TuiPoint, TuiPositionAccessor} from '@taiga-ui/core'; @Directive({ selector: '[topRight]', diff --git a/projects/demo/src/modules/directives/dropdown-selection/dropdown-selection.component.ts b/projects/demo/src/modules/directives/dropdown-selection/dropdown-selection.component.ts index 0c097c8681be..f5f1bed42e59 100644 --- a/projects/demo/src/modules/directives/dropdown-selection/dropdown-selection.component.ts +++ b/projects/demo/src/modules/directives/dropdown-selection/dropdown-selection.component.ts @@ -1,7 +1,7 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiDropdownPosition} from '@taiga-ui/kit'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDropdownPosition} from '@taiga-ui/kit'; import {AbstractExampleTuiDropdown} from '../../components/abstract/dropdown'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/dropdown-selection/examples/2/index.ts b/projects/demo/src/modules/directives/dropdown-selection/examples/2/index.ts index e5f57e1ab694..8fac566441a0 100644 --- a/projects/demo/src/modules/directives/dropdown-selection/examples/2/index.ts +++ b/projects/demo/src/modules/directives/dropdown-selection/examples/2/index.ts @@ -1,10 +1,16 @@ -import {Component, ElementRef, QueryList, ViewChild, ViewChildren} from '@angular/core'; +import { + Component, + ElementRef, + type QueryList, + ViewChild, + ViewChildren, +} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {assets} from '@demo/utils'; -import {EMPTY_QUERY, TuiBooleanHandler, tuiPure} from '@taiga-ui/cdk'; +import {EMPTY_QUERY, type TuiBooleanHandler, tuiPure} from '@taiga-ui/cdk'; import {TuiDriver, tuiGetWordRange, TuiOptionComponent} from '@taiga-ui/core'; -import {Observable} from 'rxjs'; +import {type Observable} from 'rxjs'; export interface User { readonly avatar: string; diff --git a/projects/demo/src/modules/directives/dropdown/dropdown.component.ts b/projects/demo/src/modules/directives/dropdown/dropdown.component.ts index f8715030a09c..c2a4936856e2 100644 --- a/projects/demo/src/modules/directives/dropdown/dropdown.component.ts +++ b/projects/demo/src/modules/directives/dropdown/dropdown.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiDropdown} from '../../components/abstract/dropdown'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/elastic-sticky/elastic-sticky.component.ts b/projects/demo/src/modules/directives/elastic-sticky/elastic-sticky.component.ts index 78ccac9ca609..c7e8ad431db9 100644 --- a/projects/demo/src/modules/directives/elastic-sticky/elastic-sticky.component.ts +++ b/projects/demo/src/modules/directives/elastic-sticky/elastic-sticky.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-elastic-sticky', diff --git a/projects/demo/src/modules/directives/elastic-sticky/examples/1/index.ts b/projects/demo/src/modules/directives/elastic-sticky/examples/1/index.ts index 9a33ff9fd2ea..f3a4487f753a 100644 --- a/projects/demo/src/modules/directives/elastic-sticky/examples/1/index.ts +++ b/projects/demo/src/modules/directives/elastic-sticky/examples/1/index.ts @@ -1,9 +1,9 @@ -import {AfterViewInit, Component, ViewChild} from '@angular/core'; +import {type AfterViewInit, Component, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiElasticStickyDirective} from '@taiga-ui/addon-mobile'; import {tuiClamp} from '@taiga-ui/cdk'; -import {distinctUntilChanged, map, Observable, startWith} from 'rxjs'; +import {distinctUntilChanged, map, type Observable, startWith} from 'rxjs'; @Component({ selector: 'tui-elastic-sticky-example-1', diff --git a/projects/demo/src/modules/directives/element/element.component.ts b/projects/demo/src/modules/directives/element/element.component.ts index 0f7fa7c62c9c..76a48399df5e 100644 --- a/projects/demo/src/modules/directives/element/element.component.ts +++ b/projects/demo/src/modules/directives/element/element.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-element', diff --git a/projects/demo/src/modules/directives/fade/fade.component.ts b/projects/demo/src/modules/directives/fade/fade.component.ts index d0061121a6d3..d4ca2c8058df 100644 --- a/projects/demo/src/modules/directives/fade/fade.component.ts +++ b/projects/demo/src/modules/directives/fade/fade.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-fade', diff --git a/projects/demo/src/modules/directives/for/for.component.ts b/projects/demo/src/modules/directives/for/for.component.ts index 0a4a9a72b954..d9a4f74ed5ae 100644 --- a/projects/demo/src/modules/directives/for/for.component.ts +++ b/projects/demo/src/modules/directives/for/for.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-for', diff --git a/projects/demo/src/modules/directives/highlight/highlight.component.ts b/projects/demo/src/modules/directives/highlight/highlight.component.ts index 33e51bd0bf3f..dc047cad2211 100644 --- a/projects/demo/src/modules/directives/highlight/highlight.component.ts +++ b/projects/demo/src/modules/directives/highlight/highlight.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-highlight', diff --git a/projects/demo/src/modules/directives/hint-describe/hint-describe.component.ts b/projects/demo/src/modules/directives/hint-describe/hint-describe.component.ts index abd6eff71ea9..bd256281e93b 100644 --- a/projects/demo/src/modules/directives/hint-describe/hint-describe.component.ts +++ b/projects/demo/src/modules/directives/hint-describe/hint-describe.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiHint} from '../../components/abstract/hint'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/hint-manual/hint-manual.component.ts b/projects/demo/src/modules/directives/hint-manual/hint-manual.component.ts index c773db59f647..61aad95200a3 100644 --- a/projects/demo/src/modules/directives/hint-manual/hint-manual.component.ts +++ b/projects/demo/src/modules/directives/hint-manual/hint-manual.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiHint} from '../../components/abstract/hint'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/hint-pointer/hint-pointer.component.ts b/projects/demo/src/modules/directives/hint-pointer/hint-pointer.component.ts index 79fb8295ec88..e5201d763eb3 100644 --- a/projects/demo/src/modules/directives/hint-pointer/hint-pointer.component.ts +++ b/projects/demo/src/modules/directives/hint-pointer/hint-pointer.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiHint} from '../../components/abstract/hint'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/hint/hint.component.ts b/projects/demo/src/modules/directives/hint/hint.component.ts index 22517e0cf2c8..9bce3f75a278 100644 --- a/projects/demo/src/modules/directives/hint/hint.component.ts +++ b/projects/demo/src/modules/directives/hint/hint.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiHint} from '../../components/abstract/hint'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/hovered-change/hovered-change.component.ts b/projects/demo/src/modules/directives/hovered-change/hovered-change.component.ts index 343ee2bce585..a0890164bc11 100644 --- a/projects/demo/src/modules/directives/hovered-change/hovered-change.component.ts +++ b/projects/demo/src/modules/directives/hovered-change/hovered-change.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-hovered-change', diff --git a/projects/demo/src/modules/directives/lazy-loading/lazy-loading.component.ts b/projects/demo/src/modules/directives/lazy-loading/lazy-loading.component.ts index 6d8242f65557..6cafeeab74f0 100644 --- a/projects/demo/src/modules/directives/lazy-loading/lazy-loading.component.ts +++ b/projects/demo/src/modules/directives/lazy-loading/lazy-loading.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-lazy-loading', diff --git a/projects/demo/src/modules/directives/let/let.component.ts b/projects/demo/src/modules/directives/let/let.component.ts index 11c3650fe7e3..c0a03fa51d00 100644 --- a/projects/demo/src/modules/directives/let/let.component.ts +++ b/projects/demo/src/modules/directives/let/let.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-let', diff --git a/projects/demo/src/modules/directives/media/media.component.ts b/projects/demo/src/modules/directives/media/media.component.ts index f71ac20f9e91..b7261e0579cd 100644 --- a/projects/demo/src/modules/directives/media/media.component.ts +++ b/projects/demo/src/modules/directives/media/media.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-media', diff --git a/projects/demo/src/modules/directives/mode/mode.component.ts b/projects/demo/src/modules/directives/mode/mode.component.ts index 09408bee20db..92416bff5a11 100644 --- a/projects/demo/src/modules/directives/mode/mode.component.ts +++ b/projects/demo/src/modules/directives/mode/mode.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-mode', diff --git a/projects/demo/src/modules/directives/overscroll/overscroll.component.ts b/projects/demo/src/modules/directives/overscroll/overscroll.component.ts index 19b15b489f22..f15aeef194ab 100644 --- a/projects/demo/src/modules/directives/overscroll/overscroll.component.ts +++ b/projects/demo/src/modules/directives/overscroll/overscroll.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-overscroll', diff --git a/projects/demo/src/modules/directives/pan/pan.component.ts b/projects/demo/src/modules/directives/pan/pan.component.ts index 0bffca896374..11c8e9bfabb8 100644 --- a/projects/demo/src/modules/directives/pan/pan.component.ts +++ b/projects/demo/src/modules/directives/pan/pan.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-pan', diff --git a/projects/demo/src/modules/directives/present/present.component.ts b/projects/demo/src/modules/directives/present/present.component.ts index d5495b74a0bf..85676a6b3dbe 100644 --- a/projects/demo/src/modules/directives/present/present.component.ts +++ b/projects/demo/src/modules/directives/present/present.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-present', diff --git a/projects/demo/src/modules/directives/resizer/resizer.component.ts b/projects/demo/src/modules/directives/resizer/resizer.component.ts index d1b58a33ede2..e1473600bdfb 100644 --- a/projects/demo/src/modules/directives/resizer/resizer.component.ts +++ b/projects/demo/src/modules/directives/resizer/resizer.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-resizer', diff --git a/projects/demo/src/modules/directives/ripple/ripple.component.ts b/projects/demo/src/modules/directives/ripple/ripple.component.ts index a2fb92f19fbc..348849947ac0 100644 --- a/projects/demo/src/modules/directives/ripple/ripple.component.ts +++ b/projects/demo/src/modules/directives/ripple/ripple.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-ripple', diff --git a/projects/demo/src/modules/directives/sidebar/sidebar.component.ts b/projects/demo/src/modules/directives/sidebar/sidebar.component.ts index aac8ae72e130..e8b8a5ed1cb9 100644 --- a/projects/demo/src/modules/directives/sidebar/sidebar.component.ts +++ b/projects/demo/src/modules/directives/sidebar/sidebar.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-sidebar', diff --git a/projects/demo/src/modules/directives/swipe/examples/1/index.ts b/projects/demo/src/modules/directives/swipe/examples/1/index.ts index 1c5fe7b7e8f1..f28c76461926 100644 --- a/projects/demo/src/modules/directives/swipe/examples/1/index.ts +++ b/projects/demo/src/modules/directives/swipe/examples/1/index.ts @@ -1,7 +1,7 @@ import {Component, HostBinding} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiSwipe} from '@taiga-ui/cdk'; +import {type TuiSwipe} from '@taiga-ui/cdk'; @Component({ selector: 'tui-swipe-example-1', diff --git a/projects/demo/src/modules/directives/swipe/examples/2/index.ts b/projects/demo/src/modules/directives/swipe/examples/2/index.ts index 775e61e593cb..c6aa4993a332 100644 --- a/projects/demo/src/modules/directives/swipe/examples/2/index.ts +++ b/projects/demo/src/modules/directives/swipe/examples/2/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiSwipe} from '@taiga-ui/cdk'; +import {type TuiSwipe} from '@taiga-ui/cdk'; import {Subject} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/directives/swipe/swipe.component.ts b/projects/demo/src/modules/directives/swipe/swipe.component.ts index fc4117b1f5a7..204794cbca1d 100644 --- a/projects/demo/src/modules/directives/swipe/swipe.component.ts +++ b/projects/demo/src/modules/directives/swipe/swipe.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-swipe', diff --git a/projects/demo/src/modules/directives/textfield-controller/textfield-controller.component.ts b/projects/demo/src/modules/directives/textfield-controller/textfield-controller.component.ts index e1f19b730957..49d9ca2a8352 100644 --- a/projects/demo/src/modules/directives/textfield-controller/textfield-controller.component.ts +++ b/projects/demo/src/modules/directives/textfield-controller/textfield-controller.component.ts @@ -1,9 +1,9 @@ import {Component} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiInputMode, TuiInputType} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiInputMode, type TuiInputType} from '@taiga-ui/cdk'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-tui-textfield-controller', diff --git a/projects/demo/src/modules/directives/touchable/touchable.component.ts b/projects/demo/src/modules/directives/touchable/touchable.component.ts index 7a0574520ddf..b1fe54b21bb0 100644 --- a/projects/demo/src/modules/directives/touchable/touchable.component.ts +++ b/projects/demo/src/modules/directives/touchable/touchable.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-touchable', diff --git a/projects/demo/src/modules/directives/validator/validator.component.ts b/projects/demo/src/modules/directives/validator/validator.component.ts index c3352cd09811..84a2b3370740 100644 --- a/projects/demo/src/modules/directives/validator/validator.component.ts +++ b/projects/demo/src/modules/directives/validator/validator.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-validator', diff --git a/projects/demo/src/modules/directives/value-changes/value-changes.component.ts b/projects/demo/src/modules/directives/value-changes/value-changes.component.ts index 28f27ba011da..124e02dc4865 100644 --- a/projects/demo/src/modules/directives/value-changes/value-changes.component.ts +++ b/projects/demo/src/modules/directives/value-changes/value-changes.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-value-changes', diff --git a/projects/demo/src/modules/directives/zoom/examples/1/index.ts b/projects/demo/src/modules/directives/zoom/examples/1/index.ts index 2f473aae0aa9..8c96b549b699 100644 --- a/projects/demo/src/modules/directives/zoom/examples/1/index.ts +++ b/projects/demo/src/modules/directives/zoom/examples/1/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {tuiClamp, TuiZoom} from '@taiga-ui/cdk'; +import {tuiClamp, type TuiZoom} from '@taiga-ui/cdk'; import {map, scan, startWith, Subject} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/directives/zoom/zoom.component.ts b/projects/demo/src/modules/directives/zoom/zoom.component.ts index 69327cf6d543..0d42fd49cbfa 100644 --- a/projects/demo/src/modules/directives/zoom/zoom.component.ts +++ b/projects/demo/src/modules/directives/zoom/zoom.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-zoom', diff --git a/projects/demo/src/modules/experimental/badge-notification/badge-notification.component.ts b/projects/demo/src/modules/experimental/badge-notification/badge-notification.component.ts index 60478e5cd2ee..25f35897e4ab 100644 --- a/projects/demo/src/modules/experimental/badge-notification/badge-notification.component.ts +++ b/projects/demo/src/modules/experimental/badge-notification/badge-notification.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; -import {TuiSizeL, TuiSizeXS} from '@taiga-ui/core'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiSizeL, type TuiSizeXS} from '@taiga-ui/core'; @Component({ selector: 'example-badge-notification', diff --git a/projects/demo/src/modules/experimental/button-close/button-close.component.ts b/projects/demo/src/modules/experimental/button-close/button-close.component.ts index 2b61246d90f7..3426e8013c0c 100644 --- a/projects/demo/src/modules/experimental/button-close/button-close.component.ts +++ b/projects/demo/src/modules/experimental/button-close/button-close.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-button-close', diff --git a/projects/demo/src/modules/experimental/button-group/button-group.component.ts b/projects/demo/src/modules/experimental/button-group/button-group.component.ts index 4c72c6a5c477..2b2587f2bba8 100644 --- a/projects/demo/src/modules/experimental/button-group/button-group.component.ts +++ b/projects/demo/src/modules/experimental/button-group/button-group.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-button-group-card', diff --git a/projects/demo/src/modules/experimental/button-vertical/button-vertical.component.ts b/projects/demo/src/modules/experimental/button-vertical/button-vertical.component.ts index adc64f28f9ce..86cd6e7bd2ae 100644 --- a/projects/demo/src/modules/experimental/button-vertical/button-vertical.component.ts +++ b/projects/demo/src/modules/experimental/button-vertical/button-vertical.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-button-vertical', diff --git a/projects/demo/src/modules/experimental/button/button.component.ts b/projects/demo/src/modules/experimental/button/button.component.ts index e94cb16020b3..594ea5cc2801 100644 --- a/projects/demo/src/modules/experimental/button/button.component.ts +++ b/projects/demo/src/modules/experimental/button/button.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; -import {TuiSizeL, TuiSizeXS} from '@taiga-ui/core'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiSizeL, type TuiSizeXS} from '@taiga-ui/core'; @Component({ selector: 'example-button', diff --git a/projects/demo/src/modules/experimental/card-large/card-large.component.ts b/projects/demo/src/modules/experimental/card-large/card-large.component.ts index de6362602efb..732c143e2ee0 100644 --- a/projects/demo/src/modules/experimental/card-large/card-large.component.ts +++ b/projects/demo/src/modules/experimental/card-large/card-large.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-card', diff --git a/projects/demo/src/modules/experimental/card-medium/card-medium.component.ts b/projects/demo/src/modules/experimental/card-medium/card-medium.component.ts index 4ee4a9ed1040..a442cfef9a31 100644 --- a/projects/demo/src/modules/experimental/card-medium/card-medium.component.ts +++ b/projects/demo/src/modules/experimental/card-medium/card-medium.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-card', diff --git a/projects/demo/src/modules/experimental/cell/cell.component.ts b/projects/demo/src/modules/experimental/cell/cell.component.ts index b2a01021681b..6e7825bc8541 100644 --- a/projects/demo/src/modules/experimental/cell/cell.component.ts +++ b/projects/demo/src/modules/experimental/cell/cell.component.ts @@ -1,9 +1,9 @@ import {Component, ViewEncapsulation} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import { - TuiDocExample, + type TuiDocExample, tuiDocExampleOptionsProvider, - TuiRawLoaderContent, + type TuiRawLoaderContent, } from '@taiga-ui/addon-doc'; @Component({ diff --git a/projects/demo/src/modules/experimental/checkbox/checkbox.component.ts b/projects/demo/src/modules/experimental/checkbox/checkbox.component.ts index 8c7a225d0bbd..30de8682577c 100644 --- a/projects/demo/src/modules/experimental/checkbox/checkbox.component.ts +++ b/projects/demo/src/modules/experimental/checkbox/checkbox.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-checkbox', diff --git a/projects/demo/src/modules/experimental/checkbox/examples/1/index.ts b/projects/demo/src/modules/experimental/checkbox/examples/1/index.ts index 55cf16f8502c..2d3955037c7b 100644 --- a/projects/demo/src/modules/experimental/checkbox/examples/1/index.ts +++ b/projects/demo/src/modules/experimental/checkbox/examples/1/index.ts @@ -1,9 +1,9 @@ -import {Component, OnInit} from '@angular/core'; +import {Component, type OnInit} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiPlatform} from '@taiga-ui/cdk'; -import {TuiSizeS} from '@taiga-ui/core'; +import {type TuiPlatform} from '@taiga-ui/cdk'; +import {type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'tui-checkbox-example-1', diff --git a/projects/demo/src/modules/experimental/chip/chip.component.ts b/projects/demo/src/modules/experimental/chip/chip.component.ts index 6a48a293375f..17e48d088874 100644 --- a/projects/demo/src/modules/experimental/chip/chip.component.ts +++ b/projects/demo/src/modules/experimental/chip/chip.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-chip', diff --git a/projects/demo/src/modules/experimental/compass/compass.component.ts b/projects/demo/src/modules/experimental/compass/compass.component.ts index eb0b294c376e..567aa81d6f96 100644 --- a/projects/demo/src/modules/experimental/compass/compass.component.ts +++ b/projects/demo/src/modules/experimental/compass/compass.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-compass', diff --git a/projects/demo/src/modules/experimental/header/header.component.ts b/projects/demo/src/modules/experimental/header/header.component.ts index 83f55e641857..fc65619f7e4c 100644 --- a/projects/demo/src/modules/experimental/header/header.component.ts +++ b/projects/demo/src/modules/experimental/header/header.component.ts @@ -1,9 +1,9 @@ import {Component, ViewEncapsulation} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import { - TuiDocExample, + type TuiDocExample, tuiDocExampleOptionsProvider, - TuiRawLoaderContent, + type TuiRawLoaderContent, } from '@taiga-ui/addon-doc'; @Component({ diff --git a/projects/demo/src/modules/experimental/icon/icon.component.ts b/projects/demo/src/modules/experimental/icon/icon.component.ts index 8669d651ebe0..11e0178ca386 100644 --- a/projects/demo/src/modules/experimental/icon/icon.component.ts +++ b/projects/demo/src/modules/experimental/icon/icon.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-icon', diff --git a/projects/demo/src/modules/experimental/navigation/navigation.component.ts b/projects/demo/src/modules/experimental/navigation/navigation.component.ts index f6a43a13d2b8..9803d854d706 100644 --- a/projects/demo/src/modules/experimental/navigation/navigation.component.ts +++ b/projects/demo/src/modules/experimental/navigation/navigation.component.ts @@ -1,6 +1,6 @@ import {Component, ViewEncapsulation} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-navigation', diff --git a/projects/demo/src/modules/experimental/pin/pin.component.ts b/projects/demo/src/modules/experimental/pin/pin.component.ts index ca2d4e37cf1c..9bb02b056e50 100644 --- a/projects/demo/src/modules/experimental/pin/pin.component.ts +++ b/projects/demo/src/modules/experimental/pin/pin.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-pin', diff --git a/projects/demo/src/modules/experimental/progress-segmented/progress-segmented.component.ts b/projects/demo/src/modules/experimental/progress-segmented/progress-segmented.component.ts index fe7076ae80b0..0c90274a6107 100644 --- a/projects/demo/src/modules/experimental/progress-segmented/progress-segmented.component.ts +++ b/projects/demo/src/modules/experimental/progress-segmented/progress-segmented.component.ts @@ -1,6 +1,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiProgressBarComponent} from '@taiga-ui/kit'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiProgressBarComponent} from '@taiga-ui/kit'; @Component({ selector: 'example-progress-segmented', diff --git a/projects/demo/src/modules/experimental/radio/examples/1/index.ts b/projects/demo/src/modules/experimental/radio/examples/1/index.ts index c6559ccd4c21..0906e7a56159 100644 --- a/projects/demo/src/modules/experimental/radio/examples/1/index.ts +++ b/projects/demo/src/modules/experimental/radio/examples/1/index.ts @@ -1,9 +1,9 @@ -import {Component, OnInit} from '@angular/core'; +import {Component, type OnInit} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiPlatform} from '@taiga-ui/cdk'; -import {TuiSizeS} from '@taiga-ui/core'; +import {type TuiPlatform} from '@taiga-ui/cdk'; +import {type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'tui-radio-example-1', diff --git a/projects/demo/src/modules/experimental/rating/examples/2/index.ts b/projects/demo/src/modules/experimental/rating/examples/2/index.ts index 54d29f98660c..ec74f9ddfb23 100644 --- a/projects/demo/src/modules/experimental/rating/examples/2/index.ts +++ b/projects/demo/src/modules/experimental/rating/examples/2/index.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiContext} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiContext} from '@taiga-ui/cdk'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-rating-example-2', diff --git a/projects/demo/src/modules/experimental/rating/rating.component.ts b/projects/demo/src/modules/experimental/rating/rating.component.ts index aafd664c3030..1a398089aa89 100644 --- a/projects/demo/src/modules/experimental/rating/rating.component.ts +++ b/projects/demo/src/modules/experimental/rating/rating.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-rating', diff --git a/projects/demo/src/modules/experimental/segmented/examples/4/index.ts b/projects/demo/src/modules/experimental/segmented/examples/4/index.ts index a7aa6c002f15..fac7e25fc120 100644 --- a/projects/demo/src/modules/experimental/segmented/examples/4/index.ts +++ b/projects/demo/src/modules/experimental/segmented/examples/4/index.ts @@ -1,5 +1,5 @@ import {Component} from '@angular/core'; -import {IsActiveMatchOptions} from '@angular/router'; +import {type IsActiveMatchOptions} from '@angular/router'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; diff --git a/projects/demo/src/modules/experimental/segmented/segmented.component.ts b/projects/demo/src/modules/experimental/segmented/segmented.component.ts index 7b78e557174d..df4bb4c32c4d 100644 --- a/projects/demo/src/modules/experimental/segmented/segmented.component.ts +++ b/projects/demo/src/modules/experimental/segmented/segmented.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-segmented', diff --git a/projects/demo/src/modules/experimental/sensitive/sensitive.component.ts b/projects/demo/src/modules/experimental/sensitive/sensitive.component.ts index 450ab68c184d..75527051ce3b 100644 --- a/projects/demo/src/modules/experimental/sensitive/sensitive.component.ts +++ b/projects/demo/src/modules/experimental/sensitive/sensitive.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-sensitive', diff --git a/projects/demo/src/modules/experimental/surface/surface.component.ts b/projects/demo/src/modules/experimental/surface/surface.component.ts index 3c313d31cebe..e3fd535ffdfc 100644 --- a/projects/demo/src/modules/experimental/surface/surface.component.ts +++ b/projects/demo/src/modules/experimental/surface/surface.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-surface', diff --git a/projects/demo/src/modules/experimental/textfield/textfield.component.ts b/projects/demo/src/modules/experimental/textfield/textfield.component.ts index 09b7e5c3d453..85ae0b23c491 100644 --- a/projects/demo/src/modules/experimental/textfield/textfield.component.ts +++ b/projects/demo/src/modules/experimental/textfield/textfield.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-textfield', diff --git a/projects/demo/src/modules/experimental/thumbnail-card/thumbnail-card.component.ts b/projects/demo/src/modules/experimental/thumbnail-card/thumbnail-card.component.ts index e6d512b4731b..c62214982517 100644 --- a/projects/demo/src/modules/experimental/thumbnail-card/thumbnail-card.component.ts +++ b/projects/demo/src/modules/experimental/thumbnail-card/thumbnail-card.component.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiPaymentSystem} from '@taiga-ui/addon-commerce'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-tui-thumbnail-card', diff --git a/projects/demo/src/modules/experimental/title/title.component.ts b/projects/demo/src/modules/experimental/title/title.component.ts index b5fb97f77f3c..b4babe1310ac 100644 --- a/projects/demo/src/modules/experimental/title/title.component.ts +++ b/projects/demo/src/modules/experimental/title/title.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-title', diff --git a/projects/demo/src/modules/experimental/toggle/examples/1/index.ts b/projects/demo/src/modules/experimental/toggle/examples/1/index.ts index 28579fad21fe..4ed0c459b582 100644 --- a/projects/demo/src/modules/experimental/toggle/examples/1/index.ts +++ b/projects/demo/src/modules/experimental/toggle/examples/1/index.ts @@ -1,9 +1,9 @@ -import {Component, OnInit} from '@angular/core'; +import {Component, type OnInit} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiPlatform} from '@taiga-ui/cdk'; -import {TuiSizeS} from '@taiga-ui/core'; +import {type TuiPlatform} from '@taiga-ui/cdk'; +import {type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'tui-toggle-example-1', diff --git a/projects/demo/src/modules/experimental/toggle/toggle.component.ts b/projects/demo/src/modules/experimental/toggle/toggle.component.ts index 813b7e3a1434..29821b22c99b 100644 --- a/projects/demo/src/modules/experimental/toggle/toggle.component.ts +++ b/projects/demo/src/modules/experimental/toggle/toggle.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-toggle', diff --git a/projects/demo/src/modules/experimental/tooltip/tooltip.component.ts b/projects/demo/src/modules/experimental/tooltip/tooltip.component.ts index bf0c3ee06dd9..3da71f5bec71 100644 --- a/projects/demo/src/modules/experimental/tooltip/tooltip.component.ts +++ b/projects/demo/src/modules/experimental/tooltip/tooltip.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {TUI_HINT_DIRECTIONS} from '@taiga-ui/core'; @Component({ diff --git a/projects/demo/src/modules/icons/customization/examples/1/index.ts b/projects/demo/src/modules/icons/customization/examples/1/index.ts index 8855fab7cf66..32282c377d1d 100644 --- a/projects/demo/src/modules/icons/customization/examples/1/index.ts +++ b/projects/demo/src/modules/icons/customization/examples/1/index.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiSafeHtml} from '@taiga-ui/cdk'; +import {type TuiSafeHtml} from '@taiga-ui/cdk'; import {TUI_SANITIZER, tuiSvgSrcInterceptors} from '@taiga-ui/core'; import {NgDompurifySanitizer} from '@tinkoff/ng-dompurify'; diff --git a/projects/demo/src/modules/icons/customization/icons-customization.component.ts b/projects/demo/src/modules/icons/customization/icons-customization.component.ts index 94f40a08d4f9..b267f1ee11af 100644 --- a/projects/demo/src/modules/icons/customization/icons-customization.component.ts +++ b/projects/demo/src/modules/icons/customization/icons-customization.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'icons-customizations', diff --git a/projects/demo/src/modules/icons/icons-bundled/icons-bundled.component.ts b/projects/demo/src/modules/icons/icons-bundled/icons-bundled.component.ts index 28396ee1adfb..1d9d63aa37d2 100644 --- a/projects/demo/src/modules/icons/icons-bundled/icons-bundled.component.ts +++ b/projects/demo/src/modules/icons/icons-bundled/icons-bundled.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'icons-bundled', diff --git a/projects/demo/src/modules/icons/icons-group/icons-group.component.ts b/projects/demo/src/modules/icons/icons-group/icons-group.component.ts index 2e18896f506b..63b51575c9e6 100644 --- a/projects/demo/src/modules/icons/icons-group/icons-group.component.ts +++ b/projects/demo/src/modules/icons/icons-group/icons-group.component.ts @@ -1,5 +1,5 @@ import {Clipboard} from '@angular/cdk/clipboard'; -import {Component, ContentChild, inject, Input, OnInit} from '@angular/core'; +import {Component, ContentChild, inject, Input, type OnInit} from '@angular/core'; import {FormControl} from '@angular/forms'; import {ActivatedRoute, Router} from '@angular/router'; import {changeDetection} from '@demo/emulate/change-detection'; @@ -10,7 +10,7 @@ import { distinctUntilChanged, filter, map, - Observable, + type Observable, takeUntil, } from 'rxjs'; diff --git a/projects/demo/src/modules/icons/icons-mapping/icons-mapping.component.ts b/projects/demo/src/modules/icons/icons-mapping/icons-mapping.component.ts index 48d8deb52218..95ae37029d03 100644 --- a/projects/demo/src/modules/icons/icons-mapping/icons-mapping.component.ts +++ b/projects/demo/src/modules/icons/icons-mapping/icons-mapping.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {tuiKitIcons} from '@taiga-ui/icons'; @Component({ diff --git a/projects/demo/src/modules/icons/icons.component.ts b/projects/demo/src/modules/icons/icons.component.ts index f19d8004fc35..4e1fa0288dd7 100644 --- a/projects/demo/src/modules/icons/icons.component.ts +++ b/projects/demo/src/modules/icons/icons.component.ts @@ -1,8 +1,8 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {assets} from '@demo/utils'; -import {TuiBrightness, TuiModeDirective} from '@taiga-ui/core'; -import {map, Observable, startWith} from 'rxjs'; +import {type TuiBrightness, TuiModeDirective} from '@taiga-ui/core'; +import {map, type Observable, startWith} from 'rxjs'; import {TUI_DEMO_ICONS} from './icons.tokens'; diff --git a/projects/demo/src/modules/icons/icons.tokens.ts b/projects/demo/src/modules/icons/icons.tokens.ts index 45aa45f3baa4..813359f6f381 100644 --- a/projects/demo/src/modules/icons/icons.tokens.ts +++ b/projects/demo/src/modules/icons/icons.tokens.ts @@ -1,5 +1,5 @@ import {inject} from '@angular/core'; -import {tuiCreateTokenFromFactory, TuiStringHandler} from '@taiga-ui/cdk'; +import {tuiCreateTokenFromFactory, type TuiStringHandler} from '@taiga-ui/cdk'; import {TUI_SVG_OPTIONS} from '@taiga-ui/core'; import * as allIcons from '@taiga-ui/icons'; diff --git a/projects/demo/src/modules/icons/marker-icon/marker-icon.component.ts b/projects/demo/src/modules/icons/marker-icon/marker-icon.component.ts index d7a328395728..b5a7388dcdb7 100644 --- a/projects/demo/src/modules/icons/marker-icon/marker-icon.component.ts +++ b/projects/demo/src/modules/icons/marker-icon/marker-icon.component.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiSizeXXL, TuiSizeXXS} from '@taiga-ui/core'; -import {TuiMarkerIconMode} from '@taiga-ui/kit'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiSizeXXL, type TuiSizeXXS} from '@taiga-ui/core'; +import {type TuiMarkerIconMode} from '@taiga-ui/kit'; @Component({ selector: 'example-tui-marker-icon', diff --git a/projects/demo/src/modules/markup/breakpoints/breakpoints.component.ts b/projects/demo/src/modules/markup/breakpoints/breakpoints.component.ts index 53cffc1b9aa5..0fd365a0c822 100644 --- a/projects/demo/src/modules/markup/breakpoints/breakpoints.component.ts +++ b/projects/demo/src/modules/markup/breakpoints/breakpoints.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import fileWithBreakpoints from '@taiga-ui/core/styles/variables/media.less?raw'; /** diff --git a/projects/demo/src/modules/markup/colors/table/table.component.ts b/projects/demo/src/modules/markup/colors/table/table.component.ts index b761df4979a6..094e8d3ca32e 100644 --- a/projects/demo/src/modules/markup/colors/table/table.component.ts +++ b/projects/demo/src/modules/markup/colors/table/table.component.ts @@ -5,7 +5,7 @@ import {WINDOW} from '@ng-web-apis/common'; import {TuiThemeService} from '@taiga-ui/addon-doc'; import {delay} from 'rxjs'; -import {Color} from '../colors.constants'; +import {type Color} from '../colors.constants'; @Component({ selector: 'table[colors]', diff --git a/projects/demo/src/modules/markup/form/form.component.ts b/projects/demo/src/modules/markup/form/form.component.ts index 40c05723fdf5..1afaebc12e48 100644 --- a/projects/demo/src/modules/markup/form/form.component.ts +++ b/projects/demo/src/modules/markup/form/form.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-form', diff --git a/projects/demo/src/modules/markup/lists/lists.component.ts b/projects/demo/src/modules/markup/lists/lists.component.ts index cc691e1d0e35..62a860e9b0bf 100644 --- a/projects/demo/src/modules/markup/lists/lists.component.ts +++ b/projects/demo/src/modules/markup/lists/lists.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'lists', diff --git a/projects/demo/src/modules/markup/skeleton/skeleton.component.ts b/projects/demo/src/modules/markup/skeleton/skeleton.component.ts index eec0053c49c7..436ba2baba3a 100644 --- a/projects/demo/src/modules/markup/skeleton/skeleton.component.ts +++ b/projects/demo/src/modules/markup/skeleton/skeleton.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'skeleton', diff --git a/projects/demo/src/modules/markup/spaces/spaces.component.ts b/projects/demo/src/modules/markup/spaces/spaces.component.ts index fd0842fccd9b..917fd4a0c966 100644 --- a/projects/demo/src/modules/markup/spaces/spaces.component.ts +++ b/projects/demo/src/modules/markup/spaces/spaces.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'spaces', diff --git a/projects/demo/src/modules/markup/tables/tables.component.ts b/projects/demo/src/modules/markup/tables/tables.component.ts index 267a4be7cff4..f1d088932c2b 100644 --- a/projects/demo/src/modules/markup/tables/tables.component.ts +++ b/projects/demo/src/modules/markup/tables/tables.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'tables', diff --git a/projects/demo/src/modules/pipes/amount/amount.component.ts b/projects/demo/src/modules/pipes/amount/amount.component.ts index aaf95762f3bd..0e397194d698 100644 --- a/projects/demo/src/modules/pipes/amount/amount.component.ts +++ b/projects/demo/src/modules/pipes/amount/amount.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-amount', diff --git a/projects/demo/src/modules/pipes/currency/currency.component.ts b/projects/demo/src/modules/pipes/currency/currency.component.ts index 2892f0bf1ef6..cda430a5e941 100644 --- a/projects/demo/src/modules/pipes/currency/currency.component.ts +++ b/projects/demo/src/modules/pipes/currency/currency.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-currency', diff --git a/projects/demo/src/modules/pipes/field-error/examples/1/index.ts b/projects/demo/src/modules/pipes/field-error/examples/1/index.ts index ad94985c39f1..6267dd26b888 100644 --- a/projects/demo/src/modules/pipes/field-error/examples/1/index.ts +++ b/projects/demo/src/modules/pipes/field-error/examples/1/index.ts @@ -1,5 +1,5 @@ import {Component} from '@angular/core'; -import {AbstractControl, FormControl, FormGroup, Validators} from '@angular/forms'; +import {type AbstractControl, FormControl, FormGroup, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {distinctUntilChanged} from 'rxjs'; diff --git a/projects/demo/src/modules/pipes/field-error/examples/3/index.ts b/projects/demo/src/modules/pipes/field-error/examples/3/index.ts index 1c77211a1f85..50c4a6cfea8a 100644 --- a/projects/demo/src/modules/pipes/field-error/examples/3/index.ts +++ b/projects/demo/src/modules/pipes/field-error/examples/3/index.ts @@ -1,15 +1,15 @@ -import {Component, OnInit, ViewChild} from '@angular/core'; +import {Component, type OnInit, ViewChild} from '@angular/core'; import { - AbstractControl, + type AbstractControl, FormControl, FormGroup, - ValidationErrors, + type ValidationErrors, Validators, } from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiValidationError} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; const secretRegexTen = /^\d{10}$/; const secretRegexTwelve = /^\d{12}$/; diff --git a/projects/demo/src/modules/pipes/field-error/examples/4/index.ts b/projects/demo/src/modules/pipes/field-error/examples/4/index.ts index 807db9ab82d9..da6fd3cad0e8 100644 --- a/projects/demo/src/modules/pipes/field-error/examples/4/index.ts +++ b/projects/demo/src/modules/pipes/field-error/examples/4/index.ts @@ -1,17 +1,17 @@ import {Component, ViewChild} from '@angular/core'; import { - AbstractControl, + type AbstractControl, FormArray, FormControl, FormGroup, - ValidationErrors, - ValidatorFn, + type ValidationErrors, + type ValidatorFn, Validators, } from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiValidationError} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-field-error-pipe-example-4', diff --git a/projects/demo/src/modules/pipes/field-error/examples/5/index.ts b/projects/demo/src/modules/pipes/field-error/examples/5/index.ts index a6b7f0242a1b..893a488e0f2f 100644 --- a/projects/demo/src/modules/pipes/field-error/examples/5/index.ts +++ b/projects/demo/src/modules/pipes/field-error/examples/5/index.ts @@ -1,8 +1,8 @@ import {Component, inject} from '@angular/core'; import { - AbstractControl, - AsyncValidatorFn, - FormGroup, + type AbstractControl, + type AsyncValidatorFn, + type FormGroup, UntypedFormBuilder, Validators, } from '@angular/forms'; diff --git a/projects/demo/src/modules/pipes/field-error/field-error.component.ts b/projects/demo/src/modules/pipes/field-error/field-error.component.ts index ec275dcf2a16..587931607f1a 100644 --- a/projects/demo/src/modules/pipes/field-error/field-error.component.ts +++ b/projects/demo/src/modules/pipes/field-error/field-error.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-field-error-pipe', diff --git a/projects/demo/src/modules/pipes/filter-by-input/filter-by-input.component.ts b/projects/demo/src/modules/pipes/filter-by-input/filter-by-input.component.ts index 31c31c353ea1..fd01b983dab2 100644 --- a/projects/demo/src/modules/pipes/filter-by-input/filter-by-input.component.ts +++ b/projects/demo/src/modules/pipes/filter-by-input/filter-by-input.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-filter-by-input', diff --git a/projects/demo/src/modules/pipes/filter/filter.component.ts b/projects/demo/src/modules/pipes/filter/filter.component.ts index b1434c4d36a2..ca03db97aa8a 100644 --- a/projects/demo/src/modules/pipes/filter/filter.component.ts +++ b/projects/demo/src/modules/pipes/filter/filter.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-filter', diff --git a/projects/demo/src/modules/pipes/flag/flag.component.ts b/projects/demo/src/modules/pipes/flag/flag.component.ts index 501ea1dea4b5..ff146251cf1a 100644 --- a/projects/demo/src/modules/pipes/flag/flag.component.ts +++ b/projects/demo/src/modules/pipes/flag/flag.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-flag', diff --git a/projects/demo/src/modules/pipes/format-date/examples/1/service.ts b/projects/demo/src/modules/pipes/format-date/examples/1/service.ts index e8673ebb8548..36cb3fa363d1 100644 --- a/projects/demo/src/modules/pipes/format-date/examples/1/service.ts +++ b/projects/demo/src/modules/pipes/format-date/examples/1/service.ts @@ -1,7 +1,7 @@ import {Injectable} from '@angular/core'; import {TuiFormatDateService} from '@taiga-ui/core'; import {formatDistance} from 'date-fns'; -import {map, Observable, timer} from 'rxjs'; +import {map, type Observable, timer} from 'rxjs'; @Injectable() export class FormatService extends TuiFormatDateService { diff --git a/projects/demo/src/modules/pipes/format-date/format-date.component.ts b/projects/demo/src/modules/pipes/format-date/format-date.component.ts index 0c3d3a0deea6..094d438f589c 100644 --- a/projects/demo/src/modules/pipes/format-date/format-date.component.ts +++ b/projects/demo/src/modules/pipes/format-date/format-date.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-format-date', diff --git a/projects/demo/src/modules/pipes/format-number/format-number.component.ts b/projects/demo/src/modules/pipes/format-number/format-number.component.ts index 49ad0d538396..1cb92d508bdb 100644 --- a/projects/demo/src/modules/pipes/format-number/format-number.component.ts +++ b/projects/demo/src/modules/pipes/format-number/format-number.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; -import {TuiDecimalSymbol} from '@taiga-ui/core'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDecimalSymbol} from '@taiga-ui/core'; @Component({ selector: 'example-tui-format-number', diff --git a/projects/demo/src/modules/pipes/format-phone/format-phone.component.ts b/projects/demo/src/modules/pipes/format-phone/format-phone.component.ts index 8845f1cf4da3..cd45b7f374bb 100644 --- a/projects/demo/src/modules/pipes/format-phone/format-phone.component.ts +++ b/projects/demo/src/modules/pipes/format-phone/format-phone.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-format-phone', diff --git a/projects/demo/src/modules/pipes/is-present/is-present.component.ts b/projects/demo/src/modules/pipes/is-present/is-present.component.ts index 73c6b102503f..162a6a0b245b 100644 --- a/projects/demo/src/modules/pipes/is-present/is-present.component.ts +++ b/projects/demo/src/modules/pipes/is-present/is-present.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-is-present', diff --git a/projects/demo/src/modules/pipes/mapper/examples/2/component.ts b/projects/demo/src/modules/pipes/mapper/examples/2/component.ts index a3bc9f2a1ce8..74d030ba16e3 100644 --- a/projects/demo/src/modules/pipes/mapper/examples/2/component.ts +++ b/projects/demo/src/modules/pipes/mapper/examples/2/component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiTypedMapper} from '@taiga-ui/cdk'; +import {type TuiTypedMapper} from '@taiga-ui/cdk'; @Component({ selector: 'tui-mapper-example2', diff --git a/projects/demo/src/modules/pipes/mapper/mapper.component.ts b/projects/demo/src/modules/pipes/mapper/mapper.component.ts index 5671f40ef12f..9fbdf5d4703f 100644 --- a/projects/demo/src/modules/pipes/mapper/mapper.component.ts +++ b/projects/demo/src/modules/pipes/mapper/mapper.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-mapper', diff --git a/projects/demo/src/modules/pipes/stringify-content/stringify-content.component.ts b/projects/demo/src/modules/pipes/stringify-content/stringify-content.component.ts index 2ec7631dc246..da748bd4813a 100644 --- a/projects/demo/src/modules/pipes/stringify-content/stringify-content.component.ts +++ b/projects/demo/src/modules/pipes/stringify-content/stringify-content.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-stringify-content', diff --git a/projects/demo/src/modules/pipes/stringify/stringify.component.ts b/projects/demo/src/modules/pipes/stringify/stringify.component.ts index 20399f9fc4da..326be7971ce9 100644 --- a/projects/demo/src/modules/pipes/stringify/stringify.component.ts +++ b/projects/demo/src/modules/pipes/stringify/stringify.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-stringify', diff --git a/projects/demo/src/modules/services/breakpoint/breakpoint.component.ts b/projects/demo/src/modules/services/breakpoint/breakpoint.component.ts index 841ee8056e94..0a757021a47d 100644 --- a/projects/demo/src/modules/services/breakpoint/breakpoint.component.ts +++ b/projects/demo/src/modules/services/breakpoint/breakpoint.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-breakpoint', diff --git a/projects/demo/src/modules/services/destroy/destroy.component.ts b/projects/demo/src/modules/services/destroy/destroy.component.ts index 9bc08558aa7d..9ee96e96d52d 100644 --- a/projects/demo/src/modules/services/destroy/destroy.component.ts +++ b/projects/demo/src/modules/services/destroy/destroy.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-destroy', diff --git a/projects/demo/src/modules/services/scroll/examples/1/index.ts b/projects/demo/src/modules/services/scroll/examples/1/index.ts index e9e8fd74173a..8dec0645e0e0 100644 --- a/projects/demo/src/modules/services/scroll/examples/1/index.ts +++ b/projects/demo/src/modules/services/scroll/examples/1/index.ts @@ -1,4 +1,4 @@ -import {Component, ElementRef, inject} from '@angular/core'; +import {Component, type ElementRef, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiDestroyService, TuiScrollService} from '@taiga-ui/cdk'; diff --git a/projects/demo/src/modules/services/scroll/scroll.component.ts b/projects/demo/src/modules/services/scroll/scroll.component.ts index f75d6b6c3157..91fd21099c47 100644 --- a/projects/demo/src/modules/services/scroll/scroll.component.ts +++ b/projects/demo/src/modules/services/scroll/scroll.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-scrollbar', diff --git a/projects/demo/src/modules/services/table-bar/examples/1/index.ts b/projects/demo/src/modules/services/table-bar/examples/1/index.ts index e931bbc72d11..9d4c98980cb9 100644 --- a/projects/demo/src/modules/services/table-bar/examples/1/index.ts +++ b/projects/demo/src/modules/services/table-bar/examples/1/index.ts @@ -2,7 +2,7 @@ import {Component, inject, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiTableBarsService} from '@taiga-ui/addon-tablebars'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {Subscription} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/services/table-bar/table-bar.component.ts b/projects/demo/src/modules/services/table-bar/table-bar.component.ts index 39c56dec810b..4708d1dada91 100644 --- a/projects/demo/src/modules/services/table-bar/table-bar.component.ts +++ b/projects/demo/src/modules/services/table-bar/table-bar.component.ts @@ -1,9 +1,9 @@ -import {Component, inject, OnDestroy, ViewChild} from '@angular/core'; +import {Component, inject, type OnDestroy, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; import {TuiTableBarsService} from '@taiga-ui/addon-tablebars'; -import {TuiBrightness} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiBrightness} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {Subject, Subscription, takeUntil} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/tables/reorder/reorder.component.ts b/projects/demo/src/modules/tables/reorder/reorder.component.ts index 278937464208..c9f5190016f8 100644 --- a/projects/demo/src/modules/tables/reorder/reorder.component.ts +++ b/projects/demo/src/modules/tables/reorder/reorder.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-reorder', diff --git a/projects/demo/src/modules/tables/table-filters/table-filters.component.ts b/projects/demo/src/modules/tables/table-filters/table-filters.component.ts index 95773f8787dd..2e7b7ba01ac8 100644 --- a/projects/demo/src/modules/tables/table-filters/table-filters.component.ts +++ b/projects/demo/src/modules/tables/table-filters/table-filters.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-table-filters', diff --git a/projects/demo/src/modules/tables/table-pagination/examples/2/index.ts b/projects/demo/src/modules/tables/table-pagination/examples/2/index.ts index 900d67914d8c..c170b9fdbd6d 100644 --- a/projects/demo/src/modules/tables/table-pagination/examples/2/index.ts +++ b/projects/demo/src/modules/tables/table-pagination/examples/2/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import { - TuiTablePaginationOptions, + type TuiTablePaginationOptions, tuiTablePaginationOptionsProvider, } from '@taiga-ui/addon-table'; diff --git a/projects/demo/src/modules/tables/table-pagination/table-pagination.component.ts b/projects/demo/src/modules/tables/table-pagination/table-pagination.component.ts index afbc030901cb..6edc9749fe34 100644 --- a/projects/demo/src/modules/tables/table-pagination/table-pagination.component.ts +++ b/projects/demo/src/modules/tables/table-pagination/table-pagination.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-table-pagination', diff --git a/projects/demo/src/modules/tables/table/examples/3/index.ts b/projects/demo/src/modules/tables/table/examples/3/index.ts index 20af6dd67dda..858f5ff03f58 100644 --- a/projects/demo/src/modules/tables/table/examples/3/index.ts +++ b/projects/demo/src/modules/tables/table/examples/3/index.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; -import {ValidatorFn} from '@angular/forms'; +import {type ValidatorFn} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiComparator} from '@taiga-ui/addon-table'; +import {type TuiComparator} from '@taiga-ui/addon-table'; import {TuiDay, tuiDefaultSort} from '@taiga-ui/cdk'; interface Item { diff --git a/projects/demo/src/modules/tables/table/examples/4/index.ts b/projects/demo/src/modules/tables/table/examples/4/index.ts index 0feafacdb70d..13f4fcdf4116 100644 --- a/projects/demo/src/modules/tables/table/examples/4/index.ts +++ b/projects/demo/src/modules/tables/table/examples/4/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiComparator} from '@taiga-ui/addon-table'; +import {type TuiComparator} from '@taiga-ui/addon-table'; import { TUI_DEFAULT_MATCHER, tuiControlValue, @@ -19,7 +19,7 @@ import { debounceTime, filter, map, - Observable, + type Observable, share, startWith, switchMap, diff --git a/projects/demo/src/modules/tables/table/examples/5/index.ts b/projects/demo/src/modules/tables/table/examples/5/index.ts index 9c8b702cd678..e4f727f193de 100644 --- a/projects/demo/src/modules/tables/table/examples/5/index.ts +++ b/projects/demo/src/modules/tables/table/examples/5/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiComparator} from '@taiga-ui/addon-table'; +import {type TuiComparator} from '@taiga-ui/addon-table'; import {TuiDay, tuiToInt} from '@taiga-ui/cdk'; interface User { diff --git a/projects/demo/src/modules/tables/table/table.component.ts b/projects/demo/src/modules/tables/table/table.component.ts index 4d1c0c250b8c..d7cf3cf38734 100644 --- a/projects/demo/src/modules/tables/table/table.component.ts +++ b/projects/demo/src/modules/tables/table/table.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-table', diff --git a/projects/demo/src/modules/utils/browser/browser.component.ts b/projects/demo/src/modules/utils/browser/browser.component.ts index 9e6ebd335102..be7a84e72453 100644 --- a/projects/demo/src/modules/utils/browser/browser.component.ts +++ b/projects/demo/src/modules/utils/browser/browser.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-browser', diff --git a/projects/demo/src/modules/utils/format/examples/2/index.ts b/projects/demo/src/modules/utils/format/examples/2/index.ts index e369a32f172f..a6be992f67a6 100644 --- a/projects/demo/src/modules/utils/format/examples/2/index.ts +++ b/projects/demo/src/modules/utils/format/examples/2/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiCurrencyVariants, tuiGetCurrencySymbol} from '@taiga-ui/addon-commerce'; +import {type TuiCurrencyVariants, tuiGetCurrencySymbol} from '@taiga-ui/addon-commerce'; @Component({ selector: 'tui-format-example-2', diff --git a/projects/demo/src/modules/utils/format/examples/5/index.ts b/projects/demo/src/modules/utils/format/examples/5/index.ts index 455912b72323..59a525ef0e8f 100644 --- a/projects/demo/src/modules/utils/format/examples/5/index.ts +++ b/projects/demo/src/modules/utils/format/examples/5/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDecimalSymbol, tuiFormatNumber} from '@taiga-ui/core'; +import {type TuiDecimalSymbol, tuiFormatNumber} from '@taiga-ui/core'; @Component({ selector: 'tui-format-example-5', diff --git a/projects/demo/src/modules/utils/format/format.component.ts b/projects/demo/src/modules/utils/format/format.component.ts index 7d34f44379b6..8a4039af11d3 100644 --- a/projects/demo/src/modules/utils/format/format.component.ts +++ b/projects/demo/src/modules/utils/format/format.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-format', diff --git a/projects/demo/src/modules/utils/math/math.component.ts b/projects/demo/src/modules/utils/math/math.component.ts index b47088544618..44f646b05646 100644 --- a/projects/demo/src/modules/utils/math/math.component.ts +++ b/projects/demo/src/modules/utils/math/math.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-math', diff --git a/projects/demo/src/modules/utils/miscellaneous/examples/6/index.ts b/projects/demo/src/modules/utils/miscellaneous/examples/6/index.ts index e9283b006c43..97e8bd5387a9 100644 --- a/projects/demo/src/modules/utils/miscellaneous/examples/6/index.ts +++ b/projects/demo/src/modules/utils/miscellaneous/examples/6/index.ts @@ -1,4 +1,4 @@ -import {Component, OnInit} from '@angular/core'; +import {Component, type OnInit} from '@angular/core'; import {FormControl, FormGroup, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; diff --git a/projects/demo/src/modules/utils/miscellaneous/miscellaneous.component.ts b/projects/demo/src/modules/utils/miscellaneous/miscellaneous.component.ts index fdd0b41abd7a..94dbb4d0fe32 100644 --- a/projects/demo/src/modules/utils/miscellaneous/miscellaneous.component.ts +++ b/projects/demo/src/modules/utils/miscellaneous/miscellaneous.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-format', diff --git a/projects/demo/src/modules/utils/pure/pure.component.ts b/projects/demo/src/modules/utils/pure/pure.component.ts index a061bf710643..71ff5c8e1ac6 100644 --- a/projects/demo/src/modules/utils/pure/pure.component.ts +++ b/projects/demo/src/modules/utils/pure/pure.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDocExample} from '@taiga-ui/addon-doc'; +import {type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-pure', diff --git a/projects/demo/src/modules/utils/tokens/tokens.component.ts b/projects/demo/src/modules/utils/tokens/tokens.component.ts index 36b20e8f6d85..585439637ce7 100644 --- a/projects/demo/src/modules/utils/tokens/tokens.component.ts +++ b/projects/demo/src/modules/utils/tokens/tokens.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TUI_DOC_CODE_EDITOR, TuiDocExample} from '@taiga-ui/addon-doc'; +import {TUI_DOC_CODE_EDITOR, type TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tokens', diff --git a/projects/demo/src/utils/example.pipe.ts b/projects/demo/src/utils/example.pipe.ts index 90ed784c6a12..181e3cf24a38 100644 --- a/projects/demo/src/utils/example.pipe.ts +++ b/projects/demo/src/utils/example.pipe.ts @@ -1,5 +1,5 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; -import {TuiDocExample, TuiDocPageComponent} from '@taiga-ui/addon-doc'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; +import {type TuiDocExample, TuiDocPageComponent} from '@taiga-ui/addon-doc'; const toKebab: (str: string) => string = str => str.replaceAll( diff --git a/projects/demo/src/utils/setup.component.ts b/projects/demo/src/utils/setup.component.ts index d0ad3bcb74fa..cefb417ffd58 100644 --- a/projects/demo/src/utils/setup.component.ts +++ b/projects/demo/src/utils/setup.component.ts @@ -1,5 +1,5 @@ import {ChangeDetectionStrategy, Component, Input} from '@angular/core'; -import {TuiDocCodeModule, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {TuiDocCodeModule, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ standalone: true, diff --git a/projects/demo/webpack.config.ts b/projects/demo/webpack.config.ts index 8a234e41183d..adb7f0e75605 100644 --- a/projects/demo/webpack.config.ts +++ b/projects/demo/webpack.config.ts @@ -1,5 +1,5 @@ import TerserPlugin from 'terser-webpack-plugin'; -import {Configuration, RuleSetRule} from 'webpack'; +import {type Configuration, type RuleSetRule} from 'webpack'; import {merge} from 'webpack-merge'; interface Options { diff --git a/projects/experimental/components/badge-notification/badge-notification.component.ts b/projects/experimental/components/badge-notification/badge-notification.component.ts index bae2ae507d05..503952c5379b 100644 --- a/projects/experimental/components/badge-notification/badge-notification.component.ts +++ b/projects/experimental/components/badge-notification/badge-notification.component.ts @@ -2,8 +2,8 @@ import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core'; import { TUI_ANIMATIONS_SPEED, tuiPop, - TuiSizeL, - TuiSizeXS, + type TuiSizeL, + type TuiSizeXS, tuiToAnimationOptions, } from '@taiga-ui/core'; diff --git a/projects/experimental/components/badge-notification/badge-notification.options.ts b/projects/experimental/components/badge-notification/badge-notification.options.ts index f487b9a6717f..74fa4b79de53 100644 --- a/projects/experimental/components/badge-notification/badge-notification.options.ts +++ b/projects/experimental/components/badge-notification/badge-notification.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeXS} from '@taiga-ui/core'; +import {type TuiSizeL, type TuiSizeXS} from '@taiga-ui/core'; export interface TuiBadgeNotificationOptions { readonly size: TuiSizeL | TuiSizeXS; diff --git a/projects/experimental/components/button/button.component.ts b/projects/experimental/components/button/button.component.ts index d86a65360fbc..596f93d8c4df 100644 --- a/projects/experimental/components/button/button.component.ts +++ b/projects/experimental/components/button/button.component.ts @@ -6,7 +6,7 @@ import { Input, } from '@angular/core'; import {tuiIsString} from '@taiga-ui/cdk'; -import {tuiSizeBigger, TuiSizeS} from '@taiga-ui/core'; +import {tuiSizeBigger, type TuiSizeS} from '@taiga-ui/core'; import {TUI_BUTTON_OPTIONS} from './button.options'; diff --git a/projects/experimental/components/button/button.options.ts b/projects/experimental/components/button/button.options.ts index a8a269a3961b..a324813facad 100644 --- a/projects/experimental/components/button/button.options.ts +++ b/projects/experimental/components/button/button.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiAppearanceOptions, TuiSizeXL, TuiSizeXS} from '@taiga-ui/core'; +import {type TuiAppearanceOptions, type TuiSizeXL, type TuiSizeXS} from '@taiga-ui/core'; export interface TuiButtonOptions extends TuiAppearanceOptions { readonly size: TuiSizeXL | TuiSizeXS; diff --git a/projects/experimental/components/checkbox/checkbox.component.ts b/projects/experimental/components/checkbox/checkbox.component.ts index 0f80267fcd6f..dda485194f52 100644 --- a/projects/experimental/components/checkbox/checkbox.component.ts +++ b/projects/experimental/components/checkbox/checkbox.component.ts @@ -1,11 +1,11 @@ import { ChangeDetectionStrategy, Component, - DoCheck, + type DoCheck, ElementRef, inject, Input, - OnInit, + type OnInit, } from '@angular/core'; import {NgControl} from '@angular/forms'; import { @@ -14,7 +14,7 @@ import { tuiIsString, TuiNativeValidatorDirective, } from '@taiga-ui/cdk'; -import {TUI_ICON_RESOLVER, TuiAppearanceDirective, TuiSizeS} from '@taiga-ui/core'; +import {TUI_ICON_RESOLVER, TuiAppearanceDirective, type TuiSizeS} from '@taiga-ui/core'; import {takeUntil} from 'rxjs'; import {TUI_CHECKBOX_OPTIONS} from './checkbox.options'; diff --git a/projects/experimental/components/checkbox/checkbox.options.ts b/projects/experimental/components/checkbox/checkbox.options.ts index 375e1587ffc7..5f931b1bc8ed 100644 --- a/projects/experimental/components/checkbox/checkbox.options.ts +++ b/projects/experimental/components/checkbox/checkbox.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; -import {tuiCreateToken, tuiProvideOptions, TuiStringHandler} from '@taiga-ui/cdk'; -import {TuiSizeS} from '@taiga-ui/core'; +import {type Provider} from '@angular/core'; +import {tuiCreateToken, tuiProvideOptions, type TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiSizeS} from '@taiga-ui/core'; export interface TuiCheckboxOptions { readonly size: TuiSizeS; diff --git a/projects/experimental/components/chip/chip.directive.ts b/projects/experimental/components/chip/chip.directive.ts index e82405d0b2db..3dac2c342674 100644 --- a/projects/experimental/components/chip/chip.directive.ts +++ b/projects/experimental/components/chip/chip.directive.ts @@ -4,7 +4,7 @@ import { TuiAppearanceDirective, tuiAppearanceOptionsProvider, TuiIconsDirective, - TuiSizeXXS, + type TuiSizeXXS, } from '@taiga-ui/core'; import {tuiButtonOptionsProvider} from '@taiga-ui/experimental/components/button'; import {tuiCheckboxOptionsProvider} from '@taiga-ui/experimental/components/checkbox'; diff --git a/projects/experimental/components/chip/chip.options.ts b/projects/experimental/components/chip/chip.options.ts index 647fbcfbe847..92a32af4a17d 100644 --- a/projects/experimental/components/chip/chip.options.ts +++ b/projects/experimental/components/chip/chip.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiAppearanceOptions, TuiSizeXXS} from '@taiga-ui/core'; +import {type TuiAppearanceOptions, type TuiSizeXXS} from '@taiga-ui/core'; export interface TuiChipOptions extends TuiAppearanceOptions { readonly size: TuiSizeXXS; diff --git a/projects/experimental/components/radio/radio.component.ts b/projects/experimental/components/radio/radio.component.ts index 7d73f284d836..695bd04b746c 100644 --- a/projects/experimental/components/radio/radio.component.ts +++ b/projects/experimental/components/radio/radio.component.ts @@ -1,14 +1,14 @@ import { ChangeDetectionStrategy, Component, - DoCheck, + type DoCheck, ElementRef, inject, Input, } from '@angular/core'; import {NgControl} from '@angular/forms'; import {TuiNativeValidatorDirective} from '@taiga-ui/cdk'; -import {TuiAppearanceDirective, TuiSizeS} from '@taiga-ui/core'; +import {TuiAppearanceDirective, type TuiSizeS} from '@taiga-ui/core'; import {TUI_RADIO_OPTIONS} from './radio.options'; diff --git a/projects/experimental/components/radio/radio.options.ts b/projects/experimental/components/radio/radio.options.ts index c26a6d11efff..c29c95ffb313 100644 --- a/projects/experimental/components/radio/radio.options.ts +++ b/projects/experimental/components/radio/radio.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; -import {tuiCreateToken, tuiProvideOptions, TuiStringHandler} from '@taiga-ui/cdk'; -import {TuiSizeS} from '@taiga-ui/core'; +import {type Provider} from '@angular/core'; +import {tuiCreateToken, tuiProvideOptions, type TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiSizeS} from '@taiga-ui/core'; export interface TuiRadioOptions { readonly appearance: TuiStringHandler; diff --git a/projects/experimental/components/rating/rating.component.ts b/projects/experimental/components/rating/rating.component.ts index 5ecda87481e3..5301b5722af0 100644 --- a/projects/experimental/components/rating/rating.component.ts +++ b/projects/experimental/components/rating/rating.component.ts @@ -12,7 +12,7 @@ import {NgControl} from '@angular/forms'; import { AbstractTuiControl, tuiClamp, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, tuiIsNativeFocused, } from '@taiga-ui/cdk'; diff --git a/projects/experimental/components/rating/rating.options.ts b/projects/experimental/components/rating/rating.options.ts index 219f0ecbc237..a471e5959028 100644 --- a/projects/experimental/components/rating/rating.options.ts +++ b/projects/experimental/components/rating/rating.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; -import {TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Provider} from '@angular/core'; +import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiRatingOptions { readonly icon: PolymorpheusContent>; diff --git a/projects/experimental/components/segmented/segmented.component.ts b/projects/experimental/components/segmented/segmented.component.ts index 8eb6c8bcdf4c..e5e0b7c12c48 100644 --- a/projects/experimental/components/segmented/segmented.component.ts +++ b/projects/experimental/components/segmented/segmented.component.ts @@ -7,13 +7,13 @@ import { inject, Input, NgZone, - OnChanges, + type OnChanges, Output, ViewEncapsulation, } from '@angular/core'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import {TuiDestroyService, tuiIsHTMLElement, tuiPx, tuiZonefree} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; import {tuiBadgeNotificationOptionsProvider} from '@taiga-ui/experimental/components/badge-notification'; import {takeUntil} from 'rxjs'; diff --git a/projects/experimental/components/segmented/segmented.directive.ts b/projects/experimental/components/segmented/segmented.directive.ts index 0fe204455e68..a46954d1ba57 100644 --- a/projects/experimental/components/segmented/segmented.directive.ts +++ b/projects/experimental/components/segmented/segmented.directive.ts @@ -1,12 +1,12 @@ import { - AfterContentChecked, - AfterContentInit, + type AfterContentChecked, + type AfterContentInit, ContentChildren, Directive, ElementRef, HostListener, inject, - QueryList, + type QueryList, } from '@angular/core'; import {NgControl} from '@angular/forms'; import {RouterLinkActive} from '@angular/router'; diff --git a/projects/experimental/components/textfield/textfield.component.ts b/projects/experimental/components/textfield/textfield.component.ts index 59d1380fd9ec..d883858a2bbb 100644 --- a/projects/experimental/components/textfield/textfield.component.ts +++ b/projects/experimental/components/textfield/textfield.component.ts @@ -11,22 +11,22 @@ import {NgControl} from '@angular/forms'; import {ResizeObserverModule} from '@ng-web-apis/resize-observer'; import { tuiAsFocusableItemAccessor, - TuiContext, - TuiFocusableElementAccessor, + type TuiContext, + type TuiFocusableElementAccessor, tuiIsNativeFocused, TuiNativeValidatorDirective, - TuiStringHandler, + type TuiStringHandler, } from '@taiga-ui/cdk'; import { tuiAppearanceOptionsProvider, tuiAsDataListHost, - TuiDataListHost, + type TuiDataListHost, TuiDropdownOpenDirective, tuiDropdownOptionsProvider, TuiIconsDirective, } from '@taiga-ui/core'; import {TuiButtonModule} from '@taiga-ui/experimental/components/button'; -import {PolymorpheusContent, PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent, PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; import {EMPTY} from 'rxjs'; import {TuiLabelDirective} from './label.directive'; diff --git a/projects/experimental/components/textfield/textfield.directive.ts b/projects/experimental/components/textfield/textfield.directive.ts index 65cf300e2d23..f64c0274489f 100644 --- a/projects/experimental/components/textfield/textfield.directive.ts +++ b/projects/experimental/components/textfield/textfield.directive.ts @@ -1,6 +1,6 @@ -import {Directive, DoCheck, ElementRef, inject, Input} from '@angular/core'; +import {Directive, type DoCheck, ElementRef, inject, Input} from '@angular/core'; import {TuiIdService, TuiNativeValidatorDirective} from '@taiga-ui/cdk'; -import {TuiAppearanceDirective, TuiInteractiveStateT} from '@taiga-ui/core'; +import {TuiAppearanceDirective, type TuiInteractiveStateT} from '@taiga-ui/core'; import {TuiTextfieldComponent} from './textfield.component'; import {TUI_TEXTFIELD_OPTIONS} from './textfield.options'; diff --git a/projects/experimental/components/textfield/textfield.options.ts b/projects/experimental/components/textfield/textfield.options.ts index 71977d99be5c..fd5f0b345f75 100644 --- a/projects/experimental/components/textfield/textfield.options.ts +++ b/projects/experimental/components/textfield/textfield.options.ts @@ -1,6 +1,6 @@ -import {Directive, inject, Input, Provider} from '@angular/core'; +import {Directive, inject, Input, type Provider} from '@angular/core'; import {AbstractTuiController, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiAppearanceOptions, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiAppearanceOptions, type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; export interface TuiTextfieldOptions extends TuiAppearanceOptions { readonly size: TuiSizeL | TuiSizeS; diff --git a/projects/experimental/components/thumbnail-card/thumbnail-card.component.ts b/projects/experimental/components/thumbnail-card/thumbnail-card.component.ts index da0237330518..2b5c658823d1 100644 --- a/projects/experimental/components/thumbnail-card/thumbnail-card.component.ts +++ b/projects/experimental/components/thumbnail-card/thumbnail-card.component.ts @@ -5,9 +5,9 @@ import { inject, Input, } from '@angular/core'; -import {TUI_INPUT_CARD_OPTIONS, TuiPaymentSystem} from '@taiga-ui/addon-commerce'; +import {TUI_INPUT_CARD_OPTIONS, type TuiPaymentSystem} from '@taiga-ui/addon-commerce'; import type {TuiStringHandler} from '@taiga-ui/cdk'; -import {TUI_ICON_RESOLVER, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TUI_ICON_RESOLVER, type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'tui-thumbnail-card', diff --git a/projects/experimental/components/toggle/toggle.component.ts b/projects/experimental/components/toggle/toggle.component.ts index 79f106ccd157..a4212a18e11b 100644 --- a/projects/experimental/components/toggle/toggle.component.ts +++ b/projects/experimental/components/toggle/toggle.component.ts @@ -1,7 +1,7 @@ import { ChangeDetectionStrategy, Component, - DoCheck, + type DoCheck, ElementRef, HostBinding, inject, @@ -9,7 +9,7 @@ import { } from '@angular/core'; import {NgControl} from '@angular/forms'; import {tuiIsString, TuiNativeValidatorDirective} from '@taiga-ui/cdk'; -import {TUI_ICON_RESOLVER, TuiAppearanceDirective, TuiSizeS} from '@taiga-ui/core'; +import {TUI_ICON_RESOLVER, TuiAppearanceDirective, type TuiSizeS} from '@taiga-ui/core'; import {TUI_TOGGLE_OPTIONS} from './toggle.options'; diff --git a/projects/experimental/components/toggle/toggle.options.ts b/projects/experimental/components/toggle/toggle.options.ts index 695c19873994..e8055e6fadd7 100644 --- a/projects/experimental/components/toggle/toggle.options.ts +++ b/projects/experimental/components/toggle/toggle.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; -import {tuiCreateToken, tuiProvideOptions, TuiStringHandler} from '@taiga-ui/cdk'; -import {TuiSizeS} from '@taiga-ui/core'; +import {type Provider} from '@angular/core'; +import {tuiCreateToken, tuiProvideOptions, type TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiSizeS} from '@taiga-ui/core'; export interface TuiToggleOptions { readonly showIcons: boolean; diff --git a/projects/experimental/components/tooltip/tooltip.component.ts b/projects/experimental/components/tooltip/tooltip.component.ts index 044489368364..766ba87307c2 100644 --- a/projects/experimental/components/tooltip/tooltip.component.ts +++ b/projects/experimental/components/tooltip/tooltip.component.ts @@ -11,7 +11,7 @@ import { MODE_PROVIDER, TUI_MODE, TuiAppearanceDirective, - TuiBrightness, + type TuiBrightness, TuiHintHoverDirective, TuiHintOptionsDirective, } from '@taiga-ui/core'; diff --git a/projects/experimental/components/tooltip/tooltip.options.ts b/projects/experimental/components/tooltip/tooltip.options.ts index 1d0001d06b10..35bb584b174d 100644 --- a/projects/experimental/components/tooltip/tooltip.options.ts +++ b/projects/experimental/components/tooltip/tooltip.options.ts @@ -1,5 +1,5 @@ -import {Provider} from '@angular/core'; -import {tuiCreateToken, TuiPlatform, tuiProvideOptions} from '@taiga-ui/cdk'; +import {type Provider} from '@angular/core'; +import {tuiCreateToken, type TuiPlatform, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiTooltipOptions { readonly icons: Record | string; diff --git a/projects/experimental/directives/cell/cell.directive.ts b/projects/experimental/directives/cell/cell.directive.ts index 1077c8a1937b..7d0e993b626e 100644 --- a/projects/experimental/directives/cell/cell.directive.ts +++ b/projects/experimental/directives/cell/cell.directive.ts @@ -1,6 +1,6 @@ import {Directive, Input} from '@angular/core'; import {tuiWithStyles} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; import {tuiButtonOptionsProvider} from '@taiga-ui/experimental/components'; import {tuiAvatarOptionsProvider} from '@taiga-ui/kit'; diff --git a/projects/experimental/directives/header/header.directive.ts b/projects/experimental/directives/header/header.directive.ts index 1945b23c5b83..43fd27c09d09 100644 --- a/projects/experimental/directives/header/header.directive.ts +++ b/projects/experimental/directives/header/header.directive.ts @@ -1,6 +1,6 @@ import {Directive, Input} from '@angular/core'; import {tuiWithStyles} from '@taiga-ui/cdk'; -import {TuiSizeXXL, TuiSizeXXS} from '@taiga-ui/core'; +import {type TuiSizeXXL, type TuiSizeXXS} from '@taiga-ui/core'; import {tuiButtonOptionsProvider} from '@taiga-ui/experimental/components'; import {tuiAvatarOptionsProvider, tuiBadgeOptionsProvider} from '@taiga-ui/kit'; diff --git a/projects/experimental/directives/title/title.directive.ts b/projects/experimental/directives/title/title.directive.ts index d813f94a0e9a..2a58d5bebffa 100644 --- a/projects/experimental/directives/title/title.directive.ts +++ b/projects/experimental/directives/title/title.directive.ts @@ -1,6 +1,6 @@ import {Directive, Input} from '@angular/core'; import {tuiWithStyles} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; import {TuiTitleComponent} from './title.component'; diff --git a/projects/experimental/pipes/auto-color/auto-color.pipe.ts b/projects/experimental/pipes/auto-color/auto-color.pipe.ts index e4d84078caf8..3fd92b64e720 100644 --- a/projects/experimental/pipes/auto-color/auto-color.pipe.ts +++ b/projects/experimental/pipes/auto-color/auto-color.pipe.ts @@ -1,4 +1,4 @@ -import {Pipe, PipeTransform} from '@angular/core'; +import {Pipe, type PipeTransform} from '@angular/core'; import {tuiStringHashToHsl} from '@taiga-ui/kit'; @Pipe({ diff --git a/projects/experimental/pipes/fallback-src/fallback-src.pipe.ts b/projects/experimental/pipes/fallback-src/fallback-src.pipe.ts index 61c740241304..971c50d288df 100644 --- a/projects/experimental/pipes/fallback-src/fallback-src.pipe.ts +++ b/projects/experimental/pipes/fallback-src/fallback-src.pipe.ts @@ -1,6 +1,6 @@ -import {ElementRef, inject, Pipe, PipeTransform} from '@angular/core'; +import {ElementRef, inject, Pipe, type PipeTransform} from '@angular/core'; import {TUI_ICON_ERROR} from '@taiga-ui/core'; -import {fromEvent, map, merge, Observable, startWith} from 'rxjs'; +import {fromEvent, map, merge, type Observable, startWith} from 'rxjs'; @Pipe({ name: 'tuiFallbackSrc', diff --git a/projects/experimental/pipes/initials/initials.pipe.ts b/projects/experimental/pipes/initials/initials.pipe.ts index 3a18bb51cb5d..c7420a8febec 100644 --- a/projects/experimental/pipes/initials/initials.pipe.ts +++ b/projects/experimental/pipes/initials/initials.pipe.ts @@ -1,4 +1,4 @@ -import {Pipe, PipeTransform} from '@angular/core'; +import {Pipe, type PipeTransform} from '@angular/core'; @Pipe({ name: 'tuiInitials', diff --git a/projects/i18n/interfaces/language.ts b/projects/i18n/interfaces/language.ts index e2c3aa0f140d..98b22049dea4 100644 --- a/projects/i18n/interfaces/language.ts +++ b/projects/i18n/interfaces/language.ts @@ -1,6 +1,6 @@ -import {TuiCountryIsoCode} from '@taiga-ui/i18n/enums'; +import {type TuiCountryIsoCode} from '@taiga-ui/i18n/enums'; -import {TuiLanguageName} from './language-names'; +import {type TuiLanguageName} from './language-names'; // prettier-ignore type MONTHS_ARRAY = [string, string, string, string, string, string, string, string, string, string, string, string]; diff --git a/projects/i18n/languages/belarusian/addon-commerce.ts b/projects/i18n/languages/belarusian/addon-commerce.ts index 8850cc918fa1..69bbe0851771 100644 --- a/projects/i18n/languages/belarusian/addon-commerce.ts +++ b/projects/i18n/languages/belarusian/addon-commerce.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_BELARUSIAN_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Нумар', 'Нумар карты'], diff --git a/projects/i18n/languages/belarusian/addon-editor.ts b/projects/i18n/languages/belarusian/addon-editor.ts index 488076464e52..ce596d244525 100644 --- a/projects/i18n/languages/belarusian/addon-editor.ts +++ b/projects/i18n/languages/belarusian/addon-editor.ts @@ -1,4 +1,4 @@ -import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_BELARUSIAN_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Колер', 'Градыент'], diff --git a/projects/i18n/languages/belarusian/addon-preview.ts b/projects/i18n/languages/belarusian/addon-preview.ts index 3f71f0678c32..81bb3ee8ec2b 100644 --- a/projects/i18n/languages/belarusian/addon-preview.ts +++ b/projects/i18n/languages/belarusian/addon-preview.ts @@ -1,4 +1,4 @@ -import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_BELARUSIAN_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/belarusian/addon-table.ts b/projects/i18n/languages/belarusian/addon-table.ts index d9e4ba6c0d32..7762b585b100 100644 --- a/projects/i18n/languages/belarusian/addon-table.ts +++ b/projects/i18n/languages/belarusian/addon-table.ts @@ -1,4 +1,4 @@ -import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_BELARUSIAN_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Паказаць/Схаваць', diff --git a/projects/i18n/languages/belarusian/belarusian.ts b/projects/i18n/languages/belarusian/belarusian.ts index a1f530ec5aca..e6885dd58ab3 100644 --- a/projects/i18n/languages/belarusian/belarusian.ts +++ b/projects/i18n/languages/belarusian/belarusian.ts @@ -1,4 +1,4 @@ -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_BELARUSIAN_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_BELARUSIAN_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/belarusian/core.ts b/projects/i18n/languages/belarusian/core.ts index 5e24615a74ad..3ea7135b3f68 100644 --- a/projects/i18n/languages/belarusian/core.ts +++ b/projects/i18n/languages/belarusian/core.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_BELARUSIAN_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/belarusian/kit.ts b/projects/i18n/languages/belarusian/kit.ts index 90344518f78b..defc28f91878 100644 --- a/projects/i18n/languages/belarusian/kit.ts +++ b/projects/i18n/languages/belarusian/kit.ts @@ -1,4 +1,4 @@ -import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_BELARUSIAN_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Скасаваць', diff --git a/projects/i18n/languages/chinese/addon-commerce.ts b/projects/i18n/languages/chinese/addon-commerce.ts index 9dc767855ea5..96eb39c5fc60 100644 --- a/projects/i18n/languages/chinese/addon-commerce.ts +++ b/projects/i18n/languages/chinese/addon-commerce.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_CHINESE_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['号码', '信用卡号码'], diff --git a/projects/i18n/languages/chinese/addon-editor.ts b/projects/i18n/languages/chinese/addon-editor.ts index f47c411a5bea..f1679ea6fb90 100644 --- a/projects/i18n/languages/chinese/addon-editor.ts +++ b/projects/i18n/languages/chinese/addon-editor.ts @@ -1,4 +1,4 @@ -import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_CHINESE_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['纯色', '渐变色'], diff --git a/projects/i18n/languages/chinese/addon-preview.ts b/projects/i18n/languages/chinese/addon-preview.ts index d67ff48d54f7..06a4cfe4b7fa 100644 --- a/projects/i18n/languages/chinese/addon-preview.ts +++ b/projects/i18n/languages/chinese/addon-preview.ts @@ -1,4 +1,4 @@ -import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_CHINESE_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/chinese/addon-table.ts b/projects/i18n/languages/chinese/addon-table.ts index 540aadd4f91e..c75c456d0150 100644 --- a/projects/i18n/languages/chinese/addon-table.ts +++ b/projects/i18n/languages/chinese/addon-table.ts @@ -1,4 +1,4 @@ -import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_CHINESE_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: '显示/隐藏', diff --git a/projects/i18n/languages/chinese/chinese.ts b/projects/i18n/languages/chinese/chinese.ts index 963076cd5941..9b80be1ad204 100644 --- a/projects/i18n/languages/chinese/chinese.ts +++ b/projects/i18n/languages/chinese/chinese.ts @@ -1,4 +1,4 @@ -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_CHINESE_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_CHINESE_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/chinese/core.ts b/projects/i18n/languages/chinese/core.ts index c627f51ef8cd..ec9e958b9ed6 100644 --- a/projects/i18n/languages/chinese/core.ts +++ b/projects/i18n/languages/chinese/core.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_CHINESE_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/chinese/kit.ts b/projects/i18n/languages/chinese/kit.ts index d849cb901f94..dd80f161f164 100644 --- a/projects/i18n/languages/chinese/kit.ts +++ b/projects/i18n/languages/chinese/kit.ts @@ -1,4 +1,4 @@ -import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_CHINESE_LANGUAGE_KIT: TuiLanguageKit = { cancel: '撤消', diff --git a/projects/i18n/languages/dutch/addon-commerce.ts b/projects/i18n/languages/dutch/addon-commerce.ts index 5ebe1faa9c65..ad7a4219d0bd 100644 --- a/projects/i18n/languages/dutch/addon-commerce.ts +++ b/projects/i18n/languages/dutch/addon-commerce.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_DUTCH_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Nummer', 'Kaartnummer'], diff --git a/projects/i18n/languages/dutch/addon-editor.ts b/projects/i18n/languages/dutch/addon-editor.ts index 271a49ca39ae..c8668de403f4 100644 --- a/projects/i18n/languages/dutch/addon-editor.ts +++ b/projects/i18n/languages/dutch/addon-editor.ts @@ -1,4 +1,4 @@ -import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_DUTCH_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Effen kleur', 'Kleurverloop'], diff --git a/projects/i18n/languages/dutch/addon-preview.ts b/projects/i18n/languages/dutch/addon-preview.ts index 2d2e6fa98b13..d70b29735e79 100644 --- a/projects/i18n/languages/dutch/addon-preview.ts +++ b/projects/i18n/languages/dutch/addon-preview.ts @@ -1,4 +1,4 @@ -import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_DUTCH_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/dutch/addon-table.ts b/projects/i18n/languages/dutch/addon-table.ts index 388a89490d3d..137571644b49 100644 --- a/projects/i18n/languages/dutch/addon-table.ts +++ b/projects/i18n/languages/dutch/addon-table.ts @@ -1,4 +1,4 @@ -import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_DUTCH_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Toon/Verberg', diff --git a/projects/i18n/languages/dutch/core.ts b/projects/i18n/languages/dutch/core.ts index 5fa367cbb975..8dedc1853f0f 100644 --- a/projects/i18n/languages/dutch/core.ts +++ b/projects/i18n/languages/dutch/core.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_DUTCH_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/dutch/dutch.ts b/projects/i18n/languages/dutch/dutch.ts index 9799248280a3..788747d3f2cd 100644 --- a/projects/i18n/languages/dutch/dutch.ts +++ b/projects/i18n/languages/dutch/dutch.ts @@ -1,4 +1,4 @@ -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_DUTCH_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_DUTCH_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/dutch/kit.ts b/projects/i18n/languages/dutch/kit.ts index b68234be4d64..80ec09d9efbf 100644 --- a/projects/i18n/languages/dutch/kit.ts +++ b/projects/i18n/languages/dutch/kit.ts @@ -1,4 +1,4 @@ -import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_DUTCH_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Annuleren', diff --git a/projects/i18n/languages/english/addon-commerce.ts b/projects/i18n/languages/english/addon-commerce.ts index 4622bb169fe3..ee44732bb671 100644 --- a/projects/i18n/languages/english/addon-commerce.ts +++ b/projects/i18n/languages/english/addon-commerce.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_ENGLISH_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Number', 'Card number'], diff --git a/projects/i18n/languages/english/addon-editor.ts b/projects/i18n/languages/english/addon-editor.ts index ba499edfb710..2feed16cefac 100644 --- a/projects/i18n/languages/english/addon-editor.ts +++ b/projects/i18n/languages/english/addon-editor.ts @@ -1,4 +1,4 @@ -import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_ENGLISH_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Solid color', 'Gradient'], diff --git a/projects/i18n/languages/english/addon-preview.ts b/projects/i18n/languages/english/addon-preview.ts index 0b7377f02a9a..d761be41bb16 100644 --- a/projects/i18n/languages/english/addon-preview.ts +++ b/projects/i18n/languages/english/addon-preview.ts @@ -1,4 +1,4 @@ -import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_ENGLISH_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/english/addon-table.ts b/projects/i18n/languages/english/addon-table.ts index ea413408e37f..7dca9e4b18fd 100644 --- a/projects/i18n/languages/english/addon-table.ts +++ b/projects/i18n/languages/english/addon-table.ts @@ -1,4 +1,4 @@ -import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_ENGLISH_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Show/Hide', diff --git a/projects/i18n/languages/english/core.ts b/projects/i18n/languages/english/core.ts index b770478c6e64..9dc329893728 100644 --- a/projects/i18n/languages/english/core.ts +++ b/projects/i18n/languages/english/core.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_ENGLISH_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/english/english.ts b/projects/i18n/languages/english/english.ts index 30f08cee55a4..88acb1e717d9 100644 --- a/projects/i18n/languages/english/english.ts +++ b/projects/i18n/languages/english/english.ts @@ -1,4 +1,4 @@ -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_ENGLISH_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_ENGLISH_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/english/kit.ts b/projects/i18n/languages/english/kit.ts index d62970d8ebb0..5601e365ed63 100644 --- a/projects/i18n/languages/english/kit.ts +++ b/projects/i18n/languages/english/kit.ts @@ -1,4 +1,4 @@ -import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_ENGLISH_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Cancel', diff --git a/projects/i18n/languages/french/addon-commerce.ts b/projects/i18n/languages/french/addon-commerce.ts index 7bf3db319650..2bed9a9c70ee 100644 --- a/projects/i18n/languages/french/addon-commerce.ts +++ b/projects/i18n/languages/french/addon-commerce.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_FRENCH_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Number', 'Numéro de carte'], diff --git a/projects/i18n/languages/french/addon-editor.ts b/projects/i18n/languages/french/addon-editor.ts index 2eded1e18634..0508d864eeb9 100644 --- a/projects/i18n/languages/french/addon-editor.ts +++ b/projects/i18n/languages/french/addon-editor.ts @@ -1,4 +1,4 @@ -import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_FRENCH_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Couleur unie', 'Dégradé de couleur'], diff --git a/projects/i18n/languages/french/addon-preview.ts b/projects/i18n/languages/french/addon-preview.ts index 9c5bf8ae24a5..be23558c5557 100644 --- a/projects/i18n/languages/french/addon-preview.ts +++ b/projects/i18n/languages/french/addon-preview.ts @@ -1,4 +1,4 @@ -import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_FRENCH_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/french/addon-table.ts b/projects/i18n/languages/french/addon-table.ts index 26019562c307..18375aa97bf8 100644 --- a/projects/i18n/languages/french/addon-table.ts +++ b/projects/i18n/languages/french/addon-table.ts @@ -1,4 +1,4 @@ -import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_FRENCH_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Afficher/Cacher', diff --git a/projects/i18n/languages/french/core.ts b/projects/i18n/languages/french/core.ts index c16fce1fe1c5..f5accc1e3615 100644 --- a/projects/i18n/languages/french/core.ts +++ b/projects/i18n/languages/french/core.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_FRENCH_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/french/french.ts b/projects/i18n/languages/french/french.ts index a8a5dbe47b6d..c6545862d4f3 100644 --- a/projects/i18n/languages/french/french.ts +++ b/projects/i18n/languages/french/french.ts @@ -1,4 +1,4 @@ -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_FRENCH_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_FRENCH_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/french/kit.ts b/projects/i18n/languages/french/kit.ts index e663cd4a1665..279082d8153f 100644 --- a/projects/i18n/languages/french/kit.ts +++ b/projects/i18n/languages/french/kit.ts @@ -1,4 +1,4 @@ -import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_FRENCH_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Annuler', diff --git a/projects/i18n/languages/german/addon-commerce.ts b/projects/i18n/languages/german/addon-commerce.ts index 7048de80632e..da12dc296bd4 100644 --- a/projects/i18n/languages/german/addon-commerce.ts +++ b/projects/i18n/languages/german/addon-commerce.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_GERMAN_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Nummer', 'Kartennummer'], diff --git a/projects/i18n/languages/german/addon-editor.ts b/projects/i18n/languages/german/addon-editor.ts index 01dda31d12a9..d179f740db7b 100644 --- a/projects/i18n/languages/german/addon-editor.ts +++ b/projects/i18n/languages/german/addon-editor.ts @@ -1,4 +1,4 @@ -import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_GERMAN_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Farbe', 'Verlauf'], diff --git a/projects/i18n/languages/german/addon-preview.ts b/projects/i18n/languages/german/addon-preview.ts index 4abcbf6b850e..c8779d945250 100644 --- a/projects/i18n/languages/german/addon-preview.ts +++ b/projects/i18n/languages/german/addon-preview.ts @@ -1,4 +1,4 @@ -import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_GERMAN_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/german/addon-table.ts b/projects/i18n/languages/german/addon-table.ts index 923f17ffd4c8..7a99eeee450f 100644 --- a/projects/i18n/languages/german/addon-table.ts +++ b/projects/i18n/languages/german/addon-table.ts @@ -1,4 +1,4 @@ -import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_GERMAN_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Anzeigen/Ausblenden', diff --git a/projects/i18n/languages/german/core.ts b/projects/i18n/languages/german/core.ts index 4820e3140a43..7bc09f01287e 100644 --- a/projects/i18n/languages/german/core.ts +++ b/projects/i18n/languages/german/core.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_ENGLISH_LANGUAGE_COUNTRIES} from '@taiga-ui/i18n/languages/english'; export const TUI_GERMAN_LANGUAGE_CORE: TuiLanguageCore = { diff --git a/projects/i18n/languages/german/german.ts b/projects/i18n/languages/german/german.ts index cefec7a1c0cd..981cbd21c0d6 100644 --- a/projects/i18n/languages/german/german.ts +++ b/projects/i18n/languages/german/german.ts @@ -1,4 +1,4 @@ -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_GERMAN_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_GERMAN_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/german/kit.ts b/projects/i18n/languages/german/kit.ts index 2b177933c776..8c48efaa5cda 100644 --- a/projects/i18n/languages/german/kit.ts +++ b/projects/i18n/languages/german/kit.ts @@ -1,4 +1,4 @@ -import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_GERMAN_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Abbrechen', diff --git a/projects/i18n/languages/italian/addon-commerce.ts b/projects/i18n/languages/italian/addon-commerce.ts index eadad8ad3c89..79657d275633 100644 --- a/projects/i18n/languages/italian/addon-commerce.ts +++ b/projects/i18n/languages/italian/addon-commerce.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_ITALIAN_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Numero', 'Numero carta'], diff --git a/projects/i18n/languages/italian/addon-editor.ts b/projects/i18n/languages/italian/addon-editor.ts index a7d7d6467a03..6213ad337010 100644 --- a/projects/i18n/languages/italian/addon-editor.ts +++ b/projects/i18n/languages/italian/addon-editor.ts @@ -1,4 +1,4 @@ -import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_ITALIAN_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Tinta unita', 'Gradiente'], diff --git a/projects/i18n/languages/italian/addon-preview.ts b/projects/i18n/languages/italian/addon-preview.ts index 4ca8f04852a5..0423054409ba 100644 --- a/projects/i18n/languages/italian/addon-preview.ts +++ b/projects/i18n/languages/italian/addon-preview.ts @@ -1,4 +1,4 @@ -import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_ITALIAN_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/italian/addon-table.ts b/projects/i18n/languages/italian/addon-table.ts index 507a7c3f0035..4f2cebbff1ba 100644 --- a/projects/i18n/languages/italian/addon-table.ts +++ b/projects/i18n/languages/italian/addon-table.ts @@ -1,4 +1,4 @@ -import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_ITALIAN_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Mostra/Nascondi', diff --git a/projects/i18n/languages/italian/core.ts b/projects/i18n/languages/italian/core.ts index 2ae312cfd0cf..50432f90264a 100644 --- a/projects/i18n/languages/italian/core.ts +++ b/projects/i18n/languages/italian/core.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_ITALIAN_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/italian/italian.ts b/projects/i18n/languages/italian/italian.ts index 31d43dd66895..e53296707f50 100644 --- a/projects/i18n/languages/italian/italian.ts +++ b/projects/i18n/languages/italian/italian.ts @@ -1,4 +1,4 @@ -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_ITALIAN_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_ITALIAN_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/italian/kit.ts b/projects/i18n/languages/italian/kit.ts index a28df0f99a07..832e4d67b99b 100644 --- a/projects/i18n/languages/italian/kit.ts +++ b/projects/i18n/languages/italian/kit.ts @@ -1,4 +1,4 @@ -import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_ITALIAN_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Annulla', diff --git a/projects/i18n/languages/kazakh/addon-commerce.ts b/projects/i18n/languages/kazakh/addon-commerce.ts index 97e152effccb..9653ed8c0fcf 100644 --- a/projects/i18n/languages/kazakh/addon-commerce.ts +++ b/projects/i18n/languages/kazakh/addon-commerce.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_KAZAKH_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Сан', 'Карточка нөмірі'], diff --git a/projects/i18n/languages/kazakh/addon-editor.ts b/projects/i18n/languages/kazakh/addon-editor.ts index cf031473c0d4..992b88d99e8b 100644 --- a/projects/i18n/languages/kazakh/addon-editor.ts +++ b/projects/i18n/languages/kazakh/addon-editor.ts @@ -1,4 +1,4 @@ -import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_KAZAKH_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Бірыңғай түс', 'Градиент'], diff --git a/projects/i18n/languages/kazakh/addon-preview.ts b/projects/i18n/languages/kazakh/addon-preview.ts index 011752df06ea..1c8e82f1d7f4 100644 --- a/projects/i18n/languages/kazakh/addon-preview.ts +++ b/projects/i18n/languages/kazakh/addon-preview.ts @@ -1,4 +1,4 @@ -import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_KAZAKH_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/kazakh/addon-table.ts b/projects/i18n/languages/kazakh/addon-table.ts index 748de814f8f6..044e2a0ad5c6 100644 --- a/projects/i18n/languages/kazakh/addon-table.ts +++ b/projects/i18n/languages/kazakh/addon-table.ts @@ -1,4 +1,4 @@ -import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_KAZAKH_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Көрсету/Жасыру', diff --git a/projects/i18n/languages/kazakh/core.ts b/projects/i18n/languages/kazakh/core.ts index f3366b2bef67..8b9e458cb8f0 100644 --- a/projects/i18n/languages/kazakh/core.ts +++ b/projects/i18n/languages/kazakh/core.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_KAZAKH_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/kazakh/kazakh.ts b/projects/i18n/languages/kazakh/kazakh.ts index d56aa576646b..3b66733ac0ff 100644 --- a/projects/i18n/languages/kazakh/kazakh.ts +++ b/projects/i18n/languages/kazakh/kazakh.ts @@ -1,4 +1,4 @@ -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_KAZAKH_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_KAZAKH_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/kazakh/kit.ts b/projects/i18n/languages/kazakh/kit.ts index 557b981a81ab..4def1b336e1b 100644 --- a/projects/i18n/languages/kazakh/kit.ts +++ b/projects/i18n/languages/kazakh/kit.ts @@ -1,4 +1,4 @@ -import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_KAZAKH_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Болдырмау', diff --git a/projects/i18n/languages/malay/addon-commerce.ts b/projects/i18n/languages/malay/addon-commerce.ts index 4b0c074e9d11..3afbd505ecdc 100644 --- a/projects/i18n/languages/malay/addon-commerce.ts +++ b/projects/i18n/languages/malay/addon-commerce.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_MALAY_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Nombor', 'Nombor kad'], diff --git a/projects/i18n/languages/malay/addon-editor.ts b/projects/i18n/languages/malay/addon-editor.ts index 301ee2d8b8a8..2c94185fe495 100644 --- a/projects/i18n/languages/malay/addon-editor.ts +++ b/projects/i18n/languages/malay/addon-editor.ts @@ -1,4 +1,4 @@ -import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_MALAY_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Warna padu', 'Kecerunan'], diff --git a/projects/i18n/languages/malay/addon-preview.ts b/projects/i18n/languages/malay/addon-preview.ts index 1eebdc466ed9..6e413162d1b6 100644 --- a/projects/i18n/languages/malay/addon-preview.ts +++ b/projects/i18n/languages/malay/addon-preview.ts @@ -1,4 +1,4 @@ -import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_MALAY_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/malay/addon-table.ts b/projects/i18n/languages/malay/addon-table.ts index bfd6eae03e19..021e2713294c 100644 --- a/projects/i18n/languages/malay/addon-table.ts +++ b/projects/i18n/languages/malay/addon-table.ts @@ -1,4 +1,4 @@ -import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_MALAY_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Tunjuk/Sembunyi', diff --git a/projects/i18n/languages/malay/core.ts b/projects/i18n/languages/malay/core.ts index 498f0eb971fb..06bcf1ba1ba0 100644 --- a/projects/i18n/languages/malay/core.ts +++ b/projects/i18n/languages/malay/core.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_MALAY_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/malay/kit.ts b/projects/i18n/languages/malay/kit.ts index fb8207f81fc9..aec247d9efdc 100644 --- a/projects/i18n/languages/malay/kit.ts +++ b/projects/i18n/languages/malay/kit.ts @@ -1,4 +1,4 @@ -import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_MALAY_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Batal', diff --git a/projects/i18n/languages/malay/malay.ts b/projects/i18n/languages/malay/malay.ts index 5b667914ca84..4b1f6db80234 100644 --- a/projects/i18n/languages/malay/malay.ts +++ b/projects/i18n/languages/malay/malay.ts @@ -1,4 +1,4 @@ -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_MALAY_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_MALAY_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/polish/addon-commerce.ts b/projects/i18n/languages/polish/addon-commerce.ts index b60b980297c3..a09dd394051c 100644 --- a/projects/i18n/languages/polish/addon-commerce.ts +++ b/projects/i18n/languages/polish/addon-commerce.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_POLISH_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Numer', 'Numer karty'], diff --git a/projects/i18n/languages/polish/addon-editor.ts b/projects/i18n/languages/polish/addon-editor.ts index 0023e9199801..7baff6c99020 100644 --- a/projects/i18n/languages/polish/addon-editor.ts +++ b/projects/i18n/languages/polish/addon-editor.ts @@ -1,4 +1,4 @@ -import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_POLISH_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Kolor', 'Gradient'], diff --git a/projects/i18n/languages/polish/addon-preview.ts b/projects/i18n/languages/polish/addon-preview.ts index 93a9e7c8b3a6..4ebd29779e68 100644 --- a/projects/i18n/languages/polish/addon-preview.ts +++ b/projects/i18n/languages/polish/addon-preview.ts @@ -1,4 +1,4 @@ -import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_POLISH_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/polish/addon-table.ts b/projects/i18n/languages/polish/addon-table.ts index 979beeeea3a8..40e318e5fe32 100644 --- a/projects/i18n/languages/polish/addon-table.ts +++ b/projects/i18n/languages/polish/addon-table.ts @@ -1,4 +1,4 @@ -import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_POLISH_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Pokaż/Ukryj', diff --git a/projects/i18n/languages/polish/core.ts b/projects/i18n/languages/polish/core.ts index 8e32b89d1b30..d6feeaf66c36 100644 --- a/projects/i18n/languages/polish/core.ts +++ b/projects/i18n/languages/polish/core.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_POLISH_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/polish/kit.ts b/projects/i18n/languages/polish/kit.ts index 253b3224f305..9fe85199f948 100644 --- a/projects/i18n/languages/polish/kit.ts +++ b/projects/i18n/languages/polish/kit.ts @@ -1,4 +1,4 @@ -import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_POLISH_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Anuluj', diff --git a/projects/i18n/languages/polish/polish.ts b/projects/i18n/languages/polish/polish.ts index 729255da05c4..88314e9ee148 100644 --- a/projects/i18n/languages/polish/polish.ts +++ b/projects/i18n/languages/polish/polish.ts @@ -1,4 +1,4 @@ -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_POLISH_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_POLISH_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/portuguese/addon-commerce.ts b/projects/i18n/languages/portuguese/addon-commerce.ts index f8fc1d5b3e88..120de4773d4f 100644 --- a/projects/i18n/languages/portuguese/addon-commerce.ts +++ b/projects/i18n/languages/portuguese/addon-commerce.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_PORTUGUESE_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Número', 'Número do Cartão'], diff --git a/projects/i18n/languages/portuguese/addon-editor.ts b/projects/i18n/languages/portuguese/addon-editor.ts index 9e0f7a063996..b87176d0112a 100644 --- a/projects/i18n/languages/portuguese/addon-editor.ts +++ b/projects/i18n/languages/portuguese/addon-editor.ts @@ -1,4 +1,4 @@ -import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_PORTUGUESE_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Cor sólida', 'Gradiente'], diff --git a/projects/i18n/languages/portuguese/addon-preview.ts b/projects/i18n/languages/portuguese/addon-preview.ts index aeac25a24dbe..ad84a8a38826 100644 --- a/projects/i18n/languages/portuguese/addon-preview.ts +++ b/projects/i18n/languages/portuguese/addon-preview.ts @@ -1,4 +1,4 @@ -import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_PORTUGUESE_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/portuguese/addon-table.ts b/projects/i18n/languages/portuguese/addon-table.ts index 661c9cad7b39..96854a53fb8b 100644 --- a/projects/i18n/languages/portuguese/addon-table.ts +++ b/projects/i18n/languages/portuguese/addon-table.ts @@ -1,4 +1,4 @@ -import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_PORTUGUESE_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Mostrar/Esconder', diff --git a/projects/i18n/languages/portuguese/core.ts b/projects/i18n/languages/portuguese/core.ts index fe63954e4130..9c08271cecb4 100644 --- a/projects/i18n/languages/portuguese/core.ts +++ b/projects/i18n/languages/portuguese/core.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_PORTUGUESE_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/portuguese/kit.ts b/projects/i18n/languages/portuguese/kit.ts index 86df62592b45..c1b94c0f0073 100644 --- a/projects/i18n/languages/portuguese/kit.ts +++ b/projects/i18n/languages/portuguese/kit.ts @@ -1,4 +1,4 @@ -import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_PORTUGUESE_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Cancelar', diff --git a/projects/i18n/languages/portuguese/portuguese.ts b/projects/i18n/languages/portuguese/portuguese.ts index 6458101406f6..c385b4db6865 100644 --- a/projects/i18n/languages/portuguese/portuguese.ts +++ b/projects/i18n/languages/portuguese/portuguese.ts @@ -1,4 +1,4 @@ -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_PORTUGUESE_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_PORTUGUESE_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/russian/addon-commerce.ts b/projects/i18n/languages/russian/addon-commerce.ts index 099a98b1c142..ac6db300e19f 100644 --- a/projects/i18n/languages/russian/addon-commerce.ts +++ b/projects/i18n/languages/russian/addon-commerce.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_RUSSIAN_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Номер', 'Номер карты'], diff --git a/projects/i18n/languages/russian/addon-editor.ts b/projects/i18n/languages/russian/addon-editor.ts index 94d567ea9e25..9dc2ed6c1520 100644 --- a/projects/i18n/languages/russian/addon-editor.ts +++ b/projects/i18n/languages/russian/addon-editor.ts @@ -1,4 +1,4 @@ -import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_RUSSIAN_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Сплошной цвет', 'Градиент'], diff --git a/projects/i18n/languages/russian/addon-preview.ts b/projects/i18n/languages/russian/addon-preview.ts index a2feb2c568ed..59f1c1a04995 100644 --- a/projects/i18n/languages/russian/addon-preview.ts +++ b/projects/i18n/languages/russian/addon-preview.ts @@ -1,4 +1,4 @@ -import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_RUSSIAN_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/russian/addon-table.ts b/projects/i18n/languages/russian/addon-table.ts index df15b51b2b11..48ef84f86e9d 100644 --- a/projects/i18n/languages/russian/addon-table.ts +++ b/projects/i18n/languages/russian/addon-table.ts @@ -1,4 +1,4 @@ -import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_RUSSIAN_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Показать/Скрыть', diff --git a/projects/i18n/languages/russian/core.ts b/projects/i18n/languages/russian/core.ts index 5606d08facff..e81b2d3acc9b 100644 --- a/projects/i18n/languages/russian/core.ts +++ b/projects/i18n/languages/russian/core.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_RUSSIAN_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/russian/kit.ts b/projects/i18n/languages/russian/kit.ts index 93705cc01477..02c864832a95 100644 --- a/projects/i18n/languages/russian/kit.ts +++ b/projects/i18n/languages/russian/kit.ts @@ -1,4 +1,4 @@ -import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_RUSSIAN_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Отменить', diff --git a/projects/i18n/languages/russian/russian.ts b/projects/i18n/languages/russian/russian.ts index a6ef1e90b005..1f2be5ed46d1 100644 --- a/projects/i18n/languages/russian/russian.ts +++ b/projects/i18n/languages/russian/russian.ts @@ -1,4 +1,4 @@ -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_RUSSIAN_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_RUSSIAN_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/spanish/addon-commerce.ts b/projects/i18n/languages/spanish/addon-commerce.ts index ceb8b780a836..4cb4db4c726f 100644 --- a/projects/i18n/languages/spanish/addon-commerce.ts +++ b/projects/i18n/languages/spanish/addon-commerce.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_SPANISH_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Número', 'Número de la tarjeta'], diff --git a/projects/i18n/languages/spanish/addon-editor.ts b/projects/i18n/languages/spanish/addon-editor.ts index df4e6f2f8457..30724a6e0cee 100644 --- a/projects/i18n/languages/spanish/addon-editor.ts +++ b/projects/i18n/languages/spanish/addon-editor.ts @@ -1,4 +1,4 @@ -import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_SPANISH_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Color sólido', 'Gradiente'], diff --git a/projects/i18n/languages/spanish/addon-preview.ts b/projects/i18n/languages/spanish/addon-preview.ts index 94abc6d23c4c..49c6712b3a4a 100644 --- a/projects/i18n/languages/spanish/addon-preview.ts +++ b/projects/i18n/languages/spanish/addon-preview.ts @@ -1,4 +1,4 @@ -import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_SPANISH_LANGUAGE_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/spanish/addon-table.ts b/projects/i18n/languages/spanish/addon-table.ts index a664c4018ec8..d060fe47bd2b 100644 --- a/projects/i18n/languages/spanish/addon-table.ts +++ b/projects/i18n/languages/spanish/addon-table.ts @@ -1,4 +1,4 @@ -import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_SPANISH_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Mostrar/Ocultar', diff --git a/projects/i18n/languages/spanish/core.ts b/projects/i18n/languages/spanish/core.ts index 5450f4bc1d74..288875843b1c 100644 --- a/projects/i18n/languages/spanish/core.ts +++ b/projects/i18n/languages/spanish/core.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_SPANISH_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/spanish/kit.ts b/projects/i18n/languages/spanish/kit.ts index 679623b792a5..0ba8076bdb0f 100644 --- a/projects/i18n/languages/spanish/kit.ts +++ b/projects/i18n/languages/spanish/kit.ts @@ -1,4 +1,4 @@ -import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_SPANISH_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Cancelar', diff --git a/projects/i18n/languages/spanish/spanish.ts b/projects/i18n/languages/spanish/spanish.ts index 2ac3cfe0f208..560ae7a58e9e 100644 --- a/projects/i18n/languages/spanish/spanish.ts +++ b/projects/i18n/languages/spanish/spanish.ts @@ -1,4 +1,4 @@ -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_SPANISH_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_SPANISH_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/turkish/addon-commerce.ts b/projects/i18n/languages/turkish/addon-commerce.ts index 8c24ec4de18b..d464ec2273c1 100644 --- a/projects/i18n/languages/turkish/addon-commerce.ts +++ b/projects/i18n/languages/turkish/addon-commerce.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_TURKISH_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Kart No', 'Kart Numarası'], diff --git a/projects/i18n/languages/turkish/addon-editor.ts b/projects/i18n/languages/turkish/addon-editor.ts index b02eb5bc2553..c1b075e03eda 100644 --- a/projects/i18n/languages/turkish/addon-editor.ts +++ b/projects/i18n/languages/turkish/addon-editor.ts @@ -1,4 +1,4 @@ -import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_TURKISH_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Solid color', 'Gradient'], diff --git a/projects/i18n/languages/turkish/addon-preview.ts b/projects/i18n/languages/turkish/addon-preview.ts index 597b3764bde7..bf7bb4b960c7 100644 --- a/projects/i18n/languages/turkish/addon-preview.ts +++ b/projects/i18n/languages/turkish/addon-preview.ts @@ -1,4 +1,4 @@ -import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_TURKISH_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/turkish/addon-table.ts b/projects/i18n/languages/turkish/addon-table.ts index 344d55cebc6a..798d9875dfb2 100644 --- a/projects/i18n/languages/turkish/addon-table.ts +++ b/projects/i18n/languages/turkish/addon-table.ts @@ -1,4 +1,4 @@ -import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_TURKISH_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Göster/Hizle', diff --git a/projects/i18n/languages/turkish/core.ts b/projects/i18n/languages/turkish/core.ts index 040f2e7732f7..35e3a1502918 100644 --- a/projects/i18n/languages/turkish/core.ts +++ b/projects/i18n/languages/turkish/core.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_ENGLISH_LANGUAGE_COUNTRIES} from '@taiga-ui/i18n/languages/english'; export const TUI_TURKISH_LANGUAGE_CORE: TuiLanguageCore = { diff --git a/projects/i18n/languages/turkish/kit.ts b/projects/i18n/languages/turkish/kit.ts index b1bf218d7203..dc3b8e36901f 100644 --- a/projects/i18n/languages/turkish/kit.ts +++ b/projects/i18n/languages/turkish/kit.ts @@ -1,4 +1,4 @@ -import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_TURKISH_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'İptal Et', diff --git a/projects/i18n/languages/turkish/turkish.ts b/projects/i18n/languages/turkish/turkish.ts index 90db316c7b49..928e81252041 100644 --- a/projects/i18n/languages/turkish/turkish.ts +++ b/projects/i18n/languages/turkish/turkish.ts @@ -1,4 +1,4 @@ -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_TURKISH_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_TURKISH_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/ukrainian/addon-commerce.ts b/projects/i18n/languages/ukrainian/addon-commerce.ts index be8a831ace95..0eb7d7633f2b 100644 --- a/projects/i18n/languages/ukrainian/addon-commerce.ts +++ b/projects/i18n/languages/ukrainian/addon-commerce.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_UKRAINIAN_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Номер', 'Номер карти'], diff --git a/projects/i18n/languages/ukrainian/addon-editor.ts b/projects/i18n/languages/ukrainian/addon-editor.ts index 83befd3e2c7e..6ab11096f011 100644 --- a/projects/i18n/languages/ukrainian/addon-editor.ts +++ b/projects/i18n/languages/ukrainian/addon-editor.ts @@ -1,4 +1,4 @@ -import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_UKRAINIAN_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Суцільний колір', 'Градієнт'], diff --git a/projects/i18n/languages/ukrainian/addon-preview.ts b/projects/i18n/languages/ukrainian/addon-preview.ts index b3abde57a3e6..20c75f45aec4 100644 --- a/projects/i18n/languages/ukrainian/addon-preview.ts +++ b/projects/i18n/languages/ukrainian/addon-preview.ts @@ -1,4 +1,4 @@ -import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_UKRAINIAN_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/ukrainian/addon-table.ts b/projects/i18n/languages/ukrainian/addon-table.ts index 3ada68cabd28..9816fd71912a 100644 --- a/projects/i18n/languages/ukrainian/addon-table.ts +++ b/projects/i18n/languages/ukrainian/addon-table.ts @@ -1,4 +1,4 @@ -import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_UKRAINIAN_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Показати/Приховати', diff --git a/projects/i18n/languages/ukrainian/core.ts b/projects/i18n/languages/ukrainian/core.ts index 69eb4edf2760..976e22a8ee4c 100644 --- a/projects/i18n/languages/ukrainian/core.ts +++ b/projects/i18n/languages/ukrainian/core.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_ENGLISH_LANGUAGE_COUNTRIES} from '@taiga-ui/i18n/languages/english'; export const TUI_UKRAINIAN_LANGUAGE_CORE: TuiLanguageCore = { diff --git a/projects/i18n/languages/ukrainian/kit.ts b/projects/i18n/languages/ukrainian/kit.ts index e88132e44959..718de3c6ad52 100644 --- a/projects/i18n/languages/ukrainian/kit.ts +++ b/projects/i18n/languages/ukrainian/kit.ts @@ -1,4 +1,4 @@ -import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_UKRAINIAN_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Скасувати', diff --git a/projects/i18n/languages/ukrainian/ukrainian.ts b/projects/i18n/languages/ukrainian/ukrainian.ts index c8429174307c..3a4b905970f2 100644 --- a/projects/i18n/languages/ukrainian/ukrainian.ts +++ b/projects/i18n/languages/ukrainian/ukrainian.ts @@ -1,4 +1,4 @@ -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_UKRAINIAN_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_UKRAINIAN_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/vietnamese/addon-commerce.ts b/projects/i18n/languages/vietnamese/addon-commerce.ts index 988fb122b120..6be606a094a2 100644 --- a/projects/i18n/languages/vietnamese/addon-commerce.ts +++ b/projects/i18n/languages/vietnamese/addon-commerce.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_VIETNAMESE_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Số thẻ', 'Số thẻ'], diff --git a/projects/i18n/languages/vietnamese/addon-editor.ts b/projects/i18n/languages/vietnamese/addon-editor.ts index ab8cf4a86484..1558cac57828 100644 --- a/projects/i18n/languages/vietnamese/addon-editor.ts +++ b/projects/i18n/languages/vietnamese/addon-editor.ts @@ -1,4 +1,4 @@ -import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_VIETNAMESE_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Màu thuần', 'Màu chuyển sắc'], diff --git a/projects/i18n/languages/vietnamese/addon-preview.ts b/projects/i18n/languages/vietnamese/addon-preview.ts index dc29cd6fa685..0d06e2b12972 100644 --- a/projects/i18n/languages/vietnamese/addon-preview.ts +++ b/projects/i18n/languages/vietnamese/addon-preview.ts @@ -1,4 +1,4 @@ -import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_VIETNAMESE_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/vietnamese/addon-table.ts b/projects/i18n/languages/vietnamese/addon-table.ts index 3fafc679d5bd..bdee11184b9c 100644 --- a/projects/i18n/languages/vietnamese/addon-table.ts +++ b/projects/i18n/languages/vietnamese/addon-table.ts @@ -1,4 +1,4 @@ -import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_VIETNAMESE_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Hiện/Ẩn', diff --git a/projects/i18n/languages/vietnamese/core.ts b/projects/i18n/languages/vietnamese/core.ts index 5b7f793ea0de..d3ee34f37852 100644 --- a/projects/i18n/languages/vietnamese/core.ts +++ b/projects/i18n/languages/vietnamese/core.ts @@ -1,4 +1,4 @@ -import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_VIETNAMESE_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/vietnamese/kit.ts b/projects/i18n/languages/vietnamese/kit.ts index d5b9fe4d0b97..a758890e4523 100644 --- a/projects/i18n/languages/vietnamese/kit.ts +++ b/projects/i18n/languages/vietnamese/kit.ts @@ -1,4 +1,4 @@ -import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_VIETNAMESE_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Hủy bỏ', diff --git a/projects/i18n/languages/vietnamese/vietnamese.ts b/projects/i18n/languages/vietnamese/vietnamese.ts index ed16f80c65a2..64825a109c1c 100644 --- a/projects/i18n/languages/vietnamese/vietnamese.ts +++ b/projects/i18n/languages/vietnamese/vietnamese.ts @@ -1,4 +1,4 @@ -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_VIETNAMESE_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_VIETNAMESE_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/switch/language-switcher.providers.ts b/projects/i18n/switch/language-switcher.providers.ts index f0bc5d62a6cb..d73ddc834c77 100644 --- a/projects/i18n/switch/language-switcher.providers.ts +++ b/projects/i18n/switch/language-switcher.providers.ts @@ -1,5 +1,5 @@ import type {Provider} from '@angular/core'; -import {TuiLanguageLoader} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguageLoader} from '@taiga-ui/i18n/interfaces'; import {TUI_LANGUAGE, TUI_LANGUAGE_LOADER} from '@taiga-ui/i18n/tokens'; import {TuiLanguageSwitcher} from './language-switcher.service'; diff --git a/projects/i18n/switch/language-switcher.service.ts b/projects/i18n/switch/language-switcher.service.ts index 151bb1142231..feddac70c931 100644 --- a/projects/i18n/switch/language-switcher.service.ts +++ b/projects/i18n/switch/language-switcher.service.ts @@ -1,12 +1,12 @@ import {inject, Injectable} from '@angular/core'; import {LOCAL_STORAGE} from '@ng-web-apis/common'; -import {TuiLanguage, TuiLanguageName} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage, type TuiLanguageName} from '@taiga-ui/i18n/interfaces'; import { TUI_DEFAULT_LANGUAGE, TUI_LANGUAGE_LOADER, TUI_LANGUAGE_STORAGE_KEY, } from '@taiga-ui/i18n/tokens'; -import {BehaviorSubject, Observable, of} from 'rxjs'; +import {BehaviorSubject, type Observable, of} from 'rxjs'; import {tuiAsyncLoadLanguage} from './utils'; diff --git a/projects/i18n/switch/utils.ts b/projects/i18n/switch/utils.ts index a608ac96ebc3..429aeef4c512 100644 --- a/projects/i18n/switch/utils.ts +++ b/projects/i18n/switch/utils.ts @@ -3,7 +3,7 @@ import type { TuiLanguageLoader, TuiLanguageName, } from '@taiga-ui/i18n/interfaces'; -import {from, map, Observable, of} from 'rxjs'; +import {from, map, type Observable, of} from 'rxjs'; // CommonJS `module.exports` is wrapped as `default` in ESModule. async function normalizeCommonJSImport(importPromise: Promise): Promise { diff --git a/projects/i18n/tokens/language.ts b/projects/i18n/tokens/language.ts index e1313c1b120a..2fb540e28d0e 100644 --- a/projects/i18n/tokens/language.ts +++ b/projects/i18n/tokens/language.ts @@ -1,7 +1,7 @@ import {inject, InjectionToken} from '@angular/core'; -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_ENGLISH_LANGUAGE} from '@taiga-ui/i18n/languages/english'; -import {Observable, of} from 'rxjs'; +import {type Observable, of} from 'rxjs'; /** * Default Language for Taiga UI libraries i18n diff --git a/projects/i18n/tools/extract-i18n.ts b/projects/i18n/tools/extract-i18n.ts index e4f426c0a780..3411ab3c0c41 100644 --- a/projects/i18n/tools/extract-i18n.ts +++ b/projects/i18n/tools/extract-i18n.ts @@ -1,7 +1,7 @@ import {inject} from '@angular/core'; -import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_LANGUAGE} from '@taiga-ui/i18n/tokens'; -import {isObservable, map, Observable, of, switchMap} from 'rxjs'; +import {isObservable, map, type Observable, of, switchMap} from 'rxjs'; export function tuiExtractI18n( key: K, diff --git a/projects/icons/scripts/convert-all-compile-file-to-all-file.ts b/projects/icons/scripts/convert-all-compile-file-to-all-file.ts index 9d9427ffd345..ce008dc8da91 100644 --- a/projects/icons/scripts/convert-all-compile-file-to-all-file.ts +++ b/projects/icons/scripts/convert-all-compile-file-to-all-file.ts @@ -1,5 +1,5 @@ -import {rollup, RollupOptions} from 'rollup'; -import typescript, {RPT2Options} from 'rollup-plugin-typescript2'; +import {rollup, type RollupOptions} from 'rollup'; +import typescript, {type RPT2Options} from 'rollup-plugin-typescript2'; import {tuiRollupSvgo} from './rollup-svgo'; diff --git a/projects/icons/scripts/post-prettier-format.ts b/projects/icons/scripts/post-prettier-format.ts index bfa0bca523d9..07d7c9d5928a 100644 --- a/projects/icons/scripts/post-prettier-format.ts +++ b/projects/icons/scripts/post-prettier-format.ts @@ -1,5 +1,5 @@ import {readFileSync, writeFileSync} from 'fs'; -import prettier, {Options as PrettierOptions} from 'prettier'; +import prettier, {type Options as PrettierOptions} from 'prettier'; interface Options { config: PrettierOptions; diff --git a/projects/icons/scripts/rollup-svgo.ts b/projects/icons/scripts/rollup-svgo.ts index 03a73778f21e..0d70e0333bbf 100644 --- a/projects/icons/scripts/rollup-svgo.ts +++ b/projects/icons/scripts/rollup-svgo.ts @@ -1,6 +1,6 @@ import {createFilter} from '@rollup/pluginutils'; -import {Plugin, TransformResult} from 'rollup'; -import {Config, optimize} from 'svgo'; +import {type Plugin, type TransformResult} from 'rollup'; +import {type Config, optimize} from 'svgo'; export interface TuiRollupSvgoConfig { readonly exclude?: string; diff --git a/projects/kit/abstract/abstract-native-select.ts b/projects/kit/abstract/abstract-native-select.ts index d0c6e63104b0..13ec62fee5f8 100644 --- a/projects/kit/abstract/abstract-native-select.ts +++ b/projects/kit/abstract/abstract-native-select.ts @@ -7,8 +7,12 @@ import { TemplateRef, ViewChild, } from '@angular/core'; -import {AbstractTuiControl, TuiBooleanHandler, TuiIdService} from '@taiga-ui/cdk'; -import {TUI_TEXTFIELD_HOST, TuiDataListDirective, TuiTextfieldHost} from '@taiga-ui/core'; +import {AbstractTuiControl, type TuiBooleanHandler, TuiIdService} from '@taiga-ui/cdk'; +import { + TUI_TEXTFIELD_HOST, + TuiDataListDirective, + type TuiTextfieldHost, +} from '@taiga-ui/core'; import {TUI_ITEMS_HANDLERS} from '@taiga-ui/kit/tokens'; @Directive() diff --git a/projects/kit/classes/day-range-period.ts b/projects/kit/classes/day-range-period.ts index 4de9737bd103..850c2cc1c16b 100644 --- a/projects/kit/classes/day-range-period.ts +++ b/projects/kit/classes/day-range-period.ts @@ -1,5 +1,5 @@ -import {TuiContext, TuiDayRange} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiContext, type TuiDayRange} from '@taiga-ui/cdk'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export class TuiDayRangePeriod { constructor( diff --git a/projects/kit/classes/named-day.ts b/projects/kit/classes/named-day.ts index e5fd04d4a2ed..960153f072dc 100644 --- a/projects/kit/classes/named-day.ts +++ b/projects/kit/classes/named-day.ts @@ -1,4 +1,4 @@ -import {TuiDay} from '@taiga-ui/cdk'; +import {type TuiDay} from '@taiga-ui/cdk'; export class TuiNamedDay { constructor( diff --git a/projects/kit/classes/stringifiable-item.ts b/projects/kit/classes/stringifiable-item.ts index ff1cc277ec8d..abb3e46f64e3 100644 --- a/projects/kit/classes/stringifiable-item.ts +++ b/projects/kit/classes/stringifiable-item.ts @@ -1,4 +1,4 @@ -import {TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiStringHandler} from '@taiga-ui/cdk'; /** * Wrapper around an item to add `toString()` method diff --git a/projects/kit/components/accordion/accordion-item/accordion-item.component.ts b/projects/kit/components/accordion/accordion-item/accordion-item.component.ts index c0154d3ab1c4..6b56c8551f07 100644 --- a/projects/kit/components/accordion/accordion-item/accordion-item.component.ts +++ b/projects/kit/components/accordion/accordion-item/accordion-item.component.ts @@ -3,7 +3,7 @@ import { ChangeDetectorRef, Component, ContentChild, - ElementRef, + type ElementRef, EventEmitter, HostBinding, inject, @@ -14,11 +14,11 @@ import { import { AbstractTuiInteractive, tuiAsFocusableItemAccessor, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, tuiIsNativeFocused, - TuiNativeFocusableElement, + type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; -import {MODE_PROVIDER, TUI_MODE, TuiSizeS} from '@taiga-ui/core'; +import {MODE_PROVIDER, TUI_MODE, type TuiSizeS} from '@taiga-ui/core'; import {TUI_ARROW_OPTIONS} from '@taiga-ui/kit/components/arrow'; import {TuiAccordionItemContentDirective} from './accordion-item-content.directive'; diff --git a/projects/kit/components/accordion/accordion.component.ts b/projects/kit/components/accordion/accordion.component.ts index 56ed4a886b1e..5c76031d7e6c 100644 --- a/projects/kit/components/accordion/accordion.component.ts +++ b/projects/kit/components/accordion/accordion.component.ts @@ -1,11 +1,11 @@ import { - AfterContentInit, + type AfterContentInit, ChangeDetectionStrategy, Component, ContentChildren, inject, Input, - QueryList, + type QueryList, } from '@angular/core'; import { EMPTY_QUERY, diff --git a/projects/kit/components/accordion/test/accordion.component.spec.ts b/projects/kit/components/accordion/test/accordion.component.spec.ts index 58f4d7a59e8d..15abebe08f29 100644 --- a/projects/kit/components/accordion/test/accordion.component.spec.ts +++ b/projects/kit/components/accordion/test/accordion.component.spec.ts @@ -1,7 +1,7 @@ -import {HarnessLoader, parallel} from '@angular/cdk/testing'; +import {type HarnessLoader, parallel} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; -import {Component, QueryList, ViewChild, ViewChildren} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type QueryList, ViewChild, ViewChildren} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiDataListModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; diff --git a/projects/kit/components/action/action.component.ts b/projects/kit/components/action/action.component.ts index 6210c7ab8d8b..b5f8437eac54 100644 --- a/projects/kit/components/action/action.component.ts +++ b/projects/kit/components/action/action.component.ts @@ -13,7 +13,7 @@ import { TuiDestroyService, TuiFocusVisibleService, tuiIsNativeFocused, - TuiNativeFocusableElement, + type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; @Component({ diff --git a/projects/kit/components/action/test/action.component.spec.ts b/projects/kit/components/action/test/action.component.spec.ts index c705cf275ec5..ac90f99277e6 100644 --- a/projects/kit/components/action/test/action.component.spec.ts +++ b/projects/kit/components/action/test/action.component.spec.ts @@ -1,7 +1,7 @@ -import {HarnessLoader} from '@angular/cdk/testing'; +import {type HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component, ElementRef, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TuiActionHarness} from '@taiga-ui/testing'; import {TuiActionComponent} from '../action.component'; diff --git a/projects/kit/components/arrow/arrow.component.ts b/projects/kit/components/arrow/arrow.component.ts index 0d761ca138bf..46afe6ad4d63 100644 --- a/projects/kit/components/arrow/arrow.component.ts +++ b/projects/kit/components/arrow/arrow.component.ts @@ -5,7 +5,7 @@ import { TuiHostedDropdownComponent, tuiSizeBigger, } from '@taiga-ui/core'; -import {PolymorpheusComponent, PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {PolymorpheusComponent, type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TUI_ARROW_OPTIONS} from './arrow.options'; diff --git a/projects/kit/components/arrow/arrow.options.ts b/projects/kit/components/arrow/arrow.options.ts index 11da478cf58a..fd93f07c6846 100644 --- a/projects/kit/components/arrow/arrow.options.ts +++ b/projects/kit/components/arrow/arrow.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiArrowOptions { readonly iconLarge: PolymorpheusContent; diff --git a/projects/kit/components/arrow/arrow.providers.ts b/projects/kit/components/arrow/arrow.providers.ts index d335f22abd24..7a31b43f655e 100644 --- a/projects/kit/components/arrow/arrow.providers.ts +++ b/projects/kit/components/arrow/arrow.providers.ts @@ -1,7 +1,7 @@ -import {Provider} from '@angular/core'; -import {TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeM, TuiSizeS} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Provider} from '@angular/core'; +import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import {type TuiSizeL, type TuiSizeM, type TuiSizeS} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TUI_ARROW} from './arrow.component'; diff --git a/projects/kit/components/avatar-stack/avatar-stack.component.ts b/projects/kit/components/avatar-stack/avatar-stack.component.ts index 22ef476a3f37..dbf160f40d7a 100644 --- a/projects/kit/components/avatar-stack/avatar-stack.component.ts +++ b/projects/kit/components/avatar-stack/avatar-stack.component.ts @@ -5,7 +5,7 @@ import { Input, ViewEncapsulation, } from '@angular/core'; -import {TuiHorizontalDirection} from '@taiga-ui/core'; +import {type TuiHorizontalDirection} from '@taiga-ui/core'; @Component({ standalone: true, diff --git a/projects/kit/components/avatar/avatar.component.ts b/projects/kit/components/avatar/avatar.component.ts index ac89d44ea8e0..415216892f9f 100644 --- a/projects/kit/components/avatar/avatar.component.ts +++ b/projects/kit/components/avatar/avatar.component.ts @@ -1,6 +1,6 @@ import {NgSwitch, NgSwitchCase, NgSwitchDefault} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core'; -import {SafeResourceUrl} from '@angular/platform-browser'; +import {type SafeResourceUrl} from '@angular/platform-browser'; import {tuiIsString} from '@taiga-ui/cdk'; import { TUI_ICON_RESOLVER, diff --git a/projects/kit/components/avatar/avatar.options.ts b/projects/kit/components/avatar/avatar.options.ts index 9f22beef58e0..f2f057245aeb 100644 --- a/projects/kit/components/avatar/avatar.options.ts +++ b/projects/kit/components/avatar/avatar.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiAppearanceOptions, TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core'; +import {type TuiAppearanceOptions, type TuiSizeXS, type TuiSizeXXL} from '@taiga-ui/core'; export interface TuiAvatarOptions extends TuiAppearanceOptions { readonly appearance: string; diff --git a/projects/kit/components/badge/badge.options.ts b/projects/kit/components/badge/badge.options.ts index 95733d4999d4..d8b79e195276 100644 --- a/projects/kit/components/badge/badge.options.ts +++ b/projects/kit/components/badge/badge.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiAppearanceOptions, TuiSizeS, TuiSizeXL} from '@taiga-ui/core'; +import {type TuiAppearanceOptions, type TuiSizeS, type TuiSizeXL} from '@taiga-ui/core'; export interface TuiBadgeOptions extends TuiAppearanceOptions { readonly size: TuiSizeS | TuiSizeXL; diff --git a/projects/kit/components/block/block.directive.ts b/projects/kit/components/block/block.directive.ts index 3aa93074aa1a..ed49ba159a1f 100644 --- a/projects/kit/components/block/block.directive.ts +++ b/projects/kit/components/block/block.directive.ts @@ -4,8 +4,8 @@ import {TuiNativeValidatorDirective, tuiWithStyles} from '@taiga-ui/cdk'; import { TuiAppearanceDirective, tuiAppearanceOptionsProvider, - TuiSizeL, - TuiSizeXS, + type TuiSizeL, + type TuiSizeXS, } from '@taiga-ui/core'; import {tuiAvatarOptionsProvider} from '@taiga-ui/kit/components/avatar'; diff --git a/projects/kit/components/block/block.options.ts b/projects/kit/components/block/block.options.ts index e0b36be04f54..4d59bd0fdefb 100644 --- a/projects/kit/components/block/block.options.ts +++ b/projects/kit/components/block/block.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiAppearanceOptions, TuiSizeL, TuiSizeXS} from '@taiga-ui/core'; +import {type TuiAppearanceOptions, type TuiSizeL, type TuiSizeXS} from '@taiga-ui/core'; export interface TuiBlockOptions extends TuiAppearanceOptions { readonly size: TuiSizeL | TuiSizeXS; diff --git a/projects/kit/components/breadcrumbs/breadcrumbs.component.ts b/projects/kit/components/breadcrumbs/breadcrumbs.component.ts index a30c39c9ecc2..b523d17ec692 100644 --- a/projects/kit/components/breadcrumbs/breadcrumbs.component.ts +++ b/projects/kit/components/breadcrumbs/breadcrumbs.component.ts @@ -6,7 +6,7 @@ import { HostBinding, inject, Input, - QueryList, + type QueryList, TemplateRef, } from '@angular/core'; import {EMPTY_QUERY, TuiItemDirective} from '@taiga-ui/cdk'; diff --git a/projects/kit/components/breadcrumbs/breadcrumbs.options.ts b/projects/kit/components/breadcrumbs/breadcrumbs.options.ts index 90bf8f70a85f..d369a3407047 100644 --- a/projects/kit/components/breadcrumbs/breadcrumbs.options.ts +++ b/projects/kit/components/breadcrumbs/breadcrumbs.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiBrightness, TuiSizeL} from '@taiga-ui/core'; +import {type TuiBrightness, type TuiSizeL} from '@taiga-ui/core'; export interface TuiBreadcrumbsOptions { readonly icon: string; diff --git a/projects/kit/components/breadcrumbs/test/breadcrumbs.component.spec.ts b/projects/kit/components/breadcrumbs/test/breadcrumbs.component.spec.ts index 5e4b6d53bd1f..bc79b29dbceb 100644 --- a/projects/kit/components/breadcrumbs/test/breadcrumbs.component.spec.ts +++ b/projects/kit/components/breadcrumbs/test/breadcrumbs.component.spec.ts @@ -1,8 +1,8 @@ -import {Component, DebugElement, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {RouterTestingModule} from '@angular/router/testing'; -import {TuiSizeL} from '@taiga-ui/core'; +import {type TuiSizeL} from '@taiga-ui/core'; import {TuiBreadcrumbsComponent, TuiBreadcrumbsModule} from '@taiga-ui/kit'; import {TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/kit/components/calendar-month/calendar-month.component.ts b/projects/kit/components/calendar-month/calendar-month.component.ts index 1fc4d973b09a..a46f7e4321fd 100644 --- a/projects/kit/components/calendar-month/calendar-month.component.ts +++ b/projects/kit/components/calendar-month/calendar-month.component.ts @@ -11,18 +11,22 @@ import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - TuiBooleanHandler, + type TuiBooleanHandler, TuiDay, TuiMonth, TuiMonthRange, tuiNullableSame, tuiPure, - TuiYear, + type TuiYear, } from '@taiga-ui/cdk'; -import {TuiInteractiveState, TuiRangeState, TuiWithOptionalMinMax} from '@taiga-ui/core'; -import {TuiMonthContext} from '@taiga-ui/kit/interfaces'; +import { + TuiInteractiveState, + type TuiRangeState, + type TuiWithOptionalMinMax, +} from '@taiga-ui/core'; +import {type TuiMonthContext} from '@taiga-ui/kit/interfaces'; import {TUI_CALENDAR_MONTHS} from '@taiga-ui/kit/tokens'; -import {TuiBooleanHandlerWithContext} from '@taiga-ui/kit/types'; +import {type TuiBooleanHandlerWithContext} from '@taiga-ui/kit/types'; const TODAY = TuiDay.currentLocal(); diff --git a/projects/kit/components/calendar-month/test/calendar-month.component.spec.ts b/projects/kit/components/calendar-month/test/calendar-month.component.spec.ts index 9c113a6eed9e..12de30a5cf5e 100644 --- a/projects/kit/components/calendar-month/test/calendar-month.component.spec.ts +++ b/projects/kit/components/calendar-month/test/calendar-month.component.spec.ts @@ -1,5 +1,5 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TuiDay, TuiMonth, TuiMonthRange, TuiYear} from '@taiga-ui/cdk'; import {TuiInteractiveState} from '@taiga-ui/core'; import {TuiCalendarMonthComponent, TuiCalendarMonthModule} from '@taiga-ui/kit'; diff --git a/projects/kit/components/calendar-range/calendar-range.component.ts b/projects/kit/components/calendar-range/calendar-range.component.ts index 39abaffc872a..b6371e5743e3 100644 --- a/projects/kit/components/calendar-range/calendar-range.component.ts +++ b/projects/kit/components/calendar-range/calendar-range.component.ts @@ -12,28 +12,28 @@ import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - TuiBooleanHandler, - TuiDay, - TuiDayLike, + type TuiBooleanHandler, + type TuiDay, + type TuiDayLike, TuiDayRange, TuiDestroyService, tuiIsString, TuiMonth, tuiNullableSame, tuiPure, - TuiTypedMapper, + type TuiTypedMapper, tuiWatch, } from '@taiga-ui/cdk'; import { TUI_COMMON_ICONS, TUI_DEFAULT_MARKER_HANDLER, - TuiMarkerHandler, - TuiWithOptionalMinMax, + type TuiMarkerHandler, + type TuiWithOptionalMinMax, } from '@taiga-ui/core'; -import {TuiDayRangePeriod} from '@taiga-ui/kit/classes'; +import {type TuiDayRangePeriod} from '@taiga-ui/kit/classes'; import {MAX_DAY_RANGE_LENGTH_MAPPER} from '@taiga-ui/kit/constants'; import {TUI_CALENDAR_DATE_STREAM, TUI_OTHER_DATE_TEXT} from '@taiga-ui/kit/tokens'; -import {Observable, takeUntil} from 'rxjs'; +import {type Observable, takeUntil} from 'rxjs'; @Component({ selector: 'tui-calendar-range', diff --git a/projects/kit/components/calendar-range/test/range-calendar.component.spec.ts b/projects/kit/components/calendar-range/test/range-calendar.component.spec.ts index 8ade1e2d3501..c45669f5d513 100644 --- a/projects/kit/components/calendar-range/test/range-calendar.component.spec.ts +++ b/projects/kit/components/calendar-range/test/range-calendar.component.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement, Optional, Self, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, Optional, Self, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, NgControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { @@ -19,7 +19,7 @@ import { TuiDayRangePeriod, } from '@taiga-ui/kit'; import {TuiPageObject} from '@taiga-ui/testing'; -import {Observable, of} from 'rxjs'; +import {type Observable, of} from 'rxjs'; describe('rangeCalendarComponent', () => { @Component({ diff --git a/projects/kit/components/carousel/carousel.component.ts b/projects/kit/components/carousel/carousel.component.ts index 23d53514c76d..80965fc4fd26 100644 --- a/projects/kit/components/carousel/carousel.component.ts +++ b/projects/kit/components/carousel/carousel.component.ts @@ -10,7 +10,7 @@ import { inject, Input, Output, - QueryList, + type QueryList, TemplateRef, } from '@angular/core'; import { @@ -19,7 +19,7 @@ import { tuiClamp, TuiItemDirective, tuiPure, - TuiSwipeDirection, + type TuiSwipeDirection, } from '@taiga-ui/cdk'; @Component({ diff --git a/projects/kit/components/checkbox-labeled/checkbox-labeled.component.ts b/projects/kit/components/checkbox-labeled/checkbox-labeled.component.ts index 9d495222a665..542f4bf5403f 100644 --- a/projects/kit/components/checkbox-labeled/checkbox-labeled.component.ts +++ b/projects/kit/components/checkbox-labeled/checkbox-labeled.component.ts @@ -9,11 +9,16 @@ import { AbstractTuiNullableControl, tuiAsControl, tuiAsFocusableItemAccessor, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, tuiIsNativeFocused, - TuiNativeFocusableElement, + type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; -import {MODE_PROVIDER, TUI_CHECKBOX_OPTIONS, TUI_MODE, TuiSizeL} from '@taiga-ui/core'; +import { + MODE_PROVIDER, + TUI_CHECKBOX_OPTIONS, + TUI_MODE, + type TuiSizeL, +} from '@taiga-ui/core'; import {TuiCheckboxComponent} from '@taiga-ui/kit/components/checkbox'; @Component({ diff --git a/projects/kit/components/checkbox/checkbox.component.ts b/projects/kit/components/checkbox/checkbox.component.ts index 4ebf4075275b..7555178d4555 100644 --- a/projects/kit/components/checkbox/checkbox.component.ts +++ b/projects/kit/components/checkbox/checkbox.component.ts @@ -1,7 +1,7 @@ import { ChangeDetectionStrategy, Component, - ElementRef, + type ElementRef, HostBinding, inject, Input, @@ -11,10 +11,10 @@ import { AbstractTuiNullableControl, tuiAsControl, tuiAsFocusableItemAccessor, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, tuiIsNativeFocused, } from '@taiga-ui/cdk'; -import {TUI_CHECKBOX_OPTIONS, TuiSizeL} from '@taiga-ui/core'; +import {TUI_CHECKBOX_OPTIONS, type TuiSizeL} from '@taiga-ui/core'; @Component({ selector: 'tui-checkbox', diff --git a/projects/kit/components/combo-box/combo-box.component.ts b/projects/kit/components/combo-box/combo-box.component.ts index e7ae5f8e81d5..7a0cf78b7804 100644 --- a/projects/kit/components/combo-box/combo-box.component.ts +++ b/projects/kit/components/combo-box/combo-box.component.ts @@ -13,35 +13,35 @@ import { import { AbstractTuiNullableControl, TUI_STRICT_MATCHER, - TuiActiveZoneDirective, + type TuiActiveZoneDirective, tuiAsControl, tuiAsFocusableItemAccessor, - TuiContext, - TuiFocusableElementAccessor, + type TuiContext, + type TuiFocusableElementAccessor, tuiIsNativeFocused, tuiIsPresent, - TuiStringMatcher, + type TuiStringMatcher, } from '@taiga-ui/cdk'; import { TUI_DATA_LIST_ACCESSOR, TUI_TEXTFIELD_SIZE, tuiAsDataListHost, tuiAsOptionContent, - TuiDataListAccessor, + type TuiDataListAccessor, TuiDataListDirective, - TuiDataListHost, + type TuiDataListHost, TuiHostedDropdownComponent, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeM, - TuiSizeS, - TuiValueContentContext, + type TuiSizeL, + type TuiSizeM, + type TuiSizeS, + type TuiValueContentContext, } from '@taiga-ui/core'; import {TUI_ARROW_MODE} from '@taiga-ui/kit/components/arrow'; import {TUI_SELECT_OPTION} from '@taiga-ui/kit/components/select-option'; import {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers'; -import {TUI_ITEMS_HANDLERS, TuiItemsHandlers} from '@taiga-ui/kit/tokens'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {TUI_ITEMS_HANDLERS, type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-combo-box', diff --git a/projects/kit/components/combo-box/combo-box.directive.ts b/projects/kit/components/combo-box/combo-box.directive.ts index f9f740ddbed4..dc6b6ca82598 100644 --- a/projects/kit/components/combo-box/combo-box.directive.ts +++ b/projects/kit/components/combo-box/combo-box.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {TuiComboBoxComponent} from './combo-box.component'; +import {type TuiComboBoxComponent} from './combo-box.component'; @Directive({ selector: 'tui-combo-box', diff --git a/projects/kit/components/combo-box/test/combo-box.component.spec.ts b/projects/kit/components/combo-box/test/combo-box.component.spec.ts index 18c5dfd3a56f..b365f8883b16 100644 --- a/projects/kit/components/combo-box/test/combo-box.component.spec.ts +++ b/projects/kit/components/combo-box/test/combo-box.component.spec.ts @@ -1,20 +1,20 @@ -import {Component, DebugElement, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {By} from '@angular/platform-browser'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { TUI_DEFAULT_IDENTITY_MATCHER, TUI_DEFAULT_STRINGIFY, - TuiIdentityMatcher, - TuiStringHandler, + type TuiIdentityMatcher, + type TuiStringHandler, } from '@taiga-ui/cdk'; import { TuiDataListModule, TuiHintModule, TuiRootModule, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, TuiTextfieldControllerModule, } from '@taiga-ui/core'; import {TuiComboBoxComponent, TuiComboBoxModule} from '@taiga-ui/kit'; diff --git a/projects/kit/components/data-list-wrapper/data-list-wrapper.ts b/projects/kit/components/data-list-wrapper/data-list-wrapper.ts index aaa3ecf903ce..b943ee5cb703 100644 --- a/projects/kit/components/data-list-wrapper/data-list-wrapper.ts +++ b/projects/kit/components/data-list-wrapper/data-list-wrapper.ts @@ -1,22 +1,22 @@ import { Directive, - ElementRef, + type ElementRef, EventEmitter, forwardRef, Input, Output, - QueryList, + type QueryList, ViewChildren, } from '@angular/core'; import {EMPTY_QUERY, tuiIsNativeFocused, tuiIsPresent} from '@taiga-ui/cdk'; import { TuiOptionComponent, - TuiSizeL, - TuiSizeXS, - TuiValueContentContext, + type TuiSizeL, + type TuiSizeXS, + type TuiValueContentContext, } from '@taiga-ui/core'; -import {TuiItemsHandlers} from '@taiga-ui/kit/tokens'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Directive() export abstract class AbstractTuiDataListWrapper { diff --git a/projects/kit/components/files/file/file.component.ts b/projects/kit/components/files/file/file.component.ts index 0d38ac4b2bc4..c18f9ce9eca7 100644 --- a/projects/kit/components/files/file/file.component.ts +++ b/projects/kit/components/files/file/file.component.ts @@ -8,23 +8,23 @@ import { Input, Output, } from '@angular/core'; -import {DomSanitizer, SafeValue} from '@angular/platform-browser'; -import {TuiContext, tuiIsObserved, tuiPure} from '@taiga-ui/cdk'; +import {DomSanitizer, type SafeValue} from '@angular/platform-browser'; +import {type TuiContext, tuiIsObserved, tuiPure} from '@taiga-ui/cdk'; import { TUI_COMMON_ICONS, TuiAppearanceDirective, tuiAppearanceOptionsProvider, TuiButtonModule, TuiLoaderModule, - TuiSizeL, + type TuiSizeL, TuiSvgModule, } from '@taiga-ui/core'; -import {TuiLanguage} from '@taiga-ui/i18n'; +import {type TuiLanguage} from '@taiga-ui/i18n'; import {TUI_DIGITAL_INFORMATION_UNITS, TUI_FILE_TEXTS} from '@taiga-ui/kit/tokens'; -import {PolymorpheusContent, PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; -import {map, Observable, of} from 'rxjs'; +import {type PolymorpheusContent, PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; +import {map, type Observable, of} from 'rxjs'; -import {TuiFileLike, TuiFileState} from '../files.types'; +import {type TuiFileLike, type TuiFileState} from '../files.types'; import {TUI_FILE_OPTIONS} from './file.options'; @Component({ diff --git a/projects/kit/components/files/file/file.options.ts b/projects/kit/components/files/file/file.options.ts index c197b940ce87..e3245c9ff50e 100644 --- a/projects/kit/components/files/file/file.options.ts +++ b/projects/kit/components/files/file/file.options.ts @@ -1,8 +1,8 @@ -import {TuiContext, tuiCreateToken} from '@taiga-ui/cdk'; -import {TuiAppearanceOptions, TuiSizeL} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiContext, tuiCreateToken} from '@taiga-ui/cdk'; +import {type TuiAppearanceOptions, type TuiSizeL} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {TuiFileState} from '../files.types'; +import {type TuiFileState} from '../files.types'; import {tuiFormatSize} from '../files.utils'; export interface TuiFileOptions extends TuiAppearanceOptions { diff --git a/projects/kit/components/files/files.types.ts b/projects/kit/components/files/files.types.ts index e067d2fc53d6..241e115bc505 100644 --- a/projects/kit/components/files/files.types.ts +++ b/projects/kit/components/files/files.types.ts @@ -1,4 +1,4 @@ -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export type TuiFileState = 'deleted' | 'error' | 'loading' | 'normal'; diff --git a/projects/kit/components/files/files.utils.ts b/projects/kit/components/files/files.utils.ts index a7cba2ec8ee8..5362e3b5229d 100644 --- a/projects/kit/components/files/files.utils.ts +++ b/projects/kit/components/files/files.utils.ts @@ -1,4 +1,4 @@ -import {AbstractControl} from '@angular/forms'; +import {type AbstractControl} from '@angular/forms'; import {tuiRound} from '@taiga-ui/cdk'; import {TUI_FORMAT_ERROR, TUI_SIZE_ERROR} from './files.validators'; diff --git a/projects/kit/components/files/files.validators.ts b/projects/kit/components/files/files.validators.ts index 43cbd6d54720..c9219a3fb876 100644 --- a/projects/kit/components/files/files.validators.ts +++ b/projects/kit/components/files/files.validators.ts @@ -1,5 +1,5 @@ -import {ValidatorFn} from '@angular/forms'; -import {TuiContext} from '@taiga-ui/cdk'; +import {type ValidatorFn} from '@angular/forms'; +import {type TuiContext} from '@taiga-ui/cdk'; export const TUI_SIZE_ERROR = 'tuiSize'; export const TUI_FORMAT_ERROR = 'tuiFormat'; diff --git a/projects/kit/components/files/files/files.component.ts b/projects/kit/components/files/files/files.component.ts index 94379e601284..2e84cd4b618a 100644 --- a/projects/kit/components/files/files/files.component.ts +++ b/projects/kit/components/files/files/files.component.ts @@ -7,7 +7,7 @@ import { inject, Input, Output, - QueryList, + type QueryList, TemplateRef, ViewEncapsulation, } from '@angular/core'; diff --git a/projects/kit/components/files/input-files/input-files-validator.directive.ts b/projects/kit/components/files/input-files/input-files-validator.directive.ts index 062e875e2829..4aa1165abbb7 100644 --- a/projects/kit/components/files/input-files/input-files-validator.directive.ts +++ b/projects/kit/components/files/input-files/input-files-validator.directive.ts @@ -1,4 +1,11 @@ -import {Directive, HostBinding, inject, Input, OnChanges, OnInit} from '@angular/core'; +import { + Directive, + HostBinding, + inject, + Input, + type OnChanges, + type OnInit, +} from '@angular/core'; import {Validators} from '@angular/forms'; import {TuiValidatorDirective} from '@taiga-ui/cdk'; diff --git a/projects/kit/components/files/input-files/input-files.component.ts b/projects/kit/components/files/input-files/input-files.component.ts index c49062e43b46..ad52f388d934 100644 --- a/projects/kit/components/files/input-files/input-files.component.ts +++ b/projects/kit/components/files/input-files/input-files.component.ts @@ -6,7 +6,7 @@ import { TemplateRef, ViewEncapsulation, } from '@angular/core'; -import {TuiContext} from '@taiga-ui/cdk'; +import {type TuiContext} from '@taiga-ui/cdk'; import {PolymorpheusComponent, PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; import {TuiInputFilesContent} from './input-files.content'; diff --git a/projects/kit/components/files/input-files/input-files.content.ts b/projects/kit/components/files/input-files/input-files.content.ts index bc3a1f433adb..803c84f337fa 100644 --- a/projects/kit/components/files/input-files/input-files.content.ts +++ b/projects/kit/components/files/input-files/input-files.content.ts @@ -1,10 +1,10 @@ import {AsyncPipe} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; -import {TuiContext, tuiPure} from '@taiga-ui/cdk'; +import {type TuiContext, tuiPure} from '@taiga-ui/cdk'; import {TuiBreakpointService, TuiLinkModule} from '@taiga-ui/core'; import {TUI_INPUT_FILE_TEXTS} from '@taiga-ui/kit/tokens'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; -import {combineLatest, map, Observable, of} from 'rxjs'; +import {combineLatest, map, type Observable, of} from 'rxjs'; import {TuiInputFilesComponent} from './input-files.component'; diff --git a/projects/kit/components/files/input-files/input-files.directive.ts b/projects/kit/components/files/input-files/input-files.directive.ts index 77cb77cda9bd..42abb425e58a 100644 --- a/projects/kit/components/files/input-files/input-files.directive.ts +++ b/projects/kit/components/files/input-files/input-files.directive.ts @@ -7,12 +7,12 @@ import { } from '@taiga-ui/cdk'; import { TuiAppearanceDirective, - TuiAppearanceOptions, + type TuiAppearanceOptions, tuiAppearanceOptionsProvider, } from '@taiga-ui/core'; import {filter, map, switchMap, timer} from 'rxjs'; -import {TuiFileLike} from '../files.types'; +import {type TuiFileLike} from '../files.types'; import {tuiFilesRejected} from '../files.utils'; import {TuiInputFilesComponent} from './input-files.component'; import {TuiInputFilesValidatorDirective} from './input-files-validator.directive'; diff --git a/projects/kit/components/files/input-files/input-files.options.ts b/projects/kit/components/files/input-files/input-files.options.ts index 9de14662e102..3439dcb93420 100644 --- a/projects/kit/components/files/input-files/input-files.options.ts +++ b/projects/kit/components/files/input-files/input-files.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiSizeL} from '@taiga-ui/core'; +import {type TuiSizeL} from '@taiga-ui/core'; export interface TuiInputFilesOptions { accept: string; diff --git a/projects/kit/components/files/pipes/file-rejected.pipe.ts b/projects/kit/components/files/pipes/file-rejected.pipe.ts index f4ae6120bf29..181714e5df43 100644 --- a/projects/kit/components/files/pipes/file-rejected.pipe.ts +++ b/projects/kit/components/files/pipes/file-rejected.pipe.ts @@ -1,10 +1,10 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; import {FormControl} from '@angular/forms'; import {TUI_DIGITAL_INFORMATION_UNITS, TUI_INPUT_FILE_TEXTS} from '@taiga-ui/kit/tokens'; -import {combineLatest, map, Observable} from 'rxjs'; +import {combineLatest, map, type Observable} from 'rxjs'; import {TUI_FILE_OPTIONS} from '../file/file.options'; -import {TuiFileLike} from '../files.types'; +import {type TuiFileLike} from '../files.types'; import { tuiCreateFileFormatValidator, tuiCreateFileSizeValidator, diff --git a/projects/kit/components/filter/filter.component.ts b/projects/kit/components/filter/filter.component.ts index b94c90e0cdfc..fde4c93b2768 100644 --- a/projects/kit/components/filter/filter.component.ts +++ b/projects/kit/components/filter/filter.component.ts @@ -13,14 +13,19 @@ import { ALWAYS_FALSE_HANDLER, TUI_DEFAULT_IDENTITY_MATCHER, TUI_DEFAULT_STRINGIFY, - TuiBooleanHandler, - TuiContext, - TuiHandler, - TuiIdentityMatcher, + type TuiBooleanHandler, + type TuiContext, + type TuiHandler, + type TuiIdentityMatcher, tuiIsNativeFocusedIn, } from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS, TuiSizeXL, TuiSizeXS} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import { + type TuiSizeL, + type TuiSizeS, + type TuiSizeXL, + type TuiSizeXS, +} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; const badgeSizeMap: Record = { xs: 's', diff --git a/projects/kit/components/filter/test/filter.component.spec.ts b/projects/kit/components/filter/test/filter.component.spec.ts index 8bdcdb02481c..512336f107b3 100644 --- a/projects/kit/components/filter/test/filter.component.spec.ts +++ b/projects/kit/components/filter/test/filter.component.spec.ts @@ -1,9 +1,13 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; -import {ALWAYS_FALSE_HANDLER, TuiBooleanHandler, TuiHandler} from '@taiga-ui/cdk'; -import {TuiSizeS} from '@taiga-ui/core'; +import { + ALWAYS_FALSE_HANDLER, + type TuiBooleanHandler, + type TuiHandler, +} from '@taiga-ui/cdk'; +import {type TuiSizeS} from '@taiga-ui/core'; import {TuiFilterComponent, TuiFilterModule} from '@taiga-ui/kit'; const BADGE_VALUE = 10; diff --git a/projects/kit/components/input-copy/input-copy.component.ts b/projects/kit/components/input-copy/input-copy.component.ts index e4f83f40c748..2533f696ca28 100644 --- a/projects/kit/components/input-copy/input-copy.component.ts +++ b/projects/kit/components/input-copy/input-copy.component.ts @@ -11,22 +11,31 @@ import { AbstractTuiControl, tuiAsControl, tuiAsFocusableItemAccessor, - TuiFocusableElementAccessor, - TuiNativeFocusableElement, + type TuiFocusableElementAccessor, + type TuiNativeFocusableElement, tuiPure, } from '@taiga-ui/cdk'; import { TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, } from '@taiga-ui/core'; import {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers'; import {TUI_COPY_TEXTS} from '@taiga-ui/kit/tokens'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {map, merge, Observable, of, startWith, Subject, switchMap, timer} from 'rxjs'; - -import {TUI_INPUT_COPY_OPTIONS, TuiInputCopyOptions} from './input-copy.options'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import { + map, + merge, + type Observable, + of, + startWith, + Subject, + switchMap, + timer, +} from 'rxjs'; + +import {TUI_INPUT_COPY_OPTIONS, type TuiInputCopyOptions} from './input-copy.options'; @Component({ selector: 'tui-input-copy', diff --git a/projects/kit/components/input-copy/input-copy.directive.ts b/projects/kit/components/input-copy/input-copy.directive.ts index 4e70cbbad5f0..1698b5842528 100644 --- a/projects/kit/components/input-copy/input-copy.directive.ts +++ b/projects/kit/components/input-copy/input-copy.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {TuiInputCopyComponent} from './input-copy.component'; +import {type TuiInputCopyComponent} from './input-copy.component'; @Directive({ selector: 'tui-input-copy', diff --git a/projects/kit/components/input-copy/input-copy.options.ts b/projects/kit/components/input-copy/input-copy.options.ts index 5e853c301065..ffdfbd4d5ff4 100644 --- a/projects/kit/components/input-copy/input-copy.options.ts +++ b/projects/kit/components/input-copy/input-copy.options.ts @@ -1,7 +1,7 @@ -import {Provider} from '@angular/core'; -import {TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiHintDirection, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Provider} from '@angular/core'; +import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import {type TuiHintDirection, type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiInputCopyOptions { readonly icon: PolymorpheusContent>; diff --git a/projects/kit/components/input-copy/test/input-copy.component.spec.ts b/projects/kit/components/input-copy/test/input-copy.component.spec.ts index de829658128f..dd92fcd3b318 100644 --- a/projects/kit/components/input-copy/test/input-copy.component.spec.ts +++ b/projects/kit/components/input-copy/test/input-copy.component.spec.ts @@ -1,8 +1,8 @@ -import {Component, DebugElement, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; -import {TuiSizeL, TuiSizeS, TuiTextfieldControllerModule} from '@taiga-ui/core'; +import {type TuiSizeL, type TuiSizeS, TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiInputCopyComponent, TuiInputCopyModule} from '@taiga-ui/kit'; import {TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/kit/components/input-date-multi/input-date-multi.component.ts b/projects/kit/components/input-date-multi/input-date-multi.component.ts index cc788f3ebe0b..062b473ed068 100644 --- a/projects/kit/components/input-date-multi/input-date-multi.component.ts +++ b/projects/kit/components/input-date-multi/input-date-multi.component.ts @@ -8,11 +8,11 @@ import { Input, ViewChild, } from '@angular/core'; -import {MaskitoOptions} from '@maskito/core'; +import {type MaskitoOptions} from '@maskito/core'; import {maskitoDateOptionsGenerator} from '@maskito/kit'; import { AbstractTuiMultipleControl, - AbstractTuiValueTransformer, + type AbstractTuiValueTransformer, ALWAYS_FALSE_HANDLER, changeDateSeparator, TUI_DATE_FORMAT, @@ -20,25 +20,25 @@ import { TUI_IS_MOBILE, tuiAsControl, tuiAsFocusableItemAccessor, - TuiBooleanHandler, + type TuiBooleanHandler, tuiDateClamp, TuiDay, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, tuiIsString, - TuiMapper, + type TuiMapper, TuiMonth, } from '@taiga-ui/cdk'; import { TUI_DEFAULT_MARKER_HANDLER, TUI_TEXTFIELD_SIZE, TuiDialogService, - TuiMarkerHandler, + type TuiMarkerHandler, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeS, - TuiWithOptionalMinMax, + type TuiSizeL, + type TuiSizeS, + type TuiWithOptionalMinMax, } from '@taiga-ui/core'; -import {TuiStringifiableItem} from '@taiga-ui/kit/classes'; +import {type TuiStringifiableItem} from '@taiga-ui/kit/classes'; import {TuiInputTagComponent} from '@taiga-ui/kit/components/input-tag'; import { TUI_DATE_TEXTS, @@ -47,11 +47,11 @@ import { TUI_INPUT_DATE_OPTIONS, TUI_MOBILE_CALENDAR, tuiDateStreamWithTransformer, - TuiInputDateOptions, + type TuiInputDateOptions, } from '@taiga-ui/kit/tokens'; import {tuiImmutableUpdateInputDateMulti} from '@taiga-ui/kit/utils'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; -import {map, Observable, takeUntil} from 'rxjs'; +import {map, type Observable, takeUntil} from 'rxjs'; @Component({ selector: 'tui-input-date[multiple]', diff --git a/projects/kit/components/input-date-range/input-date-range.component.ts b/projects/kit/components/input-date-range/input-date-range.component.ts index fc19f306d928..4ed7d35a3fed 100644 --- a/projects/kit/components/input-date-range/input-date-range.component.ts +++ b/projects/kit/components/input-date-range/input-date-range.component.ts @@ -8,7 +8,7 @@ import { Input, ViewChild, } from '@angular/core'; -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS, type MaskitoOptions} from '@maskito/core'; import {maskitoDateRangeOptionsGenerator} from '@maskito/kit'; import { AbstractTuiNullableControl, @@ -24,29 +24,29 @@ import { TUI_LAST_DAY, tuiAsControl, tuiAsFocusableItemAccessor, - TuiBooleanHandler, - TuiDateMode, - TuiDay, - TuiDayLike, + type TuiBooleanHandler, + type TuiDateMode, + type TuiDay, + type TuiDayLike, TuiDayRange, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, tuiIsPresent, TuiMonth, tuiNullableSame, tuiPure, - TuiTypedMapper, + type TuiTypedMapper, } from '@taiga-ui/cdk'; import { TUI_DEFAULT_MARKER_HANDLER, TUI_TEXTFIELD_SIZE, TuiDialogService, - TuiMarkerHandler, + type TuiMarkerHandler, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeS, - TuiWithOptionalMinMax, + type TuiSizeL, + type TuiSizeS, + type TuiWithOptionalMinMax, } from '@taiga-ui/core'; -import {TuiDayRangePeriod} from '@taiga-ui/kit/classes'; +import {type TuiDayRangePeriod} from '@taiga-ui/kit/classes'; import { MAX_DAY_RANGE_LENGTH_MAPPER, TUI_DATE_MODE_MASKITO_ADAPTER, @@ -57,9 +57,9 @@ import { TUI_INPUT_DATE_OPTIONS, TUI_MOBILE_CALENDAR, tuiDateStreamWithTransformer, - TuiInputDateOptions, + type TuiInputDateOptions, } from '@taiga-ui/kit/tokens'; -import {PolymorpheusComponent, PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {PolymorpheusComponent, type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {map, takeUntil} from 'rxjs'; @Component({ diff --git a/projects/kit/components/input-date-range/input-date-range.directive.ts b/projects/kit/components/input-date-range/input-date-range.directive.ts index 864e1ce5f094..56598d071468 100644 --- a/projects/kit/components/input-date-range/input-date-range.directive.ts +++ b/projects/kit/components/input-date-range/input-date-range.directive.ts @@ -1,7 +1,7 @@ -import {Directive, DoCheck} from '@angular/core'; +import {Directive, type DoCheck} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {TuiInputDateRangeComponent} from './input-date-range.component'; +import {type TuiInputDateRangeComponent} from './input-date-range.component'; @Directive({ selector: 'tui-input-date-range', diff --git a/projects/kit/components/input-date-range/test/input-date-range.component.spec.ts b/projects/kit/components/input-date-range/test/input-date-range.component.spec.ts index 60b8f7ee7c86..1aaaa96975ff 100644 --- a/projects/kit/components/input-date-range/test/input-date-range.component.spec.ts +++ b/projects/kit/components/input-date-range/test/input-date-range.component.spec.ts @@ -1,5 +1,11 @@ -import {Component, DebugElement, Optional, Type, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import { + Component, + type DebugElement, + Optional, + type Type, + ViewChild, +} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { @@ -15,7 +21,7 @@ import {TuiRootModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; import { TUI_DATE_RANGE_VALUE_TRANSFORMER, TUI_DATE_VALUE_TRANSFORMER, - TuiDayRangePeriod, + type TuiDayRangePeriod, TuiInputDateRangeComponent, TuiInputDateRangeModule, } from '@taiga-ui/kit'; diff --git a/projects/kit/components/input-date-time/input-date-time.component.ts b/projects/kit/components/input-date-time/input-date-time.component.ts index f182e6a6330d..e5117579d76f 100644 --- a/projects/kit/components/input-date-time/input-date-time.component.ts +++ b/projects/kit/components/input-date-time/input-date-time.component.ts @@ -7,7 +7,7 @@ import { Input, ViewChild, } from '@angular/core'; -import {MaskitoOptions} from '@maskito/core'; +import {type MaskitoOptions} from '@maskito/core'; import {maskitoDateTimeOptionsGenerator} from '@maskito/kit'; import { AbstractTuiControl, @@ -18,28 +18,28 @@ import { TUI_DATE_SEPARATOR, TUI_IS_IOS, TUI_IS_MOBILE, - TuiActiveZoneDirective, + type TuiActiveZoneDirective, tuiAsControl, tuiAsFocusableItemAccessor, - TuiBooleanHandler, + type TuiBooleanHandler, tuiClamp, - TuiContext, + type TuiContext, tuiDateClamp, - TuiDateMode, + type TuiDateMode, TuiDay, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, TuiMonth, tuiNullableSame, tuiPure, TuiTime, - TuiTimeMode, + type TuiTimeMode, } from '@taiga-ui/cdk'; import { TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeS, - TuiWithOptionalMinMax, + type TuiSizeL, + type TuiSizeS, + type TuiWithOptionalMinMax, } from '@taiga-ui/core'; import { DATE_TIME_SEPARATOR, @@ -51,9 +51,16 @@ import { TUI_INPUT_DATE_OPTIONS, TUI_TIME_TEXTS, tuiDateStreamWithTransformer, - TuiInputDateOptions, + type TuiInputDateOptions, } from '@taiga-ui/kit/tokens'; -import {BehaviorSubject, combineLatest, map, Observable, takeUntil, timer} from 'rxjs'; +import { + BehaviorSubject, + combineLatest, + map, + type Observable, + takeUntil, + timer, +} from 'rxjs'; @Component({ selector: 'tui-input-date-time', diff --git a/projects/kit/components/input-date-time/input-date-time.directive.ts b/projects/kit/components/input-date-time/input-date-time.directive.ts index 13d8f2278faf..d5683d5fd6c5 100644 --- a/projects/kit/components/input-date-time/input-date-time.directive.ts +++ b/projects/kit/components/input-date-time/input-date-time.directive.ts @@ -1,8 +1,8 @@ import {Directive} from '@angular/core'; -import {TuiDay, TuiTime} from '@taiga-ui/cdk'; +import {type TuiDay, type TuiTime} from '@taiga-ui/cdk'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {TuiInputDateTimeComponent} from './input-date-time.component'; +import {type TuiInputDateTimeComponent} from './input-date-time.component'; @Directive({ selector: 'tui-input-date-time', diff --git a/projects/kit/components/input-date-time/test/input-date-time.component.spec.ts b/projects/kit/components/input-date-time/test/input-date-time.component.spec.ts index 91f0e7baf01c..60bec377ed8b 100644 --- a/projects/kit/components/input-date-time/test/input-date-time.component.spec.ts +++ b/projects/kit/components/input-date-time/test/input-date-time.component.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement, Type, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, type Type, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { diff --git a/projects/kit/components/input-date/input-date.component.ts b/projects/kit/components/input-date/input-date.component.ts index e27a87354ad1..f1456ed5ebd1 100644 --- a/projects/kit/components/input-date/input-date.component.ts +++ b/projects/kit/components/input-date/input-date.component.ts @@ -8,7 +8,7 @@ import { Input, ViewChild, } from '@angular/core'; -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS, type MaskitoOptions} from '@maskito/core'; import {maskitoDateOptionsGenerator} from '@maskito/kit'; import { AbstractTuiNullableControl, @@ -18,15 +18,15 @@ import { TUI_DATE_FORMAT, TUI_DATE_SEPARATOR, TUI_IS_MOBILE, - TuiActiveZoneDirective, + type TuiActiveZoneDirective, tuiAsControl, tuiAsFocusableItemAccessor, - TuiBooleanHandler, - TuiContext, + type TuiBooleanHandler, + type TuiContext, tuiDateClamp, - TuiDateMode, + type TuiDateMode, TuiDay, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, TuiMonth, tuiNullableSame, tuiPure, @@ -35,13 +35,13 @@ import { TUI_DEFAULT_MARKER_HANDLER, TUI_TEXTFIELD_SIZE, TuiDialogService, - TuiMarkerHandler, + type TuiMarkerHandler, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeS, - TuiWithOptionalMinMax, + type TuiSizeL, + type TuiSizeS, + type TuiWithOptionalMinMax, } from '@taiga-ui/core'; -import {TuiNamedDay} from '@taiga-ui/kit/classes'; +import {type TuiNamedDay} from '@taiga-ui/kit/classes'; import {TUI_DATE_MODE_MASKITO_ADAPTER} from '@taiga-ui/kit/constants'; import { TUI_DATE_TEXTS, @@ -49,10 +49,10 @@ import { TUI_INPUT_DATE_OPTIONS, TUI_MOBILE_CALENDAR, tuiDateStreamWithTransformer, - TuiInputDateOptions, + type TuiInputDateOptions, } from '@taiga-ui/kit/tokens'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; -import {map, Observable, takeUntil} from 'rxjs'; +import {map, type Observable, takeUntil} from 'rxjs'; @Component({ selector: 'tui-input-date', diff --git a/projects/kit/components/input-date/input-date.directive.ts b/projects/kit/components/input-date/input-date.directive.ts index ae14cf5196f8..6daf1eaa3611 100644 --- a/projects/kit/components/input-date/input-date.directive.ts +++ b/projects/kit/components/input-date/input-date.directive.ts @@ -1,8 +1,8 @@ import {Directive} from '@angular/core'; -import {TuiDay} from '@taiga-ui/cdk'; +import {type TuiDay} from '@taiga-ui/cdk'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {TuiInputDateComponent} from './input-date.component'; +import {type TuiInputDateComponent} from './input-date.component'; @Directive({ selector: 'tui-input-date', diff --git a/projects/kit/components/input-date/test/input-date.component.spec.ts b/projects/kit/components/input-date/test/input-date.component.spec.ts index 22355fe79cdc..f94e2e1ff735 100644 --- a/projects/kit/components/input-date/test/input-date.component.spec.ts +++ b/projects/kit/components/input-date/test/input-date.component.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement, Type, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, type Type, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { @@ -11,8 +11,8 @@ import { import { TuiHintModule, TuiRootModule, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, TuiTextfieldControllerModule, } from '@taiga-ui/core'; import {TuiInputDateComponent, TuiInputDateModule} from '@taiga-ui/kit'; diff --git a/projects/kit/components/input-inline/input-inline.component.ts b/projects/kit/components/input-inline/input-inline.component.ts index 1ddd0c3b4788..a25d1667cef4 100644 --- a/projects/kit/components/input-inline/input-inline.component.ts +++ b/projects/kit/components/input-inline/input-inline.component.ts @@ -1,16 +1,16 @@ import { ChangeDetectionStrategy, Component, - ElementRef, + type ElementRef, Input, ViewChild, } from '@angular/core'; import { AbstractTuiControl, tuiAsFocusableItemAccessor, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, tuiIsNativeFocused, - TuiNativeFocusableElement, + type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; import {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers'; diff --git a/projects/kit/components/input-inline/test/input-inline.component.spec.ts b/projects/kit/components/input-inline/test/input-inline.component.spec.ts index 6f0a13511620..c7dbb4c5cb85 100644 --- a/projects/kit/components/input-inline/test/input-inline.component.spec.ts +++ b/projects/kit/components/input-inline/test/input-inline.component.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/kit/components/input-month-range/input-month-range.component.ts b/projects/kit/components/input-month-range/input-month-range.component.ts index 81b1f4dd36c4..b58b2a4b715b 100644 --- a/projects/kit/components/input-month-range/input-month-range.component.ts +++ b/projects/kit/components/input-month-range/input-month-range.component.ts @@ -14,27 +14,27 @@ import { tuiAsFocusableItemAccessor, tuiDateClamp, TuiDay, - TuiFocusableElementAccessor, - TuiMonth, + type TuiFocusableElementAccessor, + type TuiMonth, TuiMonthRange, - TuiYear, + type TuiYear, } from '@taiga-ui/cdk'; import { TUI_TEXTFIELD_SIZE, TuiMonthPipe, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeS, - TuiWithOptionalMinMax, + type TuiSizeL, + type TuiSizeS, + type TuiWithOptionalMinMax, } from '@taiga-ui/core'; -import {TuiMonthContext} from '@taiga-ui/kit/interfaces'; +import {type TuiMonthContext} from '@taiga-ui/kit/interfaces'; import {TUI_MONTH_FORMATTER_PROVIDER} from '@taiga-ui/kit/providers'; import { TUI_INPUT_DATE_OPTIONS, TUI_MONTH_FORMATTER, - TuiInputDateOptions, + type TuiInputDateOptions, } from '@taiga-ui/kit/tokens'; -import {TuiBooleanHandlerWithContext} from '@taiga-ui/kit/types'; +import {type TuiBooleanHandlerWithContext} from '@taiga-ui/kit/types'; @Component({ selector: 'tui-input-month-range', diff --git a/projects/kit/components/input-month-range/input-month-range.directive.ts b/projects/kit/components/input-month-range/input-month-range.directive.ts index 16927b02e068..180d0b71f0b1 100644 --- a/projects/kit/components/input-month-range/input-month-range.directive.ts +++ b/projects/kit/components/input-month-range/input-month-range.directive.ts @@ -1,10 +1,10 @@ -import {Directive, DoCheck, inject} from '@angular/core'; -import {TuiDestroyService, TuiMonthRange} from '@taiga-ui/cdk'; +import {Directive, type DoCheck, inject} from '@angular/core'; +import {TuiDestroyService, type TuiMonthRange} from '@taiga-ui/cdk'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; import {TUI_MONTH_FORMATTER} from '@taiga-ui/kit/tokens'; import {combineLatest, distinctUntilChanged, Subject, switchMap, takeUntil} from 'rxjs'; -import {TuiInputMonthRangeComponent} from './input-month-range.component'; +import {type TuiInputMonthRangeComponent} from './input-month-range.component'; @Directive({ selector: 'tui-input-month-range', diff --git a/projects/kit/components/input-month-range/test/input-month-range.component.spec.ts b/projects/kit/components/input-month-range/test/input-month-range.component.spec.ts index 036f8cbcae05..bb2ebfe75a77 100644 --- a/projects/kit/components/input-month-range/test/input-month-range.component.spec.ts +++ b/projects/kit/components/input-month-range/test/input-month-range.component.spec.ts @@ -1,5 +1,5 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiMonth, TuiMonthRange} from '@taiga-ui/cdk'; diff --git a/projects/kit/components/input-month/input-month.component.ts b/projects/kit/components/input-month/input-month.component.ts index c530187b4001..da66eb2edb37 100644 --- a/projects/kit/components/input-month/input-month.component.ts +++ b/projects/kit/components/input-month/input-month.component.ts @@ -12,26 +12,26 @@ import { TUI_IS_MOBILE, tuiAsControl, tuiAsFocusableItemAccessor, - TuiBooleanHandler, + type TuiBooleanHandler, tuiDateClamp, TuiDay, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, TuiMonth, - TuiYear, + type TuiYear, } from '@taiga-ui/cdk'; import { TUI_TEXTFIELD_SIZE, TuiMonthPipe, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeS, - TuiWithOptionalMinMax, + type TuiSizeL, + type TuiSizeS, + type TuiWithOptionalMinMax, } from '@taiga-ui/core'; import {TUI_MONTH_FORMATTER_PROVIDER} from '@taiga-ui/kit/providers'; import { TUI_INPUT_DATE_OPTIONS, TUI_MONTH_FORMATTER, - TuiInputDateOptions, + type TuiInputDateOptions, } from '@taiga-ui/kit/tokens'; @Component({ diff --git a/projects/kit/components/input-month/input-month.directive.ts b/projects/kit/components/input-month/input-month.directive.ts index 2997ac120dc8..ef19421ccb84 100644 --- a/projects/kit/components/input-month/input-month.directive.ts +++ b/projects/kit/components/input-month/input-month.directive.ts @@ -1,10 +1,10 @@ -import {Directive, DoCheck, inject} from '@angular/core'; -import {TuiDestroyService, TuiMonth} from '@taiga-ui/cdk'; +import {Directive, type DoCheck, inject} from '@angular/core'; +import {TuiDestroyService, type TuiMonth} from '@taiga-ui/cdk'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; import {TUI_MONTH_FORMATTER} from '@taiga-ui/kit/tokens'; import {distinctUntilChanged, Subject, switchMap, takeUntil} from 'rxjs'; -import {TuiInputMonthComponent} from './input-month.component'; +import {type TuiInputMonthComponent} from './input-month.component'; @Directive({ selector: 'tui-input-month', diff --git a/projects/kit/components/input-month/test/input-month.component.spec.ts b/projects/kit/components/input-month/test/input-month.component.spec.ts index 0df112a46a17..2e8c32ce95be 100644 --- a/projects/kit/components/input-month/test/input-month.component.spec.ts +++ b/projects/kit/components/input-month/test/input-month.component.spec.ts @@ -1,5 +1,5 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing'; +import {type ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiDay, TuiMonth} from '@taiga-ui/cdk'; diff --git a/projects/kit/components/input-number/input-number.component.ts b/projects/kit/components/input-number/input-number.component.ts index 230411ee24db..751fbb6501ce 100644 --- a/projects/kit/components/input-number/input-number.component.ts +++ b/projects/kit/components/input-number/input-number.component.ts @@ -7,10 +7,10 @@ import { inject, InjectionToken, Input, - QueryList, + type QueryList, ViewChild, } from '@angular/core'; -import {MaskitoOptions} from '@maskito/core'; +import {type MaskitoOptions} from '@maskito/core'; import { maskitoCaretGuard, maskitoNumberOptionsGenerator, @@ -18,7 +18,7 @@ import { } from '@maskito/kit'; import { AbstractTuiNullableControl, - AbstractTuiValueTransformer, + type AbstractTuiValueTransformer, CHAR_HYPHEN, CHAR_MINUS, EMPTY_QUERY, @@ -26,8 +26,8 @@ import { tuiAsControl, tuiAsFocusableItemAccessor, tuiClamp, - TuiFocusableElementAccessor, - TuiInputMode, + type TuiFocusableElementAccessor, + type TuiInputMode, tuiPure, tuiWatch, } from '@taiga-ui/cdk'; @@ -37,17 +37,20 @@ import { TUI_NUMBER_FORMAT, TUI_TEXTFIELD_SIZE, TUI_TEXTFIELD_WATCHED_CONTROLLER, - TuiDecimal, + type TuiDecimal, tuiFormatNumber, tuiGetFractionPartPadded, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, } from '@taiga-ui/core'; import {PolymorpheusOutletDirective} from '@tinkoff/ng-polymorpheus'; import {takeUntil} from 'rxjs'; -import {TUI_INPUT_NUMBER_OPTIONS, TuiInputNumberOptions} from './input-number.options'; +import { + TUI_INPUT_NUMBER_OPTIONS, + type TuiInputNumberOptions, +} from './input-number.options'; const DEFAULT_MAX_LENGTH = 18; diff --git a/projects/kit/components/input-number/input-number.directive.ts b/projects/kit/components/input-number/input-number.directive.ts index 005034666dba..07278f0d92e6 100644 --- a/projects/kit/components/input-number/input-number.directive.ts +++ b/projects/kit/components/input-number/input-number.directive.ts @@ -1,7 +1,7 @@ -import {Directive, DoCheck} from '@angular/core'; +import {Directive, type DoCheck} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {TuiInputNumberComponent} from './input-number.component'; +import {type TuiInputNumberComponent} from './input-number.component'; @Directive({ selector: 'tui-input-number', diff --git a/projects/kit/components/input-number/input-number.options.ts b/projects/kit/components/input-number/input-number.options.ts index dfdb19ac8c02..b086064321d3 100644 --- a/projects/kit/components/input-number/input-number.options.ts +++ b/projects/kit/components/input-number/input-number.options.ts @@ -1,7 +1,7 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiDecimal} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiDecimal} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiInputNumberOptions { readonly decimal: TuiDecimal; diff --git a/projects/kit/components/input-number/test/input-number-format.spec.ts b/projects/kit/components/input-number/test/input-number-format.spec.ts index cd774c173372..e8211ee0a69c 100644 --- a/projects/kit/components/input-number/test/input-number-format.spec.ts +++ b/projects/kit/components/input-number/test/input-number-format.spec.ts @@ -1,9 +1,9 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk'; -import {TuiDecimal, tuiNumberFormatProvider} from '@taiga-ui/core'; +import {type TuiDecimal, tuiNumberFormatProvider} from '@taiga-ui/core'; import {TuiInputNumberComponent, TuiInputNumberModule} from '@taiga-ui/kit'; import {TuiNativeInputPO} from '@taiga-ui/testing'; diff --git a/projects/kit/components/input-number/test/input-number.component.spec.ts b/projects/kit/components/input-number/test/input-number.component.spec.ts index d2377257d523..9fdeceadb56e 100644 --- a/projects/kit/components/input-number/test/input-number.component.spec.ts +++ b/projects/kit/components/input-number/test/input-number.component.spec.ts @@ -1,13 +1,13 @@ -import {Component, DebugElement, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {CHAR_MINUS, CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk'; import { - TuiDecimal, + type TuiDecimal, TuiHintModule, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, TuiTextfieldControllerModule, } from '@taiga-ui/core'; import {TuiInputNumberComponent, TuiInputNumberModule} from '@taiga-ui/kit'; diff --git a/projects/kit/components/input-password/input-password.component.ts b/projects/kit/components/input-password/input-password.component.ts index 6a27e7d61695..8dfdd39e1ecd 100644 --- a/projects/kit/components/input-password/input-password.component.ts +++ b/projects/kit/components/input-password/input-password.component.ts @@ -9,10 +9,10 @@ import { AbstractTuiControl, tuiAsControl, tuiAsFocusableItemAccessor, - TuiContext, - TuiFocusableElementAccessor, - TuiInputType, - TuiNativeFocusableElement, + type TuiContext, + type TuiFocusableElementAccessor, + type TuiInputType, + type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; import { MODE_PROVIDER, @@ -20,12 +20,12 @@ import { TUI_TEXTFIELD_SIZE, TuiHintOptionsDirective, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, } from '@taiga-ui/core'; import {TUI_PASSWORD_TEXTS} from '@taiga-ui/kit/tokens'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {combineLatest, EMPTY, map, Observable, startWith} from 'rxjs'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {combineLatest, EMPTY, map, type Observable, startWith} from 'rxjs'; import {TUI_INPUT_PASSWORD_OPTIONS} from './input-password.options'; diff --git a/projects/kit/components/input-password/input-password.directive.ts b/projects/kit/components/input-password/input-password.directive.ts index cbf3e73a7545..1b6728100395 100644 --- a/projects/kit/components/input-password/input-password.directive.ts +++ b/projects/kit/components/input-password/input-password.directive.ts @@ -1,8 +1,8 @@ -import {Directive, DoCheck} from '@angular/core'; +import {Directive, type DoCheck} from '@angular/core'; import {tuiIsInput} from '@taiga-ui/cdk'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {TuiInputPasswordComponent} from './input-password.component'; +import {type TuiInputPasswordComponent} from './input-password.component'; @Directive({ selector: 'tui-input-password', diff --git a/projects/kit/components/input-password/input-password.options.ts b/projects/kit/components/input-password/input-password.options.ts index 045fdfc52035..0593f8fb1458 100644 --- a/projects/kit/components/input-password/input-password.options.ts +++ b/projects/kit/components/input-password/input-password.options.ts @@ -1,7 +1,7 @@ -import {Provider} from '@angular/core'; -import {TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Provider} from '@angular/core'; +import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiInputPasswordOptions { readonly icons: Readonly<{ diff --git a/projects/kit/components/input-password/test/input-password.component.spec.ts b/projects/kit/components/input-password/test/input-password.component.spec.ts index 85c094196209..cda788695e72 100644 --- a/projects/kit/components/input-password/test/input-password.component.spec.ts +++ b/projects/kit/components/input-password/test/input-password.component.spec.ts @@ -1,8 +1,8 @@ -import {Component, DebugElement, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; -import {TuiSizeL, TuiSizeS, TuiTextfieldControllerModule} from '@taiga-ui/core'; +import {type TuiSizeL, type TuiSizeS, TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiPageObject} from '@taiga-ui/testing'; import {TuiInputPasswordComponent} from '../input-password.component'; diff --git a/projects/kit/components/input-phone-international/input-phone-international.component.ts b/projects/kit/components/input-phone-international/input-phone-international.component.ts index dd54d0a3d818..56940eaa2a99 100644 --- a/projects/kit/components/input-phone-international/input-phone-international.component.ts +++ b/projects/kit/components/input-phone-international/input-phone-international.component.ts @@ -14,10 +14,10 @@ import { CHAR_PLUS, tuiAsControl, tuiAsFocusableItemAccessor, - TuiContext, - TuiFocusableElementAccessor, + type TuiContext, + type TuiFocusableElementAccessor, tuiPure, - TuiTypedMapper, + type TuiTypedMapper, } from '@taiga-ui/cdk'; import { TUI_MASK_SYMBOLS_REGEXP, @@ -25,9 +25,9 @@ import { TUI_TEXTFIELD_SIZE, TuiFlagPipe, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeM, - TuiSizeS, + type TuiSizeL, + type TuiSizeM, + type TuiSizeS, } from '@taiga-ui/core'; import {TuiCountryIsoCode} from '@taiga-ui/i18n'; import {TUI_ARROW} from '@taiga-ui/kit/components/arrow'; @@ -36,7 +36,7 @@ import {TuiToCountryCodePipe} from '@taiga-ui/kit/pipes'; import {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers'; import {TUI_COUNTRIES, TUI_COUNTRIES_MASKS} from '@taiga-ui/kit/tokens'; import {tuiGetMaxAllowedPhoneLength, tuiIsoToCountryCode} from '@taiga-ui/kit/utils'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS} from './input-phone-international.options'; import {tuiExtractValueFromEvent} from './utils/extract-value-from-event'; diff --git a/projects/kit/components/input-phone-international/input-phone-international.options.ts b/projects/kit/components/input-phone-international/input-phone-international.options.ts index ee441db51470..6fca01daf3e4 100644 --- a/projects/kit/components/input-phone-international/input-phone-international.options.ts +++ b/projects/kit/components/input-phone-international/input-phone-international.options.ts @@ -1,4 +1,4 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; import {TuiCountryIsoCode} from '@taiga-ui/i18n'; diff --git a/projects/kit/components/input-phone-international/test/input-phone-international.component.spec.ts b/projects/kit/components/input-phone-international/test/input-phone-international.component.spec.ts index 28d5852431ce..fe475c9ba28f 100644 --- a/projects/kit/components/input-phone-international/test/input-phone-international.component.spec.ts +++ b/projects/kit/components/input-phone-international/test/input-phone-international.component.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {By} from '@angular/platform-browser'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; @@ -9,7 +9,7 @@ import { TUI_LANGUAGE, TUI_RUSSIAN_LANGUAGE, TuiCountryIsoCode, - TuiLanguage, + type TuiLanguage, } from '@taiga-ui/i18n'; import { TuiInputPhoneInternationalComponent, diff --git a/projects/kit/components/input-phone/input-phone.component.ts b/projects/kit/components/input-phone/input-phone.component.ts index 94f13ea34ecc..c440aaa55b4d 100644 --- a/projects/kit/components/input-phone/input-phone.component.ts +++ b/projects/kit/components/input-phone/input-phone.component.ts @@ -10,16 +10,20 @@ import { TemplateRef, ViewChild, } from '@angular/core'; -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions, maskitoTransform} from '@maskito/core'; +import { + MASKITO_DEFAULT_OPTIONS, + type MaskitoOptions, + maskitoTransform, +} from '@maskito/core'; import {maskitoCaretGuard, maskitoPrefixPostprocessorGenerator} from '@maskito/kit'; import { AbstractTuiControl, - TuiActiveZoneDirective, + type TuiActiveZoneDirective, tuiAsControl, tuiAsFocusableItemAccessor, - TuiContext, - TuiFocusableElementAccessor, - TuiInputMode, + type TuiContext, + type TuiFocusableElementAccessor, + type TuiInputMode, tuiIsNativeFocused, tuiPure, } from '@taiga-ui/cdk'; @@ -29,11 +33,11 @@ import { TUI_TEXTFIELD_SIZE, tuiAsDataListHost, TuiDataListDirective, - TuiDataListHost, + type TuiDataListHost, TuiHostedDropdownComponent, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, } from '@taiga-ui/core'; import {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers'; diff --git a/projects/kit/components/input-phone/input-phone.directive.ts b/projects/kit/components/input-phone/input-phone.directive.ts index de2e7d9f7672..4313e72c2719 100644 --- a/projects/kit/components/input-phone/input-phone.directive.ts +++ b/projects/kit/components/input-phone/input-phone.directive.ts @@ -1,7 +1,7 @@ -import {Directive, DoCheck} from '@angular/core'; +import {Directive, type DoCheck} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {TuiInputPhoneComponent} from './input-phone.component'; +import {type TuiInputPhoneComponent} from './input-phone.component'; @Directive({ selector: 'tui-input-phone', diff --git a/projects/kit/components/input-phone/input-phone.options.ts b/projects/kit/components/input-phone/input-phone.options.ts index 906197428553..6c62ac221fcc 100644 --- a/projects/kit/components/input-phone/input-phone.options.ts +++ b/projects/kit/components/input-phone/input-phone.options.ts @@ -1,4 +1,4 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiInputPhoneOptions { diff --git a/projects/kit/components/input-phone/test/complete-phone-insertion-preprocessor.spec.ts b/projects/kit/components/input-phone/test/complete-phone-insertion-preprocessor.spec.ts index dfed4e83e12e..e256818ee8ef 100644 --- a/projects/kit/components/input-phone/test/complete-phone-insertion-preprocessor.spec.ts +++ b/projects/kit/components/input-phone/test/complete-phone-insertion-preprocessor.spec.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions, maskitoTransform} from '@maskito/core'; +import {type MaskitoOptions, maskitoTransform} from '@maskito/core'; import { tuiCreateCompletePhoneInsertionPreprocessor, diff --git a/projects/kit/components/input-phone/test/input-phone.component.spec.ts b/projects/kit/components/input-phone/test/input-phone.component.spec.ts index 961225f8df31..0d436c7f448d 100644 --- a/projects/kit/components/input-phone/test/input-phone.component.spec.ts +++ b/projects/kit/components/input-phone/test/input-phone.component.spec.ts @@ -1,5 +1,5 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiHintModule, TuiRootModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; diff --git a/projects/kit/components/input-phone/utils/complete-phone-insertion-preprocessor.ts b/projects/kit/components/input-phone/utils/complete-phone-insertion-preprocessor.ts index e6ee50ecd24f..bc34887f7a23 100644 --- a/projects/kit/components/input-phone/utils/complete-phone-insertion-preprocessor.ts +++ b/projects/kit/components/input-phone/utils/complete-phone-insertion-preprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import {type MaskitoPreprocessor} from '@maskito/core'; const countDigits = (value: string): number => value.replaceAll(/\D/g, '').length; diff --git a/projects/kit/components/input-range/input-range.component.ts b/projects/kit/components/input-range/input-range.component.ts index 9249deb77063..b0a70a50011f 100644 --- a/projects/kit/components/input-range/input-range.component.ts +++ b/projects/kit/components/input-range/input-range.component.ts @@ -4,7 +4,7 @@ import { ElementRef, inject, Input, - QueryList, + type QueryList, ViewChild, ViewChildren, } from '@angular/core'; @@ -15,26 +15,26 @@ import { tuiAsControl, tuiAsFocusableItemAccessor, tuiClamp, - TuiContext, - TuiFocusableElementAccessor, + type TuiContext, + type TuiFocusableElementAccessor, tuiIsNativeFocused, tuiIsNativeFocusedIn, - TuiNativeFocusableElement, + type TuiNativeFocusableElement, tuiPure, tuiRound, } from '@taiga-ui/cdk'; import { TEXTFIELD_CONTROLLER_PROVIDER, TUI_TEXTFIELD_WATCHED_CONTROLLER, - TuiDecimal, + type TuiDecimal, tuiGetFractionPartPadded, - TuiWithOptionalMinMax, + type TuiWithOptionalMinMax, } from '@taiga-ui/core'; import {TuiInputNumberComponent} from '@taiga-ui/kit/components/input-number'; import {TuiRangeComponent} from '@taiga-ui/kit/components/range'; import {TUI_FLOATING_PRECISION} from '@taiga-ui/kit/constants'; -import {TuiKeySteps} from '@taiga-ui/kit/types'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiKeySteps} from '@taiga-ui/kit/types'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-input-range', diff --git a/projects/kit/components/input-range/test/input-range.component.spec.ts b/projects/kit/components/input-range/test/input-range.component.spec.ts index ae525c363b4c..0b71bd2358bd 100644 --- a/projects/kit/components/input-range/test/input-range.component.spec.ts +++ b/projects/kit/components/input-range/test/input-range.component.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {CHAR_HYPHEN, CHAR_MINUS} from '@taiga-ui/cdk'; import {TuiInputRangeComponent, TuiInputRangeModule} from '@taiga-ui/kit'; diff --git a/projects/kit/components/input-slider/input-slider.component.ts b/projects/kit/components/input-slider/input-slider.component.ts index c00358e1d51d..a3fa05f273bf 100644 --- a/projects/kit/components/input-slider/input-slider.component.ts +++ b/projects/kit/components/input-slider/input-slider.component.ts @@ -11,19 +11,19 @@ import { tuiAsControl, tuiAsFocusableItemAccessor, tuiClamp, - TuiContext, - TuiFocusableElementAccessor, + type TuiContext, + type TuiFocusableElementAccessor, tuiIsNativeFocused, - TuiNativeFocusableElement, + type TuiNativeFocusableElement, tuiPure, tuiRound, } from '@taiga-ui/cdk'; import { TEXTFIELD_CONTROLLER_PROVIDER, TUI_TEXTFIELD_WATCHED_CONTROLLER, - TuiDecimal, + type TuiDecimal, tuiGetFractionPartPadded, - TuiWithOptionalMinMax, + type TuiWithOptionalMinMax, } from '@taiga-ui/core'; import {TuiInputNumberComponent} from '@taiga-ui/kit/components/input-number'; import { @@ -31,8 +31,8 @@ import { tuiSliderOptionsProvider, } from '@taiga-ui/kit/components/slider'; import {TUI_FLOATING_PRECISION} from '@taiga-ui/kit/constants'; -import {TuiKeySteps} from '@taiga-ui/kit/types'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiKeySteps} from '@taiga-ui/kit/types'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-input-slider', diff --git a/projects/kit/components/input-slider/test/input-slider.component.spec.ts b/projects/kit/components/input-slider/test/input-slider.component.spec.ts index b2e2f012fe60..6fd9c6e9bc9c 100644 --- a/projects/kit/components/input-slider/test/input-slider.component.spec.ts +++ b/projects/kit/components/input-slider/test/input-slider.component.spec.ts @@ -1,7 +1,7 @@ -import {Component, TemplateRef, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type TemplateRef, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; -import {CHAR_MINUS, TuiContext} from '@taiga-ui/cdk'; +import {CHAR_MINUS, type TuiContext} from '@taiga-ui/cdk'; import {TuiRootModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiInputSliderComponent, TuiInputSliderModule} from '@taiga-ui/kit'; import {TuiNativeInputPO, TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/kit/components/input-tag/input-tag.component.ts b/projects/kit/components/input-tag/input-tag.component.ts index 18e7d430b3bd..df9c3f6e3329 100644 --- a/projects/kit/components/input-tag/input-tag.component.ts +++ b/projects/kit/components/input-tag/input-tag.component.ts @@ -9,7 +9,7 @@ import { inject, Input, Output, - QueryList, + type QueryList, TemplateRef, ViewChild, ViewChildren, @@ -19,13 +19,13 @@ import { ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER, EMPTY_QUERY, - TuiActiveZoneDirective, + type TuiActiveZoneDirective, tuiArrayRemove, tuiAsControl, tuiAsFocusableItemAccessor, - TuiBooleanHandler, - TuiContext, - TuiFocusableElementAccessor, + type TuiBooleanHandler, + type TuiContext, + type TuiFocusableElementAccessor, tuiGetActualTarget, tuiGetClipboardDataText, tuiIsElement, @@ -40,19 +40,19 @@ import { TUI_TEXTFIELD_WATCHED_CONTROLLER, tuiAsDataListHost, TuiDataListDirective, - TuiDataListHost, + type TuiDataListHost, TuiHintOptionsDirective, TuiHostedDropdownComponent, TuiModeDirective, TuiScrollbarComponent, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, } from '@taiga-ui/core'; -import {TuiStringifiableItem} from '@taiga-ui/kit/classes'; +import {type TuiStringifiableItem} from '@taiga-ui/kit/classes'; import {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers'; -import {TuiStatus} from '@taiga-ui/kit/types'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {map, Observable, takeUntil, timer} from 'rxjs'; +import {type TuiStatus} from '@taiga-ui/kit/types'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {map, type Observable, takeUntil, timer} from 'rxjs'; import {TUI_INPUT_TAG_OPTIONS} from './input-tag.options'; diff --git a/projects/kit/components/input-tag/input-tag.options.ts b/projects/kit/components/input-tag/input-tag.options.ts index 44e6de81fbb9..74180dfe1fbe 100644 --- a/projects/kit/components/input-tag/input-tag.options.ts +++ b/projects/kit/components/input-tag/input-tag.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiStatus} from '@taiga-ui/kit/types'; +import {type TuiStatus} from '@taiga-ui/kit/types'; export interface TuiInputTagOptions { readonly separator: RegExp | string; diff --git a/projects/kit/components/input-tag/test/input-tag-no-mode.component.spec.ts b/projects/kit/components/input-tag/test/input-tag-no-mode.component.spec.ts index 7db94e8a774b..7747ab93d3aa 100644 --- a/projects/kit/components/input-tag/test/input-tag-no-mode.component.spec.ts +++ b/projects/kit/components/input-tag/test/input-tag-no-mode.component.spec.ts @@ -1,10 +1,10 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormsModule} from '@angular/forms'; import { TuiRootModule, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, TuiTextfieldControllerModule, } from '@taiga-ui/core'; import { diff --git a/projects/kit/components/input-tag/test/input-tag.component.spec.ts b/projects/kit/components/input-tag/test/input-tag.component.spec.ts index 2979c5dfb966..7d8be3a5f049 100644 --- a/projects/kit/components/input-tag/test/input-tag.component.spec.ts +++ b/projects/kit/components/input-tag/test/input-tag.component.spec.ts @@ -1,18 +1,18 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { ALWAYS_TRUE_HANDLER, CHAR_NO_BREAK_SPACE, - TuiBooleanHandler, + type TuiBooleanHandler, TuiFocusedModule, } from '@taiga-ui/cdk'; import { TuiHintModule, TuiRootModule, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, TuiTextfieldControllerModule, } from '@taiga-ui/core'; import {TuiInputTagComponent, TuiInputTagModule} from '@taiga-ui/kit'; diff --git a/projects/kit/components/input-time/input-time.component.ts b/projects/kit/components/input-time/input-time.component.ts index b1c5bc3af88e..705f75580b0a 100644 --- a/projects/kit/components/input-time/input-time.component.ts +++ b/projects/kit/components/input-time/input-time.component.ts @@ -7,7 +7,7 @@ import { Input, ViewChild, } from '@angular/core'; -import {MaskitoOptions} from '@maskito/core'; +import {type MaskitoOptions} from '@maskito/core'; import {maskitoTimeOptionsGenerator} from '@maskito/kit'; import { AbstractTuiNullableControl, @@ -17,31 +17,31 @@ import { TUI_STRICT_MATCHER, tuiAsControl, tuiAsFocusableItemAccessor, - TuiBooleanHandler, - TuiFocusableElementAccessor, + type TuiBooleanHandler, + type TuiFocusableElementAccessor, tuiIsElement, tuiIsInput, tuiIsNativeFocused, tuiPure, TuiTime, - TuiTimeLike, - TuiTimeMode, + type TuiTimeLike, + type TuiTimeMode, } from '@taiga-ui/cdk'; import { TUI_TEXTFIELD_SIZE, tuiAsDataListHost, tuiAsOptionContent, - TuiDataListHost, + type TuiDataListHost, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, } from '@taiga-ui/core'; import {TUI_SELECT_OPTION} from '@taiga-ui/kit/components/select-option'; import {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers'; import {TUI_TIME_TEXTS} from '@taiga-ui/kit/tokens'; -import {map, Observable, takeUntil, timer} from 'rxjs'; +import {map, type Observable, takeUntil, timer} from 'rxjs'; -import {TUI_INPUT_TIME_OPTIONS, TuiInputTimeOptions} from './input-time.options'; +import {TUI_INPUT_TIME_OPTIONS, type TuiInputTimeOptions} from './input-time.options'; @Component({ selector: 'tui-input-time', diff --git a/projects/kit/components/input-time/input-time.directive.ts b/projects/kit/components/input-time/input-time.directive.ts index 7cab88879106..da45d011532e 100644 --- a/projects/kit/components/input-time/input-time.directive.ts +++ b/projects/kit/components/input-time/input-time.directive.ts @@ -1,8 +1,8 @@ import {Directive} from '@angular/core'; -import {TuiTime, TuiTimeMode} from '@taiga-ui/cdk'; +import {type TuiTime, type TuiTimeMode} from '@taiga-ui/cdk'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {TuiInputTimeComponent} from './input-time.component'; +import {type TuiInputTimeComponent} from './input-time.component'; @Directive({ selector: 'tui-input-time', diff --git a/projects/kit/components/input-time/input-time.options.ts b/projects/kit/components/input-time/input-time.options.ts index 57a7cdc6ac08..4f358cf07679 100644 --- a/projects/kit/components/input-time/input-time.options.ts +++ b/projects/kit/components/input-time/input-time.options.ts @@ -1,9 +1,14 @@ -import {Provider} from '@angular/core'; -import {TuiContext, tuiCreateToken, tuiProvideOptions, TuiTimeMode} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type Provider} from '@angular/core'; +import { + type TuiContext, + tuiCreateToken, + tuiProvideOptions, + type TuiTimeMode, +} from '@taiga-ui/cdk'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; import {MAX_TIME_VALUES} from '@taiga-ui/kit/constants'; -import {TuiTimeFormatParts} from '@taiga-ui/kit/types'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiTimeFormatParts} from '@taiga-ui/kit/types'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiInputTimeOptions { readonly icon: PolymorpheusContent>; diff --git a/projects/kit/components/input-time/test/input-time.component.spec.ts b/projects/kit/components/input-time/test/input-time.component.spec.ts index 5e5b9220494d..610701d10590 100644 --- a/projects/kit/components/input-time/test/input-time.component.spec.ts +++ b/projects/kit/components/input-time/test/input-time.component.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {By} from '@angular/platform-browser'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; @@ -7,8 +7,8 @@ import {TuiTime} from '@taiga-ui/cdk'; import { TuiHintModule, TuiRootModule, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, TuiTextfieldControllerModule, } from '@taiga-ui/core'; import {TuiInputTimeComponent, TuiInputTimeModule} from '@taiga-ui/kit'; diff --git a/projects/kit/components/input-year/input-year.component.ts b/projects/kit/components/input-year/input-year.component.ts index 1e64fbf5e009..e15c4038f7dd 100644 --- a/projects/kit/components/input-year/input-year.component.ts +++ b/projects/kit/components/input-year/input-year.component.ts @@ -6,26 +6,26 @@ import { Input, ViewChild, } from '@angular/core'; -import {MaskitoOptions} from '@maskito/core'; +import {type MaskitoOptions} from '@maskito/core'; import {maskitoNumberOptionsGenerator} from '@maskito/kit'; import { AbstractTuiNullableControl, ALWAYS_FALSE_HANDLER, tuiAsControl, tuiAsFocusableItemAccessor, - TuiBooleanHandler, - TuiFocusableElementAccessor, + type TuiBooleanHandler, + type TuiFocusableElementAccessor, tuiPure, - TuiYear, + type TuiYear, } from '@taiga-ui/cdk'; import { TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeS, - TuiWithOptionalMinMax, + type TuiSizeL, + type TuiSizeS, + type TuiWithOptionalMinMax, } from '@taiga-ui/core'; -import {TUI_INPUT_DATE_OPTIONS, TuiInputDateOptions} from '@taiga-ui/kit/tokens'; +import {TUI_INPUT_DATE_OPTIONS, type TuiInputDateOptions} from '@taiga-ui/kit/tokens'; const UP_TO_4_DIGITS_REG = /^\d{0,4}$/; diff --git a/projects/kit/components/input-year/input-year.directive.ts b/projects/kit/components/input-year/input-year.directive.ts index d80f140c0f8f..ee3797359cae 100644 --- a/projects/kit/components/input-year/input-year.directive.ts +++ b/projects/kit/components/input-year/input-year.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {TuiInputYearComponent} from './input-year.component'; +import {type TuiInputYearComponent} from './input-year.component'; @Directive({ selector: 'tui-input-year', diff --git a/projects/kit/components/input/input.component.ts b/projects/kit/components/input/input.component.ts index fb40205078ac..416bfe815b60 100644 --- a/projects/kit/components/input/input.component.ts +++ b/projects/kit/components/input/input.component.ts @@ -9,28 +9,28 @@ import { } from '@angular/core'; import { AbstractTuiControl, - TuiActiveZoneDirective, + type TuiActiveZoneDirective, tuiAsControl, tuiAsFocusableItemAccessor, - TuiContext, - TuiFocusableElementAccessor, + type TuiContext, + type TuiFocusableElementAccessor, tuiIsNativeFocused, } from '@taiga-ui/cdk'; import { TUI_TEXTFIELD_SIZE, tuiAsDataListHost, TuiDataListDirective, - TuiDataListHost, + type TuiDataListHost, TuiHostedDropdownComponent, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, } from '@taiga-ui/core'; import { FIXED_DROPDOWN_CONTROLLER_PROVIDER, TUI_VALUE_ACCESSOR_PROVIDER, } from '@taiga-ui/kit/providers'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-input', diff --git a/projects/kit/components/input/input.directive.ts b/projects/kit/components/input/input.directive.ts index 52b5b613b246..0d9569f838ef 100644 --- a/projects/kit/components/input/input.directive.ts +++ b/projects/kit/components/input/input.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {TuiInputComponent} from './input.component'; +import {type TuiInputComponent} from './input.component'; @Directive({ selector: 'tui-input', diff --git a/projects/kit/components/input/test/input.component.spec.ts b/projects/kit/components/input/test/input.component.spec.ts index 9944b3f57a01..b942d568d498 100644 --- a/projects/kit/components/input/test/input.component.spec.ts +++ b/projects/kit/components/input/test/input.component.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement, ElementRef, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, type ElementRef, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { @@ -7,8 +7,8 @@ import { tuiEditingKeys, TuiHintModule, TuiRootModule, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, TuiTextfieldControllerModule, } from '@taiga-ui/core'; import {TuiInputComponent, TuiInputModule} from '@taiga-ui/kit'; diff --git a/projects/kit/components/island/island.component.ts b/projects/kit/components/island/island.component.ts index f8a996c7d78e..c62466474792 100644 --- a/projects/kit/components/island/island.component.ts +++ b/projects/kit/components/island/island.component.ts @@ -1,5 +1,5 @@ import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'tui-island, a[tuiIsland]', diff --git a/projects/kit/components/island/test/island.component.spec.ts b/projects/kit/components/island/test/island.component.spec.ts index 72dbef09c77d..5d28f3791c56 100644 --- a/projects/kit/components/island/test/island.component.spec.ts +++ b/projects/kit/components/island/test/island.component.spec.ts @@ -1,7 +1,7 @@ -import {HarnessLoader} from '@angular/cdk/testing'; +import {type HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TuiIslandComponent, TuiIslandModule} from '@taiga-ui/kit'; import {TuiIslandHarness} from '@taiga-ui/testing'; diff --git a/projects/kit/components/items-with-more/items-with-more.component.ts b/projects/kit/components/items-with-more/items-with-more.component.ts index 73e32a3ca915..50507dd9cf90 100644 --- a/projects/kit/components/items-with-more/items-with-more.component.ts +++ b/projects/kit/components/items-with-more/items-with-more.component.ts @@ -4,7 +4,7 @@ import { ContentChild, ContentChildren, inject, - QueryList, + type QueryList, TemplateRef, } from '@angular/core'; import { @@ -12,7 +12,7 @@ import { MutationObserverService, } from '@ng-web-apis/mutation-observer'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; -import {EMPTY_QUERY, TuiContext, TuiItemDirective} from '@taiga-ui/cdk'; +import {EMPTY_QUERY, type TuiContext, TuiItemDirective} from '@taiga-ui/cdk'; import {TuiItemsWithMoreDirective} from './items-with-more.directive'; import {TuiItemsWithMoreService} from './items-with-more.service'; diff --git a/projects/kit/components/items-with-more/more.directive.ts b/projects/kit/components/items-with-more/more.directive.ts index 09a7bc968d8f..4d4cdfc6f265 100644 --- a/projects/kit/components/items-with-more/more.directive.ts +++ b/projects/kit/components/items-with-more/more.directive.ts @@ -1,5 +1,5 @@ import {Directive} from '@angular/core'; -import {TuiContext} from '@taiga-ui/cdk'; +import {type TuiContext} from '@taiga-ui/cdk'; @Directive({ selector: '[tuiMore]', diff --git a/projects/kit/components/line-clamp/line-clamp-position.directive.ts b/projects/kit/components/line-clamp/line-clamp-position.directive.ts index 0733b1f8873d..4bd62f987d1f 100644 --- a/projects/kit/components/line-clamp/line-clamp-position.directive.ts +++ b/projects/kit/components/line-clamp/line-clamp-position.directive.ts @@ -2,9 +2,9 @@ import {Directive, inject} from '@angular/core'; import { tuiAsPositionAccessor, TuiHintDirective, - TuiPoint, + type TuiPoint, TuiPositionAccessor, - TuiRectAccessor, + type TuiRectAccessor, } from '@taiga-ui/core'; @Directive({ diff --git a/projects/kit/components/line-clamp/line-clamp.component.ts b/projects/kit/components/line-clamp/line-clamp.component.ts index db92e397bd3b..721dd44b5486 100644 --- a/projects/kit/components/line-clamp/line-clamp.component.ts +++ b/projects/kit/components/line-clamp/line-clamp.component.ts @@ -1,9 +1,9 @@ import { - AfterViewInit, + type AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, - DoCheck, + type DoCheck, ElementRef, HostListener, inject, @@ -15,13 +15,13 @@ import { } from '@angular/core'; import {tuiIsCurrentTarget, tuiPx, tuiTypedFromEvent, tuiZonefree} from '@taiga-ui/cdk'; import {TUI_HINT_COMPONENT, TuiHintDirective} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import { BehaviorSubject, distinctUntilChanged, filter, map, - Observable, + type Observable, of, pairwise, startWith, diff --git a/projects/kit/components/line-clamp/line-clamp.options.ts b/projects/kit/components/line-clamp/line-clamp.options.ts index a99c22b243c3..2cc907272e39 100644 --- a/projects/kit/components/line-clamp/line-clamp.options.ts +++ b/projects/kit/components/line-clamp/line-clamp.options.ts @@ -1,4 +1,4 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiLineClampOptions { diff --git a/projects/kit/components/marker-icon/marker-icon.component.ts b/projects/kit/components/marker-icon/marker-icon.component.ts index 1b988d7650be..ea94f5ebe8e8 100644 --- a/projects/kit/components/marker-icon/marker-icon.component.ts +++ b/projects/kit/components/marker-icon/marker-icon.component.ts @@ -6,8 +6,8 @@ import { Input, } from '@angular/core'; import {TuiDestroyService} from '@taiga-ui/cdk'; -import {MODE_PROVIDER, TUI_MODE, TuiSizeXXL, TuiSizeXXS} from '@taiga-ui/core'; -import {TuiMarkerIconMode} from '@taiga-ui/kit/types'; +import {MODE_PROVIDER, TUI_MODE, type TuiSizeXXL, type TuiSizeXXS} from '@taiga-ui/core'; +import {type TuiMarkerIconMode} from '@taiga-ui/kit/types'; @Component({ selector: 'tui-marker-icon, a[tuiMarkerIcon], button[tuiMarkerIcon]', diff --git a/projects/kit/components/multi-select-option/multi-select-option.component.ts b/projects/kit/components/multi-select-option/multi-select-option.component.ts index 0bf62b208d26..e34909685aa9 100644 --- a/projects/kit/components/multi-select-option/multi-select-option.component.ts +++ b/projects/kit/components/multi-select-option/multi-select-option.component.ts @@ -1,6 +1,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {tuiIsPresent} from '@taiga-ui/cdk'; -import {TuiSizeL} from '@taiga-ui/core'; +import {type TuiSizeL} from '@taiga-ui/core'; import {TuiSelectOptionComponent} from '@taiga-ui/kit/components/select-option'; @Component({ diff --git a/projects/kit/components/multi-select/hide-selected.pipe.ts b/projects/kit/components/multi-select/hide-selected.pipe.ts index 3ca3649bd266..9ffeebd367fc 100644 --- a/projects/kit/components/multi-select/hide-selected.pipe.ts +++ b/projects/kit/components/multi-select/hide-selected.pipe.ts @@ -1,5 +1,5 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; -import {TuiIdentityMatcher, tuiPure} from '@taiga-ui/cdk'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; +import {type TuiIdentityMatcher, tuiPure} from '@taiga-ui/cdk'; import {tuiIsFlat} from '@taiga-ui/kit/utils'; import {TuiMultiSelectComponent} from './multi-select.component'; diff --git a/projects/kit/components/multi-select/multi-select-group/multi-select-group.component.ts b/projects/kit/components/multi-select/multi-select-group/multi-select-group.component.ts index e970dcb747f8..4442ca65918f 100644 --- a/projects/kit/components/multi-select/multi-select-group/multi-select-group.component.ts +++ b/projects/kit/components/multi-select/multi-select-group/multi-select-group.component.ts @@ -5,7 +5,7 @@ import { HostBinding, inject, Input, - QueryList, + type QueryList, } from '@angular/core'; import {NgControl} from '@angular/forms'; import { @@ -13,20 +13,20 @@ import { TUI_DEFAULT_IDENTITY_MATCHER, tuiControlValue, tuiGetOriginalArrayFromQueryList, - TuiIdentityMatcher, + type TuiIdentityMatcher, tuiIsPresent, tuiPure, tuiQueryListChanges, } from '@taiga-ui/cdk'; import { TUI_DATA_LIST_HOST, - TuiDataListHost, + type TuiDataListHost, TuiOptionComponent, - TuiSizeL, - TuiSizeXS, + type TuiSizeL, + type TuiSizeXS, } from '@taiga-ui/core'; import {TUI_MULTI_SELECT_TEXTS} from '@taiga-ui/kit/tokens'; -import {combineLatest, map, Observable} from 'rxjs'; +import {combineLatest, map, type Observable} from 'rxjs'; @Component({ selector: 'tui-opt-group[tuiMultiSelectGroup]', diff --git a/projects/kit/components/multi-select/multi-select-group/multi-select-group.directive.ts b/projects/kit/components/multi-select/multi-select-group/multi-select-group.directive.ts index 5b40726b3d49..ed806d52c09e 100644 --- a/projects/kit/components/multi-select/multi-select-group/multi-select-group.directive.ts +++ b/projects/kit/components/multi-select/multi-select-group/multi-select-group.directive.ts @@ -1,7 +1,11 @@ import {Directive, forwardRef, Optional} from '@angular/core'; import {NG_VALUE_ACCESSOR, NgControl} from '@angular/forms'; import {EMPTY_FUNCTION, tuiArrayToggle} from '@taiga-ui/cdk'; -import {TUI_DATA_LIST_HOST, tuiAsOptionContent, TuiDataListHost} from '@taiga-ui/core'; +import { + TUI_DATA_LIST_HOST, + tuiAsOptionContent, + type TuiDataListHost, +} from '@taiga-ui/core'; import {TuiMultiSelectOptionComponent} from '@taiga-ui/kit/components/multi-select-option'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; diff --git a/projects/kit/components/multi-select/multi-select.component.ts b/projects/kit/components/multi-select/multi-select.component.ts index 662f222e3e04..8bd4a5bded2a 100644 --- a/projects/kit/components/multi-select/multi-select.component.ts +++ b/projects/kit/components/multi-select/multi-select.component.ts @@ -15,40 +15,43 @@ import { ALWAYS_TRUE_HANDLER, EMPTY_ARRAY, TUI_IS_MOBILE, - TuiActiveZoneDirective, + type TuiActiveZoneDirective, tuiArrayToggle, tuiAsControl, tuiAsFocusableItemAccessor, - TuiBooleanHandler, - TuiContext, - TuiFocusableElementAccessor, + type TuiBooleanHandler, + type TuiContext, + type TuiFocusableElementAccessor, tuiIsNativeFocused, tuiIsString, tuiPure, - TuiStringHandler, - TuiTypedMapper, + type TuiStringHandler, + type TuiTypedMapper, } from '@taiga-ui/cdk'; import { TEXTFIELD_CONTROLLER_PROVIDER, TUI_DATA_LIST_ACCESSOR, TUI_TEXTFIELD_WATCHED_CONTROLLER, tuiAsDataListHost, - TuiDataListAccessor, + type TuiDataListAccessor, TuiDataListDirective, - TuiDataListHost, + type TuiDataListHost, TuiHostedDropdownComponent, - TuiSizeL, - TuiSizeM, - TuiSizeS, + type TuiSizeL, + type TuiSizeM, + type TuiSizeS, } from '@taiga-ui/core'; import {TuiStringifiableItem} from '@taiga-ui/kit/classes'; import {TUI_ARROW_MODE} from '@taiga-ui/kit/components/arrow'; import {TuiInputTagComponent} from '@taiga-ui/kit/components/input-tag'; import {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers'; -import {TUI_ITEMS_HANDLERS, TuiItemsHandlers} from '@taiga-ui/kit/tokens'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {TUI_ITEMS_HANDLERS, type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {TUI_MULTI_SELECT_OPTIONS, TuiMultiSelectOptions} from './multi-select.options'; +import { + TUI_MULTI_SELECT_OPTIONS, + type TuiMultiSelectOptions, +} from './multi-select.options'; import {AbstractTuiNativeMultiSelect} from './native-multi-select/native-multi-select'; @Component({ diff --git a/projects/kit/components/multi-select/multi-select.directive.ts b/projects/kit/components/multi-select/multi-select.directive.ts index 14277b0ffba1..f7f9bd91b5ad 100644 --- a/projects/kit/components/multi-select/multi-select.directive.ts +++ b/projects/kit/components/multi-select/multi-select.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; -import {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {type TuiBooleanHandler} from '@taiga-ui/cdk'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import {type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; import type {TuiMultiSelectComponent} from './multi-select.component'; diff --git a/projects/kit/components/multi-select/multi-select.options.ts b/projects/kit/components/multi-select/multi-select.options.ts index cafd4b558008..2588a2484abd 100644 --- a/projects/kit/components/multi-select/multi-select.options.ts +++ b/projects/kit/components/multi-select/multi-select.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; -import {TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Provider} from '@angular/core'; +import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiMultiSelectOptions { readonly rows: number; diff --git a/projects/kit/components/multi-select/native-multi-select/native-multi-select.ts b/projects/kit/components/multi-select/native-multi-select/native-multi-select.ts index aa4ec5f2d516..028ac3477a27 100644 --- a/projects/kit/components/multi-select/native-multi-select/native-multi-select.ts +++ b/projects/kit/components/multi-select/native-multi-select/native-multi-select.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; -import {TuiTypedMapper} from '@taiga-ui/cdk'; +import {type TuiTypedMapper} from '@taiga-ui/cdk'; import {AbstractTuiNativeSelect} from '@taiga-ui/kit/abstract'; -import {TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import {type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; import type {TuiMultiSelectDirective} from '../multi-select.directive'; diff --git a/projects/kit/components/multi-select/test/multi-select.component.spec.ts b/projects/kit/components/multi-select/test/multi-select.component.spec.ts index b389edd7a6ac..f8dc897ba28c 100644 --- a/projects/kit/components/multi-select/test/multi-select.component.spec.ts +++ b/projects/kit/components/multi-select/test/multi-select.component.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { diff --git a/projects/kit/components/pagination/pagination.component.ts b/projects/kit/components/pagination/pagination.component.ts index 49b7d782cc09..6e1b66fac5c1 100644 --- a/projects/kit/components/pagination/pagination.component.ts +++ b/projects/kit/components/pagination/pagination.component.ts @@ -6,7 +6,7 @@ import { inject, Input, Output, - QueryList, + type QueryList, ViewChildren, } from '@angular/core'; import { @@ -15,25 +15,25 @@ import { TUI_FOCUSABLE_ITEM_ACCESSOR, tuiAsFocusableItemAccessor, tuiClamp, - TuiContext, - TuiFocusableElementAccessor, + type TuiContext, + type TuiFocusableElementAccessor, tuiIsNativeFocusedIn, - TuiNativeFocusableElement, + type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; import { TUI_SPIN_ICONS, TuiAppearance, - TuiBrightness, - TuiButtonComponent, - TuiHorizontalDirection, + type TuiBrightness, + type TuiButtonComponent, + type TuiHorizontalDirection, TuiModeDirective, - TuiSizeL, - TuiSizeS, - TuiSizeXS, + type TuiSizeL, + type TuiSizeS, + type TuiSizeXS, } from '@taiga-ui/core'; import {TUI_PAGINATION_TEXTS} from '@taiga-ui/kit/tokens'; import {tuiHorizontalDirectionToNumber} from '@taiga-ui/kit/utils/math'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {EMPTY, map} from 'rxjs'; const DOTS_LENGTH = 1; diff --git a/projects/kit/components/pagination/test/pagination.component.spec.ts b/projects/kit/components/pagination/test/pagination.component.spec.ts index 0b32ebfddfe1..87040a1fb0d2 100644 --- a/projects/kit/components/pagination/test/pagination.component.spec.ts +++ b/projects/kit/components/pagination/test/pagination.component.spec.ts @@ -1,5 +1,5 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {tuiIsPresent} from '@taiga-ui/cdk'; import {TuiPaginationComponent, TuiPaginationModule} from '@taiga-ui/kit'; import {TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/kit/components/pdf-viewer/pdf-viewer.component.ts b/projects/kit/components/pdf-viewer/pdf-viewer.component.ts index 6182fe2bde94..a4c939234193 100644 --- a/projects/kit/components/pdf-viewer/pdf-viewer.component.ts +++ b/projects/kit/components/pdf-viewer/pdf-viewer.component.ts @@ -1,5 +1,5 @@ import {ChangeDetectionStrategy, Component, HostListener, inject} from '@angular/core'; -import {TuiPopover} from '@taiga-ui/cdk'; +import {type TuiPopover} from '@taiga-ui/cdk'; import { TUI_ANIMATIONS_SPEED, TUI_CLOSE_WORD, @@ -10,7 +10,7 @@ import { } from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; -import {TuiPdfViewerOptions} from './pdf-viewer.options'; +import {type TuiPdfViewerOptions} from './pdf-viewer.options'; @Component({ selector: 'tui-pdf-viewer', diff --git a/projects/kit/components/pdf-viewer/pdf-viewer.directive.ts b/projects/kit/components/pdf-viewer/pdf-viewer.directive.ts index 7581b7b75d4e..26ab6fc5d7ef 100644 --- a/projects/kit/components/pdf-viewer/pdf-viewer.directive.ts +++ b/projects/kit/components/pdf-viewer/pdf-viewer.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {tuiAsPopover, TuiPopoverDirective} from '@taiga-ui/cdk'; -import {TuiPdfViewerOptions} from './pdf-viewer.options'; +import {type TuiPdfViewerOptions} from './pdf-viewer.options'; import {TuiPdfViewerService} from './pdf-viewer.service'; @Directive({ diff --git a/projects/kit/components/pdf-viewer/pdf-viewer.options.ts b/projects/kit/components/pdf-viewer/pdf-viewer.options.ts index 9c30a836eb0e..962dceef4f0e 100644 --- a/projects/kit/components/pdf-viewer/pdf-viewer.options.ts +++ b/projects/kit/components/pdf-viewer/pdf-viewer.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export const TUI_PDF_VIEWER_DEFAULT_OPTIONS: TuiPdfViewerOptions = { label: '', diff --git a/projects/kit/components/pdf-viewer/pdf-viewer.service.ts b/projects/kit/components/pdf-viewer/pdf-viewer.service.ts index 2181532ec162..147c3379e42f 100644 --- a/projects/kit/components/pdf-viewer/pdf-viewer.service.ts +++ b/projects/kit/components/pdf-viewer/pdf-viewer.service.ts @@ -1,12 +1,12 @@ import {inject, Injectable} from '@angular/core'; -import {SafeResourceUrl} from '@angular/platform-browser'; -import {TuiPopoverContext, TuiPopoverService} from '@taiga-ui/cdk'; +import {type SafeResourceUrl} from '@angular/platform-browser'; +import {type TuiPopoverContext, TuiPopoverService} from '@taiga-ui/cdk'; import {TUI_DIALOGS} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {Observable} from 'rxjs'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Observable} from 'rxjs'; import {TuiPdfViewerComponent} from './pdf-viewer.component'; -import {TUI_PDF_VIEWER_OPTIONS, TuiPdfViewerOptions} from './pdf-viewer.options'; +import {TUI_PDF_VIEWER_OPTIONS, type TuiPdfViewerOptions} from './pdf-viewer.options'; type Content = PolymorpheusContent< TuiPdfViewerOptions & TuiPopoverContext diff --git a/projects/kit/components/pdf-viewer/test/pdf-viewer.component.spec.ts b/projects/kit/components/pdf-viewer/test/pdf-viewer.component.spec.ts index 099eafb947af..b4be409b0cc8 100644 --- a/projects/kit/components/pdf-viewer/test/pdf-viewer.component.spec.ts +++ b/projects/kit/components/pdf-viewer/test/pdf-viewer.component.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {DomSanitizer} from '@angular/platform-browser'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiRootModule} from '@taiga-ui/core'; diff --git a/projects/kit/components/progress/progress-bar/progress-bar.component.ts b/projects/kit/components/progress/progress-bar/progress-bar.component.ts index c536930d7a44..2a4af07441ee 100644 --- a/projects/kit/components/progress/progress-bar/progress-bar.component.ts +++ b/projects/kit/components/progress/progress-bar/progress-bar.component.ts @@ -5,7 +5,7 @@ import { inject, Input, } from '@angular/core'; -import {MODE_PROVIDER, TUI_MODE, TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core'; +import {MODE_PROVIDER, TUI_MODE, type TuiSizeXS, type TuiSizeXXL} from '@taiga-ui/core'; @Component({ selector: 'progress[tuiProgressBar]', diff --git a/projects/kit/components/progress/progress-bar/progress-color-segments.directive.ts b/projects/kit/components/progress/progress-bar/progress-color-segments.directive.ts index d2e957e10547..5fe363e5cccb 100644 --- a/projects/kit/components/progress/progress-bar/progress-color-segments.directive.ts +++ b/projects/kit/components/progress/progress-bar/progress-color-segments.directive.ts @@ -6,7 +6,7 @@ import { combineLatest, distinctUntilChanged, map, - Observable, + type Observable, } from 'rxjs'; function calculateColorSegments(colors: string[], progressWidth: number): string { diff --git a/projects/kit/components/progress/progress-circle/progress-circle.component.ts b/projects/kit/components/progress/progress-circle/progress-circle.component.ts index b2cd1d466f26..175e78660601 100644 --- a/projects/kit/components/progress/progress-circle/progress-circle.component.ts +++ b/projects/kit/components/progress/progress-circle/progress-circle.component.ts @@ -5,7 +5,7 @@ import { inject, Input, } from '@angular/core'; -import {MODE_PROVIDER, TUI_MODE, TuiSizeXXL, TuiSizeXXS} from '@taiga-ui/core'; +import {MODE_PROVIDER, TUI_MODE, type TuiSizeXXL, type TuiSizeXXS} from '@taiga-ui/core'; import {delay, of} from 'rxjs'; @Component({ diff --git a/projects/kit/components/progress/progress-segmented/progress-segmented.component.ts b/projects/kit/components/progress/progress-segmented/progress-segmented.component.ts index 6e7b014bf15b..db99ec0c4399 100644 --- a/projects/kit/components/progress/progress-segmented/progress-segmented.component.ts +++ b/projects/kit/components/progress/progress-segmented/progress-segmented.component.ts @@ -6,7 +6,7 @@ import { Input, } from '@angular/core'; import {tuiIsString} from '@taiga-ui/cdk'; -import {MODE_PROVIDER, TUI_MODE, TuiSizeS} from '@taiga-ui/core'; +import {MODE_PROVIDER, TUI_MODE, type TuiSizeS} from '@taiga-ui/core'; /** * @deprecated Use {@link http://taiga-ui.dev/experimental/progress-segmented TuiProgressSegmentedModule} (from `@taiga-ui/experimental`) diff --git a/projects/kit/components/prompt/prompt.component.ts b/projects/kit/components/prompt/prompt.component.ts index bc8acb105744..da7a777c7aaf 100644 --- a/projects/kit/components/prompt/prompt.component.ts +++ b/projects/kit/components/prompt/prompt.component.ts @@ -1,11 +1,11 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {TUI_IS_MOBILE} from '@taiga-ui/cdk'; -import {TuiAppearance, TuiDialogContext} from '@taiga-ui/core'; +import {TuiAppearance, type TuiDialogContext} from '@taiga-ui/core'; import {TUI_PROMPT_WORDS} from '@taiga-ui/kit/tokens'; import { POLYMORPHEUS_CONTEXT, PolymorpheusComponent, - PolymorpheusContent, + type PolymorpheusContent, } from '@tinkoff/ng-polymorpheus'; export interface TuiPromptData { diff --git a/projects/kit/components/push/push-alert.component.ts b/projects/kit/components/push/push-alert.component.ts index fca03024a7d1..ab8cd7d751fa 100644 --- a/projects/kit/components/push/push-alert.component.ts +++ b/projects/kit/components/push/push-alert.component.ts @@ -1,5 +1,5 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; -import {TuiPopover} from '@taiga-ui/cdk'; +import {type TuiPopover} from '@taiga-ui/cdk'; import { TUI_ANIMATIONS_SPEED, tuiFadeIn, @@ -9,7 +9,7 @@ import { } from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; -import {TuiPushOptions} from './push.options'; +import {type TuiPushOptions} from './push.options'; import {TuiPushAlertDirective} from './push-alert.directive'; @Component({ diff --git a/projects/kit/components/push/push.directive.ts b/projects/kit/components/push/push.directive.ts index 3d5c6f92a284..6eb88165a8e3 100644 --- a/projects/kit/components/push/push.directive.ts +++ b/projects/kit/components/push/push.directive.ts @@ -1,5 +1,9 @@ import {Directive, inject} from '@angular/core'; -import {TUI_BUTTON_OPTIONS, TuiButtonOptions, TuiModeDirective} from '@taiga-ui/core'; +import { + TUI_BUTTON_OPTIONS, + type TuiButtonOptions, + TuiModeDirective, +} from '@taiga-ui/core'; import {Subject} from 'rxjs'; @Directive({ diff --git a/projects/kit/components/push/push.options.ts b/projects/kit/components/push/push.options.ts index bf7b2b944cf0..065e5221df50 100644 --- a/projects/kit/components/push/push.options.ts +++ b/projects/kit/components/push/push.options.ts @@ -1,4 +1,4 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiPushOptions { diff --git a/projects/kit/components/push/push.service.ts b/projects/kit/components/push/push.service.ts index 978a564dc9ae..2ecb836abbbc 100644 --- a/projects/kit/components/push/push.service.ts +++ b/projects/kit/components/push/push.service.ts @@ -2,7 +2,7 @@ import {inject, Injectable} from '@angular/core'; import {TuiPopoverService} from '@taiga-ui/cdk'; import {TUI_ALERTS} from '@taiga-ui/core'; -import {TUI_PUSH_OPTIONS, TuiPushOptions} from './push.options'; +import {TUI_PUSH_OPTIONS, type TuiPushOptions} from './push.options'; import {TuiPushAlertComponent} from './push-alert.component'; @Injectable({ diff --git a/projects/kit/components/push/test/push.component.spec.ts b/projects/kit/components/push/test/push.component.spec.ts index e0500ad883e9..19d499374aed 100644 --- a/projects/kit/components/push/test/push.component.spec.ts +++ b/projects/kit/components/push/test/push.component.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiRootModule} from '@taiga-ui/core'; import {TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/kit/components/radio-labeled/radio-labeled.component.ts b/projects/kit/components/radio-labeled/radio-labeled.component.ts index cd4cb161ed2e..5824a52c1ca7 100644 --- a/projects/kit/components/radio-labeled/radio-labeled.component.ts +++ b/projects/kit/components/radio-labeled/radio-labeled.component.ts @@ -10,11 +10,11 @@ import { TUI_DEFAULT_IDENTITY_MATCHER, tuiAsControl, tuiAsFocusableItemAccessor, - TuiFocusableElementAccessor, - TuiIdentityMatcher, - TuiNativeFocusableElement, + type TuiFocusableElementAccessor, + type TuiIdentityMatcher, + type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; -import {MODE_PROVIDER, TUI_MODE, TuiSizeL} from '@taiga-ui/core'; +import {MODE_PROVIDER, TUI_MODE, type TuiSizeL} from '@taiga-ui/core'; import {TUI_RADIO_OPTIONS, TuiRadioComponent} from '@taiga-ui/kit/components/radio'; @Component({ diff --git a/projects/kit/components/radio-list/radio-list.component.ts b/projects/kit/components/radio-list/radio-list.component.ts index e49a422bac2b..97654cbf29fd 100644 --- a/projects/kit/components/radio-list/radio-list.component.ts +++ b/projects/kit/components/radio-list/radio-list.component.ts @@ -5,7 +5,7 @@ import { HostBinding, inject, Input, - QueryList, + type QueryList, ViewChildren, } from '@angular/core'; import { @@ -15,14 +15,18 @@ import { TUI_DEFAULT_IDENTITY_MATCHER, tuiAsControl, tuiAsFocusableItemAccessor, - TuiBooleanHandler, - TuiIdentityMatcher, + type TuiBooleanHandler, + type TuiIdentityMatcher, tuiIsNativeFocusedIn, - TuiNativeFocusableElement, + type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; -import {TuiOrientation, TuiSizeL, TuiValueContentContext} from '@taiga-ui/core'; +import { + type TuiOrientation, + type TuiSizeL, + type TuiValueContentContext, +} from '@taiga-ui/core'; import {TuiRadioLabeledComponent} from '@taiga-ui/kit/components/radio-labeled'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-radio-list', diff --git a/projects/kit/components/radio/radio.component.ts b/projects/kit/components/radio/radio.component.ts index ba7117c38d67..ecd6d00f9b9c 100644 --- a/projects/kit/components/radio/radio.component.ts +++ b/projects/kit/components/radio/radio.component.ts @@ -1,7 +1,7 @@ import { ChangeDetectionStrategy, Component, - ElementRef, + type ElementRef, HostBinding, inject, Input, @@ -12,12 +12,12 @@ import { TUI_DEFAULT_IDENTITY_MATCHER, tuiAsControl, tuiAsFocusableItemAccessor, - TuiFocusableElementAccessor, - TuiIdentityMatcher, + type TuiFocusableElementAccessor, + type TuiIdentityMatcher, tuiIsNativeFocused, - TuiNativeFocusableElement, + type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; -import {TuiSizeL} from '@taiga-ui/core'; +import {type TuiSizeL} from '@taiga-ui/core'; import {TuiRadioGroupComponent} from '@taiga-ui/kit/components/radio-group'; import {TUI_RADIO_OPTIONS} from './radio.options'; diff --git a/projects/kit/components/radio/radio.options.ts b/projects/kit/components/radio/radio.options.ts index bfe3d1ba9714..775993ff6f4f 100644 --- a/projects/kit/components/radio/radio.options.ts +++ b/projects/kit/components/radio/radio.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiAppearance, TuiSizeL} from '@taiga-ui/core'; +import {TuiAppearance, type TuiSizeL} from '@taiga-ui/core'; export interface TuiRadioOptions { readonly appearances: Readonly<{ diff --git a/projects/kit/components/range/range.component.ts b/projects/kit/components/range/range.component.ts index 270ff83c01f8..f5ba9b888507 100644 --- a/projects/kit/components/range/range.component.ts +++ b/projects/kit/components/range/range.component.ts @@ -6,22 +6,22 @@ import { HostListener, inject, Input, - QueryList, + type QueryList, ViewChildren, } from '@angular/core'; import { AbstractTuiControl, EMPTY_QUERY, tuiClamp, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, tuiIsNativeFocusedIn, - TuiNativeFocusableElement, + type TuiNativeFocusableElement, tuiPure, tuiQuantize, } from '@taiga-ui/cdk'; -import {TuiSizeS, TuiWithOptionalMinMax} from '@taiga-ui/core'; +import {type TuiSizeS, type TuiWithOptionalMinMax} from '@taiga-ui/core'; import {TuiSliderComponent} from '@taiga-ui/kit/components/slider'; -import {TuiKeySteps} from '@taiga-ui/kit/types'; +import {type TuiKeySteps} from '@taiga-ui/kit/types'; import { tuiKeyStepValueToPercentage, tuiPercentageToKeyStepValue, diff --git a/projects/kit/components/rating/rating.component.ts b/projects/kit/components/rating/rating.component.ts index 702e3c0d94b3..09017ba5707e 100644 --- a/projects/kit/components/rating/rating.component.ts +++ b/projects/kit/components/rating/rating.component.ts @@ -1,7 +1,7 @@ import { ChangeDetectionStrategy, Component, - ElementRef, + type ElementRef, HostListener, inject, Input, @@ -12,7 +12,7 @@ import { tuiAsControl, tuiAsFocusableItemAccessor, tuiClamp, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, tuiIsNativeFocused, } from '@taiga-ui/cdk'; diff --git a/projects/kit/components/rating/rating.options.ts b/projects/kit/components/rating/rating.options.ts index 4d675be053ec..ab9a8c619d2e 100644 --- a/projects/kit/components/rating/rating.options.ts +++ b/projects/kit/components/rating/rating.options.ts @@ -1,4 +1,4 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiRatingOptions { diff --git a/projects/kit/components/rating/tests/rating.component.spec.ts b/projects/kit/components/rating/tests/rating.component.spec.ts index a3e2503e6eeb..004916aebd20 100644 --- a/projects/kit/components/rating/tests/rating.component.spec.ts +++ b/projects/kit/components/rating/tests/rating.component.spec.ts @@ -1,5 +1,5 @@ import {Component, Directive, inject, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormBuilder, FormsModule, ReactiveFormsModule} from '@angular/forms'; import {TuiRatingComponent, TuiRatingModule} from '@taiga-ui/kit'; diff --git a/projects/kit/components/routable-dialog/generate-dialogable-route.ts b/projects/kit/components/routable-dialog/generate-dialogable-route.ts index 191b747453e2..f40070747998 100644 --- a/projects/kit/components/routable-dialog/generate-dialogable-route.ts +++ b/projects/kit/components/routable-dialog/generate-dialogable-route.ts @@ -1,6 +1,6 @@ -import {Type} from '@angular/core'; -import {Route} from '@angular/router'; -import {TuiDialogOptions} from '@taiga-ui/core'; +import {type Type} from '@angular/core'; +import {type Route} from '@angular/router'; +import {type TuiDialogOptions} from '@taiga-ui/core'; import {TuiRoutableDialogComponent} from './routable-dialog.component'; diff --git a/projects/kit/components/routable-dialog/test/routable-dialog.component.spec.ts b/projects/kit/components/routable-dialog/test/routable-dialog.component.spec.ts index 977bec7dfbee..40897a760182 100644 --- a/projects/kit/components/routable-dialog/test/routable-dialog.component.spec.ts +++ b/projects/kit/components/routable-dialog/test/routable-dialog.component.spec.ts @@ -1,12 +1,12 @@ -import {Component, Provider} from '@angular/core'; -import {ComponentFixture, fakeAsync, TestBed} from '@angular/core/testing'; +import {Component, type Provider} from '@angular/core'; +import {type ComponentFixture, fakeAsync, TestBed} from '@angular/core/testing'; import { ActivatedRoute, - ActivatedRouteSnapshot, - Data, - NavigationExtras, + type ActivatedRouteSnapshot, + type Data, + type NavigationExtras, Router, - UrlSegment, + type UrlSegment, } from '@angular/router'; import {TuiDialogService} from '@taiga-ui/core'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; diff --git a/projects/kit/components/select-option/select-option.component.ts b/projects/kit/components/select-option/select-option.component.ts index 57d7a2711e00..74adafbb2520 100644 --- a/projects/kit/components/select-option/select-option.component.ts +++ b/projects/kit/components/select-option/select-option.component.ts @@ -1,18 +1,18 @@ import { ChangeDetectionStrategy, Component, - DoCheck, + type DoCheck, ElementRef, inject, - OnInit, - TemplateRef, + type OnInit, + type TemplateRef, } from '@angular/core'; import {NgControl} from '@angular/forms'; import { AbstractTuiControl, TUI_DEFAULT_IDENTITY_MATCHER, - TuiContext, - TuiIdentityMatcher, + type TuiContext, + type TuiIdentityMatcher, tuiIsPresent, tuiTypedFromEvent, } from '@taiga-ui/cdk'; @@ -20,7 +20,7 @@ import { TUI_COMMON_ICONS, TUI_DATA_LIST_HOST, TuiDataListComponent, - TuiDataListHost, + type TuiDataListHost, TuiOptionComponent, } from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT, PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; diff --git a/projects/kit/components/select/native-select/native-select-group.component.ts b/projects/kit/components/select/native-select/native-select-group.component.ts index f96692a52e85..4fae8abd67cc 100644 --- a/projects/kit/components/select/native-select/native-select-group.component.ts +++ b/projects/kit/components/select/native-select/native-select-group.component.ts @@ -1,7 +1,7 @@ import {ChangeDetectionStrategy, Component, Input, TemplateRef} from '@angular/core'; import {tuiAsDataList} from '@taiga-ui/core'; import {AbstractTuiNativeSelect} from '@taiga-ui/kit/abstract'; -import {TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import {type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; import type {TuiSelectDirective} from '../select.directive'; diff --git a/projects/kit/components/select/native-select/native-select.component.ts b/projects/kit/components/select/native-select/native-select.component.ts index e3a0598c902e..4399ecade8a1 100644 --- a/projects/kit/components/select/native-select/native-select.component.ts +++ b/projects/kit/components/select/native-select/native-select.component.ts @@ -1,7 +1,7 @@ import {ChangeDetectionStrategy, Component, Input, TemplateRef} from '@angular/core'; import {tuiAsDataList} from '@taiga-ui/core'; import {AbstractTuiNativeSelect} from '@taiga-ui/kit/abstract'; -import {TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import {type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; import type {TuiSelectDirective} from '../select.directive'; diff --git a/projects/kit/components/select/select.component.ts b/projects/kit/components/select/select.component.ts index 416a4160c882..cd0588fe7b21 100644 --- a/projects/kit/components/select/select.component.ts +++ b/projects/kit/components/select/select.component.ts @@ -11,11 +11,11 @@ import { import { AbstractTuiNullableControl, TUI_IS_MOBILE, - TuiActiveZoneDirective, + type TuiActiveZoneDirective, tuiAsControl, tuiAsFocusableItemAccessor, - TuiContext, - TuiFocusableElementAccessor, + type TuiContext, + type TuiFocusableElementAccessor, tuiIsNativeFocused, } from '@taiga-ui/cdk'; import { @@ -24,22 +24,22 @@ import { tuiAsDataListHost, tuiAsOptionContent, TuiDataListDirective, - TuiDataListHost, + type TuiDataListHost, TuiHostedDropdownComponent, TuiPrimitiveTextfieldComponent, - TuiSizeL, - TuiSizeM, - TuiSizeS, - TuiValueContentContext, + type TuiSizeL, + type TuiSizeM, + type TuiSizeS, + type TuiValueContentContext, } from '@taiga-ui/core'; import {AbstractTuiNativeSelect} from '@taiga-ui/kit/abstract'; import {TUI_ARROW_MODE} from '@taiga-ui/kit/components/arrow'; import {TUI_SELECT_OPTION} from '@taiga-ui/kit/components/select-option'; import {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers'; -import {TUI_ITEMS_HANDLERS, TuiItemsHandlers} from '@taiga-ui/kit/tokens'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {TUI_ITEMS_HANDLERS, type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {TUI_SELECT_OPTIONS, TuiSelectOptions} from './select.options'; +import {TUI_SELECT_OPTIONS, type TuiSelectOptions} from './select.options'; @Component({ selector: 'tui-select', diff --git a/projects/kit/components/select/select.directive.ts b/projects/kit/components/select/select.directive.ts index 72cf76e81819..a686603465e7 100644 --- a/projects/kit/components/select/select.directive.ts +++ b/projects/kit/components/select/select.directive.ts @@ -1,8 +1,8 @@ import {Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import {type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; -import {TuiSelectComponent} from './select.component'; +import {type TuiSelectComponent} from './select.component'; @Directive({ selector: 'tui-select', diff --git a/projects/kit/components/select/select.options.ts b/projects/kit/components/select/select.options.ts index 7729a48a6262..92e1a4e7cdd3 100644 --- a/projects/kit/components/select/select.options.ts +++ b/projects/kit/components/select/select.options.ts @@ -1,7 +1,7 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiValueContentContext} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiValueContentContext} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiSelectOptions { readonly valueContent: PolymorpheusContent>; diff --git a/projects/kit/components/select/test/select.component.spec.ts b/projects/kit/components/select/test/select.component.spec.ts index fa945bca0dd2..f7a3eb1482cd 100644 --- a/projects/kit/components/select/test/select.component.spec.ts +++ b/projects/kit/components/select/test/select.component.spec.ts @@ -1,8 +1,8 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; -import {TUI_DEFAULT_IDENTITY_MATCHER, TuiIdentityMatcher} from '@taiga-ui/cdk'; +import {TUI_DEFAULT_IDENTITY_MATCHER, type TuiIdentityMatcher} from '@taiga-ui/cdk'; import { TuiDataListModule, TuiHintModule, diff --git a/projects/kit/components/slider/helpers/slider-key-steps.directive.ts b/projects/kit/components/slider/helpers/slider-key-steps.directive.ts index 9a1300aeda46..afc09a584299 100644 --- a/projects/kit/components/slider/helpers/slider-key-steps.directive.ts +++ b/projects/kit/components/slider/helpers/slider-key-steps.directive.ts @@ -10,10 +10,10 @@ import { AbstractTuiControl, tuiAssert, tuiClamp, - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, tuiIsNativeFocused, } from '@taiga-ui/cdk'; -import {TuiKeySteps} from '@taiga-ui/kit/types'; +import {type TuiKeySteps} from '@taiga-ui/kit/types'; import { tuiKeyStepValueToPercentage, tuiPercentageToKeyStepValue, diff --git a/projects/kit/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.ts b/projects/kit/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.ts index 3f9b043e0c25..c93d2a5599e4 100644 --- a/projects/kit/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.ts +++ b/projects/kit/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.ts @@ -1,13 +1,13 @@ /// import { - AfterContentInit, + type AfterContentInit, ChangeDetectionStrategy, Component, ContentChild, } from '@angular/core'; import {NgControl} from '@angular/forms'; import {tuiAssert} from '@taiga-ui/cdk'; -import {TuiSizeS} from '@taiga-ui/core'; +import {type TuiSizeS} from '@taiga-ui/core'; import {TuiSliderComponent} from '../../slider.component'; diff --git a/projects/kit/components/slider/slider.component.ts b/projects/kit/components/slider/slider.component.ts index b8342fea33ec..7c9c5c003f9c 100644 --- a/projects/kit/components/slider/slider.component.ts +++ b/projects/kit/components/slider/slider.component.ts @@ -10,7 +10,7 @@ import { } from '@angular/core'; import {NgControl, NgModel} from '@angular/forms'; import {tuiPure, tuiWatch} from '@taiga-ui/cdk'; -import {TuiSizeS} from '@taiga-ui/core'; +import {type TuiSizeS} from '@taiga-ui/core'; import {take} from 'rxjs'; import {TuiSliderKeyStepsDirective} from './helpers/slider-key-steps.directive'; diff --git a/projects/kit/components/slider/slider.options.ts b/projects/kit/components/slider/slider.options.ts index f394ec3ffc7a..f06bb0523cac 100644 --- a/projects/kit/components/slider/slider.options.ts +++ b/projects/kit/components/slider/slider.options.ts @@ -1,6 +1,6 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiSizeS} from '@taiga-ui/core'; +import {type TuiSizeS} from '@taiga-ui/core'; export interface TuiSliderOptions { readonly size: TuiSizeS; diff --git a/projects/kit/components/slider/test/slider-key-steps.spec.ts b/projects/kit/components/slider/test/slider-key-steps.spec.ts index 83b1f50486b4..479bd3dfe400 100644 --- a/projects/kit/components/slider/test/slider-key-steps.spec.ts +++ b/projects/kit/components/slider/test/slider-key-steps.spec.ts @@ -1,7 +1,7 @@ import {Component, ElementRef, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; -import {TuiKeySteps, TuiSliderModule} from '@taiga-ui/kit'; +import {type TuiKeySteps, TuiSliderModule} from '@taiga-ui/kit'; describe('TuiSliderKeyStepsDirective', () => { @Component({ diff --git a/projects/kit/components/slider/test/slider.spec.ts b/projects/kit/components/slider/test/slider.spec.ts index 6d48e41351b3..1fef7c894274 100644 --- a/projects/kit/components/slider/test/slider.spec.ts +++ b/projects/kit/components/slider/test/slider.spec.ts @@ -1,7 +1,7 @@ import {Component, ElementRef, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, FormsModule, ReactiveFormsModule} from '@angular/forms'; -import {TuiSliderComponent, TuiSliderModule} from '@taiga-ui/kit'; +import {type TuiSliderComponent, TuiSliderModule} from '@taiga-ui/kit'; describe('Slider', () => { @Component({ diff --git a/projects/kit/components/stepper/step/step.component.ts b/projects/kit/components/stepper/step/step.component.ts index 0daa13188d05..071302c1ffff 100644 --- a/projects/kit/components/stepper/step/step.component.ts +++ b/projects/kit/components/stepper/step/step.component.ts @@ -10,7 +10,7 @@ import { import {RouterLinkActive} from '@angular/router'; import {TuiDestroyService, TuiFocusVisibleService} from '@taiga-ui/cdk'; import {TUI_COMMON_ICONS} from '@taiga-ui/core'; -import {EMPTY, filter, Observable} from 'rxjs'; +import {EMPTY, filter, type Observable} from 'rxjs'; import {TuiStepperComponent} from '../stepper.component'; diff --git a/projects/kit/components/stepper/stepper.component.ts b/projects/kit/components/stepper/stepper.component.ts index 39f75a7a9418..129fa8530fc9 100644 --- a/projects/kit/components/stepper/stepper.component.ts +++ b/projects/kit/components/stepper/stepper.component.ts @@ -11,7 +11,7 @@ import { inject, Input, Output, - QueryList, + type QueryList, } from '@angular/core'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import { @@ -24,8 +24,8 @@ import { tuiQueryListChanges, TuiScrollService, } from '@taiga-ui/cdk'; -import {TUI_ANIMATIONS_SPEED, tuiGetDuration, TuiOrientation} from '@taiga-ui/core'; -import {delay, Observable, takeUntil} from 'rxjs'; +import {TUI_ANIMATIONS_SPEED, tuiGetDuration, type TuiOrientation} from '@taiga-ui/core'; +import {delay, type Observable, takeUntil} from 'rxjs'; import {TuiStepComponent} from './step/step.component'; diff --git a/projects/kit/components/tabs/tab/tab.component.ts b/projects/kit/components/tabs/tab/tab.component.ts index 9a01f67cdbea..bc9cfbfef005 100644 --- a/projects/kit/components/tabs/tab/tab.component.ts +++ b/projects/kit/components/tabs/tab/tab.component.ts @@ -4,7 +4,7 @@ import { ElementRef, HostBinding, inject, - OnDestroy, + type OnDestroy, } from '@angular/core'; import {RouterLinkActive} from '@angular/router'; import {tuiIsNativeFocused} from '@taiga-ui/cdk'; diff --git a/projects/kit/components/tabs/tab/tab.providers.ts b/projects/kit/components/tabs/tab/tab.providers.ts index 97188a205fab..5cd75a7ab76a 100644 --- a/projects/kit/components/tabs/tab/tab.providers.ts +++ b/projects/kit/components/tabs/tab/tab.providers.ts @@ -1,9 +1,9 @@ -import {ElementRef, inject, InjectionToken, Provider} from '@angular/core'; +import {ElementRef, inject, InjectionToken, type Provider} from '@angular/core'; import {RouterLinkActive} from '@angular/router'; import {MutationObserverService} from '@ng-web-apis/mutation-observer'; import {TuiDestroyService, tuiTypedFromEvent} from '@taiga-ui/cdk'; import {MODE_PROVIDER} from '@taiga-ui/core'; -import {EMPTY, filter, map, merge, Observable} from 'rxjs'; +import {EMPTY, filter, map, merge, type Observable} from 'rxjs'; /** * Stream of tab activation events */ diff --git a/projects/kit/components/tabs/tabs-vertical/tabs-vertical.component.ts b/projects/kit/components/tabs/tabs-vertical/tabs-vertical.component.ts index fa330ae8f621..b4aed9c59c84 100644 --- a/projects/kit/components/tabs/tabs-vertical/tabs-vertical.component.ts +++ b/projects/kit/components/tabs/tabs-vertical/tabs-vertical.component.ts @@ -6,7 +6,7 @@ import { inject, Input, } from '@angular/core'; -import {TuiHorizontalDirection} from '@taiga-ui/core'; +import {type TuiHorizontalDirection} from '@taiga-ui/core'; import {TuiTabsDirective} from '../tabs.directive'; diff --git a/projects/kit/components/tabs/tabs-with-more/tabs-with-more.component.ts b/projects/kit/components/tabs/tabs-with-more/tabs-with-more.component.ts index ad35621cd46f..30503035efb6 100644 --- a/projects/kit/components/tabs/tabs-with-more/tabs-with-more.component.ts +++ b/projects/kit/components/tabs/tabs-with-more/tabs-with-more.component.ts @@ -1,5 +1,5 @@ import { - AfterViewInit, + type AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, @@ -10,15 +10,15 @@ import { inject, Input, Output, - QueryList, + type QueryList, TemplateRef, ViewChild, } from '@angular/core'; import { EMPTY_QUERY, - TuiActiveZoneDirective, + type TuiActiveZoneDirective, tuiClamp, - TuiContext, + type TuiContext, tuiGetClosestFocusable, tuiIsElement, tuiIsNativeFocused, @@ -27,7 +27,7 @@ import { } from '@taiga-ui/cdk'; import {TUI_ARROW_OPTIONS} from '@taiga-ui/kit/components/arrow'; import {TUI_MORE_WORD, TUI_TAB_MARGIN} from '@taiga-ui/kit/tokens'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {filter, map} from 'rxjs'; import {TuiTabComponent} from '../tab/tab.component'; diff --git a/projects/kit/components/tabs/tabs-with-more/tabs-with-more.providers.ts b/projects/kit/components/tabs/tabs-with-more/tabs-with-more.providers.ts index ed2aa9f8a7d7..5f755b30648a 100644 --- a/projects/kit/components/tabs/tabs-with-more/tabs-with-more.providers.ts +++ b/projects/kit/components/tabs/tabs-with-more/tabs-with-more.providers.ts @@ -1,5 +1,10 @@ import {DOCUMENT} from '@angular/common'; -import {ChangeDetectorRef, ElementRef, InjectionToken, Provider} from '@angular/core'; +import { + ChangeDetectorRef, + ElementRef, + InjectionToken, + type Provider, +} from '@angular/core'; import { MUTATION_OBSERVER_INIT, MutationObserverService, @@ -7,7 +12,15 @@ import { import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import {TuiDestroyService} from '@taiga-ui/cdk'; import {tuiDropdownOptionsProvider} from '@taiga-ui/core'; -import {debounceTime, filter, merge, Observable, startWith, takeUntil, tap} from 'rxjs'; +import { + debounceTime, + filter, + merge, + type Observable, + startWith, + takeUntil, + tap, +} from 'rxjs'; export const TUI_TABS_REFRESH = new InjectionToken>( '[TUI_TABS_REFRESH]', diff --git a/projects/kit/components/tabs/tabs.directive.ts b/projects/kit/components/tabs/tabs.directive.ts index 968dbe8ffe34..e30979c57115 100644 --- a/projects/kit/components/tabs/tabs.directive.ts +++ b/projects/kit/components/tabs/tabs.directive.ts @@ -1,5 +1,5 @@ import { - AfterViewChecked, + type AfterViewChecked, Directive, ElementRef, EventEmitter, diff --git a/projects/kit/components/tabs/tabs.options.ts b/projects/kit/components/tabs/tabs.options.ts index 9cae07ab0604..814aa665f768 100644 --- a/projects/kit/components/tabs/tabs.options.ts +++ b/projects/kit/components/tabs/tabs.options.ts @@ -1,4 +1,4 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiTabsOptions { diff --git a/projects/kit/components/tabs/tabs/tabs.component.ts b/projects/kit/components/tabs/tabs/tabs.component.ts index 1c3a18c0b777..6a7f20d119bb 100644 --- a/projects/kit/components/tabs/tabs/tabs.component.ts +++ b/projects/kit/components/tabs/tabs/tabs.component.ts @@ -1,5 +1,5 @@ import { - AfterViewChecked, + type AfterViewChecked, ChangeDetectionStrategy, ChangeDetectorRef, Component, @@ -10,7 +10,7 @@ import { HostListener, inject, Input, - QueryList, + type QueryList, } from '@angular/core'; import { MUTATION_OBSERVER_INIT, diff --git a/projects/kit/components/tag/tag.component.ts b/projects/kit/components/tag/tag.component.ts index f47e71786a54..46edeb17b49a 100644 --- a/projects/kit/components/tag/tag.component.ts +++ b/projects/kit/components/tag/tag.component.ts @@ -15,13 +15,13 @@ import { TUI_COMMON_ICONS, TUI_MODE, tuiSizeBigger, - TuiSizeL, - TuiSizeS, - TuiSizeXS, + type TuiSizeL, + type TuiSizeS, + type TuiSizeXS, } from '@taiga-ui/core'; -import {TuiStatus} from '@taiga-ui/kit/types'; +import {type TuiStatus} from '@taiga-ui/kit/types'; import {tuiStringHashToHsl} from '@taiga-ui/kit/utils/format'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TUI_TAG_OPTIONS} from './tag.options'; diff --git a/projects/kit/components/tag/tag.options.ts b/projects/kit/components/tag/tag.options.ts index 75ab23668d55..18453841031b 100644 --- a/projects/kit/components/tag/tag.options.ts +++ b/projects/kit/components/tag/tag.options.ts @@ -1,7 +1,7 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; -import {TuiStatus} from '@taiga-ui/kit/types'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import {type TuiStatus} from '@taiga-ui/kit/types'; export interface TuiTagOptions { readonly autoColor: boolean; diff --git a/projects/kit/components/tag/test/tag-options.spec.ts b/projects/kit/components/tag/test/tag-options.spec.ts index 73ac0f905472..4a65ec5bff05 100644 --- a/projects/kit/components/tag/test/tag-options.spec.ts +++ b/projects/kit/components/tag/test/tag-options.spec.ts @@ -1,5 +1,5 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TuiTagComponent, TuiTagModule, tuiTagOptionsProvider} from '@taiga-ui/kit'; describe('Tag component options', () => { diff --git a/projects/kit/components/tag/test/tag.component.spec.ts b/projects/kit/components/tag/test/tag.component.spec.ts index 4aa158e6f554..45634f496ed4 100644 --- a/projects/kit/components/tag/test/tag.component.spec.ts +++ b/projects/kit/components/tag/test/tag.component.spec.ts @@ -1,7 +1,7 @@ -import {HarnessLoader, TestKey} from '@angular/cdk/testing'; +import {type HarnessLoader, TestKey} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {TuiTagComponent, TuiTagModule} from '@taiga-ui/kit'; import {TuiTagHarness} from '@taiga-ui/testing'; diff --git a/projects/kit/components/textarea/test/textarea.component.spec.ts b/projects/kit/components/textarea/test/textarea.component.spec.ts index d985021f8e71..843a88ac237b 100644 --- a/projects/kit/components/textarea/test/textarea.component.spec.ts +++ b/projects/kit/components/textarea/test/textarea.component.spec.ts @@ -1,5 +1,5 @@ -import {Component, DebugElement, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {Component, type DebugElement, ViewChild} from '@angular/core'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {tuiPx} from '@taiga-ui/cdk'; diff --git a/projects/kit/components/textarea/textarea.component.ts b/projects/kit/components/textarea/textarea.component.ts index b1f8fb72d5fc..9bd45e287364 100644 --- a/projects/kit/components/textarea/textarea.component.ts +++ b/projects/kit/components/textarea/textarea.component.ts @@ -14,8 +14,8 @@ import { TUI_IS_IOS, tuiAsControl, tuiAsFocusableItemAccessor, - TuiContext, - TuiFocusableElementAccessor, + type TuiContext, + type TuiFocusableElementAccessor, tuiIsNativeFocused, } from '@taiga-ui/cdk'; import { @@ -26,11 +26,11 @@ import { TUI_TEXTFIELD_WATCHED_CONTROLLER, tuiGetBorder, TuiHintOptionsDirective, - TuiSizeL, - TuiSizeS, + type TuiSizeL, + type TuiSizeS, TuiTextfieldComponent, } from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export const DEFAULT_ROWS = 20; export const LINE_HEIGHT_M = 20; diff --git a/projects/kit/components/textarea/textarea.directive.ts b/projects/kit/components/textarea/textarea.directive.ts index d4c59fafd4ab..7c2b211c62e5 100644 --- a/projects/kit/components/textarea/textarea.directive.ts +++ b/projects/kit/components/textarea/textarea.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {TuiTextareaComponent} from './textarea.component'; +import {type TuiTextareaComponent} from './textarea.component'; @Directive({ selector: 'tui-textarea', diff --git a/projects/kit/components/tiles/tile.component.ts b/projects/kit/components/tiles/tile.component.ts index f0cc18dc816a..c0f70d7983eb 100644 --- a/projects/kit/components/tiles/tile.component.ts +++ b/projects/kit/components/tiles/tile.component.ts @@ -1,5 +1,5 @@ import { - AfterViewInit, + type AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, @@ -7,7 +7,7 @@ import { HostListener, inject, Input, - OnDestroy, + type OnDestroy, ViewChild, } from '@angular/core'; diff --git a/projects/kit/components/tiles/tile.service.ts b/projects/kit/components/tiles/tile.service.ts index 8a02d33345ba..20f4beca096d 100644 --- a/projects/kit/components/tiles/tile.service.ts +++ b/projects/kit/components/tiles/tile.service.ts @@ -1,4 +1,4 @@ -import {ElementRef, inject, Injectable, OnDestroy} from '@angular/core'; +import {ElementRef, inject, Injectable, type OnDestroy} from '@angular/core'; import {MutationObserverService} from '@ng-web-apis/mutation-observer'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import {tuiArrayShallowEquals, tuiPx} from '@taiga-ui/cdk'; @@ -8,7 +8,7 @@ import { debounceTime, distinctUntilChanged, map, - Observable, + type Observable, startWith, Subscription, } from 'rxjs'; diff --git a/projects/kit/components/toggle/test/toggle.component.spec.ts b/projects/kit/components/toggle/test/toggle.component.spec.ts index d5e5fb25edb4..6194f5ad0167 100644 --- a/projects/kit/components/toggle/test/toggle.component.spec.ts +++ b/projects/kit/components/toggle/test/toggle.component.spec.ts @@ -1,7 +1,7 @@ -import {HarnessLoader} from '@angular/cdk/testing'; +import {type HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {TuiToggleModule, tuiToggleOptionsProvider} from '@taiga-ui/kit'; import {TuiToggleHarness} from '@taiga-ui/testing'; diff --git a/projects/kit/components/toggle/toggle.component.ts b/projects/kit/components/toggle/toggle.component.ts index 2e57f3b2acf1..20a98c2d46b3 100644 --- a/projects/kit/components/toggle/toggle.component.ts +++ b/projects/kit/components/toggle/toggle.component.ts @@ -1,7 +1,7 @@ import { ChangeDetectionStrategy, Component, - ElementRef, + type ElementRef, HostBinding, inject, Input, @@ -11,13 +11,18 @@ import { AbstractTuiControl, tuiAsControl, tuiAsFocusableItemAccessor, - TuiContext, - TuiFocusableElementAccessor, + type TuiContext, + type TuiFocusableElementAccessor, tuiIsNativeFocused, - TuiNativeFocusableElement, + type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; -import {TuiBrightness, TuiModeDirective, TuiSizeL, TuiSizeXS} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import { + type TuiBrightness, + TuiModeDirective, + type TuiSizeL, + type TuiSizeXS, +} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TUI_TOGGLE_OPTIONS} from './toggle.options'; diff --git a/projects/kit/components/toggle/toggle.options.ts b/projects/kit/components/toggle/toggle.options.ts index cbc52cfed6e1..f3eb0842090a 100644 --- a/projects/kit/components/toggle/toggle.options.ts +++ b/projects/kit/components/toggle/toggle.options.ts @@ -1,7 +1,7 @@ -import {Provider} from '@angular/core'; -import {TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiAppearance, TuiSizeL} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Provider} from '@angular/core'; +import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import {TuiAppearance, type TuiSizeL} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiToggleOptions { readonly appearances: Readonly<{ diff --git a/projects/kit/components/tree/components/tree-item/tree-item.component.ts b/projects/kit/components/tree/components/tree-item/tree-item.component.ts index 75668b4c5d91..5eae54a4a124 100644 --- a/projects/kit/components/tree/components/tree-item/tree-item.component.ts +++ b/projects/kit/components/tree/components/tree-item/tree-item.component.ts @@ -2,15 +2,15 @@ import { ChangeDetectionStrategy, Component, ContentChildren, - DoCheck, + type DoCheck, ElementRef, forwardRef, HostBinding, inject, - QueryList, + type QueryList, } from '@angular/core'; import {EMPTY_QUERY} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {distinctUntilChanged, map, startWith, Subject} from 'rxjs'; import type {TuiTreeController, TuiTreeItemContext} from '../../misc/tree.interfaces'; diff --git a/projects/kit/components/tree/components/tree-item/tree-item.providers.ts b/projects/kit/components/tree/components/tree-item/tree-item.providers.ts index 32fbd9a85ddf..3b40f3b17c08 100644 --- a/projects/kit/components/tree/components/tree-item/tree-item.providers.ts +++ b/projects/kit/components/tree/components/tree-item/tree-item.providers.ts @@ -1,4 +1,4 @@ -import {forwardRef, Provider, SkipSelf} from '@angular/core'; +import {forwardRef, type Provider, SkipSelf} from '@angular/core'; import {TUI_TREE_LEVEL, TUI_TREE_NODE} from '../../misc/tree.tokens'; import {TuiTreeItemComponent} from './tree-item.component'; diff --git a/projects/kit/components/tree/components/tree/tree.component.ts b/projects/kit/components/tree/components/tree/tree.component.ts index 79da514bbefc..085b1ecd4cff 100644 --- a/projects/kit/components/tree/components/tree/tree.component.ts +++ b/projects/kit/components/tree/components/tree/tree.component.ts @@ -1,18 +1,18 @@ import { ChangeDetectionStrategy, Component, - DoCheck, + type DoCheck, inject, Input, - TrackByFunction, + type TrackByFunction, ViewChild, } from '@angular/core'; -import {TuiHandler} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiHandler} from '@taiga-ui/cdk'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {distinctUntilChanged, map, startWith, Subject} from 'rxjs'; import {TuiTreeChildrenDirective} from '../../directives/tree-children.directive'; -import {TuiTreeContext} from '../../misc/tree.interfaces'; +import {type TuiTreeContext} from '../../misc/tree.interfaces'; import {TUI_TREE_NODE} from '../../misc/tree.tokens'; import {TuiTreeItemComponent} from '../tree-item/tree-item.component'; diff --git a/projects/kit/components/tree/directives/tree-children.directive.ts b/projects/kit/components/tree/directives/tree-children.directive.ts index 6a808e182328..28e8198156a4 100644 --- a/projects/kit/components/tree/directives/tree-children.directive.ts +++ b/projects/kit/components/tree/directives/tree-children.directive.ts @@ -1,5 +1,5 @@ import {Directive, Input} from '@angular/core'; -import {EMPTY_ARRAY, TuiHandler} from '@taiga-ui/cdk'; +import {EMPTY_ARRAY, type TuiHandler} from '@taiga-ui/cdk'; @Directive({ selector: 'tui-tree[childrenHandler]', diff --git a/projects/kit/components/tree/directives/tree-controller.directive.ts b/projects/kit/components/tree/directives/tree-controller.directive.ts index 9ef6d6ac3f38..f194532b9d12 100644 --- a/projects/kit/components/tree/directives/tree-controller.directive.ts +++ b/projects/kit/components/tree/directives/tree-controller.directive.ts @@ -1,8 +1,8 @@ import {Directive, EventEmitter, Input, Output} from '@angular/core'; import {tuiIsPresent} from '@taiga-ui/cdk'; -import {TuiTreeItemComponent} from '../components/tree-item/tree-item.component'; -import {TuiTreeAccessor, TuiTreeController} from '../misc/tree.interfaces'; +import {type TuiTreeItemComponent} from '../components/tree-item/tree-item.component'; +import {type TuiTreeAccessor, type TuiTreeController} from '../misc/tree.interfaces'; import {TUI_TREE_ACCESSOR, TUI_TREE_CONTROLLER} from '../misc/tree.tokens'; @Directive({ diff --git a/projects/kit/components/tree/directives/tree-item-controller.directive.ts b/projects/kit/components/tree/directives/tree-item-controller.directive.ts index e0f1619d2fb0..69be896f5a34 100644 --- a/projects/kit/components/tree/directives/tree-item-controller.directive.ts +++ b/projects/kit/components/tree/directives/tree-item-controller.directive.ts @@ -1,7 +1,7 @@ import {Directive, Input} from '@angular/core'; -import {TuiTreeItemComponent} from '../components/tree-item/tree-item.component'; -import {TuiTreeController} from '../misc/tree.interfaces'; +import {type TuiTreeItemComponent} from '../components/tree-item/tree-item.component'; +import {type TuiTreeController} from '../misc/tree.interfaces'; import {TUI_TREE_CONTROLLER} from '../misc/tree.tokens'; @Directive({ diff --git a/projects/kit/components/tree/directives/tree-node.directive.ts b/projects/kit/components/tree/directives/tree-node.directive.ts index 9075b1d0499e..5e053770b4e6 100644 --- a/projects/kit/components/tree/directives/tree-node.directive.ts +++ b/projects/kit/components/tree/directives/tree-node.directive.ts @@ -1,7 +1,7 @@ -import {Directive, inject, Input, OnDestroy} from '@angular/core'; +import {Directive, inject, Input, type OnDestroy} from '@angular/core'; import {TuiTreeItemComponent} from '../components/tree-item/tree-item.component'; -import {TuiTreeAccessor} from '../misc/tree.interfaces'; +import {type TuiTreeAccessor} from '../misc/tree.interfaces'; import {TUI_TREE_ACCESSOR} from '../misc/tree.tokens'; @Directive({ diff --git a/projects/kit/components/tree/misc/tree.interfaces.ts b/projects/kit/components/tree/misc/tree.interfaces.ts index 040a75c71ac1..11c68cedf012 100644 --- a/projects/kit/components/tree/misc/tree.interfaces.ts +++ b/projects/kit/components/tree/misc/tree.interfaces.ts @@ -1,8 +1,8 @@ -import {TemplateRef} from '@angular/core'; -import {TuiContext} from '@taiga-ui/cdk'; -import {Observable} from 'rxjs'; +import {type TemplateRef} from '@angular/core'; +import {type TuiContext} from '@taiga-ui/cdk'; +import {type Observable} from 'rxjs'; -import {TuiTreeItemComponent} from '../components/tree-item/tree-item.component'; +import {type TuiTreeItemComponent} from '../components/tree-item/tree-item.component'; export interface TuiTreeItemContext extends TuiContext { readonly template: TemplateRef>; diff --git a/projects/kit/components/tree/misc/tree.service.ts b/projects/kit/components/tree/misc/tree.service.ts index 539e2845fe46..15146bffac5a 100644 --- a/projects/kit/components/tree/misc/tree.service.ts +++ b/projects/kit/components/tree/misc/tree.service.ts @@ -1,7 +1,7 @@ import {inject, Injectable} from '@angular/core'; import {map, startWith, Subject, switchMap, tap} from 'rxjs'; -import {TuiTreeLoader} from './tree.interfaces'; +import {type TuiTreeLoader} from './tree.interfaces'; import {TUI_TREE_LOADER, TUI_TREE_LOADING, TUI_TREE_START} from './tree.tokens'; @Injectable() diff --git a/projects/kit/components/tree/misc/tree.tokens.ts b/projects/kit/components/tree/misc/tree.tokens.ts index d90c9c6f04c4..a71481443969 100644 --- a/projects/kit/components/tree/misc/tree.tokens.ts +++ b/projects/kit/components/tree/misc/tree.tokens.ts @@ -1,6 +1,6 @@ import {InjectionToken} from '@angular/core'; import {tuiCreateToken} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TUI_DEFAULT_TREE_CONTROLLER, TUI_TREE_ITEM_CONTENT} from './tree.constants'; import type {TuiTreeAccessor, TuiTreeItemContext, TuiTreeLoader} from './tree.interfaces'; diff --git a/projects/kit/constants/date-mode-maskito-adapter.ts b/projects/kit/constants/date-mode-maskito-adapter.ts index 6f0f5908a470..9ddecbc08627 100644 --- a/projects/kit/constants/date-mode-maskito-adapter.ts +++ b/projects/kit/constants/date-mode-maskito-adapter.ts @@ -1,5 +1,5 @@ -import {MaskitoDateMode} from '@maskito/kit'; -import {TuiDateMode} from '@taiga-ui/cdk'; +import {type MaskitoDateMode} from '@maskito/kit'; +import {type TuiDateMode} from '@taiga-ui/cdk'; export const TUI_DATE_MODE_MASKITO_ADAPTER: Record = { DMY: 'dd/mm/yyyy', diff --git a/projects/kit/constants/masks.ts b/projects/kit/constants/masks.ts index 8376ac7df4c2..9e393291e889 100644 --- a/projects/kit/constants/masks.ts +++ b/projects/kit/constants/masks.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import {type MaskitoOptions} from '@maskito/core'; import {CHAR_HYPHEN, CHAR_PLUS} from '@taiga-ui/cdk'; import {TUI_DIGIT_REGEXP} from '@taiga-ui/core'; diff --git a/projects/kit/constants/max-day-range-length-mapper.ts b/projects/kit/constants/max-day-range-length-mapper.ts index d8f3719df00b..1b83df64f854 100644 --- a/projects/kit/constants/max-day-range-length-mapper.ts +++ b/projects/kit/constants/max-day-range-length-mapper.ts @@ -1,4 +1,9 @@ -import {TuiDay, TuiDayLike, TuiDayRange, TuiTypedMapper} from '@taiga-ui/cdk'; +import { + type TuiDay, + type TuiDayLike, + type TuiDayRange, + type TuiTypedMapper, +} from '@taiga-ui/cdk'; export const MAX_DAY_RANGE_LENGTH_MAPPER: TuiTypedMapper< [TuiDay, TuiDayRange | null, TuiDayLike | null, boolean], diff --git a/projects/kit/constants/max-time-values.ts b/projects/kit/constants/max-time-values.ts index da36fd4ed4b3..93461187987f 100644 --- a/projects/kit/constants/max-time-values.ts +++ b/projects/kit/constants/max-time-values.ts @@ -1,4 +1,4 @@ -import {TuiTimeFormatParts} from '@taiga-ui/kit/types'; +import {type TuiTimeFormatParts} from '@taiga-ui/kit/types'; export const MAX_TIME_VALUES: Record = { HH: 23, diff --git a/projects/kit/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.ts b/projects/kit/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.ts index d98363514374..7e84e1bf4857 100644 --- a/projects/kit/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.ts +++ b/projects/kit/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.ts @@ -1,10 +1,10 @@ import { - AfterViewInit, + type AfterViewInit, ContentChildren, Directive, ElementRef, inject, - QueryList, + type QueryList, } from '@angular/core'; import { EMPTY_QUERY, @@ -22,7 +22,7 @@ import { filter, map, merge, - Observable, + type Observable, shareReplay, switchMap, take, diff --git a/projects/kit/directives/fade/fade.directive.ts b/projects/kit/directives/fade/fade.directive.ts index d8ee7042b4db..837c924ca0a3 100644 --- a/projects/kit/directives/fade/fade.directive.ts +++ b/projects/kit/directives/fade/fade.directive.ts @@ -5,7 +5,7 @@ import { } from '@ng-web-apis/mutation-observer'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import {TuiDestroyService, tuiWithStyles, tuiZonefree} from '@taiga-ui/cdk'; -import {TuiOrientation} from '@taiga-ui/core'; +import {type TuiOrientation} from '@taiga-ui/core'; import {fromEvent, merge, takeUntil} from 'rxjs'; import {TuiFadeComponent} from './fade.component'; diff --git a/projects/kit/directives/highlight/highlight.directive.ts b/projects/kit/directives/highlight/highlight.directive.ts index 7fdc7b61fd60..75e1cf1f402e 100644 --- a/projects/kit/directives/highlight/highlight.directive.ts +++ b/projects/kit/directives/highlight/highlight.directive.ts @@ -1,5 +1,12 @@ import {DOCUMENT} from '@angular/common'; -import {Directive, ElementRef, inject, Input, OnChanges, Renderer2} from '@angular/core'; +import { + Directive, + ElementRef, + inject, + Input, + type OnChanges, + Renderer2, +} from '@angular/core'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import {svgNodeFilter, TuiDestroyService, tuiPx} from '@taiga-ui/cdk'; import {takeUntil} from 'rxjs'; diff --git a/projects/kit/directives/lazy-loading/lazy-loading.directive.ts b/projects/kit/directives/lazy-loading/lazy-loading.directive.ts index 87cf2064bc33..f919014d513b 100644 --- a/projects/kit/directives/lazy-loading/lazy-loading.directive.ts +++ b/projects/kit/directives/lazy-loading/lazy-loading.directive.ts @@ -6,7 +6,7 @@ import { inject, Input, } from '@angular/core'; -import {SafeResourceUrl} from '@angular/platform-browser'; +import {type SafeResourceUrl} from '@angular/platform-browser'; import {IntersectionObserverService} from '@ng-web-apis/intersection-observer'; import {TuiDestroyService} from '@taiga-ui/cdk'; diff --git a/projects/kit/directives/lazy-loading/lazy-loading.service.ts b/projects/kit/directives/lazy-loading/lazy-loading.service.ts index e12507edba1a..639b182e5be5 100644 --- a/projects/kit/directives/lazy-loading/lazy-loading.service.ts +++ b/projects/kit/directives/lazy-loading/lazy-loading.service.ts @@ -1,5 +1,5 @@ import {ChangeDetectorRef, inject, Injectable} from '@angular/core'; -import {SafeResourceUrl} from '@angular/platform-browser'; +import {type SafeResourceUrl} from '@angular/platform-browser'; import {IntersectionObserverService} from '@ng-web-apis/intersection-observer'; import {TuiDestroyService, tuiWatch} from '@taiga-ui/cdk'; import { diff --git a/projects/kit/directives/present/present.directive.ts b/projects/kit/directives/present/present.directive.ts index cd045ddf7127..e1f60f4bcf56 100644 --- a/projects/kit/directives/present/present.directive.ts +++ b/projects/kit/directives/present/present.directive.ts @@ -1,4 +1,4 @@ -import {Directive, HostListener, OnDestroy, Output} from '@angular/core'; +import {Directive, HostListener, type OnDestroy, Output} from '@angular/core'; import {BehaviorSubject, distinctUntilChanged, skip} from 'rxjs'; @Directive({ diff --git a/projects/kit/directives/project-class/project-class.directive.ts b/projects/kit/directives/project-class/project-class.directive.ts index 57d67bc9684a..d5624e685a98 100644 --- a/projects/kit/directives/project-class/project-class.directive.ts +++ b/projects/kit/directives/project-class/project-class.directive.ts @@ -1,4 +1,4 @@ -import {AfterViewChecked, Directive, ElementRef, inject, Input} from '@angular/core'; +import {type AfterViewChecked, Directive, ElementRef, inject, Input} from '@angular/core'; /** * A directive for projecting classes from nested children to host diff --git a/projects/kit/directives/project-class/test/project-class.directive.spec.ts b/projects/kit/directives/project-class/test/project-class.directive.spec.ts index de10551f2259..6bf6ca218295 100644 --- a/projects/kit/directives/project-class/test/project-class.directive.spec.ts +++ b/projects/kit/directives/project-class/test/project-class.directive.spec.ts @@ -1,5 +1,5 @@ import {Component} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {TuiDataListModule} from '@taiga-ui/core'; import { diff --git a/projects/kit/directives/unfinished-validator/unfinished-validator.directive.ts b/projects/kit/directives/unfinished-validator/unfinished-validator.directive.ts index c57b91d21bac..7224b7ba4227 100644 --- a/projects/kit/directives/unfinished-validator/unfinished-validator.directive.ts +++ b/projects/kit/directives/unfinished-validator/unfinished-validator.directive.ts @@ -1,5 +1,5 @@ import {Attribute, Directive, inject, INJECTOR} from '@angular/core'; -import {NG_VALIDATORS, Validator} from '@angular/forms'; +import {NG_VALIDATORS, type Validator} from '@angular/forms'; import {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk'; import {tuiCreateUnfinishedValidator} from './unfinished.validator'; diff --git a/projects/kit/directives/unfinished-validator/unfinished.validator.ts b/projects/kit/directives/unfinished-validator/unfinished.validator.ts index 46030ebd084f..1920f6213cc1 100644 --- a/projects/kit/directives/unfinished-validator/unfinished.validator.ts +++ b/projects/kit/directives/unfinished-validator/unfinished.validator.ts @@ -1,11 +1,11 @@ -import {AbstractControl, ValidatorFn} from '@angular/forms'; +import {type AbstractControl, type ValidatorFn} from '@angular/forms'; import { - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, tuiIsHTMLElement, tuiIsInput, TuiValidationError, } from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export function tuiCreateUnfinishedValidator( nativeInputGetter: () => TuiFocusableElementAccessor, diff --git a/projects/kit/directives/unmask-handler/unmask-handler.directive.ts b/projects/kit/directives/unmask-handler/unmask-handler.directive.ts index a4775de5ad81..93487016bb9b 100644 --- a/projects/kit/directives/unmask-handler/unmask-handler.directive.ts +++ b/projects/kit/directives/unmask-handler/unmask-handler.directive.ts @@ -1,6 +1,10 @@ import {Directive, Input} from '@angular/core'; -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions, maskitoTransform} from '@maskito/core'; -import {AbstractTuiValueTransformer, TuiMapper} from '@taiga-ui/cdk'; +import { + MASKITO_DEFAULT_OPTIONS, + type MaskitoOptions, + maskitoTransform, +} from '@maskito/core'; +import {AbstractTuiValueTransformer, type TuiMapper} from '@taiga-ui/cdk'; import {identity} from 'rxjs'; @Directive({ diff --git a/projects/kit/interfaces/mobile-calendar-data.ts b/projects/kit/interfaces/mobile-calendar-data.ts index 382155f6c912..602ac96e62bd 100644 --- a/projects/kit/interfaces/mobile-calendar-data.ts +++ b/projects/kit/interfaces/mobile-calendar-data.ts @@ -1,4 +1,4 @@ -import {TuiBooleanHandler, TuiDay} from '@taiga-ui/cdk'; +import {type TuiBooleanHandler, type TuiDay} from '@taiga-ui/cdk'; export interface TuiMobileCalendarData { disabledItemHandler?: TuiBooleanHandler; diff --git a/projects/kit/interfaces/month-context.ts b/projects/kit/interfaces/month-context.ts index 574c9ff9fed0..b964209b5ddb 100644 --- a/projects/kit/interfaces/month-context.ts +++ b/projects/kit/interfaces/month-context.ts @@ -1,4 +1,4 @@ -import {TuiMonth, TuiMonthRange} from '@taiga-ui/cdk'; +import {type TuiMonth, type TuiMonthRange} from '@taiga-ui/cdk'; export interface TuiMonthContext { value: TuiMonth | TuiMonthRange | null; diff --git a/projects/kit/internal/primitive-calendar-range/primitive-calendar-range.component.ts b/projects/kit/internal/primitive-calendar-range/primitive-calendar-range.component.ts index 17b4c6f6c01a..6e9fa135e4cd 100644 --- a/projects/kit/internal/primitive-calendar-range/primitive-calendar-range.component.ts +++ b/projects/kit/internal/primitive-calendar-range/primitive-calendar-range.component.ts @@ -5,24 +5,24 @@ import { EventEmitter, inject, Input, - OnInit, + type OnInit, Output, } from '@angular/core'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - TuiBooleanHandler, - TuiDay, - TuiDayRange, + type TuiBooleanHandler, + type TuiDay, + type TuiDayRange, TuiDestroyService, TuiMonth, - TuiTypedMapper, + type TuiTypedMapper, tuiWatch, } from '@taiga-ui/cdk'; -import {TUI_DEFAULT_MARKER_HANDLER, TuiMarkerHandler} from '@taiga-ui/core'; +import {TUI_DEFAULT_MARKER_HANDLER, type TuiMarkerHandler} from '@taiga-ui/core'; import {TUI_CALENDAR_DATE_STREAM} from '@taiga-ui/kit/tokens'; -import {Observable, takeUntil} from 'rxjs'; +import {type Observable, takeUntil} from 'rxjs'; /** * @internal diff --git a/projects/kit/internal/primitive-calendar-range/test/primitive-calendar-range.component.spec.ts b/projects/kit/internal/primitive-calendar-range/test/primitive-calendar-range.component.spec.ts index 19294562fb74..ee376d718aa1 100644 --- a/projects/kit/internal/primitive-calendar-range/test/primitive-calendar-range.component.spec.ts +++ b/projects/kit/internal/primitive-calendar-range/test/primitive-calendar-range.component.spec.ts @@ -1,5 +1,5 @@ import {Component, ViewChild} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiDay, TuiMonth} from '@taiga-ui/cdk'; import { diff --git a/projects/kit/pipes/field-error/field-error-content-pipe.ts b/projects/kit/pipes/field-error/field-error-content-pipe.ts index 03a1781f7c0e..c712eeff3878 100644 --- a/projects/kit/pipes/field-error/field-error-content-pipe.ts +++ b/projects/kit/pipes/field-error/field-error-content-pipe.ts @@ -1,6 +1,13 @@ import {AsyncPipe} from '@angular/common'; -import {inject, INJECTOR, Injector, OnDestroy, Pipe, PipeTransform} from '@angular/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import { + inject, + INJECTOR, + Injector, + type OnDestroy, + Pipe, + type PipeTransform, +} from '@angular/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TuiFieldErrorPipe} from './field-error-pipe'; diff --git a/projects/kit/pipes/field-error/field-error-pipe.ts b/projects/kit/pipes/field-error/field-error-pipe.ts index f2c17c6a709a..483264be0a60 100644 --- a/projects/kit/pipes/field-error/field-error-pipe.ts +++ b/projects/kit/pipes/field-error/field-error-pipe.ts @@ -1,13 +1,13 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; import { - AbstractControl, + type AbstractControl, ControlContainer, - ControlValueAccessor, + type ControlValueAccessor, NgControl, } from '@angular/forms'; import {tuiIsString, tuiPure, TuiValidationError} from '@taiga-ui/cdk'; import {TUI_VALIDATION_ERRORS} from '@taiga-ui/kit/tokens'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {map, Observable, of} from 'rxjs'; const EMPTY_RECORD = {}; diff --git a/projects/kit/pipes/field-error/test/field-error-content-pipe.spec.ts b/projects/kit/pipes/field-error/test/field-error-content-pipe.spec.ts index 1699de39f314..41dc3f96fd76 100644 --- a/projects/kit/pipes/field-error/test/field-error-content-pipe.spec.ts +++ b/projects/kit/pipes/field-error/test/field-error-content-pipe.spec.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import { - ComponentFixture, + type ComponentFixture, discardPeriodicTasks, fakeAsync, TestBed, diff --git a/projects/kit/pipes/filter-by-input/filter-by-input-with.pipe.ts b/projects/kit/pipes/filter-by-input/filter-by-input-with.pipe.ts index 1de301b4d274..11ee131205f3 100644 --- a/projects/kit/pipes/filter-by-input/filter-by-input-with.pipe.ts +++ b/projects/kit/pipes/filter-by-input/filter-by-input-with.pipe.ts @@ -1,12 +1,12 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; import { TUI_DEFAULT_MATCHER, TUI_FOCUSABLE_ITEM_ACCESSOR, - TuiStringHandler, + type TuiStringHandler, } from '@taiga-ui/cdk'; import {TuiMultiSelectDirective} from '@taiga-ui/kit/components/multi-select'; -import {AbstractTuiFilterByInput, TuiArrayElement} from './filter-by-input.base'; +import {AbstractTuiFilterByInput, type TuiArrayElement} from './filter-by-input.base'; /** * @deprecated Use {@link TuiFilterByInputPipe} instead diff --git a/projects/kit/pipes/filter-by-input/filter-by-input.base.ts b/projects/kit/pipes/filter-by-input/filter-by-input.base.ts index c72bd503f2e1..7d7f58896e44 100644 --- a/projects/kit/pipes/filter-by-input/filter-by-input.base.ts +++ b/projects/kit/pipes/filter-by-input/filter-by-input.base.ts @@ -1,9 +1,9 @@ import { - TuiFocusableElementAccessor, + type TuiFocusableElementAccessor, tuiIsPresent, tuiPure, - TuiStringHandler, - TuiStringMatcher, + type TuiStringHandler, + type TuiStringMatcher, } from '@taiga-ui/cdk'; import {tuiIsFlat} from '@taiga-ui/kit/utils'; diff --git a/projects/kit/pipes/filter-by-input/filter-by-input.pipe.ts b/projects/kit/pipes/filter-by-input/filter-by-input.pipe.ts index 02ccd31a3508..03207632879d 100644 --- a/projects/kit/pipes/filter-by-input/filter-by-input.pipe.ts +++ b/projects/kit/pipes/filter-by-input/filter-by-input.pipe.ts @@ -1,14 +1,14 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; import { TUI_DEFAULT_MATCHER, TUI_DEFAULT_STRINGIFY, TUI_FOCUSABLE_ITEM_ACCESSOR, - TuiStringMatcher, + type TuiStringMatcher, } from '@taiga-ui/cdk'; import {TUI_DATA_LIST_HOST} from '@taiga-ui/core'; import {TuiMultiSelectDirective} from '@taiga-ui/kit/components/multi-select'; -import {AbstractTuiFilterByInput, TuiArrayElement} from './filter-by-input.base'; +import {AbstractTuiFilterByInput, type TuiArrayElement} from './filter-by-input.base'; @Pipe({ name: 'tuiFilterByInput', diff --git a/projects/kit/pipes/iso-to-country-code/iso-to-country-code.pipe.ts b/projects/kit/pipes/iso-to-country-code/iso-to-country-code.pipe.ts index 3e5da7a0d2f1..36bf73e368d4 100644 --- a/projects/kit/pipes/iso-to-country-code/iso-to-country-code.pipe.ts +++ b/projects/kit/pipes/iso-to-country-code/iso-to-country-code.pipe.ts @@ -1,5 +1,5 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; -import {TuiCountryIsoCode} from '@taiga-ui/i18n'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; +import {type TuiCountryIsoCode} from '@taiga-ui/i18n'; import {TUI_COUNTRIES_MASKS} from '@taiga-ui/kit/tokens'; import {tuiIsoToCountryCode} from '@taiga-ui/kit/utils'; diff --git a/projects/kit/pipes/sort-countries/sort-countries.pipe.ts b/projects/kit/pipes/sort-countries/sort-countries.pipe.ts index 98cb181284e5..1c8686586a82 100644 --- a/projects/kit/pipes/sort-countries/sort-countries.pipe.ts +++ b/projects/kit/pipes/sort-countries/sort-countries.pipe.ts @@ -1,7 +1,7 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; -import {TuiCountryIsoCode} from '@taiga-ui/i18n'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; +import {type TuiCountryIsoCode} from '@taiga-ui/i18n'; import {TUI_COUNTRIES} from '@taiga-ui/kit/tokens'; -import {map, Observable} from 'rxjs'; +import {map, type Observable} from 'rxjs'; @Pipe({ name: 'tuiSortCountries', diff --git a/projects/kit/pipes/stringify-content/stringify-content.pipe.ts b/projects/kit/pipes/stringify-content/stringify-content.pipe.ts index 01530dac7412..950feeeab212 100644 --- a/projects/kit/pipes/stringify-content/stringify-content.pipe.ts +++ b/projects/kit/pipes/stringify-content/stringify-content.pipe.ts @@ -1,6 +1,6 @@ -import {Pipe, PipeTransform} from '@angular/core'; -import {TuiStringHandler} from '@taiga-ui/cdk'; -import {TuiValueContentContext} from '@taiga-ui/core'; +import {Pipe, type PipeTransform} from '@angular/core'; +import {type TuiStringHandler} from '@taiga-ui/cdk'; +import {type TuiValueContentContext} from '@taiga-ui/core'; @Pipe({ name: 'tuiStringifyContent', diff --git a/projects/kit/pipes/stringify/stringify.pipe.ts b/projects/kit/pipes/stringify/stringify.pipe.ts index 79d94c82adba..b2e6e1b5f535 100644 --- a/projects/kit/pipes/stringify/stringify.pipe.ts +++ b/projects/kit/pipes/stringify/stringify.pipe.ts @@ -1,5 +1,5 @@ -import {Pipe, PipeTransform} from '@angular/core'; -import {TuiStringHandler} from '@taiga-ui/cdk'; +import {Pipe, type PipeTransform} from '@angular/core'; +import {type TuiStringHandler} from '@taiga-ui/cdk'; @Pipe({ name: 'tuiStringify', diff --git a/projects/kit/pipes/to-country-code/to-country-code.pipe.ts b/projects/kit/pipes/to-country-code/to-country-code.pipe.ts index 97899414dfaf..a5cd6c59e773 100644 --- a/projects/kit/pipes/to-country-code/to-country-code.pipe.ts +++ b/projects/kit/pipes/to-country-code/to-country-code.pipe.ts @@ -1,4 +1,4 @@ -import {inject, Pipe, PipeTransform} from '@angular/core'; +import {inject, Pipe, type PipeTransform} from '@angular/core'; import {CHAR_PLUS} from '@taiga-ui/cdk'; import {TuiCountryIsoCode} from '@taiga-ui/i18n'; import {TUI_COUNTRIES_MASKS} from '@taiga-ui/kit/tokens'; diff --git a/projects/kit/pipes/to-year/to-year.pipe.ts b/projects/kit/pipes/to-year/to-year.pipe.ts index cfaaada41bc2..a66a1aac2e70 100644 --- a/projects/kit/pipes/to-year/to-year.pipe.ts +++ b/projects/kit/pipes/to-year/to-year.pipe.ts @@ -1,4 +1,4 @@ -import {Pipe, PipeTransform} from '@angular/core'; +import {Pipe, type PipeTransform} from '@angular/core'; import {TuiYear} from '@taiga-ui/cdk'; @Pipe({ diff --git a/projects/kit/providers/month-formatter.provider.ts b/projects/kit/providers/month-formatter.provider.ts index 46f6059860de..127474dfc9c2 100644 --- a/projects/kit/providers/month-formatter.provider.ts +++ b/projects/kit/providers/month-formatter.provider.ts @@ -1,8 +1,8 @@ -import {FactoryProvider} from '@angular/core'; -import {TuiHandler, TuiMonth} from '@taiga-ui/cdk'; +import {type FactoryProvider} from '@angular/core'; +import {type TuiHandler, type TuiMonth} from '@taiga-ui/cdk'; import {TuiMonthPipe} from '@taiga-ui/core'; import {TUI_MONTH_FORMATTER} from '@taiga-ui/kit/tokens'; -import {map, Observable, of} from 'rxjs'; +import {map, type Observable, of} from 'rxjs'; export const TUI_MONTH_FORMATTER_PROVIDER: FactoryProvider = { provide: TUI_MONTH_FORMATTER, diff --git a/projects/kit/providers/value-accessor.provider.ts b/projects/kit/providers/value-accessor.provider.ts index 158fb9ac812c..a3c4a052508d 100644 --- a/projects/kit/providers/value-accessor.provider.ts +++ b/projects/kit/providers/value-accessor.provider.ts @@ -1,4 +1,4 @@ -import {FactoryProvider, Optional, Self} from '@angular/core'; +import {type FactoryProvider, Optional, Self} from '@angular/core'; import {NG_VALUE_ACCESSOR} from '@angular/forms'; import {TUI_VALUE_ACCESSOR} from '@taiga-ui/core'; import {identity} from 'rxjs'; diff --git a/projects/kit/services/dialog-form.service.ts b/projects/kit/services/dialog-form.service.ts index c60dbd1976f2..f48a092aa062 100644 --- a/projects/kit/services/dialog-form.service.ts +++ b/projects/kit/services/dialog-form.service.ts @@ -1,7 +1,7 @@ import {inject, Injectable} from '@angular/core'; -import {TuiDialogOptions, TuiDialogService} from '@taiga-ui/core'; -import {TUI_PROMPT, TuiPromptData} from '@taiga-ui/kit/components'; -import {defer, Observable, of} from 'rxjs'; +import {type TuiDialogOptions, TuiDialogService} from '@taiga-ui/core'; +import {TUI_PROMPT, type TuiPromptData} from '@taiga-ui/kit/components'; +import {defer, type Observable, of} from 'rxjs'; @Injectable() export class TuiDialogFormService { diff --git a/projects/kit/tokens/calendar-date-stream.ts b/projects/kit/tokens/calendar-date-stream.ts index b765bfbbfb85..73e350ee264e 100644 --- a/projects/kit/tokens/calendar-date-stream.ts +++ b/projects/kit/tokens/calendar-date-stream.ts @@ -1,8 +1,12 @@ -import {InjectionToken, Optional, Provider, Self} from '@angular/core'; +import {InjectionToken, Optional, type Provider, Self} from '@angular/core'; import {NgControl} from '@angular/forms'; -import {TuiControlValueTransformer, TuiDay, TuiDayRange} from '@taiga-ui/cdk'; +import { + type TuiControlValueTransformer, + type TuiDay, + type TuiDayRange, +} from '@taiga-ui/cdk'; import {tuiControlValueFactory} from '@taiga-ui/kit/utils'; -import {Observable} from 'rxjs'; +import {type Observable} from 'rxjs'; /** * Stream that emits calendar data change diff --git a/projects/kit/tokens/date-inputs-value-transformers.ts b/projects/kit/tokens/date-inputs-value-transformers.ts index a47fbfe35978..45ab19d085cc 100644 --- a/projects/kit/tokens/date-inputs-value-transformers.ts +++ b/projects/kit/tokens/date-inputs-value-transformers.ts @@ -1,5 +1,10 @@ import {InjectionToken} from '@angular/core'; -import {TuiControlValueTransformer, TuiDay, TuiDayRange, TuiTime} from '@taiga-ui/cdk'; +import { + type TuiControlValueTransformer, + type TuiDay, + type TuiDayRange, + type TuiTime, +} from '@taiga-ui/cdk'; // TODO: Refactor to use `AbstractTuiValueTransformer` and add ability to provide it for all controls diff --git a/projects/kit/tokens/i18n.ts b/projects/kit/tokens/i18n.ts index dadb876c02a7..42bd63ccf67f 100644 --- a/projects/kit/tokens/i18n.ts +++ b/projects/kit/tokens/i18n.ts @@ -1,6 +1,6 @@ -import {tuiCreateTokenFromFactory, TuiDateMode} from '@taiga-ui/cdk'; -import {TuiCountryIsoCode, tuiExtractI18n} from '@taiga-ui/i18n'; -import {Observable} from 'rxjs'; +import {tuiCreateTokenFromFactory, type TuiDateMode} from '@taiga-ui/cdk'; +import {type TuiCountryIsoCode, tuiExtractI18n} from '@taiga-ui/i18n'; +import {type Observable} from 'rxjs'; export const TUI_PROMPT_WORDS = tuiCreateTokenFromFactory(tuiExtractI18n('prompt')); diff --git a/projects/kit/tokens/input-date-options.ts b/projects/kit/tokens/input-date-options.ts index 8b8f26383270..8a7a691970f2 100644 --- a/projects/kit/tokens/input-date-options.ts +++ b/projects/kit/tokens/input-date-options.ts @@ -1,14 +1,14 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import { TUI_FIRST_DAY, TUI_LAST_DAY, - TuiContext, + type TuiContext, tuiCreateToken, - TuiDay, + type TuiDay, tuiProvideOptions, } from '@taiga-ui/cdk'; -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiInputDateOptions { readonly icon: PolymorpheusContent>; diff --git a/projects/kit/tokens/items-handlers.ts b/projects/kit/tokens/items-handlers.ts index 5013f68d623d..27a7be939c69 100644 --- a/projects/kit/tokens/items-handlers.ts +++ b/projects/kit/tokens/items-handlers.ts @@ -1,13 +1,13 @@ -import {Provider} from '@angular/core'; +import {type Provider} from '@angular/core'; import { ALWAYS_FALSE_HANDLER, TUI_DEFAULT_IDENTITY_MATCHER, TUI_DEFAULT_STRINGIFY, - TuiBooleanHandler, + type TuiBooleanHandler, tuiCreateToken, - TuiIdentityMatcher, + type TuiIdentityMatcher, tuiProvideOptions, - TuiStringHandler, + type TuiStringHandler, } from '@taiga-ui/cdk'; export interface TuiItemsHandlers { diff --git a/projects/kit/tokens/mobile-calendar.ts b/projects/kit/tokens/mobile-calendar.ts index 6d5551fd3069..76d5c07378e8 100644 --- a/projects/kit/tokens/mobile-calendar.ts +++ b/projects/kit/tokens/mobile-calendar.ts @@ -1,4 +1,4 @@ -import {InjectionToken, Type} from '@angular/core'; +import {InjectionToken, type Type} from '@angular/core'; /** * A component for mobile data picker diff --git a/projects/kit/tokens/month-formatter.ts b/projects/kit/tokens/month-formatter.ts index 19b57c1c9c55..457cbe29f0ec 100644 --- a/projects/kit/tokens/month-formatter.ts +++ b/projects/kit/tokens/month-formatter.ts @@ -1,6 +1,6 @@ import {InjectionToken} from '@angular/core'; -import {TuiHandler, TuiMonth} from '@taiga-ui/cdk'; -import {Observable} from 'rxjs'; +import {type TuiHandler, type TuiMonth} from '@taiga-ui/cdk'; +import {type Observable} from 'rxjs'; /** * A function to get localized formatted month diff --git a/projects/kit/tokens/validation-errors.ts b/projects/kit/tokens/validation-errors.ts index d3542c59a1c7..4d466b9548d1 100644 --- a/projects/kit/tokens/validation-errors.ts +++ b/projects/kit/tokens/validation-errors.ts @@ -1,6 +1,6 @@ import {tuiCreateToken} from '@taiga-ui/cdk'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {Observable} from 'rxjs'; +import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {type Observable} from 'rxjs'; /** * Validation errors diff --git a/projects/kit/types/test/key-steps.spec.ts b/projects/kit/types/test/key-steps.spec.ts index 15dd7dc55f7d..6a1d63be68e8 100644 --- a/projects/kit/types/test/key-steps.spec.ts +++ b/projects/kit/types/test/key-steps.spec.ts @@ -1,4 +1,4 @@ -import {TuiKeySteps} from '@taiga-ui/kit'; +import {type TuiKeySteps} from '@taiga-ui/kit'; describe('TuiKeySteps type', () => { /** diff --git a/projects/kit/utils/date/update.ts b/projects/kit/utils/date/update.ts index 2d5e1a989b91..1054cb3c4ee3 100644 --- a/projects/kit/utils/date/update.ts +++ b/projects/kit/utils/date/update.ts @@ -1,4 +1,4 @@ -import {TuiDay} from '@taiga-ui/cdk'; +import {type TuiDay} from '@taiga-ui/cdk'; export function tuiImmutableUpdateInputDateMulti( days: readonly TuiDay[] | null = [], diff --git a/projects/kit/utils/math/horizontal-direction-to-number.ts b/projects/kit/utils/math/horizontal-direction-to-number.ts index f39ec51766e5..74d0cfc0e780 100644 --- a/projects/kit/utils/math/horizontal-direction-to-number.ts +++ b/projects/kit/utils/math/horizontal-direction-to-number.ts @@ -1,4 +1,4 @@ -import {TuiHorizontalDirection} from '@taiga-ui/core'; +import {type TuiHorizontalDirection} from '@taiga-ui/core'; /** * @internal diff --git a/projects/kit/utils/math/key-steps.ts b/projects/kit/utils/math/key-steps.ts index 196febcde67c..15395da2022c 100644 --- a/projects/kit/utils/math/key-steps.ts +++ b/projects/kit/utils/math/key-steps.ts @@ -1,6 +1,6 @@ import {tuiRound} from '@taiga-ui/cdk'; import {TUI_FLOATING_PRECISION} from '@taiga-ui/kit/constants'; -import {TuiKeySteps} from '@taiga-ui/kit/types'; +import {type TuiKeySteps} from '@taiga-ui/kit/types'; function tuiFindKeyStepsBoundariesByFn( keySteps: TuiKeySteps, diff --git a/projects/kit/utils/math/test/key-steps.spec.ts b/projects/kit/utils/math/test/key-steps.spec.ts index d426a1fe5f11..756bbc658382 100644 --- a/projects/kit/utils/math/test/key-steps.spec.ts +++ b/projects/kit/utils/math/test/key-steps.spec.ts @@ -1,5 +1,5 @@ import { - TuiKeySteps, + type TuiKeySteps, tuiKeyStepValueToPercentage, tuiPercentageToKeyStepValue, } from '@taiga-ui/kit'; diff --git a/projects/kit/utils/miscellaneous/replay-control-value-changes-factory.ts b/projects/kit/utils/miscellaneous/replay-control-value-changes-factory.ts index 319414d47414..9ad4b8cf14dd 100644 --- a/projects/kit/utils/miscellaneous/replay-control-value-changes-factory.ts +++ b/projects/kit/utils/miscellaneous/replay-control-value-changes-factory.ts @@ -1,12 +1,12 @@ -import {NgControl} from '@angular/forms'; +import {type NgControl} from '@angular/forms'; import { tuiControlValue, - TuiControlValueTransformer, - TuiDay, - TuiDayRange, - TuiTime, + type TuiControlValueTransformer, + type TuiDay, + type TuiDayRange, + type TuiTime, } from '@taiga-ui/cdk'; -import {map, Observable, of} from 'rxjs'; +import {map, type Observable, of} from 'rxjs'; /** * @internal diff --git a/projects/kit/utils/phone/get-max-allowed-phone-length.ts b/projects/kit/utils/phone/get-max-allowed-phone-length.ts index 0d44dc5f50ad..a2ff861e94ac 100644 --- a/projects/kit/utils/phone/get-max-allowed-phone-length.ts +++ b/projects/kit/utils/phone/get-max-allowed-phone-length.ts @@ -1,4 +1,4 @@ -import {TuiCountryIsoCode} from '@taiga-ui/i18n'; +import {type TuiCountryIsoCode} from '@taiga-ui/i18n'; export function tuiGetMaxAllowedPhoneLength( countries: Record, diff --git a/projects/kit/utils/phone/iso-to-country-code.ts b/projects/kit/utils/phone/iso-to-country-code.ts index 359c7efa7cf4..e8bdbf4c07bd 100644 --- a/projects/kit/utils/phone/iso-to-country-code.ts +++ b/projects/kit/utils/phone/iso-to-country-code.ts @@ -1,4 +1,4 @@ -import {TuiCountryIsoCode} from '@taiga-ui/i18n'; +import {type TuiCountryIsoCode} from '@taiga-ui/i18n'; import {MASK_AFTER_CODE_REGEXP} from '@taiga-ui/kit/constants'; export function tuiIsoToCountryCode( diff --git a/projects/testing/core/island.harness.ts b/projects/testing/core/island.harness.ts index 0bd7a49f04ba..12ca4ded9754 100644 --- a/projects/testing/core/island.harness.ts +++ b/projects/testing/core/island.harness.ts @@ -1,4 +1,4 @@ -import {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; import {TuiComponentHarness} from '@taiga-ui/testing/utils'; export class TuiIslandHarness extends TuiComponentHarness { diff --git a/projects/testing/core/primitive-calender.harness.ts b/projects/testing/core/primitive-calender.harness.ts index 00c6c00c67c6..ceef42cc6c3d 100644 --- a/projects/testing/core/primitive-calender.harness.ts +++ b/projects/testing/core/primitive-calender.harness.ts @@ -1,5 +1,5 @@ import { - BaseHarnessFilters, + type BaseHarnessFilters, ComponentHarness, HarnessPredicate, } from '@angular/cdk/testing'; diff --git a/projects/testing/core/primitive-year-picker.harness.ts b/projects/testing/core/primitive-year-picker.harness.ts index 72ea97cca103..6f60f88b57fc 100644 --- a/projects/testing/core/primitive-year-picker.harness.ts +++ b/projects/testing/core/primitive-year-picker.harness.ts @@ -1,5 +1,5 @@ import { - BaseHarnessFilters, + type BaseHarnessFilters, ComponentHarness, HarnessPredicate, } from '@angular/cdk/testing'; diff --git a/projects/testing/core/tag.harness.ts b/projects/testing/core/tag.harness.ts index dbfe7eebc769..676a96e2e896 100644 --- a/projects/testing/core/tag.harness.ts +++ b/projects/testing/core/tag.harness.ts @@ -1,4 +1,4 @@ -import {TestElement, TestKey} from '@angular/cdk/testing'; +import {type TestElement, TestKey} from '@angular/cdk/testing'; import {TuiComponentHarness} from '@taiga-ui/testing/utils'; import {TuiSvgHarness} from './svg.harness'; diff --git a/projects/testing/mocks/sanitizer.ts b/projects/testing/mocks/sanitizer.ts index bab5421571e9..eba3d25d8872 100644 --- a/projects/testing/mocks/sanitizer.ts +++ b/projects/testing/mocks/sanitizer.ts @@ -1,4 +1,4 @@ -import {SecurityContext} from '@angular/core'; +import {type SecurityContext} from '@angular/core'; import {TUI_SANITIZER} from '@taiga-ui/core'; export const TUI_SANITIZER_MOCK = { diff --git a/projects/testing/utils/active-element.ts b/projects/testing/utils/active-element.ts index 78a21c9529d4..23b8ee175892 100644 --- a/projects/testing/utils/active-element.ts +++ b/projects/testing/utils/active-element.ts @@ -1,4 +1,4 @@ -import {ComponentFixture} from '@angular/core/testing'; +import {type ComponentFixture} from '@angular/core/testing'; import {tuiCreateKeyboardEvent} from './keyboard-event'; diff --git a/projects/testing/utils/configure-test-suite.ts b/projects/testing/utils/configure-test-suite.ts index 12c6393c7b3e..8b9bfc10d3e2 100644 --- a/projects/testing/utils/configure-test-suite.ts +++ b/projects/testing/utils/configure-test-suite.ts @@ -1,4 +1,4 @@ -import {ComponentFixture, getTestBed, TestBed} from '@angular/core/testing'; +import {type ComponentFixture, getTestBed, TestBed} from '@angular/core/testing'; /** deprecated, will be removed in 4.0 */ export const configureTestSuite = (configureModule?: () => void): void => { diff --git a/projects/testing/utils/helpers.ts b/projects/testing/utils/helpers.ts index 9fd6826d2614..cd31dc64388d 100644 --- a/projects/testing/utils/helpers.ts +++ b/projects/testing/utils/helpers.ts @@ -1,7 +1,7 @@ import { - BaseHarnessFilters, + type BaseHarnessFilters, ComponentHarness, - ComponentHarnessConstructor, + type ComponentHarnessConstructor, ContentContainerComponentHarness, HarnessPredicate, } from '@angular/cdk/testing'; diff --git a/projects/testing/utils/input/cleaner.unit-common.ts b/projects/testing/utils/input/cleaner.unit-common.ts index c0f0335538ac..aab0266f0b98 100644 --- a/projects/testing/utils/input/cleaner.unit-common.ts +++ b/projects/testing/utils/input/cleaner.unit-common.ts @@ -1,11 +1,11 @@ /// -import {DebugElement} from '@angular/core'; -import {ComponentFixture} from '@angular/core/testing'; -import {FormControl} from '@angular/forms'; +import {type DebugElement} from '@angular/core'; +import {type ComponentFixture} from '@angular/core/testing'; +import {type FormControl} from '@angular/forms'; -import {TuiNativeInputPO} from '../native-input.page-object'; -import {TuiPageObject} from '../page-object'; +import {type TuiNativeInputPO} from '../native-input.page-object'; +import {type TuiPageObject} from '../page-object'; interface TestParams { fixture: ComponentFixture; diff --git a/projects/testing/utils/input/filler.unit-common.ts b/projects/testing/utils/input/filler.unit-common.ts index 7588da270f34..6e7fda314a99 100644 --- a/projects/testing/utils/input/filler.unit-common.ts +++ b/projects/testing/utils/input/filler.unit-common.ts @@ -1,9 +1,9 @@ -import {DebugElement} from '@angular/core'; -import {ComponentFixture} from '@angular/core/testing'; -import {FormControl} from '@angular/forms'; +import {type DebugElement} from '@angular/core'; +import {type ComponentFixture} from '@angular/core/testing'; +import {type FormControl} from '@angular/forms'; -import {TuiNativeInputPO} from '../native-input.page-object'; -import {TuiPageObject} from '../page-object'; +import {type TuiNativeInputPO} from '../native-input.page-object'; +import {type TuiPageObject} from '../page-object'; interface TestParams { fixture: ComponentFixture; diff --git a/projects/testing/utils/input/form-control-state.unit-common.ts b/projects/testing/utils/input/form-control-state.unit-common.ts index a72376eb3bab..b151e359cd0d 100644 --- a/projects/testing/utils/input/form-control-state.unit-common.ts +++ b/projects/testing/utils/input/form-control-state.unit-common.ts @@ -1,7 +1,7 @@ -import {ComponentFixture} from '@angular/core/testing'; -import {FormControl} from '@angular/forms'; +import {type ComponentFixture} from '@angular/core/testing'; +import {type FormControl} from '@angular/forms'; -import {TuiNativeInputPO} from '../native-input.page-object'; +import {type TuiNativeInputPO} from '../native-input.page-object'; interface TestParams { fixture: ComponentFixture; diff --git a/projects/testing/utils/input/placeholder.unit-common.ts b/projects/testing/utils/input/placeholder.unit-common.ts index 2a58b1713704..178d5ce97b1c 100644 --- a/projects/testing/utils/input/placeholder.unit-common.ts +++ b/projects/testing/utils/input/placeholder.unit-common.ts @@ -1,8 +1,8 @@ -import {DebugElement} from '@angular/core'; -import {ComponentFixture} from '@angular/core/testing'; -import {FormControl} from '@angular/forms'; +import {type DebugElement} from '@angular/core'; +import {type ComponentFixture} from '@angular/core/testing'; +import {type FormControl} from '@angular/forms'; -import {TuiPageObject} from '../page-object'; +import {type TuiPageObject} from '../page-object'; interface TestParams { fixture: ComponentFixture; diff --git a/projects/testing/utils/input/tooltip.unit-common.ts b/projects/testing/utils/input/tooltip.unit-common.ts index 37694ecf4374..6425f9592925 100644 --- a/projects/testing/utils/input/tooltip.unit-common.ts +++ b/projects/testing/utils/input/tooltip.unit-common.ts @@ -1,8 +1,8 @@ -import {DebugElement} from '@angular/core'; -import {ComponentFixture} from '@angular/core/testing'; -import {FormControl} from '@angular/forms'; +import {type DebugElement} from '@angular/core'; +import {type ComponentFixture} from '@angular/core/testing'; +import {type FormControl} from '@angular/forms'; -import {TuiPageObject} from '../page-object'; +import {type TuiPageObject} from '../page-object'; interface TestParams { fixture: ComponentFixture; diff --git a/projects/testing/utils/native-input.page-object.ts b/projects/testing/utils/native-input.page-object.ts index cde6aa8c73b9..ab293807f296 100644 --- a/projects/testing/utils/native-input.page-object.ts +++ b/projects/testing/utils/native-input.page-object.ts @@ -1,5 +1,5 @@ -import {DebugElement} from '@angular/core'; -import {ComponentFixture} from '@angular/core/testing'; +import {type DebugElement} from '@angular/core'; +import {type ComponentFixture} from '@angular/core/testing'; import {tuiCreateKeyboardEvent} from './keyboard-event'; import {TuiPageObject} from './page-object'; diff --git a/projects/testing/utils/page-object.ts b/projects/testing/utils/page-object.ts index dea3297c8741..a73535be4a6d 100644 --- a/projects/testing/utils/page-object.ts +++ b/projects/testing/utils/page-object.ts @@ -1,5 +1,5 @@ -import {DebugElement, Predicate} from '@angular/core'; -import {ComponentFixture} from '@angular/core/testing'; +import {type DebugElement, type Predicate} from '@angular/core'; +import {type ComponentFixture} from '@angular/core/testing'; export class TuiPageObject { constructor(protected fixture: ComponentFixture) {} diff --git a/scripts/compile-icons.ts b/scripts/compile-icons.ts index cd02888f85a3..45091ae316c1 100644 --- a/scripts/compile-icons.ts +++ b/scripts/compile-icons.ts @@ -1,6 +1,6 @@ import {readdirSync, unlinkSync} from 'fs'; import * as path from 'path'; -import {Config} from 'prettier'; +import {type Config} from 'prettier'; import { tuiConvertAllCompileFileToAllFile, diff --git a/scripts/release.ts b/scripts/release.ts index d1f43a071e34..166e42ae66ed 100644 --- a/scripts/release.ts +++ b/scripts/release.ts @@ -5,7 +5,7 @@ import {bumpVersion} from './shared/bump-version'; import {checkChangelogBeforePush} from './shared/check-changelog-before-push'; import {gitCommitAndPush} from './shared/git-commit-and-push'; import {makeReleaseBranch} from './shared/make-release-branch'; -import {TuiReleaseMode} from './shared/release-mode'; +import {type TuiReleaseMode} from './shared/release-mode'; import {runStandardVersion} from './shared/run-standard-version'; const ci = hasFlag('--ci-mode'); diff --git a/scripts/shared/bump-version.ts b/scripts/shared/bump-version.ts index 9f0255aeef6c..4a7ae8ed5ea3 100644 --- a/scripts/shared/bump-version.ts +++ b/scripts/shared/bump-version.ts @@ -1,4 +1,4 @@ -import {TuiReleaseMode} from './release-mode'; +import {type TuiReleaseMode} from './release-mode'; export function bumpVersion(version: string, mode: TuiReleaseMode): string { let [major, minor, patch, , rc = -1] = version diff --git a/scripts/shared/execute.ts b/scripts/shared/execute.ts index bea4a538988f..7e65d6a7e6a4 100644 --- a/scripts/shared/execute.ts +++ b/scripts/shared/execute.ts @@ -1,4 +1,4 @@ -import {CommonExecOptions, execSync} from 'child_process'; +import {type CommonExecOptions, execSync} from 'child_process'; import {infoLog} from '../../projects/cdk/schematics/utils/colored-log'; diff --git a/scripts/shared/run-standard-version.ts b/scripts/shared/run-standard-version.ts index a544aca0acd4..124ba8461f27 100644 --- a/scripts/shared/run-standard-version.ts +++ b/scripts/shared/run-standard-version.ts @@ -1,5 +1,5 @@ import {execute} from './execute'; -import {TuiReleaseMode} from './release-mode'; +import {type TuiReleaseMode} from './release-mode'; export function runStandardVersion( version: string, From edb364d0a9e968ad87b5b1040558000100aa0121 Mon Sep 17 00:00:00 2001 From: splincode Date: Mon, 4 Mar 2024 18:47:28 +0300 Subject: [PATCH 2/2] chore: fix demo --- package-lock.json | 8 ++++---- package.json | 12 +----------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6fdcdcc23aff..cdb29d5a31bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "@taiga-ui/browserslist-config": "0.6.0", "@taiga-ui/commitlint-config": "0.7.1", "@taiga-ui/cspell-config": "0.36.0", - "@taiga-ui/eslint-plugin-experience": "0.63.0", + "@taiga-ui/eslint-plugin-experience": "0.64.0", "@taiga-ui/prettier-config": "0.10.0", "@taiga-ui/stylelint-config": "0.20.0", "@taiga-ui/tsconfig": "0.17.0", @@ -9970,9 +9970,9 @@ "link": true }, "node_modules/@taiga-ui/eslint-plugin-experience": { - "version": "0.63.0", - "resolved": "https://registry.npmjs.org/@taiga-ui/eslint-plugin-experience/-/eslint-plugin-experience-0.63.0.tgz", - "integrity": "sha512-oSyVUfVySzBZImpq6ihpJ1GohAY5DLdfh7Ds9fT4RhZb+FzGhH8Fh/b/MKHzNODiSyNsmg29pS+vSjAjK2WViQ==", + "version": "0.64.0", + "resolved": "https://registry.npmjs.org/@taiga-ui/eslint-plugin-experience/-/eslint-plugin-experience-0.64.0.tgz", + "integrity": "sha512-D3LK0pH7qL0iy3QNyjw3Yohh3NKPvDD5ed4L/R3dTf9f6JAf53k0OSYKgdZbDQSElFqH8eXmvFIO9FoMguAaOg==", "dev": true, "peerDependencies": { "@angular-eslint/eslint-plugin": "^17.2.1", diff --git a/package.json b/package.json index 8ee49720cfd5..2b4b936f720f 100644 --- a/package.json +++ b/package.json @@ -80,16 +80,6 @@ "plugin:@taiga-ui/experience/all", "plugin:@taiga-ui/experience/taiga-naming" ], - "rules": { - "@typescript-eslint/consistent-type-imports": [ - "error", - { - "prefer": "type-imports", - "disallowTypeAnnotations": false, - "fixStyle": "inline-type-imports" - } - ] - }, "root": true }, "stylelint": { @@ -126,7 +116,7 @@ "@taiga-ui/browserslist-config": "0.6.0", "@taiga-ui/commitlint-config": "0.7.1", "@taiga-ui/cspell-config": "0.36.0", - "@taiga-ui/eslint-plugin-experience": "0.63.0", + "@taiga-ui/eslint-plugin-experience": "0.64.0", "@taiga-ui/prettier-config": "0.10.0", "@taiga-ui/stylelint-config": "0.20.0", "@taiga-ui/tsconfig": "0.17.0",