@conduction/nextcloud-vue 2.161.0 → 2.163.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.
- package/dist/esm/components/CnActionsMenu/CnActionsMenu.vue2.js +3 -2
- package/dist/esm/components/CnActionsMenu/CnActionsMenu.vue2.js.map +1 -1
- package/dist/esm/components/CnActionsMenu/CnActionsMenu.vue3.js.map +1 -1
- package/dist/esm/components/CnAddressSearch/CnAddressSearch.vue.js +1 -1
- package/dist/esm/components/CnAddressSearch/CnAddressSearch.vue2.js +2 -1
- package/dist/esm/components/CnAddressSearch/CnAddressSearch.vue2.js.map +1 -1
- package/dist/esm/components/CnAddressSearch/CnAddressSearch.vue3.js.map +1 -1
- package/dist/esm/components/CnChipListManager/CnChipListManager.vue.js +9 -0
- package/dist/esm/components/CnChipListManager/CnChipListManager.vue.js.map +1 -0
- package/dist/esm/components/CnChipListManager/CnChipListManager.vue2.js +304 -0
- package/dist/esm/components/CnChipListManager/CnChipListManager.vue2.js.map +1 -0
- package/dist/esm/components/CnChipListManager/CnChipListManager.vue3.js +161 -0
- package/dist/esm/components/CnChipListManager/CnChipListManager.vue3.js.map +1 -0
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue.js +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js +2 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js.map +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js.map +1 -1
- package/dist/esm/components/CnDataTable/CnDataTable.vue2.js +8 -8
- package/dist/esm/components/CnDataTable/CnDataTable.vue2.js.map +1 -1
- package/dist/esm/components/CnDataTable/CnDataTable.vue3.js.map +1 -1
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue.js +1 -1
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue2.js +23 -0
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue2.js.map +1 -1
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue3.js.map +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue.js +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js +48 -5
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js +2 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue.js +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js +4 -3
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js.map +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js.map +1 -1
- package/dist/esm/components/CnFilesBrowser/filesBrowser.js +6 -5
- package/dist/esm/components/CnFilesBrowser/filesBrowser.js.map +1 -1
- package/dist/esm/components/CnFilesBrowser/openRegisterSource.js +2 -1
- package/dist/esm/components/CnFilesBrowser/openRegisterSource.js.map +1 -1
- package/dist/esm/components/CnFilesWidget/CnFilesWidget.vue.js +1 -1
- package/dist/esm/components/CnFilesWidget/CnFilesWidget.vue2.js +2 -1
- package/dist/esm/components/CnFilesWidget/CnFilesWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnFilesWidget/CnFilesWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnFilterRowsEditor/CnFilterRowsEditor.vue.js +1 -1
- package/dist/esm/components/CnFilterRowsEditor/CnFilterRowsEditor.vue2.js +4 -0
- package/dist/esm/components/CnFilterRowsEditor/CnFilterRowsEditor.vue2.js.map +1 -1
- package/dist/esm/components/CnFilterRowsEditor/CnFilterRowsEditor.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowRunsWidget/CnFlowRunsWidget.vue.js +1 -1
- package/dist/esm/components/CnFlowRunsWidget/CnFlowRunsWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowRunsWidget/CnFlowRunsWidget.vue3.js +41 -39
- package/dist/esm/components/CnFlowRunsWidget/CnFlowRunsWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnFolderSidebar/webdavFolders.js +2 -1
- package/dist/esm/components/CnFolderSidebar/webdavFolders.js.map +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue.js +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js +2 -2
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js.map +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js.map +1 -1
- package/dist/esm/components/CnIconPicker/CnIconPicker.vue.js +1 -1
- package/dist/esm/components/CnIconPicker/CnIconPicker.vue2.js +4 -3
- package/dist/esm/components/CnIconPicker/CnIconPicker.vue2.js.map +1 -1
- package/dist/esm/components/CnIconPicker/CnIconPicker.vue3.js.map +1 -1
- package/dist/esm/components/CnIconPicker/iconCatalogues.js +16 -3
- package/dist/esm/components/CnIconPicker/iconCatalogues.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +87 -11
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +2 -2
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
- package/dist/esm/components/CnLinksWidgetForm/CnLinksWidgetForm.vue.js +1 -1
- package/dist/esm/components/CnLinksWidgetForm/CnLinksWidgetForm.vue2.js +2 -1
- package/dist/esm/components/CnLinksWidgetForm/CnLinksWidgetForm.vue2.js.map +1 -1
- package/dist/esm/components/CnLinksWidgetForm/CnLinksWidgetForm.vue3.js.map +1 -1
- package/dist/esm/components/CnMarkdownEditor/CnMarkdownEditor.vue.js +1 -1
- package/dist/esm/components/CnMarkdownEditor/CnMarkdownEditor.vue2.js +6 -1
- package/dist/esm/components/CnMarkdownEditor/CnMarkdownEditor.vue2.js.map +1 -1
- package/dist/esm/components/CnMarkdownEditor/CnMarkdownEditor.vue3.js.map +1 -1
- package/dist/esm/components/CnMenuWidget/menuActive.js +2 -1
- package/dist/esm/components/CnMenuWidget/menuActive.js.map +1 -1
- package/dist/esm/components/CnObjectListWidget/CnObjectListWidget.vue.js +1 -1
- package/dist/esm/components/CnObjectListWidget/CnObjectListWidget.vue2.js +1 -1
- package/dist/esm/components/CnObjectListWidget/CnObjectListWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnObjectListWidget/CnObjectListWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnObjectListWidgetForm/CnObjectListWidgetForm.vue.js +1 -1
- package/dist/esm/components/CnObjectListWidgetForm/CnObjectListWidgetForm.vue2.js +4 -0
- package/dist/esm/components/CnObjectListWidgetForm/CnObjectListWidgetForm.vue2.js.map +1 -1
- package/dist/esm/components/CnObjectListWidgetForm/CnObjectListWidgetForm.vue3.js.map +1 -1
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue.js +1 -1
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue2.js +39 -2
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue3.js +1 -1
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnPageTreeNode/CnPageTreeNode.vue.js +1 -1
- package/dist/esm/components/CnPageTreeNode/CnPageTreeNode.vue2.js +2 -1
- package/dist/esm/components/CnPageTreeNode/CnPageTreeNode.vue2.js.map +1 -1
- package/dist/esm/components/CnPageTreeNode/CnPageTreeNode.vue3.js.map +1 -1
- package/dist/esm/components/CnPageTreeNode/CnPageTreeRow.vue.js +1 -1
- package/dist/esm/components/CnPageTreeNode/CnPageTreeRow.vue2.js +10 -1
- package/dist/esm/components/CnPageTreeNode/CnPageTreeRow.vue2.js.map +1 -1
- package/dist/esm/components/CnPageTreeNode/CnPageTreeRow.vue3.js.map +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue.js +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js +5 -5
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnSchemaFormDialog/CnSchemaPropertyActions.vue2.js +22 -0
- package/dist/esm/components/CnSchemaFormDialog/CnSchemaPropertyActions.vue2.js.map +1 -1
- package/dist/esm/components/CnSchemaFormDialog/CnSchemaPropertyActions.vue3.js.map +1 -1
- package/dist/esm/components/CnStagesWidgetForm/CnStagesWidgetForm.vue.js +1 -1
- package/dist/esm/components/CnStagesWidgetForm/CnStagesWidgetForm.vue2.js +4 -0
- package/dist/esm/components/CnStagesWidgetForm/CnStagesWidgetForm.vue2.js.map +1 -1
- package/dist/esm/components/CnStagesWidgetForm/CnStagesWidgetForm.vue3.js.map +1 -1
- package/dist/esm/components/CnWalkthrough/CnWalkthrough.vue.js +1 -1
- package/dist/esm/components/CnWalkthrough/CnWalkthrough.vue2.js +1 -1
- package/dist/esm/components/CnWalkthrough/CnWalkthrough.vue2.js.map +1 -1
- package/dist/esm/components/CnWalkthrough/CnWalkthrough.vue3.js.map +1 -1
- package/dist/esm/composables/indexSources.js +30 -2
- package/dist/esm/composables/indexSources.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/integrations/builtin/analytics/CnAnalyticsCard.vue.js +1 -1
- package/dist/esm/integrations/builtin/analytics/CnAnalyticsCard.vue2.js +2 -1
- package/dist/esm/integrations/builtin/analytics/CnAnalyticsCard.vue2.js.map +1 -1
- package/dist/esm/integrations/builtin/analytics/CnAnalyticsCard.vue3.js.map +1 -1
- package/dist/esm/integrations/builtin/analytics/CnAnalyticsTab.vue.js +1 -1
- package/dist/esm/integrations/builtin/analytics/CnAnalyticsTab.vue2.js +3 -2
- package/dist/esm/integrations/builtin/analytics/CnAnalyticsTab.vue2.js.map +1 -1
- package/dist/esm/integrations/builtin/analytics/CnAnalyticsTab.vue3.js.map +1 -1
- package/dist/esm/integrations/builtin/email/CnEmailTab.vue.js +1 -1
- package/dist/esm/integrations/builtin/email/CnEmailTab.vue2.js +130 -1
- package/dist/esm/integrations/builtin/email/CnEmailTab.vue2.js.map +1 -1
- package/dist/esm/integrations/builtin/email/CnEmailTab.vue3.js +27 -16
- package/dist/esm/integrations/builtin/email/CnEmailTab.vue3.js.map +1 -1
- package/dist/esm/integrations/builtin/photos/CnPhotosCard.vue.js +1 -1
- package/dist/esm/integrations/builtin/photos/CnPhotosCard.vue2.js +2 -1
- package/dist/esm/integrations/builtin/photos/CnPhotosCard.vue2.js.map +1 -1
- package/dist/esm/integrations/builtin/photos/CnPhotosCard.vue3.js.map +1 -1
- package/dist/esm/integrations/builtin/photos/CnPhotosTab.vue.js +1 -1
- package/dist/esm/integrations/builtin/photos/CnPhotosTab.vue2.js +2 -1
- package/dist/esm/integrations/builtin/photos/CnPhotosTab.vue2.js.map +1 -1
- package/dist/esm/integrations/builtin/photos/CnPhotosTab.vue3.js.map +1 -1
- package/dist/esm/integrations/builtin/xwiki/CnXwikiCard.vue.js +1 -1
- package/dist/esm/integrations/builtin/xwiki/CnXwikiCard.vue2.js +2 -6
- package/dist/esm/integrations/builtin/xwiki/CnXwikiCard.vue2.js.map +1 -1
- package/dist/esm/integrations/builtin/xwiki/CnXwikiCard.vue3.js.map +1 -1
- package/dist/esm/integrations/builtin/xwiki/CnXwikiTab.vue.js +1 -1
- package/dist/esm/integrations/builtin/xwiki/CnXwikiTab.vue2.js +2 -6
- package/dist/esm/integrations/builtin/xwiki/CnXwikiTab.vue2.js.map +1 -1
- package/dist/esm/integrations/builtin/xwiki/CnXwikiTab.vue3.js.map +1 -1
- package/dist/esm/integrations/utils/marker.js +35 -6
- package/dist/esm/integrations/utils/marker.js.map +1 -1
- package/dist/esm/l10n/en.json.js +17 -1
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +17 -1
- package/dist/esm/l10n/nl.json.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +1038 -822
- package/dist/esm/utils/buildManifestRoutes.js +2 -1
- package/dist/esm/utils/buildManifestRoutes.js.map +1 -1
- package/dist/esm/utils/cnFetch.js +1 -15
- package/dist/esm/utils/cnFetch.js.map +1 -1
- package/dist/esm/utils/fillTemplate.js +32 -2
- package/dist/esm/utils/fillTemplate.js.map +1 -1
- package/dist/esm/utils/forge.js +4 -1
- package/dist/esm/utils/forge.js.map +1 -1
- package/dist/esm/utils/htmlToText.js +36 -0
- package/dist/esm/utils/htmlToText.js.map +1 -0
- package/dist/esm/utils/myTeam.js +17 -3
- package/dist/esm/utils/myTeam.js.map +1 -1
- package/dist/esm/utils/prototypeKeys.js +20 -0
- package/dist/esm/utils/prototypeKeys.js.map +1 -0
- package/dist/esm/utils/rowAggregate.js +20 -1
- package/dist/esm/utils/rowAggregate.js.map +1 -1
- package/dist/esm/utils/toastUiRawHtmlGuard.js +166 -0
- package/dist/esm/utils/toastUiRawHtmlGuard.js.map +1 -0
- package/dist/esm/utils/trailingSlashes.js +24 -0
- package/dist/esm/utils/trailingSlashes.js.map +1 -0
- package/dist/nextcloud-vue.cjs.js +12490 -11295
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +1038 -822
- package/l10n/en.json +17 -1
- package/l10n/nl.json +17 -1
- package/package.json +1 -1
- package/src/components/CnActionsMenu/CnActionsMenu.vue +3 -2
- package/src/components/CnAddressSearch/CnAddressSearch.vue +2 -1
- package/src/components/CnChipListManager/CnChipListManager.vue +504 -0
- package/src/components/CnChipListManager/index.js +4 -0
- package/src/components/CnDashboardPage/CnDashboardPage.vue +2 -1
- package/src/components/CnDataTable/CnDataTable.vue +8 -8
- package/src/components/CnDetailWidgetHost/CnDetailWidgetHost.vue +23 -0
- package/src/components/CnFactsWidget/CnFactsWidget.vue +49 -5
- package/src/components/CnFilesBrowser/CnFilesBrowser.vue +4 -3
- package/src/components/CnFilesBrowser/filesBrowser.js +6 -5
- package/src/components/CnFilesBrowser/openRegisterSource.js +2 -1
- package/src/components/CnFilesWidget/CnFilesWidget.vue +2 -1
- package/src/components/CnFilterRowsEditor/CnFilterRowsEditor.vue +4 -0
- package/src/components/CnFlowRunsWidget/CnFlowRunsWidget.vue +1 -1
- package/src/components/CnFolderSidebar/webdavFolders.js +2 -1
- package/src/components/CnFormDialog/CnFormDialog.vue +2 -2
- package/src/components/CnIconPicker/CnIconPicker.vue +4 -3
- package/src/components/CnIconPicker/iconCatalogues.js +16 -3
- package/src/components/CnIndexPage/CnIndexPage.vue +89 -13
- package/src/components/CnLinksWidgetForm/CnLinksWidgetForm.vue +2 -1
- package/src/components/CnMarkdownEditor/CnMarkdownEditor.vue +6 -1
- package/src/components/CnMenuWidget/menuActive.js +2 -1
- package/src/components/CnObjectListWidget/CnObjectListWidget.vue +1 -1
- package/src/components/CnObjectListWidgetForm/CnObjectListWidgetForm.vue +4 -0
- package/src/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue +40 -3
- package/src/components/CnPageTreeNode/CnPageTreeNode.vue +2 -1
- package/src/components/CnPageTreeNode/CnPageTreeRow.vue +10 -1
- package/src/components/CnRecordListWidget/CnRecordListWidget.vue +5 -5
- package/src/components/CnSchemaFormDialog/CnSchemaPropertyActions.vue +22 -0
- package/src/components/CnStagesWidgetForm/CnStagesWidgetForm.vue +4 -0
- package/src/components/CnWalkthrough/CnWalkthrough.vue +1 -1
- package/src/components/index.js +1 -0
- package/src/composables/indexSources.js +30 -2
- package/src/css/dialog.css +7 -0
- package/src/css/look-board-detail.css +41 -4
- package/src/css/look-board.css +64 -2
- package/src/index.js +1 -0
- package/src/integrations/builtin/analytics/CnAnalyticsCard.vue +2 -1
- package/src/integrations/builtin/analytics/CnAnalyticsTab.vue +3 -2
- package/src/integrations/builtin/email/CnEmailTab.vue +155 -4
- package/src/integrations/builtin/photos/CnPhotosCard.vue +2 -1
- package/src/integrations/builtin/photos/CnPhotosTab.vue +2 -1
- package/src/integrations/builtin/xwiki/CnXwikiCard.vue +2 -6
- package/src/integrations/builtin/xwiki/CnXwikiTab.vue +2 -6
- package/src/integrations/utils/marker.js +35 -6
- package/src/utils/buildManifestRoutes.js +2 -1
- package/src/utils/cnFetch.js +3 -15
- package/src/utils/fillTemplate.js +32 -2
- package/src/utils/forge.js +3 -1
- package/src/utils/htmlToText.js +33 -0
- package/src/utils/myTeam.js +17 -3
- package/src/utils/prototypeKeys.js +17 -0
- package/src/utils/rowAggregate.js +19 -0
- package/src/utils/toastUiRawHtmlGuard.js +162 -0
- package/src/utils/trailingSlashes.js +21 -0
|
@@ -449,7 +449,7 @@
|
|
|
449
449
|
:key="`${field.key}-${val}`"
|
|
450
450
|
:modelValue="isFilterActive(field.key, val)"
|
|
451
451
|
@update:modelValue="toggleFilter(field.key, val)">
|
|
452
|
-
{{ val }}
|
|
452
|
+
{{ activeFilterValueLabel(field.key, val) }}
|
|
453
453
|
</NcActionCheckbox>
|
|
454
454
|
</template>
|
|
455
455
|
</NcActions>
|
|
@@ -964,7 +964,7 @@
|
|
|
964
964
|
:key="`${field.key}-${val}`"
|
|
965
965
|
:modelValue="isFilterActive(field.key, val)"
|
|
966
966
|
@update:modelValue="toggleFilter(field.key, val)">
|
|
967
|
-
{{ val }}
|
|
967
|
+
{{ activeFilterValueLabel(field.key, val) }}
|
|
968
968
|
</NcActionCheckbox>
|
|
969
969
|
</template>
|
|
970
970
|
</NcActions>
|
|
@@ -1525,6 +1525,7 @@ import { resolveScopeLayout, resolveScopePresentation } from '../../utils/scopeL
|
|
|
1525
1525
|
import { readSearchRefusal } from '../../utils/searchRefusal.js'
|
|
1526
1526
|
import { orderToSortKeys } from '../../utils/sortOrder.js'
|
|
1527
1527
|
import { annotateRows, filterSourceRows, pageSourceRows, rowsFromSourceBody } from '../../utils/sortSourceRows.js'
|
|
1528
|
+
import { stripTrailingSlashes } from '../../utils/trailingSlashes.js'
|
|
1528
1529
|
import { userDisplayName } from '../../utils/userDisplayName.js'
|
|
1529
1530
|
import { dispatchObjectCreated } from '../../utils/walkthroughSignals.js'
|
|
1530
1531
|
import { CnActionButtons } from '../CnActionButtons/index.js'
|
|
@@ -2330,7 +2331,10 @@ export default {
|
|
|
2330
2331
|
* filter? }`), or a field read from an app endpoint (`{ endpoint,
|
|
2331
2332
|
* path, followFilters? }`; `followFilters: true` sends the active
|
|
2332
2333
|
* filters along as `filter[<field>]=<value>`). A value not read (yet) leaves its token empty (board PqLeads
|
|
2333
|
-
* "€ 509.928 in de pijplijn").
|
|
2334
|
+
* "€ 509.928 in de pijplijn"). `unfiltered: true` reads an aggregation
|
|
2335
|
+
* under the page's own `filter` only, so the footer note can name the
|
|
2336
|
+
* whole list ("73 aanmeldingen in totaal"); the footer note fills the
|
|
2337
|
+
* same tokens.
|
|
2334
2338
|
*
|
|
2335
2339
|
* @spec openspec/changes/index-count-values/specs/index-page/spec.md#requirement-the-count-line-can-name-sums-and-values
|
|
2336
2340
|
* @type {Record<string, object>|null}
|
|
@@ -4297,6 +4301,22 @@ export default {
|
|
|
4297
4301
|
default: false,
|
|
4298
4302
|
},
|
|
4299
4303
|
|
|
4304
|
+
/**
|
|
4305
|
+
* Filter menu entries with no column behind them (manifest
|
|
4306
|
+
* `config.filterMenuFields`): `[{ key, label?, values?, referenceType? }]`.
|
|
4307
|
+
* Each lists its values, else the schema's enum or options, else the
|
|
4308
|
+
* API's facet buckets, else a named source's `facets()`, each value
|
|
4309
|
+
* named as the Active chip names it. `referenceType: "nextcloud-user"`
|
|
4310
|
+
* names a user id by its display name (PqContracten "Eigenaar").
|
|
4311
|
+
*
|
|
4312
|
+
* @type {Array<{key: string, label?: string, values?: string[], referenceType?: string}>}
|
|
4313
|
+
* @spec openspec/changes/filter-menu-fields/specs/filter-menu-fields/spec.md#requirement-a-filter-menu-entry-needs-no-column
|
|
4314
|
+
*/
|
|
4315
|
+
filterMenuFields: {
|
|
4316
|
+
type: Array,
|
|
4317
|
+
default: () => [],
|
|
4318
|
+
},
|
|
4319
|
+
|
|
4300
4320
|
/**
|
|
4301
4321
|
* Show a column menu (columns button) in the table header, above the
|
|
4302
4322
|
* row-actions column. Its menu lists every governed column as a toggleable
|
|
@@ -8025,6 +8045,16 @@ export default {
|
|
|
8025
8045
|
out.push({ key, label: this.cnTranslate(colObj.label || def.title || key), values: values.map((v) => String(v)) })
|
|
8026
8046
|
}
|
|
8027
8047
|
}
|
|
8048
|
+
const taken = new Set(out.map((field) => field.key))
|
|
8049
|
+
for (const entry of (Array.isArray(this.filterMenuFields) ? this.filterMenuFields : [])) {
|
|
8050
|
+
if (!entry || typeof entry.key !== 'string' || entry.key === '' || taken.has(entry.key)) {
|
|
8051
|
+
continue
|
|
8052
|
+
}
|
|
8053
|
+
const values = this.filterMenuValuesOf(entry)
|
|
8054
|
+
if (values.length > 0) {
|
|
8055
|
+
out.push({ key: entry.key, label: this.cnTranslate(entry.label || props[entry.key]?.title || entry.key), values })
|
|
8056
|
+
}
|
|
8057
|
+
}
|
|
8028
8058
|
return out
|
|
8029
8059
|
},
|
|
8030
8060
|
|
|
@@ -8434,6 +8464,7 @@ export default {
|
|
|
8434
8464
|
const footerNote = scoped !== undefined ? scoped : footerNoteForView(this.footerNoteByView, this.currentViewMode, this.footerNote)
|
|
8435
8465
|
if (footerNote) {
|
|
8436
8466
|
return this.fillConfigTokens(this.cnTranslate(footerNote))
|
|
8467
|
+
.replace(/\{(\w+)\|[^}]*\}|\{(\w+)\}/g, (token, a, b) => this.countValueToken(token, a || b))
|
|
8437
8468
|
}
|
|
8438
8469
|
const source = this.isNamedSource ? this.namedSource : null
|
|
8439
8470
|
return (source && source.footerNote) || footerNote
|
|
@@ -10272,9 +10303,12 @@ export default {
|
|
|
10272
10303
|
}
|
|
10273
10304
|
const params = (this.$route && this.$route.params) || {}
|
|
10274
10305
|
const ctx = typeof this.selfFetchTokenCtx === 'function' ? this.selfFetchTokenCtx() : {}
|
|
10275
|
-
const
|
|
10306
|
+
const pageFilter = resolveFilterMap(this.filter, params, ctx)
|
|
10307
|
+
const filtered = { ...pageFilter, ...(this.effectiveActiveFilters || {}) }
|
|
10276
10308
|
const results = {}
|
|
10277
10309
|
await Promise.all(entries.map(async ([name, cfg]) => {
|
|
10310
|
+
// `unfiltered`: the whole list under the page's own filter, not the user's.
|
|
10311
|
+
const base = cfg && cfg.unfiltered === true ? pageFilter : filtered
|
|
10278
10312
|
try {
|
|
10279
10313
|
let value
|
|
10280
10314
|
if (cfg && typeof cfg.endpoint === 'string' && cfg.endpoint !== '') {
|
|
@@ -11759,26 +11793,37 @@ export default {
|
|
|
11759
11793
|
|
|
11760
11794
|
/**
|
|
11761
11795
|
* The field an Active chip names: the page's `filterLabels` label, the
|
|
11762
|
-
* schema property's title, the sidebar field's title,
|
|
11796
|
+
* schema property's title, the sidebar field's title, the column's
|
|
11797
|
+
* label, else the key. An operator key (`address[like]`) names its
|
|
11798
|
+
* field (`address`) unless `filterLabels` names the whole key.
|
|
11763
11799
|
*
|
|
11764
11800
|
* @param {string} key The filter key.
|
|
11765
11801
|
* @return {string} The translated field name.
|
|
11766
11802
|
* @spec openspec/changes/index-filter-labels/specs/active-filter-line-board-look/spec.md#requirement-a-page-names-its-filters
|
|
11767
11803
|
*/
|
|
11768
11804
|
activeFilterFieldLabel(key) {
|
|
11769
|
-
const
|
|
11805
|
+
const whole = this.filterLabels && this.filterLabels[key]
|
|
11806
|
+
if (whole && typeof whole.label === 'string' && whole.label !== '') {
|
|
11807
|
+
return this.cnTranslate(whole.label)
|
|
11808
|
+
}
|
|
11809
|
+
const field = /^(.+)\[[a-z]+\]$/.exec(key)?.[1] ?? key
|
|
11810
|
+
const named = this.filterLabels && this.filterLabels[field]
|
|
11770
11811
|
if (named && typeof named.label === 'string' && named.label !== '') {
|
|
11771
11812
|
return this.cnTranslate(named.label)
|
|
11772
11813
|
}
|
|
11773
|
-
const prop = this.effectiveSchema?.properties?.[
|
|
11814
|
+
const prop = this.effectiveSchema?.properties?.[field]
|
|
11774
11815
|
if (prop && typeof prop.title === 'string' && prop.title !== '') {
|
|
11775
11816
|
return this.cnTranslate(prop.title)
|
|
11776
11817
|
}
|
|
11777
|
-
const
|
|
11778
|
-
if (
|
|
11779
|
-
return this.cnTranslate(
|
|
11818
|
+
const declared = declaredFilterFields({ sidebar: this.sidebar, sourceConfig: this.sourceConfig })[field]
|
|
11819
|
+
if (declared && typeof declared.title === 'string' && declared.title !== '') {
|
|
11820
|
+
return this.cnTranslate(declared.title)
|
|
11821
|
+
}
|
|
11822
|
+
const column = (Array.isArray(this.columns) ? this.columns : []).find((col) => col && typeof col === 'object' && col.key === field)
|
|
11823
|
+
if (column && typeof column.label === 'string' && column.label !== '') {
|
|
11824
|
+
return this.cnTranslate(column.label)
|
|
11780
11825
|
}
|
|
11781
|
-
return this.cnTranslate(
|
|
11826
|
+
return this.cnTranslate(field)
|
|
11782
11827
|
},
|
|
11783
11828
|
|
|
11784
11829
|
/**
|
|
@@ -12030,9 +12075,14 @@ export default {
|
|
|
12030
12075
|
}
|
|
12031
12076
|
const prop = this.effectiveSchema?.properties?.[key]
|
|
12032
12077
|
// The reader on a user filter is "me" (DqFilterInMenu "Behandelaar: ik").
|
|
12033
|
-
|
|
12078
|
+
const menuField = (Array.isArray(this.filterMenuFields) ? this.filterMenuFields : []).find((entry) => entry && entry.key === key)
|
|
12079
|
+
const userField = (prop && prop.referenceType === 'nextcloud-user') || (menuField && menuField.referenceType === 'nextcloud-user')
|
|
12080
|
+
if (userField && id === (getCurrentUser()?.uid ?? '')) {
|
|
12034
12081
|
return t('nextcloud-vue', 'me')
|
|
12035
12082
|
}
|
|
12083
|
+
if (userField) {
|
|
12084
|
+
return userDisplayName(id) || id
|
|
12085
|
+
}
|
|
12036
12086
|
if (prop && prop.referenceType === 'nextcloud-group') {
|
|
12037
12087
|
const name = groupDisplayName(id)
|
|
12038
12088
|
if (name === null) {
|
|
@@ -12701,6 +12751,32 @@ export default {
|
|
|
12701
12751
|
* @param {string} val The enum value to toggle.
|
|
12702
12752
|
* @return {void}
|
|
12703
12753
|
*/
|
|
12754
|
+
/**
|
|
12755
|
+
* The values a column-less filter menu entry offers: its own, else the
|
|
12756
|
+
* schema's enum or options, else the API's facet buckets, else the
|
|
12757
|
+
* named source's `facets()`.
|
|
12758
|
+
*
|
|
12759
|
+
* @param {{key: string, values?: Array}} entry The `filterMenuFields` entry.
|
|
12760
|
+
* @return {string[]} The values.
|
|
12761
|
+
* @spec openspec/changes/filter-menu-fields/specs/filter-menu-fields/spec.md#requirement-a-filter-menu-entry-needs-no-column
|
|
12762
|
+
*/
|
|
12763
|
+
filterMenuValuesOf(entry) {
|
|
12764
|
+
const valueOf = (bucket) => (bucket && typeof bucket === 'object' ? bucket.value : bucket)
|
|
12765
|
+
const def = this.effectiveSchema?.properties?.[entry.key] || {}
|
|
12766
|
+
const sourceFacets = this.isNamedSource && this.namedSource && typeof this.namedSource.facets === 'function'
|
|
12767
|
+
? (this.namedSource.facets() || {})[entry.key]
|
|
12768
|
+
: null
|
|
12769
|
+
const candidates = [
|
|
12770
|
+
entry.values,
|
|
12771
|
+
def.enum,
|
|
12772
|
+
Array.isArray(def.oneOf) ? def.oneOf.map((option) => option && option.const) : null,
|
|
12773
|
+
this.effectiveFacetData?.[entry.key]?.values,
|
|
12774
|
+
sourceFacets,
|
|
12775
|
+
]
|
|
12776
|
+
const found = candidates.find((list) => Array.isArray(list) && list.length > 0) || []
|
|
12777
|
+
return [...new Set(found.map(valueOf).filter((value) => value !== null && value !== undefined && value !== '').map(String))]
|
|
12778
|
+
},
|
|
12779
|
+
|
|
12704
12780
|
toggleFilter(key, val) {
|
|
12705
12781
|
const current = Array.isArray(this.effectiveActiveFilters[key]) ? this.effectiveActiveFilters[key] : []
|
|
12706
12782
|
const values = current.includes(val) ? current.filter((v) => v !== val) : [...current, val]
|
|
@@ -13450,7 +13526,7 @@ export default {
|
|
|
13450
13526
|
return !!this.$route && tab.to.name !== undefined && this.$route.name === tab.to.name
|
|
13451
13527
|
}
|
|
13452
13528
|
const path = this.$route && this.$route.path
|
|
13453
|
-
return !!path && String(path)
|
|
13529
|
+
return !!path && stripTrailingSlashes(String(path)) === stripTrailingSlashes(String(tab.to))
|
|
13454
13530
|
},
|
|
13455
13531
|
|
|
13456
13532
|
/**
|
|
@@ -187,6 +187,7 @@
|
|
|
187
187
|
<script>
|
|
188
188
|
import { translate as t } from '@nextcloud/l10n'
|
|
189
189
|
import CnIconBrowser from '../CnIconBrowser/CnIconBrowser.vue'
|
|
190
|
+
import { isPrototypeKey } from '../../utils/prototypeKeys.js'
|
|
190
191
|
|
|
191
192
|
const VALID_LAYOUTS = Object.freeze(['card', 'inline', 'icon-only'])
|
|
192
193
|
const VALID_SIZES = Object.freeze(['small', 'medium', 'large'])
|
|
@@ -488,7 +489,7 @@ export default {
|
|
|
488
489
|
return
|
|
489
490
|
}
|
|
490
491
|
const link = section.links[linkIndex]
|
|
491
|
-
if (!link) {
|
|
492
|
+
if (!link || isPrototypeKey(field)) {
|
|
492
493
|
return
|
|
493
494
|
}
|
|
494
495
|
link[field] = value
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
<script>
|
|
61
61
|
import { translate as t } from '@nextcloud/l10n'
|
|
62
62
|
import { cnRenderMarkdown } from '../../composables/cnRenderMarkdown.js'
|
|
63
|
+
import { guardedToastUiEditorClass } from '../../utils/toastUiRawHtmlGuard.js'
|
|
63
64
|
import { toastUiSanitizer } from '../../utils/toastUiSanitizer.js'
|
|
64
65
|
|
|
65
66
|
/**
|
|
@@ -394,7 +395,11 @@ export default {
|
|
|
394
395
|
if (!el) {
|
|
395
396
|
return
|
|
396
397
|
}
|
|
397
|
-
|
|
398
|
+
// customHTMLSanitizer does not reach Toast UI's raw HTML
|
|
399
|
+
// converters, paste or setHTML; the guarded class routes those
|
|
400
|
+
// through DOMPurify 3 as well (see utils/toastUiRawHtmlGuard.js).
|
|
401
|
+
const GuardedEditor = guardedToastUiEditorClass(Editor)
|
|
402
|
+
this.toastEditor = new GuardedEditor({
|
|
398
403
|
el,
|
|
399
404
|
...this.wysiwygOptions,
|
|
400
405
|
initialValue: this.localValue,
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
import { routeHref } from '../../utils/actionLink.js'
|
|
22
22
|
import { safeHref } from '../../utils/safeHref.js'
|
|
23
|
+
import { stripTrailingSlashes } from '../../utils/trailingSlashes.js'
|
|
23
24
|
|
|
24
25
|
/**
|
|
25
26
|
* Whether a URL string should be considered external (http/https).
|
|
@@ -53,7 +54,7 @@ export function isRouterPath(url) {
|
|
|
53
54
|
*/
|
|
54
55
|
export function routerBase(router) {
|
|
55
56
|
const base = router?.options?.history?.base
|
|
56
|
-
return typeof base === 'string' ? base
|
|
57
|
+
return typeof base === 'string' ? stripTrailingSlashes(base) : ''
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
/**
|
|
@@ -903,7 +903,7 @@ export default {
|
|
|
903
903
|
// `secondary` (a second, muted line under the cell) rides
|
|
904
904
|
// along too: the table draws it, and dropping it here took the
|
|
905
905
|
// list rows' second line away (zuiddrecht-pixel-gaps-3).
|
|
906
|
-
for (const k of ['format', 'widget', 'widgetProps', 'formatter', 'formatterOptions', 'align', 'width', 'type', 'enum', 'enumLabels', 'sortable', 'secondary', 'colorMap', 'grow', 'cellClass', 'emptyValue', 'emptyValueBy', 'emptyLabel', 'firstOf', 'secondaryLabels', 'secondaryRefs']) {
|
|
906
|
+
for (const k of ['format', 'widget', 'widgetProps', 'formatter', 'formatterOptions', 'align', 'width', 'type', 'enum', 'enumLabels', 'sortable', 'secondary', 'colorMap', 'grow', 'cellClass', 'filterable', 'filterField', 'emptyValue', 'emptyValueBy', 'emptyLabel', 'firstOf', 'secondaryLabels', 'secondaryRefs']) {
|
|
907
907
|
if (c[k] !== undefined) {
|
|
908
908
|
out[k] = c[k]
|
|
909
909
|
}
|
|
@@ -89,6 +89,7 @@ import CnFieldPicker from '../CnFieldPicker/CnFieldPicker.vue'
|
|
|
89
89
|
import CnFilterRowsEditor from '../CnFilterRowsEditor/CnFilterRowsEditor.vue'
|
|
90
90
|
import CnRegisterSchemaSelect from '../CnRegisterSchemaSelect/CnRegisterSchemaSelect.vue'
|
|
91
91
|
import { fetchSchemaProperties } from '../../utils/fetchSchemaProperties.js'
|
|
92
|
+
import { isPrototypeKey } from '../../utils/prototypeKeys.js'
|
|
92
93
|
import { filterToRows, rowsToFilter } from '../CnFilterRowsEditor/filterRows.js'
|
|
93
94
|
|
|
94
95
|
const DEFAULT_CONTENT = Object.freeze({
|
|
@@ -302,6 +303,9 @@ export default {
|
|
|
302
303
|
* @return {void}
|
|
303
304
|
*/
|
|
304
305
|
updateColumn(i, cell, value) {
|
|
306
|
+
if (isPrototypeKey(cell)) {
|
|
307
|
+
return
|
|
308
|
+
}
|
|
305
309
|
const col = this.columns[i]
|
|
306
310
|
if (cell === 'key') {
|
|
307
311
|
// Auto-fill the header label from the property key when the user
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
<template>
|
|
7
7
|
<div class="cn-object-parties" :class="{ 'cn-object-parties--board': isBoard }" data-testid="cn-object-parties">
|
|
8
|
-
<div v-if="canAdd" class="cn-object-parties__manage">
|
|
8
|
+
<div v-if="canAdd && !addInTitle" class="cn-object-parties__manage">
|
|
9
9
|
<NcButton data-testid="cn-object-parties-add" @click="adding = true">
|
|
10
10
|
<template #icon>
|
|
11
11
|
<Plus :size="20" />
|
|
@@ -300,13 +300,15 @@ function defaultLabels() {
|
|
|
300
300
|
*
|
|
301
301
|
* `manage` lets a reader change the parties through OpenRegister's party
|
|
302
302
|
* API, which asks the record's update right on every write: `add` (`{ label?,
|
|
303
|
-
* dialogTitle?, kind?, sources, create?, primary?, confirmLabel? }`) opens a
|
|
303
|
+
* dialogTitle?, kind?, sources, create?, primary?, confirmLabel?, placement? }`) opens a
|
|
304
304
|
* dialog to pick somebody known or describe somebody new (`create: {
|
|
305
305
|
* register, schema, label?, fields, compose? }`, see `newPartyRecord`), choose
|
|
306
306
|
* a role and optionally make them the primary party; `remove` (`{ title?,
|
|
307
307
|
* message?, confirmLabel? }`, `{name}` and `{role}` in the message) takes a
|
|
308
308
|
* party off in one role. Both are hidden when OpenRegister says the reader
|
|
309
|
-
* may not update the schema; a refusal is shown, never swallowed.
|
|
309
|
+
* may not update the schema; a refusal is shown, never swallowed. With
|
|
310
|
+
* `add.placement: "title"` the add button is reported to the card's title
|
|
311
|
+
* row (the `header` event) instead of drawn above the parties.
|
|
310
312
|
*
|
|
311
313
|
* `presentation: "primary"` draws only the primary party, as a side card
|
|
312
314
|
* does: initials, name and role label, its correspondence e-mail, and
|
|
@@ -368,6 +370,8 @@ export default {
|
|
|
368
370
|
},
|
|
369
371
|
},
|
|
370
372
|
|
|
373
|
+
emits: ['header'],
|
|
374
|
+
|
|
371
375
|
data() {
|
|
372
376
|
uid += 1
|
|
373
377
|
return {
|
|
@@ -409,6 +413,27 @@ export default {
|
|
|
409
413
|
return Boolean(this.manage.add) && this.mayUpdate && !this.isPrimaryPresentation && !this.loading && !this.failed
|
|
410
414
|
},
|
|
411
415
|
|
|
416
|
+
/** @return {boolean} Whether the add button goes to the card's title row. */
|
|
417
|
+
addInTitle() {
|
|
418
|
+
return this.manage.add?.placement === 'title'
|
|
419
|
+
},
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* The title-row actions: the add button when it is placed there.
|
|
423
|
+
*
|
|
424
|
+
* @spec openspec/changes/parties-add-in-title-row/specs/record-widgets/spec.md#requirement-a-parties-card-can-put-its-add-button-in-the-title-row
|
|
425
|
+
* @return {Array<object>} The actions.
|
|
426
|
+
*/
|
|
427
|
+
titleActions() {
|
|
428
|
+
if (!(this.addInTitle && this.canAdd)) {
|
|
429
|
+
return []
|
|
430
|
+
}
|
|
431
|
+
const run = () => {
|
|
432
|
+
this.adding = true
|
|
433
|
+
}
|
|
434
|
+
return [{ key: 'add', label: this.manageWord('add', 'label', t('nextcloud-vue', 'Add a party')), icon: 'Plus', variant: 'secondary', run }]
|
|
435
|
+
},
|
|
436
|
+
|
|
412
437
|
/** @return {boolean} Whether each party offers its remove button. */
|
|
413
438
|
canRemove() {
|
|
414
439
|
return Boolean(this.manage.remove) && this.mayUpdate && !this.isPrimaryPresentation
|
|
@@ -547,6 +572,18 @@ export default {
|
|
|
547
572
|
},
|
|
548
573
|
|
|
549
574
|
watch: {
|
|
575
|
+
titleActions: {
|
|
576
|
+
immediate: true,
|
|
577
|
+
handler(actions) {
|
|
578
|
+
if (this.addInTitle) {
|
|
579
|
+
/**
|
|
580
|
+
* @event header The card's title-row actions, `{ actions }`, for the host to draw.
|
|
581
|
+
*/
|
|
582
|
+
this.$emit('header', { actions })
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
},
|
|
586
|
+
|
|
550
587
|
recordKey: {
|
|
551
588
|
immediate: true,
|
|
552
589
|
handler() {
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
import { translate as t } from '@nextcloud/l10n'
|
|
56
56
|
import draggable from 'vuedraggable'
|
|
57
57
|
import CnPageTreeRow from './CnPageTreeRow.vue'
|
|
58
|
+
import { stripTrailingSlashes } from '../../utils/trailingSlashes.js'
|
|
58
59
|
|
|
59
60
|
// Stable per-page-object render keys, independent of the mutable `id`. Keyed by
|
|
60
61
|
// the page ref itself (a WeakMap, so removed pages are GC'd) so a slug rename —
|
|
@@ -317,7 +318,7 @@ export default {
|
|
|
317
318
|
* @return {void}
|
|
318
319
|
*/
|
|
319
320
|
addChild(node) {
|
|
320
|
-
const base = String(node.ref.route || '')
|
|
321
|
+
const base = stripTrailingSlashes(String(node.ref.route || ''))
|
|
321
322
|
const ref = { id: this.nextId(), parent: node.ref.id, type: 'detail', route: `${base}/:id`, title: '', config: {} }
|
|
322
323
|
node.children.push({ ref, children: [] })
|
|
323
324
|
this.flatten()
|
|
@@ -462,7 +462,16 @@ export default {
|
|
|
462
462
|
* @return {void}
|
|
463
463
|
*/
|
|
464
464
|
commitSlug() {
|
|
465
|
-
const
|
|
465
|
+
const dashed = String(this.slugDraft || '').trim().toLowerCase().replace(/[^a-z0-9-]+/g, '-')
|
|
466
|
+
let start = 0
|
|
467
|
+
let end = dashed.length
|
|
468
|
+
while (start < end && dashed[start] === '-') {
|
|
469
|
+
start++
|
|
470
|
+
}
|
|
471
|
+
while (end > start && dashed[end - 1] === '-') {
|
|
472
|
+
end--
|
|
473
|
+
}
|
|
474
|
+
const next = dashed.slice(start, end)
|
|
466
475
|
if (!next || next === this.page.id) {
|
|
467
476
|
this.slugDraft = this.page.id
|
|
468
477
|
return
|
|
@@ -612,7 +612,7 @@ import { isObjectRowsSpec, objectRowsOf } from '../../utils/objectRows.js'
|
|
|
612
612
|
import { pageFilter, pageSort } from '../../utils/pageControls.js'
|
|
613
613
|
import { readPath } from '../../utils/readPath.js'
|
|
614
614
|
import { dropOptionalUnresolved, hasUnresolvedTokens, resolveDeepTokens, resolveFilterTokens } from '../../utils/resolveFilterTokens.js'
|
|
615
|
-
import { fetchRowAggregate, isRowAggregate } from '../../utils/rowAggregate.js'
|
|
615
|
+
import { cellsOf, fetchRowAggregate, isRowAggregate } from '../../utils/rowAggregate.js'
|
|
616
616
|
import { evaluateVisibleWhen, evaluateVisibleWhenLocal } from '../../utils/visibleWhen.js'
|
|
617
617
|
|
|
618
618
|
const PAGE_REFRESH_CHANNEL = 'cn:page:refresh'
|
|
@@ -2304,7 +2304,7 @@ export default {
|
|
|
2304
2304
|
this.aggregateValues = {}
|
|
2305
2305
|
return
|
|
2306
2306
|
}
|
|
2307
|
-
const next =
|
|
2307
|
+
const next = new Map()
|
|
2308
2308
|
const jobs = []
|
|
2309
2309
|
for (const raw of this.rows.slice(0, this.limit)) {
|
|
2310
2310
|
const row = scalarRow(raw)
|
|
@@ -2312,18 +2312,18 @@ export default {
|
|
|
2312
2312
|
if (!rowId) {
|
|
2313
2313
|
continue
|
|
2314
2314
|
}
|
|
2315
|
-
|
|
2315
|
+
const figures = cellsOf(next, rowId)
|
|
2316
2316
|
for (const [key, agg] of entries) {
|
|
2317
2317
|
jobs.push(fetchRowAggregate(agg, row)
|
|
2318
2318
|
.then((value) => {
|
|
2319
|
-
|
|
2319
|
+
figures[key] = this.aggregateText(agg, value)
|
|
2320
2320
|
})
|
|
2321
2321
|
.catch(() => {}))
|
|
2322
2322
|
}
|
|
2323
2323
|
}
|
|
2324
2324
|
await Promise.all(jobs)
|
|
2325
2325
|
if (id === this.aggregateRequestId) {
|
|
2326
|
-
this.aggregateValues = next
|
|
2326
|
+
this.aggregateValues = Object.fromEntries(next)
|
|
2327
2327
|
}
|
|
2328
2328
|
},
|
|
2329
2329
|
|
|
@@ -536,6 +536,7 @@ import Close from 'vue-material-design-icons/Close.vue'
|
|
|
536
536
|
import ContentCopy from 'vue-material-design-icons/ContentCopy.vue'
|
|
537
537
|
import Plus from 'vue-material-design-icons/Plus.vue'
|
|
538
538
|
import TrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'
|
|
539
|
+
import { isPrototypeKey } from '../../utils/prototypeKeys.js'
|
|
539
540
|
|
|
540
541
|
/**
|
|
541
542
|
* CnSchemaPropertyActions — NcActions dropdown for a single schema property.
|
|
@@ -685,6 +686,9 @@ export default {
|
|
|
685
686
|
// --- Property setting updates ---
|
|
686
687
|
|
|
687
688
|
updatePropertySetting(key, setting, value) {
|
|
689
|
+
if (isPrototypeKey(key) || isPrototypeKey(setting)) {
|
|
690
|
+
return
|
|
691
|
+
}
|
|
688
692
|
if (this.schema.properties[key]) {
|
|
689
693
|
const settingValue = typeof value === 'object' && value?.id ? value.id : value
|
|
690
694
|
this.schema.properties[key][setting] = settingValue
|
|
@@ -693,6 +697,9 @@ export default {
|
|
|
693
697
|
},
|
|
694
698
|
|
|
695
699
|
updatePropertyRequired(key, isRequired) {
|
|
700
|
+
if (isPrototypeKey(key)) {
|
|
701
|
+
return
|
|
702
|
+
}
|
|
696
703
|
if (this.schema.properties[key]) {
|
|
697
704
|
if (isRequired) {
|
|
698
705
|
this.schema.properties[key].required = true
|
|
@@ -1322,6 +1329,9 @@ export default {
|
|
|
1322
1329
|
},
|
|
1323
1330
|
|
|
1324
1331
|
updateFilePropertySetting(key, setting, value) {
|
|
1332
|
+
if (isPrototypeKey(key) || isPrototypeKey(setting)) {
|
|
1333
|
+
return
|
|
1334
|
+
}
|
|
1325
1335
|
if (this.schema.properties[key]) {
|
|
1326
1336
|
if (this.schema.properties[key].type === 'file') {
|
|
1327
1337
|
this.schema.properties[key][setting] = value
|
|
@@ -1332,6 +1342,9 @@ export default {
|
|
|
1332
1342
|
},
|
|
1333
1343
|
|
|
1334
1344
|
updateFileProperty(key, setting, value) {
|
|
1345
|
+
if (isPrototypeKey(key) || isPrototypeKey(setting)) {
|
|
1346
|
+
return
|
|
1347
|
+
}
|
|
1335
1348
|
if (this.schema.properties[key]) {
|
|
1336
1349
|
if (['allowedTypes', 'allowedTags', 'autoTags'].includes(setting)) {
|
|
1337
1350
|
const arrayValue = value ? value.split(',').map((item) => item.trim()).filter((item) => item !== '') : []
|
|
@@ -1371,6 +1384,9 @@ export default {
|
|
|
1371
1384
|
},
|
|
1372
1385
|
|
|
1373
1386
|
updateFilePropertyTags(key, setting, selectedOptions) {
|
|
1387
|
+
if (isPrototypeKey(key) || isPrototypeKey(setting)) {
|
|
1388
|
+
return
|
|
1389
|
+
}
|
|
1374
1390
|
if (this.schema.properties[key]) {
|
|
1375
1391
|
const tags = selectedOptions ? selectedOptions.map((option) => option.id || option) : []
|
|
1376
1392
|
|
|
@@ -1396,6 +1412,9 @@ export default {
|
|
|
1396
1412
|
},
|
|
1397
1413
|
|
|
1398
1414
|
updatePropertyTableSetting(key, setting, value) {
|
|
1415
|
+
if (isPrototypeKey(key) || isPrototypeKey(setting)) {
|
|
1416
|
+
return
|
|
1417
|
+
}
|
|
1399
1418
|
if (!this.schema.properties[key]) {
|
|
1400
1419
|
return
|
|
1401
1420
|
}
|
|
@@ -1551,6 +1570,9 @@ export default {
|
|
|
1551
1570
|
},
|
|
1552
1571
|
|
|
1553
1572
|
updatePropertyGroupPermission(key, groupId, action, hasPermission) {
|
|
1573
|
+
if (isPrototypeKey(key) || isPrototypeKey(action)) {
|
|
1574
|
+
return
|
|
1575
|
+
}
|
|
1554
1576
|
if (!this.schema.properties[key]) {
|
|
1555
1577
|
return
|
|
1556
1578
|
}
|
|
@@ -191,6 +191,7 @@ import { translate as t } from '@nextcloud/l10n'
|
|
|
191
191
|
import { NcSelect, NcTextField } from '@nextcloud/vue'
|
|
192
192
|
import CnFilterRowsEditor from '../CnFilterRowsEditor/CnFilterRowsEditor.vue'
|
|
193
193
|
import CnRegisterSchemaSelect from '../CnRegisterSchemaSelect/CnRegisterSchemaSelect.vue'
|
|
194
|
+
import { isPrototypeKey } from '../../utils/prototypeKeys.js'
|
|
194
195
|
import { filterToRows, rowsToFilter } from '../CnFilterRowsEditor/filterRows.js'
|
|
195
196
|
|
|
196
197
|
/**
|
|
@@ -385,6 +386,9 @@ export default {
|
|
|
385
386
|
*/
|
|
386
387
|
setPath(path, value) {
|
|
387
388
|
const keys = path.split('.')
|
|
389
|
+
if (keys.some(isPrototypeKey)) {
|
|
390
|
+
return
|
|
391
|
+
}
|
|
388
392
|
const last = keys.pop()
|
|
389
393
|
let target = this.draft
|
|
390
394
|
for (const key of keys) {
|
|
@@ -789,7 +789,7 @@ export default {
|
|
|
789
789
|
return null
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
|
-
const esc = (v) => (window.CSS && CSS.escape ? CSS.escape(v) : String(v).replace(/"/g, '
|
|
792
|
+
const esc = (v) => (window.CSS && CSS.escape ? CSS.escape(v) : String(v).replace(/["\\]/g, '\\$&'))
|
|
793
793
|
if (tgt.kind === 'selector' && tgt.selector) {
|
|
794
794
|
return q(tgt.selector)
|
|
795
795
|
}
|
package/src/components/index.js
CHANGED
|
@@ -276,6 +276,7 @@ export { CnSettingsFormWidget } from './CnSettingsFormWidget/index.js'
|
|
|
276
276
|
export { CnSwitchRowsWidget } from './CnSwitchRowsWidget/index.js'
|
|
277
277
|
export { CnRadioCardsWidget } from './CnRadioCardsWidget/index.js'
|
|
278
278
|
export { CnChipsFieldWidget } from './CnChipsFieldWidget/index.js'
|
|
279
|
+
export { CnChipListManager } from './CnChipListManager/index.js'
|
|
279
280
|
export { CnToggleTableWidget } from './CnToggleTableWidget/index.js'
|
|
280
281
|
export { CnChoicePickerWidget } from './CnChoicePickerWidget/index.js'
|
|
281
282
|
export { CnRecordListWidget } from './CnRecordListWidget/index.js'
|
|
@@ -114,7 +114,7 @@ export function flowTriggerCell(flow, catalog = []) {
|
|
|
114
114
|
*/
|
|
115
115
|
function flowsSource() {
|
|
116
116
|
const store = useFlowStore()
|
|
117
|
-
const view = reactive({ state: 'all', runsRoute: '/flow-runs', flowsRoute: '/flows' })
|
|
117
|
+
const view = reactive({ state: 'all', owners: [], runsRoute: '/flow-runs', flowsRoute: '/flows' })
|
|
118
118
|
const statuses = flowRunStatuses()
|
|
119
119
|
|
|
120
120
|
/**
|
|
@@ -175,6 +175,7 @@ function flowsSource() {
|
|
|
175
175
|
*/
|
|
176
176
|
load: async (config) => {
|
|
177
177
|
view.state = filters[config?.state] ? config.state : 'all'
|
|
178
|
+
view.owners = [].concat(config?.owner ?? []).map(String).filter((owner) => owner !== '')
|
|
178
179
|
view.runsRoute = config?.runsRoute || '/flow-runs'
|
|
179
180
|
view.flowsRoute = config?.flowsRoute || '/flows'
|
|
180
181
|
await store.load({ app: config?.app })
|
|
@@ -184,7 +185,34 @@ function flowsSource() {
|
|
|
184
185
|
/**
|
|
185
186
|
* @return {Array<object>} The rows of the active tab.
|
|
186
187
|
*/
|
|
187
|
-
rows: () => allRows()
|
|
188
|
+
rows: () => allRows()
|
|
189
|
+
.filter(filters[view.state] || filters.all)
|
|
190
|
+
.filter((row) => view.owners.length === 0 || view.owners.includes(String(row.owner ?? ''))),
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The owner filter (a page's `filterMenuFields` entry on `owner`)
|
|
194
|
+
* reaches `load` as `owner`.
|
|
195
|
+
*/
|
|
196
|
+
searchFields: {
|
|
197
|
+
owner: { param: 'owner' },
|
|
198
|
+
},
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The owners of the loaded flows with how many each owns, for the
|
|
202
|
+
* owner filter's values.
|
|
203
|
+
*
|
|
204
|
+
* @return {{owner: Array<{value: string, count: number}>}} The buckets.
|
|
205
|
+
*/
|
|
206
|
+
facets: () => {
|
|
207
|
+
const counts = new Map()
|
|
208
|
+
for (const flow of (store.flows || [])) {
|
|
209
|
+
const owner = String(flow?.owner ?? '')
|
|
210
|
+
if (owner !== '') {
|
|
211
|
+
counts.set(owner, (counts.get(owner) || 0) + 1)
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
return { owner: [...counts].map(([value, count]) => ({ value, count })) }
|
|
215
|
+
},
|
|
188
216
|
|
|
189
217
|
/**
|
|
190
218
|
* @return {boolean} Whether a load is in flight.
|
package/src/css/dialog.css
CHANGED
|
@@ -744,6 +744,13 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .modal-mask {
|
|
|
744
744
|
background: var(--color-primary-element) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9,20.42L2.79,14.21L5.62,11.38L9,14.77L18.88,4.88L21.71,7.71L9,20.42Z'/%3E%3C/svg%3E") center / 14px no-repeat;
|
|
745
745
|
}
|
|
746
746
|
|
|
747
|
+
/* The access purpose's chosen row is filled, as DqZaakDoel draws "Behandeling
|
|
748
|
+
van de zaak": the ground Nextcloud gives a checked option only on hover or
|
|
749
|
+
focus. */
|
|
750
|
+
.cn-dialog-board .cn-access-purpose__choices .checkbox-radio-switch--checked:not(.checkbox-radio-switch--disabled) .checkbox-content {
|
|
751
|
+
background-color: var(--color-primary-element-light-hover);
|
|
752
|
+
}
|
|
753
|
+
|
|
747
754
|
/* The duplicate warning as DqNieuweZaakDubbel draws it. The note is a warning
|
|
748
755
|
line, 12px 14px in at radius 8 on the status warning ground, 15px bold in
|
|
749
756
|
the warning ink with a 20px icon 10px before it; NcNoteCard paints its
|