@conduction/nextcloud-vue 2.169.0 → 2.170.0

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.
Files changed (46) hide show
  1. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue.js +1 -1
  2. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue2.js +7 -2
  3. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue2.js.map +1 -1
  4. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue3.js.map +1 -1
  5. package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue.js +1 -1
  6. package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue2.js +88 -0
  7. package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue2.js.map +1 -1
  8. package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue3.js +4 -3
  9. package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue3.js.map +1 -1
  10. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue.js +1 -1
  11. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js +46 -3
  12. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js.map +1 -1
  13. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js +2 -1
  14. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js.map +1 -1
  15. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue.js +1 -1
  16. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue2.js +9 -3
  17. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue2.js.map +1 -1
  18. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue3.js.map +1 -1
  19. package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue.js +1 -1
  20. package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue2.js +13 -6
  21. package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue2.js.map +1 -1
  22. package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue3.js.map +1 -1
  23. package/dist/esm/integrations/builtin/contacts/CnContactsTab.vue.js +1 -1
  24. package/dist/esm/integrations/builtin/contacts/CnContactsTab.vue2.js +14 -3
  25. package/dist/esm/integrations/builtin/contacts/CnContactsTab.vue2.js.map +1 -1
  26. package/dist/esm/integrations/builtin/contacts/CnContactsTab.vue3.js.map +1 -1
  27. package/dist/esm/library-style.js +1 -1
  28. package/dist/esm/nextcloud-vue.css +243 -201
  29. package/dist/esm/utils/objectParties.js +50 -5
  30. package/dist/esm/utils/objectParties.js.map +1 -1
  31. package/dist/nextcloud-vue.cjs.js +237 -30
  32. package/dist/nextcloud-vue.cjs.js.map +2 -2
  33. package/dist/nextcloud-vue.css +243 -201
  34. package/package.json +1 -1
  35. package/src/components/CnCellRenderer/CnCellRenderer.vue +7 -2
  36. package/src/components/CnDashboardGrid/CnDashboardGrid.md +1 -0
  37. package/src/components/CnDashboardGrid/CnDashboardGrid.vue +100 -2
  38. package/src/components/CnDashboardPage/CnDashboardPage.vue +47 -3
  39. package/src/components/CnDetailWidgetHost/CnDetailWidgetHost.vue +9 -3
  40. package/src/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue +14 -5
  41. package/src/css/dialog.css +7 -5
  42. package/src/css/look-board-index.css +21 -2
  43. package/src/css/look-board.css +12 -0
  44. package/src/integrations/builtin/contacts/CnContactsTab.vue +14 -3
  45. package/src/integrations/builtin/contacts/__tests__/CnContactsTabBoardRows.spec.js +17 -2
  46. package/src/utils/objectParties.js +49 -4
@@ -47272,19 +47272,24 @@ var script$8k = {
47272
47272
  },
47273
47273
 
47274
47274
  /**
47275
- * The `badge` widget's entries when the value is a list, each as text;
47276
- * null for a single value.
47275
+ * The `badge` widget's entries when the value is a list, each as its
47276
+ * label: the items' `x-enum-labels` (or the normalised `enumLabels`),
47277
+ * translated, else the entry as stored. Null for a single value.
47277
47278
  *
47278
47279
  * @return {string[]|null}
47279
47280
  * @spec openspec/changes/badge-cell-list/specs/badge-cell-list/spec.md#requirement-a-badge-cell-draws-one-chip-per-entry-of-a-list
47281
+ * @spec openspec/changes/badge-list-labels-and-tags/specs/badge-cell-list/spec.md#requirement-a-badge-list-chip-shows-its-entrys-label
47280
47282
  */
47281
47283
  badgeList() {
47282
47284
  if (!Array.isArray(this.value)) {
47283
47285
  return null
47284
47286
  }
47287
+ const items = (this.property && this.property.items) || {};
47288
+ const labels = items.enumLabels || items['x-enum-labels'] || (this.property && (this.property.enumLabels || this.property['x-enum-labels'])) || {};
47285
47289
  return this.value
47286
47290
  .filter((entry) => entry !== null && entry !== undefined && entry !== '' && typeof entry !== 'object')
47287
47291
  .map((entry) => String(entry))
47292
+ .map((entry) => (typeof labels[entry] === 'string' ? this.cnTranslate(labels[entry]) : entry))
47288
47293
  },
