@conduction/nextcloud-vue 2.177.0 → 2.179.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/CnBuildiqEditButton/CnBuildiqEditButton.vue.js +1 -1
- package/dist/esm/components/CnBuildiqEditButton/CnBuildiqEditButton.vue2.js +12 -1
- package/dist/esm/components/CnBuildiqEditButton/CnBuildiqEditButton.vue2.js.map +1 -1
- package/dist/esm/components/CnBuildiqEditButton/CnBuildiqEditButton.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/CnCellRenderer/CnCellRenderer.vue.js +1 -1
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue2.js +10 -8
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue2.js.map +1 -1
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue3.js +95 -88
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.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/CnFlowDetail/CnFlowDetail.vue.js +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue2.js +86 -8
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue3.js +137 -121
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue.js +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue2.js +56 -4
- package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue3.js +166 -70
- package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue.js +9 -0
- package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue.js.map +1 -0
- package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue2.js +123 -0
- package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue2.js.map +1 -0
- package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue3.js +268 -0
- package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue3.js.map +1 -0
- package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue.js +9 -0
- package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue.js.map +1 -0
- package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue2.js +49 -0
- package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue2.js.map +1 -0
- package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue3.js +41 -0
- package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue3.js.map +1 -0
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue.js +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js +116 -8
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js +110 -58
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue2.js +78 -1
- package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue3.js +44 -3
- package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue3.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 +219 -83
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +92 -58
- 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/composables/indexSources.js +24 -4
- package/dist/esm/composables/indexSources.js.map +1 -1
- package/dist/esm/composables/useFlowStore.js +75 -4
- package/dist/esm/composables/useFlowStore.js.map +1 -1
- package/dist/esm/dialogs/CnFlowEdgeEditModal.vue.js +1 -1
- package/dist/esm/dialogs/CnFlowEdgeEditModal.vue2.js +17 -0
- package/dist/esm/dialogs/CnFlowEdgeEditModal.vue2.js.map +1 -1
- package/dist/esm/dialogs/CnFlowEdgeEditModal.vue3.js +9 -1
- package/dist/esm/dialogs/CnFlowEdgeEditModal.vue3.js.map +1 -1
- package/dist/esm/dialogs/CnFlowEditModal.vue.js +1 -1
- package/dist/esm/dialogs/CnFlowEditModal.vue2.js +15 -0
- package/dist/esm/dialogs/CnFlowEditModal.vue2.js.map +1 -1
- package/dist/esm/dialogs/CnFlowEditModal.vue3.js +13 -3
- package/dist/esm/dialogs/CnFlowEditModal.vue3.js.map +1 -1
- package/dist/esm/dialogs/CnFlowStepPickerModal.vue.js +1 -1
- package/dist/esm/dialogs/CnFlowStepPickerModal.vue2.js +13 -1
- package/dist/esm/dialogs/CnFlowStepPickerModal.vue2.js.map +1 -1
- package/dist/esm/dialogs/CnFlowStepPickerModal.vue3.js.map +1 -1
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/l10n/en.json.js +52 -1
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +51 -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 +1203 -812
- package/dist/esm/utils/dialogWidths.js +6 -4
- package/dist/esm/utils/dialogWidths.js.map +1 -1
- package/dist/esm/utils/fieldPill.js +77 -0
- package/dist/esm/utils/fieldPill.js.map +1 -0
- package/dist/esm/utils/flowCondition.js +177 -0
- package/dist/esm/utils/flowCondition.js.map +1 -0
- package/dist/esm/utils/flowRunStatus.js +64 -1
- package/dist/esm/utils/flowRunStatus.js.map +1 -1
- package/dist/esm/utils/flowStepList.js +385 -0
- package/dist/esm/utils/flowStepList.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 +14837 -11411
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +1203 -812
- package/l10n/en.json +52 -1
- package/l10n/nl.json +51 -1
- package/package.json +1 -1
- package/src/components/CnActionDialog/CnActionDialog.vue +116 -9
- package/src/components/CnBuildiqEditButton/CnBuildiqEditButton.vue +12 -1
- package/src/components/CnCardNotices/CnCardNotices.vue +46 -8
- package/src/components/CnCellRenderer/CnCellRenderer.vue +8 -0
- package/src/components/CnFilesBrowser/CnFilesBrowser.vue +61 -2
- package/src/components/CnFilesBrowser/filesBrowserColumns.js +10 -4
- package/src/components/CnFlowDetail/CnFlowDetail.vue +110 -12
- package/src/components/CnFlowDetail/CnFlowDryRunResult.vue +163 -5
- package/src/components/CnFlowDetail/CnFlowStepList.vue +408 -0
- package/src/components/CnFlowDetail/CnFlowViewSwitch.vue +117 -0
- package/src/components/CnFlowDetail/index.js +2 -0
- package/src/components/CnFlowsPage/CnFlowBoard.vue +182 -25
- package/src/components/CnFlowsPage/CnFlowEditorPage.vue +101 -3
- package/src/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue +141 -1
- package/src/components/CnIndexPage/CnIndexHeaderMenu.vue +22 -4
- package/src/components/CnIndexPage/CnIndexPage.vue +172 -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 +2 -1
- package/src/composables/indexSources.js +24 -4
- package/src/composables/useFlowStore.js +75 -4
- package/src/css/index-page.css +10 -0
- package/src/dialogs/CnFlowEdgeEditModal.vue +28 -0
- package/src/dialogs/CnFlowEditModal.vue +26 -6
- package/src/dialogs/CnFlowStepPickerModal.vue +13 -1
- package/src/index.js +3 -0
- package/src/utils/dialogWidths.js +6 -4
- package/src/utils/fieldPill.js +73 -0
- package/src/utils/flowCondition.js +173 -0
- package/src/utils/flowRunStatus.js +63 -0
- package/src/utils/flowStepList.js +381 -0
- package/src/utils/libraryWidgetKeys.js +1 -0
- package/src/utils/searchRefusal.js +33 -0
- package/src/utils/widgetDispatch.js +1 -1
|
@@ -7,240 +7,251 @@ const _hoisted_1 = {
|
|
|
7
7
|
};
|
|
8
8
|
const _hoisted_2 = {
|
|
9
9
|
key: 0,
|
|
10
|
-
class: "cn-record-list__intro",
|
|
10
|
+
class: "cn-record-list__group-heading cn-record-list__intro-heading",
|
|
11
11
|
"data-testid": "cn-record-list-intro"
|
|
12
12
|
};
|
|
13
13
|
const _hoisted_3 = {
|
|
14
14
|
key: 1,
|
|
15
|
-
class: "cn-record-
|
|
16
|
-
"data-testid": "cn-record-list-
|
|
15
|
+
class: "cn-record-list__intro",
|
|
16
|
+
"data-testid": "cn-record-list-intro"
|
|
17
17
|
};
|
|
18
18
|
const _hoisted_4 = {
|
|
19
19
|
key: 2,
|
|
20
|
-
class: "cn-record-
|
|
21
|
-
"data-testid": "cn-record-list-
|
|
20
|
+
class: "cn-record-list__empty",
|
|
21
|
+
"data-testid": "cn-record-list-absent"
|
|
22
22
|
};
|
|
23
23
|
const _hoisted_5 = {
|
|
24
24
|
key: 3,
|
|
25
|
-
class: "cn-record-
|
|
25
|
+
class: "cn-record-list__error",
|
|
26
|
+
"data-testid": "cn-record-list-error"
|
|
26
27
|
};
|
|
27
28
|
const _hoisted_6 = {
|
|
29
|
+
key: 4,
|
|
30
|
+
class: "cn-record-list__loading"
|
|
31
|
+
};
|
|
32
|
+
const _hoisted_7 = {
|
|
28
33
|
key: 0,
|
|
29
34
|
class: "cn-record-list__empty",
|
|
30
35
|
"data-testid": "cn-record-list-empty"
|
|
31
36
|
};
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
key:
|
|
37
|
+
const _hoisted_8 = { class: "cn-record-list__notice-text" };
|
|
38
|
+
const _hoisted_9 = {
|
|
39
|
+
key: 7,
|
|
35
40
|
class: "cn-record-list__table",
|
|
36
41
|
"data-testid": "cn-record-list-table"
|
|
37
42
|
};
|
|
38
|
-
const
|
|
39
|
-
const
|
|
43
|
+
const _hoisted_10 = ["aria-sort"];
|
|
44
|
+
const _hoisted_11 = {
|
|
40
45
|
key: 0,
|
|
41
46
|
class: "cn-record-list__head"
|
|
42
47
|
};
|
|
43
|
-
const
|
|
44
|
-
const
|
|
48
|
+
const _hoisted_12 = ["data-testid", "onClick"];
|
|
49
|
+
const _hoisted_13 = {
|
|
45
50
|
key: 0,
|
|
46
51
|
scope: "col",
|
|
47
52
|
class: "cn-record-list__cell--actions"
|
|
48
53
|
};
|
|
49
|
-
const
|
|
54
|
+
const _hoisted_14 = {
|
|
50
55
|
key: 2,
|
|
51
56
|
class: "cn-record-list__cell-text"
|
|
52
57
|
};
|
|
53
|
-
const
|
|
58
|
+
const _hoisted_15 = {
|
|
54
59
|
key: 3,
|
|
55
60
|
class: "cn-record-list__cell-sub"
|
|
56
61
|
};
|
|
57
|
-
const
|
|
62
|
+
const _hoisted_16 = {
|
|
58
63
|
key: 0,
|
|
59
64
|
class: "cn-record-list__cell--actions"
|
|
60
65
|
};
|
|
61
|
-
const
|
|
62
|
-
key:
|
|
66
|
+
const _hoisted_17 = {
|
|
67
|
+
key: 8,
|
|
63
68
|
class: "cn-record-list__checklist-wrap"
|
|
64
69
|
};
|
|
65
|
-
const
|
|
66
|
-
const
|
|
70
|
+
const _hoisted_18 = ["aria-valuenow", "aria-valuemax", "aria-label"];
|
|
71
|
+
const _hoisted_19 = {
|
|
67
72
|
class: "cn-record-list__check-mark",
|
|
68
73
|
"aria-hidden": "true"
|
|
69
74
|
};
|
|
70
|
-
const
|
|
71
|
-
const
|
|
72
|
-
const
|
|
75
|
+
const _hoisted_20 = { class: "cn-record-list__check-body" };
|
|
76
|
+
const _hoisted_21 = { class: "cn-record-list__check-title" };
|
|
77
|
+
const _hoisted_22 = { class: "hidden-visually" };
|
|
78
|
+
const _hoisted_23 = {
|
|
73
79
|
key: 0,
|
|
74
80
|
class: "cn-record-list__group-head",
|
|
75
81
|
"data-testid": "cn-record-list-group-head"
|
|
76
82
|
};
|
|
77
|
-
const
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
const
|
|
83
|
+
const _hoisted_24 = ["id"];
|
|
84
|
+
const _hoisted_25 = ["id"];
|
|
85
|
+
const _hoisted_26 = ["aria-labelledby", "data-testid"];
|
|
86
|
+
const _hoisted_27 = {
|
|
81
87
|
key: 0,
|
|
82
88
|
class: "cn-record-list__row cn-record-list__row--action"
|
|
83
89
|
};
|
|
84
|
-
const
|
|
90
|
+
const _hoisted_28 = {
|
|
85
91
|
key: 0,
|
|
86
92
|
class: "cn-record-list__leading",
|
|
87
93
|
"data-testid": "cn-record-list-leading"
|
|
88
94
|
};
|
|
89
|
-
const
|
|
90
|
-
const
|
|
95
|
+
const _hoisted_29 = { class: "cn-record-list__main" };
|
|
96
|
+
const _hoisted_30 = {
|
|
91
97
|
key: 1,
|
|
92
98
|
class: "cn-record-list__meta"
|
|
93
99
|
};
|
|
94
|
-
const
|
|
100
|
+
const _hoisted_31 = {
|
|
95
101
|
key: 3,
|
|
96
102
|
class: "cn-record-list__flag",
|
|
97
103
|
"data-testid": "cn-record-list-flag"
|
|
98
104
|
};
|
|
99
|
-
const
|
|
105
|
+
const _hoisted_32 = {
|
|
100
106
|
key: 4,
|
|
101
107
|
class: "cn-record-list__pills"
|
|
102
108
|
};
|
|
103
|
-
const
|
|
104
|
-
const
|
|
109
|
+
const _hoisted_33 = ["data-testid"];
|
|
110
|
+
const _hoisted_34 = {
|
|
105
111
|
key: 6,
|
|
106
112
|
class: "cn-record-list__trailing"
|
|
107
113
|
};
|
|
108
|
-
const
|
|
114
|
+
const _hoisted_35 = {
|
|
109
115
|
key: 0,
|
|
110
116
|
class: "cn-record-list__leading",
|
|
111
117
|
"data-testid": "cn-record-list-leading"
|
|
112
118
|
};
|
|
113
|
-
const
|
|
119
|
+
const _hoisted_36 = {
|
|
114
120
|
key: 1,
|
|
115
121
|
class: "cn-record-list__pill-start"
|
|
116
122
|
};
|
|
117
|
-
const
|
|
118
|
-
const
|
|
123
|
+
const _hoisted_37 = { class: "cn-record-list__main" };
|
|
124
|
+
const _hoisted_38 = {
|
|
119
125
|
key: 0,
|
|
120
126
|
class: "cn-record-list__headline",
|
|
121
127
|
"data-testid": "cn-record-list-headline"
|
|
122
128
|
};
|
|
123
|
-
const
|
|
129
|
+
const _hoisted_39 = {
|
|
124
130
|
key: 1,
|
|
125
131
|
class: "cn-record-list__title cn-record-list__title--link"
|
|
126
132
|
};
|
|
127
|
-
const
|
|
133
|
+
const _hoisted_40 = {
|
|
128
134
|
key: 2,
|
|
129
135
|
class: "cn-record-list__meta"
|
|
130
136
|
};
|
|
131
|
-
const
|
|
137
|
+
const _hoisted_41 = {
|
|
132
138
|
key: 0,
|
|
133
139
|
class: "cn-record-list__title"
|
|
134
140
|
};
|
|
135
|
-
const
|
|
141
|
+
const _hoisted_42 = {
|
|
136
142
|
key: 1,
|
|
137
143
|
class: "cn-record-list__meta"
|
|
138
144
|
};
|
|
139
|
-
const
|
|
145
|
+
const _hoisted_43 = {
|
|
140
146
|
key: 4,
|
|
141
147
|
class: "cn-record-list__meta",
|
|
142
148
|
"data-testid": "cn-record-list-links"
|
|
143
149
|
};
|
|
144
|
-
const
|
|
145
|
-
const
|
|
146
|
-
const
|
|
150
|
+
const _hoisted_44 = { key: 1 };
|
|
151
|
+
const _hoisted_45 = { key: 2 };
|
|
152
|
+
const _hoisted_46 = {
|
|
147
153
|
key: 5,
|
|
148
154
|
class: "cn-record-list__aside"
|
|
149
155
|
};
|
|
150
|
-
const
|
|
156
|
+
const _hoisted_47 = {
|
|
151
157
|
key: 0,
|
|
152
158
|
class: "cn-record-list__flag",
|
|
153
159
|
"data-testid": "cn-record-list-flag"
|
|
154
160
|
};
|
|
155
|
-
const
|
|
156
|
-
const
|
|
161
|
+
const _hoisted_48 = ["data-testid"];
|
|
162
|
+
const _hoisted_49 = {
|
|
157
163
|
key: 3,
|
|
158
164
|
class: "cn-record-list__trailing"
|
|
159
165
|
};
|
|
160
|
-
const
|
|
166
|
+
const _hoisted_50 = {
|
|
161
167
|
key: 8,
|
|
162
168
|
class: "cn-record-list__row-actions-inline",
|
|
163
169
|
"data-testid": "cn-record-list-row-actions-inline"
|
|
164
170
|
};
|
|
165
|
-
const
|
|
166
|
-
const
|
|
167
|
-
const
|
|
171
|
+
const _hoisted_51 = { class: "cn-record-list__card-head" };
|
|
172
|
+
const _hoisted_52 = { class: "cn-record-list__card-title" };
|
|
173
|
+
const _hoisted_53 = {
|
|
168
174
|
key: 1,
|
|
169
175
|
class: "cn-record-list__title"
|
|
170
176
|
};
|
|
171
|
-
const
|
|
177
|
+
const _hoisted_54 = {
|
|
172
178
|
key: 0,
|
|
173
179
|
class: "cn-record-list__card-pills"
|
|
174
180
|
};
|
|
175
|
-
const
|
|
176
|
-
const
|
|
181
|
+
const _hoisted_55 = ["data-testid"];
|
|
182
|
+
const _hoisted_56 = {
|
|
177
183
|
key: 0,
|
|
178
184
|
class: "cn-record-list__meta"
|
|
179
185
|
};
|
|
180
|
-
const
|
|
186
|
+
const _hoisted_57 = {
|
|
181
187
|
key: 1,
|
|
182
188
|
class: "cn-record-list__card-value",
|
|
183
189
|
"data-testid": "cn-record-list-card-value"
|
|
184
190
|
};
|
|
185
|
-
const
|
|
191
|
+
const _hoisted_58 = {
|
|
186
192
|
key: 3,
|
|
187
193
|
class: "cn-record-list__feed-row"
|
|
188
194
|
};
|
|
189
|
-
const
|
|
195
|
+
const _hoisted_59 = {
|
|
190
196
|
class: "cn-record-list__feed-icon",
|
|
191
197
|
"aria-hidden": "true"
|
|
192
198
|
};
|
|
193
|
-
const
|
|
199
|
+
const _hoisted_60 = {
|
|
194
200
|
key: 0,
|
|
195
201
|
class: "cn-record-list__meta"
|
|
196
202
|
};
|
|
197
|
-
const
|
|
203
|
+
const _hoisted_61 = {
|
|
198
204
|
key: 1,
|
|
199
205
|
class: "cn-record-list__text"
|
|
200
206
|
};
|
|
201
|
-
const
|
|
207
|
+
const _hoisted_62 = {
|
|
202
208
|
key: 4,
|
|
203
209
|
class: "cn-record-list__inline-row"
|
|
204
210
|
};
|
|
205
|
-
const
|
|
211
|
+
const _hoisted_63 = {
|
|
206
212
|
key: 0,
|
|
207
213
|
class: "cn-record-list__label"
|
|
208
214
|
};
|
|
209
|
-
const
|
|
210
|
-
const
|
|
211
|
-
key:
|
|
215
|
+
const _hoisted_64 = ["aria-label", "aria-valuenow", "aria-valuemax"];
|
|
216
|
+
const _hoisted_65 = {
|
|
217
|
+
key: 11,
|
|
212
218
|
class: "cn-record-list__error",
|
|
213
219
|
role: "alert",
|
|
214
220
|
"data-testid": "cn-record-list-action-error"
|
|
215
221
|
};
|
|
216
|
-
const
|
|
217
|
-
const
|
|
218
|
-
key:
|
|
222
|
+
const _hoisted_66 = { class: "cn-record-list__notice-text" };
|
|
223
|
+
const _hoisted_67 = {
|
|
224
|
+
key: 13,
|
|
219
225
|
class: "cn-record-list__footnote",
|
|
220
226
|
"data-testid": "cn-record-list-footnote"
|
|
221
227
|
};
|
|
222
|
-
const
|
|
223
|
-
const
|
|
224
|
-
key:
|
|
228
|
+
const _hoisted_68 = ["href"];
|
|
229
|
+
const _hoisted_69 = {
|
|
230
|
+
key: 16,
|
|
225
231
|
class: "cn-record-list__group-head",
|
|
226
232
|
"data-testid": "cn-record-list-group-head"
|
|
227
233
|
};
|
|
228
|
-
const
|
|
234
|
+
const _hoisted_70 = {
|
|
229
235
|
class: "cn-record-list__group-heading",
|
|
230
236
|
"data-testid": "cn-record-list-group-heading"
|
|
231
237
|
};
|
|
232
|
-
const
|
|
233
|
-
const
|
|
238
|
+
const _hoisted_71 = ["id"];
|
|
239
|
+
const _hoisted_72 = {
|
|
234
240
|
key: 0,
|
|
235
241
|
class: "cn-record-list__footer-note",
|
|
236
242
|
"data-testid": "cn-record-list-footer-note"
|
|
237
243
|
};
|
|
238
|
-
const
|
|
244
|
+
const _hoisted_73 = {
|
|
239
245
|
key: 0,
|
|
240
246
|
class: "cn-record-list__footer-lead",
|
|
241
247
|
"data-testid": "cn-record-list-footer-lead"
|
|
242
248
|
};
|
|
243
|
-
const
|
|
249
|
+
const _hoisted_74 = ["id"];
|
|
250
|
+
const _hoisted_75 = {
|
|
251
|
+
key: 19,
|
|
252
|
+
class: "cn-record-list__footer cn-record-list__footer--actions",
|
|
253
|
+
"data-testid": "cn-record-list-footer-actions"
|
|
254
|
+
};
|
|
244
255
|
|
|
245
256
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
246
257
|
const _component_CnRecordListWidget = resolveComponent("CnRecordListWidget", true);
|
|
@@ -256,8 +267,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
256
267
|
const _component_NcActionLink = resolveComponent("NcActionLink");
|
|
257
268
|
const _component_NcActionButton = resolveComponent("NcActionButton");
|
|
258
269
|
const _component_Check = resolveComponent("Check");
|
|
259
|
-
const _component_CnRecordNoteRows = resolveComponent("CnRecordNoteRows");
|
|
260
270
|
const _component_NcButton = resolveComponent("NcButton");
|
|
271
|
+
const _component_CnRecordNoteRows = resolveComponent("CnRecordNoteRows");
|
|
261
272
|
const _component_ChevronRight = resolveComponent("ChevronRight");
|
|
262
273
|
|
|
263
274
|
return ($options.sections.length > 0)
|
|
@@ -278,29 +289,31 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
278
289
|
class: normalizeClass(["cn-record-list", [`cn-record-list--${$options.presentation}`, { 'cn-record-list--compact': $props.content.density === 'compact', 'cn-record-list--pill-aside': $options.presentation === 'cards' && $props.content.cardPillAside === true, 'cn-record-list--stacked': $props.content.density === 'stacked', 'cn-record-list--tiles': $options.presentation === 'rows' && $props.content.tiles === true, 'cn-record-list--rule-above': $props.content.ruleAbove === true, 'cn-record-list--strong-title': $props.content.strongTitle === true, 'cn-record-list--meta-beside': $options.presentation === 'rows' && $props.content.metaBeside === true, 'cn-record-list--data-table': $options.presentation === 'table' && $props.content.tableLook === 'data', 'cn-record-list--group-cards': $options.isGrouped && $props.content.groupLook === 'cards', 'cn-record-list--chevron': $props.content.chevron === true }]]),
|
|
279
290
|
"data-testid": "cn-record-list"
|
|
280
291
|
}, [
|
|
281
|
-
($options.intro && !$options.absent)
|
|
282
|
-
? (openBlock(), createElementBlock("
|
|
283
|
-
:
|
|
292
|
+
($options.intro && !$options.absent && $options.introAsHeading && !$options.introHidden)
|
|
293
|
+
? (openBlock(), createElementBlock("h3", _hoisted_2, toDisplayString($options.intro), 1 /* TEXT */))
|
|
294
|
+
: ($options.intro && !$options.absent && !$options.introAsHeading)
|
|
295
|
+
? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString($options.intro), 1 /* TEXT */))
|
|
296
|
+
: createCommentVNode("v-if", true),
|
|
284
297
|
($options.absent)
|
|
285
|
-
? (openBlock(), createElementBlock("p",
|
|
298
|
+
? (openBlock(), createElementBlock("p", _hoisted_4, toDisplayString($options.absentLabel), 1 /* TEXT */))
|
|
286
299
|
: ($data.error)
|
|
287
|
-
? (openBlock(), createElementBlock("p",
|
|
300
|
+
? (openBlock(), createElementBlock("p", _hoisted_5, toDisplayString($options.errorLabel), 1 /* TEXT */))
|
|
288
301
|
: ($data.loading && $data.rows.length === 0)
|
|
289
|
-
? (openBlock(), createElementBlock("div",
|
|
302
|
+
? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
290
303
|
createVNode(_component_NcLoadingIcon, {
|
|
291
304
|
size: 20,
|
|
292
305
|
name: $options.loadingLabel
|
|
293
306
|
}, null, 8 /* PROPS */, ["name"])
|
|
294
307
|
]))
|
|
295
308
|
: ($data.rows.length === 0)
|
|
296
|
-
? (openBlock(), createElementBlock(Fragment, { key:
|
|
309
|
+
? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
297
310
|
($options.emptyLabel !== '')
|
|
298
|
-
? (openBlock(), createElementBlock("p",
|
|
311
|
+
? (openBlock(), createElementBlock("p", _hoisted_7, toDisplayString($options.emptyLabel), 1 /* TEXT */))
|
|
299
312
|
: createCommentVNode("v-if", true)
|
|
300
313
|
], 64 /* STABLE_FRAGMENT */))
|
|
301
314
|
: ($options.presentation === 'notice')
|
|
302
315
|
? (openBlock(), createElementBlock("div", {
|
|
303
|
-
key:
|
|
316
|
+
key: 6,
|
|
304
317
|
class: normalizeClass(["cn-record-list__notice", `cn-record-list__notice--${$options.noticeVariant}`]),
|
|
305
318
|
role: "note",
|
|
306
319
|
"data-testid": "cn-record-list-notice"
|
|
@@ -311,10 +324,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
311
324
|
class: "cn-record-list__notice-icon",
|
|
312
325
|
"aria-hidden": "true"
|
|
313
326
|
}, null, 8 /* PROPS */, ["name"]),
|
|
314
|
-
createElementVNode("p",
|
|
327
|
+
createElementVNode("p", _hoisted_8, toDisplayString($options.noticeText), 1 /* TEXT */)
|
|
315
328
|
], 2 /* CLASS */))
|
|
316
329
|
: ($options.presentation === 'table')
|
|
317
|
-
? (openBlock(), createElementBlock("table",
|
|
330
|
+
? (openBlock(), createElementBlock("table", _hoisted_9, [
|
|
318
331
|
createElementVNode("thead", null, [
|
|
319
332
|
createElementVNode("tr", null, [
|
|
320
333
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.tableColumns, (col) => {
|
|
@@ -325,7 +338,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
325
338
|
class: normalizeClass({ 'cn-record-list__cell--end': col.align === 'end' })
|
|
326
339
|
}, [
|
|
327
340
|
(col.sortable || $options.tableFilterable)
|
|
328
|
-
? (openBlock(), createElementBlock("span",
|
|
341
|
+
? (openBlock(), createElementBlock("span", _hoisted_11, [
|
|
329
342
|
(col.sortable)
|
|
330
343
|
? (openBlock(), createElementBlock("button", {
|
|
331
344
|
key: 0,
|
|
@@ -346,7 +359,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
346
359
|
class: "cn-record-list__sort-mark",
|
|
347
360
|
size: 14
|
|
348
361
|
}))
|
|
349
|
-
], 8 /* PROPS */,
|
|
362
|
+
], 8 /* PROPS */, _hoisted_12))
|
|
350
363
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
351
364
|
createTextVNode(toDisplayString(col.label), 1 /* TEXT */)
|
|
352
365
|
], 64 /* STABLE_FRAGMENT */)),
|
|
@@ -381,10 +394,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
381
394
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
382
395
|
createTextVNode(toDisplayString(col.label), 1 /* TEXT */)
|
|
383
396
|
], 64 /* STABLE_FRAGMENT */))
|
|
384
|
-
], 10 /* CLASS, PROPS */,
|
|
397
|
+
], 10 /* CLASS, PROPS */, _hoisted_10))
|
|
385
398
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
386
399
|
($options.rowActions.length > 0)
|
|
387
|
-
? (openBlock(), createElementBlock("th",
|
|
400
|
+
? (openBlock(), createElementBlock("th", _hoisted_13, toDisplayString($options.rowActionsHeader), 1 /* TEXT */))
|
|
388
401
|
: createCommentVNode("v-if", true)
|
|
389
402
|
])
|
|
390
403
|
]),
|
|
@@ -418,14 +431,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
418
431
|
]),
|
|
419
432
|
_: 2 /* DYNAMIC */
|
|
420
433
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["to"]))
|
|
421
|
-
: (openBlock(), createElementBlock("span",
|
|
434
|
+
: (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString(cell.text), 1 /* TEXT */)),
|
|
422
435
|
(cell.sub)
|
|
423
|
-
? (openBlock(), createElementBlock("span",
|
|
436
|
+
? (openBlock(), createElementBlock("span", _hoisted_15, toDisplayString(cell.sub), 1 /* TEXT */))
|
|
424
437
|
: createCommentVNode("v-if", true)
|
|
425
438
|
], 6 /* CLASS, STYLE */))
|
|
426
439
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
427
440
|
($options.rowActions.length > 0)
|
|
428
|
-
? (openBlock(), createElementBlock("td",
|
|
441
|
+
? (openBlock(), createElementBlock("td", _hoisted_16, [
|
|
429
442
|
(item.rowActions.length > 0)
|
|
430
443
|
? (openBlock(), createBlock(_component_NcActions, {
|
|
431
444
|
key: 0,
|
|
@@ -473,7 +486,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
473
486
|
])
|
|
474
487
|
]))
|
|
475
488
|
: ($options.presentation === 'checklist')
|
|
476
|
-
? (openBlock(), createElementBlock("div",
|
|
489
|
+
? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
477
490
|
($props.content.progress)
|
|
478
491
|
? (openBlock(), createElementBlock("div", {
|
|
479
492
|
key: 0,
|
|
@@ -489,7 +502,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
489
502
|
class: "cn-record-list__checklist-fill",
|
|
490
503
|
style: normalizeStyle({ width: `${$options.checklistPercent}%` })
|
|
491
504
|
}, null, 4 /* STYLE */)
|
|
492
|
-
], 8 /* PROPS */,
|
|
505
|
+
], 8 /* PROPS */, _hoisted_18))
|
|
493
506
|
: createCommentVNode("v-if", true),
|
|
494
507
|
createElementVNode("ul", {
|
|
495
508
|
class: "cn-record-list__checklist",
|
|
@@ -499,10 +512,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
499
512
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.items, (item) => {
|
|
500
513
|
return (openBlock(), createElementBlock("li", {
|
|
501
514
|
key: item.key,
|
|
502
|
-
class: normalizeClass(["cn-record-list__check", {
|
|
515
|
+
class: normalizeClass(["cn-record-list__check", {
|
|
516
|
+
'cn-record-list__check--done': $options.isChecked(item.row),
|
|
517
|
+
'cn-record-list__check--next': $options.checkNextOf(item.row) !== null,
|
|
518
|
+
'cn-record-list__check--meta-end': $options.checklistMetaAtEnd,
|
|
519
|
+
}]),
|
|
503
520
|
"data-testid": "cn-record-list-check"
|
|
504
521
|
}, [
|
|
505
|
-
createElementVNode("span",
|
|
522
|
+
createElementVNode("span", _hoisted_19, [
|
|
506
523
|
($options.isChecked(item.row))
|
|
507
524
|
? (openBlock(), createBlock(_component_Check, {
|
|
508
525
|
key: 0,
|
|
@@ -510,31 +527,67 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
510
527
|
}))
|
|
511
528
|
: createCommentVNode("v-if", true)
|
|
512
529
|
]),
|
|
513
|
-
createElementVNode("span",
|
|
514
|
-
|
|
530
|
+
createElementVNode("span", _hoisted_20, [
|
|
531
|
+
createElementVNode("span", _hoisted_21, [
|
|
532
|
+
createTextVNode(toDisplayString(item.title) + " ", 1 /* TEXT */),
|
|
533
|
+
($options.checkNextOf(item.row))
|
|
534
|
+
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
535
|
+
key: 0,
|
|
536
|
+
class: "cn-record-list__check-next-pill",
|
|
537
|
+
label: $options.checkNextOf(item.row).label,
|
|
538
|
+
variant: "primary",
|
|
539
|
+
size: "small",
|
|
540
|
+
"data-testid": "cn-record-list-check-next-pill"
|
|
541
|
+
}, null, 8 /* PROPS */, ["label"]))
|
|
542
|
+
: createCommentVNode("v-if", true)
|
|
543
|
+
]),
|
|
544
|
+
($options.checkMetaOf(item))
|
|
545
|
+
? (openBlock(), createElementBlock("span", {
|
|
546
|
+
key: 0,
|
|
547
|
+
class: normalizeClass(["cn-record-list__check-meta", { 'cn-record-list__check-meta--missing': !$options.isChecked(item.row) && $options.checklistMissingText !== '' }]),
|
|
548
|
+
"data-testid": "cn-record-list-check-meta"
|
|
549
|
+
}, toDisplayString($options.checkMetaOf(item)), 3 /* TEXT, CLASS */))
|
|
550
|
+
: createCommentVNode("v-if", true)
|
|
551
|
+
]),
|
|
552
|
+
createElementVNode("span", _hoisted_22, toDisplayString($options.isChecked(item.row) ? $options.doneLabel : $options.openLabel), 1 /* TEXT */),
|
|
553
|
+
($options.checkNextOf(item.row) && $options.checkNextOf(item.row).action)
|
|
554
|
+
? (openBlock(), createBlock(_component_NcButton, {
|
|
555
|
+
key: 0,
|
|
556
|
+
class: "cn-record-list__check-next-action",
|
|
557
|
+
variant: "primary",
|
|
558
|
+
href: $options.checkNextOf(item.row).action.href || undefined,
|
|
559
|
+
"data-testid": "cn-record-list-check-next-action",
|
|
560
|
+
onClick: $event => ($options.checkNextOf(item.row).action.href ? null : $options.runCheckNextAction(item.row))
|
|
561
|
+
}, {
|
|
562
|
+
default: withCtx(() => [
|
|
563
|
+
createTextVNode(toDisplayString($options.checkNextOf(item.row).action.label), 1 /* TEXT */)
|
|
564
|
+
]),
|
|
565
|
+
_: 2 /* DYNAMIC */
|
|
566
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["href", "onClick"]))
|
|
567
|
+
: createCommentVNode("v-if", true)
|
|
515
568
|
], 2 /* CLASS */))
|
|
516
569
|
}), 128 /* KEYED_FRAGMENT */))
|
|
517
570
|
], 4 /* STYLE */)
|
|
518
571
|
]))
|
|
519
572
|
: ($options.presentation === 'notes' && $options.noteAction)
|
|
520
573
|
? (openBlock(), createBlock(_component_CnRecordNoteRows, {
|
|
521
|
-
key:
|
|
574
|
+
key: 9,
|
|
522
575
|
items: $options.items,
|
|
523
576
|
action: $options.noteAction,
|
|
524
577
|
recordAll: $options.noteRecordAll,
|
|
525
578
|
leaf: $props.content.rowLeaf || null
|
|
526
579
|
}, null, 8 /* PROPS */, ["items", "action", "recordAll", "leaf"]))
|
|
527
|
-
: (openBlock(true), createElementBlock(Fragment, { key:
|
|
580
|
+
: (openBlock(true), createElementBlock(Fragment, { key: 10 }, renderList($options.itemGroups, (group) => {
|
|
528
581
|
return (openBlock(), createElementBlock(Fragment, {
|
|
529
582
|
key: group.key
|
|
530
583
|
}, [
|
|
531
584
|
(group.label && $options.footerGroup !== '' && group.value === $options.footerGroup)
|
|
532
|
-
? (openBlock(), createElementBlock("div",
|
|
585
|
+
? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
533
586
|
createElementVNode("h3", {
|
|
534
587
|
id: group.headingId,
|
|
535
588
|
class: "cn-record-list__group-heading",
|
|
536
589
|
"data-testid": "cn-record-list-group-heading"
|
|
537
|
-
}, toDisplayString(group.label), 9 /* TEXT, PROPS */,
|
|
590
|
+
}, toDisplayString(group.label), 9 /* TEXT, PROPS */, _hoisted_24),
|
|
538
591
|
createVNode(_component_NcButton, {
|
|
539
592
|
variant: "secondary",
|
|
540
593
|
class: normalizeClass({ 'cn-record-list__action--tonal': $options.footerTonal, 'cn-button--tonal': $options.footerTonal }),
|
|
@@ -568,7 +621,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
568
621
|
id: group.headingId,
|
|
569
622
|
class: normalizeClass(["cn-record-list__group-heading", group.tone ? `cn-record-list__group-heading--${group.tone}` : null]),
|
|
570
623
|
"data-testid": "cn-record-list-group-heading"
|
|
571
|
-
}, toDisplayString(group.label), 11 /* TEXT, CLASS, PROPS */,
|
|
624
|
+
}, toDisplayString(group.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_25))
|
|
572
625
|
: createCommentVNode("v-if", true),
|
|
573
626
|
(group.items.length > 0)
|
|
574
627
|
? (openBlock(), createElementBlock("ul", {
|
|
@@ -584,9 +637,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
584
637
|
"data-testid": "cn-record-list-item"
|
|
585
638
|
}, [
|
|
586
639
|
($options.presentation === 'rows' && item.action)
|
|
587
|
-
? (openBlock(), createElementBlock("div",
|
|
640
|
+
? (openBlock(), createElementBlock("div", _hoisted_27, [
|
|
588
641
|
(item.leading)
|
|
589
|
-
? (openBlock(), createElementBlock("span",
|
|
642
|
+
? (openBlock(), createElementBlock("span", _hoisted_28, toDisplayString(item.leading), 1 /* TEXT */))
|
|
590
643
|
: createCommentVNode("v-if", true),
|
|
591
644
|
(item.initials || item.avatarIcon)
|
|
592
645
|
? (openBlock(), createElementBlock("span", {
|
|
@@ -616,7 +669,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
616
669
|
"data-testid": "cn-record-list-dot"
|
|
617
670
|
}, null, 6 /* CLASS, STYLE */))
|
|
618
671
|
: createCommentVNode("v-if", true),
|
|
619
|
-
createElementVNode("span",
|
|
672
|
+
createElementVNode("span", _hoisted_29, [
|
|
620
673
|
(item.title)
|
|
621
674
|
? (openBlock(), createBlock(resolveDynamicComponent(item.tag), mergeProps({
|
|
622
675
|
key: 0,
|
|
@@ -629,14 +682,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
629
682
|
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["class"]))
|
|
630
683
|
: createCommentVNode("v-if", true),
|
|
631
684
|
(item.meta)
|
|
632
|
-
? (openBlock(), createElementBlock("span",
|
|
685
|
+
? (openBlock(), createElementBlock("span", _hoisted_30, toDisplayString(item.meta), 1 /* TEXT */))
|
|
633
686
|
: createCommentVNode("v-if", true)
|
|
634
687
|
]),
|
|
635
688
|
(item.flag)
|
|
636
|
-
? (openBlock(), createElementBlock("span",
|
|
689
|
+
? (openBlock(), createElementBlock("span", _hoisted_31, toDisplayString(item.flag), 1 /* TEXT */))
|
|
637
690
|
: createCommentVNode("v-if", true),
|
|
638
691
|
(item.pill || item.badges.length > 0)
|
|
639
|
-
? (openBlock(), createElementBlock("span",
|
|
692
|
+
? (openBlock(), createElementBlock("span", _hoisted_32, [
|
|
640
693
|
(item.pill)
|
|
641
694
|
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
642
695
|
key: 0,
|
|
@@ -654,7 +707,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
654
707
|
key: 0,
|
|
655
708
|
class: normalizeClass(["cn-record-list__badge-text", `cn-record-list__badge-text--${badge.variant}`]),
|
|
656
709
|
"data-testid": `cn-record-list-badge-${badge.kind}`
|
|
657
|
-
}, toDisplayString(badge.label), 11 /* TEXT, CLASS, PROPS */,
|
|
710
|
+
}, toDisplayString(badge.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_33))
|
|
658
711
|
: (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
659
712
|
key: 1,
|
|
660
713
|
label: badge.label,
|
|
@@ -674,7 +727,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
674
727
|
}, toDisplayString(item.due.text), 3 /* TEXT, CLASS */))
|
|
675
728
|
: createCommentVNode("v-if", true),
|
|
676
729
|
(item.trailing)
|
|
677
|
-
? (openBlock(), createElementBlock("span",
|
|
730
|
+
? (openBlock(), createElementBlock("span", _hoisted_34, toDisplayString(item.trailing), 1 /* TEXT */))
|
|
678
731
|
: createCommentVNode("v-if", true),
|
|
679
732
|
(openBlock(), createBlock(resolveDynamicComponent(item.action.tag), mergeProps({
|
|
680
733
|
class: ["cn-record-list__action", { 'cn-record-list__action--outlined': $options.rowActionOutlined, 'cn-record-list__action--icon': item.action.iconOnly }]
|
|
@@ -703,10 +756,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
703
756
|
}, { ref_for: true }, item.attrs), {
|
|
704
757
|
default: withCtx(() => [
|
|
705
758
|
(item.leading)
|
|
706
|
-
? (openBlock(), createElementBlock("span",
|
|
759
|
+
? (openBlock(), createElementBlock("span", _hoisted_35, toDisplayString(item.leading), 1 /* TEXT */))
|
|
707
760
|
: createCommentVNode("v-if", true),
|
|
708
761
|
($options.pillFirst && !$options.headLine && item.pill)
|
|
709
|
-
? (openBlock(), createElementBlock("span",
|
|
762
|
+
? (openBlock(), createElementBlock("span", _hoisted_36, [
|
|
710
763
|
createVNode(_component_CnStatusBadge, {
|
|
711
764
|
label: item.pill.label,
|
|
712
765
|
variant: item.pill.variant,
|
|
@@ -756,9 +809,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
756
809
|
}, null, 8 /* PROPS */, ["name", "size"])
|
|
757
810
|
], 6 /* CLASS, STYLE */))
|
|
758
811
|
: createCommentVNode("v-if", true),
|
|
759
|
-
createElementVNode("span",
|
|
812
|
+
createElementVNode("span", _hoisted_37, [
|
|
760
813
|
($options.headLine)
|
|
761
|
-
? (openBlock(), createElementBlock("span",
|
|
814
|
+
? (openBlock(), createElementBlock("span", _hoisted_38, [
|
|
762
815
|
(item.pill)
|
|
763
816
|
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
764
817
|
key: 0,
|
|
@@ -768,18 +821,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
768
821
|
}, null, 8 /* PROPS */, ["label", "variant"]))
|
|
769
822
|
: createCommentVNode("v-if", true),
|
|
770
823
|
(item.title)
|
|
771
|
-
? (openBlock(), createElementBlock("span",
|
|
824
|
+
? (openBlock(), createElementBlock("span", _hoisted_39, toDisplayString(item.title), 1 /* TEXT */))
|
|
772
825
|
: createCommentVNode("v-if", true),
|
|
773
826
|
(item.meta)
|
|
774
|
-
? (openBlock(), createElementBlock("span",
|
|
827
|
+
? (openBlock(), createElementBlock("span", _hoisted_40, toDisplayString(item.meta), 1 /* TEXT */))
|
|
775
828
|
: createCommentVNode("v-if", true)
|
|
776
829
|
]))
|
|
777
830
|
: (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
778
831
|
(item.title)
|
|
779
|
-
? (openBlock(), createElementBlock("span",
|
|
832
|
+
? (openBlock(), createElementBlock("span", _hoisted_41, toDisplayString(item.title), 1 /* TEXT */))
|
|
780
833
|
: createCommentVNode("v-if", true),
|
|
781
834
|
(item.meta)
|
|
782
|
-
? (openBlock(), createElementBlock("span",
|
|
835
|
+
? (openBlock(), createElementBlock("span", _hoisted_42, toDisplayString(item.meta), 1 /* TEXT */))
|
|
783
836
|
: createCommentVNode("v-if", true)
|
|
784
837
|
], 64 /* STABLE_FRAGMENT */)),
|
|
785
838
|
(item.text)
|
|
@@ -797,7 +850,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
797
850
|
}, toDisplayString(item.due.text), 3 /* TEXT, CLASS */))
|
|
798
851
|
: createCommentVNode("v-if", true),
|
|
799
852
|
(item.links.length > 0)
|
|
800
|
-
? (openBlock(), createElementBlock("span",
|
|
853
|
+
? (openBlock(), createElementBlock("span", _hoisted_43, [
|
|
801
854
|
createTextVNode(toDisplayString($options.linksLabel) + " ", 1 /* TEXT */),
|
|
802
855
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.links, (link, linkIndex) => {
|
|
803
856
|
return (openBlock(), createElementBlock(Fragment, {
|
|
@@ -813,9 +866,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
813
866
|
]),
|
|
814
867
|
_: 2 /* DYNAMIC */
|
|
815
868
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["to"]))
|
|
816
|
-
: (openBlock(), createElementBlock("span",
|
|
869
|
+
: (openBlock(), createElementBlock("span", _hoisted_44, toDisplayString(link.label), 1 /* TEXT */)),
|
|
817
870
|
(linkIndex < item.links.length - 1)
|
|
818
|
-
? (openBlock(), createElementBlock("span",
|
|
871
|
+
? (openBlock(), createElementBlock("span", _hoisted_45, ", "))
|
|
819
872
|
: createCommentVNode("v-if", true)
|
|
820
873
|
], 64 /* STABLE_FRAGMENT */))
|
|
821
874
|
}), 128 /* KEYED_FRAGMENT */))
|
|
@@ -823,9 +876,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
823
876
|
: createCommentVNode("v-if", true)
|
|
824
877
|
]),
|
|
825
878
|
((item.pill && $options.pillAside) || item.badges.length > 0 || (item.due && !$options.dueBelow) || item.trailing || item.flag)
|
|
826
|
-
? (openBlock(), createElementBlock("span",
|
|
879
|
+
? (openBlock(), createElementBlock("span", _hoisted_46, [
|
|
827
880
|
(item.flag)
|
|
828
|
-
? (openBlock(), createElementBlock("span",
|
|
881
|
+
? (openBlock(), createElementBlock("span", _hoisted_47, toDisplayString(item.flag), 1 /* TEXT */))
|
|
829
882
|
: createCommentVNode("v-if", true),
|
|
830
883
|
(item.pill && $options.pillAside)
|
|
831
884
|
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
@@ -844,7 +897,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
844
897
|
key: 0,
|
|
845
898
|
class: normalizeClass(["cn-record-list__badge-text", `cn-record-list__badge-text--${badge.variant}`]),
|
|
846
899
|
"data-testid": `cn-record-list-badge-${badge.kind}`
|
|
847
|
-
}, toDisplayString(badge.label), 11 /* TEXT, CLASS, PROPS */,
|
|
900
|
+
}, toDisplayString(badge.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_48))
|
|
848
901
|
: (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
849
902
|
key: 1,
|
|
850
903
|
label: badge.label,
|
|
@@ -862,7 +915,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
862
915
|
}, toDisplayString(item.due.text), 3 /* TEXT, CLASS */))
|
|
863
916
|
: createCommentVNode("v-if", true),
|
|
864
917
|
(item.trailing)
|
|
865
|
-
? (openBlock(), createElementBlock("span",
|
|
918
|
+
? (openBlock(), createElementBlock("span", _hoisted_49, toDisplayString(item.trailing), 1 /* TEXT */))
|
|
866
919
|
: createCommentVNode("v-if", true)
|
|
867
920
|
]))
|
|
868
921
|
: createCommentVNode("v-if", true),
|
|
@@ -905,7 +958,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
905
958
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
906
959
|
: createCommentVNode("v-if", true),
|
|
907
960
|
(item.tag === 'div' && item.rowActions.length > 0 && $options.rowActionsInline)
|
|
908
|
-
? (openBlock(), createElementBlock("span",
|
|
961
|
+
? (openBlock(), createElementBlock("span", _hoisted_50, [
|
|
909
962
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.rowActions, (entry) => {
|
|
910
963
|
return (openBlock(), createBlock(_component_NcButton, {
|
|
911
964
|
key: `row-action-${entry.index}`,
|
|
@@ -972,8 +1025,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
972
1025
|
class: ["cn-record-list__card", { 'cn-record-list__card--link': item.tag !== 'div' }]
|
|
973
1026
|
}, { ref_for: true }, item.attrs, { "data-testid": "cn-record-list-card" }), {
|
|
974
1027
|
default: withCtx(() => [
|
|
975
|
-
createElementVNode("span",
|
|
976
|
-
createElementVNode("span",
|
|
1028
|
+
createElementVNode("span", _hoisted_51, [
|
|
1029
|
+
createElementVNode("span", _hoisted_52, [
|
|
977
1030
|
($options.cardIcons)
|
|
978
1031
|
? (openBlock(), createBlock(_component_CnIcon, {
|
|
979
1032
|
key: 0,
|
|
@@ -983,11 +1036,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
983
1036
|
}, null, 8 /* PROPS */, ["name"]))
|
|
984
1037
|
: createCommentVNode("v-if", true),
|
|
985
1038
|
(item.title)
|
|
986
|
-
? (openBlock(), createElementBlock("span",
|
|
1039
|
+
? (openBlock(), createElementBlock("span", _hoisted_53, toDisplayString(item.title), 1 /* TEXT */))
|
|
987
1040
|
: createCommentVNode("v-if", true)
|
|
988
1041
|
]),
|
|
989
1042
|
(item.pill || item.badges.length > 0)
|
|
990
|
-
? (openBlock(), createElementBlock("span",
|
|
1043
|
+
? (openBlock(), createElementBlock("span", _hoisted_54, [
|
|
991
1044
|
(item.pill)
|
|
992
1045
|
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
993
1046
|
key: 0,
|
|
@@ -1005,7 +1058,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1005
1058
|
key: 0,
|
|
1006
1059
|
class: normalizeClass(["cn-record-list__badge-text", `cn-record-list__badge-text--${badge.variant}`]),
|
|
1007
1060
|
"data-testid": `cn-record-list-badge-${badge.kind}`
|
|
1008
|
-
}, toDisplayString(badge.label), 11 /* TEXT, CLASS, PROPS */,
|
|
1061
|
+
}, toDisplayString(badge.label), 11 /* TEXT, CLASS, PROPS */, _hoisted_55))
|
|
1009
1062
|
: (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
1010
1063
|
key: 1,
|
|
1011
1064
|
label: badge.label,
|
|
@@ -1019,17 +1072,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1019
1072
|
: createCommentVNode("v-if", true)
|
|
1020
1073
|
]),
|
|
1021
1074
|
(item.meta)
|
|
1022
|
-
? (openBlock(), createElementBlock("span",
|
|
1075
|
+
? (openBlock(), createElementBlock("span", _hoisted_56, toDisplayString(item.meta), 1 /* TEXT */))
|
|
1023
1076
|
: createCommentVNode("v-if", true),
|
|
1024
1077
|
(item.trailing)
|
|
1025
|
-
? (openBlock(), createElementBlock("span",
|
|
1078
|
+
? (openBlock(), createElementBlock("span", _hoisted_57, toDisplayString(item.trailing), 1 /* TEXT */))
|
|
1026
1079
|
: createCommentVNode("v-if", true)
|
|
1027
1080
|
]),
|
|
1028
1081
|
_: 2 /* DYNAMIC */
|
|
1029
1082
|
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["class"]))
|
|
1030
1083
|
: ($options.presentation === 'feed')
|
|
1031
|
-
? (openBlock(), createElementBlock("div",
|
|
1032
|
-
createElementVNode("span",
|
|
1084
|
+
? (openBlock(), createElementBlock("div", _hoisted_58, [
|
|
1085
|
+
createElementVNode("span", _hoisted_59, [
|
|
1033
1086
|
createVNode(_component_CnIcon, {
|
|
1034
1087
|
name: item.icon,
|
|
1035
1088
|
size: 18
|
|
@@ -1038,18 +1091,18 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1038
1091
|
(openBlock(), createBlock(resolveDynamicComponent(item.tag), mergeProps({ class: "cn-record-list__main" }, { ref_for: true }, item.attrs), {
|
|
1039
1092
|
default: withCtx(() => [
|
|
1040
1093
|
(item.meta)
|
|
1041
|
-
? (openBlock(), createElementBlock("span",
|
|
1094
|
+
? (openBlock(), createElementBlock("span", _hoisted_60, toDisplayString(item.meta), 1 /* TEXT */))
|
|
1042
1095
|
: createCommentVNode("v-if", true),
|
|
1043
1096
|
(item.text)
|
|
1044
|
-
? (openBlock(), createElementBlock("span",
|
|
1097
|
+
? (openBlock(), createElementBlock("span", _hoisted_61, toDisplayString(item.text), 1 /* TEXT */))
|
|
1045
1098
|
: createCommentVNode("v-if", true)
|
|
1046
1099
|
]),
|
|
1047
1100
|
_: 2 /* DYNAMIC */
|
|
1048
1101
|
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */))
|
|
1049
1102
|
]))
|
|
1050
|
-
: (openBlock(), createElementBlock("div",
|
|
1103
|
+
: (openBlock(), createElementBlock("div", _hoisted_62, [
|
|
1051
1104
|
(item.label)
|
|
1052
|
-
? (openBlock(), createElementBlock("span",
|
|
1105
|
+
? (openBlock(), createElementBlock("span", _hoisted_63, toDisplayString(item.label), 1 /* TEXT */))
|
|
1053
1106
|
: createCommentVNode("v-if", true),
|
|
1054
1107
|
(openBlock(), createBlock(resolveDynamicComponent(item.tag), mergeProps({ class: "cn-record-list__inline-title" }, { ref_for: true }, item.attrs), {
|
|
1055
1108
|
default: withCtx(() => [
|
|
@@ -1073,20 +1126,20 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1073
1126
|
class: "cn-record-list__bar-fill",
|
|
1074
1127
|
style: normalizeStyle({ width: `${item.bar.share}%` })
|
|
1075
1128
|
}, null, 4 /* STYLE */)
|
|
1076
|
-
], 10 /* CLASS, PROPS */,
|
|
1129
|
+
], 10 /* CLASS, PROPS */, _hoisted_64))
|
|
1077
1130
|
: createCommentVNode("v-if", true)
|
|
1078
1131
|
]))
|
|
1079
1132
|
}), 128 /* KEYED_FRAGMENT */))
|
|
1080
|
-
], 10 /* CLASS, PROPS */,
|
|
1133
|
+
], 10 /* CLASS, PROPS */, _hoisted_26))
|
|
1081
1134
|
: createCommentVNode("v-if", true)
|
|
1082
1135
|
], 64 /* STABLE_FRAGMENT */))
|
|
1083
1136
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
1084
1137
|
($data.actionError)
|
|
1085
|
-
? (openBlock(), createElementBlock("p",
|
|
1138
|
+
? (openBlock(), createElementBlock("p", _hoisted_65, toDisplayString($data.actionError), 1 /* TEXT */))
|
|
1086
1139
|
: createCommentVNode("v-if", true),
|
|
1087
1140
|
($options.footnoteTone && $options.footnote && !$data.error && !$options.absent && ($data.rows.length > 0 || $options.footnoteFromAnswer))
|
|
1088
1141
|
? (openBlock(), createElementBlock("div", {
|
|
1089
|
-
key:
|
|
1142
|
+
key: 12,
|
|
1090
1143
|
class: normalizeClass(["cn-record-list__notice cn-record-list__notice--footnote", `cn-record-list__notice--${$options.footnoteTone}`]),
|
|
1091
1144
|
"data-testid": "cn-record-list-footnote"
|
|
1092
1145
|
}, [
|
|
@@ -1096,14 +1149,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1096
1149
|
class: "cn-record-list__notice-icon",
|
|
1097
1150
|
"aria-hidden": "true"
|
|
1098
1151
|
}, null, 8 /* PROPS */, ["name"]),
|
|
1099
|
-
createElementVNode("p",
|
|
1152
|
+
createElementVNode("p", _hoisted_66, toDisplayString($options.footnote), 1 /* TEXT */)
|
|
1100
1153
|
], 2 /* CLASS */))
|
|
1101
1154
|
: ($options.footnote && !$data.error && !$options.absent && ($data.rows.length > 0 || $options.footnoteFromAnswer))
|
|
1102
|
-
? (openBlock(), createElementBlock("p",
|
|
1155
|
+
? (openBlock(), createElementBlock("p", _hoisted_67, toDisplayString($options.footnote), 1 /* TEXT */))
|
|
1103
1156
|
: createCommentVNode("v-if", true),
|
|
1104
1157
|
($options.footerLink && $options.footerLink.to)
|
|
1105
1158
|
? (openBlock(), createBlock(_component_router_link, {
|
|
1106
|
-
key:
|
|
1159
|
+
key: 14,
|
|
1107
1160
|
class: "cn-record-list__footer-link",
|
|
1108
1161
|
to: $options.footerLink.to,
|
|
1109
1162
|
"data-testid": "cn-record-list-footer-link"
|
|
@@ -1115,15 +1168,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1115
1168
|
}, 8 /* PROPS */, ["to"]))
|
|
1116
1169
|
: ($options.footerLink)
|
|
1117
1170
|
? (openBlock(), createElementBlock("a", {
|
|
1118
|
-
key:
|
|
1171
|
+
key: 15,
|
|
1119
1172
|
class: "cn-record-list__footer-link",
|
|
1120
1173
|
href: $options.footerLink.href,
|
|
1121
1174
|
"data-testid": "cn-record-list-footer-link"
|
|
1122
|
-
}, toDisplayString($options.footerLink.label), 9 /* TEXT, PROPS */,
|
|
1175
|
+
}, toDisplayString($options.footerLink.label), 9 /* TEXT, PROPS */, _hoisted_68))
|
|
1123
1176
|
: createCommentVNode("v-if", true),
|
|
1124
1177
|
($options.footerGroupHead && $data.rows.length === 0 && !$data.error && !$data.loading)
|
|
1125
|
-
? (openBlock(), createElementBlock("div",
|
|
1126
|
-
createElementVNode("h3",
|
|
1178
|
+
? (openBlock(), createElementBlock("div", _hoisted_69, [
|
|
1179
|
+
createElementVNode("h3", _hoisted_70, toDisplayString($options.footerGroupHead), 1 /* TEXT */),
|
|
1127
1180
|
createVNode(_component_NcButton, {
|
|
1128
1181
|
variant: "secondary",
|
|
1129
1182
|
class: normalizeClass({ 'cn-record-list__action--tonal': $options.footerTonal, 'cn-button--tonal': $options.footerTonal }),
|
|
@@ -1154,22 +1207,22 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1154
1207
|
: createCommentVNode("v-if", true),
|
|
1155
1208
|
($options.footerGroup !== '' && $data.footerDisabled && $options.footerAction && $options.footerAction.reason && !$data.error)
|
|
1156
1209
|
? (openBlock(), createElementBlock("p", {
|
|
1157
|
-
key:
|
|
1210
|
+
key: 17,
|
|
1158
1211
|
id: $data.footerReasonId,
|
|
1159
1212
|
class: "cn-record-list__footer-reason",
|
|
1160
1213
|
"data-testid": "cn-record-list-footer-reason"
|
|
1161
|
-
}, toDisplayString($options.footerAction.reason), 9 /* TEXT, PROPS */,
|
|
1214
|
+
}, toDisplayString($options.footerAction.reason), 9 /* TEXT, PROPS */, _hoisted_71))
|
|
1162
1215
|
: createCommentVNode("v-if", true),
|
|
1163
1216
|
($options.footerAction && $options.footerGroup === '' && !$data.error)
|
|
1164
1217
|
? (openBlock(), createElementBlock("div", {
|
|
1165
|
-
key:
|
|
1218
|
+
key: 18,
|
|
1166
1219
|
class: normalizeClass(["cn-record-list__footer", { 'cn-record-list__footer--wide': $options.footerAction.wide, 'cn-record-list__footer--row': $options.footerAction.row }]),
|
|
1167
1220
|
"data-testid": "cn-record-list-footer"
|
|
1168
1221
|
}, [
|
|
1169
1222
|
($options.footerAction.lead || $options.footerNoteText)
|
|
1170
|
-
? (openBlock(), createElementBlock("p",
|
|
1223
|
+
? (openBlock(), createElementBlock("p", _hoisted_72, [
|
|
1171
1224
|
($options.footerAction.lead)
|
|
1172
|
-
? (openBlock(), createElementBlock("strong",
|
|
1225
|
+
? (openBlock(), createElementBlock("strong", _hoisted_73, toDisplayString($options.footerAction.lead), 1 /* TEXT */))
|
|
1173
1226
|
: createCommentVNode("v-if", true),
|
|
1174
1227
|
createTextVNode(" " + toDisplayString($options.footerNoteText), 1 /* TEXT */)
|
|
1175
1228
|
]))
|
|
@@ -1207,9 +1260,39 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1207
1260
|
id: $data.footerReasonId,
|
|
1208
1261
|
class: "cn-record-list__footer-reason",
|
|
1209
1262
|
"data-testid": "cn-record-list-footer-reason"
|
|
1210
|
-
}, toDisplayString($options.footerAction.reason), 9 /* TEXT, PROPS */,
|
|
1263
|
+
}, toDisplayString($options.footerAction.reason), 9 /* TEXT, PROPS */, _hoisted_74))
|
|
1211
1264
|
: createCommentVNode("v-if", true)
|
|
1212
1265
|
], 2 /* CLASS */))
|
|
1266
|
+
: createCommentVNode("v-if", true),
|
|
1267
|
+
($options.footerActionList.length > 0 && !$data.error)
|
|
1268
|
+
? (openBlock(), createElementBlock("div", _hoisted_75, [
|
|
1269
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.footerActionList, (entry) => {
|
|
1270
|
+
return (openBlock(), createBlock(_component_NcButton, {
|
|
1271
|
+
key: entry.key,
|
|
1272
|
+
variant: entry.variant,
|
|
1273
|
+
"data-testid": `cn-record-list-footer-actions-${entry.key}`,
|
|
1274
|
+
onClick: $event => ($options.runListAction(entry.action))
|
|
1275
|
+
}, createSlots({
|
|
1276
|
+
default: withCtx(() => [
|
|
1277
|
+
createTextVNode(" " + toDisplayString(entry.label), 1 /* TEXT */)
|
|
1278
|
+
]),
|
|
1279
|
+
_: 2 /* DYNAMIC */
|
|
1280
|
+
}, [
|
|
1281
|
+
(entry.icon)
|
|
1282
|
+
? {
|
|
1283
|
+
name: "icon",
|
|
1284
|
+
fn: withCtx(() => [
|
|
1285
|
+
createVNode(_component_CnIcon, {
|
|
1286
|
+
name: entry.icon,
|
|
1287
|
+
size: 16
|
|
1288
|
+
}, null, 8 /* PROPS */, ["name"])
|
|
1289
|
+
]),
|
|
1290
|
+
key: "0"
|
|
1291
|
+
}
|
|
1292
|
+
: undefined
|
|
1293
|
+
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["variant", "data-testid", "onClick"]))
|
|
1294
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
1295
|
+
]))
|
|
1213
1296
|
: createCommentVNode("v-if", true)
|
|
1214
1297
|
], 2 /* CLASS */))
|
|
1215
1298
|
}
|