@conduction/nextcloud-vue 2.99.0 → 2.101.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 (180) hide show
  1. package/dist/esm/components/CnAdminSettingsShell/CnAdminSettingsShell.vue.js +1 -1
  2. package/dist/esm/components/CnAdminSettingsShell/CnAdminSettingsShell.vue2.js +6 -1
  3. package/dist/esm/components/CnAdminSettingsShell/CnAdminSettingsShell.vue2.js.map +1 -1
  4. package/dist/esm/components/CnAdminSettingsShell/CnAdminSettingsShell.vue3.js +2 -1
  5. package/dist/esm/components/CnAdminSettingsShell/CnAdminSettingsShell.vue3.js.map +1 -1
  6. package/dist/esm/components/CnChoiceCards/CnChoiceCards.vue.js +1 -1
  7. package/dist/esm/components/CnChoiceCards/CnChoiceCards.vue2.js +22 -1
  8. package/dist/esm/components/CnChoiceCards/CnChoiceCards.vue2.js.map +1 -1
  9. package/dist/esm/components/CnChoiceCards/CnChoiceCards.vue3.js +26 -16
  10. package/dist/esm/components/CnChoiceCards/CnChoiceCards.vue3.js.map +1 -1
  11. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue.js +1 -1
  12. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js +51 -7
  13. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js.map +1 -1
  14. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js +104 -73
  15. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js.map +1 -1
  16. package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +25 -8
  17. package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js.map +1 -1
  18. package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js +5 -3
  19. package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js.map +1 -1
  20. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue.js +1 -1
  21. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue2.js +11 -8
  22. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue2.js.map +1 -1
  23. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue3.js +13 -4
  24. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue3.js.map +1 -1
  25. package/dist/esm/components/CnExportsWidget/CnExportsWidget.vue.js +9 -0
  26. package/dist/esm/components/CnExportsWidget/CnExportsWidget.vue.js.map +1 -0
  27. package/dist/esm/components/CnExportsWidget/CnExportsWidget.vue2.js +139 -0
  28. package/dist/esm/components/CnExportsWidget/CnExportsWidget.vue2.js.map +1 -0
  29. package/dist/esm/components/CnExportsWidget/CnExportsWidget.vue3.js +76 -0
  30. package/dist/esm/components/CnExportsWidget/CnExportsWidget.vue3.js.map +1 -0
  31. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue.js +1 -1
  32. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js +54 -3
  33. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js.map +1 -1
  34. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js +16 -2
  35. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js.map +1 -1
  36. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue.js +1 -1
  37. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js +160 -2
  38. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js.map +1 -1
  39. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js +206 -94
  40. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js.map +1 -1
  41. package/dist/esm/components/CnFilesBrowser/filesReview.js +61 -0
  42. package/dist/esm/components/CnFilesBrowser/filesReview.js.map +1 -0
  43. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue.js +1 -1
  44. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js +42 -7
  45. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js.map +1 -1
  46. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js +121 -57
  47. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js.map +1 -1
  48. package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue2.js +10 -0
  49. package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue2.js.map +1 -1
  50. package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue3.js +2 -1
  51. package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue3.js.map +1 -1
  52. package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue.js +9 -0
  53. package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue.js.map +1 -0
  54. package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue2.js +279 -0
  55. package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue2.js.map +1 -0
  56. package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue3.js +122 -0
  57. package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue3.js.map +1 -0
  58. package/dist/esm/components/CnGroupedCardsWidget/index.js +29 -0
  59. package/dist/esm/components/CnGroupedCardsWidget/index.js.map +1 -0
  60. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +387 -78
  61. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
  62. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +317 -209
  63. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
  64. package/dist/esm/components/CnIndexPage/useNamedSource.js +4 -1
  65. package/dist/esm/components/CnIndexPage/useNamedSource.js.map +1 -1
  66. package/dist/esm/components/CnMapWidget/CnMapWidget.vue.js +1 -1
  67. package/dist/esm/components/CnMapWidget/CnMapWidget.vue2.js +15 -0
  68. package/dist/esm/components/CnMapWidget/CnMapWidget.vue2.js.map +1 -1
  69. package/dist/esm/components/CnMapWidget/CnMapWidget.vue3.js.map +1 -1
  70. package/dist/esm/components/CnObjectListWidget/CnObjectListWidget.vue.js +1 -1
  71. package/dist/esm/components/CnObjectListWidget/CnObjectListWidget.vue2.js +14 -1
  72. package/dist/esm/components/CnObjectListWidget/CnObjectListWidget.vue2.js.map +1 -1
  73. package/dist/esm/components/CnObjectListWidget/CnObjectListWidget.vue3.js +14 -6
  74. package/dist/esm/components/CnObjectListWidget/CnObjectListWidget.vue3.js.map +1 -1
  75. package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue.js +1 -1
  76. package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue2.js +10 -0
  77. package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue2.js.map +1 -1
  78. package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue3.js +6 -1
  79. package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue3.js.map +1 -1
  80. package/dist/esm/components/CnOrderedListField/CnOrderedListField.vue.js +1 -1
  81. package/dist/esm/components/CnOrderedListField/CnOrderedListField.vue2.js +91 -4
  82. package/dist/esm/components/CnOrderedListField/CnOrderedListField.vue2.js.map +1 -1
  83. package/dist/esm/components/CnOrderedListField/CnOrderedListField.vue3.js +63 -38
  84. package/dist/esm/components/CnOrderedListField/CnOrderedListField.vue3.js.map +1 -1
  85. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue.js +1 -1
  86. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js +68 -7
  87. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js.map +1 -1
  88. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js +256 -240
  89. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js.map +1 -1
  90. package/dist/esm/components/CnSavedViewAlertWidget/CnSavedViewAlertWidget.vue.js +9 -0
  91. package/dist/esm/components/CnSavedViewAlertWidget/CnSavedViewAlertWidget.vue.js.map +1 -0
  92. package/dist/esm/components/CnSavedViewAlertWidget/CnSavedViewAlertWidget.vue2.js +175 -0
  93. package/dist/esm/components/CnSavedViewAlertWidget/CnSavedViewAlertWidget.vue2.js.map +1 -0
  94. package/dist/esm/components/CnSavedViewAlertWidget/CnSavedViewAlertWidget.vue3.js +77 -0
  95. package/dist/esm/components/CnSavedViewAlertWidget/CnSavedViewAlertWidget.vue3.js.map +1 -0
  96. package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue.js +1 -1
  97. package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue2.js +38 -9
  98. package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue2.js.map +1 -1
  99. package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue3.js.map +1 -1
  100. package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue.js +1 -1
  101. package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue2.js +51 -4
  102. package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue2.js.map +1 -1
  103. package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue3.js +40 -25
  104. package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue3.js.map +1 -1
  105. package/dist/esm/components/CnWidgetGrid/builtInWidgets.js +4 -0
  106. package/dist/esm/components/CnWidgetGrid/builtInWidgets.js.map +1 -1
  107. package/dist/esm/components/CnWidgetGrid/registerDashboardWidgets.js +1 -0
  108. package/dist/esm/components/CnWidgetGrid/registerDashboardWidgets.js.map +1 -1
  109. package/dist/esm/components/CnWizardDialog/CnWizardDialog.vue.js +1 -1
  110. package/dist/esm/components/CnWizardDialog/CnWizardDialog.vue2.js +7 -7
  111. package/dist/esm/components/CnWizardDialog/CnWizardDialog.vue2.js.map +1 -1
  112. package/dist/esm/components/CnWizardDialog/CnWizardDialog.vue3.js.map +1 -1
  113. package/dist/esm/composables/indexSources.js +167 -20
  114. package/dist/esm/composables/indexSources.js.map +1 -1
  115. package/dist/esm/composables/useEndpointSource.js +28 -6
  116. package/dist/esm/composables/useEndpointSource.js.map +1 -1
  117. package/dist/esm/index.js +1 -0
  118. package/dist/esm/index.js.map +1 -1
  119. package/dist/esm/l10n/en.json.js +43 -1
  120. package/dist/esm/l10n/en.json.js.map +1 -1
  121. package/dist/esm/l10n/nl.json.js +41 -1
  122. package/dist/esm/l10n/nl.json.js.map +1 -1
  123. package/dist/esm/library-style.js +1 -1
  124. package/dist/esm/nextcloud-vue.css +1101 -396
  125. package/dist/esm/utils/languageMapText.js +50 -0
  126. package/dist/esm/utils/languageMapText.js.map +1 -0
  127. package/dist/esm/utils/libraryWidgetKeys.js +3 -0
  128. package/dist/esm/utils/libraryWidgetKeys.js.map +1 -1
  129. package/dist/esm/utils/mapList.js +71 -0
  130. package/dist/esm/utils/mapList.js.map +1 -0
  131. package/dist/esm/utils/validateManifestV2.compiled.js +3 -3
  132. package/dist/esm/utils/validateManifestV2.compiled.js.map +1 -1
  133. package/dist/nextcloud-vue.cjs.js +9996 -7378
  134. package/dist/nextcloud-vue.cjs.js.map +2 -2
  135. package/dist/nextcloud-vue.css +1101 -396
  136. package/l10n/en.json +43 -1
  137. package/l10n/nl.json +41 -1
  138. package/package.json +1 -1
  139. package/src/components/CnAdminSettingsShell/CnAdminSettingsShell.vue +7 -1
  140. package/src/components/CnChoiceCards/CnChoiceCards.md +39 -0
  141. package/src/components/CnChoiceCards/CnChoiceCards.vue +93 -16
  142. package/src/components/CnDashboardPage/CnDashboardPage.vue +89 -20
  143. package/src/components/CnDetailPage/CnDetailPage.vue +28 -9
  144. package/src/components/CnDetailWidgetHost/CnDetailWidgetHost.vue +13 -4
  145. package/src/components/CnExportsWidget/CnExportsWidget.vue +233 -0
  146. package/src/components/CnExportsWidget/index.js +7 -0
  147. package/src/components/CnFactsWidget/CnFactsWidget.vue +65 -3
  148. package/src/components/CnFilesBrowser/CnFilesBrowser.vue +324 -0
  149. package/src/components/CnFilesBrowser/filesReview.js +57 -0
  150. package/src/components/CnFlowsPage/CnFlowBoard.vue +77 -2
  151. package/src/components/CnFlowsPage/CnFlowEditorPage.vue +11 -0
  152. package/src/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue +433 -0
  153. package/src/components/CnGroupedCardsWidget/index.js +28 -0
  154. package/src/components/CnIndexPage/CnIndexPage.vue +376 -11
  155. package/src/components/CnIndexPage/useNamedSource.js +4 -1
  156. package/src/components/CnMapWidget/CnMapWidget.vue +37 -0
  157. package/src/components/CnObjectListWidget/CnObjectListWidget.vue +29 -1
  158. package/src/components/CnObjectSidebar/CnFilesTab.vue +15 -0
  159. package/src/components/CnOrderedListField/CnOrderedListField.vue +151 -5
  160. package/src/components/CnRecordListWidget/CnRecordListWidget.vue +114 -7
  161. package/src/components/CnSavedViewAlertWidget/CnSavedViewAlertWidget.vue +272 -0
  162. package/src/components/CnSavedViewAlertWidget/index.js +7 -0
  163. package/src/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue +38 -9
  164. package/src/components/CnSetupWizard/CnSetupWizard.vue +72 -5
  165. package/src/components/CnWidgetGrid/builtInWidgets.js +4 -0
  166. package/src/components/CnWidgetGrid/registerDashboardWidgets.js +1 -0
  167. package/src/components/CnWizardDialog/CnWizardDialog.vue +7 -7
  168. package/src/components/index.js +3 -0
  169. package/src/composables/indexSources.js +166 -19
  170. package/src/composables/useEndpointSource.js +28 -6
  171. package/src/css/detail-page.css +15 -0
  172. package/src/css/dialog.css +48 -0
  173. package/src/css/index-page.css +117 -0
  174. package/src/css/look-board.css +127 -1
  175. package/src/index.js +1 -0
  176. package/src/schemas/app-manifest-v2.schema.json +55 -1
  177. package/src/utils/languageMapText.js +46 -0
  178. package/src/utils/libraryWidgetKeys.js +3 -0
  179. package/src/utils/mapList.js +67 -0
  180. package/src/utils/validateManifestV2.compiled.js +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"useEndpointSource.js","sources":["../../../src/composables/useEndpointSource.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2026 Conduction B.V.\n * SPDX-License-Identifier: EUPL-1.2\n *\n * useEndpointSource — ONE coherent endpoint data binding for the abstract\n * widgets (stat / delta / chart / object-table). A manifest-authored\n * `endpointSource` block reads an arbitrary app REST endpoint (a bespoke\n * analytics controller, a summary aggregation OpenRegister can't express)\n * and hands the widget the payload at a dot-path of the response:\n *\n * ```js\n * endpointSource: {\n * url: '/apps/pipelinq/api/analytics/overview', // app-relative (generateUrl) or absolute path\n * method: 'GET', // 'GET' (default) | 'POST' (params become the JSON body)\n * params: { period: '@workspace.datePreset?' }, // SAME token grammar as widget filters\n * responsePath: 'summary', // dot-path pluck of the payload (default: whole body)\n * }\n * ```\n *\n * `params` values pass through the SAME token resolution widget filters use\n * (`resolveFilterTokens`): `@me`, `@today` / `@today±Nd`, `@monthStart`,\n * `@workspace.<key>` / `@config.<key>` (with the trailing-`?` OPTIONAL\n * convention — an unresolved optional param is dropped, an unresolved\n * REQUIRED one blocks the fetch), `@objectId` / `@object.<field>` on detail\n * pages. The `url` itself may interpolate `@page.*` / `@workspace.*` /\n * `@config.*` / `@objectId` / `@object.*` tokens inline (unresolved URL\n * tokens collapse to an empty string so a literal `@page.period` never hits\n * the wire).\n *\n * Requests are SHARED: one in-flight promise + short-TTL cache entry per\n * `(method, url, resolved params)` — the same per-period caching semantics\n * pipelinq's `dashboardData.js` used, so four KPI tiles reading the same\n * overview endpoint issue ONE request per render pass. `responsePath`\n * plucking happens per subscriber, after the shared response resolves.\n *\n * Refresh signal — grounded in the library's own event-bus channels (the\n * mechanism `CnActionsMenu` broadcasts on): the composable subscribes to\n * `cn:page:refresh` (the page-level Refresh action → every endpoint source\n * force-refetches past the cache) and, when a `widgetId` option is given,\n * to `cn:widget:refresh` with a matching `widgetId` payload (the per-widget\n * Refresh action). App-LOCAL refresh signals (e.g. a `Vue.observable` token\n * like pipelinq's `refreshDashboardData()`) are not observable from the\n * library — for those, pass the reactive token as the `refreshKey` option\n * and bump it; every bump force-refetches.\n *\n * @module composables/useEndpointSource\n */\n\nimport { subscribe, unsubscribe } from '@nextcloud/event-bus'\nimport { computed, getCurrentScope, onScopeDispose, ref, unref, watch } from 'vue'\nimport {\n\tdropOptionalUnresolved,\n\thasUnresolvedTokens,\n\tresolveFilterTokens,\n} from '../utils/resolveFilterTokens.js'\n\n/**\n * Cache TTL for shared endpoint responses — 5 minutes, matching the\n * per-period dashboard cache the fleet apps used (pipelinq dashboardData.js).\n *\n * @type {number}\n */\nexport const ENDPOINT_SOURCE_TTL_MS = 5 * 60 * 1000\n\n/**\n * Minimum time a FORCED refetch (a Refresh action, a `refreshKey` bump) keeps\n * `loading` true. A refresh against a fast endpoint settles in a few\n * milliseconds — too briefly for the widget's loading state to be perceived,\n * so the click reads as having done nothing. Only the loading FLAG is held;\n * the fresh data lands the moment the response arrives. Initial and\n * signature-change loads are not held — first paint should never wait.\n *\n * @type {number}\n */\nexport const MIN_FORCED_LOADING_MS = 400\n\n/** Event-bus channel the page-level Refresh action broadcasts on. */\nconst PAGE_REFRESH_CHANNEL = 'cn:page:refresh'\n\n/** Event-bus channel the per-widget Refresh action broadcasts on. */\nconst WIDGET_REFRESH_CHANNEL = 'cn:widget:refresh'\n\n/**\n * Module-level response cache: cacheKey → `{ promise, timestamp }`.\n * Shared across every widget instance in the page so identical requests\n * dedupe to one in-flight promise (pipelinq `cached()` semantics: an\n * errored fetch drops its entry so the next mount retries).\n *\n * @type {Map<string, {promise: Promise<unknown>, timestamp: number}>}\n */\nconst responseCache = new Map()\n\n/**\n * Read a dot-path off an object (e.g. `\"data.totalLeads\"`, `\"series.0.value\"`).\n * Returns the object itself for an empty path and `undefined` when any\n * segment is missing.\n *\n * @param {unknown} obj The source object.\n * @param {string} [path] The dot-path.\n * @return {unknown} The resolved value or undefined.\n */\nexport function getByPath(obj, path) {\n\tif (path === undefined || path === null || path === '') {\n\t\treturn obj\n\t}\n\treturn String(path).split('.').reduce(\n\t\t(o, k) => (o === null || o === undefined ? undefined : o[k]),\n\t\tobj,\n\t)\n}\n\n/**\n * Interpolate `@page.<key>` / `@workspace.<key>` / `@config.<key>` /\n * `@objectId` / `@object.<field>` tokens inside a URL string against the\n * token context. `@page.*` is an alias for `@workspace.*` (both read the\n * page-level workspace context). Unresolved tokens collapse to an empty\n * string so a half-built URL never sends a literal `@page.period`.\n *\n * @param {string} str The raw URL (or any string) to interpolate.\n * @param {{objectId?: (string|number), object?: object, workspace?: object, config?: object, range?: object}} [ctx] The token context.\n * @return {string} The interpolated string.\n */\nexport function interpolateUrlTokens(str, ctx) {\n\tif (typeof str !== 'string') {\n\t\treturn str\n\t}\n\tconst c = ctx || {}\n\tconst workspace = c.workspace || {}\n\tconst config = c.config || {}\n\treturn str.replace(/@(page|workspace)\\.([A-Za-z0-9_]+)/g, (_, _ns, key) => {\n\t\tconst v = workspace[key]\n\t\treturn (v === undefined || v === null) ? '' : String(v)\n\t}).replace(/@config\\.([A-Za-z0-9_]+)/g, (_, key) => {\n\t\tconst v = config[key]\n\t\treturn (v === undefined || v === null) ? '' : String(v)\n\t}).replace(/@range\\.([A-Za-z0-9_]+)/g, (_, key) => {\n\t\tconst v = c.range && c.range[key]\n\t\treturn (v === undefined || v === null) ? '' : String(v)\n\t}).replace(/@objectId/g, () => {\n\t\tconst id = c.objectId\n\t\treturn (id === undefined || id === null) ? '' : String(id)\n\t}).replace(/@object\\.([A-Za-z0-9_]+)/g, (_, field) => {\n\t\tconst v = c.object && c.object[field]\n\t\treturn (v === undefined || v === null) ? '' : String(v)\n\t})\n}\n\n/**\n * Resolve an `endpointSource` config against a token context into a concrete\n * request descriptor. `params` run through the SAME `resolveFilterTokens`\n * grammar widget filters use; optional (`…?`) tokens that stay unresolved are\n * dropped, and a REQUIRED token that stays unresolved marks the request\n * `blocked` (the page context it depends on isn't set yet — callers skip the\n * fetch instead of sending a literal `@workspace.…`).\n *\n * @param {{url: string, method?: string, params?: object}} config The endpointSource block.\n * @param {{objectId?: (string|number), object?: object, workspace?: object, config?: object, range?: object}} [ctx] The token context.\n * @return {{url: string, method: ('GET'|'POST'), params: object, blocked: boolean}} The resolved request.\n */\nexport function resolveEndpointRequest(config, ctx) {\n\tconst cfg = config || {}\n\tconst url = interpolateUrlTokens(cfg.url || '', ctx)\n\tconst resolved = resolveFilterTokens(cfg.params || {}, ctx)\n\tconst params = dropOptionalUnresolved(resolved)\n\tconst method = String(cfg.method || 'GET').toUpperCase() === 'POST' ? 'POST' : 'GET'\n\tconst blocked = hasUnresolvedTokens(params) || hasEmptyPathSegment(cfg.url || '', url)\n\treturn { url, method, params, blocked }\n}\n\n/**\n * Whether interpolation left an EMPTY PATH SEGMENT in a URL that had tokens.\n *\n * An unresolved token collapses to `''` so a literal `@object.caseType` never\n * hits the wire. In a query value that is harmless. In a PATH it silently\n * builds a different URL: `…/milestones/progress/@object.caseType` becomes\n * `…/milestones/progress/`, which is a route that does not exist.\n *\n * Measured on dossiq: a KPI tile bound to the loaded record fired that 404 on\n * every case-detail load, then re-fired correctly once the record arrived. The\n * tile showed the same value throughout, because the widget's zero and a failed\n * fetch render identically — so nothing looked wrong and the 404 simply became\n * background noise in the console.\n *\n * Only PATH segments are judged, and only when the raw URL actually carried a\n * token: an empty query value stays a caller's business, and a URL with no\n * tokens is never blocked by this.\n *\n * @param {string} rawUrl The URL before interpolation.\n * @param {string} resolvedUrl The URL after interpolation.\n * @return {boolean} true when a token collapsed into an empty path segment.\n */\nfunction hasEmptyPathSegment(rawUrl, resolvedUrl) {\n\tif (typeof rawUrl !== 'string' || rawUrl.indexOf('@') === -1) {\n\t\treturn false\n\t}\n\tconst path = String(resolvedUrl).split('?')[0].split('#')[0]\n\t// A trailing slash on a URL that HAD no trailing slash before interpolation,\n\t// or any `//` inside the path, is a segment that resolved to nothing.\n\tconst rawPath = rawUrl.split('?')[0].split('#')[0]\n\tif (path.includes('//') && !rawPath.includes('//')) {\n\t\treturn true\n\t}\n\treturn path.length > 1 && path.endsWith('/') && !rawPath.endsWith('/')\n}\n\n/**\n * Stable cache key for a resolved endpoint request. One entry per\n * `(method, url, resolved params)` — the params carry the resolved period /\n * date window, so a period switch is a different key (per-period caching).\n *\n * @param {{url: string, method: string, params: object}} request The resolved request.\n * @return {string} The cache key.\n */\nexport function endpointCacheKey(request) {\n\treturn `${request.method} ${request.url} ${JSON.stringify(request.params || {})}`\n}\n\n/**\n * Drop every cached endpoint response (and any in-flight dedup entry).\n * Tests and page-level refresh flows use this to force fresh data.\n *\n * @return {void}\n */\nexport function invalidateEndpointSourceCache() {\n\tresponseCache.clear()\n}\n\n/**\n * Fetch the shared response body for a resolved request, deduping concurrent\n * identical requests and caching for {@link ENDPOINT_SOURCE_TTL_MS}. An\n * errored fetch drops its cache entry so the next call retries.\n *\n * A forced call that carries a `refresh` token joins an in-flight request of\n * the same refresh, so the widgets of one page refresh that share a request\n * send it once. A later refresh (say, one emitted after a save) never joins an\n * earlier one's request, which may predate the write.\n *\n * A `fresh` call joins any request still in flight but never serves a settled\n * cache entry: concurrent callers share one request, and none reads a stale one.\n *\n * @param {{url: string, method: string, params: object}} request The resolved request.\n * @param {{force?: boolean, refresh?: object, fresh?: boolean}} [opts] `force: true` bypasses (and replaces) the cache entry; `refresh` is the refresh event's payload object, one per emit; `fresh: true` only joins in-flight requests.\n * @return {Promise<unknown>} The raw response body (`res.data`).\n */\nexport async function fetchSharedResponse(request, opts) {\n\tconst key = endpointCacheKey(request)\n\tconst now = Date.now()\n\tconst force = Boolean(opts && opts.force)\n\tconst fresh = Boolean(opts && opts.fresh)\n\tconst refresh = (force && opts.refresh) || null\n\tconst entry = responseCache.get(key)\n\tif (entry && refresh && entry.refresh === refresh && entry.pending) {\n\t\treturn entry.promise\n\t}\n\tif (entry && fresh && !force && entry.pending) {\n\t\treturn entry.promise\n\t}\n\tif (entry && !force && !fresh && (now - entry.timestamp) < ENDPOINT_SOURCE_TTL_MS) {\n\t\treturn entry.promise\n\t}\n\tconst promise = (async () => {\n\t\tconst [{ default: axios }, { generateUrl }] = await Promise.all([\n\t\t\timport('@nextcloud/axios'),\n\t\t\timport('@nextcloud/router'),\n\t\t])\n\t\t// Leave absolute URLs (http/https) untouched; route app-relative\n\t\t// paths through generateUrl so they resolve under the NC base.\n\t\tconst url = /^https?:\\/\\//i.test(request.url) ? request.url : generateUrl(request.url)\n\t\tconst res = request.method === 'POST'\n\t\t\t? await axios.post(url, request.params || {})\n\t\t\t: await axios.get(url, { params: request.params || {} })\n\t\treturn res && res.data\n\t})().catch((err) => {\n\t\tif (responseCache.get(key)?.promise === promise) {\n\t\t\tresponseCache.delete(key)\n\t\t}\n\t\tthrow err\n\t}).finally(() => {\n\t\tconst current = responseCache.get(key)\n\t\tif (current?.promise === promise) {\n\t\t\tcurrent.pending = false\n\t\t\tcurrent.refresh = null\n\t\t}\n\t})\n\tresponseCache.set(key, { promise, timestamp: now, refresh, pending: true })\n\treturn promise\n}\n\n/**\n * One-shot cached fetch of an `endpointSource`: resolve tokens, share the\n * request, pluck `responsePath`. Returns `null` when the config is unusable\n * (no url) or the request is blocked on an unresolved REQUIRED token, and\n * `null` when the plucked payload is `undefined`.\n *\n * Use this from an imperative fetch flow (Options-API widgets); use\n * {@link useEndpointSource} for the fully reactive form.\n *\n * @param {{url: string, method?: string, params?: object, responsePath?: string}} config The endpointSource block.\n * @param {{objectId?: (string|number), object?: object, workspace?: object, config?: object, range?: object}} [ctx] The token context.\n * @param {{force?: boolean}} [opts] `force: true` bypasses the shared cache.\n * @return {Promise<unknown>} The plucked payload (or null).\n */\nexport async function fetchEndpointSource(config, ctx, opts) {\n\tif (!config || !config.url) {\n\t\treturn null\n\t}\n\tconst request = resolveEndpointRequest(config, ctx)\n\tif (request.blocked) {\n\t\treturn null\n\t}\n\tconst body = await fetchSharedResponse(request, opts)\n\tconst payload = getByPath(body, config.responsePath)\n\treturn payload === undefined ? null : payload\n}\n\n/**\n * Unwrap a value that may be a plain value, a ref, or a getter function.\n *\n * @param {unknown} v The wrapped value.\n * @return {unknown} The unwrapped value.\n */\nfunction read(v) {\n\treturn typeof v === 'function' ? v() : unref(v)\n}\n\n/**\n * Reactive endpoint data binding.\n *\n * Resolves the `endpointSource` block into reactive\n * `{ data, loading, error, refetch }`. The request signature (url + resolved\n * params + method) is watched, so a change in the page-level workspace\n * context (the dashboard date-range pills publishing `dateFrom` / `dateTo` /\n * `datePreset`, a page filter publishing `period`, …) re-resolves the tokens\n * and refetches automatically. When the config is `null` / has no `url` the\n * composable never queries and `data.value` stays `null`.\n *\n * Refresh wiring (library event-bus):\n * - `cn:page:refresh` → force-refetch past the shared cache.\n * - `cn:widget:refresh` with a payload `widgetId` matching the non-empty\n * `widgetId` option → force-refetch.\n * - a bump of the optional reactive `refreshKey` → force-refetch (escape\n * hatch for app-local refresh signals the library cannot observe).\n *\n * @param {object|import('vue').Ref<object>|(() => object)} source The endpointSource block (object, ref, or getter).\n * @param {object} [options] Options.\n * @param {object|import('vue').Ref<object>|(() => object)} [options.ctx] Token context `{ objectId?, object?, workspace?, config? }` (object, ref, or getter).\n * @param {string|import('vue').Ref<string>|(() => string)} [options.widgetId] Widget id matched against `cn:widget:refresh` payloads (empty disables widget-scoped refresh).\n * @param {import('vue').Ref<unknown>|(() => unknown)} [options.refreshKey] Reactive value (ref or getter) whose changes force a refetch.\n * @return {{data: import('vue').Ref<unknown>, loading: import('vue').Ref<boolean>, error: import('vue').Ref<string>, blocked: import('vue').Ref<boolean>, refetch: (force?: boolean) => Promise<void>}} Reactive state + a `refetch(force = true)` trigger. `blocked` is true when the last read was NOT ATTEMPTED because a required token is unset — distinct from loading, and the only way to tell \"nothing asked\" from \"asked, still waiting\".\n */\nexport function useEndpointSource(source, options) {\n\tconst opts = options || {}\n\tconst data = ref(null)\n\tconst loading = ref(false)\n\tconst error = ref('')\n\t// Whether the last read was not attempted because a required token is\n\t// unset. The three refs above cannot express it: a blocked read looks\n\t// exactly like the instant before the first request.\n\tconst blocked = ref(false)\n\t// Monotonic fetch id so a stale (slower) response never overwrites a\n\t// newer one after the request signature changed.\n\tlet fetchSeq = 0\n\n\tconst readCtx = () => read(opts.ctx) || {}\n\n\t/**\n\t * Stable request signature: null when there is nothing to fetch,\n\t * otherwise the resolved url/params/method + responsePath (+ blocked\n\t * flag so un-blocking triggers the fetch).\n\t */\n\tconst requestKey = computed(() => {\n\t\tconst cfg = read(source)\n\t\tif (!cfg || !cfg.url) {\n\t\t\treturn null\n\t\t}\n\t\tconst request = resolveEndpointRequest(cfg, readCtx())\n\t\treturn JSON.stringify({\n\t\t\tu: request.url,\n\t\t\tm: request.method,\n\t\t\tp: request.params,\n\t\t\tr: cfg.responsePath || '',\n\t\t\tb: request.blocked,\n\t\t})\n\t})\n\n\t/**\n\t * Run (or re-run) the fetch for the current config.\n\t *\n\t * @param {boolean} [force] Bypass the shared cache (refresh semantics).\n\t * @param {object} [refresh] The refresh event's payload, shared by its widgets.\n\t * @return {Promise<void>}\n\t */\n\tasync function load(force, refresh) {\n\t\tconst cfg = read(source)\n\t\tconst seq = ++fetchSeq\n\t\tif (!cfg || !cfg.url) {\n\t\t\tdata.value = null\n\t\t\terror.value = ''\n\t\t\tloading.value = false\n\t\t\tblocked.value = false\n\t\t\treturn\n\t\t}\n\t\tconst request = resolveEndpointRequest(cfg, readCtx())\n\t\tif (request.blocked) {\n\t\t\t// A required context token is unset — wait, don't error.\n\t\t\tdata.value = null\n\t\t\terror.value = ''\n\t\t\tloading.value = false\n\t\t\tblocked.value = true\n\t\t\treturn\n\t\t}\n\t\tblocked.value = false\n\t\tconst startedAt = Date.now()\n\t\tloading.value = true\n\t\terror.value = ''\n\t\ttry {\n\t\t\tconst body = await fetchSharedResponse(request, { force: force === true, refresh })\n\t\t\tif (seq !== fetchSeq) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst payload = getByPath(body, cfg.responsePath)\n\t\t\tdata.value = payload === undefined ? null : payload\n\t\t} catch (e) {\n\t\t\tif (seq !== fetchSeq) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\terror.value = (e && e.message) || 'error'\n\t\t\tdata.value = null\n\t\t} finally {\n\t\t\tif (seq === fetchSeq) {\n\t\t\t\t// Forced refetches hold `loading` to MIN_FORCED_LOADING_MS so\n\t\t\t\t// the refresh is perceivable even against a fast endpoint; a\n\t\t\t\t// newer run owns the flag once fetchSeq moves on.\n\t\t\t\tconst hold = force === true ? MIN_FORCED_LOADING_MS - (Date.now() - startedAt) : 0\n\t\t\t\tif (hold > 0) {\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tif (seq === fetchSeq) {\n\t\t\t\t\t\t\tloading.value = false\n\t\t\t\t\t\t}\n\t\t\t\t\t}, hold)\n\t\t\t\t} else {\n\t\t\t\t\tloading.value = false\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Public refetch trigger. Force (cache-bypassing) by default — that is\n\t * what every refresh affordance wants; pass `false` to allow a cache hit.\n\t *\n\t * @param {boolean} [force] Bypass the shared cache (default true).\n\t * @return {Promise<void>}\n\t */\n\tconst refetch = (force = true) => load(force)\n\n\twatch(requestKey, () => {\n\t\tload(false)\n\t}, { immediate: true })\n\n\tif (opts.refreshKey !== undefined) {\n\t\twatch(() => read(opts.refreshKey), () => {\n\t\t\tload(true)\n\t\t})\n\t}\n\n\t// `waitUntil` lets the menu that sent the refresh spin until this fetch lands.\n\tconst onPageRefresh = (payload) => {\n\t\tconst done = load(true, payload)\n\t\tpayload?.waitUntil?.(done)\n\t}\n\tconst onWidgetRefresh = (payload) => {\n\t\tconst id = read(opts.widgetId)\n\t\tif (!id) {\n\t\t\treturn\n\t\t}\n\t\tif (!payload || payload.widgetId !== id) {\n\t\t\treturn\n\t\t}\n\t\tconst done = load(true, payload)\n\t\tpayload.waitUntil?.(done)\n\t}\n\tsubscribe(PAGE_REFRESH_CHANNEL, onPageRefresh)\n\tsubscribe(WIDGET_REFRESH_CHANNEL, onWidgetRefresh)\n\tif (getCurrentScope()) {\n\t\tonScopeDispose(() => {\n\t\t\tunsubscribe(PAGE_REFRESH_CHANNEL, onPageRefresh)\n\t\t\tunsubscribe(WIDGET_REFRESH_CHANNEL, onWidgetRefresh)\n\t\t})\n\t}\n\n\treturn { data, loading, error, blocked, refetch }\n}\n"],"names":[],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,sBAAsB,GAAG,CAAC,GAAG,EAAE,GAAG,KAAI;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,qBAAqB,GAAG,IAAG;AACxC;AACA;AACA,MAAM,oBAAoB,GAAG,kBAAiB;AAC9C;AACA;AACA,MAAM,sBAAsB,GAAG,oBAAmB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,aAAa,GAAG,IAAI,GAAG,GAAE;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE;AACrC,CAAC,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,EAAE,EAAE;AACzD,EAAE,OAAO,GAAG;AACZ,EAAE;AACF,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM;AACtC,EAAE,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,SAAS,GAAG,SAAS,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9D,EAAE,GAAG;AACL,EAAE;AACF,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,oBAAo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AACF,CAAC,SAAS,CAAC,oBAAoB,EAAE,aAAa,EAAC;AAC/C,CAAC,SAAS,CAAC,sBAAsB,EAAE,eAAe,EAAC;AACnD,CAAC,IAAI,eAAe,EAAE,EAAE;AACxB,EAAE,cAAc,CAAC,MAAM;AACvB,GAAG,WAAW,CAAC,oBAAoB,EAAE,aAAa,EAAC;AACnD,GAAG,WAAW,CAAC,sBAAsB,EAAE,eAAe,EAAC;AACvD,GAAG,EAAC;AACJ,EAAE;AACF;AACA,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE;AAClD;;;;"}
