@conduction/nextcloud-vue 2.99.0 → 2.100.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/CnAdminSettingsShell/CnAdminSettingsShell.vue.js +1 -1
- package/dist/esm/components/CnAdminSettingsShell/CnAdminSettingsShell.vue2.js +6 -1
- package/dist/esm/components/CnAdminSettingsShell/CnAdminSettingsShell.vue2.js.map +1 -1
- package/dist/esm/components/CnAdminSettingsShell/CnAdminSettingsShell.vue3.js +2 -1
- package/dist/esm/components/CnAdminSettingsShell/CnAdminSettingsShell.vue3.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +25 -8
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js +5 -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 +11 -8
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue2.js.map +1 -1
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue3.js +13 -4
- 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 +54 -3
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js +16 -2
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue.js +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js +42 -7
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js +121 -57
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue2.js +10 -0
- package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue3.js +2 -1
- package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue3.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +136 -7
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue.js +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js +68 -7
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js +256 -240
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue.js +1 -1
- package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue2.js +38 -9
- package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue2.js.map +1 -1
- package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue3.js.map +1 -1
- package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue.js +1 -1
- package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue2.js +16 -2
- package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue2.js.map +1 -1
- package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue3.js +40 -25
- package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue3.js.map +1 -1
- package/dist/esm/components/CnWizardDialog/CnWizardDialog.vue.js +1 -1
- package/dist/esm/components/CnWizardDialog/CnWizardDialog.vue2.js +7 -7
- package/dist/esm/components/CnWizardDialog/CnWizardDialog.vue2.js.map +1 -1
- package/dist/esm/components/CnWizardDialog/CnWizardDialog.vue3.js.map +1 -1
- package/dist/esm/l10n/en.json.js +7 -1
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +7 -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 +348 -161
- 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 +1482 -998
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +348 -161
- package/l10n/en.json +7 -1
- package/l10n/nl.json +7 -1
- package/package.json +1 -1
- package/src/components/CnAdminSettingsShell/CnAdminSettingsShell.vue +7 -1
- package/src/components/CnDetailPage/CnDetailPage.vue +28 -9
- package/src/components/CnDetailWidgetHost/CnDetailWidgetHost.vue +13 -4
- package/src/components/CnFactsWidget/CnFactsWidget.vue +65 -3
- package/src/components/CnFlowsPage/CnFlowBoard.vue +77 -2
- package/src/components/CnFlowsPage/CnFlowEditorPage.vue +11 -0
- package/src/components/CnIndexPage/CnIndexPage.vue +136 -7
- package/src/components/CnRecordListWidget/CnRecordListWidget.vue +114 -7
- package/src/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue +38 -9
- package/src/components/CnSetupWizard/CnSetupWizard.vue +37 -3
- package/src/components/CnWizardDialog/CnWizardDialog.vue +7 -7
- package/src/css/detail-page.css +15 -0
- package/src/css/dialog.css +48 -0
- package/src/css/look-board.css +83 -1
- package/src/schemas/app-manifest-v2.schema.json +25 -1
- package/src/utils/validateManifestV2.compiled.js +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, toDisplayString, createVNode, Fragment, renderList, createCommentVNode,
|
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, toDisplayString, createVNode, createElementVNode, Fragment, renderList, createCommentVNode, createBlock, resolveDynamicComponent, mergeProps, withCtx, createTextVNode, toHandlers, normalizeStyle } from 'vue';
|
|
2
2
|
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
key: 0,
|
|
@@ -14,106 +14,107 @@ const _hoisted_3 = {
|
|
|
14
14
|
class: "cn-record-list__empty",
|
|
15
15
|
"data-testid": "cn-record-list-empty"
|
|
16
16
|
};
|
|
17
|
-
const _hoisted_4 = {
|
|
18
|
-
|
|
17
|
+
const _hoisted_4 = { class: "cn-record-list__notice-text" };
|
|
18
|
+
const _hoisted_5 = {
|
|
19
|
+
key: 4,
|
|
19
20
|
class: "cn-record-list__list"
|
|
20
21
|
};
|
|
21
|
-
const
|
|
22
|
+
const _hoisted_6 = {
|
|
22
23
|
key: 0,
|
|
23
24
|
class: "cn-record-list__row cn-record-list__row--action"
|
|
24
25
|
};
|
|
25
|
-
const
|
|
26
|
+
const _hoisted_7 = {
|
|
26
27
|
key: 0,
|
|
27
28
|
class: "cn-record-list__avatar",
|
|
28
29
|
"aria-hidden": "true",
|
|
29
30
|
"data-testid": "cn-record-list-avatar"
|
|
30
31
|
};
|
|
31
|
-
const
|
|
32
|
-
const
|
|
32
|
+
const _hoisted_8 = { class: "cn-record-list__main" };
|
|
33
|
+
const _hoisted_9 = {
|
|
33
34
|
key: 1,
|
|
34
35
|
class: "cn-record-list__meta"
|
|
35
36
|
};
|
|
36
|
-
const
|
|
37
|
+
const _hoisted_10 = {
|
|
37
38
|
key: 1,
|
|
38
39
|
class: "cn-record-list__pills"
|
|
39
40
|
};
|
|
40
|
-
const
|
|
41
|
+
const _hoisted_11 = {
|
|
41
42
|
key: 3,
|
|
42
43
|
class: "cn-record-list__trailing"
|
|
43
44
|
};
|
|
44
|
-
const
|
|
45
|
+
const _hoisted_12 = {
|
|
45
46
|
key: 0,
|
|
46
47
|
class: "cn-record-list__avatar",
|
|
47
48
|
"aria-hidden": "true",
|
|
48
49
|
"data-testid": "cn-record-list-avatar"
|
|
49
50
|
};
|
|
50
|
-
const
|
|
51
|
-
const
|
|
51
|
+
const _hoisted_13 = { class: "cn-record-list__main" };
|
|
52
|
+
const _hoisted_14 = {
|
|
52
53
|
key: 0,
|
|
53
54
|
class: "cn-record-list__title"
|
|
54
55
|
};
|
|
55
|
-
const
|
|
56
|
+
const _hoisted_15 = {
|
|
56
57
|
key: 1,
|
|
57
58
|
class: "cn-record-list__meta"
|
|
58
59
|
};
|
|
59
|
-
const
|
|
60
|
+
const _hoisted_16 = {
|
|
60
61
|
key: 1,
|
|
61
62
|
class: "cn-record-list__aside"
|
|
62
63
|
};
|
|
63
|
-
const
|
|
64
|
+
const _hoisted_17 = {
|
|
64
65
|
key: 2,
|
|
65
66
|
class: "cn-record-list__trailing"
|
|
66
67
|
};
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
const
|
|
68
|
+
const _hoisted_18 = { class: "cn-record-list__card-head" };
|
|
69
|
+
const _hoisted_19 = { class: "cn-record-list__card-title" };
|
|
70
|
+
const _hoisted_20 = {
|
|
70
71
|
key: 1,
|
|
71
72
|
class: "cn-record-list__title"
|
|
72
73
|
};
|
|
73
|
-
const
|
|
74
|
+
const _hoisted_21 = {
|
|
74
75
|
key: 0,
|
|
75
76
|
class: "cn-record-list__card-pills"
|
|
76
77
|
};
|
|
77
|
-
const
|
|
78
|
+
const _hoisted_22 = {
|
|
78
79
|
key: 0,
|
|
79
80
|
class: "cn-record-list__meta"
|
|
80
81
|
};
|
|
81
|
-
const
|
|
82
|
+
const _hoisted_23 = {
|
|
82
83
|
key: 1,
|
|
83
84
|
class: "cn-record-list__card-value",
|
|
84
85
|
"data-testid": "cn-record-list-card-value"
|
|
85
86
|
};
|
|
86
|
-
const
|
|
87
|
+
const _hoisted_24 = {
|
|
87
88
|
key: 3,
|
|
88
89
|
class: "cn-record-list__feed-row"
|
|
89
90
|
};
|
|
90
|
-
const
|
|
91
|
+
const _hoisted_25 = {
|
|
91
92
|
class: "cn-record-list__feed-icon",
|
|
92
93
|
"aria-hidden": "true"
|
|
93
94
|
};
|
|
94
|
-
const
|
|
95
|
+
const _hoisted_26 = {
|
|
95
96
|
key: 0,
|
|
96
97
|
class: "cn-record-list__meta"
|
|
97
98
|
};
|
|
98
|
-
const
|
|
99
|
+
const _hoisted_27 = {
|
|
99
100
|
key: 1,
|
|
100
101
|
class: "cn-record-list__text"
|
|
101
102
|
};
|
|
102
|
-
const
|
|
103
|
+
const _hoisted_28 = {
|
|
103
104
|
key: 4,
|
|
104
105
|
class: "cn-record-list__inline-row"
|
|
105
106
|
};
|
|
106
|
-
const
|
|
107
|
+
const _hoisted_29 = {
|
|
107
108
|
key: 0,
|
|
108
109
|
class: "cn-record-list__label"
|
|
109
110
|
};
|
|
110
|
-
const
|
|
111
|
+
const _hoisted_30 = ["aria-label", "aria-valuenow", "aria-valuemax"];
|
|
111
112
|
|
|
112
113
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
113
114
|
const _component_NcLoadingIcon = resolveComponent("NcLoadingIcon");
|
|
115
|
+
const _component_CnIcon = resolveComponent("CnIcon");
|
|
114
116
|
const _component_CnStatusBadge = resolveComponent("CnStatusBadge");
|
|
115
117
|
const _component_ChevronRight = resolveComponent("ChevronRight");
|
|
116
|
-
const _component_CnIcon = resolveComponent("CnIcon");
|
|
117
118
|
|
|
118
119
|
return (openBlock(), createElementBlock("div", {
|
|
119
120
|
class: normalizeClass(["cn-record-list", `cn-record-list--${$options.presentation}`]),
|
|
@@ -130,233 +131,248 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
130
131
|
]))
|
|
131
132
|
: ($data.rows.length === 0)
|
|
132
133
|
? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString($options.emptyLabel), 1 /* TEXT */))
|
|
133
|
-
: (
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
134
|
+
: ($options.presentation === 'notice')
|
|
135
|
+
? (openBlock(), createElementBlock("div", {
|
|
136
|
+
key: 3,
|
|
137
|
+
class: normalizeClass(["cn-record-list__notice", `cn-record-list__notice--${$options.noticeVariant}`]),
|
|
138
|
+
role: "note",
|
|
139
|
+
"data-testid": "cn-record-list-notice"
|
|
140
|
+
}, [
|
|
141
|
+
createVNode(_component_CnIcon, {
|
|
142
|
+
name: $options.noticeIcon,
|
|
143
|
+
size: 18,
|
|
144
|
+
class: "cn-record-list__notice-icon",
|
|
145
|
+
"aria-hidden": "true"
|
|
146
|
+
}, null, 8 /* PROPS */, ["name"]),
|
|
147
|
+
createElementVNode("p", _hoisted_4, toDisplayString($options.noticeText), 1 /* TEXT */)
|
|
148
|
+
], 2 /* CLASS */))
|
|
149
|
+
: (openBlock(), createElementBlock("ul", _hoisted_5, [
|
|
150
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.items, (item) => {
|
|
151
|
+
return (openBlock(), createElementBlock("li", {
|
|
152
|
+
key: item.key,
|
|
153
|
+
class: "cn-record-list__item",
|
|
154
|
+
"data-testid": "cn-record-list-item"
|
|
155
|
+
}, [
|
|
156
|
+
($options.presentation === 'rows' && item.action)
|
|
157
|
+
? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
158
|
+
(item.initials)
|
|
159
|
+
? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(item.initials), 1 /* TEXT */))
|
|
156
160
|
: createCommentVNode("v-if", true),
|
|
157
|
-
(
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
size: "small"
|
|
169
|
-
}, null, 8 /* PROPS */, ["label", "variant"]))
|
|
170
|
-
: createCommentVNode("v-if", true),
|
|
171
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.badges, (badge) => {
|
|
172
|
-
return (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
173
|
-
key: badge.key,
|
|
174
|
-
label: badge.label,
|
|
175
|
-
variant: badge.variant,
|
|
176
|
-
size: "small",
|
|
177
|
-
"data-testid": `cn-record-list-badge-${badge.kind}`
|
|
178
|
-
}, null, 8 /* PROPS */, ["label", "variant", "data-testid"]))
|
|
179
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
180
|
-
]))
|
|
181
|
-
: createCommentVNode("v-if", true),
|
|
182
|
-
(item.due)
|
|
183
|
-
? (openBlock(), createElementBlock("span", {
|
|
184
|
-
key: 2,
|
|
185
|
-
class: normalizeClass(["cn-record-list__due cn-record-list__due--column", `cn-record-list__due--${item.due.tone}`]),
|
|
186
|
-
"data-testid": "cn-record-list-due"
|
|
187
|
-
}, toDisplayString(item.due.text), 3 /* TEXT, CLASS */))
|
|
188
|
-
: createCommentVNode("v-if", true),
|
|
189
|
-
(item.trailing)
|
|
190
|
-
? (openBlock(), createElementBlock("span", _hoisted_10, toDisplayString(item.trailing), 1 /* TEXT */))
|
|
191
|
-
: createCommentVNode("v-if", true),
|
|
192
|
-
(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) } : {})), {
|
|
193
|
-
default: withCtx(() => [
|
|
194
|
-
createTextVNode(toDisplayString(item.action.label), 1 /* TEXT */)
|
|
195
|
-
]),
|
|
196
|
-
_: 2 /* DYNAMIC */
|
|
197
|
-
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */))
|
|
198
|
-
]))
|
|
199
|
-
: ($options.presentation === 'rows')
|
|
200
|
-
? (openBlock(), createBlock(resolveDynamicComponent(item.tag), mergeProps({
|
|
201
|
-
key: 1,
|
|
202
|
-
class: ["cn-record-list__row", { 'cn-record-list__row--link': item.tag !== 'div' }]
|
|
203
|
-
}, { ref_for: true }, item.attrs), {
|
|
204
|
-
default: withCtx(() => [
|
|
205
|
-
(item.initials)
|
|
206
|
-
? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(item.initials), 1 /* TEXT */))
|
|
207
|
-
: createCommentVNode("v-if", true),
|
|
208
|
-
createElementVNode("span", _hoisted_12, [
|
|
209
|
-
(item.title)
|
|
210
|
-
? (openBlock(), createElementBlock("span", _hoisted_13, toDisplayString(item.title), 1 /* TEXT */))
|
|
211
|
-
: createCommentVNode("v-if", true),
|
|
212
|
-
(item.meta)
|
|
213
|
-
? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(item.meta), 1 /* TEXT */))
|
|
214
|
-
: createCommentVNode("v-if", true)
|
|
215
|
-
]),
|
|
216
|
-
(item.pill || item.badges.length > 0 || item.due || item.trailing)
|
|
217
|
-
? (openBlock(), createElementBlock("span", _hoisted_15, [
|
|
218
|
-
(item.pill)
|
|
219
|
-
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
220
|
-
key: 0,
|
|
221
|
-
label: item.pill.label,
|
|
222
|
-
variant: item.pill.variant,
|
|
223
|
-
size: "small"
|
|
224
|
-
}, null, 8 /* PROPS */, ["label", "variant"]))
|
|
225
|
-
: createCommentVNode("v-if", true),
|
|
226
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.badges, (badge) => {
|
|
227
|
-
return (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
228
|
-
key: badge.key,
|
|
229
|
-
label: badge.label,
|
|
230
|
-
variant: badge.variant,
|
|
231
|
-
size: "small",
|
|
232
|
-
"data-testid": `cn-record-list-badge-${badge.kind}`
|
|
233
|
-
}, null, 8 /* PROPS */, ["label", "variant", "data-testid"]))
|
|
234
|
-
}), 128 /* KEYED_FRAGMENT */)),
|
|
235
|
-
(item.due)
|
|
236
|
-
? (openBlock(), createElementBlock("span", {
|
|
237
|
-
key: 1,
|
|
238
|
-
class: normalizeClass(["cn-record-list__due", `cn-record-list__due--${item.due.tone}`]),
|
|
239
|
-
"data-testid": "cn-record-list-due"
|
|
240
|
-
}, toDisplayString(item.due.text), 3 /* TEXT, CLASS */))
|
|
241
|
-
: createCommentVNode("v-if", true),
|
|
242
|
-
(item.trailing)
|
|
243
|
-
? (openBlock(), createElementBlock("span", _hoisted_16, toDisplayString(item.trailing), 1 /* TEXT */))
|
|
244
|
-
: createCommentVNode("v-if", true)
|
|
245
|
-
]))
|
|
161
|
+
createElementVNode("span", _hoisted_8, [
|
|
162
|
+
(item.title)
|
|
163
|
+
? (openBlock(), createBlock(resolveDynamicComponent(item.tag), mergeProps({
|
|
164
|
+
key: 0,
|
|
165
|
+
class: ["cn-record-list__title", { 'cn-record-list__title--link': item.tag !== 'div' }]
|
|
166
|
+
}, { ref_for: true }, item.attrs), {
|
|
167
|
+
default: withCtx(() => [
|
|
168
|
+
createTextVNode(toDisplayString(item.title), 1 /* TEXT */)
|
|
169
|
+
]),
|
|
170
|
+
_: 2 /* DYNAMIC */
|
|
171
|
+
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["class"]))
|
|
246
172
|
: createCommentVNode("v-if", true),
|
|
247
|
-
(item.
|
|
248
|
-
? (openBlock(),
|
|
249
|
-
key: 2,
|
|
250
|
-
class: "cn-record-list__chevron",
|
|
251
|
-
size: 18,
|
|
252
|
-
"aria-hidden": "true"
|
|
253
|
-
}))
|
|
173
|
+
(item.meta)
|
|
174
|
+
? (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(item.meta), 1 /* TEXT */))
|
|
254
175
|
: createCommentVNode("v-if", true)
|
|
255
176
|
]),
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
177
|
+
(item.pill || item.badges.length > 0)
|
|
178
|
+
? (openBlock(), createElementBlock("span", _hoisted_10, [
|
|
179
|
+
(item.pill)
|
|
180
|
+
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
181
|
+
key: 0,
|
|
182
|
+
label: item.pill.label,
|
|
183
|
+
variant: item.pill.variant,
|
|
184
|
+
size: "small"
|
|
185
|
+
}, null, 8 /* PROPS */, ["label", "variant"]))
|
|
186
|
+
: createCommentVNode("v-if", true),
|
|
187
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.badges, (badge) => {
|
|
188
|
+
return (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
189
|
+
key: badge.key,
|
|
190
|
+
label: badge.label,
|
|
191
|
+
variant: badge.variant,
|
|
192
|
+
size: "small",
|
|
193
|
+
"data-testid": `cn-record-list-badge-${badge.kind}`
|
|
194
|
+
}, null, 8 /* PROPS */, ["label", "variant", "data-testid"]))
|
|
195
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
196
|
+
]))
|
|
197
|
+
: createCommentVNode("v-if", true),
|
|
198
|
+
(item.due)
|
|
199
|
+
? (openBlock(), createElementBlock("span", {
|
|
200
|
+
key: 2,
|
|
201
|
+
class: normalizeClass(["cn-record-list__due cn-record-list__due--column", `cn-record-list__due--${item.due.tone}`]),
|
|
202
|
+
"data-testid": "cn-record-list-due"
|
|
203
|
+
}, toDisplayString(item.due.text), 3 /* TEXT, CLASS */))
|
|
204
|
+
: createCommentVNode("v-if", true),
|
|
205
|
+
(item.trailing)
|
|
206
|
+
? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(item.trailing), 1 /* TEXT */))
|
|
207
|
+
: createCommentVNode("v-if", true),
|
|
208
|
+
(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) } : {})), {
|
|
209
|
+
default: withCtx(() => [
|
|
210
|
+
createTextVNode(toDisplayString(item.action.label), 1 /* TEXT */)
|
|
211
|
+
]),
|
|
212
|
+
_: 2 /* DYNAMIC */
|
|
213
|
+
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */))
|
|
214
|
+
]))
|
|
215
|
+
: ($options.presentation === 'rows')
|
|
259
216
|
? (openBlock(), createBlock(resolveDynamicComponent(item.tag), mergeProps({
|
|
260
|
-
key:
|
|
261
|
-
class: ["cn-record-
|
|
262
|
-
}, { ref_for: true }, item.attrs
|
|
217
|
+
key: 1,
|
|
218
|
+
class: ["cn-record-list__row", { 'cn-record-list__row--link': item.tag !== 'div' }]
|
|
219
|
+
}, { ref_for: true }, item.attrs), {
|
|
263
220
|
default: withCtx(() => [
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
: createCommentVNode("v-if", true),
|
|
274
|
-
(item.title)
|
|
275
|
-
? (openBlock(), createElementBlock("span", _hoisted_19, toDisplayString(item.title), 1 /* TEXT */))
|
|
276
|
-
: createCommentVNode("v-if", true)
|
|
277
|
-
]),
|
|
278
|
-
(item.pill || item.badges.length > 0)
|
|
279
|
-
? (openBlock(), createElementBlock("span", _hoisted_20, [
|
|
280
|
-
(item.pill)
|
|
281
|
-
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
282
|
-
key: 0,
|
|
283
|
-
label: item.pill.label,
|
|
284
|
-
variant: item.pill.variant,
|
|
285
|
-
size: "small"
|
|
286
|
-
}, null, 8 /* PROPS */, ["label", "variant"]))
|
|
287
|
-
: createCommentVNode("v-if", true),
|
|
288
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.badges, (badge) => {
|
|
289
|
-
return (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
290
|
-
key: badge.key,
|
|
291
|
-
label: badge.label,
|
|
292
|
-
variant: badge.variant,
|
|
293
|
-
size: "small",
|
|
294
|
-
"data-testid": `cn-record-list-badge-${badge.kind}`
|
|
295
|
-
}, null, 8 /* PROPS */, ["label", "variant", "data-testid"]))
|
|
296
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
297
|
-
]))
|
|
221
|
+
(item.initials)
|
|
222
|
+
? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(item.initials), 1 /* TEXT */))
|
|
223
|
+
: createCommentVNode("v-if", true),
|
|
224
|
+
createElementVNode("span", _hoisted_13, [
|
|
225
|
+
(item.title)
|
|
226
|
+
? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(item.title), 1 /* TEXT */))
|
|
227
|
+
: createCommentVNode("v-if", true),
|
|
228
|
+
(item.meta)
|
|
229
|
+
? (openBlock(), createElementBlock("span", _hoisted_15, toDisplayString(item.meta), 1 /* TEXT */))
|
|
298
230
|
: createCommentVNode("v-if", true)
|
|
299
231
|
]),
|
|
300
|
-
(item.
|
|
301
|
-
? (openBlock(), createElementBlock("span",
|
|
232
|
+
(item.pill || item.badges.length > 0 || item.due || item.trailing)
|
|
233
|
+
? (openBlock(), createElementBlock("span", _hoisted_16, [
|
|
234
|
+
(item.pill)
|
|
235
|
+
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
236
|
+
key: 0,
|
|
237
|
+
label: item.pill.label,
|
|
238
|
+
variant: item.pill.variant,
|
|
239
|
+
size: "small"
|
|
240
|
+
}, null, 8 /* PROPS */, ["label", "variant"]))
|
|
241
|
+
: createCommentVNode("v-if", true),
|
|
242
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.badges, (badge) => {
|
|
243
|
+
return (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
244
|
+
key: badge.key,
|
|
245
|
+
label: badge.label,
|
|
246
|
+
variant: badge.variant,
|
|
247
|
+
size: "small",
|
|
248
|
+
"data-testid": `cn-record-list-badge-${badge.kind}`
|
|
249
|
+
}, null, 8 /* PROPS */, ["label", "variant", "data-testid"]))
|
|
250
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
251
|
+
(item.due)
|
|
252
|
+
? (openBlock(), createElementBlock("span", {
|
|
253
|
+
key: 1,
|
|
254
|
+
class: normalizeClass(["cn-record-list__due", `cn-record-list__due--${item.due.tone}`]),
|
|
255
|
+
"data-testid": "cn-record-list-due"
|
|
256
|
+
}, toDisplayString(item.due.text), 3 /* TEXT, CLASS */))
|
|
257
|
+
: createCommentVNode("v-if", true),
|
|
258
|
+
(item.trailing)
|
|
259
|
+
? (openBlock(), createElementBlock("span", _hoisted_17, toDisplayString(item.trailing), 1 /* TEXT */))
|
|
260
|
+
: createCommentVNode("v-if", true)
|
|
261
|
+
]))
|
|
302
262
|
: createCommentVNode("v-if", true),
|
|
303
|
-
(item.
|
|
304
|
-
? (openBlock(),
|
|
263
|
+
(item.tag !== 'div')
|
|
264
|
+
? (openBlock(), createBlock(_component_ChevronRight, {
|
|
265
|
+
key: 2,
|
|
266
|
+
class: "cn-record-list__chevron",
|
|
267
|
+
size: 18,
|
|
268
|
+
"aria-hidden": "true"
|
|
269
|
+
}))
|
|
305
270
|
: createCommentVNode("v-if", true)
|
|
306
271
|
]),
|
|
307
272
|
_: 2 /* DYNAMIC */
|
|
308
273
|
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["class"]))
|
|
309
|
-
: ($options.presentation === '
|
|
310
|
-
? (openBlock(),
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
274
|
+
: ($options.presentation === 'cards')
|
|
275
|
+
? (openBlock(), createBlock(resolveDynamicComponent(item.tag), mergeProps({
|
|
276
|
+
key: 2,
|
|
277
|
+
class: ["cn-record-list__card", { 'cn-record-list__card--link': item.tag !== 'div' }]
|
|
278
|
+
}, { ref_for: true }, item.attrs, { "data-testid": "cn-record-list-card" }), {
|
|
279
|
+
default: withCtx(() => [
|
|
280
|
+
createElementVNode("span", _hoisted_18, [
|
|
281
|
+
createElementVNode("span", _hoisted_19, [
|
|
282
|
+
($options.cardIcons)
|
|
283
|
+
? (openBlock(), createBlock(_component_CnIcon, {
|
|
284
|
+
key: 0,
|
|
285
|
+
class: "cn-record-list__card-icon",
|
|
286
|
+
name: item.icon,
|
|
287
|
+
size: 18
|
|
288
|
+
}, null, 8 /* PROPS */, ["name"]))
|
|
289
|
+
: createCommentVNode("v-if", true),
|
|
290
|
+
(item.title)
|
|
291
|
+
? (openBlock(), createElementBlock("span", _hoisted_20, toDisplayString(item.title), 1 /* TEXT */))
|
|
292
|
+
: createCommentVNode("v-if", true)
|
|
293
|
+
]),
|
|
294
|
+
(item.pill || item.badges.length > 0)
|
|
295
|
+
? (openBlock(), createElementBlock("span", _hoisted_21, [
|
|
296
|
+
(item.pill)
|
|
297
|
+
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
298
|
+
key: 0,
|
|
299
|
+
label: item.pill.label,
|
|
300
|
+
variant: item.pill.variant,
|
|
301
|
+
size: "small"
|
|
302
|
+
}, null, 8 /* PROPS */, ["label", "variant"]))
|
|
303
|
+
: createCommentVNode("v-if", true),
|
|
304
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.badges, (badge) => {
|
|
305
|
+
return (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
306
|
+
key: badge.key,
|
|
307
|
+
label: badge.label,
|
|
308
|
+
variant: badge.variant,
|
|
309
|
+
size: "small",
|
|
310
|
+
"data-testid": `cn-record-list-badge-${badge.kind}`
|
|
311
|
+
}, null, 8 /* PROPS */, ["label", "variant", "data-testid"]))
|
|
312
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
313
|
+
]))
|
|
324
314
|
: createCommentVNode("v-if", true)
|
|
325
315
|
]),
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
316
|
+
(item.meta)
|
|
317
|
+
? (openBlock(), createElementBlock("span", _hoisted_22, toDisplayString(item.meta), 1 /* TEXT */))
|
|
318
|
+
: createCommentVNode("v-if", true),
|
|
319
|
+
(item.trailing)
|
|
320
|
+
? (openBlock(), createElementBlock("span", _hoisted_23, toDisplayString(item.trailing), 1 /* TEXT */))
|
|
321
|
+
: createCommentVNode("v-if", true)
|
|
322
|
+
]),
|
|
323
|
+
_: 2 /* DYNAMIC */
|
|
324
|
+
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["class"]))
|
|
325
|
+
: ($options.presentation === 'feed')
|
|
326
|
+
? (openBlock(), createElementBlock("div", _hoisted_24, [
|
|
327
|
+
createElementVNode("span", _hoisted_25, [
|
|
328
|
+
createVNode(_component_CnIcon, {
|
|
329
|
+
name: item.icon,
|
|
330
|
+
size: 18
|
|
331
|
+
}, null, 8 /* PROPS */, ["name"])
|
|
336
332
|
]),
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
333
|
+
(openBlock(), createBlock(resolveDynamicComponent(item.tag), mergeProps({ class: "cn-record-list__main" }, { ref_for: true }, item.attrs), {
|
|
334
|
+
default: withCtx(() => [
|
|
335
|
+
(item.meta)
|
|
336
|
+
? (openBlock(), createElementBlock("span", _hoisted_26, toDisplayString(item.meta), 1 /* TEXT */))
|
|
337
|
+
: createCommentVNode("v-if", true),
|
|
338
|
+
(item.text)
|
|
339
|
+
? (openBlock(), createElementBlock("span", _hoisted_27, toDisplayString(item.text), 1 /* TEXT */))
|
|
340
|
+
: createCommentVNode("v-if", true)
|
|
341
|
+
]),
|
|
342
|
+
_: 2 /* DYNAMIC */
|
|
343
|
+
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */))
|
|
344
|
+
]))
|
|
345
|
+
: (openBlock(), createElementBlock("div", _hoisted_28, [
|
|
346
|
+
(item.label)
|
|
347
|
+
? (openBlock(), createElementBlock("span", _hoisted_29, toDisplayString(item.label), 1 /* TEXT */))
|
|
348
|
+
: createCommentVNode("v-if", true),
|
|
349
|
+
(openBlock(), createBlock(resolveDynamicComponent(item.tag), mergeProps({ class: "cn-record-list__inline-title" }, { ref_for: true }, item.attrs), {
|
|
350
|
+
default: withCtx(() => [
|
|
351
|
+
createTextVNode(toDisplayString(item.title), 1 /* TEXT */)
|
|
352
|
+
]),
|
|
353
|
+
_: 2 /* DYNAMIC */
|
|
354
|
+
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */))
|
|
355
|
+
])),
|
|
356
|
+
($options.presentation === 'rows' && item.bar)
|
|
357
|
+
? (openBlock(), createElementBlock("span", {
|
|
358
|
+
key: 5,
|
|
359
|
+
class: normalizeClass(["cn-record-list__bar", { 'cn-record-list__bar--over': item.bar.over }]),
|
|
360
|
+
role: "meter",
|
|
361
|
+
"aria-label": item.title || null,
|
|
362
|
+
"aria-valuenow": item.bar.value,
|
|
363
|
+
"aria-valuemin": "0",
|
|
364
|
+
"aria-valuemax": item.bar.max,
|
|
365
|
+
"data-testid": "cn-record-list-bar"
|
|
366
|
+
}, [
|
|
367
|
+
createElementVNode("span", {
|
|
368
|
+
class: "cn-record-list__bar-fill",
|
|
369
|
+
style: normalizeStyle({ width: `${item.bar.share}%` })
|
|
370
|
+
}, null, 4 /* STYLE */)
|
|
371
|
+
], 10 /* CLASS, PROPS */, _hoisted_30))
|
|
372
|
+
: createCommentVNode("v-if", true)
|
|
373
|
+
]))
|
|
374
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
375
|
+
]))
|
|
360
376
|
], 2 /* CLASS */))
|
|
361
377
|
}
|
|
362
378
|
|