Skip to content

Commit

Permalink
refactor: rename shared-ui to shared-components
Browse files Browse the repository at this point in the history
  • Loading branch information
nvsukhanov committed Mar 25, 2024
1 parent 6eff3a4 commit 639d6e0
Show file tree
Hide file tree
Showing 175 changed files with 72 additions and 72 deletions.
12 changes: 6 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
"scope:store",
"scope:page",
"scope:shared-misc",
"scope:shared-ui",
"scope:shared-components",
"scope:shared-feature",
"scope:i18n",
"scope:controller-profiles"
Expand All @@ -268,13 +268,13 @@
"sourceTag": "scope:store",
"onlyDependOnLibsWithTags": [
"scope:shared-misc",
"scope:shared-components",
"scope:i18n",
"scope:controller-profiles",
"scope:shared-ui"
"scope:controller-profiles"
]
},
{
"sourceTag": "scope:shared-ui",
"sourceTag": "scope:shared-components",
"onlyDependOnLibsWithTags": [
"scope:shared-misc",
"scope:i18n"
Expand All @@ -286,7 +286,7 @@
"scope:store",
"scope:shared-misc",
"scope:i18n",
"scope:shared-ui",
"scope:shared-components",
"scope:controller-profiles"
]
},
Expand All @@ -310,7 +310,7 @@
"scope:shared-feature",
"scope:shared-misc",
"scope:i18n",
"scope:shared-ui",
"scope:shared-components",
"scope:controller-profiles"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { TranslocoService } from '@ngneat/transloco';
import { ButtonGroupButtonId } from 'rxpoweredup';
import { ControlSchemeInputConfig, ControllerProfilesFacadeService } from '@app/store';
import { ControllerInputType, IControllerProfile } from '@app/controller-profiles';
import { PortIdToPortNameService } from '@app/shared-ui';
import { PortIdToPortNameService } from '@app/shared-components';

