@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);
@@ -80,6 +80,7 @@ const DEFAULT_MAP = {
80
80
  items: 'items',
81
81
  label: 'title',
82
82
  sort: 'order',
83
+ enumLabels: 'enumLabels',
83
84
  };
84
85
 
85
86
  /**
@@ -349,6 +350,11 @@ function propertiesFromDefinitions(definitions, config = {}, options = {}) {
349
350
  }
350
351
  if (Array.isArray(enumValues) && enumValues.length > 0) {
351
352
  prop.enum = [...enumValues];
353
+ // What each option reads ("digitaal" shown as "Digitaal"), when the definition says.
354
+ const enumLabels = mapped(record, map, 'enumLabels');
355
+ if (enumLabels && typeof enumLabels === 'object' && !Array.isArray(enumLabels)) {
356
+ prop.enumLabels = { ...enumLabels };
357
+ }
352
358
  }
353
359
  if (defaultValue !== undefined && defaultValue !== null && defaultValue !== '') {
354
360
  prop.default = defaultValue;
@@ -1 +1 @@
1
- {"version":3,"file":"dynamicProperties.js","sources":["../../../src/utils/dynamicProperties.js"],"sourcesContent":["// SPDX-FileCopyrightText: 2026 Conduction B.V.\n// SPDX-License-Identifier: EUPL-1.2\n\n/**\n * Form fields that a record's own data decides, rather than its schema.\n *\n * Some domains keep half of an object's shape in the database instead of the\n * schema. A municipal case type declares which extra questions its cases must\n * answer; a product line declares which attributes its orders carry. The\n * schema cannot enumerate those, because a functional admin adds them at\n * runtime without a release.\n *\n * The pattern is always the same three parts, so this module names them once:\n *\n * - a **driving property** on the schema — a reference the user picks first\n * (`case.caseType`), carrying an `x-openregister-extends-form` block;\n * - a **definitions schema** whose records describe the extra fields\n * (`propertyDefinition`), filtered by the driving property's value;\n * - a **values schema** that stores one answer per definition per object\n * (`caseProperty`), written after the parent object exists.\n *\n * Definitions are mapped into ordinary JSON Schema properties and handed to\n * `fieldsFromSchema`, so widget resolution, enum labels, validation and\n * description splitting all come from the one engine. A dynamic field is not\n * a second kind of field; it is a normal field whose declaration arrived late.\n *\n * @module utils/dynamicProperties\n */\n\nimport { resolveFilterTokens } from './resolveFilterTokens.js'\n\n/**\n * The vendor extension a driving property carries.\n *\n * @type {string}\n */\nexport const EXTENDS_FORM_KEY = 'x-openregister-extends-form'\n\n/**\n * The vendor extension a driving property carries to prefill its siblings.\n *\n * Where `x-openregister-extends-form` adds NEW fields, this one fills fields\n * the schema already declares. A case type knows the status a case of its\n * kind starts in and who normally handles it, so a person should not have to\n * retype what the chosen type already answers.\n *\n * @type {string}\n */\nexport const PREFILL_KEY = 'x-openregister-prefill'\n\n/**\n * Prefix that namespaces a dynamic field's key inside form data.\n *\n * Definition records are named by a functional admin, so a definition called\n * `title` or `status` is not merely possible but likely. Without a namespace\n * it would overwrite the real schema property of that name — silently, since\n * a form has no way to tell the two apart once they share a key.\n *\n * @type {string}\n */\nexport const DYNAMIC_KEY_PREFIX = 'x-prop:'\n\n/**\n * How a definition record's declared type becomes a JSON Schema property.\n *\n * Covers the JSON Schema type names themselves plus the shorthands a\n * definitions schema tends to use, because an admin picking a type from a\n * dropdown picks `date`, not `string`/`format: date`.\n *\n * @type {Record<string, object>}\n */\nconst TYPE_MAP = {\n\tstring: { type: 'string' },\n\ttext: { type: 'string' },\n\ttextarea: { type: 'string', format: 'textarea' },\n\tmarkdown: { type: 'string', format: 'markdown' },\n\tnumber: { type: 'number' },\n\tinteger: { type: 'integer' },\n\tboolean: { type: 'boolean' },\n\tdate: { type: 'string', format: 'date' },\n\tdatetime: { type: 'string', format: 'date-time' },\n\t'date-time': { type: 'string', format: 'date-time' },\n\turl: { type: 'string', format: 'uri' },\n\turi: { type: 'string', format: 'uri' },\n\temail: { type: 'string', format: 'email' },\n\tenum: { type: 'string' },\n\tjson: { type: 'object', widget: 'json' },\n\tarray: { type: 'array' },\n\tobject: { type: 'object', widget: 'json' },\n}\n\n/**\n * Field names read off a definition record when the declaration omits `map`.\n *\n * @type {Record<string, string>}\n */\nconst DEFAULT_MAP = {\n\ttitle: 'name',\n\tdescription: 'description',\n\ttype: 'propertyType',\n\tenum: 'enumValues',\n\trequired: 'isRequired',\n\tdefault: 'defaultValue',\n\thideOnCreate: 'hideOnCreate',\n\titems: 'items',\n\tlabel: 'title',\n\tsort: 'order',\n}\n\n/**\n * Read a value off a record by mapped field name.\n *\n * @param {object} record The definition record.\n * @param {object} map The resolved field-name map.\n * @param {string} role The map role (`title`, `type`, …).\n * @return {unknown} The value, or undefined when the role is unmapped or absent.\n */\nfunction mapped(record, map, role) {\n\tconst field = map[role]\n\tif (!field) {\n\t\treturn undefined\n\t}\n\treturn record[field]\n}\n\n/**\n * The `x-openregister-extends-form` declarations on a schema, one per driving\n * property. Pure: reads the schema and nothing else.\n *\n * A schema may carry more than one — an order extended by both its product\n * line and its customer segment — so this always returns a list.\n *\n * @param {object} schema The schema object with a `properties` field.\n * @return {Array<{key: string, config: object}>} The declarations, in property order.\n */\nexport function extendsFormDeclarations(schema) {\n\tif (!schema || !schema.properties) {\n\t\treturn []\n\t}\n\tconst out = []\n\tfor (const [key, prop] of Object.entries(schema.properties)) {\n\t\tconst config = prop && prop[EXTENDS_FORM_KEY]\n\t\tif (config && typeof config === 'object' && config.definitions) {\n\t\t\tout.push({ key, config })\n\t\t}\n\t}\n\treturn out\n}\n\n/**\n * A definition's name as a person should read it.\n *\n * Definition names are typed by a functional admin, and in practice a good\n * many arrive as identifiers rather than labels: real seeded data in dossiq\n * carries `auditorsStatementThreshold` and `interimReportTermWeeks`, which\n * render verbatim on a form a case handler is supposed to find friendly.\n *\n * Only an identifier-shaped name is touched. Anything containing a space is\n * already a label someone wrote deliberately, and reformatting it would be\n * this function deciding it knows better than the person who typed it.\n *\n * @param {string} name The definition's name.\n * @return {string} The name, made readable when it was an identifier.\n */\nfunction humaniseName(name) {\n\tconst value = String(name || '')\n\tif (!value || value.includes(' ')) {\n\t\treturn value\n\t}\n\n\tconst words = value\n\t\t// `camelCase` and `snake_case` / `kebab-case` both become words. The\n\t\t// lookahead pair keeps an acronym whole: `defaultBSNPolicy` splits to\n\t\t// `default BSN Policy`, not `default B S N Policy`.\n\t\t.replace(/([a-z0-9])([A-Z])/g, '$1 $2')\n\t\t.replace(/([A-Z]+)([A-Z][a-z])/g, '$1 $2')\n\t\t.replace(/[_-]+/g, ' ')\n\t\t.trim()\n\t\t.split(/\\s+/)\n\t\t.filter(Boolean)\n\tif (words.length === 0) {\n\t\treturn value\n\t}\n\n\t// Sentence case, not Title Case: splitting `auditorsStatementThreshold`\n\t// leaves each word capitalised, and shipping that would put a Title Case\n\t// label on every form. An all-caps word is an acronym and keeps its shape.\n\tconst cased = words.map((word, index) => {\n\t\tif (word.length > 1 && word === word.toUpperCase()) {\n\t\t\treturn word\n\t\t}\n\t\tconst lower = word.toLowerCase()\n\t\treturn index === 0 ? lower.charAt(0).toUpperCase() + lower.slice(1) : lower\n\t})\n\n\treturn cased.join(' ')\n}\n\n/**\n * The schema's `x-openregister-prefill` declarations, in property order.\n *\n * A declaration needs a `fields` map to be worth acting on: without it there\n * is nothing to copy, and returning it anyway would cost a fetch per change\n * for no effect.\n *\n * @param {object} schema The schema object with a `properties` field.\n * @return {Array<{key: string, config: object}>} The declarations, in property order.\n */\nexport function prefillDeclarations(schema) {\n\tif (!schema || !schema.properties) {\n\t\treturn []\n\t}\n\tconst out = []\n\tfor (const [key, prop] of Object.entries(schema.properties)) {\n\t\tconst config = prop && prop[PREFILL_KEY]\n\t\tif (config && typeof config === 'object' && config.fields\n\t\t\t&& Object.keys(config.fields).length > 0) {\n\t\t\tout.push({ key, config })\n\t\t}\n\t}\n\treturn out\n}\n\n/**\n * The values one chosen record offers its siblings.\n *\n * Reads `config.fields` as `{ targetProperty: sourceProperty }` and returns\n * only the pairs the record can actually answer. A source field the record\n * leaves empty yields nothing, so a case type with no default assignee\n * prefills the status it does know and leaves the assignee alone, rather\n * than blanking a value.\n *\n * @param {object} record The chosen record, as the API returned it.\n * @param {object} config The `x-openregister-prefill` block (needs `fields`).\n * @return {object} Target property keys mapped to the values to apply.\n */\nexport function prefillValues(record, config) {\n\tconst fields = (config && config.fields) || null\n\tif (!record || !fields) {\n\t\treturn {}\n\t}\n\n\tconst out = {}\n\tfor (const [target, source] of Object.entries(fields)) {\n\t\tif (typeof source !== 'string' || !source) {\n\t\t\tcontinue\n\t\t}\n\t\tconst value = record[source]\n\t\tif (value === undefined || value === null || value === '') {\n\t\t\tcontinue\n\t\t}\n\t\tif (Array.isArray(value) && value.length === 0) {\n\t\t\tcontinue\n\t\t}\n\t\tout[target] = value\n\t}\n\treturn out\n}\n\n/**\n * The query parameters that fetch the definitions for one driving value.\n *\n * `config.definitions.filter` is token-resolved the way `x-relation-filter`\n * is, with the driving property's value available as `$value` and the whole\n * form as `@object.<field>`. A filter entry whose token stays unresolved is\n * dropped rather than sent, because a literal `@object.foo` reaching the API\n * filters on nonsense and returns zero rows — which reads exactly like a\n * case type that has no extra properties.\n *\n * @param {object} config The `x-openregister-extends-form` block.\n * @param {unknown} value The driving property's current value.\n * @param {object} [formData] The full form data, for `@object.<field>` tokens.\n * @return {object} Query parameters for `fetchCollection`.\n */\nexport function definitionQueryParams(config, value, formData = {}) {\n\tconst params = { _limit: 100 }\n\tconst raw = (config && config.definitions && config.definitions.filter) || null\n\tif (!raw || typeof raw !== 'object') {\n\t\treturn params\n\t}\n\n\t// `$value` is the driving property itself; substitute it before token\n\t// resolution so the generic resolver never sees a token it cannot answer.\n\tconst seeded = {}\n\tfor (const [key, entry] of Object.entries(raw)) {\n\t\tseeded[key] = entry === '$value' ? value : entry\n\t}\n\tconst resolved = resolveFilterTokens(seeded, { object: { ...formData }, objectId: formData.id })\n\tfor (const [key, entry] of Object.entries(resolved)) {\n\t\tif (typeof entry === 'string' && entry.charAt(0) === '@') {\n\t\t\tcontinue\n\t\t}\n\t\tif (entry && typeof entry === 'object' && !Array.isArray(entry)) {\n\t\t\tfor (const [op, operand] of Object.entries(entry)) {\n\t\t\t\tparams[`${key}[${op}]`] = operand\n\t\t\t}\n\t\t} else if (entry !== '' && entry !== null && entry !== undefined) {\n\t\t\tparams[key] = entry\n\t\t}\n\t}\n\treturn params\n}\n\n/**\n * Turn definition records into JSON Schema properties.\n *\n * The result is an ordinary `properties` map — the same shape a schema\n * carries — so the caller can hand it straight to `fieldsFromSchema` and get\n * widgets, enum labels, validation and required-marking for free.\n *\n * Each key is `DYNAMIC_KEY_PREFIX` + the record's id, never the admin-authored\n * name, so a definition can be renamed without orphaning the answers already\n * stored against it.\n *\n * @param {Array<object>} definitions The definition records.\n * @param {object} [config] The `x-openregister-extends-form` block (`map`, `typeMap`).\n * @param {object} [options] Extra options.\n * @param {number} [options.orderFrom] Order assigned to the first field; each subsequent field takes the next integer. Dynamic fields sort after the schema's own, so pass a number above every declared `order`.\n * @param {boolean} [options.create] The form creates a new object: a definition whose `hideOnCreate` (or the field `config.map.hideOnCreate` names) is `true` gets no field, because the app fills that answer itself at creation. Edit forms still show it.\n * @spec openspec/changes/dynamic-question-hide-on-create/specs/dynamic-question-hide-on-create/spec.md#requirement-a-question-can-stay-off-the-create-form\n * @return {{properties: object, required: string[]}} Properties keyed by prefixed id, plus the required key list.\n */\nexport function propertiesFromDefinitions(definitions, config = {}, options = {}) {\n\tconst map = { ...DEFAULT_MAP, ...(config.map || {}) }\n\tconst typeMap = { ...TYPE_MAP, ...(config.typeMap || {}) }\n\tconst orderFrom = typeof options.orderFrom === 'number' ? options.orderFrom : 1000\n\n\tconst properties = {}\n\tconst required = []\n\t// A definition's own `order` places it; one without follows those that have one, as given.\n\tconst place = (record) => {\n\t\tconst value = record ? Number(mapped(record, map, 'sort')) : NaN\n\t\treturn Number.isFinite(value) ? value : Infinity\n\t}\n\tconst list = (Array.isArray(definitions) ? definitions : [])\n\t\t.filter((record) => !(options.create === true && record && mapped(record, map, 'hideOnCreate') === true))\n\t\t.map((record, index) => ({ record, index }))\n\t\t.sort((a, b) => (place(a.record) - place(b.record)) || (a.index - b.index))\n\t\t.map(({ record }) => record)\n\n\tlist.forEach((record, index) => {\n\t\tif (!record || !record.id) {\n\t\t\treturn\n\t\t}\n\t\tconst key = DYNAMIC_KEY_PREFIX + record.id\n\t\tconst declaredType = mapped(record, map, 'type')\n\t\tconst base = typeMap[declaredType] || typeMap.string\n\n\t\tconst title = mapped(record, map, 'title')\n\t\tconst label = mapped(record, map, 'label')\n\t\tconst description = mapped(record, map, 'description')\n\t\tconst enumValues = mapped(record, map, 'enum')\n\t\tconst defaultValue = mapped(record, map, 'default')\n\t\tconst maxLength = mapped(record, map, 'maxLength')\n\t\tconst format = mapped(record, map, 'format')\n\n\t\tconst prop = {\n\t\t\t...base,\n\t\t\t// The definition's own label as written (\"Soort verzoeker\"), else its name made readable.\n\t\t\ttitle: (typeof label === 'string' && label.trim() !== '') ? label : (humaniseName(title) || key),\n\t\t\t// A definition record separates its short `definition` from its\n\t\t\t// longer `description`; either may be absent, and an empty string\n\t\t\t// must not become the helper text \"undefined\".\n\t\t\tdescription: description || mapped(record, map, 'definition') || '',\n\t\t}\n\t\t// An explicitly mapped format wins over the one the type shorthand\n\t\t// implied, so a definition can say `string` + `date` and still get a\n\t\t// date picker.\n\t\tif (format) {\n\t\t\tprop.format = format\n\t\t}\n\t\tif (typeof maxLength === 'number' && maxLength > 0) {\n\t\t\tprop.maxLength = maxLength\n\t\t}\n\t\tif (Array.isArray(enumValues) && enumValues.length > 0) {\n\t\t\tprop.enum = [...enumValues]\n\t\t}\n\t\tif (defaultValue !== undefined && defaultValue !== null && defaultValue !== '') {\n\t\t\tprop.default = defaultValue\n\t\t}\n\t\tconst items = mapped(record, map, 'items')\n\t\tif (prop.type === 'array' && items && typeof items === 'object' && !Array.isArray(items)) {\n\t\t\tprop.items = JSON.parse(JSON.stringify(items))\n\t\t\t// A list of records is edited row by row, one input per declared\n\t\t\t// field, rather than as a row of free tags.\n\t\t\tif (items.type === 'object' && items.properties && typeof items.properties === 'object') {\n\t\t\t\tprop['x-widget'] = 'sub-objects'\n\t\t\t}\n\t\t}\n\t\tprop.order = orderFrom + index\n\n\t\tproperties[key] = prop\n\t\tif (mapped(record, map, 'required') === true) {\n\t\t\trequired.push(key)\n\t\t}\n\t})\n\n\treturn { properties, required }\n}\n\n/**\n * Whether a form-data key holds a dynamic field's answer.\n *\n * @param {string} key The form-data key.\n * @return {boolean} True for a dynamic key.\n */\nexport function isDynamicKey(key) {\n\treturn typeof key === 'string' && key.startsWith(DYNAMIC_KEY_PREFIX)\n}\n\n/**\n * The definition id a dynamic key refers to.\n *\n * @param {string} key The dynamic form-data key.\n * @return {string} The definition id, or '' when the key is not dynamic.\n */\nexport function definitionIdFromKey(key) {\n\treturn isDynamicKey(key) ? key.slice(DYNAMIC_KEY_PREFIX.length) : ''\n}\n\n/**\n * Split a submitted form payload into the object's own fields and the answers\n * that belong in the values schema.\n *\n * The parent object must be saved first — a value row references it — so the\n * two halves cannot go out in one call, and mixing them would post keys the\n * parent schema does not declare. OpenRegister drops undeclared properties\n * silently, so an unsplit payload loses every answer with a 200 and no error.\n *\n * @param {object} formData The dialog's confirmed payload.\n * @return {{base: object, answers: Array<{definitionId: string, value: unknown}>}} The parent's fields, and one answer per dynamic field.\n */\nexport function splitDynamicFormData(formData) {\n\tconst base = {}\n\tconst answers = []\n\tfor (const [key, value] of Object.entries(formData || {})) {\n\t\tif (isDynamicKey(key)) {\n\t\t\tanswers.push({ definitionId: definitionIdFromKey(key), value })\n\t\t} else {\n\t\t\tbase[key] = value\n\t\t}\n\t}\n\treturn { base, answers }\n}\n\n/**\n * Whether a declaration stores its answers as an array on the parent.\n *\n * Two shapes are supported. The default writes one child record per answer\n * (`values.schema` + `objectRef` + `definitionRef`), which is normalised and\n * queryable. Setting `values.mode: 'array'` instead folds the answers into an\n * array property on the parent object itself, which reads in one request and\n * saves in one write, at the cost of not being queryable per answer.\n *\n * @param {object} config One `x-openregister-extends-form` declaration.\n * @return {boolean} True when the declaration stores an array on the parent.\n */\nexport function usesArrayValues(config) {\n\tconst values = (config && config.values) || null\n\treturn !!(values && values.mode === 'array' && values.arrayKey)\n}\n\n/**\n * Every array an array-mode declaration stores answers in: `arrayKey`, and\n * the arrays `values.arrayKeyBy.keys` routes flagged answers to.\n *\n * A schema can let fewer people read a second array than the first, so a\n * declaration routes the answers to some definitions there (a definition\n * flagged `sensitive`, say) while the rest stay in `arrayKey`.\n *\n * @param {object} config One `x-openregister-extends-form` declaration.\n * @spec openspec/changes/dynamic-answers-by-definition-flag/specs/dynamic-answers-by-definition-flag/spec.md\n * @return {Array<string>} The array keys, `arrayKey` first.\n */\nexport function arrayKeysOf(config) {\n\tif (!usesArrayValues(config)) {\n\t\treturn []\n\t}\n\tconst keys = (config.values.arrayKeyBy && config.values.arrayKeyBy.keys) || {}\n\treturn [...new Set([config.values.arrayKey, ...Object.values(keys).filter((key) => typeof key === 'string' && key !== '')])]\n}\n\n/**\n * The answers of an array-mode declaration, grouped by the array each is\n * stored in: the array `values.arrayKeyBy` names for the value of its\n * definition's flag field, else `arrayKey`.\n *\n * @param {Array<{definitionId: string, value: unknown}>} answers The answers.\n * @param {object} config One `x-openregister-extends-form` declaration.\n * @param {Array<object>} [definitions] The definition records, carrying the flag.\n * @spec openspec/changes/dynamic-answers-by-definition-flag/specs/dynamic-answers-by-definition-flag/spec.md\n * @return {Object<string, Array<{definitionId: string, value: unknown}>>} Array key => its answers; only arrays with answers.\n */\nexport function answersByArrayKey(answers, config, definitions = []) {\n\tif (!usesArrayValues(config)) {\n\t\treturn {}\n\t}\n\tconst by = config.values.arrayKeyBy || null\n\tconst field = by && typeof by.field === 'string' ? by.field : ''\n\tconst keys = (by && by.keys) || {}\n\tconst byId = new Map((definitions || []).map((d) => [String(d.id ?? d.uuid ?? ''), d]))\n\n\tconst groups = {}\n\tfor (const answer of answers || []) {\n\t\tconst def = byId.get(String(answer.definitionId))\n\t\tconst flag = field && def ? String(def[field]) : ''\n\t\tconst key = (flag && typeof keys[flag] === 'string' && keys[flag]) || config.values.arrayKey\n\t\t;(groups[key] = groups[key] || []).push(answer)\n\t}\n\treturn groups\n}\n\n/**\n * Build the array a declaration stores on its parent object.\n *\n * Each entry carries the definition it answers as well as its name, so a\n * reader can render the answers without resolving every definition first.\n * That denormalisation is the point of the array shape: one read, no joins.\n *\n * @param {Array<object>} answers `{ definitionId, value }` entries.\n * @param {object} config One `x-openregister-extends-form` declaration.\n * @param {Array<object>} definitions The definition records, for their names.\n * @return {Array<object>} Entries for the parent's array property.\n */\nexport function valueArrayFor(answers, config, definitions = []) {\n\tif (!usesArrayValues(config)) {\n\t\treturn []\n\t}\n\tconst values = config.values\n\tconst definitionRef = values.definitionRef || 'definition'\n\tconst valueKey = values.valueKey || 'value'\n\tconst nameKey = values.nameKey || 'name'\n\tconst nameFrom = (config.map && config.map.title) || 'name'\n\tconst byId = new Map((definitions || []).map((d) => [String(d.id ?? d.uuid ?? ''), d]))\n\n\treturn (answers || [])\n\t\t.filter(({ value }) => value !== undefined && value !== null && value !== '')\n\t\t.map(({ definitionId, value }) => {\n\t\t\tconst def = byId.get(String(definitionId))\n\t\t\treturn {\n\t\t\t\t[definitionRef]: definitionId,\n\t\t\t\t[nameKey]: def ? String(def[nameFrom] ?? '') : '',\n\t\t\t\t// Same rule as the record shape: a non-scalar answer is\n\t\t\t\t// serialised rather than dropped.\n\t\t\t\t[valueKey]: (typeof value === 'object') ? JSON.stringify(value) : String(value),\n\t\t\t}\n\t\t})\n}\n\n/**\n * Whether an answer counts as given. An empty list is no answer either: it is\n * what an untouched list widget holds.\n *\n * @param {unknown} value The answer.\n * @return {boolean} True when there is something to store.\n */\nfunction isAnswered(value) {\n\tif (value === undefined || value === null || value === '') {\n\t\treturn false\n\t}\n\treturn !(Array.isArray(value) && value.length === 0)\n}\n\n/**\n * An answer as the text an array-mode entry stores.\n *\n * @param {unknown} value The answer.\n * @return {string} The stored text; a non-scalar answer is JSON-encoded.\n */\nfunction storedText(value) {\n\treturn (typeof value === 'object') ? JSON.stringify(value) : String(value)\n}\n\n/**\n * Read one stored answer for the field it fills.\n *\n * An array-mode entry stores every answer as text. A number, switch, list or\n * JSON field cannot show text, so the text is read back for the field's type;\n * text that does not read as that type is kept as it is rather than dropped.\n *\n * @param {unknown} stored The stored value.\n * @param {object} prop The field's JSON Schema property.\n * @return {unknown} The value for the form.\n */\nfunction readStoredAnswer(stored, prop) {\n\tif (typeof stored !== 'string') {\n\t\treturn stored\n\t}\n\tconst type = prop && prop.type\n\tif (type === 'number' || type === 'integer') {\n\t\tconst number = Number(stored)\n\t\treturn stored.trim() !== '' && Number.isFinite(number) ? number : stored\n\t}\n\tif (type === 'boolean') {\n\t\treturn stored === 'true' ? true : (stored === 'false' ? false : stored)\n\t}\n\tif (type === 'array' || type === 'object') {\n\t\ttry {\n\t\t\tconst parsed = JSON.parse(stored)\n\t\t\tif ((type === 'array') === Array.isArray(parsed) && parsed !== null && typeof parsed === 'object') {\n\t\t\t\treturn parsed\n\t\t\t}\n\t\t} catch {\n\t\t\t// Not JSON: the text itself is the answer.\n\t\t}\n\t}\n\treturn stored\n}\n\n/**\n * The answers a record already stores for an array-mode declaration, keyed\n * the way the form keys its data-driven fields.\n *\n * Only questions in `properties` are read: an entry for a definition the\n * form does not ask has no field to fill. An empty stored answer is no\n * answer, so the field keeps its default.\n *\n * @param {object|null} record The record being edited.\n * @param {object} config One `x-openregister-extends-form` declaration.\n * @param {object} properties The dynamic properties, from `propertiesFromDefinitions`.\n * @spec openspec/changes/dynamic-answers-on-edit/specs/dynamic-answers-on-edit/spec.md#requirement-the-edit-form-shows-the-stored-answers\n * @return {object} Form-data keys mapped to the stored answers.\n */\nexport function storedAnswersFor(record, config, properties = {}) {\n\tif (!record || !usesArrayValues(config)) {\n\t\treturn {}\n\t}\n\t// Every array the declaration routes answers to: a reader the server\n\t// stripped one of them for simply finds no stored answer there.\n\tconst entries = arrayKeysOf(config).flatMap((arrayKey) => (Array.isArray(record[arrayKey]) ? record[arrayKey] : []))\n\tconst definitionRef = config.values.definitionRef || 'definition'\n\tconst valueKey = config.values.valueKey || 'value'\n\tconst out = {}\n\tfor (const entry of entries) {\n\t\tif (!entry || typeof entry !== 'object') {\n\t\t\tcontinue\n\t\t}\n\t\tconst key = DYNAMIC_KEY_PREFIX + String(entry[definitionRef] ?? '')\n\t\tif (!Object.hasOwn(properties, key) || !isAnswered(entry[valueKey])) {\n\t\t\tcontinue\n\t\t}\n\t\tout[key] = readStoredAnswer(entry[valueKey], properties[key])\n\t}\n\treturn out\n}\n\n/**\n * Whether an answer is the one an entry already stores.\n *\n * @param {unknown} stored The stored value.\n * @param {unknown} value The form's answer.\n * @return {boolean} True when saving the answer would store the same thing.\n */\nfunction sameAnswer(stored, value) {\n\tif (stored === undefined || stored === null) {\n\t\treturn false\n\t}\n\tif (storedText(value) === String(stored)) {\n\t\treturn true\n\t}\n\tif (typeof value !== 'object' || typeof stored !== 'string') {\n\t\treturn false\n\t}\n\ttry {\n\t\treturn JSON.stringify(JSON.parse(stored)) === JSON.stringify(value)\n\t} catch {\n\t\treturn false\n\t}\n}\n\n/**\n * The array an array-mode declaration stores, after a form answered it.\n *\n * Merges the form's answers over what the record stored: a changed answer\n * replaces its entry in place, an unchanged one keeps its stored entry as it\n * was, a cleared one loses its entry, a new one is added at the end, and an\n * entry for a definition the form did not ask stays. A form only asks the\n * questions its case type asks today, so replacing the whole array would\n * erase every answer it was not shown.\n *\n * @param {Array<object>|undefined} existing The stored array (absent on a new record).\n * @param {Array<{definitionId: string, value: unknown}>} answers The form's answers for this declaration.\n * @param {object} config One `x-openregister-extends-form` declaration.\n * @param {Array<object>} [definitions] The definition records, for their names.\n * @spec openspec/changes/dynamic-answers-on-edit/specs/dynamic-answers-on-edit/spec.md#requirement-saving-an-edit-keeps-what-was-not-changed\n * @return {Array<object>} The array to store.\n */\nexport function mergeValueArray(existing, answers, config, definitions = []) {\n\tif (!usesArrayValues(config)) {\n\t\treturn Array.isArray(existing) ? existing : []\n\t}\n\tconst values = config.values\n\tconst definitionRef = values.definitionRef || 'definition'\n\tconst valueKey = values.valueKey || 'value'\n\tconst fresh = new Map(valueArrayFor(\n\t\t(answers || []).filter(({ value }) => isAnswered(value)),\n\t\tconfig,\n\t\tdefinitions,\n\t).map((entry) => [String(entry[definitionRef]), entry]))\n\tconst answered = new Map((answers || []).map((a) => [String(a.definitionId), a.value]))\n\n\tconst out = []\n\tfor (const entry of (Array.isArray(existing) ? existing : [])) {\n\t\tconst id = String((entry && entry[definitionRef]) ?? '')\n\t\tif (!answered.has(id)) {\n\t\t\tout.push(entry)\n\t\t\tcontinue\n\t\t}\n\t\tconst value = answered.get(id)\n\t\tif (!isAnswered(value)) {\n\t\t\tfresh.delete(id)\n\t\t\tcontinue\n\t\t}\n\t\t// A second entry for the same definition finds its replacement taken.\n\t\tconst kept = sameAnswer(entry[valueKey], value) ? entry : fresh.get(id)\n\t\tif (kept) {\n\t\t\tout.push(kept)\n\t\t}\n\t\tfresh.delete(id)\n\t}\n\treturn out.concat([...fresh.values()])\n}\n\n/**\n * The value-schema records to write for one saved parent object.\n *\n * An answer left empty writes no row: an absent row and a row holding `''`\n * mean the same thing to every reader, and not writing it keeps the value\n * schema free of rows that only record that someone opened the form.\n *\n * @param {Array<{definitionId: string, value: unknown}>} answers The answers from `splitDynamicFormData`.\n * @param {object} config The `x-openregister-extends-form` block (needs `values`).\n * @param {string} objectId The saved parent object's id.\n * @return {Array<object>} One payload per row to create; empty when nothing is to be written.\n */\nexport function valueRecordsFor(answers, config, objectId) {\n\tconst values = (config && config.values) || null\n\tif (!values || !values.schema || !objectId) {\n\t\treturn []\n\t}\n\tconst objectRef = values.objectRef || 'object'\n\tconst definitionRef = values.definitionRef || 'definition'\n\tconst valueKey = values.valueKey || 'value'\n\n\treturn (answers || [])\n\t\t.filter(({ value }) => value !== undefined && value !== null && value !== '')\n\t\t.map(({ definitionId, value }) => ({\n\t\t\t[objectRef]: objectId,\n\t\t\t[definitionRef]: definitionId,\n\t\t\t// A value schema stores one column for every type it carries, so a\n\t\t\t// non-scalar answer is serialised rather than dropped.\n\t\t\t[valueKey]: (typeof value === 'object') ? JSON.stringify(value) : String(value),\n\t\t}))\n}\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AA4BA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,gBAAgB,GAAG,8BAA6B;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,WAAW,GAAG,yBAAwB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,kBAAkB,GAAG,UAAS;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,QAAQ,GAAG;AACjB,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;AAC3B,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;AACzB,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE;AACjD,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE;AACjD,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;AAC3B,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;AAC7B,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;AAC7B,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE;AACzC,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;AAClD,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE;AACrD,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE;AACvC,CAAC,GAAG,EAAE,EAAE,IAAI,EAA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KAAK,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;AAC/E,GAAG,GAAG,CAAC,CAAC,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM;AACrC,GAAG,CAAC,SAAS,GAAG,QAAQ;AACxB,GAAG,CAAC,aAAa,GAAG,YAAY;AAChC;AACA;AACA,GAAG,CAAC,QAAQ,GAAG,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC;AAClF,GAAG,CAAC,CAAC;AACL;;;;"}
1
+ {"version":3,"file":"dynamicProperties.js","sources":["../../../src/utils/dynamicProperties.js"],"sourcesContent":["// SPDX-FileCopyrightText: 2026 Conduction B.V.\n// SPDX-License-Identifier: EUPL-1.2\n\n/**\n * Form fields that a record's own data decides, rather than its schema.\n *\n * Some domains keep half of an object's shape in the database instead of the\n * schema. A municipal case type declares which extra questions its cases must\n * answer; a product line declares which attributes its orders carry. The\n * schema cannot enumerate those, because a functional admin adds them at\n * runtime without a release.\n *\n * The pattern is always the same three parts, so this module names them once:\n *\n * - a **driving property** on the schema — a reference the user picks first\n * (`case.caseType`), carrying an `x-openregister-extends-form` block;\n * - a **definitions schema** whose records describe the extra fields\n * (`propertyDefinition`), filtered by the driving property's value;\n * - a **values schema** that stores one answer per definition per object\n * (`caseProperty`), written after the parent object exists.\n *\n * Definitions are mapped into ordinary JSON Schema properties and handed to\n * `fieldsFromSchema`, so widget resolution, enum labels, validation and\n * description splitting all come from the one engine. A dynamic field is not\n * a second kind of field; it is a normal field whose declaration arrived late.\n *\n * @module utils/dynamicProperties\n */\n\nimport { resolveFilterTokens } from './resolveFilterTokens.js'\n\n/**\n * The vendor extension a driving property carries.\n *\n * @type {string}\n */\nexport const EXTENDS_FORM_KEY = 'x-openregister-extends-form'\n\n/**\n * The vendor extension a driving property carries to prefill its siblings.\n *\n * Where `x-openregister-extends-form` adds NEW fields, this one fills fields\n * the schema already declares. A case type knows the status a case of its\n * kind starts in and who normally handles it, so a person should not have to\n * retype what the chosen type already answers.\n *\n * @type {string}\n */\nexport const PREFILL_KEY = 'x-openregister-prefill'\n\n/**\n * Prefix that namespaces a dynamic field's key inside form data.\n *\n * Definition records are named by a functional admin, so a definition called\n * `title` or `status` is not merely possible but likely. Without a namespace\n * it would overwrite the real schema property of that name — silently, since\n * a form has no way to tell the two apart once they share a key.\n *\n * @type {string}\n */\nexport const DYNAMIC_KEY_PREFIX = 'x-prop:'\n\n/**\n * How a definition record's declared type becomes a JSON Schema property.\n *\n * Covers the JSON Schema type names themselves plus the shorthands a\n * definitions schema tends to use, because an admin picking a type from a\n * dropdown picks `date`, not `string`/`format: date`.\n *\n * @type {Record<string, object>}\n */\nconst TYPE_MAP = {\n\tstring: { type: 'string' },\n\ttext: { type: 'string' },\n\ttextarea: { type: 'string', format: 'textarea' },\n\tmarkdown: { type: 'string', format: 'markdown' },\n\tnumber: { type: 'number' },\n\tinteger: { type: 'integer' },\n\tboolean: { type: 'boolean' },\n\tdate: { type: 'string', format: 'date' },\n\tdatetime: { type: 'string', format: 'date-time' },\n\t'date-time': { type: 'string', format: 'date-time' },\n\turl: { type: 'string', format: 'uri' },\n\turi: { type: 'string', format: 'uri' },\n\temail: { type: 'string', format: 'email' },\n\tenum: { type: 'string' },\n\tjson: { type: 'object', widget: 'json' },\n\tarray: { type: 'array' },\n\tobject: { type: 'object', widget: 'json' },\n}\n\n/**\n * Field names read off a definition record when the declaration omits `map`.\n *\n * @type {Record<string, string>}\n */\nconst DEFAULT_MAP = {\n\ttitle: 'name',\n\tdescription: 'description',\n\ttype: 'propertyType',\n\tenum: 'enumValues',\n\trequired: 'isRequired',\n\tdefault: 'defaultValue',\n\thideOnCreate: 'hideOnCreate',\n\titems: 'items',\n\tlabel: 'title',\n\tsort: 'order',\n\tenumLabels: 'enumLabels',\n}\n\n/**\n * Read a value off a record by mapped field name.\n *\n * @param {object} record The definition record.\n * @param {object} map The resolved field-name map.\n * @param {string} role The map role (`title`, `type`, …).\n * @return {unknown} The value, or undefined when the role is unmapped or absent.\n */\nfunction mapped(record, map, role) {\n\tconst field = map[role]\n\tif (!field) {\n\t\treturn undefined\n\t}\n\treturn record[field]\n}\n\n/**\n * The `x-openregister-extends-form` declarations on a schema, one per driving\n * property. Pure: reads the schema and nothing else.\n *\n * A schema may carry more than one — an order extended by both its product\n * line and its customer segment — so this always returns a list.\n *\n * @param {object} schema The schema object with a `properties` field.\n * @return {Array<{key: string, config: object}>} The declarations, in property order.\n */\nexport function extendsFormDeclarations(schema) {\n\tif (!schema || !schema.properties) {\n\t\treturn []\n\t}\n\tconst out = []\n\tfor (const [key, prop] of Object.entries(schema.properties)) {\n\t\tconst config = prop && prop[EXTENDS_FORM_KEY]\n\t\tif (config && typeof config === 'object' && config.definitions) {\n\t\t\tout.push({ key, config })\n\t\t}\n\t}\n\treturn out\n}\n\n/**\n * A definition's name as a person should read it.\n *\n * Definition names are typed by a functional admin, and in practice a good\n * many arrive as identifiers rather than labels: real seeded data in dossiq\n * carries `auditorsStatementThreshold` and `interimReportTermWeeks`, which\n * render verbatim on a form a case handler is supposed to find friendly.\n *\n * Only an identifier-shaped name is touched. Anything containing a space is\n * already a label someone wrote deliberately, and reformatting it would be\n * this function deciding it knows better than the person who typed it.\n *\n * @param {string} name The definition's name.\n * @return {string} The name, made readable when it was an identifier.\n */\nfunction humaniseName(name) {\n\tconst value = String(name || '')\n\tif (!value || value.includes(' ')) {\n\t\treturn value\n\t}\n\n\tconst words = value\n\t\t// `camelCase` and `snake_case` / `kebab-case` both become words. The\n\t\t// lookahead pair keeps an acronym whole: `defaultBSNPolicy` splits to\n\t\t// `default BSN Policy`, not `default B S N Policy`.\n\t\t.replace(/([a-z0-9])([A-Z])/g, '$1 $2')\n\t\t.replace(/([A-Z]+)([A-Z][a-z])/g, '$1 $2')\n\t\t.replace(/[_-]+/g, ' ')\n\t\t.trim()\n\t\t.split(/\\s+/)\n\t\t.filter(Boolean)\n\tif (words.length === 0) {\n\t\treturn value\n\t}\n\n\t// Sentence case, not Title Case: splitting `auditorsStatementThreshold`\n\t// leaves each word capitalised, and shipping that would put a Title Case\n\t// label on every form. An all-caps word is an acronym and keeps its shape.\n\tconst cased = words.map((word, index) => {\n\t\tif (word.length > 1 && word === word.toUpperCase()) {\n\t\t\treturn word\n\t\t}\n\t\tconst lower = word.toLowerCase()\n\t\treturn index === 0 ? lower.charAt(0).toUpperCase() + lower.slice(1) : lower\n\t})\n\n\treturn cased.join(' ')\n}\n\n/**\n * The schema's `x-openregister-prefill` declarations, in property order.\n *\n * A declaration needs a `fields` map to be worth acting on: without it there\n * is nothing to copy, and returning it anyway would cost a fetch per change\n * for no effect.\n *\n * @param {object} schema The schema object with a `properties` field.\n * @return {Array<{key: string, config: object}>} The declarations, in property order.\n */\nexport function prefillDeclarations(schema) {\n\tif (!schema || !schema.properties) {\n\t\treturn []\n\t}\n\tconst out = []\n\tfor (const [key, prop] of Object.entries(schema.properties)) {\n\t\tconst config = prop && prop[PREFILL_KEY]\n\t\tif (config && typeof config === 'object' && config.fields\n\t\t\t&& Object.keys(config.fields).length > 0) {\n\t\t\tout.push({ key, config })\n\t\t}\n\t}\n\treturn out\n}\n\n/**\n * The values one chosen record offers its siblings.\n *\n * Reads `config.fields` as `{ targetProperty: sourceProperty }` and returns\n * only the pairs the record can actually answer. A source field the record\n * leaves empty yields nothing, so a case type with no default assignee\n * prefills the status it does know and leaves the assignee alone, rather\n * than blanking a value.\n *\n * @param {object} record The chosen record, as the API returned it.\n * @param {object} config The `x-openregister-prefill` block (needs `fields`).\n * @return {object} Target property keys mapped to the values to apply.\n */\nexport function prefillValues(record, config) {\n\tconst fields = (config && config.fields) || null\n\tif (!record || !fields) {\n\t\treturn {}\n\t}\n\n\tconst out = {}\n\tfor (const [target, source] of Object.entries(fields)) {\n\t\tif (typeof source !== 'string' || !source) {\n\t\t\tcontinue\n\t\t}\n\t\tconst value = record[source]\n\t\tif (value === undefined || value === null || value === '') {\n\t\t\tcontinue\n\t\t}\n\t\tif (Array.isArray(value) && value.length === 0) {\n\t\t\tcontinue\n\t\t}\n\t\tout[target] = value\n\t}\n\treturn out\n}\n\n/**\n * The query parameters that fetch the definitions for one driving value.\n *\n * `config.definitions.filter` is token-resolved the way `x-relation-filter`\n * is, with the driving property's value available as `$value` and the whole\n * form as `@object.<field>`. A filter entry whose token stays unresolved is\n * dropped rather than sent, because a literal `@object.foo` reaching the API\n * filters on nonsense and returns zero rows — which reads exactly like a\n * case type that has no extra properties.\n *\n * @param {object} config The `x-openregister-extends-form` block.\n * @param {unknown} value The driving property's current value.\n * @param {object} [formData] The full form data, for `@object.<field>` tokens.\n * @return {object} Query parameters for `fetchCollection`.\n */\nexport function definitionQueryParams(config, value, formData = {}) {\n\tconst params = { _limit: 100 }\n\tconst raw = (config && config.definitions && config.definitions.filter) || null\n\tif (!raw || typeof raw !== 'object') {\n\t\treturn params\n\t}\n\n\t// `$value` is the driving property itself; substitute it before token\n\t// resolution so the generic resolver never sees a token it cannot answer.\n\tconst seeded = {}\n\tfor (const [key, entry] of Object.entries(raw)) {\n\t\tseeded[key] = entry === '$value' ? value : entry\n\t}\n\tconst resolved = resolveFilterTokens(seeded, { object: { ...formData }, objectId: formData.id })\n\tfor (const [key, entry] of Object.entries(resolved)) {\n\t\tif (typeof entry === 'string' && entry.charAt(0) === '@') {\n\t\t\tcontinue\n\t\t}\n\t\tif (entry && typeof entry === 'object' && !Array.isArray(entry)) {\n\t\t\tfor (const [op, operand] of Object.entries(entry)) {\n\t\t\t\tparams[`${key}[${op}]`] = operand\n\t\t\t}\n\t\t} else if (entry !== '' && entry !== null && entry !== undefined) {\n\t\t\tparams[key] = entry\n\t\t}\n\t}\n\treturn params\n}\n\n/**\n * Turn definition records into JSON Schema properties.\n *\n * The result is an ordinary `properties` map — the same shape a schema\n * carries — so the caller can hand it straight to `fieldsFromSchema` and get\n * widgets, enum labels, validation and required-marking for free.\n *\n * Each key is `DYNAMIC_KEY_PREFIX` + the record's id, never the admin-authored\n * name, so a definition can be renamed without orphaning the answers already\n * stored against it.\n *\n * @param {Array<object>} definitions The definition records.\n * @param {object} [config] The `x-openregister-extends-form` block (`map`, `typeMap`).\n * @param {object} [options] Extra options.\n * @param {number} [options.orderFrom] Order assigned to the first field; each subsequent field takes the next integer. Dynamic fields sort after the schema's own, so pass a number above every declared `order`.\n * @param {boolean} [options.create] The form creates a new object: a definition whose `hideOnCreate` (or the field `config.map.hideOnCreate` names) is `true` gets no field, because the app fills that answer itself at creation. Edit forms still show it.\n * @spec openspec/changes/dynamic-question-hide-on-create/specs/dynamic-question-hide-on-create/spec.md#requirement-a-question-can-stay-off-the-create-form\n * @return {{properties: object, required: string[]}} Properties keyed by prefixed id, plus the required key list.\n */\nexport function propertiesFromDefinitions(definitions, config = {}, options = {}) {\n\tconst map = { ...DEFAULT_MAP, ...(config.map || {}) }\n\tconst typeMap = { ...TYPE_MAP, ...(config.typeMap || {}) }\n\tconst orderFrom = typeof options.orderFrom === 'number' ? options.orderFrom : 1000\n\n\tconst properties = {}\n\tconst required = []\n\t// A definition's own `order` places it; one without follows those that have one, as given.\n\tconst place = (record) => {\n\t\tconst value = record ? Number(mapped(record, map, 'sort')) : NaN\n\t\treturn Number.isFinite(value) ? value : Infinity\n\t}\n\tconst list = (Array.isArray(definitions) ? definitions : [])\n\t\t.filter((record) => !(options.create === true && record && mapped(record, map, 'hideOnCreate') === true))\n\t\t.map((record, index) => ({ record, index }))\n\t\t.sort((a, b) => (place(a.record) - place(b.record)) || (a.index - b.index))\n\t\t.map(({ record }) => record)\n\n\tlist.forEach((record, index) => {\n\t\tif (!record || !record.id) {\n\t\t\treturn\n\t\t}\n\t\tconst key = DYNAMIC_KEY_PREFIX + record.id\n\t\tconst declaredType = mapped(record, map, 'type')\n\t\tconst base = typeMap[declaredType] || typeMap.string\n\n\t\tconst title = mapped(record, map, 'title')\n\t\tconst label = mapped(record, map, 'label')\n\t\tconst description = mapped(record, map, 'description')\n\t\tconst enumValues = mapped(record, map, 'enum')\n\t\tconst defaultValue = mapped(record, map, 'default')\n\t\tconst maxLength = mapped(record, map, 'maxLength')\n\t\tconst format = mapped(record, map, 'format')\n\n\t\tconst prop = {\n\t\t\t...base,\n\t\t\t// The definition's own label as written (\"Soort verzoeker\"), else its name made readable.\n\t\t\ttitle: (typeof label === 'string' && label.trim() !== '') ? label : (humaniseName(title) || key),\n\t\t\t// A definition record separates its short `definition` from its\n\t\t\t// longer `description`; either may be absent, and an empty string\n\t\t\t// must not become the helper text \"undefined\".\n\t\t\tdescription: description || mapped(record, map, 'definition') || '',\n\t\t}\n\t\t// An explicitly mapped format wins over the one the type shorthand\n\t\t// implied, so a definition can say `string` + `date` and still get a\n\t\t// date picker.\n\t\tif (format) {\n\t\t\tprop.format = format\n\t\t}\n\t\tif (typeof maxLength === 'number' && maxLength > 0) {\n\t\t\tprop.maxLength = maxLength\n\t\t}\n\t\tif (Array.isArray(enumValues) && enumValues.length > 0) {\n\t\t\tprop.enum = [...enumValues]\n\t\t\t// What each option reads (\"digitaal\" shown as \"Digitaal\"), when the definition says.\n\t\t\tconst enumLabels = mapped(record, map, 'enumLabels')\n\t\t\tif (enumLabels && typeof enumLabels === 'object' && !Array.isArray(enumLabels)) {\n\t\t\t\tprop.enumLabels = { ...enumLabels }\n\t\t\t}\n\t\t}\n\t\tif (defaultValue !== undefined && defaultValue !== null && defaultValue !== '') {\n\t\t\tprop.default = defaultValue\n\t\t}\n\t\tconst items = mapped(record, map, 'items')\n\t\tif (prop.type === 'array' && items && typeof items === 'object' && !Array.isArray(items)) {\n\t\t\tprop.items = JSON.parse(JSON.stringify(items))\n\t\t\t// A list of records is edited row by row, one input per declared\n\t\t\t// field, rather than as a row of free tags.\n\t\t\tif (items.type === 'object' && items.properties && typeof items.properties === 'object') {\n\t\t\t\tprop['x-widget'] = 'sub-objects'\n\t\t\t}\n\t\t}\n\t\tprop.order = orderFrom + index\n\n\t\tproperties[key] = prop\n\t\tif (mapped(record, map, 'required') === true) {\n\t\t\trequired.push(key)\n\t\t}\n\t})\n\n\treturn { properties, required }\n}\n\n/**\n * Whether a form-data key holds a dynamic field's answer.\n *\n * @param {string} key The form-data key.\n * @return {boolean} True for a dynamic key.\n */\nexport function isDynamicKey(key) {\n\treturn typeof key === 'string' && key.startsWith(DYNAMIC_KEY_PREFIX)\n}\n\n/**\n * The definition id a dynamic key refers to.\n *\n * @param {string} key The dynamic form-data key.\n * @return {string} The definition id, or '' when the key is not dynamic.\n */\nexport function definitionIdFromKey(key) {\n\treturn isDynamicKey(key) ? key.slice(DYNAMIC_KEY_PREFIX.length) : ''\n}\n\n/**\n * Split a submitted form payload into the object's own fields and the answers\n * that belong in the values schema.\n *\n * The parent object must be saved first — a value row references it — so the\n * two halves cannot go out in one call, and mixing them would post keys the\n * parent schema does not declare. OpenRegister drops undeclared properties\n * silently, so an unsplit payload loses every answer with a 200 and no error.\n *\n * @param {object} formData The dialog's confirmed payload.\n * @return {{base: object, answers: Array<{definitionId: string, value: unknown}>}} The parent's fields, and one answer per dynamic field.\n */\nexport function splitDynamicFormData(formData) {\n\tconst base = {}\n\tconst answers = []\n\tfor (const [key, value] of Object.entries(formData || {})) {\n\t\tif (isDynamicKey(key)) {\n\t\t\tanswers.push({ definitionId: definitionIdFromKey(key), value })\n\t\t} else {\n\t\t\tbase[key] = value\n\t\t}\n\t}\n\treturn { base, answers }\n}\n\n/**\n * Whether a declaration stores its answers as an array on the parent.\n *\n * Two shapes are supported. The default writes one child record per answer\n * (`values.schema` + `objectRef` + `definitionRef`), which is normalised and\n * queryable. Setting `values.mode: 'array'` instead folds the answers into an\n * array property on the parent object itself, which reads in one request and\n * saves in one write, at the cost of not being queryable per answer.\n *\n * @param {object} config One `x-openregister-extends-form` declaration.\n * @return {boolean} True when the declaration stores an array on the parent.\n */\nexport function usesArrayValues(config) {\n\tconst values = (config && config.values) || null\n\treturn !!(values && values.mode === 'array' && values.arrayKey)\n}\n\n/**\n * Every array an array-mode declaration stores answers in: `arrayKey`, and\n * the arrays `values.arrayKeyBy.keys` routes flagged answers to.\n *\n * A schema can let fewer people read a second array than the first, so a\n * declaration routes the answers to some definitions there (a definition\n * flagged `sensitive`, say) while the rest stay in `arrayKey`.\n *\n * @param {object} config One `x-openregister-extends-form` declaration.\n * @spec openspec/changes/dynamic-answers-by-definition-flag/specs/dynamic-answers-by-definition-flag/spec.md\n * @return {Array<string>} The array keys, `arrayKey` first.\n */\nexport function arrayKeysOf(config) {\n\tif (!usesArrayValues(config)) {\n\t\treturn []\n\t}\n\tconst keys = (config.values.arrayKeyBy && config.values.arrayKeyBy.keys) || {}\n\treturn [...new Set([config.values.arrayKey, ...Object.values(keys).filter((key) => typeof key === 'string' && key !== '')])]\n}\n\n/**\n * The answers of an array-mode declaration, grouped by the array each is\n * stored in: the array `values.arrayKeyBy` names for the value of its\n * definition's flag field, else `arrayKey`.\n *\n * @param {Array<{definitionId: string, value: unknown}>} answers The answers.\n * @param {object} config One `x-openregister-extends-form` declaration.\n * @param {Array<object>} [definitions] The definition records, carrying the flag.\n * @spec openspec/changes/dynamic-answers-by-definition-flag/specs/dynamic-answers-by-definition-flag/spec.md\n * @return {Object<string, Array<{definitionId: string, value: unknown}>>} Array key => its answers; only arrays with answers.\n */\nexport function answersByArrayKey(answers, config, definitions = []) {\n\tif (!usesArrayValues(config)) {\n\t\treturn {}\n\t}\n\tconst by = config.values.arrayKeyBy || null\n\tconst field = by && typeof by.field === 'string' ? by.field : ''\n\tconst keys = (by && by.keys) || {}\n\tconst byId = new Map((definitions || []).map((d) => [String(d.id ?? d.uuid ?? ''), d]))\n\n\tconst groups = {}\n\tfor (const answer of answers || []) {\n\t\tconst def = byId.get(String(answer.definitionId))\n\t\tconst flag = field && def ? String(def[field]) : ''\n\t\tconst key = (flag && typeof keys[flag] === 'string' && keys[flag]) || config.values.arrayKey\n\t\t;(groups[key] = groups[key] || []).push(answer)\n\t}\n\treturn groups\n}\n\n/**\n * Build the array a declaration stores on its parent object.\n *\n * Each entry carries the definition it answers as well as its name, so a\n * reader can render the answers without resolving every definition first.\n * That denormalisation is the point of the array shape: one read, no joins.\n *\n * @param {Array<object>} answers `{ definitionId, value }` entries.\n * @param {object} config One `x-openregister-extends-form` declaration.\n * @param {Array<object>} definitions The definition records, for their names.\n * @return {Array<object>} Entries for the parent's array property.\n */\nexport function valueArrayFor(answers, config, definitions = []) {\n\tif (!usesArrayValues(config)) {\n\t\treturn []\n\t}\n\tconst values = config.values\n\tconst definitionRef = values.definitionRef || 'definition'\n\tconst valueKey = values.valueKey || 'value'\n\tconst nameKey = values.nameKey || 'name'\n\tconst nameFrom = (config.map && config.map.title) || 'name'\n\tconst byId = new Map((definitions || []).map((d) => [String(d.id ?? d.uuid ?? ''), d]))\n\n\treturn (answers || [])\n\t\t.filter(({ value }) => value !== undefined && value !== null && value !== '')\n\t\t.map(({ definitionId, value }) => {\n\t\t\tconst def = byId.get(String(definitionId))\n\t\t\treturn {\n\t\t\t\t[definitionRef]: definitionId,\n\t\t\t\t[nameKey]: def ? String(def[nameFrom] ?? '') : '',\n\t\t\t\t// Same rule as the record shape: a non-scalar answer is\n\t\t\t\t// serialised rather than dropped.\n\t\t\t\t[valueKey]: (typeof value === 'object') ? JSON.stringify(value) : String(value),\n\t\t\t}\n\t\t})\n}\n\n/**\n * Whether an answer counts as given. An empty list is no answer either: it is\n * what an untouched list widget holds.\n *\n * @param {unknown} value The answer.\n * @return {boolean} True when there is something to store.\n */\nfunction isAnswered(value) {\n\tif (value === undefined || value === null || value === '') {\n\t\treturn false\n\t}\n\treturn !(Array.isArray(value) && value.length === 0)\n}\n\n/**\n * An answer as the text an array-mode entry stores.\n *\n * @param {unknown} value The answer.\n * @return {string} The stored text; a non-scalar answer is JSON-encoded.\n */\nfunction storedText(value) {\n\treturn (typeof value === 'object') ? JSON.stringify(value) : String(value)\n}\n\n/**\n * Read one stored answer for the field it fills.\n *\n * An array-mode entry stores every answer as text. A number, switch, list or\n * JSON field cannot show text, so the text is read back for the field's type;\n * text that does not read as that type is kept as it is rather than dropped.\n *\n * @param {unknown} stored The stored value.\n * @param {object} prop The field's JSON Schema property.\n * @return {unknown} The value for the form.\n */\nfunction readStoredAnswer(stored, prop) {\n\tif (typeof stored !== 'string') {\n\t\treturn stored\n\t}\n\tconst type = prop && prop.type\n\tif (type === 'number' || type === 'integer') {\n\t\tconst number = Number(stored)\n\t\treturn stored.trim() !== '' && Number.isFinite(number) ? number : stored\n\t}\n\tif (type === 'boolean') {\n\t\treturn stored === 'true' ? true : (stored === 'false' ? false : stored)\n\t}\n\tif (type === 'array' || type === 'object') {\n\t\ttry {\n\t\t\tconst parsed = JSON.parse(stored)\n\t\t\tif ((type === 'array') === Array.isArray(parsed) && parsed !== null && typeof parsed === 'object') {\n\t\t\t\treturn parsed\n\t\t\t}\n\t\t} catch {\n\t\t\t// Not JSON: the text itself is the answer.\n\t\t}\n\t}\n\treturn stored\n}\n\n/**\n * The answers a record already stores for an array-mode declaration, keyed\n * the way the form keys its data-driven fields.\n *\n * Only questions in `properties` are read: an entry for a definition the\n * form does not ask has no field to fill. An empty stored answer is no\n * answer, so the field keeps its default.\n *\n * @param {object|null} record The record being edited.\n * @param {object} config One `x-openregister-extends-form` declaration.\n * @param {object} properties The dynamic properties, from `propertiesFromDefinitions`.\n * @spec openspec/changes/dynamic-answers-on-edit/specs/dynamic-answers-on-edit/spec.md#requirement-the-edit-form-shows-the-stored-answers\n * @return {object} Form-data keys mapped to the stored answers.\n */\nexport function storedAnswersFor(record, config, properties = {}) {\n\tif (!record || !usesArrayValues(config)) {\n\t\treturn {}\n\t}\n\t// Every array the declaration routes answers to: a reader the server\n\t// stripped one of them for simply finds no stored answer there.\n\tconst entries = arrayKeysOf(config).flatMap((arrayKey) => (Array.isArray(record[arrayKey]) ? record[arrayKey] : []))\n\tconst definitionRef = config.values.definitionRef || 'definition'\n\tconst valueKey = config.values.valueKey || 'value'\n\tconst out = {}\n\tfor (const entry of entries) {\n\t\tif (!entry || typeof entry !== 'object') {\n\t\t\tcontinue\n\t\t}\n\t\tconst key = DYNAMIC_KEY_PREFIX + String(entry[definitionRef] ?? '')\n\t\tif (!Object.hasOwn(properties, key) || !isAnswered(entry[valueKey])) {\n\t\t\tcontinue\n\t\t}\n\t\tout[key] = readStoredAnswer(entry[valueKey], properties[key])\n\t}\n\treturn out\n}\n\n/**\n * Whether an answer is the one an entry already stores.\n *\n * @param {unknown} stored The stored value.\n * @param {unknown} value The form's answer.\n * @return {boolean} True when saving the answer would store the same thing.\n */\nfunction sameAnswer(stored, value) {\n\tif (stored === undefined || stored === null) {\n\t\treturn false\n\t}\n\tif (storedText(value) === String(stored)) {\n\t\treturn true\n\t}\n\tif (typeof value !== 'object' || typeof stored !== 'string') {\n\t\treturn false\n\t}\n\ttry {\n\t\treturn JSON.stringify(JSON.parse(stored)) === JSON.stringify(value)\n\t} catch {\n\t\treturn false\n\t}\n}\n\n/**\n * The array an array-mode declaration stores, after a form answered it.\n *\n * Merges the form's answers over what the record stored: a changed answer\n * replaces its entry in place, an unchanged one keeps its stored entry as it\n * was, a cleared one loses its entry, a new one is added at the end, and an\n * entry for a definition the form did not ask stays. A form only asks the\n * questions its case type asks today, so replacing the whole array would\n * erase every answer it was not shown.\n *\n * @param {Array<object>|undefined} existing The stored array (absent on a new record).\n * @param {Array<{definitionId: string, value: unknown}>} answers The form's answers for this declaration.\n * @param {object} config One `x-openregister-extends-form` declaration.\n * @param {Array<object>} [definitions] The definition records, for their names.\n * @spec openspec/changes/dynamic-answers-on-edit/specs/dynamic-answers-on-edit/spec.md#requirement-saving-an-edit-keeps-what-was-not-changed\n * @return {Array<object>} The array to store.\n */\nexport function mergeValueArray(existing, answers, config, definitions = []) {\n\tif (!usesArrayValues(config)) {\n\t\treturn Array.isArray(existing) ? existing : []\n\t}\n\tconst values = config.values\n\tconst definitionRef = values.definitionRef || 'definition'\n\tconst valueKey = values.valueKey || 'value'\n\tconst fresh = new Map(valueArrayFor(\n\t\t(answers || []).filter(({ value }) => isAnswered(value)),\n\t\tconfig,\n\t\tdefinitions,\n\t).map((entry) => [String(entry[definitionRef]), entry]))\n\tconst answered = new Map((answers || []).map((a) => [String(a.definitionId), a.value]))\n\n\tconst out = []\n\tfor (const entry of (Array.isArray(existing) ? existing : [])) {\n\t\tconst id = String((entry && entry[definitionRef]) ?? '')\n\t\tif (!answered.has(id)) {\n\t\t\tout.push(entry)\n\t\t\tcontinue\n\t\t}\n\t\tconst value = answered.get(id)\n\t\tif (!isAnswered(value)) {\n\t\t\tfresh.delete(id)\n\t\t\tcontinue\n\t\t}\n\t\t// A second entry for the same definition finds its replacement taken.\n\t\tconst kept = sameAnswer(entry[valueKey], value) ? entry : fresh.get(id)\n\t\tif (kept) {\n\t\t\tout.push(kept)\n\t\t}\n\t\tfresh.delete(id)\n\t}\n\treturn out.concat([...fresh.values()])\n}\n\n/**\n * The value-schema records to write for one saved parent object.\n *\n * An answer left empty writes no row: an absent row and a row holding `''`\n * mean the same thing to every reader, and not writing it keeps the value\n * schema free of rows that only record that someone opened the form.\n *\n * @param {Array<{definitionId: string, value: unknown}>} answers The answers from `splitDynamicFormData`.\n * @param {object} config The `x-openregister-extends-form` block (needs `values`).\n * @param {string} objectId The saved parent object's id.\n * @return {Array<object>} One payload per row to create; empty when nothing is to be written.\n */\nexport function valueRecordsFor(answers, config, objectId) {\n\tconst values = (config && config.values) || null\n\tif (!values || !values.schema || !objectId) {\n\t\treturn []\n\t}\n\tconst objectRef = values.objectRef || 'object'\n\tconst definitionRef = values.definitionRef || 'definition'\n\tconst valueKey = values.valueKey || 'value'\n\n\treturn (answers || [])\n\t\t.filter(({ value }) => value !== undefined && value !== null && value !== '')\n\t\t.map(({ definitionId, value }) => ({\n\t\t\t[objectRef]: objectId,\n\t\t\t[definitionRef]: definitionId,\n\t\t\t// A value schema stores one column for every type it carries, so a\n\t\t\t// non-scalar answer is serialised rather than dropped.\n\t\t\t[valueKey]: (typeof value === 'object') ? JSON.stringify(value) : String(value),\n\t\t}))\n}\n"],"names":[],"mappings":";;AAAA;A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AAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,IAAI,QAAO;AAC5C;AACA,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE;AACtB,GAAG,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE,CAAC;AAC/E,GAAG,GAAG,CAAC,CAAC,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM;AACrC,GAAG,CAAC,SAAS,GAAG,QAAQ;AACxB,GAAG,CAAC,aAAa,GAAG,YAAY;AAChC;AACA;AACA,GAAG,CAAC,QAAQ,GAAG,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC;AAClF,GAAG,CAAC,CAAC;AACL;;;;"}
@@ -35123,6 +35123,7 @@ const DEFAULT_MAP = {
35123
35123
  items: 'items',
35124
35124
  label: 'title',
35125
35125
  sort: 'order',
35126
+ enumLabels: 'enumLabels',
35126
35127
  };
35127
35128
 
35128
35129
  /**
@@ -35392,6 +35393,11 @@ function propertiesFromDefinitions(definitions, config = {}, options = {}) {
35392
35393
  }
35393
35394
  if (Array.isArray(enumValues) && enumValues.length > 0) {
35394
35395
  prop.enum = [...enumValues];
35396
+ // What each option reads ("digitaal" shown as "Digitaal"), when the definition says.
35397
+ const enumLabels = mapped(record, map, 'enumLabels');
35398
+ if (enumLabels && typeof enumLabels === 'object' && !Array.isArray(enumLabels)) {
35399
+ prop.enumLabels = { ...enumLabels };
35400
+ }
35395
35401
  }
35396
35402
  if (defaultValue !== undefined && defaultValue !== null && defaultValue !== '') {
35397
35403
  prop.default = defaultValue;
@@ -99717,7 +99723,7 @@ var script$7G = {
99717
99723
  if (response.ok) {
99718
99724
  const data = await response.json();
99719
99725
  const list = data.results || data.rows || data;
99720
- const own = Array.isArray(list) ? list : [];
99726
+ const own = await this.withFollowingPages(url, Array.isArray(list) ? list : []);
99721
99727
  const related = await this.fetchRelatedEntries();
99722
99728
  this.entries = related.length > 0
99723
99729
  ? [...own, ...related].sort((a, b) => entryTime(b) - entryTime(a))
@@ -99736,6 +99742,43 @@ var script$7G = {
99736
99742
  }
99737
99743
  },
99738
99744
 
99745
+ /**
99746
+ * An object's trail read on until it holds enough entries to show. The
99747
+ * card leaves entries out (reads, actors, empty re-saves) after
99748
+ * reading, and every page view writes a read, so the newest page alone
99749
+ * can be all reads (DqHandhaving Historie: "no changes yet"). Reads at
99750
+ * most four more pages.
99751
+ *
99752
+ * @param {string} url The first page's path.
99753
+ * @param {Array<object>} first The first page's entries.
99754
+ * @return {Promise<Array<object>>} The entries read.
99755
+ */
99756
+ async withFollowingPages(url, first) {
99757
+ const entries = [...first];
99758
+ if (!this.filtersEntries || this.scope !== 'object' || this.sourceUrl !== null) {
99759
+ return entries
99760
+ }
99761
+ const limit = Number(new URLSearchParams(url.split('?')[1] || '').get('limit')) || first.length;
99762
+ let page = first;
99763
+ for (let more = 0; more < 4 && page.length >= limit && limit > 0; more++) {
99764
+ this.entries = [...entries];
99765
+ if (this.shownEntries.length >= this.maxDisplay) {
99766
+ break
99767
+ }
99768
+ const next = new URL(url, 'http://x');
99769
+ next.searchParams.set('offset', String(entries.length));
99770
+ const response = await fetch(prefixUrl(next.pathname + next.search), { headers: buildHeaders() });
99771
+ if (!response.ok) {
99772
+ break
99773
+ }
99774
+ const data = await response.json();
99775
+ const list = data.results || data.rows || data;
99776
+ page = Array.isArray(list) ? list : [];
99777
+ entries.push(...page);
99778
+ }
99779
+ return [...entries]
99780
+ },
99781
+
99739
99782
  /**
99740
99783
  * The entries of the records beside the object (`relatedSources`),
99741
99784
  * each tagged with its source's `as`. A read that fails leaves that
@@ -100037,7 +100080,7 @@ function render$7F(_ctx, _cache, $props, $setup, $data, $options) {
100037
100080
  }
100038
100081
 
100039
100082
  script$7G.render = render$7F;
100040
- script$7G.__scopeId = "data-v-64b18d66";
100083
+ script$7G.__scopeId = "data-v-6255f948";
100041
100084
  const __sfc_main$7A = script$7G;
100042
100085
 
100043
100086
  // SPDX-FileCopyrightText: 2026 Conduction B.V.
@@ -384199,12 +384242,14 @@ const MENU_ANCHOR_OFFSET = 8;
384199
384242
 
384200
384243
  /**
384201
384244
  * How many GridStack rows a layout row is drawn as on a grid with
384202
- * size-to-content cells (`wantsRowSplit`): 80px rows become 4px rows, so a
384203
- * cell sized to its content ends at most 4px under it.
384245
+ * size-to-content cells (`wantsRowSplit`): 80px rows become 1px rows, so a
384246
+ * cell sized to its content ends less than 1px under it. On 4px rows each
384247
+ * stacked card could end up to 4px low, and the rounding added up down a
384248
+ * column (r33 DqHandhaving "De overtreding" y +6).
384204
384249
  *
384205
384250
  * @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
384206
384251
  */
384207
- const ROW_SPLIT = 20;
384252
+ const ROW_SPLIT = 80;
384208
384253
 
384209
384254
  /**
384210
384255
  * Whether a layout holds a size-to-content cell (`sizeToContent` true or a
@@ -385632,7 +385677,7 @@ function render$1G(_ctx, _cache, $props, $setup, $data, $options) {
385632
385677
  }
385633
385678
 
385634
385679
  script$1H.render = render$1G;
385635
- script$1H.__scopeId = "data-v-16284cc6";
385680
+ script$1H.__scopeId = "data-v-c1fea586";
385636
385681
  const __sfc_main$1H = script$1H;
385637
385682
 
385638
385683
  /**
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/nextcloud-vue.cjs.js.map
3
- size: 50510139 bytes
4
- sha256: b1f613895fb49b25afbbd3ec6ae8bdc16de9398a7079b248dfc6d3f5b7829a9e
3
+ size: 50515543 bytes
4
+ sha256: 2561be8e970bdf135a189c08c905aed492cf8cee24f81537ad02215fbf244863