47289
47294
 
47290
47295
  /**
@@ -49312,7 +49317,7 @@ function render$8j(_ctx, _cache, $props, $setup, $data, $options) {
49312
49317
  }
49313
49318
 
49314
49319
  script$8k.render = render$8j;
49315
- script$8k.__scopeId = "data-v-04b03192";
49320
+ script$8k.__scopeId = "data-v-8bd42560";
49316
49321
  const __sfc_main$8e = script$8k;
49317
49322
 
49318
49323
  /**
@@ -109371,6 +109376,13 @@ var script$7z = {
109371
109376
  handlerRoleLabel: { type: String, default: () => l10n.translate('nextcloud-vue', 'Handler') },
109372
109377
  /** Role badge shown on an advisor. */
109373
109378
  advisorRoleLabel: { type: String, default: () => l10n.translate('nextcloud-vue', 'Advisor') },
109379
+ /**
109380
+ * The word that leads a board row's details per kind of person: keyed
109381
+ * by the link's `partyKind` (`person`, `organisation`, `colleague`)
109382
+ * or else its `kind` (`user`, `contact`). A kind without a word leads
109383
+ * with nothing.
109384
+ */
109385
+ kindLabels: { type: Object, default: () => ({}) },
109374
109386
  },
109375
109387
 
109376
109388
  emits: ['open-reverse-lookup'],
