From 45964512d2d803a80eafd1a018bfa623c57da927 Mon Sep 17 00:00:00 2001 From: null Date: Wed, 6 Mar 2024 12:38:18 +0000 Subject: [PATCH 1/2] chore(deps): update dependency @taiga-ui/eslint-plugin-experience to v0.65.0 --- package-lock.json | 26 +++++++++++++------------- package.json | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index f1a535cb9..45b4980f3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,7 +26,7 @@ "@nx/workspace": "17.3.0", "@taiga-ui/commitlint-config": "0.7.1", "@taiga-ui/cspell-config": "0.36.0", - "@taiga-ui/eslint-plugin-experience": "0.64.0", + "@taiga-ui/eslint-plugin-experience": "0.65.0", "@taiga-ui/prettier-config": "0.10.0", "@taiga-ui/stylelint-config": "0.20.0", "@taiga-ui/tsconfig": "0.17.0", @@ -5280,9 +5280,9 @@ "peer": true }, "node_modules/@cspell/dict-ru_ru": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@cspell/dict-ru_ru/-/dict-ru_ru-2.2.0.tgz", - "integrity": "sha512-RpEYhY+GbD6TL26y1YC8sPdxpxuCFuzkqfILOtaflL0EFFZRODbvtXW7umjP6QjfxbLSbyMWCTnkZCZzFFFnTw==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@cspell/dict-ru_ru/-/dict-ru_ru-2.2.1.tgz", + "integrity": "sha512-05pgxSNR13/zWIhGxXS/HpFmfjnorlNB6YIxOVLh82/JWqIPKYPDKUOnEQt212ohtZqoVimUOxaOR2d7wyy7og==", "dev": true, "peer": true }, @@ -11194,9 +11194,9 @@ } }, "node_modules/@taiga-ui/eslint-plugin-experience": { - "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==", + "version": "0.65.0", + "resolved": "https://registry.npmjs.org/@taiga-ui/eslint-plugin-experience/-/eslint-plugin-experience-0.65.0.tgz", + "integrity": "sha512-UW+k8AzRT4gFYgI6pdZR2EZ2K3ZgFWHDUQHVv6d362/ghAZSS0l5E7vYs797Ozy4cN+Lz+b+uqAF3TYE0+yHlQ==", "dev": true, "peerDependencies": { "@angular-eslint/eslint-plugin": "^17.2.1", @@ -45382,9 +45382,9 @@ } }, "node_modules/terser-webpack-plugin/node_modules/terser": { - "version": "5.28.1", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.28.1.tgz", - "integrity": "sha512-wM+bZp54v/E9eRRGXb5ZFDvinrJIOaTapx3WUokyVGZu5ucVCK55zEgGd5Dl2fSr3jUo5sDiERErUWLY6QPFyA==", + "version": "5.29.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.29.0.tgz", + "integrity": "sha512-RXY80V6CBOVdZhyVwqsUHxOGcdFYSU1pCHTEF9UcQ2OWsacZiSyykd7CfAKfZFI6yfbRntv9EaoMW2TQNpyXjg==", "dev": true, "dependencies": { "@jridgewell/source-map": "^0.3.3", @@ -47607,9 +47607,9 @@ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" }, "node_modules/yaml": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.0.tgz", - "integrity": "sha512-j9iR8g+/t0lArF4V6NE/QCfT+CO7iLqrXAHZbJdo+LfjqP1vR8Fg5bSiaq6Q2lOD1AUEVrEVIgABvBFYojJVYQ==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.1.tgz", + "integrity": "sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==", "dev": true, "peer": true, "bin": { diff --git a/package.json b/package.json index 36e47fde8..6edaa6375 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ "@nx/workspace": "17.3.0", "@taiga-ui/commitlint-config": "0.7.1", "@taiga-ui/cspell-config": "0.36.0", - "@taiga-ui/eslint-plugin-experience": "0.64.0", + "@taiga-ui/eslint-plugin-experience": "0.65.0", "@taiga-ui/prettier-config": "0.10.0", "@taiga-ui/stylelint-config": "0.20.0", "@taiga-ui/tsconfig": "0.17.0", From 2a4b24669624f2e771e71eb09c5c1c03ec4de6cc Mon Sep 17 00:00:00 2001 From: taiga-family-bot Date: Wed, 6 Mar 2024 12:40:36 +0000 Subject: [PATCH 2/2] chore: apply changes after linting [bot] --- projects/angular/src/lib/deprecated.ts | 2 +- projects/angular/src/lib/maskito.directive.ts | 14 +++----------- projects/angular/src/lib/maskito.pipe.ts | 6 ++++-- projects/angular/src/lib/maskito.spec.ts | 5 +++-- .../core/src/lib/classes/mask-model/mask-model.ts | 2 +- .../tests/mask-model-fixed-characters.spec.ts | 2 +- .../mask-model/utils/apply-overwrite-mode.ts | 2 +- .../mask-model/utils/calibrate-value-by-mask.ts | 2 +- .../utils/get-leading-fixed-characters.ts | 2 +- .../utils/guess-valid-value-by-pattern.ts | 2 +- .../utils/guess-valid-value-by-reg-exp.ts | 2 +- .../utils/remove-fixed-mask-characters.ts | 2 +- .../mask-model/utils/validate-value-with-mask.ts | 2 +- .../src/lib/constants/default-element-predicate.ts | 2 +- projects/core/src/lib/constants/default-options.ts | 2 +- projects/core/src/lib/mask.ts | 7 ++++++- projects/core/src/lib/types/element-state.ts | 2 +- projects/core/src/lib/types/mask-options.ts | 8 ++++---- projects/core/src/lib/types/mask-processors.ts | 2 +- projects/core/src/lib/types/mask.ts | 2 +- projects/core/src/lib/types/plugin.ts | 2 +- projects/core/src/lib/utils/dom/event-listener.ts | 2 +- projects/core/src/lib/utils/dom/update-element.ts | 2 +- .../core/src/lib/utils/element-states-equality.ts | 2 +- projects/core/src/lib/utils/get-line-selection.ts | 2 +- .../core/src/lib/utils/get-not-empty-selection.ts | 2 +- projects/core/src/lib/utils/get-word-selection.ts | 2 +- .../src/lib/utils/initial-calibration-plugin.ts | 2 +- projects/core/src/lib/utils/pipe.ts | 2 +- .../src/lib/utils/strict-composition-plugin.ts | 2 +- .../lib/utils/test/get-not-empty-selection.spec.ts | 2 +- projects/core/src/lib/utils/test/pipe.spec.ts | 2 +- projects/core/src/lib/utils/test/transform.spec.ts | 2 +- projects/core/src/lib/utils/transform.ts | 2 +- .../angular/disable-mask-on-null.cy.ts | 2 +- .../dispatch-event.cy.ts | 3 ++- .../native-maxlength-attribute.cy.ts | 2 +- .../number/postfix-with-point.cy.ts | 2 +- .../number/with-initial-value.cy.ts | 2 +- .../placeholder-dispatch-input-events.cy.ts | 2 +- .../predicate/multi-test.component.ts | 2 +- .../component-testing/predicate/predicate.cy.ts | 2 +- .../src/tests/component-testing/utils.ts | 7 ++----- projects/demo/server.ts | 3 ++- projects/demo/src/app/app.component.spec.ts | 3 ++- projects/demo/src/app/app.providers.ts | 7 ++++--- projects/demo/src/app/app.routes.ts | 3 ++- projects/demo/src/app/server-error-handler.ts | 3 ++- .../add-default-tabs-processor.ts | 4 ++-- .../cypress/examples/1-predicate/component.ts | 2 +- .../examples/2-native-max-length/component.ts | 2 +- .../3-mirrored-prefix-postfix/component.ts | 2 +- .../4-runtime-postfix-changes/component.ts | 6 ++++-- .../examples/6-multi-character-prefix/component.ts | 2 +- .../overwrite-mode/examples/dynamic/mask.ts | 2 +- .../overwrite-mode/examples/replace/mask.ts | 2 +- .../overwrite-mode/examples/shift/mask.ts | 2 +- .../overwrite-mode/overwrite-mode.component.ts | 3 ++- .../plugins/examples/1-reject/mask.ts | 2 +- .../plugins/examples/2-initial-calibration/mask.ts | 3 ++- .../plugins/examples/3-strict-composition/mask.ts | 3 ++- .../documentation/plugins/plugins.component.ts | 3 ++- .../frameworks/angular/angular-doc.component.ts | 3 ++- .../angular/examples/1-nested/component.ts | 2 +- .../pages/frameworks/react/react-doc.component.ts | 3 ++- .../date-range/date-range-mask-doc.component.ts | 12 +++++------- .../kit/date-time/date-time-mask-doc.component.ts | 12 +++++------- .../src/pages/kit/date/date-mask-doc.component.ts | 8 +++++--- .../pages/kit/number/examples/3-postfix/mask.ts | 3 ++- .../5-dynamic-decimal-zero-padding/component.ts | 2 +- .../5-dynamic-decimal-zero-padding/mask.ts | 2 +- .../pages/kit/number/number-mask-doc.component.ts | 5 +++-- .../kit/time/examples/2-twelve-hour-format/mask.ts | 3 ++- .../src/pages/kit/time/time-mask-doc.component.ts | 12 +++++------- projects/demo/src/pages/pages.ts | 2 +- .../pages/phone/examples/2-validation/component.ts | 12 ++++-------- .../phone/examples/4-lazy-metadata/component.ts | 3 ++- .../demo/src/pages/phone/phone-doc.component.ts | 6 ++++-- .../src/pages/recipes/card/card-doc.component.ts | 3 ++- .../recipes/card/examples/1-basic/component.ts | 2 +- .../recipes/phone/examples/1-us-phone/mask.ts | 2 +- .../recipes/phone/examples/2-kz-phone/mask.ts | 2 +- .../src/pages/recipes/phone/phone-doc.component.ts | 3 ++- .../placeholder/examples/1-cvc-code/mask.ts | 2 +- .../recipes/placeholder/examples/2-phone/mask.ts | 3 ++- .../recipes/placeholder/examples/3-date/mask.ts | 2 +- .../placeholder/placeholder-doc.component.ts | 3 ++- .../postfix/examples/1-pattern-mask/mask.ts | 2 +- .../postfix/examples/2-postprocessor/mask.ts | 2 +- .../pages/recipes/postfix/postfix-doc.component.ts | 3 ++- .../recipes/prefix/examples/1-pattern-mask/mask.ts | 2 +- .../prefix/examples/2-postprocessor/mask.ts | 2 +- .../pages/recipes/prefix/prefix-doc.component.ts | 3 ++- .../recipes/textarea/examples/1-latin/mask.ts | 2 +- .../recipes/textarea/textarea-doc.component.ts | 3 ++- .../stackblitz-starter.component.ts | 9 ++------- .../demo/src/pages/stackblitz/files/starter.ts | 3 ++- .../src/pages/stackblitz/stackblitz.service.ts | 10 ++++------ projects/demo/webpack.config.ts | 3 ++- .../src/lib/constants/date-segment-max-values.ts | 2 +- .../constants/default-time-segment-max-values.ts | 2 +- .../lib/constants/time-segment-value-lengths.ts | 2 +- .../src/lib/masks/date-range/date-range-mask.ts | 5 +++-- .../min-max-range-length-postprocessor.ts | 4 ++-- .../processors/swap-dates-postprocessor.ts | 2 +- .../tests/date-segments-zero-padding.spec.ts | 3 ++- .../tests/pseudo-range-separators.spec.ts | 3 ++- .../kit/src/lib/masks/date-time/date-time-mask.ts | 5 +++-- .../min-max-date-time-postprocessor.ts | 4 ++-- .../preprocessors/valid-date-time-preprocessor.ts | 2 +- .../tests/date-segments-zero-padding.spec.ts | 3 ++- .../tests/pseudo-date-end-separator.spec.ts | 3 ++- projects/kit/src/lib/masks/date/date-mask.ts | 5 +++-- .../kit/src/lib/masks/date/tests/date-mask.spec.ts | 3 ++- projects/kit/src/lib/masks/number/number-mask.ts | 3 ++- .../plugins/leading-zeroes-validation.plugin.ts | 3 ++- .../src/lib/masks/number/plugins/min-max.plugin.ts | 3 ++- .../number/plugins/not-empty-integer.plugin.ts | 3 ++- .../processors/affixes-filter-preprocessor.ts | 2 +- .../decimal-zero-padding-postprocessor.ts | 2 +- .../processors/initialization-only-preprocessor.ts | 3 ++- .../leading-zeroes-validation-postprocessor.ts | 2 +- .../number/processors/min-max-postprocessor.ts | 2 +- .../non-removable-chars-deletion-preprocessor.ts | 2 +- .../not-empty-integer-part-preprocessor.ts | 2 +- .../processors/pseudo-character-preprocessor.ts | 2 +- .../repeated-decimal-separator-preprocessor.ts | 2 +- .../processors/thousand-separator-postprocessor.ts | 2 +- .../processors/zero-precision-preprocessor.ts | 2 +- .../src/lib/masks/number/tests/number-mask.spec.ts | 3 ++- .../masks/number/utils/generate-mask-expression.ts | 2 +- .../time/processors/max-validation-preprocessor.ts | 4 ++-- projects/kit/src/lib/masks/time/time-mask.ts | 5 +++-- projects/kit/src/lib/plugins/add-on-focus.ts | 3 ++- projects/kit/src/lib/plugins/caret-guard.ts | 2 +- projects/kit/src/lib/plugins/event-handler.ts | 2 +- projects/kit/src/lib/plugins/remove-on-blur.ts | 3 ++- .../lib/processors/colon-convert-preprocessor.ts | 2 +- .../date-segments-zero-padding-postprocessor.ts | 4 ++-- .../first-date-end-separator-preprocessor.ts | 2 +- .../fullwidth-to-halfwidth-preprocessor.ts | 2 +- .../lib/processors/min-max-date-postprocessor.ts | 2 +- .../lib/processors/normalize-date-preprocessor.ts | 2 +- .../src/lib/processors/postfix-postprocessor.ts | 2 +- .../kit/src/lib/processors/prefix-postprocessor.ts | 2 +- .../tests/normalize-date-preprocessor.spec.ts | 2 +- .../processors/tests/prefix-postprocessor.spec.ts | 2 +- .../src/lib/processors/valid-date-preprocessor.ts | 2 +- .../kit/src/lib/processors/with-placeholder.ts | 3 ++- .../processors/zero-placeholders-preprocessor.ts | 2 +- projects/kit/src/lib/utils/date/append-date.ts | 2 +- .../lib/utils/date/date-segment-value-length.ts | 2 +- .../kit/src/lib/utils/date/date-to-segments.ts | 2 +- .../kit/src/lib/utils/date/parse-date-string.ts | 2 +- .../lib/utils/date/raise-segment-value-to-min.ts | 2 +- .../kit/src/lib/utils/date/segments-to-date.ts | 2 +- projects/kit/src/lib/utils/date/to-date-string.ts | 2 +- .../kit/src/lib/utils/date/validate-date-string.ts | 2 +- .../kit/src/lib/utils/time/pad-time-segments.ts | 2 +- .../kit/src/lib/utils/time/parse-time-string.ts | 2 +- projects/kit/src/lib/utils/time/to-time-string.ts | 2 +- .../kit/src/lib/utils/time/validate-time-string.ts | 2 +- .../src/lib/masks/phone/phone-mask-non-strict.ts | 6 ++++-- .../phone/src/lib/masks/phone/phone-mask-strict.ts | 11 ++++------- projects/phone/src/lib/masks/phone/phone-mask.ts | 4 ++-- .../cut-init-country-code-preprocessor.ts | 10 +++------- .../phone/processors/phone-length-postprocessor.ts | 4 ++-- .../processors/validate-phone-preprocessor.ts | 5 ++--- .../src/lib/masks/phone/tests/phone-mask.spec.ts | 3 ++- .../masks/phone/utils/cut-phone-by-valid-length.ts | 3 ++- .../lib/masks/phone/utils/generate-phone-mask.ts | 2 +- .../masks/phone/utils/get-country-from-number.ts | 3 ++- .../lib/masks/phone/utils/get-phone-template.ts | 2 +- projects/react/src/lib/useMaskito.ts | 11 ++++------- projects/vue/src/lib/maskito.ts | 10 +++------- scripts/helpers/execute.ts | 3 ++- 176 files changed, 296 insertions(+), 276 deletions(-) diff --git a/projects/angular/src/lib/deprecated.ts b/projects/angular/src/lib/deprecated.ts index 7035feaca..14f7ea0df 100644 --- a/projects/angular/src/lib/deprecated.ts +++ b/projects/angular/src/lib/deprecated.ts @@ -1,5 +1,5 @@ import {Directive, Input, NgModule} from '@angular/core'; -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {MaskitoDirective} from './maskito.directive'; import {MaskitoPipe} from './maskito.pipe'; diff --git a/projects/angular/src/lib/maskito.directive.ts b/projects/angular/src/lib/maskito.directive.ts index 23560e3f5..e3e6ab57f 100644 --- a/projects/angular/src/lib/maskito.directive.ts +++ b/projects/angular/src/lib/maskito.directive.ts @@ -1,18 +1,10 @@ -import { - Directive, - ElementRef, - inject, - Input, - NgZone, - OnChanges, - OnDestroy, -} from '@angular/core'; +import type {OnChanges, OnDestroy} from '@angular/core'; +import {Directive, ElementRef, inject, Input, NgZone} from '@angular/core'; import {DefaultValueAccessor} from '@angular/forms'; +import type {MaskitoElementPredicate, MaskitoOptions} from '@maskito/core'; import { Maskito, MASKITO_DEFAULT_ELEMENT_PREDICATE, - MaskitoElementPredicate, - MaskitoOptions, maskitoTransform, } from '@maskito/core'; diff --git a/projects/angular/src/lib/maskito.pipe.ts b/projects/angular/src/lib/maskito.pipe.ts index c62c3f6c2..ca317d60a 100644 --- a/projects/angular/src/lib/maskito.pipe.ts +++ b/projects/angular/src/lib/maskito.pipe.ts @@ -1,5 +1,7 @@ -import {Pipe, PipeTransform} from '@angular/core'; -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions, maskitoTransform} from '@maskito/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core'; @Pipe({ standalone: true, diff --git a/projects/angular/src/lib/maskito.spec.ts b/projects/angular/src/lib/maskito.spec.ts index 55460b0e2..b31b550b8 100644 --- a/projects/angular/src/lib/maskito.spec.ts +++ b/projects/angular/src/lib/maskito.spec.ts @@ -1,8 +1,9 @@ import {Component} from '@angular/core'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {MaskitoDirective, MaskitoPipe} from '@maskito/angular'; -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; describe('Maskito Angular package', () => { @Component({ diff --git a/projects/core/src/lib/classes/mask-model/mask-model.ts b/projects/core/src/lib/classes/mask-model/mask-model.ts index ffba383ca..05833fa82 100644 --- a/projects/core/src/lib/classes/mask-model/mask-model.ts +++ b/projects/core/src/lib/classes/mask-model/mask-model.ts @@ -1,4 +1,4 @@ -import { +import type { ElementState, MaskitoMaskExpression, MaskitoOptions, diff --git a/projects/core/src/lib/classes/mask-model/tests/mask-model-fixed-characters.spec.ts b/projects/core/src/lib/classes/mask-model/tests/mask-model-fixed-characters.spec.ts index 936899844..70a32ba63 100644 --- a/projects/core/src/lib/classes/mask-model/tests/mask-model-fixed-characters.spec.ts +++ b/projects/core/src/lib/classes/mask-model/tests/mask-model-fixed-characters.spec.ts @@ -1,5 +1,5 @@ import {MASKITO_DEFAULT_OPTIONS} from '../../../constants'; -import {MaskitoOptions} from '../../../types'; +import type {MaskitoOptions} from '../../../types'; import {MaskModel} from '../mask-model'; describe('MaskModel | Fixed characters', () => { diff --git a/projects/core/src/lib/classes/mask-model/utils/apply-overwrite-mode.ts b/projects/core/src/lib/classes/mask-model/utils/apply-overwrite-mode.ts index 8ccecd598..dc88542d7 100644 --- a/projects/core/src/lib/classes/mask-model/utils/apply-overwrite-mode.ts +++ b/projects/core/src/lib/classes/mask-model/utils/apply-overwrite-mode.ts @@ -1,4 +1,4 @@ -import {ElementState, MaskitoOptions} from '../../../types'; +import type {ElementState, MaskitoOptions} from '../../../types'; export function applyOverwriteMode( {value, selection}: ElementState, diff --git a/projects/core/src/lib/classes/mask-model/utils/calibrate-value-by-mask.ts b/projects/core/src/lib/classes/mask-model/utils/calibrate-value-by-mask.ts index 400903a7e..22c57669a 100644 --- a/projects/core/src/lib/classes/mask-model/utils/calibrate-value-by-mask.ts +++ b/projects/core/src/lib/classes/mask-model/utils/calibrate-value-by-mask.ts @@ -1,4 +1,4 @@ -import {ElementState, MaskitoMaskExpression} from '../../../types'; +import type {ElementState, MaskitoMaskExpression} from '../../../types'; import {guessValidValueByPattern} from './guess-valid-value-by-pattern'; import {guessValidValueByRegExp} from './guess-valid-value-by-reg-exp'; import {validateValueWithMask} from './validate-value-with-mask'; diff --git a/projects/core/src/lib/classes/mask-model/utils/get-leading-fixed-characters.ts b/projects/core/src/lib/classes/mask-model/utils/get-leading-fixed-characters.ts index 4a857e708..25c387abe 100644 --- a/projects/core/src/lib/classes/mask-model/utils/get-leading-fixed-characters.ts +++ b/projects/core/src/lib/classes/mask-model/utils/get-leading-fixed-characters.ts @@ -1,4 +1,4 @@ -import {ElementState} from '../../../types'; +import type {ElementState} from '../../../types'; import {isFixedCharacter} from './is-fixed-character'; export function getLeadingFixedCharacters( diff --git a/projects/core/src/lib/classes/mask-model/utils/guess-valid-value-by-pattern.ts b/projects/core/src/lib/classes/mask-model/utils/guess-valid-value-by-pattern.ts index 1f15c73e2..85dc38211 100644 --- a/projects/core/src/lib/classes/mask-model/utils/guess-valid-value-by-pattern.ts +++ b/projects/core/src/lib/classes/mask-model/utils/guess-valid-value-by-pattern.ts @@ -1,4 +1,4 @@ -import {ElementState} from '../../../types'; +import type {ElementState} from '../../../types'; import {getLeadingFixedCharacters} from './get-leading-fixed-characters'; import {isFixedCharacter} from './is-fixed-character'; import {validateValueWithMask} from './validate-value-with-mask'; diff --git a/projects/core/src/lib/classes/mask-model/utils/guess-valid-value-by-reg-exp.ts b/projects/core/src/lib/classes/mask-model/utils/guess-valid-value-by-reg-exp.ts index 9a5902424..169c63827 100644 --- a/projects/core/src/lib/classes/mask-model/utils/guess-valid-value-by-reg-exp.ts +++ b/projects/core/src/lib/classes/mask-model/utils/guess-valid-value-by-reg-exp.ts @@ -1,4 +1,4 @@ -import {ElementState} from '../../../types'; +import type {ElementState} from '../../../types'; export function guessValidValueByRegExp( {value, selection}: ElementState, diff --git a/projects/core/src/lib/classes/mask-model/utils/remove-fixed-mask-characters.ts b/projects/core/src/lib/classes/mask-model/utils/remove-fixed-mask-characters.ts index 58be2a0df..753e9e862 100644 --- a/projects/core/src/lib/classes/mask-model/utils/remove-fixed-mask-characters.ts +++ b/projects/core/src/lib/classes/mask-model/utils/remove-fixed-mask-characters.ts @@ -1,4 +1,4 @@ -import {ElementState, MaskitoMaskExpression} from '../../../types'; +import type {ElementState, MaskitoMaskExpression} from '../../../types'; import {isFixedCharacter} from './is-fixed-character'; export function removeFixedMaskCharacters( diff --git a/projects/core/src/lib/classes/mask-model/utils/validate-value-with-mask.ts b/projects/core/src/lib/classes/mask-model/utils/validate-value-with-mask.ts index 9537e3795..ff2ffa843 100644 --- a/projects/core/src/lib/classes/mask-model/utils/validate-value-with-mask.ts +++ b/projects/core/src/lib/classes/mask-model/utils/validate-value-with-mask.ts @@ -1,4 +1,4 @@ -import {MaskitoMaskExpression} from '../../../types'; +import type {MaskitoMaskExpression} from '../../../types'; import {isFixedCharacter} from './is-fixed-character'; export function validateValueWithMask( diff --git a/projects/core/src/lib/constants/default-element-predicate.ts b/projects/core/src/lib/constants/default-element-predicate.ts index f5ea33f65..edca6d3be 100644 --- a/projects/core/src/lib/constants/default-element-predicate.ts +++ b/projects/core/src/lib/constants/default-element-predicate.ts @@ -1,4 +1,4 @@ -import {MaskitoElementPredicate} from '../types'; +import type {MaskitoElementPredicate} from '../types'; export const MASKITO_DEFAULT_ELEMENT_PREDICATE: MaskitoElementPredicate = e => e.querySelector('input,textarea') || diff --git a/projects/core/src/lib/constants/default-options.ts b/projects/core/src/lib/constants/default-options.ts index dd3bbb156..a3cce645f 100644 --- a/projects/core/src/lib/constants/default-options.ts +++ b/projects/core/src/lib/constants/default-options.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '../types'; +import type {MaskitoOptions} from '../types'; export const MASKITO_DEFAULT_OPTIONS: Required = { mask: /^.*$/, diff --git a/projects/core/src/lib/mask.ts b/projects/core/src/lib/mask.ts index b4f711a78..d17db746c 100644 --- a/projects/core/src/lib/mask.ts +++ b/projects/core/src/lib/mask.ts @@ -1,6 +1,11 @@ import {MaskHistory, MaskModel} from './classes'; import {MASKITO_DEFAULT_OPTIONS} from './constants'; -import {ElementState, MaskitoOptions, SelectionRange, TypedInputEvent} from './types'; +import type { + ElementState, + MaskitoOptions, + SelectionRange, + TypedInputEvent, +} from './types'; import { areElementValuesEqual, EventListener, diff --git a/projects/core/src/lib/types/element-state.ts b/projects/core/src/lib/types/element-state.ts index 0a79b8032..73bb8351b 100644 --- a/projects/core/src/lib/types/element-state.ts +++ b/projects/core/src/lib/types/element-state.ts @@ -1,4 +1,4 @@ -import {SelectionRange} from './selection-range'; +import type {SelectionRange} from './selection-range'; export interface ElementState { readonly value: string; diff --git a/projects/core/src/lib/types/mask-options.ts b/projects/core/src/lib/types/mask-options.ts index 31395687b..e26568221 100644 --- a/projects/core/src/lib/types/mask-options.ts +++ b/projects/core/src/lib/types/mask-options.ts @@ -1,7 +1,7 @@ -import {ElementState} from './element-state'; -import {MaskitoMask} from './mask'; -import {MaskitoPostprocessor, MaskitoPreprocessor} from './mask-processors'; -import {MaskitoPlugin} from './plugin'; +import type {ElementState} from './element-state'; +import type {MaskitoMask} from './mask'; +import type {MaskitoPostprocessor, MaskitoPreprocessor} from './mask-processors'; +import type {MaskitoPlugin} from './plugin'; export interface MaskitoOptions { readonly mask: MaskitoMask; diff --git a/projects/core/src/lib/types/mask-processors.ts b/projects/core/src/lib/types/mask-processors.ts index a97790948..3822eae03 100644 --- a/projects/core/src/lib/types/mask-processors.ts +++ b/projects/core/src/lib/types/mask-processors.ts @@ -1,4 +1,4 @@ -import {ElementState} from './element-state'; +import type {ElementState} from './element-state'; export type MaskitoPreprocessor = ( _: { diff --git a/projects/core/src/lib/types/mask.ts b/projects/core/src/lib/types/mask.ts index 880c338e5..4a9c74a23 100644 --- a/projects/core/src/lib/types/mask.ts +++ b/projects/core/src/lib/types/mask.ts @@ -1,4 +1,4 @@ -import {ElementState} from './element-state'; +import type {ElementState} from './element-state'; export type MaskitoMaskExpression = Array | RegExp; diff --git a/projects/core/src/lib/types/plugin.ts b/projects/core/src/lib/types/plugin.ts index f52a65fdb..896b02f82 100644 --- a/projects/core/src/lib/types/plugin.ts +++ b/projects/core/src/lib/types/plugin.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from './mask-options'; +import type {MaskitoOptions} from './mask-options'; export type MaskitoPlugin = ( element: HTMLInputElement | HTMLTextAreaElement, diff --git a/projects/core/src/lib/utils/dom/event-listener.ts b/projects/core/src/lib/utils/dom/event-listener.ts index 03e10925b..485d14e48 100644 --- a/projects/core/src/lib/utils/dom/event-listener.ts +++ b/projects/core/src/lib/utils/dom/event-listener.ts @@ -1,4 +1,4 @@ -import {TypedInputEvent} from '../../types'; +import type {TypedInputEvent} from '../../types'; export class EventListener { private readonly listeners: Array<() => void> = []; diff --git a/projects/core/src/lib/utils/dom/update-element.ts b/projects/core/src/lib/utils/dom/update-element.ts index 0e8a299d0..131611e59 100644 --- a/projects/core/src/lib/utils/dom/update-element.ts +++ b/projects/core/src/lib/utils/dom/update-element.ts @@ -1,4 +1,4 @@ -import {ElementState} from '../../types'; +import type {ElementState} from '../../types'; /** * Sets value to element, and dispatches input event diff --git a/projects/core/src/lib/utils/element-states-equality.ts b/projects/core/src/lib/utils/element-states-equality.ts index d8e239488..e56be8222 100644 --- a/projects/core/src/lib/utils/element-states-equality.ts +++ b/projects/core/src/lib/utils/element-states-equality.ts @@ -1,4 +1,4 @@ -import {ElementState} from '../types'; +import type {ElementState} from '../types'; export function areElementValuesEqual( sampleState: ElementState, diff --git a/projects/core/src/lib/utils/get-line-selection.ts b/projects/core/src/lib/utils/get-line-selection.ts index ee56ff303..4388745cd 100644 --- a/projects/core/src/lib/utils/get-line-selection.ts +++ b/projects/core/src/lib/utils/get-line-selection.ts @@ -1,4 +1,4 @@ -import {ElementState, SelectionRange} from '../types'; +import type {ElementState, SelectionRange} from '../types'; export function getLineSelection( {value, selection}: ElementState, diff --git a/projects/core/src/lib/utils/get-not-empty-selection.ts b/projects/core/src/lib/utils/get-not-empty-selection.ts index 033f1145f..0fe4c5e0a 100644 --- a/projects/core/src/lib/utils/get-not-empty-selection.ts +++ b/projects/core/src/lib/utils/get-not-empty-selection.ts @@ -1,4 +1,4 @@ -import {ElementState, SelectionRange} from '../types'; +import type {ElementState, SelectionRange} from '../types'; export function getNotEmptySelection( {value, selection}: ElementState, diff --git a/projects/core/src/lib/utils/get-word-selection.ts b/projects/core/src/lib/utils/get-word-selection.ts index 22bee75e5..4d4513791 100644 --- a/projects/core/src/lib/utils/get-word-selection.ts +++ b/projects/core/src/lib/utils/get-word-selection.ts @@ -1,4 +1,4 @@ -import {ElementState, SelectionRange} from '../types'; +import type {ElementState, SelectionRange} from '../types'; const TRAILING_SPACES_REG = /\s+$/g; const LEADING_SPACES_REG = /^\s+/g; diff --git a/projects/core/src/lib/utils/initial-calibration-plugin.ts b/projects/core/src/lib/utils/initial-calibration-plugin.ts index 48e913b59..0f4851bd9 100644 --- a/projects/core/src/lib/utils/initial-calibration-plugin.ts +++ b/projects/core/src/lib/utils/initial-calibration-plugin.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions, MaskitoPlugin} from '../types'; +import type {MaskitoOptions, MaskitoPlugin} from '../types'; import {maskitoUpdateElement} from './dom/update-element'; import {maskitoTransform} from './transform'; diff --git a/projects/core/src/lib/utils/pipe.ts b/projects/core/src/lib/utils/pipe.ts index 6e3e6d09b..ca77fc832 100644 --- a/projects/core/src/lib/utils/pipe.ts +++ b/projects/core/src/lib/utils/pipe.ts @@ -1,4 +1,4 @@ -import {MaskitoPostprocessor, MaskitoPreprocessor} from '../types'; +import type {MaskitoPostprocessor, MaskitoPreprocessor} from '../types'; /** * @internal diff --git a/projects/core/src/lib/utils/strict-composition-plugin.ts b/projects/core/src/lib/utils/strict-composition-plugin.ts index 47238fde2..e2eb170a0 100644 --- a/projects/core/src/lib/utils/strict-composition-plugin.ts +++ b/projects/core/src/lib/utils/strict-composition-plugin.ts @@ -1,4 +1,4 @@ -import {ElementState, MaskitoPlugin, TypedInputEvent} from '../types'; +import type {ElementState, MaskitoPlugin, TypedInputEvent} from '../types'; import {maskitoUpdateElement} from './dom/update-element'; import {areElementStatesEqual} from './element-states-equality'; import {maskitoTransform} from './transform'; diff --git a/projects/core/src/lib/utils/test/get-not-empty-selection.spec.ts b/projects/core/src/lib/utils/test/get-not-empty-selection.spec.ts index 5388d52a5..8390cbc6b 100644 --- a/projects/core/src/lib/utils/test/get-not-empty-selection.spec.ts +++ b/projects/core/src/lib/utils/test/get-not-empty-selection.spec.ts @@ -1,4 +1,4 @@ -import {ElementState} from '../../types'; +import type {ElementState} from '../../types'; import {getNotEmptySelection} from '../get-not-empty-selection'; describe('getNotEmptySelection', () => { diff --git a/projects/core/src/lib/utils/test/pipe.spec.ts b/projects/core/src/lib/utils/test/pipe.spec.ts index 54abfcf6f..c2180995e 100644 --- a/projects/core/src/lib/utils/test/pipe.spec.ts +++ b/projects/core/src/lib/utils/test/pipe.spec.ts @@ -1,4 +1,4 @@ -import {ElementState, MaskitoPostprocessor, MaskitoPreprocessor} from '../../types'; +import type {ElementState, MaskitoPostprocessor, MaskitoPreprocessor} from '../../types'; import {maskitoPipe} from '../pipe'; describe('maskitoPipe', () => { diff --git a/projects/core/src/lib/utils/test/transform.spec.ts b/projects/core/src/lib/utils/test/transform.spec.ts index 2f681baa5..13e56929e 100644 --- a/projects/core/src/lib/utils/test/transform.spec.ts +++ b/projects/core/src/lib/utils/test/transform.spec.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '../../types'; +import type {MaskitoOptions} from '../../types'; import {maskitoTransform} from '../transform'; describe('maskitoTransform', () => { diff --git a/projects/core/src/lib/utils/transform.ts b/projects/core/src/lib/utils/transform.ts index 6771a3668..8a5dda17e 100644 --- a/projects/core/src/lib/utils/transform.ts +++ b/projects/core/src/lib/utils/transform.ts @@ -1,6 +1,6 @@ import {MaskModel} from '../classes'; import {MASKITO_DEFAULT_OPTIONS} from '../constants'; -import {ElementState, MaskitoOptions} from '../types'; +import type {ElementState, MaskitoOptions} from '../types'; import {maskitoPipe} from './pipe'; export function maskitoTransform(value: string, maskitoOptions: MaskitoOptions): string; diff --git a/projects/demo-integrations/src/tests/component-testing/angular/disable-mask-on-null.cy.ts b/projects/demo-integrations/src/tests/component-testing/angular/disable-mask-on-null.cy.ts index 249a4e22a..76bdb7064 100644 --- a/projects/demo-integrations/src/tests/component-testing/angular/disable-mask-on-null.cy.ts +++ b/projects/demo-integrations/src/tests/component-testing/angular/disable-mask-on-null.cy.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {TestInput} from '../utils'; diff --git a/projects/demo-integrations/src/tests/component-testing/initial-calibration-plugin/dispatch-event.cy.ts b/projects/demo-integrations/src/tests/component-testing/initial-calibration-plugin/dispatch-event.cy.ts index e0e4adfe5..b401311d1 100644 --- a/projects/demo-integrations/src/tests/component-testing/initial-calibration-plugin/dispatch-event.cy.ts +++ b/projects/demo-integrations/src/tests/component-testing/initial-calibration-plugin/dispatch-event.cy.ts @@ -1,4 +1,5 @@ -import {maskitoInitialCalibrationPlugin, MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {maskitoInitialCalibrationPlugin} from '@maskito/core'; import {createOutputSpy} from 'cypress/angular'; import {TestInput} from '../utils'; diff --git a/projects/demo-integrations/src/tests/component-testing/native-max-length/native-maxlength-attribute.cy.ts b/projects/demo-integrations/src/tests/component-testing/native-max-length/native-maxlength-attribute.cy.ts index 8cf4ba9da..336daebc9 100644 --- a/projects/demo-integrations/src/tests/component-testing/native-max-length/native-maxlength-attribute.cy.ts +++ b/projects/demo-integrations/src/tests/component-testing/native-max-length/native-maxlength-attribute.cy.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {maskitoNumberOptionsGenerator} from '@maskito/kit'; import {BROWSER_SUPPORTS_REAL_EVENTS} from '../../../support/constants'; diff --git a/projects/demo-integrations/src/tests/component-testing/number/postfix-with-point.cy.ts b/projects/demo-integrations/src/tests/component-testing/number/postfix-with-point.cy.ts index 7c5ae6541..8305a800e 100644 --- a/projects/demo-integrations/src/tests/component-testing/number/postfix-with-point.cy.ts +++ b/projects/demo-integrations/src/tests/component-testing/number/postfix-with-point.cy.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import { maskitoAddOnFocusPlugin, maskitoCaretGuard, diff --git a/projects/demo-integrations/src/tests/component-testing/number/with-initial-value.cy.ts b/projects/demo-integrations/src/tests/component-testing/number/with-initial-value.cy.ts index 5180a141e..84ac0175e 100644 --- a/projects/demo-integrations/src/tests/component-testing/number/with-initial-value.cy.ts +++ b/projects/demo-integrations/src/tests/component-testing/number/with-initial-value.cy.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {maskitoCaretGuard, maskitoNumberOptionsGenerator} from '@maskito/kit'; import {TestInput} from '../utils'; diff --git a/projects/demo-integrations/src/tests/component-testing/placeholder/placeholder-dispatch-input-events.cy.ts b/projects/demo-integrations/src/tests/component-testing/placeholder/placeholder-dispatch-input-events.cy.ts index f37f0d594..eba0b1582 100644 --- a/projects/demo-integrations/src/tests/component-testing/placeholder/placeholder-dispatch-input-events.cy.ts +++ b/projects/demo-integrations/src/tests/component-testing/placeholder/placeholder-dispatch-input-events.cy.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {maskitoDateOptionsGenerator, maskitoWithPlaceholder} from '@maskito/kit'; import {createOutputSpy} from 'cypress/angular'; diff --git a/projects/demo-integrations/src/tests/component-testing/predicate/multi-test.component.ts b/projects/demo-integrations/src/tests/component-testing/predicate/multi-test.component.ts index 4425211a2..8a54472a4 100644 --- a/projects/demo-integrations/src/tests/component-testing/predicate/multi-test.component.ts +++ b/projects/demo-integrations/src/tests/component-testing/predicate/multi-test.component.ts @@ -1,7 +1,7 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MaskitoDirective} from '@maskito/angular'; -import {MaskitoElementPredicate, MaskitoOptions} from '@maskito/core'; +import type {MaskitoElementPredicate, MaskitoOptions} from '@maskito/core'; @Component({ standalone: true, diff --git a/projects/demo-integrations/src/tests/component-testing/predicate/predicate.cy.ts b/projects/demo-integrations/src/tests/component-testing/predicate/predicate.cy.ts index 638081542..d1d6b9057 100644 --- a/projects/demo-integrations/src/tests/component-testing/predicate/predicate.cy.ts +++ b/projects/demo-integrations/src/tests/component-testing/predicate/predicate.cy.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {TestInput} from '../utils'; import {MultiTestInputComponent} from './multi-test.component'; diff --git a/projects/demo-integrations/src/tests/component-testing/utils.ts b/projects/demo-integrations/src/tests/component-testing/utils.ts index 28eca8fcc..0db1d13fd 100644 --- a/projects/demo-integrations/src/tests/component-testing/utils.ts +++ b/projects/demo-integrations/src/tests/component-testing/utils.ts @@ -1,10 +1,7 @@ import {Component, EventEmitter, Input, Output} from '@angular/core'; import {MaskitoDirective} from '@maskito/angular'; -import { - MASKITO_DEFAULT_ELEMENT_PREDICATE, - MaskitoElementPredicate, - MaskitoOptions, -} from '@maskito/core'; +import type {MaskitoElementPredicate, MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_ELEMENT_PREDICATE} from '@maskito/core'; @Component({ standalone: true, diff --git a/projects/demo/server.ts b/projects/demo/server.ts index 5a5dac05e..a785d5221 100644 --- a/projects/demo/server.ts +++ b/projects/demo/server.ts @@ -4,7 +4,8 @@ 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 type {Express} from 'express'; +import express from 'express'; import {existsSync} from 'fs'; import {join} from 'path'; diff --git a/projects/demo/src/app/app.component.spec.ts b/projects/demo/src/app/app.component.spec.ts index 342493442..6b6543df1 100644 --- a/projects/demo/src/app/app.component.spec.ts +++ b/projects/demo/src/app/app.component.spec.ts @@ -1,5 +1,6 @@ import {APP_BASE_HREF} from '@angular/common'; -import {ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {Router} from '@angular/router'; import {DemoPath} from '@demo/constants'; diff --git a/projects/demo/src/app/app.providers.ts b/projects/demo/src/app/app.providers.ts index 72117df64..eb16045af 100644 --- a/projects/demo/src/app/app.providers.ts +++ b/projects/demo/src/app/app.providers.ts @@ -1,6 +1,8 @@ import {isPlatformBrowser, LocationStrategy, PathLocationStrategy} from '@angular/common'; -import {inject, PLATFORM_ID, Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {inject, PLATFORM_ID} from '@angular/core'; import {DocExamplePrimaryTab} from '@demo/constants'; +import type {TuiDocSourceCodePathOptions} from '@taiga-ui/addon-doc'; import { TUI_DOC_CODE_EDITOR, TUI_DOC_DEFAULT_TABS, @@ -10,9 +12,8 @@ import { TUI_DOC_SOURCE_CODE, TUI_DOC_TITLE, tuiDocExampleOptionsProvider, - TuiDocSourceCodePathOptions, } from '@taiga-ui/addon-doc'; -import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {HIGHLIGHT_OPTIONS} from 'ngx-highlightjs'; import {DEMO_PAGES} from '../pages/pages'; diff --git a/projects/demo/src/app/app.routes.ts b/projects/demo/src/app/app.routes.ts index a806de8c9..24fd9d841 100644 --- a/projects/demo/src/app/app.routes.ts +++ b/projects/demo/src/app/app.routes.ts @@ -1,5 +1,6 @@ import {NgModule} from '@angular/core'; -import {RouterModule, Routes} from '@angular/router'; +import type {Routes} from '@angular/router'; +import {RouterModule} from '@angular/router'; import {DemoPath} from '@demo/constants'; /* eslint-disable @typescript-eslint/promise-function-async */ diff --git a/projects/demo/src/app/server-error-handler.ts b/projects/demo/src/app/server-error-handler.ts index 2045e2107..ff48b543c 100644 --- a/projects/demo/src/app/server-error-handler.ts +++ b/projects/demo/src/app/server-error-handler.ts @@ -1,4 +1,5 @@ -import {ErrorHandler, Injectable} from '@angular/core'; +import type {ErrorHandler} from '@angular/core'; +import {Injectable} from '@angular/core'; import {hasFlag} from 'scripts/helpers/argv'; // TODO diff --git a/projects/demo/src/app/utils/add-default-tabs-processor/add-default-tabs-processor.ts b/projects/demo/src/app/utils/add-default-tabs-processor/add-default-tabs-processor.ts index 20611591c..505b2dc03 100644 --- a/projects/demo/src/app/utils/add-default-tabs-processor/add-default-tabs-processor.ts +++ b/projects/demo/src/app/utils/add-default-tabs-processor/add-default-tabs-processor.ts @@ -1,6 +1,6 @@ import {DocExamplePrimaryTab} from '@demo/constants'; -import {TUI_DOC_EXAMPLE_CONTENT_PROCESSOR} from '@taiga-ui/addon-doc'; -import {TuiInjectionTokenType} from '@taiga-ui/cdk'; +import type {TUI_DOC_EXAMPLE_CONTENT_PROCESSOR} from '@taiga-ui/addon-doc'; +import type {TuiInjectionTokenType} from '@taiga-ui/cdk'; import {ANGULAR_DEFAULT_TAB} from './default-tabs/angular-default-tab'; import {JS_DEFAULT_TAB} from './default-tabs/js-default-tab'; diff --git a/projects/demo/src/pages/cypress/examples/1-predicate/component.ts b/projects/demo/src/pages/cypress/examples/1-predicate/component.ts index 8ee395cbe..a25c05034 100644 --- a/projects/demo/src/pages/cypress/examples/1-predicate/component.ts +++ b/projects/demo/src/pages/cypress/examples/1-predicate/component.ts @@ -1,7 +1,7 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MaskitoDirective} from '@maskito/angular'; -import {MaskitoElementPredicate, MaskitoOptions} from '@maskito/core'; +import type {MaskitoElementPredicate, MaskitoOptions} from '@maskito/core'; import {TuiGroupModule} from '@taiga-ui/core'; import {TuiInputModule} from '@taiga-ui/kit'; diff --git a/projects/demo/src/pages/cypress/examples/2-native-max-length/component.ts b/projects/demo/src/pages/cypress/examples/2-native-max-length/component.ts index effb0077f..63ea8ff92 100644 --- a/projects/demo/src/pages/cypress/examples/2-native-max-length/component.ts +++ b/projects/demo/src/pages/cypress/examples/2-native-max-length/component.ts @@ -1,6 +1,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {MaskitoDirective} from '@maskito/angular'; -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {maskitoNumberOptionsGenerator} from '@maskito/kit'; @Component({ diff --git a/projects/demo/src/pages/cypress/examples/3-mirrored-prefix-postfix/component.ts b/projects/demo/src/pages/cypress/examples/3-mirrored-prefix-postfix/component.ts index b62e8b9cc..3037e69f6 100644 --- a/projects/demo/src/pages/cypress/examples/3-mirrored-prefix-postfix/component.ts +++ b/projects/demo/src/pages/cypress/examples/3-mirrored-prefix-postfix/component.ts @@ -1,6 +1,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {MaskitoDirective} from '@maskito/angular'; -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {maskitoNumberOptionsGenerator} from '@maskito/kit'; @Component({ diff --git a/projects/demo/src/pages/cypress/examples/4-runtime-postfix-changes/component.ts b/projects/demo/src/pages/cypress/examples/4-runtime-postfix-changes/component.ts index cd4f35552..b749ae1e6 100644 --- a/projects/demo/src/pages/cypress/examples/4-runtime-postfix-changes/component.ts +++ b/projects/demo/src/pages/cypress/examples/4-runtime-postfix-changes/component.ts @@ -1,8 +1,10 @@ import {I18nPluralPipe} from '@angular/common'; -import {ChangeDetectionStrategy, Component, Pipe, PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {ChangeDetectionStrategy, Component, Pipe} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MaskitoDirective} from '@maskito/angular'; -import {maskitoInitialCalibrationPlugin, MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {maskitoInitialCalibrationPlugin} from '@maskito/core'; import {maskitoNumberOptionsGenerator, maskitoParseNumber} from '@maskito/kit'; @Pipe({ diff --git a/projects/demo/src/pages/cypress/examples/6-multi-character-prefix/component.ts b/projects/demo/src/pages/cypress/examples/6-multi-character-prefix/component.ts index eb3e30e97..04c34ec49 100644 --- a/projects/demo/src/pages/cypress/examples/6-multi-character-prefix/component.ts +++ b/projects/demo/src/pages/cypress/examples/6-multi-character-prefix/component.ts @@ -1,6 +1,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {MaskitoDirective} from '@maskito/angular'; -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {maskitoNumberOptionsGenerator} from '@maskito/kit'; @Component({ diff --git a/projects/demo/src/pages/documentation/overwrite-mode/examples/dynamic/mask.ts b/projects/demo/src/pages/documentation/overwrite-mode/examples/dynamic/mask.ts index 424ef5c9e..2db75cfd8 100644 --- a/projects/demo/src/pages/documentation/overwrite-mode/examples/dynamic/mask.ts +++ b/projects/demo/src/pages/documentation/overwrite-mode/examples/dynamic/mask.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; const maskitoOptions: MaskitoOptions = { mask: /^[^а-яё]+$/i, diff --git a/projects/demo/src/pages/documentation/overwrite-mode/examples/replace/mask.ts b/projects/demo/src/pages/documentation/overwrite-mode/examples/replace/mask.ts index 75376fc71..5e0f12426 100644 --- a/projects/demo/src/pages/documentation/overwrite-mode/examples/replace/mask.ts +++ b/projects/demo/src/pages/documentation/overwrite-mode/examples/replace/mask.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; const maskitoOptions: MaskitoOptions = { mask: /^\d+$/, diff --git a/projects/demo/src/pages/documentation/overwrite-mode/examples/shift/mask.ts b/projects/demo/src/pages/documentation/overwrite-mode/examples/shift/mask.ts index c95de885b..f83348f61 100644 --- a/projects/demo/src/pages/documentation/overwrite-mode/examples/shift/mask.ts +++ b/projects/demo/src/pages/documentation/overwrite-mode/examples/shift/mask.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; const maskitoOptions: MaskitoOptions = { mask: /^\d+$/, diff --git a/projects/demo/src/pages/documentation/overwrite-mode/overwrite-mode.component.ts b/projects/demo/src/pages/documentation/overwrite-mode/overwrite-mode.component.ts index 5dc692bdf..438db84b2 100644 --- a/projects/demo/src/pages/documentation/overwrite-mode/overwrite-mode.component.ts +++ b/projects/demo/src/pages/documentation/overwrite-mode/overwrite-mode.component.ts @@ -1,7 +1,8 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {RouterLink} from '@angular/router'; import {DemoPath, DocExamplePrimaryTab} from '@demo/constants'; -import {TuiAddonDocModule, TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; import {TuiLinkModule} from '@taiga-ui/core'; import {NextStepsComponent} from '../next-steps/next-steps.component'; diff --git a/projects/demo/src/pages/documentation/plugins/examples/1-reject/mask.ts b/projects/demo/src/pages/documentation/plugins/examples/1-reject/mask.ts index 492095c58..95721a76e 100644 --- a/projects/demo/src/pages/documentation/plugins/examples/1-reject/mask.ts +++ b/projects/demo/src/pages/documentation/plugins/examples/1-reject/mask.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; const maskitoOptions: MaskitoOptions = { mask: /^\d{0,3}$/, diff --git a/projects/demo/src/pages/documentation/plugins/examples/2-initial-calibration/mask.ts b/projects/demo/src/pages/documentation/plugins/examples/2-initial-calibration/mask.ts index bd9e86347..9e44df1e8 100644 --- a/projects/demo/src/pages/documentation/plugins/examples/2-initial-calibration/mask.ts +++ b/projects/demo/src/pages/documentation/plugins/examples/2-initial-calibration/mask.ts @@ -1,4 +1,5 @@ -import {maskitoInitialCalibrationPlugin, MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {maskitoInitialCalibrationPlugin} from '@maskito/core'; const maskitoOptions: MaskitoOptions = { mask: /^\d{0,3}$/, diff --git a/projects/demo/src/pages/documentation/plugins/examples/3-strict-composition/mask.ts b/projects/demo/src/pages/documentation/plugins/examples/3-strict-composition/mask.ts index 6e0baa169..872e0cb7d 100644 --- a/projects/demo/src/pages/documentation/plugins/examples/3-strict-composition/mask.ts +++ b/projects/demo/src/pages/documentation/plugins/examples/3-strict-composition/mask.ts @@ -1,4 +1,5 @@ -import {MaskitoOptions, maskitoStrictCompositionPlugin} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {maskitoStrictCompositionPlugin} from '@maskito/core'; export default { mask: /^[0-90-9]*$/, diff --git a/projects/demo/src/pages/documentation/plugins/plugins.component.ts b/projects/demo/src/pages/documentation/plugins/plugins.component.ts index c720d9eb8..a989b4f0d 100644 --- a/projects/demo/src/pages/documentation/plugins/plugins.component.ts +++ b/projects/demo/src/pages/documentation/plugins/plugins.component.ts @@ -1,7 +1,8 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {RouterLink} from '@angular/router'; import {DemoPath, DocExamplePrimaryTab} from '@demo/constants'; -import {TuiAddonDocModule, TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; import {TuiLinkModule, TuiNotificationModule} from '@taiga-ui/core'; import {NextStepsComponent} from '../next-steps/next-steps.component'; diff --git a/projects/demo/src/pages/frameworks/angular/angular-doc.component.ts b/projects/demo/src/pages/frameworks/angular/angular-doc.component.ts index dff4f0c3f..7fdf4c4ab 100644 --- a/projects/demo/src/pages/frameworks/angular/angular-doc.component.ts +++ b/projects/demo/src/pages/frameworks/angular/angular-doc.component.ts @@ -2,7 +2,8 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {RouterLink} from '@angular/router'; import {DemoPath} from '@demo/constants'; import {MaskitoDirective} from '@maskito/angular'; -import {TuiAddonDocModule, TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; import {TuiLinkModule, TuiNotificationModule} from '@taiga-ui/core'; import {NestedDocExample1} from './examples/1-nested/component'; diff --git a/projects/demo/src/pages/frameworks/angular/examples/1-nested/component.ts b/projects/demo/src/pages/frameworks/angular/examples/1-nested/component.ts index 485d9be68..15d8c82cc 100644 --- a/projects/demo/src/pages/frameworks/angular/examples/1-nested/component.ts +++ b/projects/demo/src/pages/frameworks/angular/examples/1-nested/component.ts @@ -1,7 +1,7 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MaskitoDirective} from '@maskito/angular'; -import {MaskitoElementPredicate, MaskitoOptions} from '@maskito/core'; +import type {MaskitoElementPredicate, MaskitoOptions} from '@maskito/core'; import {TuiInputModule} from '@taiga-ui/kit'; @Component({ diff --git a/projects/demo/src/pages/frameworks/react/react-doc.component.ts b/projects/demo/src/pages/frameworks/react/react-doc.component.ts index 43b6c7faa..f9078654e 100644 --- a/projects/demo/src/pages/frameworks/react/react-doc.component.ts +++ b/projects/demo/src/pages/frameworks/react/react-doc.component.ts @@ -1,7 +1,8 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {RouterLink} from '@angular/router'; import {DemoPath} from '@demo/constants'; -import {TuiAddonDocModule, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; import {TuiLinkModule, TuiNotificationModule} from '@taiga-ui/core'; import {ReactExample1} from './examples/1-use-maskito-basic-usage/example.component'; diff --git a/projects/demo/src/pages/kit/date-range/date-range-mask-doc.component.ts b/projects/demo/src/pages/kit/date-range/date-range-mask-doc.component.ts index 77da85f85..56c8b9795 100644 --- a/projects/demo/src/pages/kit/date-range/date-range-mask-doc.component.ts +++ b/projects/demo/src/pages/kit/date-range/date-range-mask-doc.component.ts @@ -2,13 +2,11 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {DocExamplePrimaryTab} from '@demo/constants'; import {MaskitoDirective} from '@maskito/angular'; -import {MaskitoOptions} from '@maskito/core'; -import { - MaskitoDateMode, - maskitoDateRangeOptionsGenerator, - MaskitoDateSegments, -} from '@maskito/kit'; -import {TuiAddonDocModule, TuiDocExample} from '@taiga-ui/addon-doc'; +import type {MaskitoOptions} from '@maskito/core'; +import type {MaskitoDateMode, MaskitoDateSegments} from '@maskito/kit'; +import {maskitoDateRangeOptionsGenerator} from '@maskito/kit'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; import {tuiPure} from '@taiga-ui/cdk'; import {TuiLinkModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiInputModule} from '@taiga-ui/kit'; diff --git a/projects/demo/src/pages/kit/date-time/date-time-mask-doc.component.ts b/projects/demo/src/pages/kit/date-time/date-time-mask-doc.component.ts index 9217505ea..bb657183d 100644 --- a/projects/demo/src/pages/kit/date-time/date-time-mask-doc.component.ts +++ b/projects/demo/src/pages/kit/date-time/date-time-mask-doc.component.ts @@ -2,13 +2,11 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {DocExamplePrimaryTab} from '@demo/constants'; import {MaskitoDirective} from '@maskito/angular'; -import {MaskitoOptions} from '@maskito/core'; -import { - MaskitoDateMode, - maskitoDateTimeOptionsGenerator, - MaskitoTimeMode, -} from '@maskito/kit'; -import {TuiAddonDocModule, TuiDocExample} from '@taiga-ui/addon-doc'; +import type {MaskitoOptions} from '@maskito/core'; +import type {MaskitoDateMode, MaskitoTimeMode} from '@maskito/kit'; +import {maskitoDateTimeOptionsGenerator} from '@maskito/kit'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; import {CHAR_NO_BREAK_SPACE, tuiPure} from '@taiga-ui/cdk'; import {TuiLinkModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiInputModule} from '@taiga-ui/kit'; diff --git a/projects/demo/src/pages/kit/date/date-mask-doc.component.ts b/projects/demo/src/pages/kit/date/date-mask-doc.component.ts index 1f4e434aa..fe409f47f 100644 --- a/projects/demo/src/pages/kit/date/date-mask-doc.component.ts +++ b/projects/demo/src/pages/kit/date/date-mask-doc.component.ts @@ -2,9 +2,11 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {DocExamplePrimaryTab} from '@demo/constants'; import {MaskitoDirective} from '@maskito/angular'; -import {MaskitoOptions} from '@maskito/core'; -import {MaskitoDateMode, maskitoDateOptionsGenerator} from '@maskito/kit'; -import {TuiAddonDocModule, TuiDocExample} from '@taiga-ui/addon-doc'; +import type {MaskitoOptions} from '@maskito/core'; +import type {MaskitoDateMode} from '@maskito/kit'; +import {maskitoDateOptionsGenerator} from '@maskito/kit'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; import {TuiLinkModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiInputModule} from '@taiga-ui/kit'; diff --git a/projects/demo/src/pages/kit/number/examples/3-postfix/mask.ts b/projects/demo/src/pages/kit/number/examples/3-postfix/mask.ts index ec6c7ec1e..474f074bb 100644 --- a/projects/demo/src/pages/kit/number/examples/3-postfix/mask.ts +++ b/projects/demo/src/pages/kit/number/examples/3-postfix/mask.ts @@ -1,4 +1,5 @@ -import {MaskitoOptions, maskitoUpdateElement} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {maskitoUpdateElement} from '@maskito/core'; import { maskitoCaretGuard, maskitoEventHandler, diff --git a/projects/demo/src/pages/kit/number/examples/5-dynamic-decimal-zero-padding/component.ts b/projects/demo/src/pages/kit/number/examples/5-dynamic-decimal-zero-padding/component.ts index 1f1f6f2af..1f63af042 100644 --- a/projects/demo/src/pages/kit/number/examples/5-dynamic-decimal-zero-padding/component.ts +++ b/projects/demo/src/pages/kit/number/examples/5-dynamic-decimal-zero-padding/component.ts @@ -7,7 +7,7 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MaskitoDirective} from '@maskito/angular'; -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {tuiPure} from '@taiga-ui/cdk'; import {TuiLabelModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiInputModule} from '@taiga-ui/kit'; diff --git a/projects/demo/src/pages/kit/number/examples/5-dynamic-decimal-zero-padding/mask.ts b/projects/demo/src/pages/kit/number/examples/5-dynamic-decimal-zero-padding/mask.ts index ce56210aa..f66e60639 100644 --- a/projects/demo/src/pages/kit/number/examples/5-dynamic-decimal-zero-padding/mask.ts +++ b/projects/demo/src/pages/kit/number/examples/5-dynamic-decimal-zero-padding/mask.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {maskitoNumberOptionsGenerator} from '@maskito/kit'; export function getMaskitoOptions(decimalZeroPadding: boolean): MaskitoOptions { diff --git a/projects/demo/src/pages/kit/number/number-mask-doc.component.ts b/projects/demo/src/pages/kit/number/number-mask-doc.component.ts index 7cedb6704..92b8559ef 100644 --- a/projects/demo/src/pages/kit/number/number-mask-doc.component.ts +++ b/projects/demo/src/pages/kit/number/number-mask-doc.component.ts @@ -2,14 +2,15 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {DocExamplePrimaryTab} from '@demo/constants'; import {MaskitoDirective} from '@maskito/angular'; -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import { maskitoAddOnFocusPlugin, maskitoCaretGuard, maskitoNumberOptionsGenerator, maskitoRemoveOnBlurPlugin, } from '@maskito/kit'; -import {TuiAddonDocModule, TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; import {TuiNotificationModule} from '@taiga-ui/core'; import {tuiInputCountOptionsProvider, TuiInputModule} from '@taiga-ui/kit'; diff --git a/projects/demo/src/pages/kit/time/examples/2-twelve-hour-format/mask.ts b/projects/demo/src/pages/kit/time/examples/2-twelve-hour-format/mask.ts index 5d3ab4d83..2eacff80b 100644 --- a/projects/demo/src/pages/kit/time/examples/2-twelve-hour-format/mask.ts +++ b/projects/demo/src/pages/kit/time/examples/2-twelve-hour-format/mask.ts @@ -1,4 +1,5 @@ -import {MaskitoOptions, maskitoUpdateElement} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {maskitoUpdateElement} from '@maskito/core'; import {maskitoEventHandler, maskitoTimeOptionsGenerator} from '@maskito/kit'; const timeOptions = maskitoTimeOptionsGenerator({ diff --git a/projects/demo/src/pages/kit/time/time-mask-doc.component.ts b/projects/demo/src/pages/kit/time/time-mask-doc.component.ts index 94049782c..bde0aff1e 100644 --- a/projects/demo/src/pages/kit/time/time-mask-doc.component.ts +++ b/projects/demo/src/pages/kit/time/time-mask-doc.component.ts @@ -2,13 +2,11 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {DocExamplePrimaryTab} from '@demo/constants'; import {MaskitoDirective} from '@maskito/angular'; -import {MaskitoOptions} from '@maskito/core'; -import { - MaskitoTimeMode, - maskitoTimeOptionsGenerator, - MaskitoTimeSegments, -} from '@maskito/kit'; -import {TuiAddonDocModule, TuiDocExample} from '@taiga-ui/addon-doc'; +import type {MaskitoOptions} from '@maskito/core'; +import type {MaskitoTimeMode, MaskitoTimeSegments} from '@maskito/kit'; +import {maskitoTimeOptionsGenerator} from '@maskito/kit'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; import {TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiInputModule} from '@taiga-ui/kit'; diff --git a/projects/demo/src/pages/pages.ts b/projects/demo/src/pages/pages.ts index 0b1fd343b..8208d557f 100644 --- a/projects/demo/src/pages/pages.ts +++ b/projects/demo/src/pages/pages.ts @@ -1,5 +1,5 @@ import {DemoPath} from '@demo/constants'; -import {TuiDocPages} from '@taiga-ui/addon-doc'; +import type {TuiDocPages} from '@taiga-ui/addon-doc'; export const DEMO_PAGES: TuiDocPages = [ { diff --git a/projects/demo/src/pages/phone/examples/2-validation/component.ts b/projects/demo/src/pages/phone/examples/2-validation/component.ts index 9e66735a5..c994a38ab 100644 --- a/projects/demo/src/pages/phone/examples/2-validation/component.ts +++ b/projects/demo/src/pages/phone/examples/2-validation/component.ts @@ -1,17 +1,13 @@ import {AsyncPipe} from '@angular/common'; import {ChangeDetectionStrategy, Component} from '@angular/core'; -import { - AbstractControl, - FormControl, - ReactiveFormsModule, - ValidationErrors, - ValidatorFn, -} from '@angular/forms'; +import type {AbstractControl, ValidationErrors, ValidatorFn} from '@angular/forms'; +import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {MaskitoDirective} from '@maskito/angular'; import {TuiValidationError} from '@taiga-ui/cdk'; import {TuiErrorModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiFieldErrorPipeModule, TuiInputModule} from '@taiga-ui/kit'; -import {CountryCode, isValidPhoneNumber} from 'libphonenumber-js/max'; +import type {CountryCode} from 'libphonenumber-js/max'; +import {isValidPhoneNumber} from 'libphonenumber-js/max'; import mask from './mask'; diff --git a/projects/demo/src/pages/phone/examples/4-lazy-metadata/component.ts b/projects/demo/src/pages/phone/examples/4-lazy-metadata/component.ts index 7043cc5ed..3a07d8ab7 100644 --- a/projects/demo/src/pages/phone/examples/4-lazy-metadata/component.ts +++ b/projects/demo/src/pages/phone/examples/4-lazy-metadata/component.ts @@ -1,4 +1,5 @@ -import {ChangeDetectionStrategy, Component, OnInit} from '@angular/core'; +import type {OnInit} from '@angular/core'; +import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MaskitoDirective} from '@maskito/angular'; import {MASKITO_DEFAULT_OPTIONS} from '@maskito/core'; diff --git a/projects/demo/src/pages/phone/phone-doc.component.ts b/projects/demo/src/pages/phone/phone-doc.component.ts index 4ddc6d9b2..d64116d39 100644 --- a/projects/demo/src/pages/phone/phone-doc.component.ts +++ b/projects/demo/src/pages/phone/phone-doc.component.ts @@ -3,11 +3,13 @@ import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {DocExamplePrimaryTab} from '@demo/constants'; import {MaskitoDirective} from '@maskito/angular'; import {maskitoPhoneOptionsGenerator} from '@maskito/phone'; -import {TuiAddonDocModule, TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; import {TUI_IS_APPLE} from '@taiga-ui/cdk'; import {TuiLinkModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiInputModule} from '@taiga-ui/kit'; -import {CountryCode, getCountries} from 'libphonenumber-js/core'; +import type {CountryCode} from 'libphonenumber-js/core'; +import {getCountries} from 'libphonenumber-js/core'; import metadata from 'libphonenumber-js/min/metadata'; import {PhoneMaskDocExample1} from './examples/1-basic/component'; diff --git a/projects/demo/src/pages/recipes/card/card-doc.component.ts b/projects/demo/src/pages/recipes/card/card-doc.component.ts index 37d6fc19e..4b5072333 100644 --- a/projects/demo/src/pages/recipes/card/card-doc.component.ts +++ b/projects/demo/src/pages/recipes/card/card-doc.component.ts @@ -1,7 +1,8 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {RouterLink} from '@angular/router'; import {DemoPath} from '@demo/constants'; -import {TuiAddonDocModule, TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; import {TuiLinkModule} from '@taiga-ui/core'; import {CardDocExample1} from './examples/1-basic/component'; diff --git a/projects/demo/src/pages/recipes/card/examples/1-basic/component.ts b/projects/demo/src/pages/recipes/card/examples/1-basic/component.ts index d627e095d..4f1f65211 100644 --- a/projects/demo/src/pages/recipes/card/examples/1-basic/component.ts +++ b/projects/demo/src/pages/recipes/card/examples/1-basic/component.ts @@ -1,7 +1,7 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'; import {MaskitoDirective} from '@maskito/angular'; -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {maskitoDateOptionsGenerator} from '@maskito/kit'; import {TuiGroupModule} from '@taiga-ui/core'; import {TuiInputModule} from '@taiga-ui/kit'; diff --git a/projects/demo/src/pages/recipes/phone/examples/1-us-phone/mask.ts b/projects/demo/src/pages/recipes/phone/examples/1-us-phone/mask.ts index 717ce3e29..d4f06384a 100644 --- a/projects/demo/src/pages/recipes/phone/examples/1-us-phone/mask.ts +++ b/projects/demo/src/pages/recipes/phone/examples/1-us-phone/mask.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; export default { mask: [ diff --git a/projects/demo/src/pages/recipes/phone/examples/2-kz-phone/mask.ts b/projects/demo/src/pages/recipes/phone/examples/2-kz-phone/mask.ts index 6fee3a1a6..a920ee16d 100644 --- a/projects/demo/src/pages/recipes/phone/examples/2-kz-phone/mask.ts +++ b/projects/demo/src/pages/recipes/phone/examples/2-kz-phone/mask.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions, MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoOptions, MaskitoPreprocessor} from '@maskito/core'; import { maskitoAddOnFocusPlugin, maskitoCaretGuard, diff --git a/projects/demo/src/pages/recipes/phone/phone-doc.component.ts b/projects/demo/src/pages/recipes/phone/phone-doc.component.ts index 0d38cc4a6..5a258ee05 100644 --- a/projects/demo/src/pages/recipes/phone/phone-doc.component.ts +++ b/projects/demo/src/pages/recipes/phone/phone-doc.component.ts @@ -1,7 +1,8 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {RouterLink} from '@angular/router'; import {DemoPath, DocExamplePrimaryTab} from '@demo/constants'; -import {TuiAddonDocModule, TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; import {TuiLinkModule} from '@taiga-ui/core'; import {PhoneUSDocExample1} from './examples/1-us-phone/component'; diff --git a/projects/demo/src/pages/recipes/placeholder/examples/1-cvc-code/mask.ts b/projects/demo/src/pages/recipes/placeholder/examples/1-cvc-code/mask.ts index cf38e3a22..4fba1e6a7 100644 --- a/projects/demo/src/pages/recipes/placeholder/examples/1-cvc-code/mask.ts +++ b/projects/demo/src/pages/recipes/placeholder/examples/1-cvc-code/mask.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {maskitoWithPlaceholder} from '@maskito/kit'; export default { diff --git a/projects/demo/src/pages/recipes/placeholder/examples/2-phone/mask.ts b/projects/demo/src/pages/recipes/placeholder/examples/2-phone/mask.ts index 1cd104fcb..eaf80fd34 100644 --- a/projects/demo/src/pages/recipes/placeholder/examples/2-phone/mask.ts +++ b/projects/demo/src/pages/recipes/placeholder/examples/2-phone/mask.ts @@ -1,4 +1,5 @@ -import {MaskitoOptions, maskitoUpdateElement} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {maskitoUpdateElement} from '@maskito/core'; import { maskitoEventHandler, maskitoPrefixPostprocessorGenerator, diff --git a/projects/demo/src/pages/recipes/placeholder/examples/3-date/mask.ts b/projects/demo/src/pages/recipes/placeholder/examples/3-date/mask.ts index 26ac37e89..04e6560ea 100644 --- a/projects/demo/src/pages/recipes/placeholder/examples/3-date/mask.ts +++ b/projects/demo/src/pages/recipes/placeholder/examples/3-date/mask.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {maskitoDateOptionsGenerator, maskitoWithPlaceholder} from '@maskito/kit'; export const PLACEHOLDER = 'dd/mm/yyyy'; diff --git a/projects/demo/src/pages/recipes/placeholder/placeholder-doc.component.ts b/projects/demo/src/pages/recipes/placeholder/placeholder-doc.component.ts index 5f3b4f7d0..8b2f011cf 100644 --- a/projects/demo/src/pages/recipes/placeholder/placeholder-doc.component.ts +++ b/projects/demo/src/pages/recipes/placeholder/placeholder-doc.component.ts @@ -1,7 +1,8 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {RouterLink} from '@angular/router'; import {DemoPath, DocExamplePrimaryTab} from '@demo/constants'; -import {TuiAddonDocModule, TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; import {TuiLinkModule} from '@taiga-ui/core'; import {PlaceholderDocExample1} from './examples/1-cvc-code/component'; diff --git a/projects/demo/src/pages/recipes/postfix/examples/1-pattern-mask/mask.ts b/projects/demo/src/pages/recipes/postfix/examples/1-pattern-mask/mask.ts index 5a7a17c22..1442c6cad 100644 --- a/projects/demo/src/pages/recipes/postfix/examples/1-pattern-mask/mask.ts +++ b/projects/demo/src/pages/recipes/postfix/examples/1-pattern-mask/mask.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; export default { mask: ({value}) => { diff --git a/projects/demo/src/pages/recipes/postfix/examples/2-postprocessor/mask.ts b/projects/demo/src/pages/recipes/postfix/examples/2-postprocessor/mask.ts index adc58c46e..f1fc3b601 100644 --- a/projects/demo/src/pages/recipes/postfix/examples/2-postprocessor/mask.ts +++ b/projects/demo/src/pages/recipes/postfix/examples/2-postprocessor/mask.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import { maskitoAddOnFocusPlugin, maskitoCaretGuard, diff --git a/projects/demo/src/pages/recipes/postfix/postfix-doc.component.ts b/projects/demo/src/pages/recipes/postfix/postfix-doc.component.ts index 9df7db303..ed4e892ec 100644 --- a/projects/demo/src/pages/recipes/postfix/postfix-doc.component.ts +++ b/projects/demo/src/pages/recipes/postfix/postfix-doc.component.ts @@ -1,7 +1,8 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {RouterLink} from '@angular/router'; import {DemoPath, DocExamplePrimaryTab} from '@demo/constants'; -import {TuiAddonDocModule, TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; import {TuiLinkModule, TuiNotificationModule} from '@taiga-ui/core'; import {PostfixDocExample1} from './examples/1-pattern-mask/component'; diff --git a/projects/demo/src/pages/recipes/prefix/examples/1-pattern-mask/mask.ts b/projects/demo/src/pages/recipes/prefix/examples/1-pattern-mask/mask.ts index 699ae5fd6..24b653f39 100644 --- a/projects/demo/src/pages/recipes/prefix/examples/1-pattern-mask/mask.ts +++ b/projects/demo/src/pages/recipes/prefix/examples/1-pattern-mask/mask.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; export default { mask: ({value}) => { diff --git a/projects/demo/src/pages/recipes/prefix/examples/2-postprocessor/mask.ts b/projects/demo/src/pages/recipes/prefix/examples/2-postprocessor/mask.ts index f76b87a80..2e01a0ee2 100644 --- a/projects/demo/src/pages/recipes/prefix/examples/2-postprocessor/mask.ts +++ b/projects/demo/src/pages/recipes/prefix/examples/2-postprocessor/mask.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import { maskitoAddOnFocusPlugin, maskitoPrefixPostprocessorGenerator, diff --git a/projects/demo/src/pages/recipes/prefix/prefix-doc.component.ts b/projects/demo/src/pages/recipes/prefix/prefix-doc.component.ts index 66b0d8496..7a9dc5c05 100644 --- a/projects/demo/src/pages/recipes/prefix/prefix-doc.component.ts +++ b/projects/demo/src/pages/recipes/prefix/prefix-doc.component.ts @@ -1,7 +1,8 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {RouterLink} from '@angular/router'; import {DemoPath, DocExamplePrimaryTab} from '@demo/constants'; -import {TuiAddonDocModule, TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; import {TuiLinkModule, TuiNotificationModule} from '@taiga-ui/core'; import {PrefixDocExample1} from './examples/1-pattern-mask/component'; diff --git a/projects/demo/src/pages/recipes/textarea/examples/1-latin/mask.ts b/projects/demo/src/pages/recipes/textarea/examples/1-latin/mask.ts index 20ae65c06..f1f5fc660 100644 --- a/projects/demo/src/pages/recipes/textarea/examples/1-latin/mask.ts +++ b/projects/demo/src/pages/recipes/textarea/examples/1-latin/mask.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; export default { mask: /^[a-z1-9\s.,/]+$/i, diff --git a/projects/demo/src/pages/recipes/textarea/textarea-doc.component.ts b/projects/demo/src/pages/recipes/textarea/textarea-doc.component.ts index 2ae333fb7..f3830c84a 100644 --- a/projects/demo/src/pages/recipes/textarea/textarea-doc.component.ts +++ b/projects/demo/src/pages/recipes/textarea/textarea-doc.component.ts @@ -1,7 +1,8 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {RouterLink} from '@angular/router'; import {DemoPath, DocExamplePrimaryTab} from '@demo/constants'; -import {TuiAddonDocModule, TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; import {TuiLinkModule} from '@taiga-ui/core'; import {TextareaDocExample1} from './examples/1-latin/component'; diff --git a/projects/demo/src/pages/stackblitz/components/stackblitz-starter/stackblitz-starter.component.ts b/projects/demo/src/pages/stackblitz/components/stackblitz-starter/stackblitz-starter.component.ts index 42a18cb3f..aeee59a01 100644 --- a/projects/demo/src/pages/stackblitz/components/stackblitz-starter/stackblitz-starter.component.ts +++ b/projects/demo/src/pages/stackblitz/components/stackblitz-starter/stackblitz-starter.component.ts @@ -1,11 +1,6 @@ import {isPlatformBrowser} from '@angular/common'; -import { - ChangeDetectionStrategy, - Component, - inject, - OnInit, - PLATFORM_ID, -} from '@angular/core'; +import type {OnInit} from '@angular/core'; +import {ChangeDetectionStrategy, Component, inject, PLATFORM_ID} from '@angular/core'; import {tuiRawLoad} from '@taiga-ui/addon-doc'; import {TuiLoaderModule} from '@taiga-ui/core'; diff --git a/projects/demo/src/pages/stackblitz/files/starter.ts b/projects/demo/src/pages/stackblitz/files/starter.ts index a698c915b..0e70d9edf 100644 --- a/projects/demo/src/pages/stackblitz/files/starter.ts +++ b/projects/demo/src/pages/stackblitz/files/starter.ts @@ -1,6 +1,7 @@ import './styles.css'; -import {Maskito, MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {Maskito} from '@maskito/core'; const maskitoOptions: MaskitoOptions = { mask: /^\d+$/, diff --git a/projects/demo/src/pages/stackblitz/stackblitz.service.ts b/projects/demo/src/pages/stackblitz/stackblitz.service.ts index 08294f818..6660dcaeb 100644 --- a/projects/demo/src/pages/stackblitz/stackblitz.service.ts +++ b/projects/demo/src/pages/stackblitz/stackblitz.service.ts @@ -1,11 +1,9 @@ import {Injectable} from '@angular/core'; import {DocExamplePrimaryTab} from '@demo/constants'; -import stackblitz, {OpenOptions, Project} from '@stackblitz/sdk'; -import { - TuiCodeEditor, - tuiRawLoad, - tuiTryParseMarkdownCodeBlock, -} from '@taiga-ui/addon-doc'; +import type {OpenOptions, Project} from '@stackblitz/sdk'; +import stackblitz from '@stackblitz/sdk'; +import type {TuiCodeEditor} from '@taiga-ui/addon-doc'; +import {tuiRawLoad, tuiTryParseMarkdownCodeBlock} from '@taiga-ui/addon-doc'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; import {StackblitzEditButtonComponent} from './components/stackblitz-edit-button/stackblitz-edit-button.component'; diff --git a/projects/demo/webpack.config.ts b/projects/demo/webpack.config.ts index 75cd1f892..d32618eae 100644 --- a/projects/demo/webpack.config.ts +++ b/projects/demo/webpack.config.ts @@ -1,4 +1,5 @@ -import {Configuration, DefinePlugin} from 'webpack'; +import type {Configuration} from 'webpack'; +import {DefinePlugin} from 'webpack'; import {merge} from 'webpack-merge'; /** diff --git a/projects/kit/src/lib/constants/date-segment-max-values.ts b/projects/kit/src/lib/constants/date-segment-max-values.ts index c9abe317d..084cd8eb1 100644 --- a/projects/kit/src/lib/constants/date-segment-max-values.ts +++ b/projects/kit/src/lib/constants/date-segment-max-values.ts @@ -1,4 +1,4 @@ -import {MaskitoDateSegments} from '../types'; +import type {MaskitoDateSegments} from '../types'; export const DATE_SEGMENTS_MAX_VALUES: MaskitoDateSegments = { day: 31, diff --git a/projects/kit/src/lib/constants/default-time-segment-max-values.ts b/projects/kit/src/lib/constants/default-time-segment-max-values.ts index 874ed55d7..dbe256c51 100644 --- a/projects/kit/src/lib/constants/default-time-segment-max-values.ts +++ b/projects/kit/src/lib/constants/default-time-segment-max-values.ts @@ -1,4 +1,4 @@ -import {MaskitoTimeSegments} from '../types'; +import type {MaskitoTimeSegments} from '../types'; export const DEFAULT_TIME_SEGMENT_MAX_VALUES: MaskitoTimeSegments = { hours: 23, diff --git a/projects/kit/src/lib/constants/time-segment-value-lengths.ts b/projects/kit/src/lib/constants/time-segment-value-lengths.ts index bc2b4541d..dfacf380a 100644 --- a/projects/kit/src/lib/constants/time-segment-value-lengths.ts +++ b/projects/kit/src/lib/constants/time-segment-value-lengths.ts @@ -1,4 +1,4 @@ -import {MaskitoTimeSegments} from '../types'; +import type {MaskitoTimeSegments} from '../types'; export const TIME_SEGMENT_VALUE_LENGTHS: MaskitoTimeSegments = { hours: 2, diff --git a/projects/kit/src/lib/masks/date-range/date-range-mask.ts b/projects/kit/src/lib/masks/date-range/date-range-mask.ts index 3c1daa362..f634a4b52 100644 --- a/projects/kit/src/lib/masks/date-range/date-range-mask.ts +++ b/projects/kit/src/lib/masks/date-range/date-range-mask.ts @@ -1,4 +1,5 @@ -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS} from '@maskito/core'; import {CHAR_EN_DASH, CHAR_NO_BREAK_SPACE} from '../../constants'; import { @@ -10,7 +11,7 @@ import { createZeroPlaceholdersPreprocessor, normalizeDatePreprocessor, } from '../../processors'; -import {MaskitoDateMode, MaskitoDateSegments} from '../../types'; +import type {MaskitoDateMode, MaskitoDateSegments} from '../../types'; import {parseDateRangeString} from '../../utils'; import {POSSIBLE_DATE_RANGE_SEPARATOR} from './constants'; import {createMinMaxRangeLengthPostprocessor} from './processors/min-max-range-length-postprocessor'; diff --git a/projects/kit/src/lib/masks/date-range/processors/min-max-range-length-postprocessor.ts b/projects/kit/src/lib/masks/date-range/processors/min-max-range-length-postprocessor.ts index 6165c7f09..2e43ed735 100644 --- a/projects/kit/src/lib/masks/date-range/processors/min-max-range-length-postprocessor.ts +++ b/projects/kit/src/lib/masks/date-range/processors/min-max-range-length-postprocessor.ts @@ -1,7 +1,7 @@ -import {MaskitoPostprocessor} from '@maskito/core'; +import type {MaskitoPostprocessor} from '@maskito/core'; import {DEFAULT_MAX_DATE} from '../../../constants'; -import {MaskitoDateSegments} from '../../../types'; +import type {MaskitoDateSegments} from '../../../types'; import { appendDate, clamp, diff --git a/projects/kit/src/lib/masks/date-range/processors/swap-dates-postprocessor.ts b/projects/kit/src/lib/masks/date-range/processors/swap-dates-postprocessor.ts index 826bb3d6c..ed4d2224c 100644 --- a/projects/kit/src/lib/masks/date-range/processors/swap-dates-postprocessor.ts +++ b/projects/kit/src/lib/masks/date-range/processors/swap-dates-postprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPostprocessor} from '@maskito/core'; +import type {MaskitoPostprocessor} from '@maskito/core'; import { isDateStringComplete, diff --git a/projects/kit/src/lib/masks/date-range/tests/date-segments-zero-padding.spec.ts b/projects/kit/src/lib/masks/date-range/tests/date-segments-zero-padding.spec.ts index bd22e8a73..54384b47d 100644 --- a/projects/kit/src/lib/masks/date-range/tests/date-segments-zero-padding.spec.ts +++ b/projects/kit/src/lib/masks/date-range/tests/date-segments-zero-padding.spec.ts @@ -1,4 +1,5 @@ -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions, maskitoTransform} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core'; import {maskitoDateRangeOptionsGenerator} from '@maskito/kit'; describe('DateRange (maskitoTransform) | Date segments zero padding', () => { diff --git a/projects/kit/src/lib/masks/date-range/tests/pseudo-range-separators.spec.ts b/projects/kit/src/lib/masks/date-range/tests/pseudo-range-separators.spec.ts index 4db67cdd9..4775fc32f 100644 --- a/projects/kit/src/lib/masks/date-range/tests/pseudo-range-separators.spec.ts +++ b/projects/kit/src/lib/masks/date-range/tests/pseudo-range-separators.spec.ts @@ -1,4 +1,5 @@ -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions, maskitoTransform} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core'; import {maskitoDateRangeOptionsGenerator} from '@maskito/kit'; import {CHAR_EM_DASH, CHAR_EN_DASH, CHAR_HYPHEN, CHAR_MINUS} from '../../../constants'; diff --git a/projects/kit/src/lib/masks/date-time/date-time-mask.ts b/projects/kit/src/lib/masks/date-time/date-time-mask.ts index 6e3cc7dfd..2452d4061 100644 --- a/projects/kit/src/lib/masks/date-time/date-time-mask.ts +++ b/projects/kit/src/lib/masks/date-time/date-time-mask.ts @@ -1,4 +1,5 @@ -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS} from '@maskito/core'; import {TIME_FIXED_CHARACTERS} from '../../constants'; import { @@ -9,7 +10,7 @@ import { createZeroPlaceholdersPreprocessor, normalizeDatePreprocessor, } from '../../processors'; -import {MaskitoDateMode, MaskitoTimeMode} from '../../types'; +import type {MaskitoDateMode, MaskitoTimeMode} from '../../types'; import {DATE_TIME_SEPARATOR, POSSIBLE_DATE_TIME_SEPARATOR} from './constants'; import {createMinMaxDateTimePostprocessor} from './postprocessors'; import {createValidDateTimePreprocessor} from './preprocessors'; diff --git a/projects/kit/src/lib/masks/date-time/postprocessors/min-max-date-time-postprocessor.ts b/projects/kit/src/lib/masks/date-time/postprocessors/min-max-date-time-postprocessor.ts index 0301018d7..379587f4a 100644 --- a/projects/kit/src/lib/masks/date-time/postprocessors/min-max-date-time-postprocessor.ts +++ b/projects/kit/src/lib/masks/date-time/postprocessors/min-max-date-time-postprocessor.ts @@ -1,7 +1,7 @@ -import {MaskitoPostprocessor} from '@maskito/core'; +import type {MaskitoPostprocessor} from '@maskito/core'; import {DEFAULT_MAX_DATE, DEFAULT_MIN_DATE} from '../../../constants'; -import {MaskitoTimeMode} from '../../../types'; +import type {MaskitoTimeMode} from '../../../types'; import { clamp, dateToSegments, diff --git a/projects/kit/src/lib/masks/date-time/preprocessors/valid-date-time-preprocessor.ts b/projects/kit/src/lib/masks/date-time/preprocessors/valid-date-time-preprocessor.ts index 097cd2504..72db0dc25 100644 --- a/projects/kit/src/lib/masks/date-time/preprocessors/valid-date-time-preprocessor.ts +++ b/projects/kit/src/lib/masks/date-time/preprocessors/valid-date-time-preprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; import {DEFAULT_TIME_SEGMENT_MAX_VALUES, TIME_FIXED_CHARACTERS} from '../../../constants'; import {escapeRegExp, validateDateString} from '../../../utils'; diff --git a/projects/kit/src/lib/masks/date-time/tests/date-segments-zero-padding.spec.ts b/projects/kit/src/lib/masks/date-time/tests/date-segments-zero-padding.spec.ts index 217bb6981..e2b9b861f 100644 --- a/projects/kit/src/lib/masks/date-time/tests/date-segments-zero-padding.spec.ts +++ b/projects/kit/src/lib/masks/date-time/tests/date-segments-zero-padding.spec.ts @@ -1,4 +1,5 @@ -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions, maskitoTransform} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core'; import {maskitoDateTimeOptionsGenerator} from '@maskito/kit'; describe('DateTime (maskitoTransform) | Date segments zero padding', () => { diff --git a/projects/kit/src/lib/masks/date-time/tests/pseudo-date-end-separator.spec.ts b/projects/kit/src/lib/masks/date-time/tests/pseudo-date-end-separator.spec.ts index 9d6803e72..80638f051 100644 --- a/projects/kit/src/lib/masks/date-time/tests/pseudo-date-end-separator.spec.ts +++ b/projects/kit/src/lib/masks/date-time/tests/pseudo-date-end-separator.spec.ts @@ -1,4 +1,5 @@ -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions, maskitoTransform} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core'; import {maskitoDateTimeOptionsGenerator} from '@maskito/kit'; import {DATE_TIME_SEPARATOR} from '../constants'; diff --git a/projects/kit/src/lib/masks/date/date-mask.ts b/projects/kit/src/lib/masks/date/date-mask.ts index f675e4db6..525f8aa31 100644 --- a/projects/kit/src/lib/masks/date/date-mask.ts +++ b/projects/kit/src/lib/masks/date/date-mask.ts @@ -1,4 +1,5 @@ -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS} from '@maskito/core'; import { createDateSegmentsZeroPaddingPostprocessor, @@ -8,7 +9,7 @@ import { createZeroPlaceholdersPreprocessor, normalizeDatePreprocessor, } from '../../processors'; -import {MaskitoDateMode} from '../../types'; +import type {MaskitoDateMode} from '../../types'; export function maskitoDateOptionsGenerator({ mode, diff --git a/projects/kit/src/lib/masks/date/tests/date-mask.spec.ts b/projects/kit/src/lib/masks/date/tests/date-mask.spec.ts index 06eeb488c..1a2096126 100644 --- a/projects/kit/src/lib/masks/date/tests/date-mask.spec.ts +++ b/projects/kit/src/lib/masks/date/tests/date-mask.spec.ts @@ -1,4 +1,5 @@ -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions, maskitoTransform} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core'; import {maskitoDateOptionsGenerator} from '@maskito/kit'; /** diff --git a/projects/kit/src/lib/masks/number/number-mask.ts b/projects/kit/src/lib/masks/number/number-mask.ts index c05f1a2e3..f4d7323fc 100644 --- a/projects/kit/src/lib/masks/number/number-mask.ts +++ b/projects/kit/src/lib/masks/number/number-mask.ts @@ -1,4 +1,5 @@ -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS} from '@maskito/core'; import { CHAR_EM_DASH, diff --git a/projects/kit/src/lib/masks/number/plugins/leading-zeroes-validation.plugin.ts b/projects/kit/src/lib/masks/number/plugins/leading-zeroes-validation.plugin.ts index 6ec608039..f4ec9b6a7 100644 --- a/projects/kit/src/lib/masks/number/plugins/leading-zeroes-validation.plugin.ts +++ b/projects/kit/src/lib/masks/number/plugins/leading-zeroes-validation.plugin.ts @@ -1,4 +1,5 @@ -import {MaskitoPlugin, maskitoUpdateElement} from '@maskito/core'; +import type {MaskitoPlugin} from '@maskito/core'; +import {maskitoUpdateElement} from '@maskito/core'; import {maskitoEventHandler} from '../../../plugins'; import {createLeadingZeroesValidationPostprocessor} from '../processors'; diff --git a/projects/kit/src/lib/masks/number/plugins/min-max.plugin.ts b/projects/kit/src/lib/masks/number/plugins/min-max.plugin.ts index 410991cbd..db3d98dd9 100644 --- a/projects/kit/src/lib/masks/number/plugins/min-max.plugin.ts +++ b/projects/kit/src/lib/masks/number/plugins/min-max.plugin.ts @@ -1,4 +1,5 @@ -import {MaskitoPlugin, maskitoTransform, maskitoUpdateElement} from '@maskito/core'; +import type {MaskitoPlugin} from '@maskito/core'; +import {maskitoTransform, maskitoUpdateElement} from '@maskito/core'; import {maskitoEventHandler} from '../../../plugins'; import {clamp} from '../../../utils'; diff --git a/projects/kit/src/lib/masks/number/plugins/not-empty-integer.plugin.ts b/projects/kit/src/lib/masks/number/plugins/not-empty-integer.plugin.ts index 3cde29d08..17860d671 100644 --- a/projects/kit/src/lib/masks/number/plugins/not-empty-integer.plugin.ts +++ b/projects/kit/src/lib/masks/number/plugins/not-empty-integer.plugin.ts @@ -1,4 +1,5 @@ -import {MaskitoPlugin, maskitoUpdateElement} from '@maskito/core'; +import type {MaskitoPlugin} from '@maskito/core'; +import {maskitoUpdateElement} from '@maskito/core'; import {maskitoEventHandler} from '../../../plugins'; import {escapeRegExp, extractAffixes} from '../../../utils'; diff --git a/projects/kit/src/lib/masks/number/processors/affixes-filter-preprocessor.ts b/projects/kit/src/lib/masks/number/processors/affixes-filter-preprocessor.ts index d1aec7aa7..ed5b59fec 100644 --- a/projects/kit/src/lib/masks/number/processors/affixes-filter-preprocessor.ts +++ b/projects/kit/src/lib/masks/number/processors/affixes-filter-preprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; import {extractAffixes} from '../../../utils'; diff --git a/projects/kit/src/lib/masks/number/processors/decimal-zero-padding-postprocessor.ts b/projects/kit/src/lib/masks/number/processors/decimal-zero-padding-postprocessor.ts index 92e4053c5..14e72184c 100644 --- a/projects/kit/src/lib/masks/number/processors/decimal-zero-padding-postprocessor.ts +++ b/projects/kit/src/lib/masks/number/processors/decimal-zero-padding-postprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPostprocessor} from '@maskito/core'; +import type {MaskitoPostprocessor} from '@maskito/core'; import {extractAffixes, identity} from '../../../utils'; import {maskitoParseNumber} from '../utils'; diff --git a/projects/kit/src/lib/masks/number/processors/initialization-only-preprocessor.ts b/projects/kit/src/lib/masks/number/processors/initialization-only-preprocessor.ts index e2e8bdece..c66850df8 100644 --- a/projects/kit/src/lib/masks/number/processors/initialization-only-preprocessor.ts +++ b/projects/kit/src/lib/masks/number/processors/initialization-only-preprocessor.ts @@ -1,4 +1,5 @@ -import {MaskitoPreprocessor, maskitoTransform} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; +import {maskitoTransform} from '@maskito/core'; import {clamp, extractAffixes} from '../../../utils'; import {generateMaskExpression} from '../utils'; diff --git a/projects/kit/src/lib/masks/number/processors/leading-zeroes-validation-postprocessor.ts b/projects/kit/src/lib/masks/number/processors/leading-zeroes-validation-postprocessor.ts index f0ded369c..81bd26a32 100644 --- a/projects/kit/src/lib/masks/number/processors/leading-zeroes-validation-postprocessor.ts +++ b/projects/kit/src/lib/masks/number/processors/leading-zeroes-validation-postprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPostprocessor} from '@maskito/core'; +import type {MaskitoPostprocessor} from '@maskito/core'; import {escapeRegExp, extractAffixes} from '../../../utils'; diff --git a/projects/kit/src/lib/masks/number/processors/min-max-postprocessor.ts b/projects/kit/src/lib/masks/number/processors/min-max-postprocessor.ts index 3ceaf474f..4711c6017 100644 --- a/projects/kit/src/lib/masks/number/processors/min-max-postprocessor.ts +++ b/projects/kit/src/lib/masks/number/processors/min-max-postprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPostprocessor} from '@maskito/core'; +import type {MaskitoPostprocessor} from '@maskito/core'; import {CHAR_HYPHEN, CHAR_MINUS} from '../../../constants'; import {maskitoParseNumber} from '../utils'; diff --git a/projects/kit/src/lib/masks/number/processors/non-removable-chars-deletion-preprocessor.ts b/projects/kit/src/lib/masks/number/processors/non-removable-chars-deletion-preprocessor.ts index 42bf291e8..7cd75562a 100644 --- a/projects/kit/src/lib/masks/number/processors/non-removable-chars-deletion-preprocessor.ts +++ b/projects/kit/src/lib/masks/number/processors/non-removable-chars-deletion-preprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; /** * Manage caret-navigation when user "deletes" non-removable digits or separators diff --git a/projects/kit/src/lib/masks/number/processors/not-empty-integer-part-preprocessor.ts b/projects/kit/src/lib/masks/number/processors/not-empty-integer-part-preprocessor.ts index fe99270b2..3e78f846e 100644 --- a/projects/kit/src/lib/masks/number/processors/not-empty-integer-part-preprocessor.ts +++ b/projects/kit/src/lib/masks/number/processors/not-empty-integer-part-preprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; import {escapeRegExp, extractAffixes} from '../../../utils'; diff --git a/projects/kit/src/lib/masks/number/processors/pseudo-character-preprocessor.ts b/projects/kit/src/lib/masks/number/processors/pseudo-character-preprocessor.ts index 52e25524c..2e52bfc33 100644 --- a/projects/kit/src/lib/masks/number/processors/pseudo-character-preprocessor.ts +++ b/projects/kit/src/lib/masks/number/processors/pseudo-character-preprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; import {extractAffixes} from '../../../utils'; diff --git a/projects/kit/src/lib/masks/number/processors/repeated-decimal-separator-preprocessor.ts b/projects/kit/src/lib/masks/number/processors/repeated-decimal-separator-preprocessor.ts index 0acf327f0..0ca48a342 100644 --- a/projects/kit/src/lib/masks/number/processors/repeated-decimal-separator-preprocessor.ts +++ b/projects/kit/src/lib/masks/number/processors/repeated-decimal-separator-preprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; import {escapeRegExp, extractAffixes} from '../../../utils'; diff --git a/projects/kit/src/lib/masks/number/processors/thousand-separator-postprocessor.ts b/projects/kit/src/lib/masks/number/processors/thousand-separator-postprocessor.ts index 64ba8c508..bdc212247 100644 --- a/projects/kit/src/lib/masks/number/processors/thousand-separator-postprocessor.ts +++ b/projects/kit/src/lib/masks/number/processors/thousand-separator-postprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPostprocessor} from '@maskito/core'; +import type {MaskitoPostprocessor} from '@maskito/core'; import {CHAR_MINUS} from '../../../constants'; import {extractAffixes, identity} from '../../../utils'; diff --git a/projects/kit/src/lib/masks/number/processors/zero-precision-preprocessor.ts b/projects/kit/src/lib/masks/number/processors/zero-precision-preprocessor.ts index cd767b8e9..8f17ea471 100644 --- a/projects/kit/src/lib/masks/number/processors/zero-precision-preprocessor.ts +++ b/projects/kit/src/lib/masks/number/processors/zero-precision-preprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; import {escapeRegExp, extractAffixes, identity} from '../../../utils'; diff --git a/projects/kit/src/lib/masks/number/tests/number-mask.spec.ts b/projects/kit/src/lib/masks/number/tests/number-mask.spec.ts index 28e94e7e3..577f4bdab 100644 --- a/projects/kit/src/lib/masks/number/tests/number-mask.spec.ts +++ b/projects/kit/src/lib/masks/number/tests/number-mask.spec.ts @@ -1,4 +1,5 @@ -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions, maskitoTransform} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core'; import {maskitoParseNumber} from '@maskito/kit'; import {CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_SPACE} from '../../../constants'; diff --git a/projects/kit/src/lib/masks/number/utils/generate-mask-expression.ts b/projects/kit/src/lib/masks/number/utils/generate-mask-expression.ts index b89348765..e7d2da18c 100644 --- a/projects/kit/src/lib/masks/number/utils/generate-mask-expression.ts +++ b/projects/kit/src/lib/masks/number/utils/generate-mask-expression.ts @@ -1,4 +1,4 @@ -import {MaskitoMask} from '@maskito/core'; +import type {MaskitoMask} from '@maskito/core'; import {CHAR_MINUS} from '../../../constants'; import {escapeRegExp} from '../../../utils'; diff --git a/projects/kit/src/lib/masks/time/processors/max-validation-preprocessor.ts b/projects/kit/src/lib/masks/time/processors/max-validation-preprocessor.ts index 69cd8a57e..ffb010fbd 100644 --- a/projects/kit/src/lib/masks/time/processors/max-validation-preprocessor.ts +++ b/projects/kit/src/lib/masks/time/processors/max-validation-preprocessor.ts @@ -1,7 +1,7 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; import {TIME_FIXED_CHARACTERS} from '../../../constants'; -import {MaskitoTimeSegments} from '../../../types'; +import type {MaskitoTimeSegments} from '../../../types'; import {escapeRegExp} from '../../../utils'; import {padTimeSegments, validateTimeString} from '../../../utils/time'; diff --git a/projects/kit/src/lib/masks/time/time-mask.ts b/projects/kit/src/lib/masks/time/time-mask.ts index 15dd3dd7e..50608ad67 100644 --- a/projects/kit/src/lib/masks/time/time-mask.ts +++ b/projects/kit/src/lib/masks/time/time-mask.ts @@ -1,4 +1,5 @@ -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS} from '@maskito/core'; import {DEFAULT_TIME_SEGMENT_MAX_VALUES, TIME_FIXED_CHARACTERS} from '../../constants'; import { @@ -6,7 +7,7 @@ import { createFullWidthToHalfWidthPreprocessor, createZeroPlaceholdersPreprocessor, } from '../../processors'; -import {MaskitoTimeMode, MaskitoTimeSegments} from '../../types'; +import type {MaskitoTimeMode, MaskitoTimeSegments} from '../../types'; import {createMaxValidationPreprocessor} from './processors'; export function maskitoTimeOptionsGenerator({ diff --git a/projects/kit/src/lib/plugins/add-on-focus.ts b/projects/kit/src/lib/plugins/add-on-focus.ts index 8a00167fa..988a679c0 100644 --- a/projects/kit/src/lib/plugins/add-on-focus.ts +++ b/projects/kit/src/lib/plugins/add-on-focus.ts @@ -1,4 +1,5 @@ -import {MaskitoPlugin, maskitoUpdateElement} from '@maskito/core'; +import type {MaskitoPlugin} from '@maskito/core'; +import {maskitoUpdateElement} from '@maskito/core'; import {maskitoEventHandler} from './event-handler'; diff --git a/projects/kit/src/lib/plugins/caret-guard.ts b/projects/kit/src/lib/plugins/caret-guard.ts index 5201d4673..353eef065 100644 --- a/projects/kit/src/lib/plugins/caret-guard.ts +++ b/projects/kit/src/lib/plugins/caret-guard.ts @@ -1,4 +1,4 @@ -import {MaskitoPlugin} from '@maskito/core'; +import type {MaskitoPlugin} from '@maskito/core'; import {clamp} from '../utils'; diff --git a/projects/kit/src/lib/plugins/event-handler.ts b/projects/kit/src/lib/plugins/event-handler.ts index f29fecf6e..2c86b8e9e 100644 --- a/projects/kit/src/lib/plugins/event-handler.ts +++ b/projects/kit/src/lib/plugins/event-handler.ts @@ -1,4 +1,4 @@ -import {MaskitoOptions, MaskitoPlugin} from '@maskito/core'; +import type {MaskitoOptions, MaskitoPlugin} from '@maskito/core'; export function maskitoEventHandler( name: string, diff --git a/projects/kit/src/lib/plugins/remove-on-blur.ts b/projects/kit/src/lib/plugins/remove-on-blur.ts index 4ba77ba41..241f2b6c2 100644 --- a/projects/kit/src/lib/plugins/remove-on-blur.ts +++ b/projects/kit/src/lib/plugins/remove-on-blur.ts @@ -1,4 +1,5 @@ -import {MaskitoPlugin, maskitoUpdateElement} from '@maskito/core'; +import type {MaskitoPlugin} from '@maskito/core'; +import {maskitoUpdateElement} from '@maskito/core'; import {maskitoEventHandler} from './event-handler'; diff --git a/projects/kit/src/lib/processors/colon-convert-preprocessor.ts b/projects/kit/src/lib/processors/colon-convert-preprocessor.ts index 94fbd557f..89577aaf3 100644 --- a/projects/kit/src/lib/processors/colon-convert-preprocessor.ts +++ b/projects/kit/src/lib/processors/colon-convert-preprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; import {toHalfWidthColon} from '../utils'; diff --git a/projects/kit/src/lib/processors/date-segments-zero-padding-postprocessor.ts b/projects/kit/src/lib/processors/date-segments-zero-padding-postprocessor.ts index e3d915f53..6622901bc 100644 --- a/projects/kit/src/lib/processors/date-segments-zero-padding-postprocessor.ts +++ b/projects/kit/src/lib/processors/date-segments-zero-padding-postprocessor.ts @@ -1,7 +1,7 @@ -import {MaskitoPostprocessor} from '@maskito/core'; +import type {MaskitoPostprocessor} from '@maskito/core'; import {DATE_SEGMENTS_MAX_VALUES} from '../constants'; -import {MaskitoDateSegments} from '../types'; +import type {MaskitoDateSegments} from '../types'; import {padWithZeroesUntilValid, parseDateString, toDateString} from '../utils'; export function createDateSegmentsZeroPaddingPostprocessor({ diff --git a/projects/kit/src/lib/processors/first-date-end-separator-preprocessor.ts b/projects/kit/src/lib/processors/first-date-end-separator-preprocessor.ts index bc4c4506e..59fa48e85 100644 --- a/projects/kit/src/lib/processors/first-date-end-separator-preprocessor.ts +++ b/projects/kit/src/lib/processors/first-date-end-separator-preprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; import {getFirstCompleteDate} from '../utils'; diff --git a/projects/kit/src/lib/processors/fullwidth-to-halfwidth-preprocessor.ts b/projects/kit/src/lib/processors/fullwidth-to-halfwidth-preprocessor.ts index 4278ccda6..71d2c4375 100644 --- a/projects/kit/src/lib/processors/fullwidth-to-halfwidth-preprocessor.ts +++ b/projects/kit/src/lib/processors/fullwidth-to-halfwidth-preprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; import {toHalfWidthNumber} from '../utils'; diff --git a/projects/kit/src/lib/processors/min-max-date-postprocessor.ts b/projects/kit/src/lib/processors/min-max-date-postprocessor.ts index 701412a71..a9b86eaf4 100644 --- a/projects/kit/src/lib/processors/min-max-date-postprocessor.ts +++ b/projects/kit/src/lib/processors/min-max-date-postprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPostprocessor} from '@maskito/core'; +import type {MaskitoPostprocessor} from '@maskito/core'; import {DEFAULT_MAX_DATE, DEFAULT_MIN_DATE} from '../constants'; import { diff --git a/projects/kit/src/lib/processors/normalize-date-preprocessor.ts b/projects/kit/src/lib/processors/normalize-date-preprocessor.ts index a34e67a97..4d4af18fa 100644 --- a/projects/kit/src/lib/processors/normalize-date-preprocessor.ts +++ b/projects/kit/src/lib/processors/normalize-date-preprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; import {DATE_TIME_SEPARATOR} from '../masks/date-time/constants'; diff --git a/projects/kit/src/lib/processors/postfix-postprocessor.ts b/projects/kit/src/lib/processors/postfix-postprocessor.ts index 4d3457802..4595d8f0f 100644 --- a/projects/kit/src/lib/processors/postfix-postprocessor.ts +++ b/projects/kit/src/lib/processors/postfix-postprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPostprocessor} from '@maskito/core'; +import type {MaskitoPostprocessor} from '@maskito/core'; import {escapeRegExp, findCommonBeginningSubstr, identity} from '../utils'; diff --git a/projects/kit/src/lib/processors/prefix-postprocessor.ts b/projects/kit/src/lib/processors/prefix-postprocessor.ts index 1111fce08..f2a78132c 100644 --- a/projects/kit/src/lib/processors/prefix-postprocessor.ts +++ b/projects/kit/src/lib/processors/prefix-postprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPostprocessor} from '@maskito/core'; +import type {MaskitoPostprocessor} from '@maskito/core'; import {identity} from '../utils'; diff --git a/projects/kit/src/lib/processors/tests/normalize-date-preprocessor.spec.ts b/projects/kit/src/lib/processors/tests/normalize-date-preprocessor.spec.ts index c315ec845..dbc87599d 100644 --- a/projects/kit/src/lib/processors/tests/normalize-date-preprocessor.spec.ts +++ b/projects/kit/src/lib/processors/tests/normalize-date-preprocessor.spec.ts @@ -1,4 +1,4 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; import {normalizeDatePreprocessor} from '../normalize-date-preprocessor'; diff --git a/projects/kit/src/lib/processors/tests/prefix-postprocessor.spec.ts b/projects/kit/src/lib/processors/tests/prefix-postprocessor.spec.ts index 729b65cc5..07d7271b2 100644 --- a/projects/kit/src/lib/processors/tests/prefix-postprocessor.spec.ts +++ b/projects/kit/src/lib/processors/tests/prefix-postprocessor.spec.ts @@ -1,4 +1,4 @@ -import {MaskitoPostprocessor} from '@maskito/core'; +import type {MaskitoPostprocessor} from '@maskito/core'; import {maskitoPrefixPostprocessorGenerator} from '../prefix-postprocessor'; diff --git a/projects/kit/src/lib/processors/valid-date-preprocessor.ts b/projects/kit/src/lib/processors/valid-date-preprocessor.ts index b876127d4..badcc04ad 100644 --- a/projects/kit/src/lib/processors/valid-date-preprocessor.ts +++ b/projects/kit/src/lib/processors/valid-date-preprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; import {escapeRegExp, parseDateRangeString, validateDateString} from '../utils'; diff --git a/projects/kit/src/lib/processors/with-placeholder.ts b/projects/kit/src/lib/processors/with-placeholder.ts index 9b61e8a7c..4995b0ffe 100644 --- a/projects/kit/src/lib/processors/with-placeholder.ts +++ b/projects/kit/src/lib/processors/with-placeholder.ts @@ -1,4 +1,5 @@ -import {MaskitoOptions, maskitoUpdateElement} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {maskitoUpdateElement} from '@maskito/core'; import {maskitoCaretGuard, maskitoEventHandler} from '../plugins'; diff --git a/projects/kit/src/lib/processors/zero-placeholders-preprocessor.ts b/projects/kit/src/lib/processors/zero-placeholders-preprocessor.ts index bd70aeabd..ce3241f87 100644 --- a/projects/kit/src/lib/processors/zero-placeholders-preprocessor.ts +++ b/projects/kit/src/lib/processors/zero-placeholders-preprocessor.ts @@ -1,4 +1,4 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; export function createZeroPlaceholdersPreprocessor(): MaskitoPreprocessor { return ({elementState}, actionType) => { diff --git a/projects/kit/src/lib/utils/date/append-date.ts b/projects/kit/src/lib/utils/date/append-date.ts index f5c2dc1b9..0ac44ca89 100644 --- a/projects/kit/src/lib/utils/date/append-date.ts +++ b/projects/kit/src/lib/utils/date/append-date.ts @@ -1,4 +1,4 @@ -import {MaskitoDateSegments} from '../../types'; +import type {MaskitoDateSegments} from '../../types'; export function appendDate( initialDate: Date, diff --git a/projects/kit/src/lib/utils/date/date-segment-value-length.ts b/projects/kit/src/lib/utils/date/date-segment-value-length.ts index 72222f141..ed9db1052 100644 --- a/projects/kit/src/lib/utils/date/date-segment-value-length.ts +++ b/projects/kit/src/lib/utils/date/date-segment-value-length.ts @@ -1,4 +1,4 @@ -import {MaskitoDateSegments} from '../../types'; +import type {MaskitoDateSegments} from '../../types'; export const getDateSegmentValueLength: ( dateString: string, diff --git a/projects/kit/src/lib/utils/date/date-to-segments.ts b/projects/kit/src/lib/utils/date/date-to-segments.ts index d3fccddd0..37f8f9f60 100644 --- a/projects/kit/src/lib/utils/date/date-to-segments.ts +++ b/projects/kit/src/lib/utils/date/date-to-segments.ts @@ -1,4 +1,4 @@ -import {MaskitoDateSegments, MaskitoTimeSegments} from '../../types'; +import type {MaskitoDateSegments, MaskitoTimeSegments} from '../../types'; export function dateToSegments(date: Date): MaskitoDateSegments & MaskitoTimeSegments { return { diff --git a/projects/kit/src/lib/utils/date/parse-date-string.ts b/projects/kit/src/lib/utils/date/parse-date-string.ts index 1cf451e6d..58e774b9c 100644 --- a/projects/kit/src/lib/utils/date/parse-date-string.ts +++ b/projects/kit/src/lib/utils/date/parse-date-string.ts @@ -1,4 +1,4 @@ -import {MaskitoDateSegments} from '../../types'; +import type {MaskitoDateSegments} from '../../types'; export function parseDateString( dateString: string, diff --git a/projects/kit/src/lib/utils/date/raise-segment-value-to-min.ts b/projects/kit/src/lib/utils/date/raise-segment-value-to-min.ts index 33d973a19..3f8104afb 100644 --- a/projects/kit/src/lib/utils/date/raise-segment-value-to-min.ts +++ b/projects/kit/src/lib/utils/date/raise-segment-value-to-min.ts @@ -1,4 +1,4 @@ -import {MaskitoDateSegments} from '../../types'; +import type {MaskitoDateSegments} from '../../types'; import {getDateSegmentValueLength} from './date-segment-value-length'; export function raiseSegmentValueToMin( diff --git a/projects/kit/src/lib/utils/date/segments-to-date.ts b/projects/kit/src/lib/utils/date/segments-to-date.ts index 0cd0f6d95..e743205bf 100644 --- a/projects/kit/src/lib/utils/date/segments-to-date.ts +++ b/projects/kit/src/lib/utils/date/segments-to-date.ts @@ -1,4 +1,4 @@ -import {MaskitoDateSegments, MaskitoTimeSegments} from '../../types'; +import type {MaskitoDateSegments, MaskitoTimeSegments} from '../../types'; export function segmentsToDate( parsedDate: Partial, diff --git a/projects/kit/src/lib/utils/date/to-date-string.ts b/projects/kit/src/lib/utils/date/to-date-string.ts index 07ece2339..9df218a7e 100644 --- a/projects/kit/src/lib/utils/date/to-date-string.ts +++ b/projects/kit/src/lib/utils/date/to-date-string.ts @@ -1,5 +1,5 @@ import {DATE_TIME_SEPARATOR} from '../../masks/date-time/constants'; -import {MaskitoDateSegments, MaskitoTimeSegments} from '../../types'; +import type {MaskitoDateSegments, MaskitoTimeSegments} from '../../types'; export function toDateString( { diff --git a/projects/kit/src/lib/utils/date/validate-date-string.ts b/projects/kit/src/lib/utils/date/validate-date-string.ts index 2a53394f5..7a0d8b9cf 100644 --- a/projects/kit/src/lib/utils/date/validate-date-string.ts +++ b/projects/kit/src/lib/utils/date/validate-date-string.ts @@ -1,5 +1,5 @@ import {DATE_SEGMENTS_MAX_VALUES} from '../../constants'; -import {MaskitoDateSegments} from '../../types'; +import type {MaskitoDateSegments} from '../../types'; import {getDateSegmentValueLength} from './date-segment-value-length'; import {parseDateString} from './parse-date-string'; import {toDateString} from './to-date-string'; diff --git a/projects/kit/src/lib/utils/time/pad-time-segments.ts b/projects/kit/src/lib/utils/time/pad-time-segments.ts index c64afea18..5a7a9933b 100644 --- a/projects/kit/src/lib/utils/time/pad-time-segments.ts +++ b/projects/kit/src/lib/utils/time/pad-time-segments.ts @@ -1,5 +1,5 @@ import {TIME_SEGMENT_VALUE_LENGTHS} from '../../constants'; -import {MaskitoTimeSegments} from '../../types'; +import type {MaskitoTimeSegments} from '../../types'; export function padTimeSegments( timeSegments: MaskitoTimeSegments, diff --git a/projects/kit/src/lib/utils/time/parse-time-string.ts b/projects/kit/src/lib/utils/time/parse-time-string.ts index 334aea37c..f9660ea19 100644 --- a/projects/kit/src/lib/utils/time/parse-time-string.ts +++ b/projects/kit/src/lib/utils/time/parse-time-string.ts @@ -1,4 +1,4 @@ -import {MaskitoTimeSegments} from '../../types'; +import type {MaskitoTimeSegments} from '../../types'; /** * @param timeString can be with/without fixed characters diff --git a/projects/kit/src/lib/utils/time/to-time-string.ts b/projects/kit/src/lib/utils/time/to-time-string.ts index 5af10f4de..e7a6ad17c 100644 --- a/projects/kit/src/lib/utils/time/to-time-string.ts +++ b/projects/kit/src/lib/utils/time/to-time-string.ts @@ -1,4 +1,4 @@ -import {MaskitoTimeSegments} from '../../types'; +import type {MaskitoTimeSegments} from '../../types'; export function toTimeString({ hours = '', diff --git a/projects/kit/src/lib/utils/time/validate-time-string.ts b/projects/kit/src/lib/utils/time/validate-time-string.ts index 34747eca3..1e76990f7 100644 --- a/projects/kit/src/lib/utils/time/validate-time-string.ts +++ b/projects/kit/src/lib/utils/time/validate-time-string.ts @@ -1,5 +1,5 @@ import {TIME_FIXED_CHARACTERS, TIME_SEGMENT_VALUE_LENGTHS} from '../../constants'; -import {MaskitoTimeSegments} from '../../types'; +import type {MaskitoTimeSegments} from '../../types'; import {escapeRegExp} from '../escape-reg-exp'; import {padWithZeroesUntilValid} from '../pad-with-zeroes-until-valid'; import {parseTimeString} from './parse-time-string'; diff --git a/projects/phone/src/lib/masks/phone/phone-mask-non-strict.ts b/projects/phone/src/lib/masks/phone/phone-mask-non-strict.ts index b39b1308e..bd2e41378 100644 --- a/projects/phone/src/lib/masks/phone/phone-mask-non-strict.ts +++ b/projects/phone/src/lib/masks/phone/phone-mask-non-strict.ts @@ -1,5 +1,7 @@ -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions} from '@maskito/core'; -import {AsYouType, CountryCode, MetadataJson} from 'libphonenumber-js/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS} from '@maskito/core'; +import type {CountryCode, MetadataJson} from 'libphonenumber-js/core'; +import {AsYouType} from 'libphonenumber-js/core'; import { phoneLengthPostprocessorGenerator, diff --git a/projects/phone/src/lib/masks/phone/phone-mask-strict.ts b/projects/phone/src/lib/masks/phone/phone-mask-strict.ts index 113a81a99..d2b8fdd1d 100644 --- a/projects/phone/src/lib/masks/phone/phone-mask-strict.ts +++ b/projects/phone/src/lib/masks/phone/phone-mask-strict.ts @@ -1,16 +1,13 @@ -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS} from '@maskito/core'; import { maskitoAddOnFocusPlugin, maskitoCaretGuard, maskitoPrefixPostprocessorGenerator, maskitoRemoveOnBlurPlugin, } from '@maskito/kit'; -import { - AsYouType, - CountryCode, - getCountryCallingCode, - MetadataJson, -} from 'libphonenumber-js/core'; +import type {CountryCode, MetadataJson} from 'libphonenumber-js/core'; +import {AsYouType, getCountryCallingCode} from 'libphonenumber-js/core'; import { cutInitCountryCodePreprocessor, diff --git a/projects/phone/src/lib/masks/phone/phone-mask.ts b/projects/phone/src/lib/masks/phone/phone-mask.ts index 4de3f263f..5d8825144 100644 --- a/projects/phone/src/lib/masks/phone/phone-mask.ts +++ b/projects/phone/src/lib/masks/phone/phone-mask.ts @@ -1,5 +1,5 @@ -import {MaskitoOptions} from '@maskito/core'; -import {CountryCode, MetadataJson} from 'libphonenumber-js/core'; +import type {MaskitoOptions} from '@maskito/core'; +import type {CountryCode, MetadataJson} from 'libphonenumber-js/core'; import {maskitoPhoneNonStrictOptionsGenerator} from './phone-mask-non-strict'; import {maskitoPhoneStrictOptionsGenerator} from './phone-mask-strict'; diff --git a/projects/phone/src/lib/masks/phone/processors/cut-init-country-code-preprocessor.ts b/projects/phone/src/lib/masks/phone/processors/cut-init-country-code-preprocessor.ts index ca799828c..ab37e6acc 100644 --- a/projects/phone/src/lib/masks/phone/processors/cut-init-country-code-preprocessor.ts +++ b/projects/phone/src/lib/masks/phone/processors/cut-init-country-code-preprocessor.ts @@ -1,10 +1,6 @@ -import {MaskitoPreprocessor} from '@maskito/core'; -import { - CountryCode, - getCountryCallingCode, - MetadataJson, - parsePhoneNumber, -} from 'libphonenumber-js/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; +import type {CountryCode, MetadataJson} from 'libphonenumber-js/core'; +import {getCountryCallingCode, parsePhoneNumber} from 'libphonenumber-js/core'; /** * This preprocessor works only once at initialization phase (when `new Maskito(...)` is executed). diff --git a/projects/phone/src/lib/masks/phone/processors/phone-length-postprocessor.ts b/projects/phone/src/lib/masks/phone/processors/phone-length-postprocessor.ts index c608f2d4b..23e7f886d 100644 --- a/projects/phone/src/lib/masks/phone/processors/phone-length-postprocessor.ts +++ b/projects/phone/src/lib/masks/phone/processors/phone-length-postprocessor.ts @@ -1,5 +1,5 @@ -import {MaskitoPostprocessor} from '@maskito/core'; -import {MetadataJson} from 'libphonenumber-js/core'; +import type {MaskitoPostprocessor} from '@maskito/core'; +import type {MetadataJson} from 'libphonenumber-js/core'; import {cutPhoneByValidLength} from '../utils'; diff --git a/projects/phone/src/lib/masks/phone/processors/validate-phone-preprocessor.ts b/projects/phone/src/lib/masks/phone/processors/validate-phone-preprocessor.ts index bf8e663e7..eb0b42968 100644 --- a/projects/phone/src/lib/masks/phone/processors/validate-phone-preprocessor.ts +++ b/projects/phone/src/lib/masks/phone/processors/validate-phone-preprocessor.ts @@ -1,8 +1,7 @@ -import {MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; +import type {CountryCode, MetadataJson} from 'libphonenumber-js/core'; import { AsYouType, - CountryCode, - MetadataJson, parsePhoneNumber, validatePhoneNumberLength, } from 'libphonenumber-js/core'; diff --git a/projects/phone/src/lib/masks/phone/tests/phone-mask.spec.ts b/projects/phone/src/lib/masks/phone/tests/phone-mask.spec.ts index 0d5e70006..95fab93ea 100644 --- a/projects/phone/src/lib/masks/phone/tests/phone-mask.spec.ts +++ b/projects/phone/src/lib/masks/phone/tests/phone-mask.spec.ts @@ -1,4 +1,5 @@ -import {MASKITO_DEFAULT_OPTIONS, MaskitoOptions, maskitoTransform} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core'; import metadata from 'libphonenumber-js/min/metadata'; import {maskitoPhoneOptionsGenerator} from '../phone-mask'; diff --git a/projects/phone/src/lib/masks/phone/utils/cut-phone-by-valid-length.ts b/projects/phone/src/lib/masks/phone/utils/cut-phone-by-valid-length.ts index 7d01e88b2..5633601eb 100644 --- a/projects/phone/src/lib/masks/phone/utils/cut-phone-by-valid-length.ts +++ b/projects/phone/src/lib/masks/phone/utils/cut-phone-by-valid-length.ts @@ -1,4 +1,5 @@ -import {MetadataJson, validatePhoneNumberLength} from 'libphonenumber-js/core'; +import type {MetadataJson} from 'libphonenumber-js/core'; +import {validatePhoneNumberLength} from 'libphonenumber-js/core'; export function cutPhoneByValidLength({ phone, diff --git a/projects/phone/src/lib/masks/phone/utils/generate-phone-mask.ts b/projects/phone/src/lib/masks/phone/utils/generate-phone-mask.ts index bab77855e..f6b927860 100644 --- a/projects/phone/src/lib/masks/phone/utils/generate-phone-mask.ts +++ b/projects/phone/src/lib/masks/phone/utils/generate-phone-mask.ts @@ -1,4 +1,4 @@ -import {MaskitoMaskExpression} from '@maskito/core'; +import type {MaskitoMaskExpression} from '@maskito/core'; import {TEMPLATE_FILLER} from '../constants'; diff --git a/projects/phone/src/lib/masks/phone/utils/get-country-from-number.ts b/projects/phone/src/lib/masks/phone/utils/get-country-from-number.ts index 8d00c0847..69070f5b2 100644 --- a/projects/phone/src/lib/masks/phone/utils/get-country-from-number.ts +++ b/projects/phone/src/lib/masks/phone/utils/get-country-from-number.ts @@ -1,4 +1,5 @@ -import {AsYouType, CountryCode, MetadataJson} from 'libphonenumber-js/core'; +import type {CountryCode, MetadataJson} from 'libphonenumber-js/core'; +import {AsYouType} from 'libphonenumber-js/core'; export function maskitoGetCountryFromNumber( number: string, diff --git a/projects/phone/src/lib/masks/phone/utils/get-phone-template.ts b/projects/phone/src/lib/masks/phone/utils/get-phone-template.ts index 70ffa065a..4f0b61c80 100644 --- a/projects/phone/src/lib/masks/phone/utils/get-phone-template.ts +++ b/projects/phone/src/lib/masks/phone/utils/get-phone-template.ts @@ -1,4 +1,4 @@ -import {AsYouType} from 'libphonenumber-js/core'; +import type {AsYouType} from 'libphonenumber-js/core'; export function getPhoneTemplate( formatter: AsYouType, diff --git a/projects/react/src/lib/useMaskito.ts b/projects/react/src/lib/useMaskito.ts index c2037f382..1dfdc555b 100644 --- a/projects/react/src/lib/useMaskito.ts +++ b/projects/react/src/lib/useMaskito.ts @@ -1,10 +1,7 @@ -import { - Maskito, - MASKITO_DEFAULT_ELEMENT_PREDICATE, - MaskitoElementPredicate, - MaskitoOptions, -} from '@maskito/core'; -import {RefCallback, useCallback, useRef, useState} from 'react'; +import type {MaskitoElementPredicate, MaskitoOptions} from '@maskito/core'; +import {Maskito, MASKITO_DEFAULT_ELEMENT_PREDICATE} from '@maskito/core'; +import type {RefCallback} from 'react'; +import {useCallback, useRef, useState} from 'react'; import {useIsomorphicLayoutEffect} from './useIsomorphicLayoutEffect'; diff --git a/projects/vue/src/lib/maskito.ts b/projects/vue/src/lib/maskito.ts index 175207730..7c75246b3 100644 --- a/projects/vue/src/lib/maskito.ts +++ b/projects/vue/src/lib/maskito.ts @@ -1,10 +1,6 @@ -import { - Maskito, - MASKITO_DEFAULT_ELEMENT_PREDICATE, - MaskitoElementPredicate, - MaskitoOptions, -} from '@maskito/core'; -import {ObjectDirective} from 'vue'; +import type {MaskitoElementPredicate, MaskitoOptions} from '@maskito/core'; +import {Maskito, MASKITO_DEFAULT_ELEMENT_PREDICATE} from '@maskito/core'; +import type {ObjectDirective} from 'vue'; const teardown = new Map(); const predicates = new Map(); diff --git a/scripts/helpers/execute.ts b/scripts/helpers/execute.ts index 9bf4b45e6..c087f7df5 100644 --- a/scripts/helpers/execute.ts +++ b/scripts/helpers/execute.ts @@ -1,4 +1,5 @@ -import {CommonExecOptions, execSync} from 'child_process'; +import type {CommonExecOptions} from 'child_process'; +import {execSync} from 'child_process'; import {infoLog} from './colored-log';