@conduction/nextcloud-vue 2.111.0 → 2.112.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/CnActionDialog/CnActionDialog.vue.js +1 -1
- package/dist/esm/components/CnActionDialog/CnActionDialog.vue2.js +3 -2
- package/dist/esm/components/CnActionDialog/CnActionDialog.vue2.js.map +1 -1
- package/dist/esm/components/CnActionDialog/CnActionDialog.vue3.js +4 -2
- package/dist/esm/components/CnActionDialog/CnActionDialog.vue3.js.map +1 -1
- package/dist/esm/components/CnAssignDialog/CnAssignDialog.vue.js +1 -1
- package/dist/esm/components/CnAssignDialog/CnAssignDialog.vue2.js +3 -2
- package/dist/esm/components/CnAssignDialog/CnAssignDialog.vue2.js.map +1 -1
- package/dist/esm/components/CnAssignDialog/CnAssignDialog.vue3.js +2 -1
- package/dist/esm/components/CnAssignDialog/CnAssignDialog.vue3.js.map +1 -1
- package/dist/esm/components/CnBoardView/CnBoardView.vue.js +1 -1
- package/dist/esm/components/CnBoardView/CnBoardView.vue2.js +54 -5
- package/dist/esm/components/CnBoardView/CnBoardView.vue2.js.map +1 -1
- package/dist/esm/components/CnBoardView/CnBoardView.vue3.js +16 -2
- package/dist/esm/components/CnBoardView/CnBoardView.vue3.js.map +1 -1
- package/dist/esm/components/CnCardGrid/CnCardGrid.vue.js +1 -1
- package/dist/esm/components/CnCardGrid/CnCardGrid.vue2.js +10 -0
- package/dist/esm/components/CnCardGrid/CnCardGrid.vue2.js.map +1 -1
- package/dist/esm/components/CnCardGrid/CnCardGrid.vue3.js +2 -1
- package/dist/esm/components/CnCardGrid/CnCardGrid.vue3.js.map +1 -1
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue.js +1 -1
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue2.js +22 -2
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue2.js.map +1 -1
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue3.js +17 -3
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue3.js.map +1 -1
- package/dist/esm/components/CnChartWidget/CnChartWidget.vue.js +1 -1
- package/dist/esm/components/CnChartWidget/CnChartWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnChartWidget/CnChartWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +32 -8
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js +31 -3
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js.map +1 -1
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue.js +1 -1
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue2.js +48 -11
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue2.js.map +1 -1
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue3.js +160 -97
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue3.js.map +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue.js +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js.map +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js +2 -2
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +166 -2
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +19 -4
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
- package/dist/esm/components/CnNcDashboardList/CnNcDashboardList.vue.js +1 -1
- package/dist/esm/components/CnNcDashboardList/CnNcDashboardList.vue2.js +21 -1
- package/dist/esm/components/CnNcDashboardList/CnNcDashboardList.vue2.js.map +1 -1
- package/dist/esm/components/CnNcDashboardList/CnNcDashboardList.vue3.js.map +1 -1
- package/dist/esm/components/CnObjectCard/CnObjectCard.vue.js +1 -1
- package/dist/esm/components/CnObjectCard/CnObjectCard.vue2.js +36 -2
- package/dist/esm/components/CnObjectCard/CnObjectCard.vue2.js.map +1 -1
- package/dist/esm/components/CnObjectCard/CnObjectCard.vue3.js +44 -5
- package/dist/esm/components/CnObjectCard/CnObjectCard.vue3.js.map +1 -1
- package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue.js +1 -0
- package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue.js.map +1 -1
- package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue2.js +22 -2
- package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue2.js.map +1 -1
- package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue3.js +36 -16
- package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue3.js.map +1 -1
- package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue.js +1 -1
- package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue2.js.map +1 -1
- package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue3.js.map +1 -1
- package/dist/esm/composables/useRefLabels.js +26 -6
- package/dist/esm/composables/useRefLabels.js.map +1 -1
- package/dist/esm/integrations/registry.js +4 -0
- package/dist/esm/integrations/registry.js.map +1 -1
- package/dist/esm/l10n/en.json.js +3 -1
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +3 -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 +533 -273
- package/dist/esm/store/plugins/liveUpdates.js +3 -1
- package/dist/esm/store/plugins/liveUpdates.js.map +1 -1
- package/dist/esm/store/plugins/logs.js +2 -1
- package/dist/esm/store/plugins/logs.js.map +1 -1
- package/dist/esm/utils/detailActionModel.js +28 -1
- package/dist/esm/utils/detailActionModel.js.map +1 -1
- package/dist/esm/utils/fillTemplate.js +13 -5
- package/dist/esm/utils/fillTemplate.js.map +1 -1
- package/dist/esm/utils/headerFieldChips.js +21 -2
- package/dist/esm/utils/headerFieldChips.js.map +1 -1
- package/dist/esm/utils/mapList.js +26 -11
- package/dist/esm/utils/mapList.js.map +1 -1
- package/dist/esm/utils/savedViewMenu.js +12 -5
- package/dist/esm/utils/savedViewMenu.js.map +1 -1
- package/dist/esm/utils/validateManifestV2.compiled.js +3 -3
- package/dist/esm/utils/validateManifestV2.compiled.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +2562 -1886
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +533 -273
- package/l10n/en.json +3 -1
- package/l10n/nl.json +3 -1
- package/package.json +1 -1
- package/src/components/CnActionDialog/CnActionDialog.vue +32 -9
- package/src/components/CnAssignDialog/CnAssignDialog.vue +4 -2
- package/src/components/CnBoardView/CnBoardView.vue +58 -5
- package/src/components/CnCardGrid/CnCardGrid.md +1 -0
- package/src/components/CnCardGrid/CnCardGrid.vue +11 -0
- package/src/components/CnCellRenderer/CnCellRenderer.vue +27 -3
- package/src/components/CnChartWidget/CnChartWidget.vue +6 -0
- package/src/components/CnDetailPage/CnDetailPage.vue +42 -9
- package/src/components/CnDetailWidgetHost/CnDetailWidgetHost.vue +100 -5
- package/src/components/CnFormDialog/CnFormDialog.vue +1 -1
- package/src/components/CnIndexPage/CnIndexPage.vue +174 -4
- package/src/components/CnNcDashboardList/CnNcDashboardList.vue +21 -1
- package/src/components/CnObjectCard/CnObjectCard.md +1 -0
- package/src/components/CnObjectCard/CnObjectCard.vue +51 -5
- package/src/components/CnPartyPicker/CnPartyPicker.vue +62 -16
- package/src/components/CnSearchSelect/CnSearchSelect.vue +8 -0
- package/src/composables/useRefLabels.js +25 -5
- package/src/css/dialog.css +53 -3
- package/src/css/index-page.css +26 -1
- package/src/css/look-board-detail.css +36 -15
- package/src/css/look-board-index.css +69 -3
- package/src/css/look-board.css +30 -2
- package/src/integrations/registry.js +4 -0
- package/src/schemas/app-manifest-v2.schema.json +11 -5
- package/src/store/plugins/liveUpdates.js +3 -1
- package/src/store/plugins/logs.js +2 -1
- package/src/utils/detailActionModel.js +27 -0
- package/src/utils/fillTemplate.js +13 -5
- package/src/utils/headerFieldChips.js +21 -2
- package/src/utils/mapList.js +26 -11
- package/src/utils/savedViewMenu.js +12 -5
- package/src/utils/validateManifestV2.compiled.js +3 -3
|
@@ -47,7 +47,7 @@ import { pageViews } from '../../mixins/pageViews.js';
|
|
|
47
47
|
import { isAppInstalled } from '../../utils/appInstalled.js';
|
|
48
48
|
import { compactLayoutRows } from '../../utils/dashboardPlacement.js';
|
|
49
49
|
import { defaultDetailGrid } from '../../utils/defaultDetailGrid.js';
|
|
50
|
-
import { stageOf, normalisePinnedAction, stageEntry, MAX_QUICK_ACTIONS, groupMenuEntries, resolveNextStep, pillCountSource, resolveCountPill, resolvePill } from '../../utils/detailActionModel.js';
|
|
50
|
+
import { stageOf, normalisePinnedAction, stageEntry, MAX_QUICK_ACTIONS, groupMenuEntries, resolveNextStep, pillCountSource, resolveCountPill, resolvePill, pillLook } from '../../utils/detailActionModel.js';
|
|
51
51
|
import { visibilityContextRefs, widgetConditionData, fetchVisibilityRows, detailWidgetVisible } from '../../utils/detailWidgetVisibility.js';
|
|
52
52
|
import { reportBindingProblems } from '../../utils/diagnostics.js';
|
|
53
53
|
import { fetchListTotal } from '../../utils/fetchFilterCounts.js';
|
|
@@ -1273,9 +1273,12 @@ var script = {
|
|
|
1273
1273
|
* `field`: `text`, a constant ("Inwoner"), or `countFrom`
|
|
1274
1274
|
* (`{ register, schema, filter? }`) with `countLabel` (`{ one, other }`
|
|
1275
1275
|
* with `{count}`), a count of a related list ("1 lopende zaak") that
|
|
1276
|
-
* shows nothing at 0.
|
|
1276
|
+
* shows nothing at 0. With `resolve: { register, schema, labelField?,
|
|
1277
|
+
* colorField?, iconField? }` the pill shows the referenced record's
|
|
1278
|
+
* label, takes its tone from that record's colour (an NL Design System
|
|
1279
|
+
* hue such as `red`, or a badge role) and shows its icon.
|
|
1277
1280
|
*
|
|
1278
|
-
* @type {{field?: string, text?: string, countFrom?: object, countLabel?: object, colorMap?: object, labels?: object, variant?: string}|null}
|
|
1281
|
+
* @type {{field?: string, text?: string, countFrom?: object, countLabel?: object, colorMap?: object, labels?: object, variant?: string, resolve?: object}|null}
|
|
1279
1282
|
*/
|
|
1280
1283
|
typePill: {
|
|
1281
1284
|
type: Object,
|
|
@@ -1716,6 +1719,8 @@ var script = {
|
|
|
1716
1719
|
pillCountSeq: 0,
|
|
1717
1720
|
/** The labels of the records pills with `resolve` point at, by pill key. */
|
|
1718
1721
|
pillRefLabels: {},
|
|
1722
|
+
/** The colour and icon names read off the records pills with `resolve` point at, by pill key. */
|
|
1723
|
+
pillRefLooks: {},
|
|
1719
1724
|
/** Sequence of the last pill label lookup, so a late answer for another record is dropped. */
|
|
1720
1725
|
pillRefSeq: 0,
|
|
1721
1726
|
/** `register/schema/id` the read-state call was last made for, so it is sent once per load. */
|
|
@@ -2264,10 +2269,11 @@ var script = {
|
|
|
2264
2269
|
// `resolve`: the referenced record's label replaces the id, and
|
|
2265
2270
|
// keys the colour too ("Woo-verzoek", not a uuid).
|
|
2266
2271
|
const resolved = this.pillRefLabels[key];
|
|
2272
|
+
const look = pillLook(this.pillRefLooks[key]);
|
|
2267
2273
|
if (typeof resolved === 'string' && resolved !== '') {
|
|
2268
|
-
return { ...pill, key, label: this.effectiveTranslate(resolved), colorKey: resolved }
|
|
2274
|
+
return { ...pill, ...look, key, label: this.effectiveTranslate(resolved), colorKey: resolved }
|
|
2269
2275
|
}
|
|
2270
|
-
return { ...pill, key, label: this.effectiveTranslate(pill.label) }
|
|
2276
|
+
return { ...pill, ...look, key, label: this.effectiveTranslate(pill.label) }
|
|
2271
2277
|
})
|
|
2272
2278
|
.filter(Boolean)
|
|
2273
2279
|
},
|
|
@@ -2302,7 +2308,8 @@ var script = {
|
|
|
2302
2308
|
.filter(([, config]) => config && config.resolve && config.resolve.register && config.resolve.schema && typeof config.field === 'string')
|
|
2303
2309
|
.map(([key, config]) => {
|
|
2304
2310
|
const pill = resolvePill({ field: config.field }, this.resolvedObject);
|
|
2305
|
-
|
|
2311
|
+
const { register, schema, labelField, colorField, iconField } = config.resolve;
|
|
2312
|
+
return pill ? [key, register, schema, labelField || '', pill.colorKey, colorField || '', iconField || ''] : null
|
|
2306
2313
|
})
|
|
2307
2314
|
.filter(Boolean)
|
|
2308
2315
|
},
|
|
@@ -4116,6 +4123,7 @@ var script = {
|
|
|
4116
4123
|
const seq = ++this.pillRefSeq;
|
|
4117
4124
|
if (targets.length === 0) {
|
|
4118
4125
|
this.pillRefLabels = {};
|
|
4126
|
+
this.pillRefLooks = {};
|
|
4119
4127
|
return
|
|
4120
4128
|
}
|
|
4121
4129
|
if (!this._pillRefResolver) {
|
|
@@ -4128,14 +4136,30 @@ var script = {
|
|
|
4128
4136
|
});
|
|
4129
4137
|
}
|
|
4130
4138
|
const labels = {};
|
|
4131
|
-
|
|
4132
|
-
|
|
4139
|
+
const looks = {};
|
|
4140
|
+
const field = async (register, schema, id, name) => {
|
|
4141
|
+
if (!name) {
|
|
4142
|
+
return null
|
|
4143
|
+
}
|
|
4144
|
+
const found = await this._pillRefResolver.resolve(register, schema, [id], name, { strict: true }).catch(() => ({}));
|
|
4145
|
+
return found && typeof found[id] === 'string' ? found[id] : null
|
|
4146
|
+
};
|
|
4147
|
+
await Promise.all(targets.map(async ([key, register, schema, labelField, id, colorField, iconField]) => {
|
|
4148
|
+
const [found, color, icon] = await Promise.all([
|
|
4149
|
+
this._pillRefResolver.resolve(register, schema, [id], labelField).catch(() => ({})),
|
|
4150
|
+
field(register, schema, id, colorField),
|
|
4151
|
+
field(register, schema, id, iconField),
|
|
4152
|
+
]);
|
|
4133
4153
|
if (found && typeof found[id] === 'string') {
|
|
4134
4154
|
labels[key] = found[id];
|
|
4135
4155
|
}
|
|
4156
|
+
if (color || icon) {
|
|
4157
|
+
looks[key] = { color, icon };
|
|
4158
|
+
}
|
|
4136
4159
|
}));
|
|
4137
4160
|
if (seq === this.pillRefSeq) {
|
|
4138
4161
|
this.pillRefLabels = labels;
|
|
4162
|
+
this.pillRefLooks = looks;
|
|
4139
4163
|
}
|
|
4140
4164
|
},
|
|
4141
4165
|
|