@@ -109688,14 +109700,18 @@ var script$7z = {
109688
109700
  * @return {string} The window.
109689
109701
  */
109690
109702
  /**
109691
- * A person's details on one line for the board look: e-mail, phone,
109692
- * organisation and note, separated by middots.
109703
+ * A person's details on one line for the board look: the word for
109704
+ * their kind (`kindLabels`), e-mail, phone, organisation and note,
109705
+ * separated by middots.
109693
109706
  *
109694
109707
  * @param {object} contact The contact link.
109695
109708
  * @return {string}
109709
+ * @spec openspec/changes/parties-role-line-from-the-role-record/specs/record-widgets/spec.md#requirement-a-board-contact-row-can-lead-with-the-word-for-its-kind
109696
109710
  */
109697
109711
  boardMetaOf(contact) {
109698
- return [contact?.email, contact?.phone, contact?.org, contact?.note].filter((part) => typeof part === 'string' && part !== '').join(' · ')
109712
+ const words = this.kindLabels || {};
109713
+ const kind = words[contact?.partyKind] || words[contact?.kind] || '';
109714
+ return [kind, contact?.email, contact?.phone, contact?.org, contact?.note].filter((part) => typeof part === 'string' && part !== '').join(' · ')
109699
109715
  },
109700
109716
 
109701
109717
  /**
@@ -110131,7 +110147,7 @@ function render$7y(_ctx, _cache, $props, $setup, $data, $options) {
110131
110147
  }
110132
110148
 
110133
110149
  script$7z.render = render$7y;
110134
- script$7z.__scopeId = "data-v-7b15fb2e";
110150
+ script$7z.__scopeId = "data-v-613fc51d";
110135
110151
  const __sfc_main$7t = script$7z;
110136
110152
 
110137
110153
  /**
@@ -207286,11 +207302,13 @@ var script$5t = {
207286
207302
  },
207287
207303
 
207288
207304
  /**
207289
- * An integration widget's `labels` (prop name to text), translated in
207290
- * the host's language: a leaf cannot translate the host app's words.
207305
+ * An integration widget's `labels` (prop name to text, or to a map of
207306
+ * texts), translated in the host's language: a leaf cannot translate
207307
+ * the host app's words.
207291
207308
  *
207292
- * @return {object} Prop name to translated text.
207309
+ * @return {object} Prop name to translated text or map.
207293
207310
  * @spec openspec/changes/leaf-labels-in-the-host-language/specs/leaf-labels-in-the-host-language/spec.md#requirement-an-integration-widget-gives-its-leaf-labels-in-the-hosts-language
207311
+ * @spec openspec/changes/parties-role-line-from-the-role-record/specs/record-widgets/spec.md#requirement-a-board-contact-row-can-lead-with-the-word-for-its-kind
207294
207312
  */
207295
207313
  leafLabels() {
207296
207314
  const labels = this.widget?.labels;
@@ -207301,6 +207319,10 @@ var script$5t = {
207301
207319
  for (const [prop, text] of Object.entries(labels)) {
207302
207320
  if (typeof text === 'string') {
207303
207321
  out[prop] = this.translateLabel(text);
207322
+ } else if (text && typeof text === 'object' && !Array.isArray(text)) {
207323
+ out[prop] = Object.fromEntries(Object.entries(text)
207324
+ .filter(([, word]) => typeof word === 'string')
207325
+ .map(([key, word]) => [key, this.translateLabel(word)]));
207304
207326
  }
207305
207327
  }
207306
207328
  return out
@@ -208576,7 +208598,7 @@ function render$5s(_ctx, _cache, $props, $setup, $data, $options) {
208576
208598
  }
208577
208599
 
208578
208600
  script$5t.render = render$5s;
208579
- script$5t.__scopeId = "data-v-4cffb6fb";
208601
+ script$5t.__scopeId = "data-v-66a088f2";
208580
208602
  const __sfc_main$5n = script$5t;
208581
208603
 
208582
208604
  /**
@@ -364162,12 +364184,51 @@ function savedUuid(saved) {
364162
364184
  return String(saved?.['@self']?.id || saved?.uuid || saved?.id || '')
364163
364185
  }
364164
364186
 
364187
+ /**
364188
+ * The role rows of a record keyed by their participant.
364189
+ *
364190
+ * @param {Array<object>} rows The role rows.
364191
+ * @return {object} participant uuid → row.
364192
+ * @spec openspec/changes/parties-role-line-from-the-role-record/specs/record-widgets/spec.md#requirement-a-board-party-row-can-read-its-note-from-the-role-record
364193
+ */
364194
+ function roleRowsByParticipant(rows) {
364195
+ const map = {};
364196
+ for (const row of Array.isArray(rows) ? rows : []) {
364197
+ const participant = String(row?.participant || '').trim();
364198
+ if (participant !== '') {
364199
+ map[participant] = row;
364200
+ }
364201
+ }
364202
+ return map
364203
+ }
364204
+
364205
+ /**
364206
+ * The note a board row prints: the link's note, or with `spec`
364207
+ * (`{ from: 'roles', field }`) that field of the party's role row, and
364208
+ * nothing when the party has no role row.
364209
+ *
364210
+ * @param {object} party The listing row (`partyUuid` or `contactUid`, `note`).
364211
+ * @param {object} rolesByParticipant The role rows by participant.
364212
+ * @param {{from?: string, field?: string}|undefined} spec Where the note comes from.
364213
+ * @return {string} The note, or ''.
364214
+ * @spec openspec/changes/parties-role-line-from-the-role-record/specs/record-widgets/spec.md#requirement-a-board-party-row-can-read-its-note-from-the-role-record
364215
+ */
364216
+ function partyNoteOf(party, rolesByParticipant, spec) {
364217
+ if (spec?.from === 'roles' && typeof spec.field === 'string' && spec.field !== '') {
364218
+ const row = (rolesByParticipant || {})[party?.partyUuid || party?.contactUid || ''];
364219
+ const value = row ? row[spec.field] : '';
364220
+ return typeof value === 'string' ? value.trim() : ''
364221
+ }
364222
+ return typeof party?.note === 'string' ? party.note : ''
364223
+ }
364224
+
364165
364225
  /**
364166
364226
  * The board row's meta line (DqZaakBetrokkenen "Rollen", design-system #811):
364167
- * the primary mark, the role, the link's note and the extra lines, by middots.
364227
+ * the primary mark, the role, the note and the extra lines, by middots.
364168
364228
  * A role that follows the primary mark reads in lower case ("Primaire partij ·
364169
- * verzoeker"), unless it is an abbreviation. No kind word: the row's role and
364170
- * note already say what the party is.
364229
+ * verzoeker"), unless it is an abbreviation. A note that starts in lower case
364230
+ * continues the role ("Gemachtigde namens Van Wijk B.V."). No kind word: the
364231
+ * row's role and note already say what the party is.
364171
364232
  *
364172
364233
  * @param {{primary: string, role: string, note: string, extras: Array<string>}} parts The parts.
364173
364234
  * @return {string} The line.
@@ -364179,7 +364240,13 @@ function boardMetaLine({ primary = '', role = '', note = '', extras = [] }) {
364179
364240
  if (primary && shownRole !== '' && !abbreviation) {
364180
364241
  shownRole = shownRole[0].toLowerCase() + shownRole.slice(1);
364181
364242
  }
364182
- return [primary, shownRole, note, ...(Array.isArray(extras) ? extras : [])]
364243
+ let shownNote = typeof note === 'string' ? note.trim() : '';
364244
+ const continues = shownRole !== '' && shownNote !== '' && shownNote[0] !== shownNote[0].toUpperCase();
364245
+ if (continues) {
364246
+ shownRole = `${shownRole} ${shownNote}`;
364247
+ shownNote = '';
364248
+ }
364249
+ return [primary, shownRole, shownNote, ...(Array.isArray(extras) ? extras : [])]
364183
364250
  .filter((part) => typeof part === 'string' && part.trim() !== '')
364184
364251
  .join(' · ')
364185
364252
  }
@@ -364330,7 +364397,9 @@ var script$2u = {
364330
364397
  * The configuration: `rolesSource` (the listing URL, default
364331
364398
  * OpenRegister's `/parties` of this record), `partySource` (one
364332
364399
  * party, `{uuid}` filled in), `rolesObjects` (`{ register, schema,
364333
- * field }`, the role rows that say who represents whom), `roleLabels`,
364400
+ * field }`, the role rows that say who represents whom), `note`
364401
+ * (`{ from: "roles", field }`: a board row prints that field of the
364402
+ * party's role row instead of the link's note), `roleLabels`,
364334
364403
  * `kindsSource` (`{ url, enforce?, sourceText? }`), `extraLines`
364335
364404
  * (`[{ endpoint, path?, valueLabels?, lines }]`, one request per
364336
364405
  * party, `{party}` filled in), `correspondence` (`{ endpoint, path?,
@@ -364373,6 +364442,7 @@ var script$2u = {
364373
364442
  failed: false,
364374
364443
  listing: null,
364375
364444
  partyRecords: {},
364445
+ roleRows: {},
364376
364446
  represented: {},
364377
364447
  kinds: null,
364378
364448
  extra: {},
@@ -364782,6 +364852,7 @@ var script$2u = {
364782
364852
  this.failed = false;
364783
364853
  this.partyRecords = {};
364784
364854
  this.represented = {};
364855
+ this.roleRows = {};
364785
364856
  this.extra = {};
364786
364857
  this.documents = [];
364787
364858
  const listing = await this.read(this.urlOf(this.content?.rolesSource || '/apps/openregister/api/objects/@register/@schema/@objectId/parties'));
@@ -364820,6 +364891,7 @@ var script$2u = {
364820
364891
  const data = await this.read(`/apps/openregister/api/objects/${encodeURIComponent(source.register)}/${encodeURIComponent(source.schema)}`, { [source.field || 'object']: String(this.objectId), _limit: 200 });
364821
364892
  const rows = Array.isArray(data?.results) ? data.results : (Array.isArray(data) ? data : []);
364822
364893
  this.represented = representedByMap(rows);
364894
+ this.roleRows = roleRowsByParticipant(rows);
364823
364895
  },
364824
364896
 
364825
364897
  /** @return {Promise<void>} The kinds this record accepts. */
@@ -364996,8 +365068,9 @@ var script$2u = {
364996
365068
  */
364997
365069
  /**
364998
365070
  * The board row's meta line (design-system #811): the primary mark,
364999
- * the role, the link's note, whom the party represents when no note
365000
- * says it, its extra lines, e-mail and documents.
365071
+ * the role, the note (the link's, or the role row's field named by
365072
+ * `content.note`), whom the party represents when no note says it,
365073
+ * its extra lines, e-mail and documents.
365001
365074
  *
365002
365075
  * @param {object} party The party.
365003
365076
  * @param {object} group Its role group.
@@ -365006,15 +365079,16 @@ var script$2u = {
365006
365079
  */
365007
365080
  boardMetaOf(party, group) {
365008
365081
  const extras = [];
365082
+ const note = partyNoteOf(party, this.roleRows, this.content?.note);
365009
365083
  const represented = this.representedBy(party);
365010
- if (represented && !party.note) {
365084
+ if (represented && !note) {
365011
365085
  extras.push(`${this.label('representedBy')}: ${represented}`);
365012
365086
  }
365013
365087
  extras.push(...this.extraLinesOf(party), party.email, this.correspondenceOf(party));
365014
365088
  return boardMetaLine({
365015
365089
  primary: this.primary && party.partyUuid === this.primary ? this.label('primary') : '',
365016
365090
  role: group.label,
365017
- note: typeof party.note === 'string' ? party.note : '',
365091
+ note,
365018
365092
  extras,
365019
365093
  })
365020
365094
  },
@@ -365491,7 +365565,7 @@ function render$2t(_ctx, _cache, $props, $setup, $data, $options) {
365491
365565
  }
365492
365566
 
365493
365567
  script$2u.render = render$2t;
365494
- script$2u.__scopeId = "data-v-fff005ac";
365568
+ script$2u.__scopeId = "data-v-792d5282";
365495
365569
  const __sfc_main$2u = script$2u;
365496
365570
 
365497
365571
  /**
@@ -395013,6 +395087,22 @@ var script$1K = {
395013
395087
  default: null,
395014
395088
  },
395015
395089
 
395090
+ /**
395091
+ * Weights for groups of the twelve columns: `[{ span, weight }]`, the
395092
+ * spans adding up to 12. Each group takes its weight's share of the
395093
+ * width, split evenly over its columns, so three groups of four can be
395094
+ * drawn 332 / 415 / 332 (PqWerkplekKlant in a call). Items on a
395095
+ * `sideColumn` track keep that column. Only on the full twelve-column
395096
+ * grid and not while editing; GridStack keeps the twelve columns
395097
+ * underneath.
395098
+ *
395099
+ * @spec openspec/changes/dashboard-column-weights/specs/dashboard-column-weights/spec.md#requirement-a-dashboard-can-weigh-its-column-groups
395100
+ */
395101
+ columnWeights: {
395102
+ type: Array,
395103
+ default: null,
395104
+ },
395105
+
395016
395106
  /**
395017
395107
  * Fill the height the host gives the grid instead of growing with
395018
395108
  * the content: in view mode the layout rows divide the grid's own
@@ -395097,6 +395187,41 @@ var script$1K = {
395097
395187
  *
395098
395188
  * @return {object|null}
395099
395189
  */
395190
+ /**
395191
+ * The left edge of each of the twelve columns and the right edge of
395192
+ * the last, as fractions of the grid's width, from `columnWeights`;
395193
+ * null when the grid keeps its twelve shares.
395194
+ *
395195
+ * @spec openspec/changes/dashboard-column-weights/specs/dashboard-column-weights/spec.md#requirement-a-dashboard-can-weigh-its-column-groups
395196
+ * @return {number[]|null}
395197
+ */
395198
+ columnBounds() {
395199
+ const groups = this.columnWeights;
395200
+ if (this.editable || !Array.isArray(groups) || groups.length === 0) {
395201
+ return null
395202
+ }
395203
+ const perColumn = [];
395204
+ for (const group of groups) {
395205
+ const span = Number(group?.span);
395206
+ const weight = Number(group?.weight);
395207
+ if (!Number.isInteger(span) || span < 1 || !Number.isFinite(weight) || weight <= 0) {
395208
+ return null
395209
+ }
395210
+ for (let i = 0; i < span; i++) {
395211
+ perColumn.push(weight / span);
395212
+ }
395213
+ }
395214
+ if (perColumn.length !== 12) {
395215
+ return null
395216
+ }
395217
+ const total = perColumn.reduce((sum, w) => sum + w, 0);
395218
+ const bounds = [0];
395219
+ for (const w of perColumn) {
395220
+ bounds.push(bounds[bounds.length - 1] + w / total);
395221
+ }
395222
+ return bounds
395223
+ },
395224
+
395100
395225
  sideColumnStyle() {
395101
395226
  const width = Number(this.sideColumn?.width);
395102
395227
  if (this.editable || !Number.isFinite(width) || width <= 0) {
@@ -395472,6 +395597,43 @@ var script$1K = {
395472
395597
  }
395473
395598
  },
395474
395599
 
395600
+ /**
395601
+ * The left and width fractions of an item on weighted columns, or
395602
+ * null when the grid keeps its twelve shares or the item is on a
395603
+ * side-column track.
395604
+ *
395605
+ * @spec openspec/changes/dashboard-column-weights/specs/dashboard-column-weights/spec.md#requirement-a-dashboard-can-weigh-its-column-groups
395606
+ * @param {object} item The layout item.
395607
+ * @return {object|null}
395608
+ */
395609
+ weightStyle(item) {
395610
+ const bounds = this.columnBounds;
395611
+ if (bounds === null || (this.sideColumnStyle !== null && (item.track === 'main' || item.track === 'side'))) {
395612
+ return null
395613
+ }
395614
+ const x = Math.min(Math.max(Number.isFinite(item.gridX) ? item.gridX : 0, 0), 12);
395615
+ const w = Number.isFinite(item.gridWidth) ? item.gridWidth : this.minWidth;
395616
+ const end = Math.min(Math.max(x + w, x), 12);
395617
+ return {
395618
+ '--cn-weight-left': String(bounds[x]),
395619
+ '--cn-weight-width': String(bounds[end] - bounds[x]),
395620
+ }
395621
+ },
395622
+
395623
+ /**
395624
+ * The inline style of an item: its place on a filled grid, or its
395625
+ * place on weighted columns.
395626
+ *
395627
+ * @param {object} item The layout item.
395628
+ * @return {object|undefined}
395629
+ */
395630
+ itemStyle(item) {
395631
+ if (this.filling) {
395632
+ return this.fillItemStyle(item)
395633
+ }
395634
+ return this.weightStyle(item) || undefined
395635
+ },
395636
+
395475
395637
  resolveItemLabel(item, index) {
395476
395638
  if (this.itemLabel) {
395477
395639
  return String(this.itemLabel(item, index) ?? '')
@@ -396325,7 +396487,7 @@ var script$1K = {
396325
396487
  };
396326
396488
 
396327
396489
  const _hoisted_1$1M = ["id"];
396328
- const _hoisted_2$1K = ["aria-label", "aria-describedby", "tabindex", "gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "gs-min-w", "gs-min-h", "gs-size-to-content", "data-cn-track", "data-cn-widget-id", "gs-locked", "onKeydown"];
396490
+ const _hoisted_2$1K = ["aria-label", "aria-describedby", "tabindex", "gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "gs-min-w", "gs-min-h", "gs-size-to-content", "data-cn-track", "data-cn-weighted", "data-cn-widget-id", "gs-locked", "onKeydown"];
396329
396491
  const _hoisted_3$1z = { class: "grid-stack-item-content" };
396330
396492
  const _hoisted_4$1w = {
396331
396493
  class: "cn-dashboard-grid__sr-only",
@@ -396337,7 +396499,7 @@ const _hoisted_4$1w = {
396337
396499
  function render$1J(_ctx, _cache, $props, $setup, $data, $options) {
396338
396500
  return (vue$1.openBlock(), vue$1.createElementBlock("div", {
396339
396501
  ref: "gridContainer",
396340
- class: vue$1.normalizeClass(["cn-dashboard-grid", { 'cn-dashboard-grid--side-column': $options.sideColumnStyle !== null, 'cn-dashboard-grid--fill': $options.filling }]),
396502
+ class: vue$1.normalizeClass(["cn-dashboard-grid", { 'cn-dashboard-grid--side-column': $options.sideColumnStyle !== null, 'cn-dashboard-grid--weighted': $options.columnBounds !== null, 'cn-dashboard-grid--fill': $options.filling }]),
396341
396503
  style: vue$1.normalizeStyle($options.sideColumnStyle)
396342
396504
  }, [
396343
396505
  ($options.keyboardActive)
@@ -396368,9 +396530,10 @@ function render$1J(_ctx, _cache, $props, $setup, $data, $options) {
396368
396530
  "gs-min-h": $options.minRows(item),
396369
396531
  "gs-size-to-content": $options.sizeToContentAttr(item),
396370
396532
  "data-cn-track": item.track === 'main' || item.track === 'side' ? item.track : undefined,
396533
+ "data-cn-weighted": $options.weightStyle(item) ? '' : undefined,
396371
396534
  "data-cn-widget-id": item.widgetId || undefined,
396372
396535
  "gs-locked": item.clear === true && !$props.editable ? 'true' : undefined,
396373
- style: vue$1.normalizeStyle($options.filling ? $options.fillItemStyle(item) : undefined),
396536
+ style: vue$1.normalizeStyle($options.itemStyle(item)),
396374
396537
  onKeydown: $event => ($options.onItemKeydown($event, item))
396375
396538
  }, [
396376
396539
  vue$1.createElementVNode("div", _hoisted_3$1z, [
@@ -396384,7 +396547,7 @@ function render$1J(_ctx, _cache, $props, $setup, $data, $options) {
396384
396547
  }
396385
396548
 
396386
396549
  script$1K.render = render$1J;
396387
- script$1K.__scopeId = "data-v-67dbbce0";
396550
+ script$1K.__scopeId = "data-v-4ef4b904";
396388
396551
  const __sfc_main$1K = script$1K;
396389
396552
 
396390
396553
  /**
@@ -409155,7 +409318,9 @@ var script$1x = {
409155
409318
  * on). Editing the page shows the page's own layout.
409156
409319
  *
409157
409320
  * @spec openspec/changes/dashboard-layout-when/specs/dashboard-layout-when/spec.md#requirement-a-dashboard-can-arrange-its-cards-by-the-pages-workspace
409158
- * @type {Array<{when: object, layout: Array<object>}>}
409321
+ * An entry can carry `gridColumnWeights` for its own layout.
409322
+ *
409323
+ * @type {Array<{when: object, layout: Array<object>, gridColumnWeights?: Array<object>}>}
409159
409324
  */
409160
409325
  layoutWhen: {
409161
409326
  type: Array,
@@ -409314,6 +409479,20 @@ var script$1x = {
409314
409479
  default: null,
409315
409480
  },
409316
409481
 
409482
+ /**
409483
+ * Weights for groups of the grid's twelve columns (manifest
409484
+ * `config.gridColumnWeights`): `[{ span, weight }]`, see
409485
+ * CnDashboardGrid's `columnWeights`. A `layoutWhen` entry can carry
409486
+ * its own `gridColumnWeights` for the layout it draws
409487
+ * (PqWerkplekKlant in a call: 332 / 415 / 332).
409488
+ *
409489
+ * @spec openspec/changes/dashboard-column-weights/specs/dashboard-column-weights/spec.md#requirement-a-dashboard-can-weigh-its-column-groups
409490
+ */
409491
+ gridColumnWeights: {
409492
+ type: Array,
409493
+ default: null,
409494
+ },
409495
+
409317
409496
  /**
409318
409497
  * Widget definitions array. Each widget defines metadata for rendering.
409319
409498
  *
@@ -410780,7 +410959,7 @@ var script$1x = {
410780
410959
  if (!this.gridSectionsShown) {
410781
410960
  return []
410782
410961
  }
410783
- const page = { key: 'page', view: false, layout: this.displayLayout, editable: this.gridEditable, sideColumn: this.gridSideColumn, attrs: {} };
410962
+ const page = { key: 'page', view: false, layout: this.displayLayout, editable: this.gridEditable, sideColumn: this.gridSideColumn, columnWeights: this.pageColumnWeights(), attrs: {} };
410784
410963
  if (!this.hasViews) {
410785
410964
  return [page]
410786
410965
  }
@@ -411054,15 +411233,42 @@ var script$1x = {
411054
411233
  * @spec openspec/changes/dashboard-layout-when/specs/dashboard-layout-when/spec.md#requirement-a-dashboard-can-arrange-its-cards-by-the-pages-workspace
411055
411234
  */
411056
411235
  layoutFromWorkspace() {
411236
+ const entry = this.layoutEntryFromWorkspace();
411237
+ return entry ? entry.layout : null
411238
+ },
411239
+
411240
+ /**
411241
+ * The first `layoutWhen` entry whose condition holds on the workspace,
411242
+ * or null when none applies.
411243
+ *
411244
+ * @return {object|null}
411245
+ * @spec openspec/changes/dashboard-layout-when/specs/dashboard-layout-when/spec.md#requirement-a-dashboard-can-arrange-its-cards-by-the-pages-workspace
411246
+ */
411247
+ layoutEntryFromWorkspace() {
411057
411248
  const workspace = this.workspaceContext || {};
411058
411249
  for (const entry of Array.isArray(this.layoutWhen) ? this.layoutWhen : []) {
411059
411250
  if (entry && Array.isArray(entry.layout) && isWorkspaceCondition(entry.when) && evaluateWorkspaceCondition(entry.when, workspace)) {
411060
- return entry.layout
411251
+ return entry
411061
411252
  }
411062
411253
  }
411063
411254
  return null
411064
411255
  },
411065
411256
 
411257
+ /**
411258
+ * The column weights of the page's grid: the applying `layoutWhen`
411259
+ * entry's own, else the page's.
411260
+ *
411261
+ * @return {Array<object>|null}
411262
+ * @spec openspec/changes/dashboard-column-weights/specs/dashboard-column-weights/spec.md#requirement-a-dashboard-can-weigh-its-column-groups
411263
+ */
411264
+ pageColumnWeights() {
411265
+ const entry = this.layoutEntryFromWorkspace();
411266
+ if (entry && Array.isArray(entry.gridColumnWeights)) {
411267
+ return entry.gridColumnWeights
411268
+ }
411269
+ return Array.isArray(this.gridColumnWeights) ? this.gridColumnWeights : null
411270
+ },
411271
+
411066
411272
  /**
411067
411273
  * The first `titleWhen` title whose condition holds on the workspace,
411068
411274
  * its `{workspace.<key>}` tokens filled; '' when none applies.
@@ -414073,6 +414279,7 @@ function render$1w(_ctx, _cache, $props, $setup, $data, $options) {
414073
414279
  margin: $props.gridMargin,
414074
414280
  float: $props.gridFloat,
414075
414281
  sideColumn: section.sideColumn,
414282
+ columnWeights: section.columnWeights,
414076
414283
  onLayoutChange: $event => (section.view ? _ctx.onViewLayoutChange($event) : $options.onLayoutChange($event))
414077
414284
  }), {
414078
414285
  widget: vue$1.withCtx(({ item }) => [
@@ -414587,7 +414794,7 @@ function render$1w(_ctx, _cache, $props, $setup, $data, $options) {
414587
414794
  }, 8 /* PROPS */, ["title", "eyebrow", "titleTone", "subtitle", "showTitle"]))
414588
414795
  ]),
414589
414796
  _: 3 /* FORWARDED */
414590
- }, 16 /* FULL_PROPS */, ["layout", "editable", "columns", "columnOpts", "cellHeight", "margin", "float", "sideColumn", "onLayoutChange"]))
414797
+ }, 16 /* FULL_PROPS */, ["layout", "editable", "columns", "columnOpts", "cellHeight", "margin", "float", "sideColumn", "columnWeights", "onLayoutChange"]))
414591
414798
  }), 128 /* KEYED_FRAGMENT */)),
414592
414799
  ($options.gridSectionsShown && $options.viewIsEmpty)
414593
414800
  ? (vue$1.openBlock(), vue$1.createElementBlock("div", {
@@ -414639,7 +414846,7 @@ function render$1w(_ctx, _cache, $props, $setup, $data, $options) {
414639
414846
  }
414640
414847
 
414641
414848
  script$1x.render = render$1w;
414642
- script$1x.__scopeId = "data-v-357c5c95";
414849
+ script$1x.__scopeId = "data-v-630ac6ba";
414643
414850
  const __sfc_main$1x = script$1x;
414644
414851
 
414645
414852
  var CnDashboardPage = /*#__PURE__*/Object.freeze({
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/nextcloud-vue.cjs.js.map
3
- size: 52216670 bytes
4
- sha256: b944dcd1a90348eee8130e40d070b6a73b9250df518953a532ac2815af1cb6dc
3
+ size: 52239553 bytes
4
+ sha256: d0b1d655e8f65ed6e019d4dd2a4eb7f614ae9cdeb695ad8c3e219ba6f5e9d6f1