@conduction/nextcloud-vue 2.155.0 → 2.157.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 (133) hide show
  1. package/dist/esm/components/CnAiCompanion/CnAiInput.vue2.js +3 -1
  2. package/dist/esm/components/CnAiCompanion/CnAiInput.vue2.js.map +1 -1
  3. package/dist/esm/components/CnAiCompanion/CnAiInput.vue3.js.map +1 -1
  4. package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue.js +1 -1
  5. package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue2.js.map +1 -1
  6. package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue3.js.map +1 -1
  7. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue.js +1 -1
  8. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js.map +1 -1
  9. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue3.js.map +1 -1
  10. package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue.js +1 -1
  11. package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue2.js.map +1 -1
  12. package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue3.js.map +1 -1
  13. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue.js +1 -1
  14. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js.map +1 -1
  15. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js.map +1 -1
  16. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue.js +1 -1
  17. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue2.js.map +1 -1
  18. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue3.js.map +1 -1
  19. package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue.js +1 -1
  20. package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue2.js +2 -1
  21. package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue2.js.map +1 -1
  22. package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue3.js +10 -3
  23. package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue3.js.map +1 -1
  24. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue.js +1 -1
  25. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js +14 -4
  26. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js.map +1 -1
  27. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js +3 -3
  28. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js.map +1 -1
  29. package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue.js +1 -1
  30. package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue2.js.map +1 -1
  31. package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue3.js.map +1 -1
  32. package/dist/esm/components/CnFormDialog/CnFormDialog.vue.js +1 -1
  33. package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js.map +1 -1
  34. package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js +2 -1
  35. package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js.map +1 -1
  36. package/dist/esm/components/CnIndexSidebar/CnIndexSidebar.vue2.js +13 -4
  37. package/dist/esm/components/CnIndexSidebar/CnIndexSidebar.vue2.js.map +1 -1
  38. package/dist/esm/components/CnIndexSidebar/CnIndexSidebar.vue3.js.map +1 -1
  39. package/dist/esm/components/CnLinkedWidget/CnLinkedWidget.vue.js +1 -1
  40. package/dist/esm/components/CnLinkedWidget/CnLinkedWidget.vue2.js +91 -7
  41. package/dist/esm/components/CnLinkedWidget/CnLinkedWidget.vue2.js.map +1 -1
  42. package/dist/esm/components/CnLinkedWidget/CnLinkedWidget.vue3.js.map +1 -1
  43. package/dist/esm/components/CnMailTab/CnMailTab.vue.js +1 -1
  44. package/dist/esm/components/CnMailTab/CnMailTab.vue2.js +4 -4
  45. package/dist/esm/components/CnMailTab/CnMailTab.vue2.js.map +1 -1
  46. package/dist/esm/components/CnMailTab/CnMailTab.vue3.js.map +1 -1
  47. package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue.js +1 -1
  48. package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue2.js +3 -0
  49. package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue2.js.map +1 -1
  50. package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue3.js +10 -2
  51. package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue3.js.map +1 -1
  52. package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue.js +1 -1
  53. package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue2.js +6 -0
  54. package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue2.js.map +1 -1
  55. package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue3.js +2 -1
  56. package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue3.js.map +1 -1
  57. package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue.js +1 -1
  58. package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue2.js.map +1 -1
  59. package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue3.js +27 -24
  60. package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue3.js.map +1 -1
  61. package/dist/esm/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue2.js +25 -0
  62. package/dist/esm/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue2.js.map +1 -1
  63. package/dist/esm/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue3.js +40 -8
  64. package/dist/esm/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue3.js.map +1 -1
  65. package/dist/esm/components/CnSchemaFormDialog/CnSchemaFormDialog.vue2.js +10 -0
  66. package/dist/esm/components/CnSchemaFormDialog/CnSchemaFormDialog.vue2.js.map +1 -1
  67. package/dist/esm/components/CnSchemaFormDialog/CnSchemaFormDialog.vue3.js.map +1 -1
  68. package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue.js +1 -1
  69. package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue2.js.map +1 -1
  70. package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue3.js.map +1 -1
  71. package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue.js +1 -1
  72. package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue2.js +24 -1
  73. package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue2.js.map +1 -1
  74. package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue3.js +9 -0
  75. package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue3.js.map +1 -1
  76. package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue.js +1 -1
  77. package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue2.js +4 -1
  78. package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue2.js.map +1 -1
  79. package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue3.js.map +1 -1
  80. package/dist/esm/components/CnStagesWidget/stagesModel.js +10 -2
  81. package/dist/esm/components/CnStagesWidget/stagesModel.js.map +1 -1
  82. package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue.js +1 -1
  83. package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue2.js +61 -2
  84. package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue2.js.map +1 -1
  85. package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue3.js +68 -44
  86. package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue3.js.map +1 -1
  87. package/dist/esm/integrations/builtin/email/CnEmailTab.vue.js +1 -1
  88. package/dist/esm/integrations/builtin/email/CnEmailTab.vue2.js +13 -3
  89. package/dist/esm/integrations/builtin/email/CnEmailTab.vue2.js.map +1 -1
  90. package/dist/esm/integrations/builtin/email/CnEmailTab.vue3.js.map +1 -1
  91. package/dist/esm/l10n/en.json.js +12 -7
  92. package/dist/esm/l10n/en.json.js.map +1 -1
  93. package/dist/esm/l10n/nl.json.js +14 -9
  94. package/dist/esm/l10n/nl.json.js.map +1 -1
  95. package/dist/esm/library-style.js +1 -1
  96. package/dist/esm/nextcloud-vue.css +777 -469
  97. package/dist/esm/utils/dynamicProperties.js +14 -2
  98. package/dist/esm/utils/dynamicProperties.js.map +1 -1
  99. package/dist/nextcloud-vue.cjs.js +2472 -2120
  100. package/dist/nextcloud-vue.cjs.js.map +2 -2
  101. package/dist/nextcloud-vue.css +777 -469
  102. package/l10n/en.json +12 -7
  103. package/l10n/nl.json +14 -9
  104. package/package.json +1 -1
  105. package/src/components/CnAiCompanion/CnAiInput.vue +3 -1
  106. package/src/components/CnBannerWidget/CnBannerWidget.vue +5 -1
  107. package/src/components/CnChecklistRunWidget/CnChecklistRunWidget.vue +12 -5
  108. package/src/components/CnCountdownWidget/CnCountdownWidget.vue +12 -0
  109. package/src/components/CnDashboardPage/CnDashboardPage.vue +3 -1
  110. package/src/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue +1 -0
  111. package/src/components/CnDuplicateWarning/CnDuplicateWarning.vue +8 -4
  112. package/src/components/CnFactsWidget/CnFactsWidget.vue +31 -6
  113. package/src/components/CnFeaturesBoard/CnFeaturesBoard.vue +4 -2
  114. package/src/components/CnFormDialog/CnFormDialog.vue +1 -0
  115. package/src/components/CnIndexSidebar/CnIndexSidebar.vue +13 -4
  116. package/src/components/CnLinkedWidget/CnLinkedWidget.vue +91 -7
  117. package/src/components/CnMailTab/CnMailTab.vue +4 -4
  118. package/src/components/CnNotificationMatrix/CnNotificationMatrix.vue +20 -0
  119. package/src/components/CnPartyPicker/CnPartyPicker.vue +7 -0
  120. package/src/components/CnSavedViewLookFields/CnSavedViewLookFields.vue +27 -20
  121. package/src/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue +42 -0
  122. package/src/components/CnSchemaFormDialog/CnSchemaFormDialog.vue +10 -0
  123. package/src/components/CnSearchSelect/CnSearchSelect.vue +3 -1
  124. package/src/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue +37 -1
  125. package/src/components/CnStagesWidget/CnStagesWidget.vue +4 -1
  126. package/src/components/CnStagesWidget/stagesModel.js +10 -2
  127. package/src/components/CnTimelineWidget/CnTimelineManage.vue +69 -4
  128. package/src/css/dialog.css +33 -0
  129. package/src/css/look-board-detail.css +4 -3
  130. package/src/css/look-board-index.css +34 -3
  131. package/src/css/look-board.css +181 -4
  132. package/src/integrations/builtin/email/CnEmailTab.vue +13 -3
  133. package/src/utils/dynamicProperties.js +13 -1
