diff --git a/client/package.json b/client/package.json index 946cd109c..50b33d7c3 100644 --- a/client/package.json +++ b/client/package.json @@ -44,6 +44,7 @@ "@angularclass/hmr": "^2.1.3", "@neos21/bootstrap3-glyphicons": "^1.0.1", "@ng-bootstrap/ng-bootstrap": "^7.0.0", + "@ng-select/ng-select": "^5.0.0", "@ngx-i18nsupport/ngx-i18nsupport": "^1.1.6", "@ngx-i18nsupport/tooling": "^8.0.3", "@ngx-loading-bar/core": "^5.0.0", @@ -95,7 +96,6 @@ "linkifyjs": "^2.1.5", "lodash-es": "^4.17.4", "markdown-it": "^11.0.0", - "ngx-chips": "2.1.0", "ngx-pipes": "^2.6.0", "node-sass": "^4.9.3", "npm-font-source-sans-pro": "^1.0.2", @@ -133,6 +133,5 @@ "webtorrent": "^0.108.1", "whatwg-fetch": "^3.0.0", "zone.js": "~0.10.2" - }, - "dependencies": {} + } } diff --git a/client/src/app/+search/search-filters.component.html b/client/src/app/+search/search-filters.component.html index e20aef8fb..b36b1d2ae 100644 --- a/client/src/app/+search/search-filters.component.html +++ b/client/src/app/+search/search-filters.component.html @@ -144,12 +144,7 @@ - +
@@ -157,12 +152,7 @@ - +
diff --git a/client/src/app/+search/search-filters.component.scss b/client/src/app/+search/search-filters.component.scss index a88a1c0b0..68ac6d021 100644 --- a/client/src/app/+search/search-filters.component.scss +++ b/client/src/app/+search/search-filters.component.scss @@ -65,5 +65,3 @@ input[type=submit] { display: flex; white-space: nowrap; } - -@include ng2-tags; diff --git a/client/src/app/+search/search-filters.component.ts b/client/src/app/+search/search-filters.component.ts index fc1db3258..13ad61647 100644 --- a/client/src/app/+search/search-filters.component.ts +++ b/client/src/app/+search/search-filters.component.ts @@ -1,5 +1,4 @@ import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core' -import { ValidatorFn } from '@angular/forms' import { ServerService } from '@app/core' import { VideoValidatorsService } from '@app/shared/shared-forms' import { AdvancedSearch } from '@app/shared/shared-search' @@ -20,9 +19,6 @@ export class SearchFiltersComponent implements OnInit { videoLicences: VideoConstant[] = [] videoLanguages: VideoConstant[] = [] - tagValidators: ValidatorFn[] - tagValidatorsMessages: { [ name: string ]: string } - publishedDateRanges: { id: string, label: string }[] = [] sorts: { id: string, label: string }[] = [] durationRanges: { id: string, label: string }[] = [] @@ -40,8 +36,6 @@ export class SearchFiltersComponent implements OnInit { private videoValidatorsService: VideoValidatorsService, private serverService: ServerService ) { - this.tagValidators = this.videoValidatorsService.VIDEO_TAGS.VALIDATORS - this.tagValidatorsMessages = this.videoValidatorsService.VIDEO_TAGS.MESSAGES this.publishedDateRanges = [ { id: 'any_published_date', diff --git a/client/src/app/+search/search.module.ts b/client/src/app/+search/search.module.ts index ee4f07ad1..e85ae07d0 100644 --- a/client/src/app/+search/search.module.ts +++ b/client/src/app/+search/search.module.ts @@ -1,4 +1,3 @@ -import { TagInputModule } from 'ngx-chips' import { NgModule } from '@angular/core' import { SharedFormModule } from '@app/shared/shared-forms' import { SharedMainModule } from '@app/shared/shared-main' @@ -14,8 +13,6 @@ import { VideoLazyLoadResolver } from './video-lazy-load.resolver' @NgModule({ imports: [ - TagInputModule, - SearchRoutingModule, SharedMainModule, @@ -31,7 +28,6 @@ import { VideoLazyLoadResolver } from './video-lazy-load.resolver' ], exports: [ - TagInputModule, SearchComponent ], diff --git a/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.html b/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.html index 6a9e31b5a..6a07dafa7 100644 --- a/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.html +++ b/client/src/app/+videos/+video-edit/shared/video-caption-add-modal.component.html @@ -8,11 +8,11 @@