From 155fc34522626205f27e8803a527793fe72d3145 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 5 Aug 2020 00:50:07 +0200 Subject: [PATCH] add ng-select for templatable select options --- client/package.json | 4 +- .../video-caption-add-modal.component.html | 10 +-- .../video-caption-add-modal.component.scss | 5 +- .../shared/video-edit.component.html | 67 ++++++++----------- .../shared/video-edit.component.ts | 36 ++++++++-- .../video-import-torrent.component.html | 16 ++--- .../video-import-url.component.html | 16 ++--- .../video-add-components/video-send.scss | 7 ++ .../video-add-components/video-send.ts | 4 +- .../video-upload.component.html | 17 ++--- .../+video-edit/video-update.component.ts | 2 +- .../+video-edit/video-update.resolver.ts | 7 +- client/src/app/helpers/utils.ts | 7 +- .../select-channel.component.html | 18 +++++ .../shared-forms/select-channel.component.ts | 50 ++++++++++++++ .../select-options.component.html | 18 +++++ .../shared-forms/select-options.component.ts | 48 +++++++++++++ .../shared-forms/select-shared.component.scss | 18 +++++ .../shared/shared-forms/shared-form.module.ts | 10 ++- .../shared/shared-main/shared-main.module.ts | 7 +- .../shared/shared-main/video/video.service.ts | 12 ++-- client/src/sass/application.scss | 1 + client/src/sass/ng-select.scss | 29 ++++++++ client/yarn.lock | 7 ++ shared/models/videos/video-constant.model.ts | 1 + 25 files changed, 321 insertions(+), 96 deletions(-) create mode 100644 client/src/app/shared/shared-forms/select-channel.component.html create mode 100644 client/src/app/shared/shared-forms/select-channel.component.ts create mode 100644 client/src/app/shared/shared-forms/select-options.component.html create mode 100644 client/src/app/shared/shared-forms/select-options.component.ts create mode 100644 client/src/app/shared/shared-forms/select-shared.component.scss create mode 100644 client/src/sass/ng-select.scss diff --git a/client/package.json b/client/package.json index 946cd109c3b8..649df902089f 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", @@ -133,6 +134,5 @@ "webtorrent": "^0.108.1", "whatwg-fetch": "^3.0.0", "zone.js": "~0.10.2" - }, - "dependencies": {} + } } 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 6a9e31b5ac12..6a07dafa7b62 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 @@