@conduction/nextcloud-vue 2.157.0 → 2.157.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3040,6 +3040,27 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .v-popper__popper.action-
3040
3040
  border-top: 0;
3041
3041
  }
3042
3042
 
3043
+ /* Its due line sits at the font's normal line height, its footer link 10px
3044
+ under the last row as a block of its own (an inline link's padding did not
3045
+ move it), and the list ends 20px under the link: DqDagAfsluiten "Morgen
3046
+ eerst" 195px, r33 188 (by injection 194.9).
3047
+ @spec openspec/changes/board-stacked-list-as-drawn/specs/board-stacked-list-as-drawn/spec.md#requirement-a-board-stacked-list-is-drawn-as-the-board */
3048
+ .cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-record-list--stacked .cn-record-list__due--below {
3049
+ line-height: normal;
3050
+ }
3051
+
3052
+ .cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-record-list--stacked .cn-record-list__footer-link {
3053
+ display: block;
3054
+ width: fit-content;
3055
+ margin-top: 10px;
3056
+ padding-top: 0;
3057
+ line-height: normal;
3058
+ }
3059
+
3060
+ .cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-record-list--stacked:has(.cn-record-list__footer-link) {
3061
+ padding-bottom: 20px;
3062
+ }
3063
+
3043
3064
  /* A dashboard card's task list and decision list rule above every row, the
3044
3065
  first one under the title included, as the record lists with ruleAbove do
3045
3066
  (DqMijnWerk "Mijn taken", "Mijn archiefbeoordelingen"); no rule under the
@@ -15240,6 +15261,12 @@ li[data-cn-admin-tag] > .action-link::after {
15240
15261
  color: var(--color-text-maxcontrast);
15241
15262
  }
15242
15263
 
15264
+ /* The meta line sits 2px under the title (the column's gap); the calendar
15265
+ card's own 2px margin made it 4 and the row 58 against 56 (r33). */
15266
+ .cn-look-board .cn-detail-page .cn-calendar-card__meta:not(.cn-look-nextcloud *) {
15267
+ margin-top: 0;
15268
+ }
15269
+
15243
15270
  /* The Deck card's title is a link the theme inks as one with !important
15244
15271
  (blue, underlined); the board draws it as the row's title, so the theme's
15245
15272
  own link variables are set to the title ink here. */
@@ -23473,56 +23500,56 @@ a.cn-analytics-card__title[data-v-f3ca7b06]:hover {
23473
23500
  }
23474
23501
 
23475
23502
 
