@conduction/nextcloud-vue 2.165.0 → 2.166.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 +7 -0
- package/dist/esm/components/CnActionButtons/CnActionButtons.vue2.js.map +1 -1
- package/dist/esm/components/CnActionButtons/CnActionButtons.vue3.js.map +1 -1
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue.js +1 -1
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue2.js +10 -0
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue2.js.map +1 -1
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue3.js +1 -1
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue3.js.map +1 -1
- package/dist/esm/components/CnChipListManager/CnChipListManager.vue.js +1 -1
- package/dist/esm/components/CnChipListManager/CnChipListManager.vue2.js.map +1 -1
- package/dist/esm/components/CnChipListManager/CnChipListManager.vue3.js.map +1 -1
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue.js +1 -1
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue2.js +50 -7
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue2.js.map +1 -1
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue3.js.map +1 -1
- package/dist/esm/components/CnDataTable/CnDataTable.vue2.js +13 -0
- package/dist/esm/components/CnDataTable/CnDataTable.vue2.js.map +1 -1
- package/dist/esm/components/CnDataTable/CnDataTable.vue3.js +1 -0
- package/dist/esm/components/CnDataTable/CnDataTable.vue3.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +39 -4
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js +2 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js.map +1 -1
- package/dist/esm/components/CnExpandableRow/CnExpandableRow.vue.js +1 -1
- package/dist/esm/components/CnExpandableRow/CnExpandableRow.vue2.js.map +1 -1
- package/dist/esm/components/CnExpandableRow/CnExpandableRow.vue3.js.map +1 -1
- package/dist/esm/components/CnFieldGroupsWidget/CnFieldGroupsWidget.vue.js +9 -0
- package/dist/esm/components/CnFieldGroupsWidget/CnFieldGroupsWidget.vue.js.map +1 -0
- package/dist/esm/components/CnFieldGroupsWidget/CnFieldGroupsWidget.vue2.js +232 -0
- package/dist/esm/components/CnFieldGroupsWidget/CnFieldGroupsWidget.vue2.js.map +1 -0
- package/dist/esm/components/CnFieldGroupsWidget/CnFieldGroupsWidget.vue3.js +61 -0
- package/dist/esm/components/CnFieldGroupsWidget/CnFieldGroupsWidget.vue3.js.map +1 -0
- package/dist/esm/components/CnFieldGroupsWidget/index.js +28 -0
- package/dist/esm/components/CnFieldGroupsWidget/index.js.map +1 -0
- package/dist/esm/components/CnFieldListWidget/CnFieldListWidget.vue.js +1 -1
- package/dist/esm/components/CnFieldListWidget/CnFieldListWidget.vue2.js +80 -6
- package/dist/esm/components/CnFieldListWidget/CnFieldListWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnFieldListWidget/CnFieldListWidget.vue3.js +361 -289
- package/dist/esm/components/CnFieldListWidget/CnFieldListWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue.js +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue2.js +9 -0
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue3.js +2 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowRunSummary.vue.js +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowRunSummary.vue2.js +21 -0
- package/dist/esm/components/CnFlowDetail/CnFlowRunSummary.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowRunSummary.vue3.js +12 -2
- package/dist/esm/components/CnFlowDetail/CnFlowRunSummary.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue.js +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js +17 -0
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js +6 -3
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js.map +1 -1
- package/dist/esm/components/CnGraphCanvas/CnGraphCanvas.vue2.js +33 -2
- package/dist/esm/components/CnGraphCanvas/CnGraphCanvas.vue2.js.map +1 -1
- package/dist/esm/components/CnGraphCanvas/CnGraphCanvas.vue3.js +2 -2
- package/dist/esm/components/CnGraphCanvas/CnGraphCanvas.vue3.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +83 -8
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +2 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinkDialog.vue.js +9 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinkDialog.vue.js.map +1 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinkDialog.vue2.js +187 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinkDialog.vue2.js.map +1 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinkDialog.vue3.js +106 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinkDialog.vue3.js.map +1 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinksWidget.vue.js +9 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinksWidget.vue.js.map +1 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinksWidget.vue2.js +421 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinksWidget.vue2.js.map +1 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinksWidget.vue3.js +131 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinksWidget.vue3.js.map +1 -0
- package/dist/esm/components/CnObjectLinksWidget/index.js +29 -0
- package/dist/esm/components/CnObjectLinksWidget/index.js.map +1 -0
- package/dist/esm/components/CnObjectLinksWidget/objectLinks.js +22 -0
- package/dist/esm/components/CnObjectLinksWidget/objectLinks.js.map +1 -0
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue.js +1 -1
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue2.js +48 -13
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue3.js +44 -20
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnPagination/CnPagination.vue2.js +26 -0
- package/dist/esm/components/CnPagination/CnPagination.vue2.js.map +1 -1
- package/dist/esm/components/CnPagination/CnPagination.vue3.js +40 -37
- package/dist/esm/components/CnPagination/CnPagination.vue3.js.map +1 -1
- package/dist/esm/components/CnWidgetGrid/registerDashboardWidgets.js +2 -0
- package/dist/esm/components/CnWidgetGrid/registerDashboardWidgets.js.map +1 -1
- package/dist/esm/components/CnWidgetObjectTable/CnWidgetObjectTable.vue.js +1 -1
- package/dist/esm/components/CnWidgetObjectTable/CnWidgetObjectTable.vue2.js +4 -0
- package/dist/esm/components/CnWidgetObjectTable/CnWidgetObjectTable.vue2.js.map +1 -1
- package/dist/esm/components/CnWidgetObjectTable/CnWidgetObjectTable.vue3.js.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/l10n/en.json.js +18 -1
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +18 -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 +635 -329
- package/dist/esm/utils/actionsDispatcher.js +9 -5
- package/dist/esm/utils/actionsDispatcher.js.map +1 -1
- package/dist/esm/utils/libraryWidgetKeys.js +2 -0
- package/dist/esm/utils/libraryWidgetKeys.js.map +1 -1
- package/dist/esm/utils/objectParties.js +68 -1
- package/dist/esm/utils/objectParties.js.map +1 -1
- package/dist/esm/utils/overlayInset.js +60 -0
- package/dist/esm/utils/overlayInset.js.map +1 -0
- package/dist/esm/utils/validateManifestV2.compiled.js +2 -2
- package/dist/esm/utils/validateManifestV2.compiled.js.map +1 -1
- package/dist/esm/utils/widgetDispatch.js +4 -1
- package/dist/esm/utils/widgetDispatch.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +8444 -6584
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +635 -329
- package/l10n/en.json +18 -1
- package/l10n/nl.json +18 -1
- package/package.json +1 -1
- package/src/components/CnActionButtons/CnActionButtons.vue +7 -0
- package/src/components/CnAuditTrailCard/CnAuditTrailCard.vue +11 -1
- package/src/components/CnChipListManager/CnChipListManager.vue +4 -1
- package/src/components/CnDashboardGrid/CnDashboardGrid.vue +50 -7
- package/src/components/CnDataTable/CnDataTable.md +1 -0
- package/src/components/CnDataTable/CnDataTable.vue +14 -0
- package/src/components/CnDetailPage/CnDetailPage.md +1 -0
- package/src/components/CnDetailPage/CnDetailPage.vue +40 -4
- package/src/components/CnExpandableRow/CnExpandableRow.vue +7 -4
- package/src/components/CnFieldGroupsWidget/CnFieldGroupsWidget.vue +287 -0
- package/src/components/CnFieldGroupsWidget/index.js +27 -0
- package/src/components/CnFieldListWidget/CnFieldListWidget.vue +162 -7
- package/src/components/CnFlowDetail/CnFlowDetail.vue +10 -0
- package/src/components/CnFlowDetail/CnFlowRunSummary.vue +26 -1
- package/src/components/CnFlowsPage/CnFlowBoard.vue +90 -4
- package/src/components/CnGraphCanvas/CnGraphCanvas.vue +35 -4
- package/src/components/CnIndexPage/CnIndexPage.md +1 -1
- package/src/components/CnIndexPage/CnIndexPage.vue +83 -7
- package/src/components/CnObjectLinksWidget/CnObjectLinkDialog.vue +267 -0
- package/src/components/CnObjectLinksWidget/CnObjectLinksWidget.vue +532 -0
- package/src/components/CnObjectLinksWidget/index.js +28 -0
- package/src/components/CnObjectLinksWidget/objectLinks.js +19 -0
- package/src/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue +65 -15
- package/src/components/CnPagination/CnPagination.md +1 -0
- package/src/components/CnPagination/CnPagination.vue +27 -1
- package/src/components/CnWidgetGrid/registerDashboardWidgets.js +2 -0
- package/src/components/CnWidgetObjectTable/CnWidgetObjectTable.vue +4 -0
- package/src/components/index.js +2 -0
- package/src/css/dialog.css +25 -3
- package/src/css/index-page.css +22 -8
- package/src/css/look-board-detail.css +41 -0
- package/src/css/look-board-index.css +52 -1
- package/src/css/look-board.css +17 -0
- package/src/index.js +2 -0
- package/src/schemas/app-manifest-v2.schema.json +3 -3
- package/src/utils/actionsDispatcher.js +9 -5
- package/src/utils/libraryWidgetKeys.js +2 -0
- package/src/utils/objectParties.js +67 -0
- package/src/utils/overlayInset.js +57 -0
- package/src/utils/validateManifestV2.compiled.js +2 -2
- package/src/utils/widgetDispatch.js +4 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createTextVNode, toDisplayString, createCommentVNode, withModifiers, Fragment, renderList, createBlock, createElementVNode, normalizeClass, withKeys,
|
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createTextVNode, toDisplayString, createCommentVNode, withModifiers, Fragment, renderList, createBlock, createElementVNode, mergeProps, normalizeClass, withKeys, createSlots } from 'vue';
|
|
2
2
|
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
class: "cn-field-list-widget",
|
|
@@ -16,76 +16,96 @@ const _hoisted_4 = {
|
|
|
16
16
|
};
|
|
17
17
|
const _hoisted_5 = {
|
|
18
18
|
key: 3,
|
|
19
|
+
class: "cn-field-list-widget__pairs",
|
|
20
|
+
"data-testid": "cn-field-list-pairs"
|
|
21
|
+
};
|
|
22
|
+
const _hoisted_6 = ["data-testid"];
|
|
23
|
+
const _hoisted_7 = { class: "cn-field-list-widget__pair-label" };
|
|
24
|
+
const _hoisted_8 = { class: "cn-field-list-widget__pair-value" };
|
|
25
|
+
const _hoisted_9 = ["href"];
|
|
26
|
+
const _hoisted_10 = {
|
|
27
|
+
key: 1,
|
|
28
|
+
class: "cn-field-list-widget__pair-text"
|
|
29
|
+
};
|
|
30
|
+
const _hoisted_11 = {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "cn-field-list-widget__pair",
|
|
33
|
+
"data-testid": "cn-field-list-pair-empty"
|
|
34
|
+
};
|
|
35
|
+
const _hoisted_12 = { class: "cn-field-list-widget__pair-label" };
|
|
36
|
+
const _hoisted_13 = { class: "cn-field-list-widget__pair-value cn-field-list-widget__pair-value--empty" };
|
|
37
|
+
const _hoisted_14 = {
|
|
38
|
+
key: 4,
|
|
19
39
|
class: "cn-field-list-widget__empty",
|
|
20
40
|
"data-testid": "cn-field-list-empty"
|
|
21
41
|
};
|
|
22
|
-
const
|
|
23
|
-
key:
|
|
42
|
+
const _hoisted_15 = {
|
|
43
|
+
key: 5,
|
|
24
44
|
class: "cn-field-list-widget__table-wrap"
|
|
25
45
|
};
|
|
26
|
-
const
|
|
46
|
+
const _hoisted_16 = {
|
|
27
47
|
class: "cn-field-list-widget__table",
|
|
28
48
|
"data-testid": "cn-field-list-table"
|
|
29
49
|
};
|
|
30
|
-
const
|
|
50
|
+
const _hoisted_17 = {
|
|
31
51
|
key: 0,
|
|
32
52
|
scope: "col",
|
|
33
53
|
class: "cn-field-list-widget__th cn-field-list-widget__th--menu"
|
|
34
54
|
};
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
55
|
+
const _hoisted_18 = { class: "cn-field-list-widget__sr" };
|
|
56
|
+
const _hoisted_19 = ["data-testid"];
|
|
57
|
+
const _hoisted_20 = { key: 1 };
|
|
58
|
+
const _hoisted_21 = {
|
|
39
59
|
key: 2,
|
|
40
60
|
class: "cn-field-list-widget__code"
|
|
41
61
|
};
|
|
42
|
-
const
|
|
62
|
+
const _hoisted_22 = {
|
|
43
63
|
key: 0,
|
|
44
64
|
class: "cn-field-list-widget__td cn-field-list-widget__td--menu"
|
|
45
65
|
};
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
66
|
+
const _hoisted_23 = ["data-testid"];
|
|
67
|
+
const _hoisted_24 = { class: "cn-field-list-widget__band-text" };
|
|
68
|
+
const _hoisted_25 = ["draggable", "data-testid", "onDragstart", "onDrop"];
|
|
69
|
+
const _hoisted_26 = { class: "cn-field-list-widget__line" };
|
|
70
|
+
const _hoisted_27 = ["aria-label", "data-testid", "onKeydown"];
|
|
71
|
+
const _hoisted_28 = {
|
|
52
72
|
key: 1,
|
|
53
73
|
class: "cn-field-list-widget__avatar",
|
|
54
74
|
"aria-hidden": "true"
|
|
55
75
|
};
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
const
|
|
76
|
+
const _hoisted_29 = { class: "cn-field-list-widget__main" };
|
|
77
|
+
const _hoisted_30 = ["href"];
|
|
78
|
+
const _hoisted_31 = {
|
|
59
79
|
key: 1,
|
|
60
80
|
class: "cn-field-list-widget__title"
|
|
61
81
|
};
|
|
62
|
-
const
|
|
82
|
+
const _hoisted_32 = {
|
|
63
83
|
key: 2,
|
|
64
84
|
class: "cn-field-list-widget__meta"
|
|
65
85
|
};
|
|
66
|
-
const
|
|
67
|
-
const
|
|
86
|
+
const _hoisted_33 = ["data-testid"];
|
|
87
|
+
const _hoisted_34 = {
|
|
68
88
|
key: 4,
|
|
69
89
|
class: "cn-field-list-widget__aside"
|
|
70
90
|
};
|
|
71
|
-
const
|
|
91
|
+
const _hoisted_35 = {
|
|
72
92
|
key: 0,
|
|
73
93
|
class: "cn-field-list-widget__detail"
|
|
74
94
|
};
|
|
75
|
-
const
|
|
95
|
+
const _hoisted_36 = {
|
|
76
96
|
key: 1,
|
|
77
97
|
class: "cn-field-list-widget__copies"
|
|
78
98
|
};
|
|
79
|
-
const
|
|
80
|
-
key:
|
|
99
|
+
const _hoisted_37 = {
|
|
100
|
+
key: 7,
|
|
81
101
|
class: "cn-field-list-widget__hint"
|
|
82
102
|
};
|
|
83
|
-
const
|
|
84
|
-
key:
|
|
103
|
+
const _hoisted_38 = {
|
|
104
|
+
key: 8,
|
|
85
105
|
class: "cn-field-list-widget__toolbar"
|
|
86
106
|
};
|
|
87
|
-
const
|
|
88
|
-
const
|
|
107
|
+
const _hoisted_39 = ["data-testid"];
|
|
108
|
+
const _hoisted_40 = {
|
|
89
109
|
class: "cn-field-list-widget__sr",
|
|
90
110
|
"aria-live": "polite",
|
|
91
111
|
"data-testid": "cn-field-list-copied"
|
|
@@ -97,9 +117,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
97
117
|
const _component_NcSelect = resolveComponent("NcSelect");
|
|
98
118
|
const _component_NcCheckboxRadioSwitch = resolveComponent("NcCheckboxRadioSwitch");
|
|
99
119
|
const _component_NcTextField = resolveComponent("NcTextField");
|
|
100
|
-
const _component_CnStatusBadge = resolveComponent("CnStatusBadge");
|
|
101
120
|
const _component_NcActionButton = resolveComponent("NcActionButton");
|
|
102
121
|
const _component_NcActions = resolveComponent("NcActions");
|
|
122
|
+
const _component_CnStatusBadge = resolveComponent("CnStatusBadge");
|
|
103
123
|
const _component_DragVertical = resolveComponent("DragVertical");
|
|
104
124
|
const _component_DeleteOutline = resolveComponent("DeleteOutline");
|
|
105
125
|
const _component_NcNoteCard = resolveComponent("NcNoteCard");
|
|
@@ -209,210 +229,182 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
209
229
|
($options.lead)
|
|
210
230
|
? (openBlock(), createElementBlock("p", _hoisted_4, toDisplayString($options.lead), 1 /* TEXT */))
|
|
211
231
|
: createCommentVNode("v-if", true),
|
|
212
|
-
($options.
|
|
213
|
-
? (openBlock(), createElementBlock("
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
?
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
232
|
+
($options.isPairs)
|
|
233
|
+
? (openBlock(), createElementBlock("dl", _hoisted_5, [
|
|
234
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.rows, (row) => {
|
|
235
|
+
return (openBlock(), createElementBlock("div", {
|
|
236
|
+
key: row.key,
|
|
237
|
+
class: "cn-field-list-widget__pair",
|
|
238
|
+
"data-testid": `cn-field-list-pair-${row.key}`
|
|
239
|
+
}, [
|
|
240
|
+
createElementVNode("dt", _hoisted_7, toDisplayString(row.label), 1 /* TEXT */),
|
|
241
|
+
createElementVNode("dd", _hoisted_8, [
|
|
242
|
+
(row.href)
|
|
243
|
+
? (openBlock(), createElementBlock("a", mergeProps({
|
|
244
|
+
key: 0,
|
|
245
|
+
class: "cn-field-list-widget__pair-text",
|
|
246
|
+
href: row.href
|
|
247
|
+
}, { ref_for: true }, row.external ? { target: '_blank', rel: 'noopener noreferrer' } : {}), toDisplayString(row.pairText), 17 /* TEXT, FULL_PROPS */, _hoisted_9))
|
|
248
|
+
: (openBlock(), createElementBlock("span", _hoisted_10, toDisplayString(row.pairText), 1 /* TEXT */)),
|
|
249
|
+
($options.pairMenuItems(row).length > 0)
|
|
250
|
+
? (openBlock(), createBlock(_component_NcActions, {
|
|
251
|
+
key: 2,
|
|
252
|
+
forceMenu: true,
|
|
253
|
+
disabled: $data.busy !== '',
|
|
254
|
+
ariaLabel: `${$options.tr('More actions')}: ${row.title}`,
|
|
255
|
+
"data-testid": `cn-field-list-menu-${row.key}`
|
|
256
|
+
}, {
|
|
257
|
+
default: withCtx(() => [
|
|
258
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.pairMenuItems(row), (item) => {
|
|
259
|
+
return (openBlock(), createBlock(_component_NcActionButton, {
|
|
260
|
+
key: item.id,
|
|
261
|
+
"data-testid": `cn-field-list-menu-${item.id}-${row.key}`,
|
|
262
|
+
onClick: item.run
|
|
263
|
+
}, {
|
|
264
|
+
default: withCtx(() => [
|
|
265
|
+
createTextVNode(toDisplayString(item.label), 1 /* TEXT */)
|
|
266
|
+
]),
|
|
267
|
+
_: 2 /* DYNAMIC */
|
|
268
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["data-testid", "onClick"]))
|
|
269
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
270
|
+
]),
|
|
271
|
+
_: 2 /* DYNAMIC */
|
|
272
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled", "ariaLabel", "data-testid"]))
|
|
273
|
+
: createCommentVNode("v-if", true)
|
|
274
|
+
])
|
|
275
|
+
], 8 /* PROPS */, _hoisted_6))
|
|
276
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
277
|
+
($options.rows.length === 0 && $options.pairsEmptyLabel)
|
|
278
|
+
? (openBlock(), createElementBlock("div", _hoisted_11, [
|
|
279
|
+
createElementVNode("dt", _hoisted_12, toDisplayString($options.pairsEmptyLabel), 1 /* TEXT */),
|
|
280
|
+
createElementVNode("dd", _hoisted_13, toDisplayString($options.emptyLabel), 1 /* TEXT */)
|
|
281
|
+
]))
|
|
282
|
+
: createCommentVNode("v-if", true)
|
|
283
|
+
]))
|
|
284
|
+
: ($options.rows.length === 0)
|
|
285
|
+
? (openBlock(), createElementBlock("p", _hoisted_14, toDisplayString($options.emptyLabel), 1 /* TEXT */))
|
|
286
|
+
: ($options.isTable)
|
|
287
|
+
? (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
288
|
+
createElementVNode("table", _hoisted_16, [
|
|
289
|
+
createElementVNode("thead", null, [
|
|
290
|
+
createElementVNode("tr", null, [
|
|
291
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.tableColumns, (column) => {
|
|
292
|
+
return (openBlock(), createElementBlock("th", {
|
|
242
293
|
key: column.key,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
247
|
-
key: 0,
|
|
248
|
-
label: row.cells[index].pill.label,
|
|
249
|
-
variant: row.cells[index].pill.variant,
|
|
250
|
-
size: "small"
|
|
251
|
-
}, null, 8 /* PROPS */, ["label", "variant"]))
|
|
252
|
-
: (column.strong)
|
|
253
|
-
? (openBlock(), createElementBlock("strong", _hoisted_11, toDisplayString(row.cells[index].text), 1 /* TEXT */))
|
|
254
|
-
: (column.code)
|
|
255
|
-
? (openBlock(), createElementBlock("code", _hoisted_12, toDisplayString(row.cells[index].text), 1 /* TEXT */))
|
|
256
|
-
: (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
257
|
-
createTextVNode(toDisplayString(row.cells[index].text), 1 /* TEXT */)
|
|
258
|
-
], 64 /* STABLE_FRAGMENT */))
|
|
259
|
-
]))
|
|
294
|
+
scope: "col",
|
|
295
|
+
class: "cn-field-list-widget__th"
|
|
296
|
+
}, toDisplayString(column.header), 1 /* TEXT */))
|
|
260
297
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
261
298
|
($options.hasMenu)
|
|
262
|
-
? (openBlock(), createElementBlock("
|
|
263
|
-
(
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
299
|
+
? (openBlock(), createElementBlock("th", _hoisted_17, [
|
|
300
|
+
createElementVNode("span", _hoisted_18, toDisplayString($options.tr('Actions')), 1 /* TEXT */)
|
|
301
|
+
]))
|
|
302
|
+
: createCommentVNode("v-if", true)
|
|
303
|
+
])
|
|
304
|
+
]),
|
|
305
|
+
createElementVNode("tbody", null, [
|
|
306
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.rows, (row) => {
|
|
307
|
+
return (openBlock(), createElementBlock("tr", {
|
|
308
|
+
key: row.key,
|
|
309
|
+
class: "cn-field-list-widget__tr",
|
|
310
|
+
"data-testid": `cn-field-list-row-${row.key}`
|
|
311
|
+
}, [
|
|
312
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.tableColumns, (column, index) => {
|
|
313
|
+
return (openBlock(), createElementBlock("td", {
|
|
314
|
+
key: column.key,
|
|
315
|
+
class: "cn-field-list-widget__td"
|
|
316
|
+
}, [
|
|
317
|
+
(column.pill && row.cells[index].pill)
|
|
318
|
+
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
280
319
|
key: 0,
|
|
281
|
-
|
|
320
|
+
label: row.cells[index].pill.label,
|
|
321
|
+
variant: row.cells[index].pill.variant,
|
|
322
|
+
size: "small"
|
|
323
|
+
}, null, 8 /* PROPS */, ["label", "variant"]))
|
|
324
|
+
: (column.strong)
|
|
325
|
+
? (openBlock(), createElementBlock("strong", _hoisted_20, toDisplayString(row.cells[index].text), 1 /* TEXT */))
|
|
326
|
+
: (column.code)
|
|
327
|
+
? (openBlock(), createElementBlock("code", _hoisted_21, toDisplayString(row.cells[index].text), 1 /* TEXT */))
|
|
328
|
+
: (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
329
|
+
createTextVNode(toDisplayString(row.cells[index].text), 1 /* TEXT */)
|
|
330
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
331
|
+
]))
|
|
332
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
333
|
+
($options.hasMenu)
|
|
334
|
+
? (openBlock(), createElementBlock("td", _hoisted_22, [
|
|
335
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.inlineActions(row), (action) => {
|
|
336
|
+
return (openBlock(), createBlock(_component_NcButton, {
|
|
337
|
+
key: action.id,
|
|
338
|
+
variant: "secondary",
|
|
282
339
|
disabled: $data.busy !== '',
|
|
283
|
-
|
|
284
|
-
"data-testid": `cn-field-list-
|
|
340
|
+
"aria-label": action.ariaLabel || undefined,
|
|
341
|
+
"data-testid": `cn-field-list-action-${action.id}-${row.key}`,
|
|
342
|
+
onClick: $event => ($options.runAction(action, row))
|
|
285
343
|
}, {
|
|
286
344
|
default: withCtx(() => [
|
|
287
|
-
(
|
|
288
|
-
return (openBlock(), createBlock(_component_NcActionButton, {
|
|
289
|
-
key: item.id,
|
|
290
|
-
"data-testid": `cn-field-list-menu-${item.id}-${row.key}`,
|
|
291
|
-
onClick: item.run
|
|
292
|
-
}, {
|
|
293
|
-
default: withCtx(() => [
|
|
294
|
-
createTextVNode(toDisplayString(item.label), 1 /* TEXT */)
|
|
295
|
-
]),
|
|
296
|
-
_: 2 /* DYNAMIC */
|
|
297
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["data-testid", "onClick"]))
|
|
298
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
345
|
+
createTextVNode(toDisplayString(action.label), 1 /* TEXT */)
|
|
299
346
|
]),
|
|
300
347
|
_: 2 /* DYNAMIC */
|
|
301
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled", "
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
344
|
-
], 8 /* PROPS */, _hoisted_14))
|
|
345
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
346
|
-
]))
|
|
347
|
-
: (openBlock(), createElementBlock("ul", {
|
|
348
|
-
key: 5,
|
|
349
|
-
class: normalizeClass(["cn-field-list-widget__rows", { 'cn-field-list-widget__rows--options': $options.isOptions }])
|
|
350
|
-
}, [
|
|
351
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($options.rows, (row) => {
|
|
352
|
-
return (openBlock(), createElementBlock("li", {
|
|
353
|
-
key: row.key,
|
|
354
|
-
class: "cn-field-list-widget__row",
|
|
355
|
-
draggable: $options.canReorder ? 'true' : undefined,
|
|
356
|
-
"data-testid": `cn-field-list-row-${row.key}`,
|
|
357
|
-
onDragstart: $event => ($data.dragFrom = row.index),
|
|
358
|
-
onDragover: _cache[2] || (_cache[2] = withModifiers(() => {}, ["prevent"])),
|
|
359
|
-
onDrop: withModifiers($event => ($options.dropOn(row.index)), ["prevent"])
|
|
360
|
-
}, [
|
|
361
|
-
createElementVNode("div", _hoisted_17, [
|
|
362
|
-
($options.canReorder)
|
|
363
|
-
? (openBlock(), createElementBlock("button", {
|
|
364
|
-
key: 0,
|
|
365
|
-
type: "button",
|
|
366
|
-
class: "cn-field-list-widget__grip",
|
|
367
|
-
"aria-label": $options.moveLabel(row),
|
|
368
|
-
"data-testid": `cn-field-list-grip-${row.key}`,
|
|
369
|
-
onKeydown: [
|
|
370
|
-
withKeys(withModifiers($event => ($options.move(row.index, -1)), ["prevent"]), ["up"]),
|
|
371
|
-
withKeys(withModifiers($event => ($options.move(row.index, 1)), ["prevent"]), ["down"])
|
|
372
|
-
]
|
|
373
|
-
}, [
|
|
374
|
-
createVNode(_component_DragVertical, { size: 16 })
|
|
375
|
-
], 40 /* PROPS, NEED_HYDRATION */, _hoisted_18))
|
|
376
|
-
: createCommentVNode("v-if", true),
|
|
377
|
-
(row.initials)
|
|
378
|
-
? (openBlock(), createElementBlock("span", _hoisted_19, toDisplayString(row.initials), 1 /* TEXT */))
|
|
379
|
-
: createCommentVNode("v-if", true),
|
|
380
|
-
createElementVNode("span", _hoisted_20, [
|
|
381
|
-
(row.href)
|
|
382
|
-
? (openBlock(), createElementBlock("a", mergeProps({
|
|
383
|
-
key: 0,
|
|
384
|
-
class: "cn-field-list-widget__title",
|
|
385
|
-
href: row.href
|
|
386
|
-
}, { ref_for: true }, row.external ? { target: '_blank', rel: 'noopener noreferrer' } : {}), toDisplayString(row.title), 17 /* TEXT, FULL_PROPS */, _hoisted_21))
|
|
387
|
-
: (openBlock(), createElementBlock("span", _hoisted_22, toDisplayString(row.title), 1 /* TEXT */)),
|
|
388
|
-
(row.meta)
|
|
389
|
-
? (openBlock(), createElementBlock("span", _hoisted_23, toDisplayString(row.meta), 1 /* TEXT */))
|
|
390
|
-
: createCommentVNode("v-if", true)
|
|
391
|
-
]),
|
|
392
|
-
(row.pill)
|
|
393
|
-
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
394
|
-
key: 2,
|
|
395
|
-
label: row.pill.label,
|
|
396
|
-
variant: row.pill.variant,
|
|
397
|
-
size: "small"
|
|
398
|
-
}, null, 8 /* PROPS */, ["label", "variant"]))
|
|
399
|
-
: createCommentVNode("v-if", true),
|
|
400
|
-
(row.code)
|
|
401
|
-
? (openBlock(), createElementBlock("span", {
|
|
402
|
-
key: 3,
|
|
403
|
-
class: "cn-field-list-widget__code",
|
|
404
|
-
"data-testid": `cn-field-list-code-${row.key}`
|
|
405
|
-
}, toDisplayString(row.code), 9 /* TEXT, PROPS */, _hoisted_24))
|
|
406
|
-
: createCommentVNode("v-if", true),
|
|
407
|
-
(row.aside)
|
|
408
|
-
? (openBlock(), createElementBlock("span", _hoisted_25, toDisplayString(row.aside), 1 /* TEXT */))
|
|
409
|
-
: createCommentVNode("v-if", true),
|
|
410
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(row.actions, (action) => {
|
|
348
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled", "aria-label", "data-testid", "onClick"]))
|
|
349
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
350
|
+
($options.menuItems(row).length > 0)
|
|
351
|
+
? (openBlock(), createBlock(_component_NcActions, {
|
|
352
|
+
key: 0,
|
|
353
|
+
forceMenu: true,
|
|
354
|
+
disabled: $data.busy !== '',
|
|
355
|
+
ariaLabel: `${$options.tr('More actions')}: ${row.title}`,
|
|
356
|
+
"data-testid": `cn-field-list-menu-${row.key}`
|
|
357
|
+
}, {
|
|
358
|
+
default: withCtx(() => [
|
|
359
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.menuItems(row), (item) => {
|
|
360
|
+
return (openBlock(), createBlock(_component_NcActionButton, {
|
|
361
|
+
key: item.id,
|
|
362
|
+
"data-testid": `cn-field-list-menu-${item.id}-${row.key}`,
|
|
363
|
+
onClick: item.run
|
|
364
|
+
}, {
|
|
365
|
+
default: withCtx(() => [
|
|
366
|
+
createTextVNode(toDisplayString(item.label), 1 /* TEXT */)
|
|
367
|
+
]),
|
|
368
|
+
_: 2 /* DYNAMIC */
|
|
369
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["data-testid", "onClick"]))
|
|
370
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
371
|
+
]),
|
|
372
|
+
_: 2 /* DYNAMIC */
|
|
373
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled", "ariaLabel", "data-testid"]))
|
|
374
|
+
: createCommentVNode("v-if", true)
|
|
375
|
+
]))
|
|
376
|
+
: createCommentVNode("v-if", true)
|
|
377
|
+
], 8 /* PROPS */, _hoisted_19))
|
|
378
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
379
|
+
])
|
|
380
|
+
]),
|
|
381
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.bandRows, (row) => {
|
|
382
|
+
return (openBlock(), createElementBlock("div", {
|
|
383
|
+
key: row.key,
|
|
384
|
+
class: "cn-field-list-widget__band",
|
|
385
|
+
role: "note",
|
|
386
|
+
"data-testid": `cn-field-list-band-${row.key}`
|
|
387
|
+
}, [
|
|
388
|
+
createElementVNode("span", _hoisted_24, toDisplayString(row.detail), 1 /* TEXT */),
|
|
389
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(row.copies, (copy) => {
|
|
411
390
|
return (openBlock(), createBlock(_component_NcButton, {
|
|
412
|
-
key:
|
|
391
|
+
key: `copy-${copy.path}`,
|
|
413
392
|
variant: "tertiary",
|
|
393
|
+
"data-testid": `cn-field-list-copy-${copy.path}-${row.key}`,
|
|
394
|
+
onClick: $event => ($options.copyValue(copy))
|
|
395
|
+
}, {
|
|
396
|
+
default: withCtx(() => [
|
|
397
|
+
createTextVNode(toDisplayString(copy.label), 1 /* TEXT */)
|
|
398
|
+
]),
|
|
399
|
+
_: 2 /* DYNAMIC */
|
|
400
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["data-testid", "onClick"]))
|
|
401
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
402
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(row.bandActions, (action) => {
|
|
403
|
+
return (openBlock(), createBlock(_component_NcButton, {
|
|
404
|
+
key: action.id,
|
|
405
|
+
variant: "secondary",
|
|
414
406
|
disabled: $data.busy !== '',
|
|
415
|
-
"data-testid": `cn-field-list-action-${action.id}-${row.key}`,
|
|
407
|
+
"data-testid": `cn-field-list-band-action-${action.id}-${row.key}`,
|
|
416
408
|
onClick: $event => ($options.runAction(action, row))
|
|
417
409
|
}, {
|
|
418
410
|
default: withCtx(() => [
|
|
@@ -420,80 +412,160 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
420
412
|
]),
|
|
421
413
|
_: 2 /* DYNAMIC */
|
|
422
414
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled", "data-testid", "onClick"]))
|
|
423
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
415
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
416
|
+
], 8 /* PROPS */, _hoisted_23))
|
|
417
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
418
|
+
]))
|
|
419
|
+
: (openBlock(), createElementBlock("ul", {
|
|
420
|
+
key: 6,
|
|
421
|
+
class: normalizeClass(["cn-field-list-widget__rows", { 'cn-field-list-widget__rows--options': $options.isOptions }])
|
|
422
|
+
}, [
|
|
423
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.rows, (row) => {
|
|
424
|
+
return (openBlock(), createElementBlock("li", {
|
|
425
|
+
key: row.key,
|
|
426
|
+
class: "cn-field-list-widget__row",
|
|
427
|
+
draggable: $options.canReorder ? 'true' : undefined,
|
|
428
|
+
"data-testid": `cn-field-list-row-${row.key}`,
|
|
429
|
+
onDragstart: $event => ($data.dragFrom = row.index),
|
|
430
|
+
onDragover: _cache[2] || (_cache[2] = withModifiers(() => {}, ["prevent"])),
|
|
431
|
+
onDrop: withModifiers($event => ($options.dropOn(row.index)), ["prevent"])
|
|
432
|
+
}, [
|
|
433
|
+
createElementVNode("div", _hoisted_26, [
|
|
434
|
+
($options.canReorder)
|
|
435
|
+
? (openBlock(), createElementBlock("button", {
|
|
436
|
+
key: 0,
|
|
437
|
+
type: "button",
|
|
438
|
+
class: "cn-field-list-widget__grip",
|
|
439
|
+
"aria-label": $options.moveLabel(row),
|
|
440
|
+
"data-testid": `cn-field-list-grip-${row.key}`,
|
|
441
|
+
onKeydown: [
|
|
442
|
+
withKeys(withModifiers($event => ($options.move(row.index, -1)), ["prevent"]), ["up"]),
|
|
443
|
+
withKeys(withModifiers($event => ($options.move(row.index, 1)), ["prevent"]), ["down"])
|
|
444
|
+
]
|
|
445
|
+
}, [
|
|
446
|
+
createVNode(_component_DragVertical, { size: 16 })
|
|
447
|
+
], 40 /* PROPS, NEED_HYDRATION */, _hoisted_27))
|
|
448
|
+
: createCommentVNode("v-if", true),
|
|
449
|
+
(row.initials)
|
|
450
|
+
? (openBlock(), createElementBlock("span", _hoisted_28, toDisplayString(row.initials), 1 /* TEXT */))
|
|
451
|
+
: createCommentVNode("v-if", true),
|
|
452
|
+
createElementVNode("span", _hoisted_29, [
|
|
453
|
+
(row.href)
|
|
454
|
+
? (openBlock(), createElementBlock("a", mergeProps({
|
|
455
|
+
key: 0,
|
|
456
|
+
class: "cn-field-list-widget__title",
|
|
457
|
+
href: row.href
|
|
458
|
+
}, { ref_for: true }, row.external ? { target: '_blank', rel: 'noopener noreferrer' } : {}), toDisplayString(row.title), 17 /* TEXT, FULL_PROPS */, _hoisted_30))
|
|
459
|
+
: (openBlock(), createElementBlock("span", _hoisted_31, toDisplayString(row.title), 1 /* TEXT */)),
|
|
460
|
+
(row.meta)
|
|
461
|
+
? (openBlock(), createElementBlock("span", _hoisted_32, toDisplayString(row.meta), 1 /* TEXT */))
|
|
462
|
+
: createCommentVNode("v-if", true)
|
|
463
|
+
]),
|
|
464
|
+
(row.pill)
|
|
465
|
+
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
466
|
+
key: 2,
|
|
467
|
+
label: row.pill.label,
|
|
468
|
+
variant: row.pill.variant,
|
|
469
|
+
size: "small"
|
|
470
|
+
}, null, 8 /* PROPS */, ["label", "variant"]))
|
|
471
|
+
: createCommentVNode("v-if", true),
|
|
472
|
+
(row.code)
|
|
473
|
+
? (openBlock(), createElementBlock("span", {
|
|
474
|
+
key: 3,
|
|
475
|
+
class: "cn-field-list-widget__code",
|
|
476
|
+
"data-testid": `cn-field-list-code-${row.key}`
|
|
477
|
+
}, toDisplayString(row.code), 9 /* TEXT, PROPS */, _hoisted_33))
|
|
478
|
+
: createCommentVNode("v-if", true),
|
|
479
|
+
(row.aside)
|
|
480
|
+
? (openBlock(), createElementBlock("span", _hoisted_34, toDisplayString(row.aside), 1 /* TEXT */))
|
|
481
|
+
: createCommentVNode("v-if", true),
|
|
482
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(row.actions, (action) => {
|
|
483
|
+
return (openBlock(), createBlock(_component_NcButton, {
|
|
484
|
+
key: action.id,
|
|
427
485
|
variant: "tertiary",
|
|
428
486
|
disabled: $data.busy !== '',
|
|
429
|
-
"
|
|
430
|
-
|
|
431
|
-
onClick: $event => ($options.startEdit(row))
|
|
487
|
+
"data-testid": `cn-field-list-action-${action.id}-${row.key}`,
|
|
488
|
+
onClick: $event => ($options.runAction(action, row))
|
|
432
489
|
}, {
|
|
433
490
|
default: withCtx(() => [
|
|
434
|
-
createTextVNode(toDisplayString(
|
|
491
|
+
createTextVNode(toDisplayString(action.label), 1 /* TEXT */)
|
|
435
492
|
]),
|
|
436
|
-
_:
|
|
437
|
-
},
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
variant: "tertiary",
|
|
443
|
-
disabled: $data.busy !== '',
|
|
444
|
-
"aria-label": $options.removeAriaLabel(row),
|
|
445
|
-
"data-testid": `cn-field-list-remove-${row.key}`,
|
|
446
|
-
onClick: $event => ($options.remove(row))
|
|
447
|
-
}, createSlots({ _: 2 /* DYNAMIC */ }, [
|
|
448
|
-
($options.isOptions)
|
|
449
|
-
? {
|
|
450
|
-
name: "icon",
|
|
451
|
-
fn: withCtx(() => [
|
|
452
|
-
createVNode(_component_DeleteOutline, { size: 18 })
|
|
453
|
-
]),
|
|
454
|
-
key: "0"
|
|
455
|
-
}
|
|
456
|
-
: undefined,
|
|
457
|
-
(!$options.isOptions)
|
|
458
|
-
? {
|
|
459
|
-
name: "default",
|
|
460
|
-
fn: withCtx(() => [
|
|
461
|
-
createTextVNode(toDisplayString($options.removeLabel), 1 /* TEXT */)
|
|
462
|
-
]),
|
|
463
|
-
key: "1"
|
|
464
|
-
}
|
|
465
|
-
: undefined
|
|
466
|
-
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled", "aria-label", "data-testid", "onClick"]))
|
|
467
|
-
: createCommentVNode("v-if", true)
|
|
468
|
-
]),
|
|
469
|
-
(row.detail)
|
|
470
|
-
? (openBlock(), createElementBlock("p", _hoisted_26, toDisplayString(row.detail), 1 /* TEXT */))
|
|
471
|
-
: createCommentVNode("v-if", true),
|
|
472
|
-
(row.detail && row.copies.length > 0)
|
|
473
|
-
? (openBlock(), createElementBlock("div", _hoisted_27, [
|
|
474
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(row.copies, (copy) => {
|
|
475
|
-
return (openBlock(), createBlock(_component_NcButton, {
|
|
476
|
-
key: `copy-${copy.path}`,
|
|
493
|
+
_: 2 /* DYNAMIC */
|
|
494
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled", "data-testid", "onClick"]))
|
|
495
|
+
}), 128 /* KEYED_FRAGMENT */)),
|
|
496
|
+
($options.canEdit)
|
|
497
|
+
? (openBlock(), createBlock(_component_NcButton, {
|
|
498
|
+
key: 5,
|
|
477
499
|
variant: "tertiary",
|
|
478
|
-
|
|
479
|
-
|
|
500
|
+
disabled: $data.busy !== '',
|
|
501
|
+
"aria-label": `${$options.editLabel}: ${row.title}`,
|
|
502
|
+
"data-testid": `cn-field-list-edit-${row.index}`,
|
|
503
|
+
onClick: $event => ($options.startEdit(row))
|
|
480
504
|
}, {
|
|
481
505
|
default: withCtx(() => [
|
|
482
|
-
createTextVNode(toDisplayString(
|
|
506
|
+
createTextVNode(toDisplayString($options.editLabel), 1 /* TEXT */)
|
|
483
507
|
]),
|
|
484
|
-
_:
|
|
485
|
-
},
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
508
|
+
_: 1 /* STABLE */
|
|
509
|
+
}, 8 /* PROPS */, ["disabled", "aria-label", "data-testid", "onClick"]))
|
|
510
|
+
: createCommentVNode("v-if", true),
|
|
511
|
+
($options.canRemove)
|
|
512
|
+
? (openBlock(), createBlock(_component_NcButton, {
|
|
513
|
+
key: 6,
|
|
514
|
+
variant: "tertiary",
|
|
515
|
+
disabled: $data.busy !== '',
|
|
516
|
+
"aria-label": $options.removeAriaLabel(row),
|
|
517
|
+
"data-testid": `cn-field-list-remove-${row.key}`,
|
|
518
|
+
onClick: $event => ($options.remove(row))
|
|
519
|
+
}, createSlots({ _: 2 /* DYNAMIC */ }, [
|
|
520
|
+
($options.isOptions)
|
|
521
|
+
? {
|
|
522
|
+
name: "icon",
|
|
523
|
+
fn: withCtx(() => [
|
|
524
|
+
createVNode(_component_DeleteOutline, { size: 18 })
|
|
525
|
+
]),
|
|
526
|
+
key: "0"
|
|
527
|
+
}
|
|
528
|
+
: undefined,
|
|
529
|
+
(!$options.isOptions)
|
|
530
|
+
? {
|
|
531
|
+
name: "default",
|
|
532
|
+
fn: withCtx(() => [
|
|
533
|
+
createTextVNode(toDisplayString($options.removeLabel), 1 /* TEXT */)
|
|
534
|
+
]),
|
|
535
|
+
key: "1"
|
|
536
|
+
}
|
|
537
|
+
: undefined
|
|
538
|
+
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["disabled", "aria-label", "data-testid", "onClick"]))
|
|
539
|
+
: createCommentVNode("v-if", true)
|
|
540
|
+
]),
|
|
541
|
+
(row.detail)
|
|
542
|
+
? (openBlock(), createElementBlock("p", _hoisted_35, toDisplayString(row.detail), 1 /* TEXT */))
|
|
543
|
+
: createCommentVNode("v-if", true),
|
|
544
|
+
(row.detail && row.copies.length > 0)
|
|
545
|
+
? (openBlock(), createElementBlock("div", _hoisted_36, [
|
|
546
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(row.copies, (copy) => {
|
|
547
|
+
return (openBlock(), createBlock(_component_NcButton, {
|
|
548
|
+
key: `copy-${copy.path}`,
|
|
549
|
+
variant: "tertiary",
|
|
550
|
+
"data-testid": `cn-field-list-copy-${copy.path}-${row.key}`,
|
|
551
|
+
onClick: $event => ($options.copyValue(copy))
|
|
552
|
+
}, {
|
|
553
|
+
default: withCtx(() => [
|
|
554
|
+
createTextVNode(toDisplayString(copy.label), 1 /* TEXT */)
|
|
555
|
+
]),
|
|
556
|
+
_: 2 /* DYNAMIC */
|
|
557
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["data-testid", "onClick"]))
|
|
558
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
559
|
+
]))
|
|
560
|
+
: createCommentVNode("v-if", true)
|
|
561
|
+
], 40 /* PROPS, NEED_HYDRATION */, _hoisted_25))
|
|
562
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
563
|
+
], 2 /* CLASS */)),
|
|
492
564
|
($options.hint)
|
|
493
|
-
? (openBlock(), createElementBlock("p",
|
|
565
|
+
? (openBlock(), createElementBlock("p", _hoisted_37, toDisplayString($options.hint), 1 /* TEXT */))
|
|
494
566
|
: createCommentVNode("v-if", true),
|
|
495
567
|
($options.canAdd && $options.addTrigger && $options.addPlacement === 'footer' && !$data.adding)
|
|
496
|
-
? (openBlock(), createElementBlock("div",
|
|
568
|
+
? (openBlock(), createElementBlock("div", _hoisted_38, [
|
|
497
569
|
createVNode(_component_NcButton, {
|
|
498
570
|
variant: "secondary",
|
|
499
571
|
disabled: $data.busy !== '',
|
|
@@ -512,7 +584,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
512
584
|
: createCommentVNode("v-if", true),
|
|
513
585
|
($options.canAdd && !($options.addTrigger && $options.addAtTop) && (!$options.addTrigger || $data.adding))
|
|
514
586
|
? (openBlock(), createElementBlock("form", {
|
|
515
|
-
key:
|
|
587
|
+
key: 9,
|
|
516
588
|
class: "cn-field-list-widget__add",
|
|
517
589
|
"data-testid": "cn-field-list-add",
|
|
518
590
|
onSubmit: _cache[4] || (_cache[4] = withModifiers((...args) => ($options.add && $options.add(...args)), ["prevent"]))
|
|
@@ -565,7 +637,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
565
637
|
error: Boolean($data.errors[field.key]),
|
|
566
638
|
helperText: $data.errors[field.key] || ''
|
|
567
639
|
}, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue", "label", "error", "helperText"]))
|
|
568
|
-
], 8 /* PROPS */,
|
|
640
|
+
], 8 /* PROPS */, _hoisted_39))
|
|
569
641
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
570
642
|
createVNode(_component_NcButton, {
|
|
571
643
|
type: "submit",
|
|
@@ -593,10 +665,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
593
665
|
: createCommentVNode("v-if", true)
|
|
594
666
|
], 32 /* NEED_HYDRATION */))
|
|
595
667
|
: createCommentVNode("v-if", true),
|
|
596
|
-
createElementVNode("span",
|
|
668
|
+
createElementVNode("span", _hoisted_40, toDisplayString($data.copied), 1 /* TEXT */),
|
|
597
669
|
($data.notice)
|
|
598
670
|
? (openBlock(), createBlock(_component_NcNoteCard, {
|
|
599
|
-
key:
|
|
671
|
+
key: 10,
|
|
600
672
|
type: $data.noticeType,
|
|
601
673
|
"data-testid": "cn-field-list-notice"
|
|
602
674
|
}, {
|