1
+ {"version":3,"file":"useEndpointSource.js","sources":["../../../src/composables/useEndpointSource.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2026 Conduction B.V.\n * SPDX-License-Identifier: EUPL-1.2\n *\n * useEndpointSource — ONE coherent endpoint data binding for the abstract\n * widgets (stat / delta / chart / object-table). A manifest-authored\n * `endpointSource` block reads an arbitrary app REST endpoint (a bespoke\n * analytics controller, a summary aggregation OpenRegister can't express)\n * and hands the widget the payload at a dot-path of the response:\n *\n * ```js\n * endpointSource: {\n * url: '/apps/pipelinq/api/analytics/overview', // app-relative (generateUrl) or absolute path\n * method: 'GET', // 'GET' (default) | 'POST' (params become the JSON body)\n * params: { period: '@workspace.datePreset?' }, // SAME token grammar as widget filters\n * responsePath: 'summary', // dot-path pluck of the payload (default: whole body)\n * }\n * ```\n *\n * `params` values pass through the SAME token resolution widget filters use\n * (`resolveFilterTokens`): `@me`, `@today` / `@today±Nd`, `@monthStart`,\n * `@workspace.<key>` / `@config.<key>` (with the trailing-`?` OPTIONAL\n * convention — an unresolved optional param is dropped, an unresolved\n * REQUIRED one blocks the fetch), `@objectId` / `@object.<field>` on detail\n * pages. The `url` itself may interpolate `@page.*` / `@workspace.*` /\n * `@config.*` / `@objectId` / `@object.*` tokens inline (unresolved URL\n * tokens collapse to an empty string so a literal `@page.period` never hits\n * the wire).\n *\n * Requests are SHARED: one in-flight promise + short-TTL cache entry per\n * `(method, url, resolved params)` — the same per-period caching semantics\n * pipelinq's `dashboardData.js` used, so four KPI tiles reading the same\n * overview endpoint issue ONE request per render pass. `responsePath`\n * plucking happens per subscriber, after the shared response resolves.\n *\n * Refresh signal — grounded in the library's own event-bus channels (the\n * mechanism `CnActionsMenu` broadcasts on): the composable subscribes to\n * `cn:page:refresh` (the page-level Refresh action → every endpoint source\n * force-refetches past the cache) and, when a `widgetId` option is given,\n * to `cn:widget:refresh` with a matching `widgetId` payload (the per-widget\n * Refresh action). App-LOCAL refresh signals (e.g. a `Vue.observable` token\n * like pipelinq's `refreshDashboardData()`) are not observable from the\n * library — for those, pass the reactive token as the `refreshKey` option\n * and bump it; every bump force-refetches.\n *\n * @module composables/useEndpointSource\n */\n\nimport { subscribe, unsubscribe } from '@nextcloud/event-bus'\nimport { computed, getCurrentScope, onScopeDispose, ref, unref, watch } from 'vue'\nimport {\n\tdropOptionalUnresolved,\n\thasUnresolvedTokens,\n\tresolveFilterTokens,\n} from '../utils/resolveFilterTokens.js'\n\n/**\n * Cache TTL for shared endpoint responses — 5 minutes, matching the\n * per-period dashboard cache the fleet apps used (pipelinq dashboardData.js).\n *\n * @type {number}\n */\nexport const ENDPOINT_SOURCE_TTL_MS = 5 * 60 * 1000\n\n/**\n * Minimum time a FORCED refetch (a Refresh action, a `refreshKey` bump) keeps\n * `loading` true. A refresh against a fast endpoint settles in a few\n * milliseconds — too briefly for the widget's loading state to be perceived,\n * so the click reads as having done nothing. Only the loading FLAG is held;\n * the fresh data lands the moment the response arrives. Initial and\n * signature-change loads are not held — first paint should never wait.\n *\n * @type {number}\n */\nexport const MIN_FORCED_LOADING_MS = 400\n\n/** Event-bus channel the page-level Refresh action broadcasts on. */\nconst PAGE_REFRESH_CHANNEL = 'cn:page:refresh'\n\n/** Event-bus channel the per-widget Refresh action broadcasts on. */\nconst WIDGET_REFRESH_CHANNEL = 'cn:widget:refresh'\n\n/**\n * Module-level response cache: cacheKey → `{ promise, timestamp }`.\n * Shared across every widget instance in the page so identical requests\n * dedupe to one in-flight promise (pipelinq `cached()` semantics: an\n * errored fetch drops its entry so the next mount retries).\n *\n * @type {Map<string, {promise: Promise<unknown>, timestamp: number}>}\n */\nconst responseCache = new Map()\n\n/**\n * Read a dot-path off an object (e.g. `\"data.totalLeads\"`, `\"series.0.value\"`).\n * Returns the object itself for an empty path and `undefined` when any\n * segment is missing.\n *\n * @param {unknown} obj The source object.\n * @param {string} [path] The dot-path.\n * @return {unknown} The resolved value or undefined.\n */\nexport function getByPath(obj, path) {\n\tif (path === undefined || path === null || path === '') {\n\t\treturn obj\n\t}\n\treturn String(path).split('.').reduce(\n\t\t(o, k) => (o === null || o === undefined ? undefined : o[k]),\n\t\tobj,\n\t)\n}\n\n/**\n * Interpolate `@page.<key>` / `@workspace.<key>` / `@config.<key>` /\n * `@objectId` / `@object.<field>` tokens inside a URL string against the\n * token context. `@page.*` is an alias for `@workspace.*` (both read the\n * page-level workspace context). Unresolved tokens collapse to an empty\n * string so a half-built URL never sends a literal `@page.period`.\n *\n * @param {string} str The raw URL (or any string) to interpolate.\n * @param {{objectId?: (string|number), object?: object, workspace?: object, config?: object, range?: object}} [ctx] The token context.\n * @return {string} The interpolated string.\n */\nexport function interpolateUrlTokens(str, ctx) {\n\tif (typeof str !== 'string') {\n\t\treturn str\n\t}\n\tconst c = ctx || {}\n\tconst workspace = c.workspace || {}\n\tconst config = c.config || {}\n\treturn str.replace(/@(page|workspace)\\.([A-Za-z0-9_]+)/g, (_, _ns, key) => {\n\t\tconst v = workspace[key]\n\t\treturn (v === undefined || v === null) ? '' : String(v)\n\t}).replace(/@config\\.([A-Za-z0-9_]+)/g, (_, key) => {\n\t\tconst v = config[key]\n\t\treturn (v === undefined || v === null) ? '' : String(v)\n\t}).replace(/@range\\.([A-Za-z0-9_]+)/g, (_, key) => {\n\t\tconst v = c.range && c.range[key]\n\t\treturn (v === undefined || v === null) ? '' : String(v)\n\t}).replace(/@objectId/g, () => {\n\t\tconst id = c.objectId\n\t\treturn (id === undefined || id === null) ? '' : String(id)\n\t}).replace(/@object\\.([A-Za-z0-9_]+)/g, (_, field) => {\n\t\tconst v = c.object && c.object[field]\n\t\treturn (v === undefined || v === null) ? '' : String(v)\n\t})\n}\n\n/**\n * Resolve an `endpointSource` config against a token context into a concrete\n * request descriptor. `params` run through the SAME `resolveFilterTokens`\n * grammar widget filters use; optional (`…?`) tokens that stay unresolved are\n * dropped, and a REQUIRED token that stays unresolved marks the request\n * `blocked` (the page context it depends on isn't set yet — callers skip the\n * fetch instead of sending a literal `@workspace.…`).\n *\n * @param {{url: string, method?: string, params?: object}} config The endpointSource block.\n * @param {{objectId?: (string|number), object?: object, workspace?: object, config?: object, range?: object}} [ctx] The token context.\n * @return {{url: string, method: ('GET'|'POST'), params: object, blocked: boolean, responsePath: string}} The resolved request.\n */\nexport function resolveEndpointRequest(config, ctx) {\n\tconst cfg = config || {}\n\tconst url = interpolateUrlTokens(cfg.url || '', ctx)\n\tconst resolved = resolveFilterTokens(cfg.params || {}, ctx)\n\tconst params = dropOptionalUnresolved(resolved)\n\tconst method = String(cfg.method || 'GET').toUpperCase() === 'POST' ? 'POST' : 'GET'\n\tconst responsePath = resolveResponsePath(cfg.responsePath, ctx)\n\tconst blocked = hasUnresolvedTokens(params) || hasEmptyPathSegment(cfg.url || '', url) || responsePath === null\n\treturn { url, method, params, blocked, responsePath: responsePath || '' }\n}\n\n/**\n * Resolve the tokens in a `responsePath` (`phaseDays.@workspace.measure`), so a\n * page control can choose which part of one response a widget reads. Null when\n * a token resolved to nothing and left an empty path segment: the read waits\n * instead of plucking the wrong part.\n *\n * @param {string|undefined} path The configured path.\n * @param {object} [ctx] The token context.\n * @return {string|null} The resolved path, '' for none, null when blocked.\n */\nfunction resolveResponsePath(path, ctx) {\n\tif (typeof path !== 'string' || path === '') {\n\t\treturn ''\n\t}\n\tif (path.indexOf('@') === -1) {\n\t\treturn path\n\t}\n\tconst resolved = interpolateUrlTokens(path, ctx)\n\treturn resolved.split('.').some((segment) => segment === '') ? null : resolved\n}\n\n/**\n * Whether interpolation left an EMPTY PATH SEGMENT in a URL that had tokens.\n *\n * An unresolved token collapses to `''` so a literal `@object.caseType` never\n * hits the wire. In a query value that is harmless. In a PATH it silently\n * builds a different URL: `…/milestones/progress/@object.caseType` becomes\n * `…/milestones/progress/`, which is a route that does not exist.\n *\n * Measured on dossiq: a KPI tile bound to the loaded record fired that 404 on\n * every case-detail load, then re-fired correctly once the record arrived. The\n * tile showed the same value throughout, because the widget's zero and a failed\n * fetch render identically — so nothing looked wrong and the 404 simply became\n * background noise in the console.\n *\n * Only PATH segments are judged, and only when the raw URL actually carried a\n * token: an empty query value stays a caller's business, and a URL with no\n * tokens is never blocked by this.\n *\n * @param {string} rawUrl The URL before interpolation.\n * @param {string} resolvedUrl The URL after interpolation.\n * @return {boolean} true when a token collapsed into an empty path segment.\n */\nfunction hasEmptyPathSegment(rawUrl, resolvedUrl) {\n\tif (typeof rawUrl !== 'string' || rawUrl.indexOf('@') === -1) {\n\t\treturn false\n\t}\n\tconst path = String(resolvedUrl).split('?')[0].split('#')[0]\n\t// A trailing slash on a URL that HAD no trailing slash before interpolation,\n\t// or any `//` inside the path, is a segment that resolved to nothing.\n\tconst rawPath = rawUrl.split('?')[0].split('#')[0]\n\tif (path.includes('//') && !rawPath.includes('//')) {\n\t\treturn true\n\t}\n\treturn path.length > 1 && path.endsWith('/') && !rawPath.endsWith('/')\n}\n\n/**\n * Stable cache key for a resolved endpoint request. One entry per\n * `(method, url, resolved params)` — the params carry the resolved period /\n * date window, so a period switch is a different key (per-period caching).\n *\n * @param {{url: string, method: string, params: object}} request The resolved request.\n * @return {string} The cache key.\n */\nexport function endpointCacheKey(request) {\n\treturn `${request.method} ${request.url} ${JSON.stringify(request.params || {})}`\n}\n\n/**\n * Drop every cached endpoint response (and any in-flight dedup entry).\n * Tests and page-level refresh flows use this to force fresh data.\n *\n * @return {void}\n */\nexport function invalidateEndpointSourceCache() {\n\tresponseCache.clear()\n}\n\n/**\n * Fetch the shared response body for a resolved request, deduping concurrent\n * identical requests and caching for {@link ENDPOINT_SOURCE_TTL_MS}. An\n * errored fetch drops its cache entry so the next call retries.\n *\n * A forced call that carries a `refresh` token joins an in-flight request of\n * the same refresh, so the widgets of one page refresh that share a request\n * send it once. A later refresh (say, one emitted after a save) never joins an\n * earlier one's request, which may predate the write.\n *\n * A `fresh` call joins any request still in flight but never serves a settled\n * cache entry: concurrent callers share one request, and none reads a stale one.\n *\n * @param {{url: string, method: string, params: object}} request The resolved request.\n * @param {{force?: boolean, refresh?: object, fresh?: boolean}} [opts] `force: true` bypasses (and replaces) the cache entry; `refresh` is the refresh event's payload object, one per emit; `fresh: true` only joins in-flight requests.\n * @return {Promise<unknown>} The raw response body (`res.data`).\n */\nexport async function fetchSharedResponse(request, opts) {\n\tconst key = endpointCacheKey(request)\n\tconst now = Date.now()\n\tconst force = Boolean(opts && opts.force)\n\tconst fresh = Boolean(opts && opts.fresh)\n\tconst refresh = (force && opts.refresh) || null\n\tconst entry = responseCache.get(key)\n\tif (entry && refresh && entry.refresh === refresh && entry.pending) {\n\t\treturn entry.promise\n\t}\n\tif (entry && fresh && !force && entry.pending) {\n\t\treturn entry.promise\n\t}\n\tif (entry && !force && !fresh && (now - entry.timestamp) < ENDPOINT_SOURCE_TTL_MS) {\n\t\treturn entry.promise\n\t}\n\tconst promise = (async () => {\n\t\tconst [{ default: axios }, { generateUrl }] = await Promise.all([\n\t\t\timport('@nextcloud/axios'),\n\t\t\timport('@nextcloud/router'),\n\t\t])\n\t\t// Leave absolute URLs (http/https) untouched; route app-relative\n\t\t// paths through generateUrl so they resolve under the NC base.\n\t\tconst url = /^https?:\\/\\//i.test(request.url) ? request.url : generateUrl(request.url)\n\t\tconst res = request.method === 'POST'\n\t\t\t? await axios.post(url, request.params || {})\n\t\t\t: await axios.get(url, { params: request.params || {} })\n\t\treturn res && res.data\n\t})().catch((err) => {\n\t\tif (responseCache.get(key)?.promise === promise) {\n\t\t\tresponseCache.delete(key)\n\t\t}\n\t\tthrow err\n\t}).finally(() => {\n\t\tconst current = responseCache.get(key)\n\t\tif (current?.promise === promise) {\n\t\t\tcurrent.pending = false\n\t\t\tcurrent.refresh = null\n\t\t}\n\t})\n\tresponseCache.set(key, { promise, timestamp: now, refresh, pending: true })\n\treturn promise\n}\n\n/**\n * One-shot cached fetch of an `endpointSource`: resolve tokens, share the\n * request, pluck `responsePath`. Returns `null` when the config is unusable\n * (no url) or the request is blocked on an unresolved REQUIRED token, and\n * `null` when the plucked payload is `undefined`.\n *\n * Use this from an imperative fetch flow (Options-API widgets); use\n * {@link useEndpointSource} for the fully reactive form.\n *\n * @param {{url: string, method?: string, params?: object, responsePath?: string}} config The endpointSource block.\n * @param {{objectId?: (string|number), object?: object, workspace?: object, config?: object, range?: object}} [ctx] The token context.\n * @param {{force?: boolean}} [opts] `force: true` bypasses the shared cache.\n * @return {Promise<unknown>} The plucked payload (or null).\n */\nexport async function fetchEndpointSource(config, ctx, opts) {\n\tif (!config || !config.url) {\n\t\treturn null\n\t}\n\tconst request = resolveEndpointRequest(config, ctx)\n\tif (request.blocked) {\n\t\treturn null\n\t}\n\tconst body = await fetchSharedResponse(request, opts)\n\tconst payload = getByPath(body, request.responsePath)\n\treturn payload === undefined ? null : payload\n}\n\n/**\n * Unwrap a value that may be a plain value, a ref, or a getter function.\n *\n * @param {unknown} v The wrapped value.\n * @return {unknown} The unwrapped value.\n */\nfunction read(v) {\n\treturn typeof v === 'function' ? v() : unref(v)\n}\n\n/**\n * Reactive endpoint data binding.\n *\n * Resolves the `endpointSource` block into reactive\n * `{ data, loading, error, refetch }`. The request signature (url + resolved\n * params + method) is watched, so a change in the page-level workspace\n * context (the dashboard date-range pills publishing `dateFrom` / `dateTo` /\n * `datePreset`, a page filter publishing `period`, …) re-resolves the tokens\n * and refetches automatically. When the config is `null` / has no `url` the\n * composable never queries and `data.value` stays `null`.\n *\n * Refresh wiring (library event-bus):\n * - `cn:page:refresh` → force-refetch past the shared cache.\n * - `cn:widget:refresh` with a payload `widgetId` matching the non-empty\n * `widgetId` option → force-refetch.\n * - a bump of the optional reactive `refreshKey` → force-refetch (escape\n * hatch for app-local refresh signals the library cannot observe).\n *\n * @param {object|import('vue').Ref<object>|(() => object)} source The endpointSource block (object, ref, or getter).\n * @param {object} [options] Options.\n * @param {object|import('vue').Ref<object>|(() => object)} [options.ctx] Token context `{ objectId?, object?, workspace?, config? }` (object, ref, or getter).\n * @param {string|import('vue').Ref<string>|(() => string)} [options.widgetId] Widget id matched against `cn:widget:refresh` payloads (empty disables widget-scoped refresh).\n * @param {import('vue').Ref<unknown>|(() => unknown)} [options.refreshKey] Reactive value (ref or getter) whose changes force a refetch.\n * @return {{data: import('vue').Ref<unknown>, loading: import('vue').Ref<boolean>, error: import('vue').Ref<string>, blocked: import('vue').Ref<boolean>, refetch: (force?: boolean) => Promise<void>}} Reactive state + a `refetch(force = true)` trigger. `blocked` is true when the last read was NOT ATTEMPTED because a required token is unset — distinct from loading, and the only way to tell \"nothing asked\" from \"asked, still waiting\".\n */\nexport function useEndpointSource(source, options) {\n\tconst opts = options || {}\n\tconst data = ref(null)\n\tconst loading = ref(false)\n\tconst error = ref('')\n\t// Whether the last read was not attempted because a required token is\n\t// unset. The three refs above cannot express it: a blocked read looks\n\t// exactly like the instant before the first request.\n\tconst blocked = ref(false)\n\t// Monotonic fetch id so a stale (slower) response never overwrites a\n\t// newer one after the request signature changed.\n\tlet fetchSeq = 0\n\n\tconst readCtx = () => read(opts.ctx) || {}\n\n\t/**\n\t * Stable request signature: null when there is nothing to fetch,\n\t * otherwise the resolved url/params/method + responsePath (+ blocked\n\t * flag so un-blocking triggers the fetch).\n\t */\n\tconst requestKey = computed(() => {\n\t\tconst cfg = read(source)\n\t\tif (!cfg || !cfg.url) {\n\t\t\treturn null\n\t\t}\n\t\tconst request = resolveEndpointRequest(cfg, readCtx())\n\t\treturn JSON.stringify({\n\t\t\tu: request.url,\n\t\t\tm: request.method,\n\t\t\tp: request.params,\n\t\t\tr: request.responsePath,\n\t\t\tb: request.blocked,\n\t\t})\n\t})\n\n\t/**\n\t * Run (or re-run) the fetch for the current config.\n\t *\n\t * @param {boolean} [force] Bypass the shared cache (refresh semantics).\n\t * @param {object} [refresh] The refresh event's payload, shared by its widgets.\n\t * @return {Promise<void>}\n\t */\n\tasync function load(force, refresh) {\n\t\tconst cfg = read(source)\n\t\tconst seq = ++fetchSeq\n\t\tif (!cfg || !cfg.url) {\n\t\t\tdata.value = null\n\t\t\terror.value = ''\n\t\t\tloading.value = false\n\t\t\tblocked.value = false\n\t\t\treturn\n\t\t}\n\t\tconst request = resolveEndpointRequest(cfg, readCtx())\n\t\tif (request.blocked) {\n\t\t\t// A required context token is unset — wait, don't error.\n\t\t\tdata.value = null\n\t\t\terror.value = ''\n\t\t\tloading.value = false\n\t\t\tblocked.value = true\n\t\t\treturn\n\t\t}\n\t\tblocked.value = false\n\t\tconst startedAt = Date.now()\n\t\tloading.value = true\n\t\terror.value = ''\n\t\ttry {\n\t\t\tconst body = await fetchSharedResponse(request, { force: force === true, refresh })\n\t\t\tif (seq !== fetchSeq) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tconst payload = getByPath(body, request.responsePath)\n\t\t\tdata.value = payload === undefined ? null : payload\n\t\t} catch (e) {\n\t\t\tif (seq !== fetchSeq) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\terror.value = (e && e.message) || 'error'\n\t\t\tdata.value = null\n\t\t} finally {\n\t\t\tif (seq === fetchSeq) {\n\t\t\t\t// Forced refetches hold `loading` to MIN_FORCED_LOADING_MS so\n\t\t\t\t// the refresh is perceivable even against a fast endpoint; a\n\t\t\t\t// newer run owns the flag once fetchSeq moves on.\n\t\t\t\tconst hold = force === true ? MIN_FORCED_LOADING_MS - (Date.now() - startedAt) : 0\n\t\t\t\tif (hold > 0) {\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tif (seq === fetchSeq) {\n\t\t\t\t\t\t\tloading.value = false\n\t\t\t\t\t\t}\n\t\t\t\t\t}, hold)\n\t\t\t\t} else {\n\t\t\t\t\tloading.value = false\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Public refetch trigger. Force (cache-bypassing) by default — that is\n\t * what every refresh affordance wants; pass `false` to allow a cache hit.\n\t *\n\t * @param {boolean} [force] Bypass the shared cache (default true).\n\t * @return {Promise<void>}\n\t */\n\tconst refetch = (force = true) => load(force)\n\n\twatch(requestKey, () => {\n\t\tload(false)\n\t}, { immediate: true })\n\n\tif (opts.refreshKey !== undefined) {\n\t\twatch(() => read(opts.refreshKey), () => {\n\t\t\tload(true)\n\t\t})\n\t}\n\n\t// `waitUntil` lets the menu that sent the refresh spin until this fetch lands.\n\tconst onPageRefresh = (payload) => {\n\t\tconst done = load(true, payload)\n\t\tpayload?.waitUntil?.(done)\n\t}\n\tconst onWidgetRefresh = (payload) => {\n\t\tconst id = read(opts.widgetId)\n\t\tif (!id) {\n\t\t\treturn\n\t\t}\n\t\tif (!payload || payload.widgetId !== id) {\n\t\t\treturn\n\t\t}\n\t\tconst done = load(true, payload)\n\t\tpayload.waitUntil?.(done)\n\t}\n\tsubscribe(PAGE_REFRESH_CHANNEL, onPageRefresh)\n\tsubscribe(WIDGET_REFRESH_CHANNEL, onWidgetRefresh)\n\tif (getCurrentScope()) {\n\t\tonScopeDispose(() => {\n\t\t\tunsubscribe(PAGE_REFRESH_CHANNEL, onPageRefresh)\n\t\t\tunsubscribe(WIDGET_REFRESH_CHANNEL, onWidgetRefresh)\n\t\t})\n\t}\n\n\treturn { data, loading, error, blocked, refetch }\n}\n"],"names":[],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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AACF,CAAC,MAAM,eAAe,GAAG,CAAC,OAAO,KAAK;AACtC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAC;AAChC,EAAE,IAAI,CAAC,EAAE,EAAE;AACX,GAAG,MAAM;AACT,GAAG;AACH,EAAE,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,QAAQ,KAAK,EAAE,EAAE;AAC3C,GAAG,MAAM;AACT,GAAG;AACH,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,OAAO,EAAC;AAClC,EAAE,OAAO,CAAC,SAAS,GAAG,IAAI,EAAC;AAC3B,GAAE;AACF,CAAC,SAAS,CAAC,oBAAoB,EAAE,aAAa,EAAC;AAC/C,CAAC,SAAS,CAAC,sBAAsB,EAAE,eAAe,EAAC;AACnD,CAAC,IAAI,eAAe,EAAE,EAAE;AACxB,EAAE,cAAc,CAAC,MAAM;AACvB,GAAG,WAAW,CAAC,oBAAoB,EAAE,aAAa,EAAC;AACnD,GAAG,WAAW,CAAC,sBAAsB,EAAE,eAAe,EAAC;AACvD,GAAG,EAAC;AACJ,EAAE;AACF;AACA,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE;AAClD;;;;"}
package/dist/esm/index.js CHANGED
@@ -176,6 +176,7 @@ export { default as CnFormWidgetBase } from './components/CnFormWidgetBase/CnFor
176
176
  export { default as CnGaugeWidget } from './components/CnGaugeWidget/CnGaugeWidget.vue.js';
177
177
  export { default as CnGaugeWidgetForm } from './components/CnGaugeWidgetForm/CnGaugeWidgetForm.vue.js';
178
178
  export { default as CnGraphCanvas } from './components/CnGraphCanvas/CnGraphCanvas.vue.js';
179
+ export { default as CnGroupedCardsWidget } from './components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue.js';
179
180
  export { default as CnGuardianHome } from './components/CnGuardianHome/CnGuardianHome.vue.js';
180
181
  export { default as CnHeaderWidget } from './components/CnHeaderWidget/CnHeaderWidget.vue.js';
181
182
  export { default as CnHeaderWidgetForm } from './components/CnHeaderWidgetForm/CnHeaderWidgetForm.vue.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1693,7 +1693,33 @@ var translations = {
1693
1693
  "{fields}: {reason}": "{fields}: {reason}",
1694
1694
  "Current {name}": "Current {name}",
1695
1695
  "Upload {name}": "Upload {name}",
1696
- "The image could not be uploaded: {reason}": "The image could not be uploaded: {reason}"
1696
+ "The image could not be uploaded: {reason}": "The image could not be uploaded: {reason}",
1697
+ "The saved flow runs once with the record you pick as its subject.": "The saved flow runs once with the record you pick as its subject.",
1698
+ Record: "Record",
1699
+ "Run test": "Run test",
1700
+ "Test with a record": "Test with a record",
1701
+ admin: "admin",
1702
+ Wizard: "Wizard",
1703
+ "{done} of {total} reviewed": "{done} of {total} reviewed",
1704
+ "{open} still to review": "{open} still to review",
1705
+ "{action}: {name}": "{action}: {name}",
1706
+ "On the map": "On the map",
1707
+ "Show them in the table": "Show them in the table",
1708
+ Linked: "Linked",
1709
+ Now: "Now",
1710
+ "Tell me above a number": "Tell me above a number",
1711
+ Threshold: "Threshold",
1712
+ "A message to you when there are {threshold} or more": "A message to you when there are {threshold} or more",
1713
+ "Save this search or open a saved one to set an alert on it.": "Save this search or open a saved one to set an alert on it.",
1714
+ "The alert could not be saved.": "The alert could not be saved.",
1715
+ "Your exports could not be loaded.": "Your exports could not be loaded.",
1716
+ "You have no exports here.": "You have no exports here.",
1717
+ "Expires today": "Expires today",
1718
+ Download: "Download",
1719
+ "Made {date}": "Made {date}",
1720
+ "expires {date}": "expires {date}",
1721
+ "Loading …": "Loading …",
1722
+ "Reorder {item}: drag, or press the up and down arrow keys": "Reorder {item}: drag, or press the up and down arrow keys"
1697
1723
  };
