A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Migrate Bootstrap utilities to v5
Yannic Schroeder4451acbf0b7c
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.htmlindex 3ef3a9d20..f1df1cd09 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@@ -4,13 +4,13 @@(click)="isMenuCollapsed = !isMenuCollapsed"><span class="navbar-toggler-icon"></span></button>- <a class="navbar-brand col-auto col-md-3 col-lg-2 mr-0 px-3 py-3 order-sm-0" routerLink="/dashboard">- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 198.43 238.91" width="1em" class="mr-2" fill="currentColor">+ <a class="navbar-brand col-auto col-md-3 col-lg-2 me-0 px-3 py-3 order-sm-0" routerLink="/dashboard">+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 198.43 238.91" width="1em" class="me-2" fill="currentColor"><path d="M194.7,0C164.22,70.94,17.64,79.74,64.55,194.06c.58,1.47-10.85,17-18.47,29.9-1.76-6.45-3.81-13.48-3.52-14.07,38.11-45.14-27.26-70.65-30.78-107.58C-4.64,131.62-10.5,182.92,39,212.53c.3,0,2.64,11.14,3.81,16.71a58.55,58.55,0,0,0-2.93,6.45c-1.17,2.93,7.62,2.64,7.62,3.22.88-.29,21.7-36.93,22.28-37.23C187.67,174.72,208.48,68.6,194.7,0ZM134.61,74.75C79.5,124,70.12,160.64,71.88,178.53,53.41,134.85,107.64,86.77,134.61,74.75ZM28.2,145.11c10.55,9.67,28.14,39.28,13.19,56.57C44.91,193.77,46.08,175.89,28.2,145.11Z" transform="translate(0 0)"/></svg><ng-container i18n="app title">Paperless-ngx</ng-container></a>- <div class="search-form-container flex-grow-1 py-2 pb-3 pb-sm-2 px-3 pl-md-4 mr-sm-auto order-3 order-sm-1">+ <div class="search-form-container flex-grow-1 py-2 pb-3 pb-sm-2 px-3 ps-md-4 me-sm-auto order-3 order-sm-1"><form (ngSubmit)="search()" class="form-inline flex-grow-1"><input class="form-control form-control-sm" type="text" placeholder="Search documents" aria-label="Search"[formControl]="searchField" [ngbTypeahead]="searchAutoComplete" (selectItem)="itemSelected($event)" i18n-placeholder>@@ -22,25 +22,25 @@<ul ngbNav class="order-sm-3"><li ngbDropdown class="nav-item dropdown"><button class="btn text-light" id="userDropdown" ngbDropdownToggle>- <span *ngIf="displayName" class="navbar-text small mr-2 text-light d-none d-sm-inline">+ <span *ngIf="displayName" class="navbar-text small me-2 text-light d-none d-sm-inline">{{displayName}}</span><svg width="1.3em" height="1.3em"><use xlink:href="assets/bootstrap-icons.svg#person-circle"/></svg></button>- <div ngbDropdownMenu class="dropdown-menu-right shadow mr-2" aria-labelledby="userDropdown">+ <div ngbDropdownMenu class="dropdown-menu-right shadow me-2" aria-labelledby="userDropdown"><div *ngIf="displayName" class="d-sm-none"><p class="small mb-0 px-3 text-muted" i18n>Logged in as {{displayName}}</p><div class="dropdown-divider"></div></div><a ngbDropdownItem class="nav-link" routerLink="settings" (click)="closeMenu()">- <svg class="sidebaricon mr-2" fill="currentColor">+ <svg class="sidebaricon me-2" fill="currentColor"><use xlink:href="assets/bootstrap-icons.svg#gear"/></svg><ng-container i18n>Settings</ng-container></a><a ngbDropdownItem class="nav-link" href="accounts/logout/">- <svg class="sidebaricon mr-2" fill="currentColor">+ <svg class="sidebaricon me-2" fill="currentColor"><use xlink:href="assets/bootstrap-icons.svg#door-open"/></svg><ng-container i18n>Logout</ng-container></a>@@ -169,13 +169,13 @@</li><li class="nav-item"><div class="d-flex w-100 flex-wrap">- <a class="nav-link pr-0 pb-0" target="_blank" rel="noopener noreferrer" href="https://github.com/paperless-ngx/paperless-ngx">+ <a class="nav-link pe-0 pb-0" target="_blank" rel="noopener noreferrer" href="https://github.com/paperless-ngx/paperless-ngx"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="sidebaricon bi bi-github" viewBox="0 0 16 16"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg> <ng-container i18n>GitHub</ng-container></a>- <a class="nav-link-additional small text-muted ml-3" target="_blank" rel="noopener noreferrer" href="https://github.com/paperless-ngx/paperless-ngx/discussions/categories/feature-requests" title="Suggest an idea">- <svg xmlns="http://www.w3.org/2000/svg" width="1.3em" height="1.3em" fill="currentColor" class="bi bi-lightbulb pr-1" viewBox="0 0 16 16">+ <a class="nav-link-additional small text-muted ms-3" target="_blank" rel="noopener noreferrer" href="https://github.com/paperless-ngx/paperless-ngx/discussions/categories/feature-requests" title="Suggest an idea">+ <svg xmlns="http://www.w3.org/2000/svg" width="1.3em" height="1.3em" fill="currentColor" class="bi bi-lightbulb pe-1" viewBox="0 0 16 16"><path d="M2 6a6 6 0 1 1 10.174 4.31c-.203.196-.359.4-.453.619l-.762 1.769A.5.5 0 0 1 10.5 13a.5.5 0 0 1 0 1 .5.5 0 0 1 0 1l-.224.447a1 1 0 0 1-.894.553H6.618a1 1 0 0 1-.894-.553L5.5 15a.5.5 0 0 1 0-1 .5.5 0 0 1 0-1 .5.5 0 0 1-.46-.302l-.761-1.77a1.964 1.964 0 0 0-.453-.618A5.984 5.984 0 0 1 2 6zm6-5a5 5 0 0 0-3.479 8.592c.263.254.514.564.676.941L5.83 12h4.342l.632-1.467c.162-.377.413-.687.676-.941A5 5 0 0 0 8 1z"/></svg><ng-container i18n>Suggest an idea</ng-container>@@ -191,7 +191,7 @@</div></nav>- <main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-md-4">+ <main role="main" class="col-md-9 ms-sm-auto col-lg-10 px-md-4"><router-outlet></router-outlet></main></div>diff --git a/src-ui/src/app/components/common/date-dropdown/date-dropdown.component.html b/src-ui/src/app/components/common/date-dropdown/date-dropdown.component.htmlindex e034e5a57..6c86a8682 100644--- a/src-ui/src/app/components/common/date-dropdown/date-dropdown.component.html+++ b/src-ui/src/app/components/common/date-dropdown/date-dropdown.component.html@@ -4,7 +4,7 @@</button><div class="dropdown-menu date-dropdown shadow pt-0" ngbDropdownMenu attr.aria-labelledby="dropdown{{title}}"><div class="list-group list-group-flush">- <button *ngFor="let qf of quickFilters" class="list-group-item small list-goup list-group-item-action d-flex p-2 pl-3" role="menuitem" (click)="setDateQuickFilter(qf.id)">+ <button *ngFor="let qf of quickFilters" class="list-group-item small list-goup list-group-item-action d-flex p-2 ps-3" role="menuitem" (click)="setDateQuickFilter(qf.id)">{{qf.name}}</button><div class="list-group-item d-flex flex-column align-items-start" role="menuitem">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.htmlindex 3cc116171..ce5ce5fa8 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@@ -33,7 +33,7 @@</ng-container></div><button *ngIf="editing" class="list-group-item list-group-item-action bg-light" (click)="applyClicked()" [disabled]="!selectionModel.isDirty()">- <small class="ml-2" [ngClass]="{'font-weight-bold': selectionModel.isDirty()}" i18n>Apply</small>+ <small class="ms-2" [ngClass]="{'fw-bold': selectionModel.isDirty()}" i18n>Apply</small><svg width="1.5em" height="1em" viewBox="0 0 16 16" fill="currentColor"><use xlink:href="assets/bootstrap-icons.svg#arrow-right" /></svg>diff --git a/src-ui/src/app/components/common/filterable-dropdown/toggleable-dropdown-button/toggleable-dropdown-button.component.html b/src-ui/src/app/components/common/filterable-dropdown/toggleable-dropdown-button/toggleable-dropdown-button.component.htmlindex b020a3c34..8e4860a7d 100644--- a/src-ui/src/app/components/common/filterable-dropdown/toggleable-dropdown-button/toggleable-dropdown-button.component.html+++ b/src-ui/src/app/components/common/filterable-dropdown/toggleable-dropdown-button/toggleable-dropdown-button.component.html@@ -1,5 +1,5 @@-<button class="list-group-item list-group-item-action d-flex align-items-center p-2 border-top-0 border-left-0 border-right-0 border-bottom" role="menuitem" (click)="toggleItem($event)">- <div class="selected-icon mr-1">+<button class="list-group-item list-group-item-action d-flex align-items-center p-2 border-top-0 border-start-0 border-end-0 border-bottom" role="menuitem" (click)="toggleItem($event)">+ <div class="selected-icon me-1"><ng-container *ngIf="isChecked()"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor" class="bi bi-check" viewBox="0 0 16 16"><path d="M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"/>@@ -16,9 +16,9 @@</svg></ng-container></div>- <div class="mr-1">+ <div class="me-1"><app-tag *ngIf="isTag; else displayName" [tag]="item" [clickable]="false"></app-tag><ng-template #displayName><small>{{item.name}}</small></ng-template></div>- <div class="badge badge-light rounded-pill ml-auto mr-1">{{item.document_count}}</div>+ <div class="badge badge-light rounded-pill ms-auto me-1">{{item.document_count}}</div></button>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.htmlindex eb2029745..ac2287cba 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@@ -26,7 +26,7 @@</ng-template><ng-template ng-option-tmp let-item="item" let-index="index" let-search="searchTerm"><div class="tag-wrap">- <app-tag *ngIf="item.id && tags" class="mr-2" [tag]="getTag(item.id)"></app-tag>+ <app-tag *ngIf="item.id && tags" class="me-2" [tag]="getTag(item.id)"></app-tag></div></ng-template></ng-select>diff --git a/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.html b/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.htmlindex ee1987621..3d6c2498c 100644--- a/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.html+++ b/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.html@@ -13,7 +13,7 @@<tbody><tr *ngFor="let doc of documents" routerLink="/documents/{{doc.id}}"><td>{{doc.created | customDate}}</td>- <td>{{doc.title | documentTitle}}<app-tag [tag]="t" *ngFor="let t of doc.tags$ | async" class="ml-1"></app-tag>+ <td>{{doc.title | documentTitle}}<app-tag [tag]="t" *ngFor="let t of doc.tags$ | async" class="ms-1"></app-tag></tr></tbody></table>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.htmlindex 9530045ff..459d64511 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@@ -13,7 +13,7 @@<ngx-file-drop dropZoneLabel="Drop documents here or" browseBtnLabel="Browse files" (onFileDrop)="dropped($event)"(onFileOver)="fileOver($event)" (onFileLeave)="fileLeave($event)" dropZoneClassName="bg-light card"multiple="true" contentClassName="justify-content-center d-flex align-items-center py-5 px-2" [showBrowseBtn]=true- browseBtnClassName="btn btn-sm btn-outline-primary ml-2" i18n-dropZoneLabel i18n-browseBtnLabel>+ browseBtnClassName="btn btn-sm btn-outline-primary ms-2" i18n-dropZoneLabel i18n-browseBtnLabel></ngx-file-drop></form><p class="mt-3" *ngIf="getStatus().length > 0">{{getStatusSummary()}}</p>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.htmlindex 4acd7a904..4e47c0d7a 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@@ -1,5 +1,5 @@<app-page-header [(title)]="title">- <div class="input-group input-group-sm mr-5 d-none d-md-flex" *ngIf="getContentType() == 'application/pdf' && !useNativePdfViewer">+ <div class="input-group input-group-sm me-5 d-none d-md-flex" *ngIf="getContentType() == 'application/pdf' && !useNativePdfViewer"><div class="input-group-prepend"><div class="input-group-text" i18n>Page</div></div>@@ -9,13 +9,13 @@</div></div>- <button type="button" class="btn btn-sm btn-outline-danger mr-2 ml-auto" (click)="delete()">+ <button type="button" class="btn btn-sm btn-outline-danger me-2 ms-auto" (click)="delete()"><svg class="buttonicon" fill="currentColor"><use xlink:href="assets/bootstrap-icons.svg#trash" /></svg> <span class="d-none d-lg-inline" i18n>Delete</span></button>- <div class="btn-group mr-2">+ <div class="btn-group me-2"><a [href]="downloadUrl" class="btn btn-sm btn-outline-primary"><svg class="buttonicon" fill="currentColor">@@ -32,7 +32,7 @@</div>- <button type="button" class="btn btn-sm btn-outline-primary mr-2" (click)="moreLike()">+ <button type="button" class="btn btn-sm btn-outline-primary me-2" (click)="moreLike()"><svg class="buttonicon" fill="currentColor"><use xlink:href="assets/bootstrap-icons.svg#three-dots" /></svg> <span class="d-none d-lg-inline" i18n>More like this</span>diff --git a/src-ui/src/app/components/document-detail/metadata-collapse/metadata-collapse.component.html b/src-ui/src/app/components/document-detail/metadata-collapse/metadata-collapse.component.htmlindex b0f323de0..ae4705e01 100644--- a/src-ui/src/app/components/document-detail/metadata-collapse/metadata-collapse.component.html+++ b/src-ui/src/app/components/document-detail/metadata-collapse/metadata-collapse.component.html@@ -1,5 +1,5 @@<h6>- <button type="button" class="btn btn-outline-secondary btn-sm mr-2"+ <button type="button" class="btn btn-outline-secondary btn-sm me-2"(click)="expand = !expand"><svg class="buttonicon" fill="currentColor" *ngIf="!expand"><use xlink:href="assets/bootstrap-icons.svg#caret-down" />diff --git a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.htmlindex 90cda1224..0a92cd083 100644--- a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html+++ b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html@@ -6,8 +6,8 @@</svg> <ng-container i18n>Cancel</ng-container></button></div>- <div class="col-auto mb-2 mb-xl-0 ml-auto ml-md-0" role="group" aria-label="Select">- <label class="mr-2 mb-0" i18n>Select:</label>+ <div class="col-auto mb-2 mb-xl-0 ms-auto ms-md-0" role="group" aria-label="Select">+ <label class="me-2 mb-0" i18n>Select:</label><div class="btn-group"><button class="btn btn-sm btn-outline-primary" (click)="list.selectPage()"><svg width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor">@@ -24,8 +24,8 @@<div class="w-100 d-xl-none"></div><div class="col-auto mb-2 mb-xl-0"><div class="d-flex">- <label class="ml-auto mt-1 mb-0 mr-2" i18n>Edit:</label>- <app-filterable-dropdown class="mr-2 mr-md-3" title="Tags" icon="tag-fill" i18n-title+ <label class="ms-auto mt-1 mb-0 me-2" i18n>Edit:</label>+ <app-filterable-dropdown class="me-2 me-md-3" title="Tags" icon="tag-fill" i18n-titlefilterPlaceholder="Filter tags" i18n-filterPlaceholder[items]="tags"[editing]="true"@@ -35,7 +35,7 @@[(selectionModel)]="tagSelectionModel"(apply)="setTags($event)"></app-filterable-dropdown>- <app-filterable-dropdown class="mr-2 mr-md-3" title="Correspondent" icon="person-fill" i18n-title+ <app-filterable-dropdown class="me-2 me-md-3" title="Correspondent" icon="person-fill" i18n-titlefilterPlaceholder="Filter correspondents" i18n-filterPlaceholder[items]="correspondents"[editing]="true"@@ -44,7 +44,7 @@[(selectionModel)]="correspondentSelectionModel"(apply)="setCorrespondents($event)"></app-filterable-dropdown>- <app-filterable-dropdown class="mr-2 mr-md-3" title="Document type" icon="file-earmark-fill" i18n-title+ <app-filterable-dropdown class="me-2 me-md-3" title="Document type" icon="file-earmark-fill" i18n-titlefilterPlaceholder="Filter document types" i18n-filterPlaceholder[items]="documentTypes"[editing]="true"@@ -55,8 +55,8 @@</app-filterable-dropdown></div></div>- <div class="col-auto ml-auto mb-2 mb-xl-0 d-flex">- <div class="btn-group btn-group-sm mr-2">+ <div class="col-auto ms-auto mb-2 mb-xl-0 d-flex">+ <div class="btn-group btn-group-sm me-2"><button type="button" class="btn btn-outline-primary btn-sm" (click)="downloadSelected()"><svg width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor"><use xlink:href="assets/bootstrap-icons.svg#download" />diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.htmlindex 3ef2d5aff..a6c3f30f8 100644--- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html+++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html@@ -1,9 +1,9 @@<div class="card mb-3 shadow-sm" [class.card-selected]="selected" [class.document-card]="selectable" [class.popover-hidden]="popoverHidden" (mouseleave)="mouseLeaveCard()"><div class="row no-gutters">- <div class="col-md-2 d-none d-lg-block doc-img-background rounded-left" [class.doc-img-background-selected]="selected" (click)="this.toggleSelected.emit($event)">- <img [src]="getThumbUrl()" class="card-img doc-img border-right rounded-left" [class.inverted]="getIsThumbInverted()">+ <div class="col-md-2 d-none d-lg-block doc-img-background rounded-start" [class.doc-img-background-selected]="selected" (click)="this.toggleSelected.emit($event)">+ <img [src]="getThumbUrl()" class="card-img doc-img border-end rounded-start" [class.inverted]="getIsThumbInverted()">- <div style="top: 0; left: 0" class="position-absolute border-right border-bottom bg-light p-1" [class.document-card-check]="!selected">+ <div style="top: 0; left: 0" class="position-absolute border-end border-bottom bg-light p-1" [class.document-card-check]="!selected"><div class="custom-control custom-checkbox"><input type="checkbox" class="custom-control-input" id="smallCardCheck{{document.id}}" [checked]="selected" (click)="this.toggleSelected.emit($event)"><label class="custom-control-label" for="smallCardCheck{{document.id}}"></label>@@ -17,11 +17,11 @@<div class="d-flex justify-content-between align-items-center"><h5 class="card-title"><ng-container *ngIf="document.correspondent">- <a *ngIf="clickCorrespondent.observers.length ; else nolink" [routerLink]="[]" title="Filter by correspondent" i18n-title (click)="clickCorrespondent.emit(document.correspondent);$event.stopPropagation()" class="font-weight-bold">{{(document.correspondent$ | async)?.name}}</a>+ <a *ngIf="clickCorrespondent.observers.length ; else nolink" [routerLink]="[]" title="Filter by correspondent" i18n-title (click)="clickCorrespondent.emit(document.correspondent);$event.stopPropagation()" class="fw-bold">{{(document.correspondent$ | async)?.name}}</a><ng-template #nolink>{{(document.correspondent$ | async)?.name}}</ng-template>:</ng-container>{{document.title | documentTitle}}- <app-tag [tag]="t" linkTitle="Filter by tag" i18n-linkTitle *ngFor="let t of document.tags$ | async" class="ml-1" (click)="clickTag.emit(t.id);$event.stopPropagation()" [clickable]="clickTag.observers.length"></app-tag>+ <app-tag [tag]="t" linkTitle="Filter by tag" i18n-linkTitle *ngFor="let t of document.tags$ | async" class="ms-1" (click)="clickTag.emit(t.id);$event.stopPropagation()" [clickable]="clickTag.observers.length"></app-tag></h5></div><p class="card-text">@@ -61,29 +61,29 @@</a></div>- <div class="list-group list-group-horizontal border-0 card-info ml-md-auto mt-2 mt-md-0">- <button *ngIf="document.document_type" type="button" class="list-group-item btn btn-sm bg-light text-dark p-1 border-0 mr-2" title="Filter by document type"+ <div class="list-group list-group-horizontal border-0 card-info ms-md-auto mt-2 mt-md-0">+ <button *ngIf="document.document_type" type="button" class="list-group-item btn btn-sm bg-light text-dark p-1 border-0 me-2" title="Filter by document type"(click)="clickDocumentType.emit(document.document_type);$event.stopPropagation()">- <svg class="metadata-icon mr-2 text-muted bi bi-file-earmark" viewBox="0 0 16 16" fill="currentColor">+ <svg class="metadata-icon me-2 text-muted bi bi-file-earmark" viewBox="0 0 16 16" fill="currentColor"><path d="M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5zm-3 0A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4.5h-2z"/></svg><small>{{(document.document_type$ | async)?.name}}</small></button>- <div *ngIf="document.archive_serial_number" class="list-group-item mr-2 bg-light text-dark p-1 border-0">- <svg class="metadata-icon mr-2 text-muted bi bi-upc-scan" viewBox="0 0 16 16" fill="currentColor">+ <div *ngIf="document.archive_serial_number" class="list-group-item me-2 bg-light text-dark p-1 border-0">+ <svg class="metadata-icon me-2 text-muted bi bi-upc-scan" viewBox="0 0 16 16" fill="currentColor"><path d="M1.5 1a.5.5 0 0 0-.5.5v3a.5.5 0 0 1-1 0v-3A1.5 1.5 0 0 1 1.5 0h3a.5.5 0 0 1 0 1h-3zM11 .5a.5.5 0 0 1 .5-.5h3A1.5 1.5 0 0 1 16 1.5v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 1-.5-.5zM.5 11a.5.5 0 0 1 .5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 1 0 1h-3A1.5 1.5 0 0 1 0 14.5v-3a.5.5 0 0 1 .5-.5zm15 0a.5.5 0 0 1 .5.5v3a1.5 1.5 0 0 1-1.5 1.5h-3a.5.5 0 0 1 0-1h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 1 .5-.5zM3 4.5a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7zm2 0a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7zm2 0a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7zm2 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7zm3 0a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7z"/></svg><small>#{{document.archive_serial_number}}</small></div><div class="list-group-item bg-light text-dark p-1 border-0" ngbTooltip="Added: {{document.added | customDate:'shortDate'}} Created: {{document.created | customDate:'shortDate'}}">- <svg class="metadata-icon mr-2 text-muted bi bi-calendar-event" viewBox="0 0 16 16" fill="currentColor">+ <svg class="metadata-icon me-2 text-muted bi bi-calendar-event" viewBox="0 0 16 16" fill="currentColor"><path d="M11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1z"/><path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/></svg><small>{{document.created | customDate:'mediumDate'}}</small></div>- <div *ngIf="document.__search_hit__?.score" class="list-group-item bg-light text-dark border-0 d-flex p-0 pl-4 search-score">+ <div *ngIf="document.__search_hit__?.score" class="list-group-item bg-light text-dark border-0 d-flex p-0 ps-4 search-score"><small class="text-muted" i18n>Score:</small><ngb-progressbar [type]="searchScoreClass" [value]="document.__search_hit__.score" class="search-score-bar mx-2 mt-1" [max]="1"></ngb-progressbar></div>diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.htmlindex 0eca46b45..c11f8b74e 100644--- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html+++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html@@ -3,14 +3,14 @@<div class="border-bottom doc-img-container" [class.doc-img-background-selected]="selected" (click)="this.toggleSelected.emit($event)"><img class="card-img doc-img rounded-top" [class.inverted]="getIsThumbInverted()" [src]="getThumbUrl()">- <div class="border-right border-bottom bg-light p-1 rounded document-card-check">+ <div class="border-end border-bottom bg-light p-1 rounded document-card-check"><div class="custom-control custom-checkbox"><input type="checkbox" class="custom-control-input" id="smallCardCheck{{document.id}}" [checked]="selected" (click)="this.toggleSelected.emit($event)"><label class="custom-control-label" for="smallCardCheck{{document.id}}"></label></div></div>- <div style="top: 0; right: 0; font-size: large" class="text-right position-absolute mr-1">+ <div style="top: 0; right: 0; font-size: large" class="text-end position-absolute me-1"><div *ngFor="let t of getTagsLimited$() | async"><app-tag [tag]="t" (click)="clickTag.emit(t.id);$event.stopPropagation()" [clickable]="true" linkTitle="Filter by tag" i18n-linkTitle></app-tag></div>@@ -23,16 +23,16 @@<div class="card-body p-2"><p class="card-text"><ng-container *ngIf="document.correspondent">- <a [routerLink]="[]" title="Filter by correspondent" i18n-title (click)="clickCorrespondent.emit(document.correspondent);$event.stopPropagation()" class="font-weight-bold">{{(document.correspondent$ | async)?.name}}</a>:+ <a [routerLink]="[]" title="Filter by correspondent" i18n-title (click)="clickCorrespondent.emit(document.correspondent);$event.stopPropagation()" class="fw-bold">{{(document.correspondent$ | async)?.name}}</a>:</ng-container>{{document.title | documentTitle}}</p></div><div class="card-footer pt-0 pb-2 px-2"><div class="list-group list-group-flush border-0 pt-1 pb-2 card-info">- <button *ngIf="document.document_type" type="button" class="list-group-item list-group-item-action bg-transparent pl-0 p-1 border-0" title="Filter by document type"+ <button *ngIf="document.document_type" type="button" class="list-group-item list-group-item-action bg-transparent ps-0 p-1 border-0" title="Filter by document type"(click)="clickDocumentType.emit(document.document_type);$event.stopPropagation()">- <svg class="metadata-icon mr-2 text-muted bi bi-file-earmark" viewBox="0 0 16 16" fill="currentColor">+ <svg class="metadata-icon me-2 text-muted bi bi-file-earmark" viewBox="0 0 16 16" fill="currentColor"><path d="M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5zm-3 0A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4.5h-2z"/></svg><small>{{(document.document_type$ | async)?.name}}</small>@@ -46,15 +46,15 @@</div></ng-template>- <div class="pl-0 p-1" placement="top" [ngbTooltip]="dateTooltip">- <svg class="metadata-icon mr-2 text-muted bi bi-calendar-event" viewBox="0 0 16 16" fill="currentColor">+ <div class="ps-0 p-1" placement="top" [ngbTooltip]="dateTooltip">+ <svg class="metadata-icon me-2 text-muted bi bi-calendar-event" viewBox="0 0 16 16" fill="currentColor"><path d="M11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1z"/><path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/></svg><small>{{document.created | customDate:'mediumDate'}}</small></div>- <div *ngIf="document.archive_serial_number" class="pl-0 p-1">- <svg class="metadata-icon mr-2 text-muted bi bi-upc-scan" viewBox="0 0 16 16" fill="currentColor">+ <div *ngIf="document.archive_serial_number" class="ps-0 p-1">+ <svg class="metadata-icon me-2 text-muted bi bi-upc-scan" viewBox="0 0 16 16" fill="currentColor"><path d="M1.5 1a.5.5 0 0 0-.5.5v3a.5.5 0 0 1-1 0v-3A1.5 1.5 0 0 1 1.5 0h3a.5.5 0 0 1 0 1h-3zM11 .5a.5.5 0 0 1 .5-.5h3A1.5 1.5 0 0 1 16 1.5v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 1-.5-.5zM.5 11a.5.5 0 0 1 .5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 1 0 1h-3A1.5 1.5 0 0 1 0 14.5v-3a.5.5 0 0 1 .5-.5zm15 0a.5.5 0 0 1 .5.5v3a1.5 1.5 0 0 1-1.5 1.5h-3a.5.5 0 0 1 0-1h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 1 .5-.5zM3 4.5a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7zm2 0a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7zm2 0a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7zm2 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7zm3 0a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7z"/></svg><small>#{{document.archive_serial_number}}</small>diff --git a/src-ui/src/app/components/document-list/document-list.component.html b/src-ui/src/app/components/document-list/document-list.component.htmlindex 1755bdb04..804e93727 100644--- a/src-ui/src/app/components/document-list/document-list.component.html+++ b/src-ui/src/app/components/document-list/document-list.component.html@@ -1,6 +1,6 @@<app-page-header [title]="getTitle()">- <div ngbDropdown class="mr-2 flex-fill d-flex">+ <div ngbDropdown class="me-2 flex-fill d-flex"><button class="btn btn-sm btn-outline-primary flex-fill" id="dropdownSelect" ngbDropdownToggle><svg class="toolbaricon" fill="currentColor"><use xlink:href="assets/bootstrap-icons.svg#text-indent-left" />@@ -35,7 +35,7 @@</label></div>- <div ngbDropdown class="btn-group ml-2 flex-fill">+ <div ngbDropdown class="btn-group ms-2 flex-fill"><button class="btn btn-outline-primary btn-sm" id="dropdownBasic1" ngbDropdownToggle i18n>Sort</button><div ngbDropdownMenu aria-labelledby="dropdownBasic1" class="shadow dropdown-menu-right"><div class="w-100 d-flex btn-group-toggle pb-2 mb-1 border-bottom" ngbRadioGroup [(ngModel)]="list.sortReverse">@@ -45,7 +45,7 @@<use xlink:href="assets/bootstrap-icons.svg#sort-alpha-down" /></svg></label>- <label ngbButtonLabel class="btn-outline-primary btn-sm mr-2 flex-fill">+ <label ngbButtonLabel class="btn-outline-primary btn-sm me-2 flex-fill"><input ngbButton type="radio" class="btn btn-sm" [value]="true"><svg class="toolbaricon" fill="currentColor"><use xlink:href="assets/bootstrap-icons.svg#sort-alpha-up-alt" />@@ -60,7 +60,7 @@</div></div>- <div class="btn-group ml-2 flex-fill" ngbDropdown role="group">+ <div class="btn-group ms-2 flex-fill" ngbDropdown role="group"><button class="btn btn-sm btn-outline-primary dropdown-toggle flex-fill" ngbDropdownToggle i18n>Views</button><div class="dropdown-menu shadow dropdown-menu-right" ngbDropdownMenu><ng-container *ngIf="!list.activeSavedViewId">@@ -83,7 +83,7 @@<div class="d-flex justify-content-between align-items-center"><p><ng-container *ngIf="list.isReloading">- <div class="spinner-border spinner-border-sm mr-2" role="status"></div>+ <div class="spinner-border spinner-border-sm me-2" role="status"></div><ng-container i18n>Loading...</ng-container></ng-container><span i18n *ngIf="list.selected.size > 0">{list.collectionSize, plural, =1 {Selected {{list.selected.size}} of one document} other {Selected {{list.selected.size}} of {{list.collectionSize || 0}} documents}}</span>@@ -164,7 +164,7 @@</td><td><a routerLink="/documents/{{d.id}}" title="Edit document" style="overflow-wrap: anywhere;">{{d.title | documentTitle}}</a>- <app-tag [tag]="t" *ngFor="let t of d.tags$ | async" class="ml-1" clickable="true" linkTitle="Filter by tag" (click)="clickTag(t.id);$event.stopPropagation()"></app-tag>+ <app-tag [tag]="t" *ngFor="let t of d.tags$ | async" class="ms-1" clickable="true" linkTitle="Filter by tag" (click)="clickTag(t.id);$event.stopPropagation()"></app-tag></td><td class="d-none d-xl-table-cell"><ng-container *ngIf="d.document_type">diff --git a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.htmlindex 7267d4d7b..1f467b616 100644--- a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html+++ b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html@@ -15,7 +15,7 @@<div class="w-100 d-xl-none"></div><div class="col col-xl-auto mb-2 mb-xl-0"><div class="d-flex">- <app-filterable-dropdown class="mr-2 flex-fill" title="Tags" icon="tag-fill" i18n-title+ <app-filterable-dropdown class="me-2 flex-fill" title="Tags" icon="tag-fill" i18n-titlefilterPlaceholder="Filter tags" i18n-filterPlaceholder[items]="tags"[(selectionModel)]="tagSelectionModel"@@ -23,21 +23,21 @@[multiple]="true"(open)="onTagsDropdownOpen()"[allowSelectNone]="true"></app-filterable-dropdown>- <app-filterable-dropdown class="mr-2 flex-fill" title="Correspondent" icon="person-fill" i18n-title+ <app-filterable-dropdown class="me-2 flex-fill" title="Correspondent" icon="person-fill" i18n-titlefilterPlaceholder="Filter correspondents" i18n-filterPlaceholder[items]="correspondents"[(selectionModel)]="correspondentSelectionModel"(selectionModelChange)="updateRules()"(open)="onCorrespondentDropdownOpen()"[allowSelectNone]="true"></app-filterable-dropdown>- <app-filterable-dropdown class="mr-2 flex-fill" title="Document type" icon="file-earmark-fill" i18n-title+ <app-filterable-dropdown class="me-2 flex-fill" title="Document type" icon="file-earmark-fill" i18n-titlefilterPlaceholder="Filter document types" i18n-filterPlaceholder[items]="documentTypes"[(selectionModel)]="documentTypeSelectionModel"(open)="onDocumentTypeDropdownOpen()"(selectionModelChange)="updateRules()"[allowSelectNone]="true"></app-filterable-dropdown>- <app-date-dropdown class="mr-2"+ <app-date-dropdown class="me-2"title="Created" i18n-title(datesSet)="updateRules()"[(dateBefore)]="dateCreatedBefore"@@ -51,7 +51,7 @@</div><div class="w-100 d-xl-none"></div><div class="col col-xl-auto mb-2 mb-xl-0">- <button class="btn btn-link btn-sm px-0 mx-0 ml-xl-n4" [disabled]="!rulesModified" (click)="resetSelected()">+ <button class="btn btn-link btn-sm px-0 mx-0 ms-xl-n4" [disabled]="!rulesModified" (click)="resetSelected()"><svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-x" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/></svg> <ng-container i18n>Reset filters</ng-container>diff --git a/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.html b/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.htmlindex 4cbafb817..05da9673f 100644--- a/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.html+++ b/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.html@@ -5,7 +5,7 @@<div class="row"><div class="col-md mb-2 mb-xl-0"><div class="form-inline d-flex align-items-center">- <label class="text-muted mr-2 mb-0" i18n>Filter by:</label>+ <label class="text-muted me-2 mb-0" i18n>Filter by:</label><input class="form-control form-control-sm flex-fill w-auto" type="text" [(ngModel)]="nameFilter" placeholder="Name" i18n-placeholder></div></div>diff --git a/src-ui/src/app/components/manage/document-type-list/document-type-list.component.html b/src-ui/src/app/components/manage/document-type-list/document-type-list.component.htmlindex 4d9bedcb1..56488c4e0 100644--- a/src-ui/src/app/components/manage/document-type-list/document-type-list.component.html+++ b/src-ui/src/app/components/manage/document-type-list/document-type-list.component.html@@ -5,7 +5,7 @@<div class="row"><div class="col-md mb-2 mb-xl-0"><div class="form-inline d-flex align-items-center">- <label class="text-muted mr-2 mb-0" i18n>Filter by:</label>+ <label class="text-muted me-2 mb-0" i18n>Filter by:</label><input class="form-control form-control-sm flex-fill w-auto" type="text" [(ngModel)]="nameFilter" placeholder="Name" i18n-placeholder></div></div>diff --git a/src-ui/src/app/components/manage/logs/logs.component.html b/src-ui/src/app/components/manage/logs/logs.component.htmlindex 0633daf32..2129a8fa1 100644--- a/src-ui/src/app/components/manage/logs/logs.component.html+++ b/src-ui/src/app/components/manage/logs/logs.component.html@@ -11,7 +11,7 @@<div [ngbNavOutlet]="nav" class="mt-2"></div>-<div class="bg-dark p-3 text-light text-monospace log-container" #logContainer>+<div class="bg-dark p-3 text-light font-monospace log-container" #logContainer><pclass="m-0 p-0 log-entry-{{getLogLevel(log)}}"*ngFor="let log of logs">{{log}}</p>diff --git a/src-ui/src/app/components/manage/settings/settings.component.html b/src-ui/src/app/components/manage/settings/settings.component.htmlindex 93a12faf4..bd3037a4b 100644--- a/src-ui/src/app/components/manage/settings/settings.component.html+++ b/src-ui/src/app/components/manage/settings/settings.component.html@@ -137,12 +137,12 @@<div formGroupName="savedViews"><div *ngFor="let view of savedViews" [formGroupName]="view.id" class="form-row">- <div class="form-group col-4 mr-3">+ <div class="form-group col-4 me-3"><label for="name_{{view.id}}" i18n>Name</label><input type="text" class="form-control" formControlName="name" id="name_{{view.id}}"></div>- <div class="form-group col-auto mr-3">+ <div class="form-group col-auto me-3"><label for="show_on_dashboard_{{view.id}}" i18n>Appears on</label><div class="custom-control custom-switch"><input type="checkbox" class="custom-control-input" id="show_on_dashboard_{{view.id}}" formControlName="show_on_dashboard">@@ -168,7 +168,7 @@</li></ul>- <div [ngbNavOutlet]="nav" class="border-left border-right border-bottom p-3 mb-3 shadow-sm"></div>+ <div [ngbNavOutlet]="nav" class="border-start border-end border-bottom p-3 mb-3 shadow-sm"></div><button type="submit" class="btn btn-primary" [disabled]="!(isDirty$ | async)" i18n>Save</button></form>diff --git a/src-ui/src/app/components/manage/tag-list/tag-list.component.html b/src-ui/src/app/components/manage/tag-list/tag-list.component.htmlindex 7eae1e21e..75e35c22b 100644--- a/src-ui/src/app/components/manage/tag-list/tag-list.component.html+++ b/src-ui/src/app/components/manage/tag-list/tag-list.component.html@@ -5,7 +5,7 @@<div class="row"><div class="col-md mb-2 mb-xl-0"><div class="form-inline d-flex align-items-center">- <label class="text-muted mr-2 mb-0" i18n>Filter by:</label>+ <label class="text-muted me-2 mb-0" i18n>Filter by:</label><input class="form-control form-control-sm flex-fill w-auto" type="text" [(ngModel)]="nameFilter" placeholder="Name" i18n-placeholder></div></div>diff --git a/src-ui/src/theme_dark.scss b/src-ui/src/theme_dark.scssindex 4735eb3a9..a257d839c 100644--- a/src-ui/src/theme_dark.scss+++ b/src-ui/src/theme_dark.scss@@ -49,11 +49,11 @@ $border-color-dark-mode: #47494f;border-color: $border-color-dark-mode !important;}- .border-right {+ .border-start {border-right: 1px solid $border-color-dark-mode !important;}- .border-left {+ .border-end {border-left: 1px solid $border-color-dark-mode !important;}@@ -155,7 +155,7 @@ $border-color-dark-mode: #47494f;border-radius: 0;border-color: $bg-dark-mode;filter: invert(10%);- &.border-right {+ &.border-end {border-right: none !important;}}