Skip to content

Commit

Permalink
chore: fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Jun 10, 2024
1 parent 72790b6 commit 43ea1e2
Show file tree
Hide file tree
Showing 28 changed files with 74 additions and 66 deletions.
28 changes: 18 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {TuiTextfieldControllerModule} from '@taiga-ui/core';
import {TUI_EDITOR_DEFAULT_EDITOR_COLORS, TuiInputColorComponent} from '@taiga-ui/editor';
import {TuiTextfieldControllerModule} from '@taiga-ui/legacy';

@Component({
standalone: true,
Expand Down
3 changes: 2 additions & 1 deletion projects/demo/src/app/pages/color-picker/examples/2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core';
import type {SafeStyle} from '@angular/platform-browser';
import {DomSanitizer} from '@angular/platform-browser';
import {TuiActiveZoneDirective} from '@taiga-ui/cdk';
import {TuiButtonDirective, TuiHostedDropdownModule} from '@taiga-ui/core';
import {TuiButtonDirective} from '@taiga-ui/core';
import {TuiColorSelector} from '@taiga-ui/editor';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';

@Component({
standalone: true,
Expand Down
3 changes: 2 additions & 1 deletion projects/demo/src/app/pages/color-picker/examples/3/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {AsyncPipe} from '@angular/common';
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {TuiButtonDirective, TuiHostedDropdownModule} from '@taiga-ui/core';
import {TuiButtonDirective} from '@taiga-ui/core';
import {TuiPalette} from '@taiga-ui/editor';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';
import {BehaviorSubject} from 'rxjs';

@Component({
Expand Down
6 changes: 3 additions & 3 deletions projects/demo/src/app/pages/color-picker/examples/4/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {MaskitoModule} from '@maskito/angular';
import {TuiSvgComponent} from '@taiga-ui/core';
import {
TuiSvgComponent,
TuiInputModule,
TuiTextfieldControllerModule,
TuiWrapperModule,
} from '@taiga-ui/core';
import {TuiInputModule} from '@taiga-ui/legacy';
} from '@taiga-ui/legacy';

@Component({
standalone: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import {AsyncPipe} from '@angular/common';
import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core';
import {TuiActiveZoneDirective} from '@taiga-ui/cdk';
import {TuiButtonDirective, TuiHostedDropdownModule} from '@taiga-ui/core';
import {TuiButtonDirective} from '@taiga-ui/core';
import type {AbstractTuiEditor} from '@taiga-ui/editor';
import {
TUI_EDITOR_OPTIONS,
TuiColorSelector,
TuiTiptapEditorService,
} from '@taiga-ui/editor';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';
import {distinctUntilChanged, map, share} from 'rxjs';

@Component({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {NgForOf} from '@angular/common';
import {ChangeDetectionStrategy, Component, inject} from '@angular/core';
import {TuiActiveZoneDirective} from '@taiga-ui/cdk';
import {TuiButtonDirective, TuiHostedDropdownModule} from '@taiga-ui/core';
import {TuiButtonDirective} from '@taiga-ui/core';
import {TuiTiptapEditorService} from '@taiga-ui/editor';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';

@Component({
standalone: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import {ChangeDetectionStrategy, Component, inject, ViewChild} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {TuiActiveZoneDirective, TuiAutoFocusDirective} from '@taiga-ui/cdk';
import type {TuiHostedDropdownComponent} from '@taiga-ui/core';
import {TuiButtonDirective, TuiHostedDropdownModule} from '@taiga-ui/core';
import {TuiButtonDirective} from '@taiga-ui/core';
import {TuiTiptapEditorService} from '@taiga-ui/editor';
import {TuiInputInlineComponent} from '@taiga-ui/kit';
import type {TuiHostedDropdownComponent} from '@taiga-ui/legacy';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';

@Component({
standalone: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {ChangeDetectionStrategy, Component, inject, ViewChild} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {TuiActiveZoneDirective, TuiAutoFocusDirective} from '@taiga-ui/cdk';
import type {TuiHostedDropdownComponent} from '@taiga-ui/core';
import {TuiButtonDirective, TuiHostedDropdownModule} from '@taiga-ui/core';
import {TuiButtonDirective} from '@taiga-ui/core';
import {TuiTiptapEditorService} from '@taiga-ui/editor';
import {TuiInputInlineComponent} from '@taiga-ui/kit';
import {TuiHostedDropdownComponent, TuiHostedDropdownModule} from '@taiga-ui/legacy';

Check failure on line 7 in projects/demo/src/app/pages/embed/iframe/examples/1/embed-tool/embed-tool.component.ts

View workflow job for this annotation

GitHub Actions / Lint

Imports "TuiHostedDropdownComponent" are only used as type

@Component({
standalone: true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import {ChangeDetectionStrategy, Component, inject, ViewChild} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {TuiActiveZoneDirective, TuiAutoFocusDirective} from '@taiga-ui/cdk';
import type {TuiHostedDropdownComponent} from '@taiga-ui/core';
import {TuiButtonDirective, TuiHostedDropdownModule} from '@taiga-ui/core';
import {TuiButtonDirective} from '@taiga-ui/core';
import {TuiTiptapEditorService} from '@taiga-ui/editor';
import {TuiInputInlineComponent} from '@taiga-ui/kit';
import type {TuiHostedDropdownComponent} from '@taiga-ui/legacy';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';

@Component({
standalone: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import {AsyncPipe, NgForOf} from '@angular/common';
import {ChangeDetectionStrategy, Component, inject} from '@angular/core';
import {WINDOW} from '@ng-web-apis/common';
import {tuiPure} from '@taiga-ui/cdk';
import {TuiButtonDirective, TuiDataList, TuiHostedDropdownModule} from '@taiga-ui/core';
import {TuiButtonDirective, TuiDataList} from '@taiga-ui/core';
import {TuiTiptapEditorService} from '@taiga-ui/editor';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';
import {distinctUntilChanged, map} from 'rxjs';

@Component({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@ import {FormsModule} from '@angular/forms';
import {MaskitoModule} from '@maskito/angular';
import type {MaskitoOptions} from '@maskito/core';
import {tuiHexToRgb, tuiRgbToHex} from '@taiga-ui/cdk';
import {
TuiDataList,
TuiDropdownOptionsDirective,
TuiPrimitiveTextfieldModule,
TuiTextfieldControllerModule,
} from '@taiga-ui/core';
import {TuiDataList, TuiDropdownOptionsDirective} from '@taiga-ui/core';
import {
TuiInputNumberModule,
TuiPrimitiveTextfieldModule,
TuiSelectModule,
TuiTextfieldControllerModule,
TuiValueAccessorModule,
} from '@taiga-ui/legacy';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import {
import type {SafeStyle} from '@angular/platform-browser';
import {DomSanitizer} from '@angular/platform-browser';
import {tuiDefaultSort, tuiParseColor, tuiPure} from '@taiga-ui/cdk';
import type {TuiHostedDropdownComponent} from '@taiga-ui/core';
import {
TuiButtonDirective,
TuiDataList,
TuiGroupDirective,
TuiHint,
TuiHostedDropdownModule,
TuiSvgComponent,
} from '@taiga-ui/core';
import type {TuiHostedDropdownComponent} from '@taiga-ui/legacy';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';

import {TUI_EDITOR_OPTIONS} from '../../tokens/editor-options';
import {TUI_EDITOR_COLOR_SELECTOR_MODE_NAMES} from '../../tokens/i18n';
Expand Down
2 changes: 1 addition & 1 deletion projects/editor/src/components/editor/editor.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import {
TuiDropdownDirective,
TuiDropdownOptionsDirective,
TuiScrollbarComponent,
TuiWrapperModule,
} from '@taiga-ui/core';
import {TuiWrapperModule} from '@taiga-ui/legacy';
import {delay, fromEvent, throttleTime} from 'rxjs';

import type {AbstractTuiEditor} from '../../abstract/editor-adapter.abstract';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import {MaskitoDirective} from '@maskito/angular';
import type {MaskitoOptions} from '@maskito/core';
import type {TuiFocusableElementAccessor, TuiNativeFocusableElement} from '@taiga-ui/cdk';
import {AbstractTuiControl, TuiActiveZoneDirective, tuiPure} from '@taiga-ui/cdk';
import {tuiDropdownOptionsProvider} from '@taiga-ui/core';
import {
tuiDropdownOptionsProvider,
TuiHostedDropdownComponent,
TuiHostedDropdownModule,
TuiPrimitiveTextfieldComponent,
TuiPrimitiveTextfieldModule,
TuiTextfieldControllerModule,
} from '@taiga-ui/core';
} from '@taiga-ui/legacy';

import {tuiGetGradientData} from '../../utils/get-gradient-data';
import {tuiParseGradient} from '../../utils/parse-gradient';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {AsyncPipe, NgIf} from '@angular/common';
import {ChangeDetectionStrategy, Component, inject} from '@angular/core';
import {TuiLetDirective} from '@taiga-ui/cdk';
import {TuiButtonDirective, TuiHint, TuiHostedDropdownModule} from '@taiga-ui/core';
import {TuiButtonDirective, TuiHint} from '@taiga-ui/core';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';
import {combineLatest, map} from 'rxjs';

import {TuiTiptapEditorService} from '../../../directives/tiptap-editor/tiptap-editor.service';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import {AsyncPipe, NgForOf} from '@angular/common';
import {ChangeDetectionStrategy, Component, inject} from '@angular/core';
import {
TuiButtonDirective,
TuiDataList,
TuiHint,
TuiHostedDropdownModule,
} from '@taiga-ui/core';
import {TuiButtonDirective, TuiDataList, TuiHint} from '@taiga-ui/core';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';
import {distinctUntilChanged, map} from 'rxjs';

import {TuiTiptapEditorService} from '../../../directives/tiptap-editor/tiptap-editor.service';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import {AsyncPipe, LowerCasePipe, NgClass, NgForOf, NgStyle} from '@angular/common';
import {ChangeDetectionStrategy, Component, inject} from '@angular/core';
import {tuiPx} from '@taiga-ui/cdk';
import {
TuiButtonDirective,
TuiDataList,
TuiHint,
TuiHostedDropdownModule,
} from '@taiga-ui/core';
import {TuiButtonDirective, TuiDataList, TuiHint} from '@taiga-ui/core';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';
import type {Observable} from 'rxjs';
import {map} from 'rxjs';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {AsyncPipe, NgIf} from '@angular/common';
import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core';
import {TuiButtonDirective, TuiHint, TuiHostedDropdownModule} from '@taiga-ui/core';
import {TuiButtonDirective, TuiHint} from '@taiga-ui/core';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';
import {combineLatest, map} from 'rxjs';

import {TUI_EDITOR_DEFAULT_TOOLS} from '../../../constants/default-editor-tools';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {AsyncPipe, NgIf} from '@angular/common';
import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core';
import {TuiActiveZoneDirective, TuiLetDirective} from '@taiga-ui/cdk';
import {TuiButtonDirective, TuiHint, TuiHostedDropdownModule} from '@taiga-ui/core';
import {TuiButtonDirective, TuiHint} from '@taiga-ui/core';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';
import {distinctUntilChanged, map} from 'rxjs';

import {TuiTiptapEditorService} from '../../../directives/tiptap-editor/tiptap-editor.service';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {AsyncPipe, NgIf} from '@angular/common';
import {ChangeDetectionStrategy, Component, inject} from '@angular/core';
import {TuiLetDirective} from '@taiga-ui/cdk';
import {TuiButtonDirective, TuiHint, TuiHostedDropdownModule} from '@taiga-ui/core';
import {TuiButtonDirective, TuiHint} from '@taiga-ui/core';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';
import {combineLatest, map} from 'rxjs';

import {TuiTiptapEditorService} from '../../../directives/tiptap-editor/tiptap-editor.service';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {AsyncPipe, NgIf} from '@angular/common';
import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core';
import {TuiActiveZoneDirective, TuiLetDirective} from '@taiga-ui/cdk';
import {TuiButtonDirective, TuiHint, TuiHostedDropdownModule} from '@taiga-ui/core';
import {TuiButtonDirective, TuiHint} from '@taiga-ui/core';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';
import {combineLatest, distinctUntilChanged, map} from 'rxjs';

import {TuiTiptapEditorService} from '../../../directives/tiptap-editor/tiptap-editor.service';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {AsyncPipe} from '@angular/common';
import {ChangeDetectionStrategy, Component, inject} from '@angular/core';
import {TuiButtonDirective, TuiHint, TuiHostedDropdownModule} from '@taiga-ui/core';
import {TuiButtonDirective, TuiHint} from '@taiga-ui/core';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';
import {map} from 'rxjs';

import {TuiTiptapEditorService} from '../../../directives/tiptap-editor/tiptap-editor.service';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import {AsyncPipe, NgForOf} from '@angular/common';
import {ChangeDetectionStrategy, Component, inject} from '@angular/core';
import {TuiLetDirective} from '@taiga-ui/cdk';
import {
TuiButtonDirective,
TuiDataList,
TuiHint,
TuiHostedDropdownModule,
} from '@taiga-ui/core';
import {TuiButtonDirective, TuiDataList, TuiHint} from '@taiga-ui/core';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';
import {map} from 'rxjs';

import {TuiTiptapEditorService} from '../../../directives/tiptap-editor/tiptap-editor.service';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import {AsyncPipe} from '@angular/common';
import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core';
import {TuiActiveZoneDirective, TuiLetDirective} from '@taiga-ui/cdk';
import {TuiButtonDirective, TuiHint, TuiHostedDropdownModule} from '@taiga-ui/core';
import {TuiButtonDirective, TuiHint} from '@taiga-ui/core';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';
import {distinctUntilChanged, map} from 'rxjs';

import {TuiTiptapEditorService} from '../../../directives/tiptap-editor/tiptap-editor.service';
Expand Down
5 changes: 3 additions & 2 deletions projects/editor/src/components/toolbar/toolbar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ import {
} from '@angular/core';
import {takeUntilDestroyed} from '@angular/core/rxjs-interop';
import {EMPTY_QUERY, tuiIsNativeFocusedIn, TuiItemDirective} from '@taiga-ui/cdk';
import type {TuiHostedDropdownComponent} from '@taiga-ui/core';
import {TuiButtonDirective, TuiHint, TuiHostedDropdownModule} from '@taiga-ui/core';
import {TuiButtonDirective, TuiHint} from '@taiga-ui/core';
import type {TuiHostedDropdownComponent} from '@taiga-ui/legacy';
import {TuiHostedDropdownModule} from '@taiga-ui/legacy';
import {take} from 'rxjs';

import {TUI_EDITOR_DEFAULT_TOOLS} from '../../constants/default-editor-tools';
Expand Down
4 changes: 2 additions & 2 deletions projects/editor/src/tokens/editor-options.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {Provider} from '@angular/core';
import {tuiCreateOptions, tuiProvideOptions} from '@taiga-ui/cdk';
import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk';

import {
EDITOR_BLANK_COLOR,
Expand Down Expand Up @@ -125,7 +125,7 @@ export const TUI_EDITOR_DEFAULT_OPTIONS: TuiEditorOptions = {
},
};

export const TUI_EDITOR_OPTIONS = tuiCreateOptions(TUI_EDITOR_DEFAULT_OPTIONS);
export const TUI_EDITOR_OPTIONS = tuiCreateToken(TUI_EDITOR_DEFAULT_OPTIONS);

export function tuiEditorOptionsProvider(options: Partial<TuiEditorOptions>): Provider {
return tuiProvideOptions(TUI_EDITOR_OPTIONS, options, TUI_EDITOR_DEFAULT_OPTIONS);
Expand Down
2 changes: 1 addition & 1 deletion taiga-ui
Submodule taiga-ui updated 828 files

0 comments on commit 43ea1e2

Please sign in to comment.