1698
1724
  var plurals = {
1699
1725
  "{count} selected": [
@@ -1791,6 +1817,22 @@ var plurals = {
1791
1817
  "Showing %n flow": [
1792
1818
  "Showing %n flow",
1793
1819
  "Showing %n flows"
1820
+ ],
1821
+ "%n without an address": [
1822
+ "%n without an address",
1823
+ "%n without an address"
1824
+ ],
1825
+ "%n with an address on the map": [
1826
+ "%n with an address on the map",
1827
+ "%n with an address on the map"
1828
+ ],
1829
+ "%n result": [
1830
+ "%n result",
1831
+ "%n results"
1832
+ ],
1833
+ "downloaded %n time": [
1834
+ "downloaded %n time",
1835
+ "downloaded %n times"
1794
1836
  ]
1795
1837
  };
1796
1838
  var en = {
@@ -1 +1 @@
1
- {"version":3,"file":"en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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change the working calendar.": "Alleen een beheerder kan de werkkalender wijzigen.",
1910
1910
  "The day could not be added. Try again.": "De dag kon niet worden toegevoegd. Probeer het opnieuw.",
1911
- "Loading …": "Laden …"
1911
+ "Loading …": "Laden …",
1912
+ "The saved flow runs once with the record you pick as its subject.": "De opgeslagen flow draait één keer met het record dat u kiest als onderwerp.",
1913
+ Record: "Record",
1914
+ "Run test": "Test uitvoeren",
1915
+ "Test with a record": "Testen met een record",
1916
+ admin: "beheerder",
1917
+ Wizard: "Assistent",
1918
+ "{done} of {total} reviewed": "{done} van {total} beoordeeld",
1919
+ "{open} still to review": "Nog {open} te beoordelen",
1920
+ "{action}: {name}": "{action}: {name}",
1921
+ "On the map": "Op de kaart",
1922
+ "Show them in the table": "Toon ze in de tabel",
1923
+ Linked: "Gekoppeld",
1924
+ Now: "Nu",
1925
+ "Tell me above a number": "Melden boven een aantal",
1926
+ Threshold: "Grens",
1927
+ "A message to you when there are {threshold} or more": "Bericht aan u als het er {threshold} of meer zijn",
1928
+ "Save this search or open a saved one to set an alert on it.": "Sla deze zoekopdracht op of open een opgeslagen zoekopdracht om er een melding op te zetten.",
1929
+ "The alert could not be saved.": "De melding kon niet worden opgeslagen.",
1930
+ "Your exports could not be loaded.": "Uw exports konden niet worden geladen.",
1931
+ "You have no exports here.": "U heeft hier geen exports.",
1932
+ "Expires today": "Verloopt vandaag",
1933
+ "Made {date}": "Gemaakt {date}",
1934
+ "expires {date}": "verloopt {date}",
1935
+ "Reorder {item}: drag, or press the up and down arrow keys": "{item} verplaatsen: slepen, of de pijltoetsen omhoog en omlaag"
1912
1936
  };
1913
1937
  var plurals = {
1914
1938
  "{count} selected": [
@@ -2006,6 +2030,22 @@ var plurals = {
2006
2030
  "Showing %n flow": [
2007
2031
  "%n flow",
2008
2032
  "%n flows"
2033
+ ],
2034
+ "%n without an address": [
2035
+ "%n zonder adres",
2036
+ "%n zonder adres"
2037
+ ],
2038
+ "%n with an address on the map": [
2039
+ "%n met een adres op de kaart",
2040
+ "%n met een adres op de kaart"
2041
+ ],
2042
+ "%n result": [
2043
+ "%n resultaat",
2044
+ "%n resultaten"
2045
+ ],
2046
+ "downloaded %n time": [
2047
+ "%n keer gedownload",
2048
+ "%n keer gedownload"
2009
2049
  ]
2010
2050
  };
2011
2051
  var nl = {
@@ -1 +1 @@
1
- {"version":3,"file":"nl.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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