From d6620f4c099808233e66cb5388e8bc72051cea86 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Sat, 13 Jan 2024 23:57:20 -0800
Subject: [PATCH] Replace all referenced icons
---
src-ui/package-lock.json | 17 ++
src-ui/package.json | 1 +
src-ui/src/app/app.module.ts | 165 ++++++++++++++++++
.../admin/config/config.component.html | 4 +-
.../admin/settings/settings.component.html | 8 +-
.../admin/tasks/tasks.component.html | 20 +--
.../users-groups/users-groups.component.html | 24 +--
.../app-frame/app-frame.component.html | 130 ++++----------
.../clearable-badge.component.html | 8 +-
.../custom-fields-dropdown.component.html | 12 +-
.../date-dropdown.component.html | 20 +--
.../workflow-edit-dialog.component.html | 16 +-
.../filterable-dropdown.component.html | 8 +-
.../toggleable-dropdown-button.component.html | 12 +-
.../common/input/check/check.component.html | 4 +-
.../common/input/color/color.component.html | 5 +-
.../common/input/date/date.component.html | 12 +-
.../document-link.component.html | 12 +-
.../common/input/file/file.component.html | 8 +-
.../common/input/number/number.component.html | 4 +-
.../input/password/password.component.html | 4 +-
.../common/input/select/select.component.html | 12 +-
.../common/input/switch/switch.component.html | 12 +-
.../common/input/tags/tags.component.html | 12 +-
.../common/input/text/text.component.html | 4 +-
.../common/input/url/url.component.html | 8 +-
...permissions-filter-dropdown.component.html | 28 +--
.../preview-popup.component.html | 4 +-
.../profile-edit-dialog.component.html | 11 +-
.../share-links-dropdown.component.html | 23 +--
.../common/toasts/toasts.component.html | 51 +++---
.../saved-view-widget.component.html | 8 +-
.../upload-file-widget.component.html | 9 +-
.../widget-frame/widget-frame.component.html | 4 +-
.../document-detail.component.html | 32 +---
.../metadata-collapse.component.html | 8 +-
.../bulk-editor/bulk-editor.component.html | 28 +--
.../document-card-large.component.html | 48 ++---
.../document-card-small.component.html | 42 ++---
.../document-list.component.html | 32 +---
.../filter-editor.component.html | 8 +-
.../document-notes.component.html | 4 +-
.../custom-fields.component.html | 12 +-
.../manage/mail/mail.component.html | 32 +---
.../management-list.component.html | 28 +--
.../manage/workflows/workflows.component.html | 12 +-
.../not-found/not-found.component.html | 4 +-
47 files changed, 394 insertions(+), 576 deletions(-)
diff --git a/src-ui/package-lock.json b/src-ui/package-lock.json
index 6a8a18a12..f51e4056e 100644
--- a/src-ui/package-lock.json
+++ b/src-ui/package-lock.json
@@ -25,6 +25,7 @@
"bootstrap": "^5.3.2",
"file-saver": "^2.0.5",
"mime-names": "^1.0.0",
+ "ngx-bootstrap-icons": "^1.9.3",
"ngx-color": "^9.0.0",
"ngx-cookie-service": "^17.0.1",
"ngx-file-drop": "^16.0.0",
@@ -13850,6 +13851,22 @@
"integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
"dev": true
},
+ "node_modules/ngx-bootstrap-icons": {
+ "version": "1.9.3",
+ "resolved": "https://registry.npmjs.org/ngx-bootstrap-icons/-/ngx-bootstrap-icons-1.9.3.tgz",
+ "integrity": "sha512-UsFqJ/cn0u5W39hVMIDbm+ze1dCF9fDV839scqeimi70Efcmg41zOx6GgR6i2gWAVFR0OBso1cdqb4E75XhTSw==",
+ "dependencies": {
+ "tslib": "^2.3.0"
+ },
+ "engines": {
+ "node": ">= 16.18.1",
+ "npm": ">= 8.11.0"
+ },
+ "peerDependencies": {
+ "@angular/common": ">= 13.3.8",
+ "@angular/core": ">= 13.3.8"
+ }
+ },
"node_modules/ngx-color": {
"version": "9.0.0",
"resolved": "https://registry.npmjs.org/ngx-color/-/ngx-color-9.0.0.tgz",
diff --git a/src-ui/package.json b/src-ui/package.json
index 904c2b9a0..baefa35c3 100644
--- a/src-ui/package.json
+++ b/src-ui/package.json
@@ -27,6 +27,7 @@
"bootstrap": "^5.3.2",
"file-saver": "^2.0.5",
"mime-names": "^1.0.0",
+ "ngx-bootstrap-icons": "^1.9.3",
"ngx-color": "^9.0.0",
"ngx-cookie-service": "^17.0.1",
"ngx-file-drop": "^16.0.0",
diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.ts
index a97897c36..d9a2ea28f 100644
--- a/src-ui/src/app/app.module.ts
+++ b/src-ui/src/app/app.module.ts
@@ -111,6 +111,170 @@ import { PreviewPopupComponent } from './components/common/preview-popup/preview
import { SwitchComponent } from './components/common/input/switch/switch.component'
import { ConfigComponent } from './components/admin/config/config.component'
import { FileComponent } from './components/common/input/file/file.component'
+import { NgxBootstrapIconsModule } from 'ngx-bootstrap-icons'
+import {
+ archive,
+ arrowCounterclockwise,
+ arrowDown,
+ arrowLeft,
+ arrowRepeat,
+ arrowRight,
+ arrowRightShort,
+ arrowUpRight,
+ asterisk,
+ boxArrowUp,
+ boxArrowUpRight,
+ boxes,
+ calendar,
+ calendarEvent,
+ caretDown,
+ caretUp,
+ chatLeftText,
+ check,
+ check2All,
+ checkAll,
+ checkLg,
+ chevronDoubleLeft,
+ chevronDoubleRight,
+ clipboardCheckFill,
+ clipboardFill,
+ dash,
+ diagram3,
+ dice5,
+ doorOpen,
+ download,
+ envelope,
+ exclamationTriangle,
+ eye,
+ fileEarmark,
+ fileEarmarkCheck,
+ fileEarmarkFill,
+ files,
+ fileText,
+ filter,
+ folder,
+ folderFill,
+ funnel,
+ gear,
+ grid,
+ gripVertical,
+ hash,
+ hddStack,
+ house,
+ infoCircle,
+ link,
+ listTask,
+ listUl,
+ pencil,
+ people,
+ peopleFill,
+ person,
+ personCircle,
+ personFill,
+ personFillLock,
+ personLock,
+ plus,
+ plusCircle,
+ questionCircle,
+ search,
+ slashCircle,
+ sliders2Vertical,
+ sortAlphaDown,
+ sortAlphaUpAlt,
+ tagFill,
+ tags,
+ textIndentLeft,
+ textLeft,
+ threeDots,
+ threeDotsVertical,
+ trash,
+ uiRadios,
+ upcScan,
+ x,
+ xLg,
+} from 'ngx-bootstrap-icons'
+
+const icons = {
+ archive,
+ arrowCounterclockwise,
+ arrowDown,
+ arrowLeft,
+ arrowRepeat,
+ arrowRight,
+ arrowRightShort,
+ arrowUpRight,
+ asterisk,
+ boxArrowUp,
+ boxArrowUpRight,
+ boxes,
+ calendar,
+ calendarEvent,
+ caretDown,
+ caretUp,
+ chatLeftText,
+ check,
+ check2All,
+ checkAll,
+ checkLg,
+ chevronDoubleLeft,
+ chevronDoubleRight,
+ clipboardCheckFill,
+ clipboardFill,
+ dash,
+ diagram3,
+ dice5,
+ doorOpen,
+ download,
+ envelope,
+ exclamationTriangle,
+ eye,
+ fileEarmark,
+ fileEarmarkCheck,
+ fileEarmarkFill,
+ files,
+ fileText,
+ filter,
+ folder,
+ folderFill,
+ funnel,
+ gear,
+ grid,
+ gripVertical,
+ hash,
+ hddStack,
+ house,
+ infoCircle,
+ link,
+ listTask,
+ listUl,
+ pencil,
+ people,
+ peopleFill,
+ person,
+ personCircle,
+ personFill,
+ personFillLock,
+ personLock,
+ plus,
+ plusCircle,
+ questionCircle,
+ search,
+ slashCircle,
+ sliders2Vertical,
+ sortAlphaDown,
+ sortAlphaUpAlt,
+ tagFill,
+ tags,
+ textIndentLeft,
+ textLeft,
+ threeDots,
+ threeDotsVertical,
+ trash,
+ uiRadios,
+ upcScan,
+ x,
+ xLg,
+}
import localeAf from '@angular/common/locales/af'
import localeAr from '@angular/common/locales/ar'
@@ -282,6 +446,7 @@ function initializeApp(settings: SettingsService) {
ColorSliderModule,
TourNgBootstrapModule,
DragDropModule,
+ NgxBootstrapIconsModule.pick(icons),
],
providers: [
{
diff --git a/src-ui/src/app/components/admin/config/config.component.html b/src-ui/src/app/components/admin/config/config.component.html
index 53beb60e0..d1edf49e6 100644
--- a/src-ui/src/app/components/admin/config/config.component.html
+++ b/src-ui/src/app/components/admin/config/config.component.html
@@ -17,9 +17,7 @@
{{option.title}}
-
+
diff --git a/src-ui/src/app/components/admin/settings/settings.component.html b/src-ui/src/app/components/admin/settings/settings.component.html
index 07b062a00..219c520c9 100644
--- a/src-ui/src/app/components/admin/settings/settings.component.html
+++ b/src-ui/src/app/components/admin/settings/settings.component.html
@@ -2,9 +2,7 @@
Open Django Admin
-
+
@@ -135,9 +133,7 @@
diff --git a/src-ui/src/app/components/admin/tasks/tasks.component.html b/src-ui/src/app/components/admin/tasks/tasks.component.html
index 6531f146a..e77940f5f 100644
--- a/src-ui/src/app/components/admin/tasks/tasks.component.html
+++ b/src-ui/src/app/components/admin/tasks/tasks.component.html
@@ -1,14 +1,10 @@
@@ -75,24 +71,18 @@
}
|
@if (task.related_document) {
}
diff --git a/src-ui/src/app/components/admin/users-groups/users-groups.component.html b/src-ui/src/app/components/admin/users-groups/users-groups.component.html
index ce794f873..9e4ef9839 100644
--- a/src-ui/src/app/components/admin/users-groups/users-groups.component.html
+++ b/src-ui/src/app/components/admin/users-groups/users-groups.component.html
@@ -5,9 +5,7 @@
Users
@@ -29,14 +27,10 @@
@@ -50,9 +44,7 @@
Groups
@@ -75,14 +67,10 @@
diff --git a/src-ui/src/app/components/app-frame/app-frame.component.html b/src-ui/src/app/components/app-frame/app-frame.component.html
index ba21c8bac..a656ffbae 100644
--- a/src-ui/src/app/components/app-frame/app-frame.component.html
+++ b/src-ui/src/app/components/app-frame/app-frame.component.html
@@ -27,17 +27,13 @@
diff --git a/src-ui/src/app/components/common/input/document-link/document-link.component.html b/src-ui/src/app/components/common/input/document-link/document-link.component.html
index 8e4074035..e1be7ce32 100644
--- a/src-ui/src/app/components/common/input/document-link/document-link.component.html
+++ b/src-ui/src/app/components/common/input/document-link/document-link.component.html
@@ -6,9 +6,7 @@
}
@if (removable) {
}
@@ -29,13 +27,9 @@
(change)="onChange(selectedDocuments)">
diff --git a/src-ui/src/app/components/common/input/file/file.component.html b/src-ui/src/app/components/common/input/file/file.component.html
index 9ad82a99c..a4ebcc2be 100644
--- a/src-ui/src/app/components/common/input/file/file.component.html
+++ b/src-ui/src/app/components/common/input/file/file.component.html
@@ -6,9 +6,7 @@
}
@if (removable) {
}
@@ -20,9 +18,7 @@
{{filename}}
}
diff --git a/src-ui/src/app/components/common/input/number/number.component.html b/src-ui/src/app/components/common/input/number/number.component.html
index c9baf38a1..19e368847 100644
--- a/src-ui/src/app/components/common/input/number/number.component.html
+++ b/src-ui/src/app/components/common/input/number/number.component.html
@@ -6,9 +6,7 @@
}
@if (removable) {
}
diff --git a/src-ui/src/app/components/common/input/password/password.component.html b/src-ui/src/app/components/common/input/password/password.component.html
index b94750f94..1a70ff4f6 100644
--- a/src-ui/src/app/components/common/input/password/password.component.html
+++ b/src-ui/src/app/components/common/input/password/password.component.html
@@ -4,9 +4,7 @@
@if (showReveal) {
}
diff --git a/src-ui/src/app/components/common/input/select/select.component.html b/src-ui/src/app/components/common/input/select/select.component.html
index 617799a72..e150dee85 100644
--- a/src-ui/src/app/components/common/input/select/select.component.html
+++ b/src-ui/src/app/components/common/input/select/select.component.html
@@ -6,9 +6,7 @@
}
@if (removable) {
}
@@ -40,16 +38,12 @@
@if (allowCreateNew) {
}
@if (showFilter) {
}
diff --git a/src-ui/src/app/components/common/input/switch/switch.component.html b/src-ui/src/app/components/common/input/switch/switch.component.html
index e0b63c5f7..db5c1ec0c 100644
--- a/src-ui/src/app/components/common/input/switch/switch.component.html
+++ b/src-ui/src/app/components/common/input/switch/switch.component.html
@@ -5,16 +5,12 @@
@if (removable) {
}
@@ -26,9 +22,7 @@
}
diff --git a/src-ui/src/app/components/common/input/tags/tags.component.html b/src-ui/src/app/components/common/input/tags/tags.component.html
index c4207fc61..dfd9c3419 100644
--- a/src-ui/src/app/components/common/input/tags/tags.component.html
+++ b/src-ui/src/app/components/common/input/tags/tags.component.html
@@ -18,9 +18,7 @@
-
+
@if (item.id && tags) {
}
@@ -36,16 +34,12 @@
@if (allowCreate) {
}
@if (showFilter) {
}
diff --git a/src-ui/src/app/components/common/input/text/text.component.html b/src-ui/src/app/components/common/input/text/text.component.html
index 4169d09db..c4b6b1d4b 100644
--- a/src-ui/src/app/components/common/input/text/text.component.html
+++ b/src-ui/src/app/components/common/input/text/text.component.html
@@ -6,9 +6,7 @@
}
@if (removable) {
}
diff --git a/src-ui/src/app/components/common/input/url/url.component.html b/src-ui/src/app/components/common/input/url/url.component.html
index cca0ee259..dfc0b70d7 100644
--- a/src-ui/src/app/components/common/input/url/url.component.html
+++ b/src-ui/src/app/components/common/input/url/url.component.html
@@ -4,9 +4,7 @@
@if (removable) {
}
@@ -14,9 +12,7 @@
|
diff --git a/src-ui/src/app/components/dashboard/widgets/upload-file-widget/upload-file-widget.component.html b/src-ui/src/app/components/dashboard/widgets/upload-file-widget/upload-file-widget.component.html
index f178c2d9f..fe6642aa9 100644
--- a/src-ui/src/app/components/dashboard/widgets/upload-file-widget/upload-file-widget.component.html
+++ b/src-ui/src/app/components/dashboard/widgets/upload-file-widget/upload-file-widget.component.html
@@ -14,10 +14,7 @@
@if (getStatusCompleted().length > 0) {
Dismiss completed
-
+
}
@@ -64,9 +61,7 @@
@if (status.documentId) {
}
diff --git a/src-ui/src/app/components/dashboard/widgets/widget-frame/widget-frame.component.html b/src-ui/src/app/components/dashboard/widgets/widget-frame/widget-frame.component.html
index ddf412566..41eb0d1a0 100644
--- a/src-ui/src/app/components/dashboard/widgets/widget-frame/widget-frame.component.html
+++ b/src-ui/src/app/components/dashboard/widgets/widget-frame/widget-frame.component.html
@@ -4,9 +4,7 @@
@if (draggable) {
-
+
}
{{title}}
diff --git a/src-ui/src/app/components/document-detail/document-detail.component.html b/src-ui/src/app/components/document-detail/document-detail.component.html
index eaf7d298a..f494d09ec 100644
--- a/src-ui/src/app/components/document-detail/document-detail.component.html
+++ b/src-ui/src/app/components/document-detail/document-detail.component.html
@@ -19,16 +19,12 @@
}
- Download
+ Download
@if (metadata?.has_archive_version) {
@@ -43,22 +39,16 @@
@@ -84,19 +74,13 @@