@@ -78,6 +78,8 @@ const DEFAULT_MAP = {
78
78
  default: 'defaultValue',
79
79
  hideOnCreate: 'hideOnCreate',
80
80
  items: 'items',
81
+ label: 'title',
82
+ sort: 'order',
81
83
  };
82
84
 
83
85
  /**
@@ -300,8 +302,16 @@ function propertiesFromDefinitions(definitions, config = {}, options = {}) {
300
302
 
301
303
  const properties = {};
302
304
  const required = [];
305
+ // A definition's own `order` places it; one without follows those that have one, as given.
306
+ const place = (record) => {
307
+ const value = record ? Number(mapped(record, map, 'sort')) : NaN;
308
+ return Number.isFinite(value) ? value : Infinity
309
+ };
303
310
  const list = (Array.isArray(definitions) ? definitions : [])
304
- .filter((record) => !(options.create === true && record && mapped(record, map, 'hideOnCreate') === true));
311
+ .filter((record) => !(options.create === true && record && mapped(record, map, 'hideOnCreate') === true))
312
+ .map((record, index) => ({ record, index }))
313
+ .sort((a, b) => (place(a.record) - place(b.record)) || (a.index - b.index))
314
+ .map(({ record }) => record);
305
315
 
306
316
  list.forEach((record, index) => {
307
317
  if (!record || !record.id) {
@@ -312,6 +322,7 @@ function propertiesFromDefinitions(definitions, config = {}, options = {}) {
312
322
  const base = typeMap[declaredType] || typeMap.string;
313
323
 
314
324
  const title = mapped(record, map, 'title');
325
+ const label = mapped(record, map, 'label');
315
326
  const description = mapped(record, map, 'description');
316
327
  const enumValues = mapped(record, map, 'enum');
317
328
  const defaultValue = mapped(record, map, 'default');
@@ -320,7 +331,8 @@ function propertiesFromDefinitions(definitions, config = {}, options = {}) {
320
331
 
321
332
  const prop = {
322
333
  ...base,
323
- title: humaniseName(title) || key,
334
+ // The definition's own label as written ("Soort verzoeker"), else its name made readable.
335
+ title: (typeof label === 'string' && label.trim() !== '') ? label : (humaniseName(title) || key),
324
336
  // A definition record separates its short `definition` from its
325
337
  // longer `description`; either may be absent, and an empty string
326
338
  // must not become the helper text "undefined".
@@ -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}\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\tconst list = (Array.isArray(definitions) ? definitions : [])\n\t\t.filter((record) => !(options.create === true && record && mapped(record, map, 'hideOnCreate') === true))\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 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\ttitle: 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,I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,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}\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,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