@conduction/nextcloud-vue 2.115.0 → 2.116.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/CnActionButtons/CnActionButtons.vue.js +1 -1
- package/dist/esm/components/CnActionButtons/CnActionButtons.vue2.js +92 -0
- package/dist/esm/components/CnActionButtons/CnActionButtons.vue2.js.map +1 -1
- package/dist/esm/components/CnActionButtons/CnActionButtons.vue3.js +2 -2
- package/dist/esm/components/CnActionButtons/CnActionButtons.vue3.js.map +1 -1
- package/dist/esm/components/CnChecklistWidget/CnChecklistWidget.vue.js +9 -0
- package/dist/esm/components/CnChecklistWidget/CnChecklistWidget.vue.js.map +1 -0
- package/dist/esm/components/CnChecklistWidget/CnChecklistWidget.vue2.js +145 -0
- package/dist/esm/components/CnChecklistWidget/CnChecklistWidget.vue2.js.map +1 -0
- package/dist/esm/components/CnChecklistWidget/CnChecklistWidget.vue3.js +58 -0
- package/dist/esm/components/CnChecklistWidget/CnChecklistWidget.vue3.js.map +1 -0
- package/dist/esm/components/CnChecklistWidget/index.js +28 -0
- package/dist/esm/components/CnChecklistWidget/index.js.map +1 -0
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue.js +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js +25 -0
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js.map +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +376 -51
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js +364 -285
- 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 +11 -0
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue2.js.map +1 -1
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue3.js +6 -4
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue3.js.map +1 -1
- package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue.js +1 -1
- package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue2.js +48 -1
- package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue3.js +11 -2
- package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnMacrosWidget/CnMacrosWidget.vue.js +1 -1
- package/dist/esm/components/CnMacrosWidget/CnMacrosWidget.vue2.js +11 -3
- package/dist/esm/components/CnMacrosWidget/CnMacrosWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnMacrosWidget/CnMacrosWidget.vue3.js +8 -3
- package/dist/esm/components/CnMacrosWidget/CnMacrosWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnObjectListWidget/CnObjectListWidget.vue.js +1 -1
- package/dist/esm/components/CnObjectListWidget/CnObjectListWidget.vue2.js +55 -2
- 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/CnRecordListWidget/CnRecordListWidget.vue.js +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js +94 -4
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js +248 -239
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordNoteRows.vue.js +9 -0
- package/dist/esm/components/CnRecordListWidget/CnRecordNoteRows.vue.js.map +1 -0
- package/dist/esm/components/CnRecordListWidget/CnRecordNoteRows.vue2.js +282 -0
- package/dist/esm/components/CnRecordListWidget/CnRecordNoteRows.vue2.js.map +1 -0
- package/dist/esm/components/CnRecordListWidget/CnRecordNoteRows.vue3.js +202 -0
- package/dist/esm/components/CnRecordListWidget/CnRecordNoteRows.vue3.js.map +1 -0
- package/dist/esm/components/CnTabsWidget/CnTabsWidget.vue.js +1 -1
- package/dist/esm/components/CnTabsWidget/CnTabsWidget.vue2.js +10 -5
- package/dist/esm/components/CnTabsWidget/CnTabsWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnTabsWidget/CnTabsWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnWidgetGrid/registerDashboardWidgets.js +1 -0
- package/dist/esm/components/CnWidgetGrid/registerDashboardWidgets.js.map +1 -1
- package/dist/esm/composables/indexSources.js +64 -0
- package/dist/esm/composables/indexSources.js.map +1 -1
- package/dist/esm/composables/useTaskInboxStore.js +85 -0
- package/dist/esm/composables/useTaskInboxStore.js.map +1 -1
- package/dist/esm/dialogs/CnAccessPurposeDialog.vue.js +9 -0
- package/dist/esm/dialogs/CnAccessPurposeDialog.vue.js.map +1 -0
- package/dist/esm/dialogs/CnAccessPurposeDialog.vue2.js +107 -0
- package/dist/esm/dialogs/CnAccessPurposeDialog.vue2.js.map +1 -0
- package/dist/esm/dialogs/CnAccessPurposeDialog.vue3.js +110 -0
- package/dist/esm/dialogs/CnAccessPurposeDialog.vue3.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/l10n/en.json.js +19 -1
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +23 -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 +1054 -911
- package/dist/esm/utils/actionsDispatcher.js +10 -5
- package/dist/esm/utils/actionsDispatcher.js.map +1 -1
- package/dist/esm/utils/detailActionModel.js +6 -2
- package/dist/esm/utils/detailActionModel.js.map +1 -1
- package/dist/esm/utils/libraryWidgetKeys.js +1 -0
- package/dist/esm/utils/libraryWidgetKeys.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/esm/utils/widgetDispatch.js +1 -1
- package/dist/esm/utils/widgetDispatch.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +17078 -15224
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +1054 -911
- package/l10n/en.json +19 -1
- package/l10n/nl.json +23 -1
- package/package.json +1 -1
- package/src/components/CnActionButtons/CnActionButtons.vue +93 -1
- package/src/components/CnChecklistWidget/CnChecklistWidget.vue +206 -0
- package/src/components/CnChecklistWidget/index.js +27 -0
- package/src/components/CnDashboardPage/CnDashboardPage.vue +26 -1
- package/src/components/CnDetailPage/CnDetailPage.md +2 -0
- package/src/components/CnDetailPage/CnDetailPage.vue +377 -10
- package/src/components/CnDetailWidgetHost/CnDetailWidgetHost.vue +15 -2
- package/src/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue +59 -1
- package/src/components/CnMacrosWidget/CnMacrosWidget.vue +16 -6
- package/src/components/CnObjectListWidget/CnObjectListWidget.vue +55 -2
- package/src/components/CnRecordListWidget/CnRecordListWidget.vue +101 -3
- package/src/components/CnRecordListWidget/CnRecordNoteRows.vue +508 -0
- package/src/components/CnTabsWidget/CnTabsWidget.vue +10 -5
- package/src/components/CnWidgetGrid/registerDashboardWidgets.js +1 -0
- package/src/components/index.js +1 -0
- package/src/composables/indexSources.js +64 -0
- package/src/composables/useTaskInboxStore.js +85 -0
- package/src/dialogs/CnAccessPurposeDialog.vue +183 -0
- package/src/index.js +1 -0
- package/src/schemas/app-manifest-v2.schema.json +49 -3
- package/src/utils/actionsDispatcher.js +10 -5
- package/src/utils/detailActionModel.js +6 -2
- package/src/utils/libraryWidgetKeys.js +1 -0
- package/src/utils/validateManifestV2.compiled.js +3 -3
- package/src/utils/widgetDispatch.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, toDisplayString, createVNode, createElementVNode, Fragment, renderList, createCommentVNode, normalizeStyle,
|
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, toDisplayString, createVNode, createElementVNode, Fragment, renderList, createBlock, createCommentVNode, normalizeStyle, resolveDynamicComponent, mergeProps, withCtx, createTextVNode, toHandlers, createSlots } from 'vue';
|
|
2
2
|
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
key: 0,
|
|
@@ -21,7 +21,7 @@ const _hoisted_5 = {
|
|
|
21
21
|
"data-testid": "cn-record-list-table"
|
|
22
22
|
};
|
|
23
23
|
const _hoisted_6 = {
|
|
24
|
-
key:
|
|
24
|
+
key: 6,
|
|
25
25
|
class: "cn-record-list__list"
|
|
26
26
|
};
|
|
27
27
|
const _hoisted_7 = {
|
|
@@ -125,12 +125,12 @@ const _hoisted_32 = {
|
|
|
125
125
|
};
|
|
126
126
|
const _hoisted_33 = ["aria-label", "aria-valuenow", "aria-valuemax"];
|
|
127
127
|
const _hoisted_34 = {
|
|
128
|
-
key:
|
|
128
|
+
key: 7,
|
|
129
129
|
class: "cn-record-list__footnote",
|
|
130
130
|
"data-testid": "cn-record-list-footnote"
|
|
131
131
|
};
|
|
132
132
|
const _hoisted_35 = {
|
|
133
|
-
key:
|
|
133
|
+
key: 8,
|
|
134
134
|
class: "cn-record-list__footer",
|
|
135
135
|
"data-testid": "cn-record-list-footer"
|
|
136
136
|
};
|
|
@@ -139,6 +139,7 @@ const _hoisted_36 = ["id"];
|
|
|
139
139
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
140
140
|
const _component_NcLoadingIcon = resolveComponent("NcLoadingIcon");
|
|
141
141
|
const _component_CnIcon = resolveComponent("CnIcon");
|
|
142
|
+
const _component_CnRecordNoteRows = resolveComponent("CnRecordNoteRows");
|
|
142
143
|
const _component_CnStatusBadge = resolveComponent("CnStatusBadge");
|
|
143
144
|
const _component_ChevronRight = resolveComponent("ChevronRight");
|
|
144
145
|
const _component_NcButton = resolveComponent("NcButton");
|
|
@@ -202,257 +203,265 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
202
203
|
}), 128 /* KEYED_FRAGMENT */))
|
|
203
204
|
])
|
|
204
205
|
]))
|
|
205
|
-
: (
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}, null, 4 /* STYLE */))
|
|
225
|
-
: createCommentVNode("v-if", true),
|
|
226
|
-
createElementVNode("span", _hoisted_9, [
|
|
227
|
-
(item.title)
|
|
228
|
-
? (openBlock(), createBlock(resolveDynamicComponent(item.tag), mergeProps({
|
|
229
|
-
key: 0,
|
|
230
|
-
class: ["cn-record-list__title", { 'cn-record-list__title--link': item.tag !== 'div' }]
|
|
231
|
-
}, { ref_for: true }, item.attrs), {
|
|
232
|
-
default: withCtx(() => [
|
|
233
|
-
createTextVNode(toDisplayString(item.title), 1 /* TEXT */)
|
|
234
|
-
]),
|
|
235
|
-
_: 2 /* DYNAMIC */
|
|
236
|
-
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["class"]))
|
|
206
|
+
: ($options.presentation === 'notes' && $options.noteAction)
|
|
207
|
+
? (openBlock(), createBlock(_component_CnRecordNoteRows, {
|
|
208
|
+
key: 5,
|
|
209
|
+
items: $options.items,
|
|
210
|
+
action: $options.noteAction,
|
|
211
|
+
recordAll: $options.noteRecordAll,
|
|
212
|
+
leaf: $props.content.rowLeaf || null
|
|
213
|
+
}, null, 8 /* PROPS */, ["items", "action", "recordAll", "leaf"]))
|
|
214
|
+
: (openBlock(), createElementBlock("ul", _hoisted_6, [
|
|
215
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.items, (item) => {
|
|
216
|
+
return (openBlock(), createElementBlock("li", {
|
|
217
|
+
key: item.key,
|
|
218
|
+
class: "cn-record-list__item",
|
|
219
|
+
"data-testid": "cn-record-list-item"
|
|
220
|
+
}, [
|
|
221
|
+
($options.presentation === 'rows' && item.action)
|
|
222
|
+
? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
223
|
+
(item.initials)
|
|
224
|
+
? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(item.initials), 1 /* TEXT */))
|
|
237
225
|
: createCommentVNode("v-if", true),
|
|
238
|
-
(item.
|
|
239
|
-
? (openBlock(), createElementBlock("span",
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
label: badge.label,
|
|
259
|
-
variant: badge.variant,
|
|
260
|
-
size: "small",
|
|
261
|
-
"data-testid": `cn-record-list-badge-${badge.kind}`
|
|
262
|
-
}, null, 8 /* PROPS */, ["label", "variant", "data-testid"]))
|
|
263
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
264
|
-
]))
|
|
265
|
-
: createCommentVNode("v-if", true),
|
|
266
|
-
(item.due)
|
|
267
|
-
? (openBlock(), createElementBlock("span", {
|
|
268
|
-
key: 4,
|
|
269
|
-
class: normalizeClass(["cn-record-list__due cn-record-list__due--column", [`cn-record-list__due--${item.due.tone}`, { 'cn-record-list__due--soon': item.due.soon }]]),
|
|
270
|
-
"data-testid": "cn-record-list-due"
|
|
271
|
-
}, toDisplayString(item.due.text), 3 /* TEXT, CLASS */))
|
|
272
|
-
: createCommentVNode("v-if", true),
|
|
273
|
-
(item.trailing)
|
|
274
|
-
? (openBlock(), createElementBlock("span", _hoisted_13, toDisplayString(item.trailing), 1 /* TEXT */))
|
|
275
|
-
: createCommentVNode("v-if", true),
|
|
276
|
-
(openBlock(), createBlock(resolveDynamicComponent(item.action.tag), mergeProps({ class: "cn-record-list__action" }, { ref_for: true }, item.action.attrs, { "data-testid": "cn-record-list-action" }, toHandlers(item.action.tag === 'button' ? { click: () => $options.runRowAction(item.row) } : {})), {
|
|
277
|
-
default: withCtx(() => [
|
|
278
|
-
createTextVNode(toDisplayString(item.action.label), 1 /* TEXT */)
|
|
279
|
-
]),
|
|
280
|
-
_: 2 /* DYNAMIC */
|
|
281
|
-
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */))
|
|
282
|
-
]))
|
|
283
|
-
: ($options.presentation === 'rows')
|
|
284
|
-
? (openBlock(), createBlock(resolveDynamicComponent(item.tag), mergeProps({
|
|
285
|
-
key: 1,
|
|
286
|
-
class: ["cn-record-list__row", { 'cn-record-list__row--link': item.tag !== 'div' }]
|
|
287
|
-
}, { ref_for: true }, item.attrs), {
|
|
288
|
-
default: withCtx(() => [
|
|
289
|
-
(item.initials)
|
|
290
|
-
? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(item.initials), 1 /* TEXT */))
|
|
291
|
-
: createCommentVNode("v-if", true),
|
|
292
|
-
(item.dot)
|
|
293
|
-
? (openBlock(), createElementBlock("span", {
|
|
294
|
-
key: 1,
|
|
295
|
-
class: "cn-record-list__dot",
|
|
296
|
-
style: normalizeStyle({ background: item.dot }),
|
|
297
|
-
"aria-hidden": "true",
|
|
298
|
-
"data-testid": "cn-record-list-dot"
|
|
299
|
-
}, null, 4 /* STYLE */))
|
|
300
|
-
: createCommentVNode("v-if", true),
|
|
301
|
-
createElementVNode("span", _hoisted_15, [
|
|
302
|
-
(item.title)
|
|
303
|
-
? (openBlock(), createElementBlock("span", _hoisted_16, toDisplayString(item.title), 1 /* TEXT */))
|
|
304
|
-
: createCommentVNode("v-if", true),
|
|
305
|
-
(item.meta)
|
|
306
|
-
? (openBlock(), createElementBlock("span", _hoisted_17, toDisplayString(item.meta), 1 /* TEXT */))
|
|
307
|
-
: createCommentVNode("v-if", true)
|
|
308
|
-
]),
|
|
309
|
-
(item.pill || item.badges.length > 0 || item.due || item.trailing || item.flag)
|
|
310
|
-
? (openBlock(), createElementBlock("span", _hoisted_18, [
|
|
311
|
-
(item.flag)
|
|
312
|
-
? (openBlock(), createElementBlock("span", _hoisted_19, toDisplayString(item.flag), 1 /* TEXT */))
|
|
313
|
-
: createCommentVNode("v-if", true),
|
|
314
|
-
(item.pill)
|
|
315
|
-
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
316
|
-
key: 1,
|
|
317
|
-
label: item.pill.label,
|
|
318
|
-
variant: item.pill.variant,
|
|
319
|
-
size: "small"
|
|
320
|
-
}, null, 8 /* PROPS */, ["label", "variant"]))
|
|
321
|
-
: createCommentVNode("v-if", true),
|
|
322
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.badges, (badge) => {
|
|
323
|
-
return (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
324
|
-
key: badge.key,
|
|
325
|
-
label: badge.label,
|
|
326
|
-
variant: badge.variant,
|
|
327
|
-
size: "small",
|
|
328
|
-
"data-testid": `cn-record-list-badge-${badge.kind}`
|
|
329
|
-
}, null, 8 /* PROPS */, ["label", "variant", "data-testid"]))
|
|
330
|
-
}), 128 /* KEYED_FRAGMENT */)),
|
|
331
|
-
(item.due)
|
|
332
|
-
? (openBlock(), createElementBlock("span", {
|
|
333
|
-
key: 2,
|
|
334
|
-
class: normalizeClass(["cn-record-list__due", [`cn-record-list__due--${item.due.tone}`, { 'cn-record-list__due--soon': item.due.soon }]]),
|
|
335
|
-
"data-testid": "cn-record-list-due"
|
|
336
|
-
}, toDisplayString(item.due.text), 3 /* TEXT, CLASS */))
|
|
337
|
-
: createCommentVNode("v-if", true),
|
|
338
|
-
(item.trailing)
|
|
339
|
-
? (openBlock(), createElementBlock("span", _hoisted_20, toDisplayString(item.trailing), 1 /* TEXT */))
|
|
340
|
-
: createCommentVNode("v-if", true)
|
|
341
|
-
]))
|
|
226
|
+
(item.dot)
|
|
227
|
+
? (openBlock(), createElementBlock("span", {
|
|
228
|
+
key: 1,
|
|
229
|
+
class: "cn-record-list__dot",
|
|
230
|
+
style: normalizeStyle({ background: item.dot }),
|
|
231
|
+
"aria-hidden": "true",
|
|
232
|
+
"data-testid": "cn-record-list-dot"
|
|
233
|
+
}, null, 4 /* STYLE */))
|
|
234
|
+
: createCommentVNode("v-if", true),
|
|
235
|
+
createElementVNode("span", _hoisted_9, [
|
|
236
|
+
(item.title)
|
|
237
|
+
? (openBlock(), createBlock(resolveDynamicComponent(item.tag), mergeProps({
|
|
238
|
+
key: 0,
|
|
239
|
+
class: ["cn-record-list__title", { 'cn-record-list__title--link': item.tag !== 'div' }]
|
|
240
|
+
}, { ref_for: true }, item.attrs), {
|
|
241
|
+
default: withCtx(() => [
|
|
242
|
+
createTextVNode(toDisplayString(item.title), 1 /* TEXT */)
|
|
243
|
+
]),
|
|
244
|
+
_: 2 /* DYNAMIC */
|
|
245
|
+
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["class"]))
|
|
342
246
|
: createCommentVNode("v-if", true),
|
|
343
|
-
(item.
|
|
344
|
-
? (openBlock(),
|
|
345
|
-
key: 3,
|
|
346
|
-
class: "cn-record-list__chevron",
|
|
347
|
-
size: 18,
|
|
348
|
-
"aria-hidden": "true"
|
|
349
|
-
}))
|
|
247
|
+
(item.meta)
|
|
248
|
+
? (openBlock(), createElementBlock("span", _hoisted_10, toDisplayString(item.meta), 1 /* TEXT */))
|
|
350
249
|
: createCommentVNode("v-if", true)
|
|
351
250
|
]),
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
251
|
+
(item.flag)
|
|
252
|
+
? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(item.flag), 1 /* TEXT */))
|
|
253
|
+
: createCommentVNode("v-if", true),
|
|
254
|
+
(item.pill || item.badges.length > 0)
|
|
255
|
+
? (openBlock(), createElementBlock("span", _hoisted_12, [
|
|
256
|
+
(item.pill)
|
|
257
|
+
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
258
|
+
key: 0,
|
|
259
|
+
label: item.pill.label,
|
|
260
|
+
variant: item.pill.variant,
|
|
261
|
+
size: "small"
|
|
262
|
+
}, null, 8 /* PROPS */, ["label", "variant"]))
|
|
263
|
+
: createCommentVNode("v-if", true),
|
|
264
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.badges, (badge) => {
|
|
265
|
+
return (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
266
|
+
key: badge.key,
|
|
267
|
+
label: badge.label,
|
|
268
|
+
variant: badge.variant,
|
|
269
|
+
size: "small",
|
|
270
|
+
"data-testid": `cn-record-list-badge-${badge.kind}`
|
|
271
|
+
}, null, 8 /* PROPS */, ["label", "variant", "data-testid"]))
|
|
272
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
273
|
+
]))
|
|
274
|
+
: createCommentVNode("v-if", true),
|
|
275
|
+
(item.due)
|
|
276
|
+
? (openBlock(), createElementBlock("span", {
|
|
277
|
+
key: 4,
|
|
278
|
+
class: normalizeClass(["cn-record-list__due cn-record-list__due--column", [`cn-record-list__due--${item.due.tone}`, { 'cn-record-list__due--soon': item.due.soon }]]),
|
|
279
|
+
"data-testid": "cn-record-list-due"
|
|
280
|
+
}, toDisplayString(item.due.text), 3 /* TEXT, CLASS */))
|
|
281
|
+
: createCommentVNode("v-if", true),
|
|
282
|
+
(item.trailing)
|
|
283
|
+
? (openBlock(), createElementBlock("span", _hoisted_13, toDisplayString(item.trailing), 1 /* TEXT */))
|
|
284
|
+
: createCommentVNode("v-if", true),
|
|
285
|
+
(openBlock(), createBlock(resolveDynamicComponent(item.action.tag), mergeProps({ class: "cn-record-list__action" }, { ref_for: true }, item.action.attrs, { "data-testid": "cn-record-list-action" }, toHandlers(item.action.tag === 'button' ? { click: () => $options.runRowAction(item.row) } : {})), {
|
|
286
|
+
default: withCtx(() => [
|
|
287
|
+
createTextVNode(toDisplayString(item.action.label), 1 /* TEXT */)
|
|
288
|
+
]),
|
|
289
|
+
_: 2 /* DYNAMIC */
|
|
290
|
+
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */))
|
|
291
|
+
]))
|
|
292
|
+
: ($options.presentation === 'rows')
|
|
355
293
|
? (openBlock(), createBlock(resolveDynamicComponent(item.tag), mergeProps({
|
|
356
|
-
key:
|
|
357
|
-
class: ["cn-record-
|
|
358
|
-
}, { ref_for: true }, item.attrs
|
|
294
|
+
key: 1,
|
|
295
|
+
class: ["cn-record-list__row", { 'cn-record-list__row--link': item.tag !== 'div' }]
|
|
296
|
+
}, { ref_for: true }, item.attrs), {
|
|
359
297
|
default: withCtx(() => [
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
:
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
key: 0,
|
|
379
|
-
label: item.pill.label,
|
|
380
|
-
variant: item.pill.variant,
|
|
381
|
-
size: "small"
|
|
382
|
-
}, null, 8 /* PROPS */, ["label", "variant"]))
|
|
383
|
-
: createCommentVNode("v-if", true),
|
|
384
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.badges, (badge) => {
|
|
385
|
-
return (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
386
|
-
key: badge.key,
|
|
387
|
-
label: badge.label,
|
|
388
|
-
variant: badge.variant,
|
|
389
|
-
size: "small",
|
|
390
|
-
"data-testid": `cn-record-list-badge-${badge.kind}`
|
|
391
|
-
}, null, 8 /* PROPS */, ["label", "variant", "data-testid"]))
|
|
392
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
393
|
-
]))
|
|
298
|
+
(item.initials)
|
|
299
|
+
? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(item.initials), 1 /* TEXT */))
|
|
300
|
+
: createCommentVNode("v-if", true),
|
|
301
|
+
(item.dot)
|
|
302
|
+
? (openBlock(), createElementBlock("span", {
|
|
303
|
+
key: 1,
|
|
304
|
+
class: "cn-record-list__dot",
|
|
305
|
+
style: normalizeStyle({ background: item.dot }),
|
|
306
|
+
"aria-hidden": "true",
|
|
307
|
+
"data-testid": "cn-record-list-dot"
|
|
308
|
+
}, null, 4 /* STYLE */))
|
|
309
|
+
: createCommentVNode("v-if", true),
|
|
310
|
+
createElementVNode("span", _hoisted_15, [
|
|
311
|
+
(item.title)
|
|
312
|
+
? (openBlock(), createElementBlock("span", _hoisted_16, toDisplayString(item.title), 1 /* TEXT */))
|
|
313
|
+
: createCommentVNode("v-if", true),
|
|
314
|
+
(item.meta)
|
|
315
|
+
? (openBlock(), createElementBlock("span", _hoisted_17, toDisplayString(item.meta), 1 /* TEXT */))
|
|
394
316
|
: createCommentVNode("v-if", true)
|
|
395
317
|
]),
|
|
396
|
-
(item.
|
|
397
|
-
? (openBlock(), createElementBlock("span",
|
|
318
|
+
(item.pill || item.badges.length > 0 || item.due || item.trailing || item.flag)
|
|
319
|
+
? (openBlock(), createElementBlock("span", _hoisted_18, [
|
|
320
|
+
(item.flag)
|
|
321
|
+
? (openBlock(), createElementBlock("span", _hoisted_19, toDisplayString(item.flag), 1 /* TEXT */))
|
|
322
|
+
: createCommentVNode("v-if", true),
|
|
323
|
+
(item.pill)
|
|
324
|
+
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
325
|
+
key: 1,
|
|
326
|
+
label: item.pill.label,
|
|
327
|
+
variant: item.pill.variant,
|
|
328
|
+
size: "small"
|
|
329
|
+
}, null, 8 /* PROPS */, ["label", "variant"]))
|
|
330
|
+
: createCommentVNode("v-if", true),
|
|
331
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.badges, (badge) => {
|
|
332
|
+
return (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
333
|
+
key: badge.key,
|
|
334
|
+
label: badge.label,
|
|
335
|
+
variant: badge.variant,
|
|
336
|
+
size: "small",
|
|
337
|
+
"data-testid": `cn-record-list-badge-${badge.kind}`
|
|
338
|
+
}, null, 8 /* PROPS */, ["label", "variant", "data-testid"]))
|
|
339
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
340
|
+
(item.due)
|
|
341
|
+
? (openBlock(), createElementBlock("span", {
|
|
342
|
+
key: 2,
|
|
343
|
+
class: normalizeClass(["cn-record-list__due", [`cn-record-list__due--${item.due.tone}`, { 'cn-record-list__due--soon': item.due.soon }]]),
|
|
344
|
+
"data-testid": "cn-record-list-due"
|
|
345
|
+
}, toDisplayString(item.due.text), 3 /* TEXT, CLASS */))
|
|
346
|
+
: createCommentVNode("v-if", true),
|
|
347
|
+
(item.trailing)
|
|
348
|
+
? (openBlock(), createElementBlock("span", _hoisted_20, toDisplayString(item.trailing), 1 /* TEXT */))
|
|
349
|
+
: createCommentVNode("v-if", true)
|
|
350
|
+
]))
|
|
398
351
|
: createCommentVNode("v-if", true),
|
|
399
|
-
(item.
|
|
400
|
-
? (openBlock(),
|
|
352
|
+
(item.tag !== 'div')
|
|
353
|
+
? (openBlock(), createBlock(_component_ChevronRight, {
|
|
354
|
+
key: 3,
|
|
355
|
+
class: "cn-record-list__chevron",
|
|
356
|
+
size: 18,
|
|
357
|
+
"aria-hidden": "true"
|
|
358
|
+
}))
|
|
401
359
|
: createCommentVNode("v-if", true)
|
|
402
360
|
]),
|
|
403
361
|
_: 2 /* DYNAMIC */
|
|
404
362
|
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["class"]))
|
|
405
|
-
: ($options.presentation === '
|
|
406
|
-
? (openBlock(),
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
363
|
+
: ($options.presentation === 'cards')
|
|
364
|
+
? (openBlock(), createBlock(resolveDynamicComponent(item.tag), mergeProps({
|
|
365
|
+
key: 2,
|
|
366
|
+
class: ["cn-record-list__card", { 'cn-record-list__card--link': item.tag !== 'div' }]
|
|
367
|
+
}, { ref_for: true }, item.attrs, { "data-testid": "cn-record-list-card" }), {
|
|
368
|
+
default: withCtx(() => [
|
|
369
|
+
createElementVNode("span", _hoisted_21, [
|
|
370
|
+
createElementVNode("span", _hoisted_22, [
|
|
371
|
+
($options.cardIcons)
|
|
372
|
+
? (openBlock(), createBlock(_component_CnIcon, {
|
|
373
|
+
key: 0,
|
|
374
|
+
class: "cn-record-list__card-icon",
|
|
375
|
+
name: item.icon,
|
|
376
|
+
size: 18
|
|
377
|
+
}, null, 8 /* PROPS */, ["name"]))
|
|
378
|
+
: createCommentVNode("v-if", true),
|
|
379
|
+
(item.title)
|
|
380
|
+
? (openBlock(), createElementBlock("span", _hoisted_23, toDisplayString(item.title), 1 /* TEXT */))
|
|
381
|
+
: createCommentVNode("v-if", true)
|
|
382
|
+
]),
|
|
383
|
+
(item.pill || item.badges.length > 0)
|
|
384
|
+
? (openBlock(), createElementBlock("span", _hoisted_24, [
|
|
385
|
+
(item.pill)
|
|
386
|
+
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
387
|
+
key: 0,
|
|
388
|
+
label: item.pill.label,
|
|
389
|
+
variant: item.pill.variant,
|
|
390
|
+
size: "small"
|
|
391
|
+
}, null, 8 /* PROPS */, ["label", "variant"]))
|
|
392
|
+
: createCommentVNode("v-if", true),
|
|
393
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.badges, (badge) => {
|
|
394
|
+
return (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
395
|
+
key: badge.key,
|
|
396
|
+
label: badge.label,
|
|
397
|
+
variant: badge.variant,
|
|
398
|
+
size: "small",
|
|
399
|
+
"data-testid": `cn-record-list-badge-${badge.kind}`
|
|
400
|
+
}, null, 8 /* PROPS */, ["label", "variant", "data-testid"]))
|
|
401
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
402
|
+
]))
|
|
420
403
|
: createCommentVNode("v-if", true)
|
|
421
404
|
]),
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
405
|
+
(item.meta)
|
|
406
|
+
? (openBlock(), createElementBlock("span", _hoisted_25, toDisplayString(item.meta), 1 /* TEXT */))
|
|
407
|
+
: createCommentVNode("v-if", true),
|
|
408
|
+
(item.trailing)
|
|
409
|
+
? (openBlock(), createElementBlock("span", _hoisted_26, toDisplayString(item.trailing), 1 /* TEXT */))
|
|
410
|
+
: createCommentVNode("v-if", true)
|
|
411
|
+
]),
|
|
412
|
+
_: 2 /* DYNAMIC */
|
|
413
|
+
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["class"]))
|
|
414
|
+
: ($options.presentation === 'feed')
|
|
415
|
+
? (openBlock(), createElementBlock("div", _hoisted_27, [
|
|
416
|
+
createElementVNode("span", _hoisted_28, [
|
|
417
|
+
createVNode(_component_CnIcon, {
|
|
418
|
+
name: item.icon,
|
|
419
|
+
size: 18
|
|
420
|
+
}, null, 8 /* PROPS */, ["name"])
|
|
432
421
|
]),
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
422
|
+
(openBlock(), createBlock(resolveDynamicComponent(item.tag), mergeProps({ class: "cn-record-list__main" }, { ref_for: true }, item.attrs), {
|
|
423
|
+
default: withCtx(() => [
|
|
424
|
+
(item.meta)
|
|
425
|
+
? (openBlock(), createElementBlock("span", _hoisted_29, toDisplayString(item.meta), 1 /* TEXT */))
|
|
426
|
+
: createCommentVNode("v-if", true),
|
|
427
|
+
(item.text)
|
|
428
|
+
? (openBlock(), createElementBlock("span", _hoisted_30, toDisplayString(item.text), 1 /* TEXT */))
|
|
429
|
+
: createCommentVNode("v-if", true)
|
|
430
|
+
]),
|
|
431
|
+
_: 2 /* DYNAMIC */
|
|
432
|
+
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */))
|
|
433
|
+
]))
|
|
434
|
+
: (openBlock(), createElementBlock("div", _hoisted_31, [
|
|
435
|
+
(item.label)
|
|
436
|
+
? (openBlock(), createElementBlock("span", _hoisted_32, toDisplayString(item.label), 1 /* TEXT */))
|
|
437
|
+
: createCommentVNode("v-if", true),
|
|
438
|
+
(openBlock(), createBlock(resolveDynamicComponent(item.tag), mergeProps({ class: "cn-record-list__inline-title" }, { ref_for: true }, item.attrs), {
|
|
439
|
+
default: withCtx(() => [
|
|
440
|
+
createTextVNode(toDisplayString(item.title), 1 /* TEXT */)
|
|
441
|
+
]),
|
|
442
|
+
_: 2 /* DYNAMIC */
|
|
443
|
+
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */))
|
|
444
|
+
])),
|
|
445
|
+
($options.presentation === 'rows' && item.bar)
|
|
446
|
+
? (openBlock(), createElementBlock("span", {
|
|
447
|
+
key: 5,
|
|
448
|
+
class: normalizeClass(["cn-record-list__bar", { 'cn-record-list__bar--over': item.bar.over }]),
|
|
449
|
+
role: "meter",
|
|
450
|
+
"aria-label": item.title || null,
|
|
451
|
+
"aria-valuenow": item.bar.value,
|
|
452
|
+
"aria-valuemin": "0",
|
|
453
|
+
"aria-valuemax": item.bar.max,
|
|
454
|
+
"data-testid": "cn-record-list-bar"
|
|
455
|
+
}, [
|
|
456
|
+
createElementVNode("span", {
|
|
457
|
+
class: "cn-record-list__bar-fill",
|
|
458
|
+
style: normalizeStyle({ width: `${item.bar.share}%` })
|
|
459
|
+
}, null, 4 /* STYLE */)
|
|
460
|
+
], 10 /* CLASS, PROPS */, _hoisted_33))
|
|
461
|
+
: createCommentVNode("v-if", true)
|
|
462
|
+
]))
|
|
463
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
464
|
+
])),
|
|
456
465
|
($options.footnote && !$data.error)
|
|
457
466
|
? (openBlock(), createElementBlock("p", _hoisted_34, toDisplayString($options.footnote), 1 /* TEXT */))
|
|
458
467
|
: createCommentVNode("v-if", true),
|