diff --git a/src-ui/e2e/document-list/document-list.spec.ts b/src-ui/e2e/document-list/document-list.spec.ts index 67655aaf5..7719873d3 100644 --- a/src-ui/e2e/document-list/document-list.spec.ts +++ b/src-ui/e2e/document-list/document-list.spec.ts @@ -135,11 +135,11 @@ test('sorting', async ({ page }) => { test('change views', async ({ page }) => { await page.routeFromHAR(REQUESTS_HAR5, { notFound: 'fallback' }) await page.goto('/documents') - await page.locator('.btn-group label').first().click() + await page.locator('.btn-group > label').first().click() await expect(page.locator('pngx-document-list table')).toBeVisible() - await page.locator('.btn-group label').nth(1).click() + await page.locator('label:nth-child(4)').first().click() await expect(page.locator('pngx-document-card-small').first()).toBeAttached() - await page.locator('.btn-group label').nth(2).click() + await page.locator('label:nth-child(6)').click() await expect(page.locator('pngx-document-card-large').first()).toBeAttached() }) diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf index c16de7846..831957fa2 100644 --- a/src-ui/messages.xlf +++ b/src-ui/messages.xlf @@ -743,7 +743,7 @@ src/app/components/document-list/document-list.component.html - 110 + 114 src/app/components/manage/custom-fields/custom-fields.component.html @@ -1124,7 +1124,7 @@ src/app/components/document-list/document-list.component.html - 213 + 217 src/app/data/document.ts @@ -1708,7 +1708,7 @@ src/app/components/document-list/document-list.component.html - 240 + 244 src/app/data/document.ts @@ -2730,7 +2730,7 @@ src/app/components/document-list/document-list.component.html - 195 + 199 src/app/components/document-list/filter-editor/filter-editor.component.html @@ -3435,7 +3435,7 @@ src/app/components/document-list/document-list.component.html - 249 + 253 src/app/data/document.ts @@ -5921,7 +5921,7 @@ src/app/components/document-list/document-list.component.html - 294 + 298 @@ -5936,7 +5936,7 @@ src/app/components/document-list/document-list.component.html - 334 + 338 @@ -5951,7 +5951,7 @@ src/app/components/document-list/document-list.component.html - 341 + 345 @@ -6234,7 +6234,7 @@ src/app/components/document-list/document-list.component.html - 192 + 196 src/app/components/document-list/filter-editor/filter-editor.component.ts @@ -6275,7 +6275,7 @@ src/app/components/document-list/document-list.component.html - 182 + 186 src/app/components/document-list/filter-editor/filter-editor.component.html @@ -6302,7 +6302,7 @@ src/app/components/document-list/document-list.component.html - 222 + 226 src/app/components/document-list/filter-editor/filter-editor.component.html @@ -6329,7 +6329,7 @@ src/app/components/document-list/document-list.component.html - 231 + 235 src/app/components/document-list/filter-editor/filter-editor.component.html @@ -7188,7 +7188,7 @@ src/app/components/document-list/document-list.component.html - 310 + 314 @@ -7363,63 +7363,63 @@ Sort src/app/components/document-list/document-list.component.html - 46 + 48 Views src/app/components/document-list/document-list.component.html - 70 + 74 Save "" src/app/components/document-list/document-list.component.html - 89 + 93 Save as... src/app/components/document-list/document-list.component.html - 92 + 96 All saved views src/app/components/document-list/document-list.component.html - 93 + 97 {VAR_PLURAL, plural, =1 {Selected of one document} other {Selected of documents}} src/app/components/document-list/document-list.component.html - 113 + 117 {VAR_PLURAL, plural, =1 {One document} other { documents}} src/app/components/document-list/document-list.component.html - 117 + 121 (filtered) src/app/components/document-list/document-list.component.html - 119 + 123 Reset filters src/app/components/document-list/document-list.component.html - 124 + 128 src/app/components/document-list/filter-editor/filter-editor.component.html @@ -7430,21 +7430,21 @@ Error while loading documents src/app/components/document-list/document-list.component.html - 140 + 144 Sort by ASN src/app/components/document-list/document-list.component.html - 169 + 173 ASN src/app/components/document-list/document-list.component.html - 173 + 177 src/app/components/document-list/filter-editor/filter-editor.component.ts @@ -7463,28 +7463,28 @@ Sort by correspondent src/app/components/document-list/document-list.component.html - 178 + 182 Sort by title src/app/components/document-list/document-list.component.html - 187 + 191 Sort by owner src/app/components/document-list/document-list.component.html - 200 + 204 Owner src/app/components/document-list/document-list.component.html - 204 + 208 src/app/data/document.ts @@ -7499,49 +7499,49 @@ Sort by notes src/app/components/document-list/document-list.component.html - 209 + 213 Sort by document type src/app/components/document-list/document-list.component.html - 218 + 222 Sort by storage path src/app/components/document-list/document-list.component.html - 227 + 231 Sort by created date src/app/components/document-list/document-list.component.html - 236 + 240 Sort by added date src/app/components/document-list/document-list.component.html - 245 + 249 Sort by number of pages src/app/components/document-list/document-list.component.html - 254 + 258 Pages src/app/components/document-list/document-list.component.html - 258 + 262 src/app/data/document.ts @@ -7560,42 +7560,42 @@ Shared src/app/components/document-list/document-list.component.html - 261,263 + 265,267 Sort by src/app/components/document-list/document-list.component.html - 268,269 + 272,273 Edit document src/app/components/document-list/document-list.component.html - 302 + 306 Preview document src/app/components/document-list/document-list.component.html - 303 + 307 Yes src/app/components/document-list/document-list.component.html - 362 + 366 No src/app/components/document-list/document-list.component.html - 362 + 366 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 6f71f7a67..1a9f64d6d 100644 --- a/src-ui/src/app/components/admin/settings/settings.component.html +++ b/src-ui/src/app/components/admin/settings/settings.component.html @@ -144,7 +144,7 @@ Theme Color - + 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.html index 5ad3aa6c7..65d291464 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 @@ - + Select @@ -11,7 +11,7 @@ Select all - + Show @@ -43,7 +43,10 @@ - Sort + + + Sort + @@ -67,7 +70,8 @@ - Views + + Views @if (savedViewIsModified) { selected diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts index a6d8afb26..998ebf260 100644 --- a/src-ui/src/main.ts +++ b/src-ui/src/main.ts @@ -27,6 +27,7 @@ import { arrowClockwise, arrowCounterclockwise, arrowDown, + arrowDownUp, arrowLeft, arrowRepeat, arrowRight, @@ -224,6 +225,7 @@ const icons = { arrowClockwise, arrowCounterclockwise, arrowDown, + arrowDownUp, arrowLeft, arrowRepeat, arrowRight, diff --git a/src-ui/src/styles.scss b/src-ui/src/styles.scss index 29d398333..1257798b9 100644 --- a/src-ui/src/styles.scss +++ b/src-ui/src/styles.scss @@ -25,6 +25,9 @@ $form-file-button-hover-bg: var(--pngx-bg-alt); .mb-n2 { margin-bottom: -0.5rem; } +.ms-n1 { + margin-left: -0.25rem; +} .ms-n2 { margin-left: -0.5rem; }