@Injectable()
export class ControllerInputNameService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Observable, Subscription, of, startWith, switchMap } from 'rxjs';
import { AsyncPipe } from '@angular/common';
import { MatBadge } from '@angular/material/badge';
import { ControlSchemeBindingType, ValidationMessagesDirective } from '@app/shared-misc';
import { HideOnSmallScreenDirective } from '@app/shared-ui';
import { HideOnSmallScreenDirective } from '@app/shared-components';
import { ControlSchemeBindingInputs, ControllerInputModel, InputDirection, InputPipeType } from '@app/store';
import {
BINDING_CONTROLLER_INPUT_NAME_RESOLVER,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { MatFormFieldModule } from '@angular/material/form-field';
import { MatOptionModule } from '@angular/material/core';
import { MatSelectModule } from '@angular/material/select';
import { TranslocoPipe } from '@ngneat/transloco';
import { MotorServoEndStateL10nKeyPipe } from '@app/shared-ui';
import { MotorServoEndStateL10nKeyPipe } from '@app/shared-components';

@Component({
standalone: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { MatInputModule } from '@angular/material/input';
import { ReactiveFormsModule } from '@angular/forms';
import { AsyncPipe } from '@angular/common';
import { ControlSchemeBindingType, ValidationMessagesDirective } from '@app/shared-misc';
import { HideOnSmallScreenDirective, ToggleControlComponent } from '@app/shared-ui';
import { HideOnSmallScreenDirective, ToggleControlComponent } from '@app/shared-components';
import { GearboxBindingInputAction, HubMotorPositionFacadeService } from '@app/store';
import { BindingControlSelectHubComponent, BindingControlSelectIoComponent, MotorPositionAdjustmentComponent } from '@app/shared-control-schemes';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ReactiveFormsModule } from '@angular/forms';
import { concatLatestFrom } from '@ngrx/effects';
import { AsyncPipe } from '@angular/common';
import { ControlSchemeBindingType, ValidationErrorsL10nMap, ValidationMessagesDirective, transformRelativeDegToAbsoluteDeg } from '@app/shared-misc';
import { HideOnSmallScreenDirective, ToggleControlComponent } from '@app/shared-ui';
import { HideOnSmallScreenDirective, ToggleControlComponent } from '@app/shared-components';
import {
ATTACHED_IO_PROPS_SELECTORS,
CONTROL_SCHEME_ACTIONS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { MatInputModule } from '@angular/material/input';
import { ReactiveFormsModule } from '@angular/forms';
import { AsyncPipe } from '@angular/common';
import { ControlSchemeBindingType, ValidationMessagesDirective } from '@app/shared-misc';
import { HideOnSmallScreenDirective, ToggleControlComponent } from '@app/shared-ui';
import { HideOnSmallScreenDirective, ToggleControlComponent } from '@app/shared-components';
import { HubMotorPositionFacadeService, SetAngleBindingInputAction } from '@app/store';
import { BindingControlSelectHubComponent, BindingControlSelectIoComponent, MotorPositionAdjustmentComponent } from '@app/shared-control-schemes';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { TranslocoPipe } from '@ngneat/transloco';
import { MatDividerModule } from '@angular/material/divider';
import { MatError } from '@angular/material/form-field';
import { ControlSchemeBindingType, ValidationErrorsL10nMap, ValidationMessagesDirective } from '@app/shared-misc';
import { HideOnSmallScreenDirective, ToggleControlComponent } from '@app/shared-ui';
import { HideOnSmallScreenDirective, ToggleControlComponent } from '@app/shared-components';
import { InputPipeType, SpeedBindingInputAction } from '@app/store';
import { BindingControlSelectHubComponent, BindingControlSelectIoComponent } from '@app/shared-control-schemes';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { MatDividerModule } from '@angular/material/divider';
import { MatInputModule } from '@angular/material/input';
import { ReactiveFormsModule } from '@angular/forms';
import { ControlSchemeBindingType, ValidationErrorsL10nMap, ValidationMessagesDirective } from '@app/shared-misc';
import { HideOnSmallScreenDirective, ToggleControlComponent } from '@app/shared-ui';
import { HideOnSmallScreenDirective, ToggleControlComponent } from '@app/shared-components';
import { StepperBindingInputAction } from '@app/store';
import { BindingControlSelectHubComponent, BindingControlSelectIoComponent } from '@app/shared-control-schemes';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { MatDividerModule } from '@angular/material/divider';
import { MatInputModule } from '@angular/material/input';
import { ReactiveFormsModule } from '@angular/forms';
import { ControlSchemeBindingType, ValidationMessagesDirective } from '@app/shared-misc';
import { HideOnSmallScreenDirective, ToggleControlComponent } from '@app/shared-ui';
import { HideOnSmallScreenDirective, ToggleControlComponent } from '@app/shared-components';
import { BindingControlSelectHubComponent, BindingControlSelectIoComponent } from '@app/shared-control-schemes';
import { TrainBindingInputAction } from '@app/store';

Expand Down
2 changes: 1 addition & 1 deletion modules/pages/about/src/lib/about-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
import { TranslocoPipe, TranslocoService } from '@ngneat/transloco';
import { AsyncPipe } from '@angular/common';
import { TitleService } from '@app/shared-misc';
import { ChangelogComponent } from '@app/shared-ui';
import { ChangelogComponent } from '@app/shared-components';

@Component({
standalone: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { MatButtonModule } from '@angular/material/button';
import { TranslocoPipe, TranslocoService } from '@ngneat/transloco';
import { AsyncPipe } from '@angular/common';
import { IUnsavedChangesComponent, RoutesBuilderService, TitleService } from '@app/shared-misc';
import { BreadcrumbsService, FeatureToolbarControlsDirective, HintComponent } from '@app/shared-ui';
import { BreadcrumbsService, FeatureToolbarControlsDirective, HintComponent } from '@app/shared-components';
import { CONTROL_SCHEME_ACTIONS, ControlSchemeBinding, ROUTER_SELECTORS } from '@app/store';
import { BindingEditComponent } from '@app/shared-control-schemes';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Router } from '@angular/router';
import { concatLatestFrom } from '@ngrx/effects';
import { AsyncPipe } from '@angular/common';
import { IUnsavedChangesComponent, RoutesBuilderService, TitleService } from '@app/shared-misc';
import { BreadcrumbsService, ConfirmationDialogModule, ConfirmationDialogService, FeatureToolbarControlsDirective } from '@app/shared-ui';
import { BreadcrumbsService, ConfirmationDialogModule, ConfirmationDialogService, FeatureToolbarControlsDirective } from '@app/shared-components';
import { CONTROL_SCHEME_ACTIONS, ControlSchemeBinding, ROUTER_SELECTORS } from '@app/store';
import { BindingEditComponent } from '@app/shared-control-schemes';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { MatButtonModule } from '@angular/material/button';
import { Router } from '@angular/router';
import { AsyncPipe } from '@angular/common';
import { IUnsavedChangesComponent, RoutesBuilderService, TitleService, ValidationMessagesDirective } from '@app/shared-misc';
import { BreadcrumbsService, FeatureToolbarControlsDirective, HintComponent, PortIdToPortNamePipe, PortIdToPortNameService } from '@app/shared-ui';
import { BreadcrumbsService, FeatureToolbarControlsDirective, HintComponent, PortIdToPortNamePipe, PortIdToPortNameService } from '@app/shared-components';
import { CONTROL_SCHEME_ACTIONS } from '@app/store';
import { PortConfigFormBuilderService } from '@app/shared-control-schemes';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { MatInput } from '@angular/material/input';
import { MatAnchor, MatButton } from '@angular/material/button';
import { Router, RouterLink } from '@angular/router';
import { CONTROL_SCHEME_ACTIONS } from '@app/store';
import { BreadcrumbsService, EllipsisTitleDirective, FeatureToolbarControlsDirective } from '@app/shared-ui';
import { BreadcrumbsService, EllipsisTitleDirective, FeatureToolbarControlsDirective } from '@app/shared-components';
import { CONTROL_SCHEME_NAME_IS_NOT_UNIQUE, ControlSchemeFormBuilderService } from '@app/shared-control-schemes';
import { IUnsavedChangesComponent, RoutesBuilderService, TitleService, ValidationErrorsL10nMap, ValidationMessagesDirective } from '@app/shared-misc';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Store } from '@ngrx/store';
import { CONTROLLER_CONNECTION_SELECTORS, ControlSchemeBinding, ControlSchemeBindingInputs, ControlSchemeInputConfig } from '@app/store';
import { BINDING_CONTROLLER_INPUT_NAME_RESOLVER, IBindingControllerInputNameResolver } from '@app/shared-control-schemes';
import { ControlSchemeBindingType } from '@app/shared-misc';
import { EllipsisTitleDirective } from '@app/shared-ui';
import { EllipsisTitleDirective } from '@app/shared-components';

import { BINDING_INPUT_NAME_RESOLVER, IBindingInputNameResolver } from './i-binding-input-name-resolver';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChangeDetectionStrategy, Component, Input, Signal, WritableSignal, computed, signal } from '@angular/core';
import { Store } from '@ngrx/store';
import { MatCard, MatCardContent } from '@angular/material/card';
import { HubInlineViewComponent } from '@app/shared-ui';
import { HubInlineViewComponent } from '@app/shared-components';

import { HUB_LIST_ITEM_SELECTORS } from './hub-list-item.selectors';
import { HubPortListItemComponent } from '../hub-port-list-item';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { MatIcon } from '@angular/material/icon';
import { RouterLink } from '@angular/router';
import { MatError } from '@angular/material/form-field';
import { MatTooltip } from '@angular/material/tooltip';
import { EllipsisTitleDirective, IoTypeToL10nKeyPipe, PortIdToPortNamePipe } from '@app/shared-ui';
import { EllipsisTitleDirective, IoTypeToL10nKeyPipe, PortIdToPortNamePipe } from '@app/shared-components';
import { ControlSchemeBinding, PORT_TASKS_SELECTORS, PortCommandTask } from '@app/store';
import { RoutesBuilderService } from '@app/shared-misc';
import { BindingTypeToL10nKeyPipe } from '@app/shared-control-schemes';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Router } from '@angular/router';
import { MatDialog, MatDialogModule } from '@angular/material/dialog';
import { MatCard, MatCardContent } from '@angular/material/card';
import { ISchemeRunnerComponent, RoutesBuilderService, ScreenSizeObserverService, TitleService } from '@app/shared-misc';
import { BreadcrumbsService, ConfirmationDialogModule, ConfirmationDialogService } from '@app/shared-ui';
import { BreadcrumbsService, ConfirmationDialogModule, ConfirmationDialogService } from '@app/shared-components';
import { CONTROLLER_INPUT_ACTIONS, CONTROL_SCHEME_ACTIONS, ROUTER_SELECTORS } from '@app/store';
import { ExportControlSchemeDialogComponent, ExportControlSchemeDialogData } from '@app/shared-control-schemes';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { TranslocoPipe } from '@ngneat/transloco';
import { FeatureToolbarControlsDirective } from '@app/shared-ui';
import { FeatureToolbarControlsDirective } from '@app/shared-components';

@Component({
standalone: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
EllipsisTitleDirective,
FeatureToolbarControlsDirective,
HintComponent
} from '@app/shared-ui';
} from '@app/shared-components';
import { CONTROL_SCHEME_ACTIONS, CONTROL_SCHEME_SELECTORS, ControlSchemeModel } from '@app/store';
import {
ControlSchemeViewUrlPipe,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { filter, map, switchMap } from 'rxjs';
import { AsyncPipe } from '@angular/common';
import { ControllerNamePipe, ControllerTypeIconNamePipe, ControllerTypeToL10nKeyPipe } from '@app/shared-controller';
import { RoutesBuilderService, ScreenSizeObserverService, TitleService } from '@app/shared-misc';
import { BreadcrumbsService, HintComponent } from '@app/shared-ui';
import { BreadcrumbsService, HintComponent } from '@app/shared-components';
import { ControllerProfilesFacadeService } from '@app/store';

import { CONTROLLER_VIEW_PAGE_SELECTORS } from './controller-view-page-selectors';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ReactiveFormsModule } from '@angular/forms';
import { MatIconModule } from '@angular/material/icon';
import { MatTooltipModule } from '@angular/material/tooltip';
import { AsyncPipe } from '@angular/common';
import { InputActivityIndicatorComponent, RangeControlComponent, SliderControlComponent, ToggleControlComponent } from '@app/shared-ui';
import { InputActivityIndicatorComponent, RangeControlComponent, SliderControlComponent, ToggleControlComponent } from '@app/shared-components';

import { GamepadSettingsAxisSettingsViewModel } from '../types';
import { InputOutputDiagramComponent } from '../input-output-diagram';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { MatDividerModule } from '@angular/material/divider';
import { TranslocoPipe } from '@ngneat/transloco';
import { MatIconModule } from '@angular/material/icon';
import { AsyncPipe } from '@angular/common';
import { InputActivityIndicatorComponent, RangeControlComponent, SliderControlComponent, ToggleControlComponent } from '@app/shared-ui';
import { InputActivityIndicatorComponent, RangeControlComponent, SliderControlComponent, ToggleControlComponent } from '@app/shared-components';

import { GamepadSettingsButtonSettingsViewModel } from '../types';
import { InputOutputDiagramComponent } from '../input-output-diagram';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { MatExpansionModule } from '@angular/material/expansion';
import { MatButtonModule } from '@angular/material/button';
import { AsyncPipe } from '@angular/common';
import { GamepadProfile, GamepadProfileFactoryService } from '@app/controller-profiles';
import { HideOnSmallScreenDirective, InputActivityIndicatorComponent, RangeControlComponent, ToggleControlComponent } from '@app/shared-ui';
import { HideOnSmallScreenDirective, InputActivityIndicatorComponent, RangeControlComponent, ToggleControlComponent } from '@app/shared-components';
import { CONTROLLER_INPUT_ACTIONS, CONTROLLER_SELECTORS, GamepadSettingsModel } from '@app/store';

import { IControllerSettingsRenderer } from '../i-controller-settings-renderer';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { MatIconModule } from '@angular/material/icon';
import { AsyncPipe } from '@angular/common';
import { ControllerNamePipe, ControllerTypeIconNamePipe, ControllerViewHrefPipe } from '@app/shared-controller';
import { RoutesBuilderService, TitleService } from '@app/shared-misc';
import { BreadcrumbsService, ConfirmationDialogModule, ConfirmationDialogService, HintComponent } from '@app/shared-ui';
import { BreadcrumbsService, ConfirmationDialogModule, ConfirmationDialogService, HintComponent } from '@app/shared-components';
import { CONTROLLERS_ACTIONS } from '@app/store';
import { ControlSchemeViewUrlPipe } from '@app/shared-control-schemes';

Expand Down
2 changes: 1 addition & 1 deletion modules/pages/help/src/lib/help/help-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { TranslocoPipe, TranslocoService } from '@ngneat/transloco';
import { of } from 'rxjs';
import { InstallationManualsListComponent } from '@app/manuals';
import { RoutesBuilderService, TitleService } from '@app/shared-misc';
import { BreadcrumbsService } from '@app/shared-ui';
import { BreadcrumbsService } from '@app/shared-components';

@Component({
standalone: true,
Expand Down
2 changes: 1 addition & 1 deletion modules/pages/hub-edit/src/lib/hub-edit-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Router, RouterLink } from '@angular/router';
import { Actions, ofType } from '@ngrx/effects';
import { AsyncPipe } from '@angular/common';
import { IUnsavedChangesComponent, RoutesBuilderService, TitleService, ValidationErrorsL10nMap, ValidationMessagesDirective } from '@app/shared-misc';
import { BreadcrumbsService, FeatureToolbarControlsDirective, HintComponent } from '@app/shared-ui';
import { BreadcrumbsService, FeatureToolbarControlsDirective, HintComponent } from '@app/shared-components';
import { HUBS_ACTIONS, HubModel, ROUTER_SELECTORS } from '@app/store';

import { HUB_EDIT_PAGE_SELECTORS } from './hub-edit-page.selectors';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { TranslocoPipe } from '@ngneat/transloco';
import { MatIconModule } from '@angular/material/icon';
import { MatExpansionModule } from '@angular/material/expansion';
import { IoTypeToL10nKeyPipe, PortIdToPortNamePipe } from '@app/shared-ui';
import { IoTypeToL10nKeyPipe, PortIdToPortNamePipe } from '@app/shared-components';

import { HubIoViewModel } from '../hub-view-page.selectors';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { MatButtonModule } from '@angular/material/button';
import { MatCardModule } from '@angular/material/card';
import { TranslocoPipe } from '@ngneat/transloco';
import { RoutesBuilderService } from '@app/shared-misc';
import { EllipsisTitleDirective, HubTypeToL10nKeyPipe } from '@app/shared-ui';
import { EllipsisTitleDirective, HubTypeToL10nKeyPipe } from '@app/shared-components';
import { HubModel, HubRuntimeDataModel } from '@app/store';

@Component({
Expand Down
2 changes: 1 addition & 1 deletion modules/pages/hub-view/src/lib/hub-view-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Router, RouterLink } from '@angular/router';
import { MatAnchor, MatButton } from '@angular/material/button';
import { AsyncPipe } from '@angular/common';
import { RoutesBuilderService, TitleService } from '@app/shared-misc';
import { BreadcrumbsService, FeatureToolbarControlsDirective, HintComponent } from '@app/shared-ui';
import { BreadcrumbsService, FeatureToolbarControlsDirective, HintComponent } from '@app/shared-components';
import { HUBS_ACTIONS, HubModel, ROUTER_SELECTORS, attachedIosIdFn } from '@app/store';

import { HubPropertiesViewComponent } from './hub-properties-view';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { MatCardModule } from '@angular/material/card';
import { Observable, of } from 'rxjs';
import { AsyncPipe } from '@angular/common';
import { RoutesBuilderService, TitleService } from '@app/shared-misc';
import { BreadcrumbsService, ConfirmationDialogModule, ConfirmationDialogService, HintComponent, HubInlineViewComponent } from '@app/shared-ui';
import { BreadcrumbsService, ConfirmationDialogModule, ConfirmationDialogService, HintComponent, HubInlineViewComponent } from '@app/shared-components';
import { HUBS_ACTIONS } from '@app/store';

import { HUBS_LIST_PAGE_SELECTORS, HubListViewModel } from './hubs-list-page.selectors';
Expand Down
Loading

0 comments on commit 639d6e0

Please sign in to comment.