From 8572d2a8cdb02bcbeda849a5dcb226d6ce68414d Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 4 Dec 2024 00:20:47 -0800 Subject: [PATCH] Basic frontend --- src-ui/src/app/app.module.ts | 2 + .../filterable-dropdown.component.html | 5 ++ .../filterable-dropdown.component.ts | 36 ++++---- .../bulk-editor/bulk-editor.component.html | 3 + .../bulk-editor/bulk-editor.component.spec.ts | 51 +++++++++++ .../bulk-editor/bulk-editor.component.ts | 31 +++++++ ...tom-fields-bulk-edit-dialog.component.html | 32 +++++++ ...tom-fields-bulk-edit-dialog.component.scss | 0 ...-fields-bulk-edit-dialog.component.spec.ts | 89 +++++++++++++++++++ ...ustom-fields-bulk-edit-dialog.component.ts | 85 ++++++++++++++++++ 10 files changed, 319 insertions(+), 15 deletions(-) create mode 100644 src-ui/src/app/components/document-list/bulk-editor/custom-fields-bulk-edit-dialog/custom-fields-bulk-edit-dialog.component.html create mode 100644 src-ui/src/app/components/document-list/bulk-editor/custom-fields-bulk-edit-dialog/custom-fields-bulk-edit-dialog.component.scss create mode 100644 src-ui/src/app/components/document-list/bulk-editor/custom-fields-bulk-edit-dialog/custom-fields-bulk-edit-dialog.component.spec.ts create mode 100644 src-ui/src/app/components/document-list/bulk-editor/custom-fields-bulk-edit-dialog/custom-fields-bulk-edit-dialog.component.ts diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.ts index 68124d541..79880c75b 100644 --- a/src-ui/src/app/app.module.ts +++ b/src-ui/src/app/app.module.ts @@ -133,6 +133,7 @@ import { DeletePagesConfirmDialogComponent } from './components/common/confirm-d import { TrashComponent } from './components/admin/trash/trash.component' import { EntriesComponent } from './components/common/input/entries/entries.component' import { SavedViewsComponent } from './components/manage/saved-views/saved-views.component' +import { CustomFieldsBulkEditDialogComponent } from './components/document-list/bulk-editor/custom-fields-bulk-edit-dialog/custom-fields-bulk-edit-dialog.component' import { airplane, archive, @@ -528,6 +529,7 @@ function initializeApp(settings: SettingsService) { TrashComponent, EntriesComponent, SavedViewsComponent, + CustomFieldsBulkEditDialogComponent, ], bootstrap: [AppComponent], imports: [ diff --git a/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html b/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html index 28ce03ad6..4b514a6dd 100644 --- a/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html +++ b/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html @@ -66,6 +66,11 @@ } } + @if (extraButtonTitle) { + + } @if (!editing && manyToOne) {