mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
99053: Removed ngx-bootstrap dependency
This commit is contained in:
@@ -105,7 +105,6 @@
|
|||||||
"ng-mocks": "11.11.2",
|
"ng-mocks": "11.11.2",
|
||||||
"ng2-file-upload": "1.4.0",
|
"ng2-file-upload": "1.4.0",
|
||||||
"ng2-nouislider": "^1.8.3",
|
"ng2-nouislider": "^1.8.3",
|
||||||
"ngx-bootstrap": "7.1.2",
|
|
||||||
"ngx-infinite-scroll": "^10.0.1",
|
"ngx-infinite-scroll": "^10.0.1",
|
||||||
"ngx-moment": "^5.0.0",
|
"ngx-moment": "^5.0.0",
|
||||||
"ngx-pagination": "5.0.0",
|
"ngx-pagination": "5.0.0",
|
||||||
|
@@ -21,12 +21,14 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="control-label">
|
<label class="control-label mb-1">
|
||||||
{{ 'advanced-workflow-action.rating.form.rating.label' | translate }}*
|
{{ 'advanced-workflow-action.rating.form.rating.label' | translate }}*
|
||||||
</label>
|
</label>
|
||||||
<rating [max]="advancedInfo?.maxValue" [ngClass]="{ 'text-danger': isInvalid('rating') }"
|
<div class="d-block">
|
||||||
class="d-block" formControlName="rating">
|
<ngb-rating [max]="advancedInfo?.maxValue" [ngClass]="{ 'text-danger': isInvalid('rating') }"
|
||||||
</rating>
|
formControlName="rating">
|
||||||
|
</ngb-rating>
|
||||||
|
</div>
|
||||||
<small *ngIf="isInvalid('rating')" class="invalid-feedback d-block">
|
<small *ngIf="isInvalid('rating')" class="invalid-feedback d-block">
|
||||||
{{ 'advanced-workflow-action.rating.form.rating.error' | translate }}
|
{{ 'advanced-workflow-action.rating.form.rating.error' | translate }}
|
||||||
</small>
|
</small>
|
||||||
|
@@ -18,7 +18,7 @@ import { WorkflowItemDataServiceStub } from '../../../shared/testing/workflow-it
|
|||||||
import { RouterStub } from '../../../shared/testing/router.stub';
|
import { RouterStub } from '../../../shared/testing/router.stub';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
import { VarDirective } from '../../../shared/utils/var.directive';
|
import { VarDirective } from '../../../shared/utils/var.directive';
|
||||||
import { RatingModule } from 'ngx-bootstrap/rating';
|
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { WorkflowItem } from '../../../core/submission/models/workflowitem.model';
|
import { WorkflowItem } from '../../../core/submission/models/workflowitem.model';
|
||||||
import { createSuccessfulRemoteDataObject$, createSuccessfulRemoteDataObject } from '../../../shared/remote-data.utils';
|
import { createSuccessfulRemoteDataObject$, createSuccessfulRemoteDataObject } from '../../../shared/remote-data.utils';
|
||||||
@@ -52,7 +52,7 @@ describe('AdvancedWorkflowActionRatingComponent', () => {
|
|||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
imports: [
|
imports: [
|
||||||
FormsModule,
|
FormsModule,
|
||||||
RatingModule,
|
NgbModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
TranslateModule.forRoot(),
|
TranslateModule.forRoot(),
|
||||||
],
|
],
|
||||||
|
@@ -31,7 +31,7 @@ import {
|
|||||||
ReviewersListComponent
|
ReviewersListComponent
|
||||||
} from './advanced-workflow-action/advanced-workflow-action-select-reviewer/reviewers-list/reviewers-list.component';
|
} from './advanced-workflow-action/advanced-workflow-action-select-reviewer/reviewers-list/reviewers-list.component';
|
||||||
import { FormModule } from '../shared/form/form.module';
|
import { FormModule } from '../shared/form/form.module';
|
||||||
import { RatingModule } from 'ngx-bootstrap/rating';
|
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -43,7 +43,7 @@ import { RatingModule } from 'ngx-bootstrap/rating';
|
|||||||
ItemPageModule,
|
ItemPageModule,
|
||||||
AccessControlModule,
|
AccessControlModule,
|
||||||
FormModule,
|
FormModule,
|
||||||
RatingModule,
|
NgbModule,
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
WorkflowItemDeleteComponent,
|
WorkflowItemDeleteComponent,
|
||||||
|
Reference in New Issue
Block a user