@conduction/nextcloud-vue 2.177.0 → 2.178.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 +90 -7
- package/dist/esm/components/CnActionDialog/CnActionDialog.vue2.js.map +1 -1
- package/dist/esm/components/CnActionDialog/CnActionDialog.vue3.js +82 -79
- package/dist/esm/components/CnActionDialog/CnActionDialog.vue3.js.map +1 -1
- package/dist/esm/components/CnCardNotices/CnCardNotices.vue.js +1 -1
- package/dist/esm/components/CnCardNotices/CnCardNotices.vue2.js +45 -7
- package/dist/esm/components/CnCardNotices/CnCardNotices.vue2.js.map +1 -1
- package/dist/esm/components/CnCardNotices/CnCardNotices.vue3.js +1 -1
- package/dist/esm/components/CnCardNotices/CnCardNotices.vue3.js.map +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue.js +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js +40 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js.map +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js +149 -109
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js.map +1 -1
- package/dist/esm/components/CnFilesBrowser/filesBrowserColumns.js +10 -4
- package/dist/esm/components/CnFilesBrowser/filesBrowserColumns.js.map +1 -1
- package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue.js +1 -1
- package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue2.js +112 -1
- package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue3.js +53 -18
- package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexHeaderMenu.vue2.js +3 -3
- package/dist/esm/components/CnIndexPage/CnIndexHeaderMenu.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexHeaderMenu.vue3.js +108 -74
- package/dist/esm/components/CnIndexPage/CnIndexHeaderMenu.vue3.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +129 -8
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +46 -36
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
- package/dist/esm/components/CnObjectDataWidget/CnObjectDataWidget.vue.js +1 -1
- package/dist/esm/components/CnObjectDataWidget/CnObjectDataWidget.vue2.js +56 -0
- package/dist/esm/components/CnObjectDataWidget/CnObjectDataWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnObjectDataWidget/CnObjectDataWidget.vue3.js +185 -123
- package/dist/esm/components/CnObjectDataWidget/CnObjectDataWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue.js +1 -1
- package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue2.js +2 -0
- package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue2.js.map +1 -1
- package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue3.js +2 -1
- package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue3.js.map +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue.js +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js +197 -63
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js +244 -161
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnSearchPage/CnSearchPage.vue.js +1 -1
- package/dist/esm/components/CnSearchPage/CnSearchPage.vue2.js +39 -1
- package/dist/esm/components/CnSearchPage/CnSearchPage.vue2.js.map +1 -1
- package/dist/esm/components/CnSearchPage/CnSearchPage.vue3.js +12 -2
- package/dist/esm/components/CnSearchPage/CnSearchPage.vue3.js.map +1 -1
- package/dist/esm/components/CnStepper/CnStepper.vue.js +1 -1
- package/dist/esm/components/CnStepper/CnStepper.vue2.js.map +1 -1
- package/dist/esm/components/CnStepper/CnStepper.vue3.js.map +1 -1
- package/dist/esm/components/CnTaskFormFields/CnTaskFormFields.vue.js +1 -1
- package/dist/esm/components/CnTaskFormFields/CnTaskFormFields.vue2.js +51 -2
- package/dist/esm/components/CnTaskFormFields/CnTaskFormFields.vue2.js.map +1 -1
- package/dist/esm/components/CnTaskFormFields/CnTaskFormFields.vue3.js +49 -11
- package/dist/esm/components/CnTaskFormFields/CnTaskFormFields.vue3.js.map +1 -1
- package/dist/esm/components/CnTaskFormWidget/CnTaskFormWidget.vue.js +9 -0
- package/dist/esm/components/CnTaskFormWidget/CnTaskFormWidget.vue.js.map +1 -0
- package/dist/esm/components/CnTaskFormWidget/CnTaskFormWidget.vue2.js +328 -0
- package/dist/esm/components/CnTaskFormWidget/CnTaskFormWidget.vue2.js.map +1 -0
- package/dist/esm/components/CnTaskFormWidget/CnTaskFormWidget.vue3.js +85 -0
- package/dist/esm/components/CnTaskFormWidget/CnTaskFormWidget.vue3.js.map +1 -0
- package/dist/esm/components/CnTaskFormWidget/index.js +24 -0
- package/dist/esm/components/CnTaskFormWidget/index.js.map +1 -0
- package/dist/esm/components/CnTasksWidget/CnTasksWidget.vue.js +1 -1
- package/dist/esm/components/CnTasksWidget/CnTasksWidget.vue2.js +8 -2
- package/dist/esm/components/CnTasksWidget/CnTasksWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnTasksWidget/CnTasksWidget.vue3.js +16 -3
- package/dist/esm/components/CnTasksWidget/CnTasksWidget.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/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/l10n/en.json.js +12 -0
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +12 -0
- package/dist/esm/l10n/nl.json.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +637 -475
- package/dist/esm/utils/fieldPill.js +77 -0
- package/dist/esm/utils/fieldPill.js.map +1 -0
- package/dist/esm/utils/libraryWidgetKeys.js +1 -0
- package/dist/esm/utils/libraryWidgetKeys.js.map +1 -1
- package/dist/esm/utils/searchRefusal.js +35 -1
- package/dist/esm/utils/searchRefusal.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 +7416 -5865
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +637 -475
- package/l10n/en.json +12 -0
- package/l10n/nl.json +12 -0
- package/package.json +1 -1
- package/src/components/CnActionDialog/CnActionDialog.vue +116 -9
- package/src/components/CnCardNotices/CnCardNotices.vue +46 -8
- package/src/components/CnFilesBrowser/CnFilesBrowser.vue +61 -2
- package/src/components/CnFilesBrowser/filesBrowserColumns.js +10 -4
- package/src/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue +141 -1
- package/src/components/CnIndexPage/CnIndexHeaderMenu.vue +22 -4
- package/src/components/CnIndexPage/CnIndexPage.vue +143 -13
- package/src/components/CnObjectDataWidget/CnObjectDataWidget.vue +148 -4
- package/src/components/CnObjectSidebar/CnFilesTab.vue +3 -0
- package/src/components/CnRecordListWidget/CnRecordListWidget.vue +310 -66
- package/src/components/CnSearchPage/CnSearchPage.vue +50 -1
- package/src/components/CnStepper/CnStepper.vue +14 -5
- package/src/components/CnTaskFormFields/CnTaskFormFields.md +1 -0
- package/src/components/CnTaskFormFields/CnTaskFormFields.vue +89 -3
- package/src/components/CnTaskFormWidget/CnTaskFormWidget.vue +400 -0
- package/src/components/CnTaskFormWidget/index.js +23 -0
- package/src/components/CnTasksWidget/CnTasksWidget.vue +17 -3
- package/src/components/CnWidgetGrid/registerDashboardWidgets.js +1 -0
- package/src/components/index.js +1 -0
- package/src/css/index-page.css +6 -0
- package/src/index.js +1 -0
- package/src/utils/fieldPill.js +73 -0
- package/src/utils/libraryWidgetKeys.js +1 -0
- package/src/utils/searchRefusal.js +33 -0
- package/src/utils/widgetDispatch.js +1 -1
|
@@ -1,97 +1,93 @@
|
|
|
1
|
-
import { resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, toDisplayString, createSlots, createCommentVNode, createElementBlock, createElementVNode, normalizeClass, Fragment, renderList } from 'vue';
|
|
1
|
+
import { resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, toDisplayString, createSlots, createCommentVNode, createElementBlock, normalizeStyle, createElementVNode, normalizeClass, Fragment, renderList } from 'vue';
|
|
2
2
|
|
|
3
3
|
const _hoisted_1 = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "cn-action-dialog"
|
|
6
|
-
};
|
|
7
|
-
const _hoisted_2 = {
|
|
8
4
|
key: 0,
|
|
9
5
|
class: "cn-action-dialog__summary",
|
|
10
6
|
"data-testid": "cn-action-dialog-summary"
|
|
11
7
|
};
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
8
|
+
const _hoisted_2 = { class: "cn-action-dialog__summary-icon" };
|
|
9
|
+
const _hoisted_3 = { class: "cn-action-dialog__summary-text" };
|
|
10
|
+
const _hoisted_4 = {
|
|
15
11
|
key: 0,
|
|
16
12
|
class: "cn-action-dialog__muted"
|
|
17
13
|
};
|
|
18
|
-
const
|
|
14
|
+
const _hoisted_5 = {
|
|
19
15
|
key: 0,
|
|
20
16
|
class: "cn-action-dialog__title"
|
|
21
17
|
};
|
|
22
|
-
const
|
|
23
|
-
const
|
|
18
|
+
const _hoisted_6 = { class: "cn-action-dialog__facts" };
|
|
19
|
+
const _hoisted_7 = {
|
|
24
20
|
key: 1,
|
|
25
21
|
class: "cn-action-dialog__section",
|
|
26
22
|
"data-testid": "cn-action-dialog-checklist"
|
|
27
23
|
};
|
|
28
|
-
const
|
|
24
|
+
const _hoisted_8 = {
|
|
29
25
|
key: 0,
|
|
30
26
|
class: "cn-action-dialog__title"
|
|
31
27
|
};
|
|
32
|
-
const
|
|
28
|
+
const _hoisted_9 = {
|
|
33
29
|
key: 1,
|
|
34
30
|
class: "cn-action-dialog__muted",
|
|
35
31
|
role: "status"
|
|
36
32
|
};
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
33
|
+
const _hoisted_10 = { class: "cn-action-dialog__checks" };
|
|
34
|
+
const _hoisted_11 = ["data-testid", "data-met"];
|
|
35
|
+
const _hoisted_12 = { class: "cn-action-dialog__check-label" };
|
|
36
|
+
const _hoisted_13 = {
|
|
41
37
|
key: 3,
|
|
42
38
|
class: "cn-action-dialog__muted"
|
|
43
39
|
};
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
40
|
+
const _hoisted_14 = ["data-testid"];
|
|
41
|
+
const _hoisted_15 = { class: "cn-action-dialog__checkbox-text" };
|
|
42
|
+
const _hoisted_16 = { class: "cn-action-dialog__checkbox-label" };
|
|
43
|
+
const _hoisted_17 = {
|
|
48
44
|
key: 0,
|
|
49
45
|
class: "cn-action-dialog__muted"
|
|
50
46
|
};
|
|
51
|
-
const
|
|
52
|
-
const
|
|
53
|
-
const
|
|
47
|
+
const _hoisted_18 = ["data-testid"];
|
|
48
|
+
const _hoisted_19 = { class: "cn-action-dialog__checks-legend" };
|
|
49
|
+
const _hoisted_20 = {
|
|
54
50
|
class: "cn-action-dialog__columns cn-action-dialog__columns--head",
|
|
55
51
|
"aria-hidden": "true"
|
|
56
52
|
};
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
const
|
|
53
|
+
const _hoisted_21 = ["data-testid"];
|
|
54
|
+
const _hoisted_22 = { class: "cn-action-dialog__checkbox-text" };
|
|
55
|
+
const _hoisted_23 = { class: "cn-action-dialog__checkbox-label" };
|
|
56
|
+
const _hoisted_24 = {
|
|
61
57
|
key: 0,
|
|
62
58
|
class: "cn-action-dialog__muted"
|
|
63
59
|
};
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
const
|
|
60
|
+
const _hoisted_25 = { class: "cn-action-dialog__checkbox-text" };
|
|
61
|
+
const _hoisted_26 = { class: "cn-action-dialog__checkbox-label" };
|
|
62
|
+
const _hoisted_27 = {
|
|
67
63
|
key: 0,
|
|
68
64
|
class: "cn-action-dialog__muted"
|
|
69
65
|
};
|
|
70
|
-
const
|
|
66
|
+
const _hoisted_28 = {
|
|
71
67
|
key: 1,
|
|
72
68
|
class: "cn-action-dialog__muted"
|
|
73
69
|
};
|
|
74
|
-
const
|
|
75
|
-
const
|
|
70
|
+
const _hoisted_29 = ["data-testid"];
|
|
71
|
+
const _hoisted_30 = {
|
|
76
72
|
key: 8,
|
|
77
73
|
class: "cn-action-dialog__muted"
|
|
78
74
|
};
|
|
79
|
-
const
|
|
80
|
-
const
|
|
75
|
+
const _hoisted_31 = ["data-testid"];
|
|
76
|
+
const _hoisted_32 = {
|
|
81
77
|
key: 0,
|
|
82
78
|
class: "cn-action-dialog__field cn-action-dialog__reason"
|
|
83
79
|
};
|
|
84
|
-
const
|
|
80
|
+
const _hoisted_33 = {
|
|
85
81
|
key: 0,
|
|
86
82
|
class: "cn-action-dialog__muted cn-action-dialog__hint"
|
|
87
83
|
};
|
|
88
|
-
const
|
|
84
|
+
const _hoisted_34 = {
|
|
89
85
|
key: 2,
|
|
90
86
|
class: "cn-action-dialog__error",
|
|
91
87
|
role: "alert",
|
|
92
88
|
"data-testid": "cn-action-dialog-refusal"
|
|
93
89
|
};
|
|
94
|
-
const
|
|
90
|
+
const _hoisted_35 = {
|
|
95
91
|
key: 1,
|
|
96
92
|
role: "status",
|
|
97
93
|
"data-testid": "cn-action-dialog-done"
|
|
@@ -163,19 +159,23 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
163
159
|
]),
|
|
164
160
|
default: withCtx(() => [
|
|
165
161
|
(!$data.done)
|
|
166
|
-
? (openBlock(), createElementBlock("div",
|
|
162
|
+
? (openBlock(), createElementBlock("div", {
|
|
163
|
+
key: 0,
|
|
164
|
+
class: "cn-action-dialog",
|
|
165
|
+
style: normalizeStyle($options.partsGap)
|
|
166
|
+
}, [
|
|
167
167
|
($options.summary)
|
|
168
|
-
? (openBlock(), createElementBlock("div",
|
|
169
|
-
createElementVNode("span",
|
|
168
|
+
? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
169
|
+
createElementVNode("span", _hoisted_2, [
|
|
170
170
|
createVNode(_component_CnIcon, {
|
|
171
171
|
name: $props.config.summary.icon || 'FolderOutline',
|
|
172
172
|
size: 20
|
|
173
173
|
}, null, 8 /* PROPS */, ["name"])
|
|
174
174
|
]),
|
|
175
|
-
createElementVNode("span",
|
|
175
|
+
createElementVNode("span", _hoisted_3, [
|
|
176
176
|
createElementVNode("strong", null, toDisplayString($options.summary.title), 1 /* TEXT */),
|
|
177
177
|
($options.summary.meta)
|
|
178
|
-
? (openBlock(), createElementBlock("span",
|
|
178
|
+
? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString($options.summary.meta), 1 /* TEXT */))
|
|
179
179
|
: createCommentVNode("v-if", true)
|
|
180
180
|
]),
|
|
181
181
|
($options.summary.badge)
|
|
@@ -193,9 +193,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
193
193
|
"data-testid": "cn-action-dialog-facts"
|
|
194
194
|
}, [
|
|
195
195
|
(section.title)
|
|
196
|
-
? (openBlock(), createElementBlock("h3",
|
|
196
|
+
? (openBlock(), createElementBlock("h3", _hoisted_5, toDisplayString(section.title), 1 /* TEXT */))
|
|
197
197
|
: createCommentVNode("v-if", true),
|
|
198
|
-
createElementVNode("dl",
|
|
198
|
+
createElementVNode("dl", _hoisted_6, [
|
|
199
199
|
(openBlock(true), createElementBlock(Fragment, null, renderList(section.facts, (fact) => {
|
|
200
200
|
return (openBlock(), createElementBlock("div", {
|
|
201
201
|
key: fact.label,
|
|
@@ -209,14 +209,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
209
209
|
]))
|
|
210
210
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
211
211
|
($props.config.checklist)
|
|
212
|
-
? (openBlock(), createElementBlock("section",
|
|
212
|
+
? (openBlock(), createElementBlock("section", _hoisted_7, [
|
|
213
213
|
($props.config.checklist.title)
|
|
214
|
-
? (openBlock(), createElementBlock("h3",
|
|
214
|
+
? (openBlock(), createElementBlock("h3", _hoisted_8, toDisplayString($options.text($props.config.checklist.title)), 1 /* TEXT */))
|
|
215
215
|
: createCommentVNode("v-if", true),
|
|
216
216
|
($data.checklistError)
|
|
217
|
-
? (openBlock(), createElementBlock("p",
|
|
217
|
+
? (openBlock(), createElementBlock("p", _hoisted_9, toDisplayString($data.checklistError), 1 /* TEXT */))
|
|
218
218
|
: createCommentVNode("v-if", true),
|
|
219
|
-
createElementVNode("ul",
|
|
219
|
+
createElementVNode("ul", _hoisted_10, [
|
|
220
220
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.checklist, (item) => {
|
|
221
221
|
return (openBlock(), createElementBlock("li", {
|
|
222
222
|
key: item.id,
|
|
@@ -241,11 +241,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
241
241
|
size: 20,
|
|
242
242
|
class: "cn-action-dialog__check-icon"
|
|
243
243
|
})),
|
|
244
|
-
createElementVNode("strong",
|
|
244
|
+
createElementVNode("strong", _hoisted_12, toDisplayString(item.label), 1 /* TEXT */),
|
|
245
245
|
(item.detail)
|
|
246
|
-
? (openBlock(), createElementBlock("span",
|
|
246
|
+
? (openBlock(), createElementBlock("span", _hoisted_13, toDisplayString(item.detail), 1 /* TEXT */))
|
|
247
247
|
: createCommentVNode("v-if", true)
|
|
248
|
-
], 8 /* PROPS */,
|
|
248
|
+
], 8 /* PROPS */, _hoisted_11))
|
|
249
249
|
}), 128 /* KEYED_FRAGMENT */))
|
|
250
250
|
])
|
|
251
251
|
]))
|
|
@@ -262,21 +262,21 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
262
262
|
(field.type === 'checkbox')
|
|
263
263
|
? (openBlock(), createBlock(_component_NcCheckboxRadioSwitch, {
|
|
264
264
|
key: 0,
|
|
265
|
-
class: "cn-action-dialog__checkbox",
|
|
265
|
+
class: normalizeClass(["cn-action-dialog__checkbox", { 'cn-action-dialog__checkbox--plain': field.look === 'plain' }]),
|
|
266
266
|
modelValue: $options.checkboxValue(field),
|
|
267
267
|
type: "checkbox",
|
|
268
268
|
"onUpdate:modelValue": (on) => $options.setChecked(field.field, on)
|
|
269
269
|
}, {
|
|
270
270
|
default: withCtx(() => [
|
|
271
|
-
createElementVNode("span",
|
|
272
|
-
createElementVNode("strong",
|
|
271
|
+
createElementVNode("span", _hoisted_15, [
|
|
272
|
+
createElementVNode("strong", _hoisted_16, toDisplayString($options.fill(field.label) || field.field), 1 /* TEXT */),
|
|
273
273
|
(field.hint)
|
|
274
|
-
? (openBlock(), createElementBlock("span",
|
|
274
|
+
? (openBlock(), createElementBlock("span", _hoisted_17, toDisplayString($options.fill(field.hint)), 1 /* TEXT */))
|
|
275
275
|
: createCommentVNode("v-if", true)
|
|
276
276
|
])
|
|
277
277
|
]),
|
|
278
278
|
_: 2 /* DYNAMIC */
|
|
279
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "onUpdate:modelValue"]))
|
|
279
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "modelValue", "onUpdate:modelValue"]))
|
|
280
280
|
: (field.type === 'search')
|
|
281
281
|
? (openBlock(), createBlock(_component_CnSearchSelect, {
|
|
282
282
|
key: 1,
|
|
@@ -296,10 +296,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
296
296
|
class: "cn-action-dialog__checks",
|
|
297
297
|
"data-testid": `cn-action-dialog-checks-${field.field}`
|
|
298
298
|
}, [
|
|
299
|
-
createElementVNode("legend",
|
|
299
|
+
createElementVNode("legend", _hoisted_19, toDisplayString($options.fill(field.label) || field.field), 1 /* TEXT */),
|
|
300
300
|
($options.hasColumns(field))
|
|
301
301
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
302
|
-
createElementVNode("div",
|
|
302
|
+
createElementVNode("div", _hoisted_20, [
|
|
303
303
|
_cache[1] || (_cache[1] = createElementVNode("span", null, null, -1 /* CACHED */)),
|
|
304
304
|
(openBlock(true), createElementBlock(Fragment, null, renderList(field.columns, (column) => {
|
|
305
305
|
return (openBlock(), createElementBlock("span", {
|
|
@@ -313,10 +313,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
313
313
|
class: "cn-action-dialog__columns",
|
|
314
314
|
"data-testid": `cn-action-dialog-columns-${field.field}-${item.value}`
|
|
315
315
|
}, [
|
|
316
|
-
createElementVNode("span",
|
|
317
|
-
createElementVNode("strong",
|
|
316
|
+
createElementVNode("span", _hoisted_22, [
|
|
317
|
+
createElementVNode("strong", _hoisted_23, toDisplayString(item.label), 1 /* TEXT */),
|
|
318
318
|
(item.secondary)
|
|
319
|
-
? (openBlock(), createElementBlock("span",
|
|
319
|
+
? (openBlock(), createElementBlock("span", _hoisted_24, toDisplayString(item.secondary), 1 /* TEXT */))
|
|
320
320
|
: createCommentVNode("v-if", true)
|
|
321
321
|
]),
|
|
322
322
|
(openBlock(true), createElementBlock(Fragment, null, renderList(field.columns, (column) => {
|
|
@@ -328,7 +328,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
328
328
|
"onUpdate:modelValue": (on) => $options.setCheck(column, item.value, on)
|
|
329
329
|
}, null, 8 /* PROPS */, ["modelValue", "ariaLabel", "onUpdate:modelValue"]))
|
|
330
330
|
}), 128 /* KEYED_FRAGMENT */))
|
|
331
|
-
], 8 /* PROPS */,
|
|
331
|
+
], 8 /* PROPS */, _hoisted_21))
|
|
332
332
|
}), 128 /* KEYED_FRAGMENT */))
|
|
333
333
|
], 64 /* STABLE_FRAGMENT */))
|
|
334
334
|
: createCommentVNode("v-if", true),
|
|
@@ -340,10 +340,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
340
340
|
"onUpdate:modelValue": (on) => $options.setCheck(field, item.value, on)
|
|
341
341
|
}, {
|
|
342
342
|
default: withCtx(() => [
|
|
343
|
-
createElementVNode("span",
|
|
344
|
-
createElementVNode("strong",
|
|
343
|
+
createElementVNode("span", _hoisted_25, [
|
|
344
|
+
createElementVNode("strong", _hoisted_26, toDisplayString(item.label), 1 /* TEXT */),
|
|
345
345
|
(item.secondary)
|
|
346
|
-
? (openBlock(), createElementBlock("span",
|
|
346
|
+
? (openBlock(), createElementBlock("span", _hoisted_27, toDisplayString(item.secondary), 1 /* TEXT */))
|
|
347
347
|
: createCommentVNode("v-if", true)
|
|
348
348
|
])
|
|
349
349
|
]),
|
|
@@ -351,7 +351,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
351
351
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "onUpdate:modelValue"]))
|
|
352
352
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
353
353
|
($options.checkItems(field).length === 0)
|
|
354
|
-
? (openBlock(), createElementBlock("span",
|
|
354
|
+
? (openBlock(), createElementBlock("span", _hoisted_28, toDisplayString($options.text(field.emptyText) || $options.t('nextcloud-vue', 'Nothing to choose from.')), 1 /* TEXT */))
|
|
355
355
|
: createCommentVNode("v-if", true),
|
|
356
356
|
($options.conflicts(field).length > 0)
|
|
357
357
|
? (openBlock(), createElementBlock("span", {
|
|
@@ -359,17 +359,20 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
359
359
|
class: "cn-action-dialog__error",
|
|
360
360
|
role: "alert",
|
|
361
361
|
"data-testid": `cn-action-dialog-conflict-${field.field}`
|
|
362
|
-
}, toDisplayString($options.text(field.exclusiveText) || $options.t('nextcloud-vue', 'An item cannot be ticked in more than one column.')), 9 /* TEXT, PROPS */,
|
|
362
|
+
}, toDisplayString($options.text(field.exclusiveText) || $options.t('nextcloud-vue', 'An item cannot be ticked in more than one column.')), 9 /* TEXT, PROPS */, _hoisted_29))
|
|
363
363
|
: createCommentVNode("v-if", true)
|
|
364
|
-
], 8 /* PROPS */,
|
|
364
|
+
], 8 /* PROPS */, _hoisted_18))
|
|
365
365
|
: (field.type === 'cards')
|
|
366
366
|
? (openBlock(), createBlock(_component_CnChoiceCards, {
|
|
367
367
|
key: 3,
|
|
368
368
|
modelValue: $options.cardsValue(field),
|
|
369
369
|
options: $options.cardOptions(field),
|
|
370
370
|
label: $options.fill(field.label) || field.field,
|
|
371
|
+
layout: field.layout === 'rows' ? 'rows' : 'cards',
|
|
372
|
+
columns: typeof field.columns === 'number' ? field.columns : 0,
|
|
373
|
+
hideLabel: field.hideLabel === true,
|
|
371
374
|
"onUpdate:modelValue": (value) => $options.setValue(field.field, value)
|
|
372
|
-
}, null, 8 /* PROPS */, ["modelValue", "options", "label", "onUpdate:modelValue"]))
|
|
375
|
+
}, null, 8 /* PROPS */, ["modelValue", "options", "label", "layout", "columns", "hideLabel", "onUpdate:modelValue"]))
|
|
373
376
|
: createCommentVNode("v-if", true),
|
|
374
377
|
($options.labelsOutside(field))
|
|
375
378
|
? (openBlock(), createBlock(_component_CnFormField, {
|
|
@@ -416,7 +419,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
416
419
|
}, null, 8 /* PROPS */, ["id", "modelValue", "type", "label", "labelOutside", "onUpdate:modelValue"]))
|
|
417
420
|
: createCommentVNode("v-if", true),
|
|
418
421
|
(field.hint && field.type !== 'checkbox')
|
|
419
|
-
? (openBlock(), createElementBlock("span",
|
|
422
|
+
? (openBlock(), createElementBlock("span", _hoisted_30, toDisplayString($options.fill(field.hint)), 1 /* TEXT */))
|
|
420
423
|
: createCommentVNode("v-if", true),
|
|
421
424
|
($data.optionsErrors[field.field])
|
|
422
425
|
? (openBlock(), createElementBlock("span", {
|
|
@@ -424,14 +427,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
424
427
|
class: "cn-action-dialog__error",
|
|
425
428
|
role: "alert",
|
|
426
429
|
"data-testid": `cn-action-dialog-options-error-${field.field}`
|
|
427
|
-
}, toDisplayString($data.optionsErrors[field.field]), 9 /* TEXT, PROPS */,
|
|
430
|
+
}, toDisplayString($data.optionsErrors[field.field]), 9 /* TEXT, PROPS */, _hoisted_31))
|
|
428
431
|
: createCommentVNode("v-if", true)
|
|
429
|
-
], 8 /* PROPS */,
|
|
432
|
+
], 8 /* PROPS */, _hoisted_14))
|
|
430
433
|
}), 128 /* KEYED_FRAGMENT */))
|
|
431
434
|
: (part === 'reason')
|
|
432
435
|
? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
433
436
|
($props.config.reason)
|
|
434
|
-
? (openBlock(), createElementBlock("div",
|
|
437
|
+
? (openBlock(), createElementBlock("div", _hoisted_32, [
|
|
435
438
|
createVNode(_component_NcTextArea, {
|
|
436
439
|
id: $data.reasonId,
|
|
437
440
|
modelValue: $data.reason,
|
|
@@ -443,7 +446,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
443
446
|
"data-testid": "cn-action-dialog-reason"
|
|
444
447
|
}, null, 8 /* PROPS */, ["id", "modelValue", "label", "rows"]),
|
|
445
448
|
($props.config.reason.hint)
|
|
446
|
-
? (openBlock(), createElementBlock("span",
|
|
449
|
+
? (openBlock(), createElementBlock("span", _hoisted_33, toDisplayString($options.text($props.config.reason.hint)), 1 /* TEXT */))
|
|
447
450
|
: createCommentVNode("v-if", true)
|
|
448
451
|
]))
|
|
449
452
|
: createCommentVNode("v-if", true)
|
|
@@ -480,10 +483,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
480
483
|
], 64 /* STABLE_FRAGMENT */))
|
|
481
484
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
482
485
|
($data.refusal)
|
|
483
|
-
? (openBlock(), createElementBlock("p",
|
|
486
|
+
? (openBlock(), createElementBlock("p", _hoisted_34, toDisplayString($data.refusal), 1 /* TEXT */))
|
|
484
487
|
: createCommentVNode("v-if", true)
|
|
485
|
-
]))
|
|
486
|
-
: (openBlock(), createElementBlock("p",
|
|
488
|
+
], 4 /* STYLE */))
|
|
489
|
+
: (openBlock(), createElementBlock("p", _hoisted_35, toDisplayString($options.doneMessage), 1 /* TEXT */))
|
|
487
490
|
]),
|
|
488
491
|
_: 1 /* STABLE */
|
|
489
492
|
}, 8 /* PROPS */, ["name", "eyebrow", "subtitle", "noClose", "onClosing"]))
|