23476
- .cn-audit-card__list[data-v-64b18d66] {
23503
+ .cn-audit-card__list[data-v-6255f948] {
23477
23504
  list-style: none;
23478
23505
  margin: 0;
23479
23506
  padding: 0;
23480
23507
  }
23481
- .cn-audit-card__row[data-v-64b18d66] {
23508
+ .cn-audit-card__row[data-v-6255f948] {
23482
23509
  padding: 6px 0;
23483
23510
  border-bottom: 1px solid var(--color-border);
23484
23511
  }
23485
- .cn-audit-card__row[data-v-64b18d66]:last-child {
23512
+ .cn-audit-card__row[data-v-6255f948]:last-child {
23486
23513
  border-bottom: none;
23487
23514
  }
23488
- .cn-audit-card__row-head[data-v-64b18d66] {
23515
+ .cn-audit-card__row-head[data-v-6255f948] {
23489
23516
  display: flex;
23490
23517
  justify-content: space-between;
23491
23518
  gap: 8px;
23492
23519
  }
23493
- .cn-audit-card__action[data-v-64b18d66] {
23520
+ .cn-audit-card__action[data-v-6255f948] {
23494
23521
  color: var(--color-main-text);
23495
23522
  }
23496
- .cn-audit-card__when[data-v-64b18d66] {
23523
+ .cn-audit-card__when[data-v-6255f948] {
23497
23524
  color: var(--color-text-maxcontrast);
23498
23525
  font-size: 0.85em;
23499
23526
  white-space: nowrap;
23500
23527
  }
23501
- .cn-audit-card__row-body[data-v-64b18d66] {
23528
+ .cn-audit-card__row-body[data-v-6255f948] {
23502
23529
  color: var(--color-text-maxcontrast);
23503
23530
  font-size: 0.9em;
23504
23531
  }
23505
- .cn-audit-card__refused[data-v-64b18d66] {
23532
+ .cn-audit-card__refused[data-v-6255f948] {
23506
23533
  margin-inline-start: 6px;
23507
23534
  font-weight: 700;
23508
23535
  color: var(--color-error-text, var(--color-main-text));
23509
23536
  }
23510
- .cn-audit-card__reason[data-v-64b18d66] {
23537
+ .cn-audit-card__reason[data-v-6255f948] {
23511
23538
  margin: 2px 0 0;
23512
23539
  font-size: 0.9em;
23513
23540
  overflow-wrap: anywhere;
23514
23541
  }
23515
- .cn-audit-card__empty[data-v-64b18d66] {
23542
+ .cn-audit-card__empty[data-v-6255f948] {
23516
23543
  color: var(--color-text-maxcontrast);
23517
23544
  text-align: center;
23518
23545
  padding: 12px 0;
23519
23546
  }
23520
- .cn-audit-card__footnote[data-v-64b18d66] {
23547
+ .cn-audit-card__footnote[data-v-6255f948] {
23521
23548
  margin: 12px 0 0;
23522
23549
  color: var(--color-text-maxcontrast);
23523
23550
  font-size: 13px;
23524
23551
  }
23525
- .cn-audit-card__show-all[data-v-64b18d66] {
23552
+ .cn-audit-card__show-all[data-v-6255f948] {
23526
23553
  background: none;
23527
23554
  border: none;
23528
23555
  color: var(--color-primary-element);
@@ -23530,7 +23557,7 @@ a.cn-analytics-card__title[data-v-f3ca7b06]:hover {
23530
23557
  padding: 4px 0;
23531
23558
  font: inherit;
23532
23559
  }
23533
- .cn-audit-card__show-all[data-v-64b18d66]:hover {
23560
+ .cn-audit-card__show-all[data-v-6255f948]:hover {
23534
23561
  text-decoration: underline;
23535
23562
  }
23536
23563
 
@@ -54277,27 +54304,27 @@ textarea.cn-sm-field__input[data-v-3e23dab3] {
54277
54304
  }
54278
54305
 
54279
54306
 
54280
- .cn-dashboard-grid[data-v-16284cc6] {
54307
+ .cn-dashboard-grid[data-v-c1fea586] {
54281
54308
  width: 100%;
54282
54309
  min-height: 200px;
54283
54310
  }
54284
- .grid-stack[data-v-16284cc6] {
54311
+ .grid-stack[data-v-c1fea586] {
54285
54312
  background: transparent;
54286
54313
  }
54287
54314
 
54288
54315
  /* `fillHeight`: the layout rows divide the grid's height (CSS grid instead of
54289
54316
  GridStack's absolute rows). GridStack may have left its inline places on the
54290
54317
  items, hence !important. Each cell scrolls what does not fit in it. */
54291
- .cn-dashboard-grid--fill[data-v-16284cc6] {
54318
+ .cn-dashboard-grid--fill[data-v-c1fea586] {
54292
54319
  height: 100%;
54293
54320
  min-height: 0;
54294
54321
  }
54295
- .cn-dashboard-grid--fill > .grid-stack[data-v-16284cc6] {
54322
+ .cn-dashboard-grid--fill > .grid-stack[data-v-c1fea586] {
54296
54323
  display: grid;
54297
54324
  height: 100% !important;
54298
54325
  min-height: 0 !important;
54299
54326
  }
54300
- .cn-dashboard-grid--fill > .grid-stack > .grid-stack-item[data-v-16284cc6] {
54327
+ .cn-dashboard-grid--fill > .grid-stack > .grid-stack-item[data-v-c1fea586] {
54301
54328
  position: relative !important;
54302
54329
  inset: auto !important;
54303
54330
  width: auto !important;
@@ -54307,7 +54334,7 @@ textarea.cn-sm-field__input[data-v-3e23dab3] {
54307
54334
  box-sizing: border-box;
54308
54335
  padding: var(--cn-fill-margin, 0);
54309
54336
  }
54310
- .cn-dashboard-grid--fill > .grid-stack > .grid-stack-item > .grid-stack-item-content[data-v-16284cc6] {
54337
+ .cn-dashboard-grid--fill > .grid-stack > .grid-stack-item > .grid-stack-item-content[data-v-c1fea586] {
54311
54338
  position: relative !important;
54312
54339
  inset: auto !important;
54313
54340
  height: 100%;
@@ -54319,7 +54346,7 @@ textarea.cn-sm-field__input[data-v-3e23dab3] {
54319
54346
  leaves, the columns after it sharing the side column's fixed width (the
54320
54347
  card plus its two item margins). GridStack writes `--gs-x` and `--gs-w` on
54321
54348
  every item and its own left and width inline, hence !important. */
54322
- .cn-dashboard-grid--side-column > .grid-stack.gs-12:not(.grid-stack-rtl) > .grid-stack-item[data-cn-track][data-v-16284cc6] {
54349
+ .cn-dashboard-grid--side-column > .grid-stack.gs-12:not(.grid-stack-rtl) > .grid-stack-item[data-cn-track][data-v-c1fea586] {
54323
54350
  --cn-side-cell: calc(var(--cn-side-width) + var(--gs-item-margin-left, 0px) + var(--gs-item-margin-right, 0px));
54324
54351
  --cn-main-col: calc((100% - var(--cn-side-cell)) / var(--cn-side-from));
54325
54352
  --cn-side-col: calc(var(--cn-side-cell) / var(--cn-side-span));
@@ -54330,7 +54357,7 @@ textarea.cn-sm-field__input[data-v-3e23dab3] {
54330
54357
 
54331
54358
  /* Screen-reader-only text: the keyboard key map and the live region. Kept in
54332
54359
  the layout (not `display: none`) so assistive tech still reads it. */
54333
- .cn-dashboard-grid__sr-only[data-v-16284cc6] {
54360
+ .cn-dashboard-grid__sr-only[data-v-c1fea586] {
54334
54361
  position: absolute;
54335
54362
  width: 1px;
54336
54363
  height: 1px;
@@ -54345,7 +54372,7 @@ textarea.cn-sm-field__input[data-v-3e23dab3] {
54345
54372
  /* Grid items become tab stops in edit mode — give them a visible focus ring
54346
54373
  that satisfies WCAG 2.1 SC 2.4.7 without relying on the widget's own
54347
54374
  styling. `outline-offset` keeps the ring outside the rounded card. */
54348
- .grid-stack-item[data-v-16284cc6]:focus-visible {
54375
+ .grid-stack-item[data-v-c1fea586]:focus-visible {
54349
54376
  outline: 2px solid var(--color-primary-element, #0082c9);
54350
54377
  outline-offset: 2px;
54351
54378
  border-radius: var(--border-radius-container-large, 16px);
@@ -54357,19 +54384,19 @@ textarea.cn-sm-field__input[data-v-3e23dab3] {
54357
54384
  cell never shrank: "Waiting for me" stayed a tall card around one row. In
54358
54385
  such a cell the child takes its own height. A cell without the key keeps
54359
54386
  the filling child. */
54360
- .cn-dashboard-grid__item--fit[data-v-16284cc6] > .grid-stack-item-content > * {
54387
+ .cn-dashboard-grid__item--fit[data-v-c1fea586] > .grid-stack-item-content > * {
54361
54388
  height: auto;
54362
54389
  }
54363
- [data-v-16284cc6] .grid-stack-item-content {
54390
+ [data-v-c1fea586] .grid-stack-item-content {
54364
54391
  background: var(--color-main-background);
54365
54392
  border: none;
54366
54393
  box-shadow: none;
54367
54394
  overflow: hidden;
54368
54395
  }
54369
- [data-v-16284cc6] .grid-stack-item-content:has(.cn-widget-wrapper--borderless) {
54396
+ [data-v-c1fea586] .grid-stack-item-content:has(.cn-widget-wrapper--borderless) {
54370
54397
  background: transparent;
54371
54398
  }
54372
- [data-v-16284cc6] .grid-stack-placeholder > .placeholder-content {
54399
+ [data-v-c1fea586] .grid-stack-placeholder > .placeholder-content {
54373
54400
  background: var(--color-primary-element-light);
54374
54401
  border: 2px dashed var(--color-primary-element);
54375
54402
  border-radius: var(--border-radius-large);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/nextcloud-vue",
3
- "version": "2.157.0",
3
+ "version": "2.157.1",
4
4
  "description": "Shared Vue component library for Conduction Nextcloud apps — complements @nextcloud/vue with higher-level components, OpenRegister integration, and NL Design System support",
5
5
  "homepage": "https://github.com/ConductionNL/nextcloud-vue#readme",
6
6
  "bugs": {
@@ -391,7 +391,7 @@ export default {
391
391
  if (response.ok) {
392
392
  const data = await response.json()
393
393
  const list = data.results || data.rows || data
394
- const own = Array.isArray(list) ? list : []
394
+ const own = await this.withFollowingPages(url, Array.isArray(list) ? list : [])
395
395
  const related = await this.fetchRelatedEntries()
396
396
  this.entries = related.length > 0
397
397
  ? [...own, ...related].sort((a, b) => entryTime(b) - entryTime(a))
@@ -410,6 +410,43 @@ export default {
410
410
  }
411
411
  },
412
412
 
413
+ /**
414
+ * An object's trail read on until it holds enough entries to show. The
415
+ * card leaves entries out (reads, actors, empty re-saves) after
416
+ * reading, and every page view writes a read, so the newest page alone
417
+ * can be all reads (DqHandhaving Historie: "no changes yet"). Reads at
418
+ * most four more pages.
419
+ *
420
+ * @param {string} url The first page's path.
421
+ * @param {Array<object>} first The first page's entries.
422
+ * @return {Promise<Array<object>>} The entries read.
423
+ */
424
+ async withFollowingPages(url, first) {
425
+ const entries = [...first]
426
+ if (!this.filtersEntries || this.scope !== 'object' || this.sourceUrl !== null) {
427
+ return entries
428
+ }
429
+ const limit = Number(new URLSearchParams(url.split('?')[1] || '').get('limit')) || first.length
430
+ let page = first
431
+ for (let more = 0; more < 4 && page.length >= limit && limit > 0; more++) {
432
+ this.entries = [...entries]
433
+ if (this.shownEntries.length >= this.maxDisplay) {
434
+ break
435
+ }
436
+ const next = new URL(url, 'http://x')
437
+ next.searchParams.set('offset', String(entries.length))
438
+ const response = await fetch(prefixUrl(next.pathname + next.search), { headers: buildHeaders() })
439
+ if (!response.ok) {
440
+ break
441
+ }
442
+ const data = await response.json()
443
+ const list = data.results || data.rows || data
444
+ page = Array.isArray(list) ? list : []
445
+ entries.push(...page)
446
+ }
447
+ return [...entries]
448
+ },
449
+
413
450
  /**
414
451
  * The entries of the records beside the object (`relatedSources`),
415
452
  * each tagged with its source's `as`. A read that fails leaves that
@@ -108,12 +108,14 @@ const MENU_ANCHOR_OFFSET = 8
108
108
 
109
109
  /**
110
110
  * How many GridStack rows a layout row is drawn as on a grid with
111
- * size-to-content cells (`wantsRowSplit`): 80px rows become 4px rows, so a
112
- * cell sized to its content ends at most 4px under it.
111
+ * size-to-content cells (`wantsRowSplit`): 80px rows become 1px rows, so a
112
+ * cell sized to its content ends less than 1px under it. On 4px rows each
113
+ * stacked card could end up to 4px low, and the rounding added up down a
114
+ * column (r33 DqHandhaving "De overtreding" y +6).
113
115
  *
114
116
  * @spec openspec/changes/fit-cells-on-4px-rows/specs/fit-cells-on-4px-rows/spec.md#requirement-a-size-to-content-cell-ends-within-4px-of-its-content
115
117
  */
116
- const ROW_SPLIT = 20
118
+ const ROW_SPLIT = 80
117
119
 
118
120
  /**
119
121
  * Whether a layout holds a size-to-content cell (`sizeToContent` true or a
@@ -2449,6 +2449,12 @@
2449
2449
  color: var(--color-text-maxcontrast);
2450
2450
  }
2451
2451
 
2452
+ /* The meta line sits 2px under the title (the column's gap); the calendar
2453
+ card's own 2px margin made it 4 and the row 58 against 56 (r33). */
2454
+ .cn-look-board .cn-detail-page .cn-calendar-card__meta:not(.cn-look-nextcloud *) {
2455
+ margin-top: 0;
2456
+ }
2457
+
2452
2458
  /* The Deck card's title is a link the theme inks as one with !important
2453
2459
  (blue, underlined); the board draws it as the row's title, so the theme's
2454
2460
  own link variables are set to the title ink here. */
@@ -2973,6 +2973,27 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .v-popper__popper.action-
2973
2973
  border-top: 0;
2974
2974
  }
2975
2975
 
2976
+ /* Its due line sits at the font's normal line height, its footer link 10px
2977
+ under the last row as a block of its own (an inline link's padding did not
2978
+ move it), and the list ends 20px under the link: DqDagAfsluiten "Morgen
2979
+ eerst" 195px, r33 188 (by injection 194.9).
2980
+ @spec openspec/changes/board-stacked-list-as-drawn/specs/board-stacked-list-as-drawn/spec.md#requirement-a-board-stacked-list-is-drawn-as-the-board */
2981
+ .cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-record-list--stacked .cn-record-list__due--below {
2982
+ line-height: normal;
2983
+ }
2984
+
2985
+ .cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-record-list--stacked .cn-record-list__footer-link {
2986
+ display: block;
2987
+ width: fit-content;
2988
+ margin-top: 10px;
2989
+ padding-top: 0;
2990
+ line-height: normal;
2991
+ }
2992
+
2993
+ .cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-record-list--stacked:has(.cn-record-list__footer-link) {
2994
+ padding-bottom: 20px;
2995
+ }
2996
+
2976
2997
  /* A dashboard card's task list and decision list rule above every row, the
2977
2998
  first one under the title included, as the record lists with ruleAbove do
2978
2999
  (DqMijnWerk "Mijn taken", "Mijn archiefbeoordelingen"); no rule under the
@@ -105,6 +105,7 @@ const DEFAULT_MAP = {
105
105
  items: 'items',
106
106
  label: 'title',
107
107
  sort: 'order',
108
+ enumLabels: 'enumLabels',
108
109
  }
109
110
 
110
111
  /**
@@ -374,6 +375,11 @@ export function propertiesFromDefinitions(definitions, config = {}, options = {}
374
375
  }
375
376
  if (Array.isArray(enumValues) && enumValues.length > 0) {
376
377
  prop.enum = [...enumValues]
378
+ // What each option reads ("digitaal" shown as "Digitaal"), when the definition says.
379
+ const enumLabels = mapped(record, map, 'enumLabels')
380
+ if (enumLabels && typeof enumLabels === 'object' && !Array.isArray(enumLabels)) {
381
+ prop.enumLabels = { ...enumLabels }
382
+ }
377
383
  }
378
384
  if (defaultValue !== undefined && defaultValue !== null && defaultValue !== '') {
379
385
  prop.default = defaultValue