@conduction/nextcloud-vue 2.96.0 → 2.98.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/CnAppRoot/CnAppRoot.vue2.js +17 -0
- package/dist/esm/components/CnAppRoot/CnAppRoot.vue2.js.map +1 -1
- package/dist/esm/components/CnAppRoot/CnAppRoot.vue3.js.map +1 -1
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue.js +1 -1
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue2.js +33 -1
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue2.js.map +1 -1
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue3.js +383 -359
- package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue3.js.map +1 -1
- package/dist/esm/components/CnChartWidget/CnChartWidget.vue.js +1 -1
- package/dist/esm/components/CnChartWidget/CnChartWidget.vue2.js +106 -2
- package/dist/esm/components/CnChartWidget/CnChartWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnChartWidget/CnChartWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue.js +9 -0
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue.js.map +1 -0
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js +964 -0
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js.map +1 -0
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue3.js +282 -0
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue3.js.map +1 -0
- package/dist/esm/components/CnChecklistRunWidget/index.js +28 -0
- package/dist/esm/components/CnChecklistRunWidget/index.js.map +1 -0
- package/dist/esm/components/CnConversationThread/CnConversationThread.vue.js +1 -1
- package/dist/esm/components/CnConversationThread/CnConversationThread.vue2.js +17 -3
- package/dist/esm/components/CnConversationThread/CnConversationThread.vue2.js.map +1 -1
- package/dist/esm/components/CnConversationThread/CnConversationThread.vue3.js +61 -43
- package/dist/esm/components/CnConversationThread/CnConversationThread.vue3.js.map +1 -1
- package/dist/esm/components/CnConversationThread/CnConversationWidget.vue.js +1 -1
- package/dist/esm/components/CnConversationThread/CnConversationWidget.vue2.js +159 -18
- package/dist/esm/components/CnConversationThread/CnConversationWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnConversationThread/CnConversationWidget.vue3.js +9 -7
- package/dist/esm/components/CnConversationThread/CnConversationWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue.js +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js +1 -0
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js.map +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js.map +1 -1
- package/dist/esm/components/CnDataTable/CnDataTable.vue2.js +26 -8
- package/dist/esm/components/CnDataTable/CnDataTable.vue2.js.map +1 -1
- package/dist/esm/components/CnDataTable/CnDataTable.vue3.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +188 -5
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js.map +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue.js +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js +48 -3
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js +46 -12
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnFeaturesAndRoadmapView/CnFeaturesAndRoadmapView.vue.js +1 -1
- package/dist/esm/components/CnFeaturesAndRoadmapView/CnFeaturesAndRoadmapView.vue2.js +3 -3
- package/dist/esm/components/CnFeaturesAndRoadmapView/CnFeaturesAndRoadmapView.vue2.js.map +1 -1
- package/dist/esm/components/CnFeaturesAndRoadmapView/CnFeaturesAndRoadmapView.vue3.js.map +1 -1
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue.js +1 -1
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue2.js +27 -0
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue2.js.map +1 -1
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue3.js +16 -2
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue3.js.map +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue.js +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js +144 -0
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js.map +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js +488 -399
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js.map +1 -1
- package/dist/esm/components/CnFilesBrowser/filesBrowserColumns.js +8 -2
- package/dist/esm/components/CnFilesBrowser/filesBrowserColumns.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +344 -21
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +29 -7
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPageWidgets.vue.js +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPageWidgets.vue2.js +2 -2
- package/dist/esm/components/CnIndexPage/CnIndexPageWidgets.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPageWidgets.vue3.js +2 -2
- package/dist/esm/components/CnIndexPage/CnIndexPageWidgets.vue3.js.map +1 -1
- package/dist/esm/components/CnIndexPage/useNamedSource.js +1 -1
- package/dist/esm/components/CnIndexPage/useNamedSource.js.map +1 -1
- package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue.js +1 -1
- package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue2.js +13 -0
- package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue2.js.map +1 -1
- package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue3.js +5 -1
- package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue3.js.map +1 -1
- package/dist/esm/components/CnOrderedListField/CnOrderedListField.vue.js +9 -0
- package/dist/esm/components/CnOrderedListField/CnOrderedListField.vue.js.map +1 -0
- package/dist/esm/components/CnOrderedListField/CnOrderedListField.vue2.js +220 -0
- package/dist/esm/components/CnOrderedListField/CnOrderedListField.vue2.js.map +1 -0
- package/dist/esm/components/CnOrderedListField/CnOrderedListField.vue3.js +121 -0
- package/dist/esm/components/CnOrderedListField/CnOrderedListField.vue3.js.map +1 -0
- package/dist/esm/components/CnUserSettingsDialog/CnUserSettingsDialog.vue.js +1 -1
- package/dist/esm/components/CnUserSettingsDialog/CnUserSettingsDialog.vue2.js +83 -9
- package/dist/esm/components/CnUserSettingsDialog/CnUserSettingsDialog.vue2.js.map +1 -1
- package/dist/esm/components/CnUserSettingsDialog/CnUserSettingsDialog.vue3.js +80 -11
- package/dist/esm/components/CnUserSettingsDialog/CnUserSettingsDialog.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 +420 -5
- package/dist/esm/composables/indexSources.js.map +1 -1
- package/dist/esm/composables/useOrganisationStore.js +115 -0
- package/dist/esm/composables/useOrganisationStore.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/l10n/en.json.js +21 -1
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +36 -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 +725 -383
- package/dist/esm/utils/builtInFormatters.js +34 -1
- package/dist/esm/utils/builtInFormatters.js.map +1 -1
- package/dist/esm/utils/libraryWidgetKeys.js +1 -0
- package/dist/esm/utils/libraryWidgetKeys.js.map +1 -1
- package/dist/esm/utils/matrixCells.js +158 -0
- package/dist/esm/utils/matrixCells.js.map +1 -0
- package/dist/esm/utils/nextcloudDirectory.js +121 -0
- package/dist/esm/utils/nextcloudDirectory.js.map +1 -0
- package/dist/esm/utils/queryPresets.js +13 -2
- package/dist/esm/utils/queryPresets.js.map +1 -1
- package/dist/esm/utils/scopeListLayout.js +37 -1
- package/dist/esm/utils/scopeListLayout.js.map +1 -1
- package/dist/esm/utils/validateManifestV2.compiled.js +3 -3
- package/dist/esm/utils/validateManifestV2.compiled.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +14443 -10519
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +725 -383
- package/l10n/en.json +21 -1
- package/l10n/nl.json +36 -1
- package/package.json +2 -2
- package/scripts/merge-l10n.js +196 -0
- package/src/components/CnAppRoot/CnAppRoot.md +1 -0
- package/src/components/CnAppRoot/CnAppRoot.vue +17 -0
- package/src/components/CnCellRenderer/CnCellRenderer.vue +57 -1
- package/src/components/CnChartWidget/CnChartWidget.md +2 -1
- package/src/components/CnChartWidget/CnChartWidget.vue +106 -2
- package/src/components/CnChecklistRunWidget/CnChecklistRunWidget.vue +1269 -0
- package/src/components/CnChecklistRunWidget/index.js +27 -0
- package/src/components/CnConversationThread/CnConversationThread.md +12 -0
- package/src/components/CnConversationThread/CnConversationThread.vue +30 -4
- package/src/components/CnConversationThread/CnConversationWidget.vue +167 -24
- package/src/components/CnDashboardPage/CnDashboardPage.vue +1 -0
- package/src/components/CnDataTable/CnDataTable.vue +26 -8
- package/src/components/CnDetailPage/CnDetailPage.md +48 -0
- package/src/components/CnDetailPage/CnDetailPage.vue +188 -5
- package/src/components/CnFactsWidget/CnFactsWidget.vue +114 -3
- package/src/components/CnFeaturesAndRoadmapView/CnFeaturesAndRoadmapView.vue +3 -3
- package/src/components/CnFeaturesBoard/CnFeaturesBoard.vue +38 -2
- package/src/components/CnFilesBrowser/CnFilesBrowser.vue +508 -236
- package/src/components/CnFilesBrowser/filesBrowserColumns.js +8 -2
- package/src/components/CnIndexPage/CnIndexPage.md +28 -0
- package/src/components/CnIndexPage/CnIndexPage.vue +367 -27
- package/src/components/CnIndexPage/CnIndexPageWidgets.vue +13 -4
- package/src/components/CnIndexPage/useNamedSource.js +1 -1
- package/src/components/CnObjectSidebar/CnFilesTab.vue +17 -0
- package/src/components/CnOrderedListField/CnOrderedListField.vue +386 -0
- package/src/components/CnOrderedListField/index.js +7 -0
- package/src/components/CnUserSettingsDialog/CnUserSettingsDialog.vue +139 -10
- package/src/components/CnWidgetGrid/registerDashboardWidgets.js +1 -0
- package/src/components/index.js +2 -0
- package/src/composables/indexSources.js +419 -4
- package/src/composables/useOrganisationStore.js +111 -0
- package/src/index.js +2 -0
- package/src/schemas/app-manifest-v2.schema.json +42 -5
- package/src/utils/builtInFormatters.js +33 -0
- package/src/utils/libraryWidgetKeys.js +1 -0
- package/src/utils/matrixCells.js +154 -0
- package/src/utils/nextcloudDirectory.js +117 -0
- package/src/utils/queryPresets.js +13 -2
- package/src/utils/scopeListLayout.js +37 -1
- package/src/utils/validateManifestV2.compiled.js +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, resolveDynamicComponent, mergeProps, Fragment, renderList, createCommentVNode, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, normalizeStyle
|
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, resolveDynamicComponent, mergeProps, Fragment, renderList, createCommentVNode, createVNode, withModifiers, withCtx, createTextVNode, toDisplayString, createElementVNode, normalizeStyle } from 'vue';
|
|
2
2
|
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
key: 0,
|
|
@@ -10,148 +10,154 @@ const _hoisted_2 = {
|
|
|
10
10
|
};
|
|
11
11
|
const _hoisted_3 = { key: 0 };
|
|
12
12
|
const _hoisted_4 = {
|
|
13
|
-
key:
|
|
14
|
-
class: "cn-cell-
|
|
13
|
+
key: 2,
|
|
14
|
+
class: "cn-cell-renderer__actions",
|
|
15
|
+
"data-testid": "cn-cell-actions"
|
|
15
16
|
};
|
|
16
17
|
const _hoisted_5 = {
|
|
17
18
|
key: 1,
|
|
18
19
|
class: "cn-cell-renderer__dash"
|
|
19
20
|
};
|
|
20
21
|
const _hoisted_6 = {
|
|
21
|
-
key:
|
|
22
|
+
key: 1,
|
|
22
23
|
class: "cn-cell-renderer__dash"
|
|
23
24
|
};
|
|
24
25
|
const _hoisted_7 = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "cn-cell-renderer__dash"
|
|
28
|
+
};
|
|
29
|
+
const _hoisted_8 = {
|
|
25
30
|
key: 1,
|
|
26
31
|
class: "cn-cell-renderer__ref-labels",
|
|
27
32
|
"data-testid": "cn-cell-ref-labels"
|
|
28
33
|
};
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
34
|
+
const _hoisted_9 = { key: 0 };
|
|
35
|
+
const _hoisted_10 = ["href"];
|
|
36
|
+
const _hoisted_11 = ["title"];
|
|
37
|
+
const _hoisted_12 = {
|
|
33
38
|
class: "cn-cell-renderer__avatar",
|
|
34
39
|
"data-testid": "cn-cell-avatar-resolved"
|
|
35
40
|
};
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
41
|
+
const _hoisted_13 = { class: "cn-cell-renderer__avatar-text" };
|
|
42
|
+
const _hoisted_14 = ["title"];
|
|
43
|
+
const _hoisted_15 = {
|
|
39
44
|
key: 0,
|
|
40
45
|
class: "cn-cell-renderer__avatar-secondary",
|
|
41
46
|
"data-testid": "cn-cell-secondary"
|
|
42
47
|
};
|
|
43
|
-
const
|
|
48
|
+
const _hoisted_16 = {
|
|
44
49
|
key: 1,
|
|
45
50
|
class: "cn-cell-renderer__dash"
|
|
46
51
|
};
|
|
47
|
-
const
|
|
52
|
+
const _hoisted_17 = {
|
|
48
53
|
key: 0,
|
|
49
54
|
class: "cn-cell-renderer__avatar"
|
|
50
55
|
};
|
|
51
|
-
const
|
|
56
|
+
const _hoisted_18 = {
|
|
52
57
|
key: 0,
|
|
53
58
|
class: "cn-cell-renderer__avatar-picture",
|
|
54
59
|
"aria-hidden": "true"
|
|
55
60
|
};
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
const
|
|
61
|
+
const _hoisted_19 = { class: "cn-cell-renderer__avatar-text" };
|
|
62
|
+
const _hoisted_20 = ["title"];
|
|
63
|
+
const _hoisted_21 = {
|
|
59
64
|
key: 0,
|
|
60
65
|
class: "cn-cell-renderer__avatar-secondary",
|
|
61
66
|
"data-testid": "cn-cell-secondary"
|
|
62
67
|
};
|
|
63
|
-
const
|
|
68
|
+
const _hoisted_22 = {
|
|
64
69
|
key: 1,
|
|
65
70
|
class: "cn-cell-renderer__dash"
|
|
66
71
|
};
|
|
67
|
-
const
|
|
68
|
-
const
|
|
72
|
+
const _hoisted_23 = ["datetime", "title"];
|
|
73
|
+
const _hoisted_24 = {
|
|
69
74
|
key: 1,
|
|
70
75
|
class: "cn-cell-renderer__dash"
|
|
71
76
|
};
|
|
72
|
-
const
|
|
73
|
-
const
|
|
77
|
+
const _hoisted_25 = ["datetime", "title"];
|
|
78
|
+
const _hoisted_26 = {
|
|
74
79
|
key: 1,
|
|
75
80
|
class: "cn-cell-renderer__date cn-cell-renderer__due--empty",
|
|
76
81
|
"data-testid": "cn-cell-renderer-due"
|
|
77
82
|
};
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
const
|
|
81
|
-
const
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
const
|
|
83
|
+
const _hoisted_27 = ["datetime", "title"];
|
|
84
|
+
const _hoisted_28 = { class: "cn-cell-renderer__date-tile" };
|
|
85
|
+
const _hoisted_29 = { class: "cn-cell-renderer__date-day" };
|
|
86
|
+
const _hoisted_30 = { class: "cn-cell-renderer__date-month" };
|
|
87
|
+
const _hoisted_31 = { class: "cn-cell-renderer__date-lines" };
|
|
88
|
+
const _hoisted_32 = { class: "cn-cell-renderer__date-weekday" };
|
|
89
|
+
const _hoisted_33 = {
|
|
85
90
|
key: 0,
|
|
86
91
|
class: "cn-cell-renderer__date-time"
|
|
87
92
|
};
|
|
88
|
-
const
|
|
89
|
-
const
|
|
93
|
+
const _hoisted_34 = ["datetime", "title"];
|
|
94
|
+
const _hoisted_35 = {
|
|
90
95
|
key: 3,
|
|
91
96
|
class: "cn-cell-renderer__dash"
|
|
92
97
|
};
|
|
93
|
-
const
|
|
98
|
+
const _hoisted_36 = {
|
|
94
99
|
key: 0,
|
|
95
100
|
class: "cn-cell-renderer__dash"
|
|
96
101
|
};
|
|
97
|
-
const
|
|
102
|
+
const _hoisted_37 = {
|
|
98
103
|
key: 1,
|
|
99
104
|
class: "cn-cell-renderer__progress"
|
|
100
105
|
};
|
|
101
|
-
const
|
|
102
|
-
const
|
|
106
|
+
const _hoisted_38 = { class: "cn-cell-renderer__progress-line" };
|
|
107
|
+
const _hoisted_39 = {
|
|
103
108
|
class: "cn-cell-renderer__progress-bar",
|
|
104
109
|
"aria-hidden": "true"
|
|
105
110
|
};
|
|
106
|
-
const
|
|
107
|
-
key:
|
|
111
|
+
const _hoisted_40 = {
|
|
112
|
+
key: 13,
|
|
108
113
|
class: "cn-cell-renderer__icon-label",
|
|
109
114
|
"data-testid": "cn-cell-icon-label"
|
|
110
115
|
};
|
|
111
|
-
const
|
|
112
|
-
const
|
|
116
|
+
const _hoisted_41 = { key: 2 };
|
|
117
|
+
const _hoisted_42 = {
|
|
113
118
|
key: 3,
|
|
114
119
|
class: "cn-cell-renderer__dash"
|
|
115
120
|
};
|
|
116
|
-
const
|
|
117
|
-
const
|
|
118
|
-
key:
|
|
121
|
+
const _hoisted_43 = ["title"];
|
|
122
|
+
const _hoisted_44 = {
|
|
123
|
+
key: 15,
|
|
119
124
|
class: "cn-cell-renderer__swatch-wrap"
|
|
120
125
|
};
|
|
121
|
-
const
|
|
122
|
-
const
|
|
126
|
+
const _hoisted_45 = ["title"];
|
|
127
|
+
const _hoisted_46 = {
|
|
123
128
|
key: 2,
|
|
124
129
|
class: "cn-cell-renderer__dash"
|
|
125
130
|
};
|
|
126
|
-
const
|
|
127
|
-
const
|
|
128
|
-
const
|
|
131
|
+
const _hoisted_47 = ["title"];
|
|
132
|
+
const _hoisted_48 = ["datetime", "title"];
|
|
133
|
+
const _hoisted_49 = {
|
|
129
134
|
key: 2,
|
|
130
135
|
class: "cn-cell-renderer__dash"
|
|
131
136
|
};
|
|
132
|
-
const
|
|
133
|
-
const
|
|
134
|
-
const
|
|
137
|
+
const _hoisted_50 = ["href"];
|
|
138
|
+
const _hoisted_51 = ["title"];
|
|
139
|
+
const _hoisted_52 = {
|
|
135
140
|
key: 2,
|
|
136
141
|
class: "cn-cell-renderer__dash"
|
|
137
142
|
};
|
|
138
|
-
const
|
|
143
|
+
const _hoisted_53 = {
|
|
139
144
|
key: 1,
|
|
140
145
|
class: "cn-cell-renderer__dash"
|
|
141
146
|
};
|
|
142
|
-
const
|
|
147
|
+
const _hoisted_54 = {
|
|
143
148
|
key: 1,
|
|
144
149
|
class: "cn-cell-renderer__dash"
|
|
145
150
|
};
|
|
146
|
-
const
|
|
151
|
+
const _hoisted_55 = {
|
|
147
152
|
key: 0,
|
|
148
153
|
class: "cn-cell-renderer__dash"
|
|
149
154
|
};
|
|
150
|
-
const _hoisted_55 = ["title"];
|
|
151
155
|
const _hoisted_56 = ["title"];
|
|
156
|
+
const _hoisted_57 = ["title"];
|
|
152
157
|
|
|
153
158
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
154
159
|
const _component_CnGroupNameCell = resolveComponent("CnGroupNameCell");
|
|
160
|
+
const _component_NcButton = resolveComponent("NcButton");
|
|
155
161
|
const _component_CnStatusBadge = resolveComponent("CnStatusBadge");
|
|
156
162
|
const _component_CnFkResolveCell = resolveComponent("CnFkResolveCell");
|
|
157
163
|
const _component_router_link = resolveComponent("router-link");
|
|
@@ -187,358 +193,376 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
187
193
|
}), 128 /* KEYED_FRAGMENT */))
|
|
188
194
|
]))
|
|
189
195
|
], 64 /* STABLE_FRAGMENT */))
|
|
190
|
-
: ($props.widget === '
|
|
191
|
-
? (openBlock(), createElementBlock(
|
|
192
|
-
($options.
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
196
|
+
: ($props.widget === 'actions')
|
|
197
|
+
? (openBlock(), createElementBlock("span", _hoisted_4, [
|
|
198
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.actionItems, (item) => {
|
|
199
|
+
return (openBlock(), createBlock(_component_NcButton, {
|
|
200
|
+
key: item.key,
|
|
201
|
+
variant: item.variant,
|
|
202
|
+
size: "small",
|
|
203
|
+
disabled: item.disabled,
|
|
204
|
+
"data-testid": `cn-cell-action-${item.key}`,
|
|
205
|
+
onClick: withModifiers($event => ($options.runAction(item)), ["stop"])
|
|
206
|
+
}, {
|
|
207
|
+
default: withCtx(() => [
|
|
208
|
+
createTextVNode(toDisplayString(item.label), 1 /* TEXT */)
|
|
209
|
+
]),
|
|
210
|
+
_: 2 /* DYNAMIC */
|
|
211
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["variant", "disabled", "data-testid", "onClick"]))
|
|
212
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
213
|
+
]))
|
|
214
|
+
: ($props.widget === 'badge')
|
|
203
215
|
? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
|
204
216
|
($options.hasValue)
|
|
205
|
-
? (openBlock(), createBlock(
|
|
217
|
+
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
206
218
|
key: 0,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}, null, 8 /* PROPS */, ["
|
|
219
|
+
label: $options.labelledValue,
|
|
220
|
+
variant: $options.badgeVariant,
|
|
221
|
+
colorMap: $options.badgeColorMap,
|
|
222
|
+
colorKey: $options.badgeColorKey
|
|
223
|
+
}, null, 8 /* PROPS */, ["label", "variant", "colorMap", "colorKey"]))
|
|
212
224
|
: (openBlock(), createElementBlock("span", _hoisted_5, "—"))
|
|
213
225
|
], 64 /* STABLE_FRAGMENT */))
|
|
214
|
-
: ($props.widget === '
|
|
226
|
+
: ($props.widget === 'fkResolve')
|
|
215
227
|
? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
216
|
-
(
|
|
217
|
-
? (openBlock(),
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
: createCommentVNode("v-if", true),
|
|
226
|
-
(openBlock(), createBlock(resolveDynamicComponent(item.to ? 'router-link' : 'span'), {
|
|
227
|
-
to: item.to || undefined,
|
|
228
|
-
class: normalizeClass([item.to ? 'cn-cell-renderer__link' : '', item.state === 'missing' ? 'cn-cell-renderer__mono' : '']),
|
|
229
|
-
title: item.state === 'label' ? item.id : undefined
|
|
230
|
-
}, {
|
|
231
|
-
default: withCtx(() => [
|
|
232
|
-
createTextVNode(toDisplayString(item.text), 1 /* TEXT */)
|
|
233
|
-
]),
|
|
234
|
-
_: 2 /* DYNAMIC */
|
|
235
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["to", "class", "title"]))
|
|
236
|
-
], 64 /* STABLE_FRAGMENT */))
|
|
237
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
238
|
-
]))
|
|
228
|
+
($options.hasValue)
|
|
229
|
+
? (openBlock(), createBlock(_component_CnFkResolveCell, {
|
|
230
|
+
key: 0,
|
|
231
|
+
value: $props.value,
|
|
232
|
+
register: ($props.widgetProps && $props.widgetProps.register) || '',
|
|
233
|
+
schema: ($props.widgetProps && $props.widgetProps.schema) || '',
|
|
234
|
+
labelField: ($props.widgetProps && $props.widgetProps.labelField) || 'name'
|
|
235
|
+
}, null, 8 /* PROPS */, ["value", "register", "schema", "labelField"]))
|
|
236
|
+
: (openBlock(), createElementBlock("span", _hoisted_6, "—"))
|
|
239
237
|
], 64 /* STABLE_FRAGMENT */))
|
|
240
|
-
: ($props.widget === '
|
|
238
|
+
: ($props.widget === 'refLabel')
|
|
241
239
|
? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
|
|
242
|
-
(
|
|
243
|
-
? (openBlock(),
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
240
|
+
(!$options.refLabelItems.length)
|
|
241
|
+
? (openBlock(), createElementBlock("span", _hoisted_7, "—"))
|
|
242
|
+
: (openBlock(), createElementBlock("span", _hoisted_8, [
|
|
243
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.refLabelItems, (item, i) => {
|
|
244
|
+
return (openBlock(), createElementBlock(Fragment, {
|
|
245
|
+
key: item.id
|
|
246
|
+
}, [
|
|
247
|
+
(i > 0)
|
|
248
|
+
? (openBlock(), createElementBlock("span", _hoisted_9, ", "))
|
|
249
|
+
: createCommentVNode("v-if", true),
|
|
250
|
+
(openBlock(), createBlock(resolveDynamicComponent(item.to ? 'router-link' : 'span'), {
|
|
251
|
+
to: item.to || undefined,
|
|
252
|
+
class: normalizeClass([item.to ? 'cn-cell-renderer__link' : '', item.state === 'missing' ? 'cn-cell-renderer__mono' : '']),
|
|
253
|
+
title: item.state === 'label' ? item.id : undefined
|
|
254
|
+
}, {
|
|
255
|
+
default: withCtx(() => [
|
|
256
|
+
createTextVNode(toDisplayString(item.text), 1 /* TEXT */)
|
|
257
|
+
]),
|
|
258
|
+
_: 2 /* DYNAMIC */
|
|
259
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["to", "class", "title"]))
|
|
260
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
261
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
262
|
+
]))
|
|
265
263
|
], 64 /* STABLE_FRAGMENT */))
|
|
266
|
-
: ($props.widget === '
|
|
264
|
+
: ($props.widget === 'link')
|
|
267
265
|
? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
268
|
-
($options.
|
|
269
|
-
? (openBlock(), createBlock(
|
|
266
|
+
($options.linkRoute)
|
|
267
|
+
? (openBlock(), createBlock(_component_router_link, {
|
|
270
268
|
key: 0,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
schema: $options.avatarResolve.schema,
|
|
274
|
-
labelField: $options.avatarResolve.labelField || 'name'
|
|
269
|
+
to: $options.linkRoute,
|
|
270
|
+
class: "cn-cell-renderer__link"
|
|
275
271
|
}, {
|
|
276
|
-
default: withCtx((
|
|
277
|
-
|
|
278
|
-
createElementVNode("span", {
|
|
279
|
-
class: "cn-cell-renderer__avatar-initials",
|
|
280
|
-
style: normalizeStyle({ width: $options.avatarSize + 'px', height: $options.avatarSize + 'px' }),
|
|
281
|
-
"aria-hidden": "true"
|
|
282
|
-
}, toDisplayString(resolved ? $options.initialsOf(label) : ''), 5 /* TEXT, STYLE */),
|
|
283
|
-
createElementVNode("span", _hoisted_12, [
|
|
284
|
-
createElementVNode("span", {
|
|
285
|
-
class: "cn-cell-renderer__avatar-name",
|
|
286
|
-
title: label
|
|
287
|
-
}, toDisplayString(label), 9 /* TEXT, PROPS */, _hoisted_13),
|
|
288
|
-
($props.secondary)
|
|
289
|
-
? (openBlock(), createElementBlock("span", _hoisted_14, toDisplayString($props.secondary), 1 /* TEXT */))
|
|
290
|
-
: createCommentVNode("v-if", true)
|
|
291
|
-
])
|
|
292
|
-
])
|
|
272
|
+
default: withCtx(() => [
|
|
273
|
+
createTextVNode(toDisplayString($options.labelledValue), 1 /* TEXT */)
|
|
293
274
|
]),
|
|
294
275
|
_: 1 /* STABLE */
|
|
295
|
-
}, 8 /* PROPS */, ["
|
|
296
|
-
: (
|
|
276
|
+
}, 8 /* PROPS */, ["to"]))
|
|
277
|
+
: ($options.linkHref)
|
|
278
|
+
? (openBlock(), createElementBlock("a", {
|
|
279
|
+
key: 1,
|
|
280
|
+
href: $options.linkHref,
|
|
281
|
+
target: "_blank",
|
|
282
|
+
rel: "noopener",
|
|
283
|
+
class: "cn-cell-renderer__link"
|
|
284
|
+
}, toDisplayString($options.labelledValue), 9 /* TEXT, PROPS */, _hoisted_10))
|
|
285
|
+
: (openBlock(), createElementBlock("span", {
|
|
286
|
+
key: 2,
|
|
287
|
+
title: $options.rawTitle
|
|
288
|
+
}, toDisplayString($options.labelledValue), 9 /* TEXT, PROPS */, _hoisted_11))
|
|
297
289
|
], 64 /* STABLE_FRAGMENT */))
|
|
298
|
-
: ($props.widget === 'avatar')
|
|
290
|
+
: ($props.widget === 'avatar' && $options.avatarResolve)
|
|
299
291
|
? (openBlock(), createElementBlock(Fragment, { key: 7 }, [
|
|
300
|
-
($options.
|
|
301
|
-
? (openBlock(),
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
]))
|
|
312
|
-
: (openBlock(), createElementBlock("span", {
|
|
313
|
-
key: 1,
|
|
292
|
+
($options.hasValue && typeof $props.value !== 'object')
|
|
293
|
+
? (openBlock(), createBlock(_component_CnFkResolveCell, {
|
|
294
|
+
key: 0,
|
|
295
|
+
value: $props.value,
|
|
296
|
+
register: $options.avatarResolve.register,
|
|
297
|
+
schema: $options.avatarResolve.schema,
|
|
298
|
+
labelField: $options.avatarResolve.labelField || 'name'
|
|
299
|
+
}, {
|
|
300
|
+
default: withCtx(({ label, resolved }) => [
|
|
301
|
+
createElementVNode("span", _hoisted_12, [
|
|
302
|
+
createElementVNode("span", {
|
|
314
303
|
class: "cn-cell-renderer__avatar-initials",
|
|
315
304
|
style: normalizeStyle({ width: $options.avatarSize + 'px', height: $options.avatarSize + 'px' }),
|
|
316
305
|
"aria-hidden": "true"
|
|
317
|
-
}, toDisplayString($options.
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
306
|
+
}, toDisplayString(resolved ? $options.initialsOf(label) : ''), 5 /* TEXT, STYLE */),
|
|
307
|
+
createElementVNode("span", _hoisted_13, [
|
|
308
|
+
createElementVNode("span", {
|
|
309
|
+
class: "cn-cell-renderer__avatar-name",
|
|
310
|
+
title: label
|
|
311
|
+
}, toDisplayString(label), 9 /* TEXT, PROPS */, _hoisted_14),
|
|
312
|
+
($props.secondary)
|
|
313
|
+
? (openBlock(), createElementBlock("span", _hoisted_15, toDisplayString($props.secondary), 1 /* TEXT */))
|
|
314
|
+
: createCommentVNode("v-if", true)
|
|
315
|
+
])
|
|
316
|
+
])
|
|
317
|
+
]),
|
|
318
|
+
_: 1 /* STABLE */
|
|
319
|
+
}, 8 /* PROPS */, ["value", "register", "schema", "labelField"]))
|
|
320
|
+
: (openBlock(), createElementBlock("span", _hoisted_16, "—"))
|
|
329
321
|
], 64 /* STABLE_FRAGMENT */))
|
|
330
|
-
: ($props.widget === '
|
|
322
|
+
: ($props.widget === 'avatar')
|
|
331
323
|
? (openBlock(), createElementBlock(Fragment, { key: 8 }, [
|
|
332
|
-
($options.
|
|
333
|
-
? (openBlock(), createElementBlock("
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
324
|
+
($options.avatarName || $options.avatarUserId)
|
|
325
|
+
? (openBlock(), createElementBlock("span", _hoisted_17, [
|
|
326
|
+
($options.avatarUserId)
|
|
327
|
+
? (openBlock(), createElementBlock("span", _hoisted_18, [
|
|
328
|
+
createVNode(_component_NcAvatar, {
|
|
329
|
+
user: $options.avatarUserId,
|
|
330
|
+
displayName: $options.avatarName || $options.avatarUserId,
|
|
331
|
+
size: $options.avatarSize,
|
|
332
|
+
disableMenu: true,
|
|
333
|
+
disableTooltip: true
|
|
334
|
+
}, null, 8 /* PROPS */, ["user", "displayName", "size"])
|
|
335
|
+
]))
|
|
336
|
+
: (openBlock(), createElementBlock("span", {
|
|
337
|
+
key: 1,
|
|
338
|
+
class: "cn-cell-renderer__avatar-initials",
|
|
339
|
+
style: normalizeStyle({ width: $options.avatarSize + 'px', height: $options.avatarSize + 'px' }),
|
|
340
|
+
"aria-hidden": "true"
|
|
341
|
+
}, toDisplayString($options.avatarInitials), 5 /* TEXT, STYLE */)),
|
|
342
|
+
createElementVNode("span", _hoisted_19, [
|
|
343
|
+
createElementVNode("span", {
|
|
344
|
+
class: "cn-cell-renderer__avatar-name",
|
|
345
|
+
title: $options.avatarName || $options.avatarUserId
|
|
346
|
+
}, toDisplayString($options.avatarName || $options.avatarUserId), 9 /* TEXT, PROPS */, _hoisted_20),
|
|
347
|
+
($props.secondary)
|
|
348
|
+
? (openBlock(), createElementBlock("span", _hoisted_21, toDisplayString($props.secondary), 1 /* TEXT */))
|
|
349
|
+
: createCommentVNode("v-if", true)
|
|
350
|
+
])
|
|
351
|
+
]))
|
|
352
|
+
: (openBlock(), createElementBlock("span", _hoisted_22, "—"))
|
|
340
353
|
], 64 /* STABLE_FRAGMENT */))
|
|
341
|
-
: ($props.widget === '
|
|
354
|
+
: ($props.widget === 'age')
|
|
342
355
|
? (openBlock(), createElementBlock(Fragment, { key: 9 }, [
|
|
343
|
-
($options.
|
|
344
|
-
? (openBlock(), createElementBlock(
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
"data-testid": "cn-cell-renderer-due"
|
|
352
|
-
}, toDisplayString($options.dueResult.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_24))
|
|
353
|
-
: (openBlock(), createElementBlock("span", _hoisted_25, toDisplayString($options.dueResult.text), 1 /* TEXT */))
|
|
354
|
-
], 64 /* STABLE_FRAGMENT */))
|
|
355
|
-
: ($options.dateTimestamp && $options.dateBlock)
|
|
356
|
-
? (openBlock(), createElementBlock("time", {
|
|
357
|
-
key: 1,
|
|
358
|
-
class: "cn-cell-renderer__date-block",
|
|
359
|
-
datetime: $options.dateTimestamp.toISOString(),
|
|
360
|
-
title: $options.absoluteDateLabel,
|
|
361
|
-
"data-testid": "cn-cell-date-block"
|
|
362
|
-
}, [
|
|
363
|
-
createElementVNode("span", _hoisted_27, [
|
|
364
|
-
createElementVNode("strong", _hoisted_28, toDisplayString($options.dateBlock.day), 1 /* TEXT */),
|
|
365
|
-
createElementVNode("span", _hoisted_29, toDisplayString($options.dateBlock.month), 1 /* TEXT */)
|
|
366
|
-
]),
|
|
367
|
-
createElementVNode("span", _hoisted_30, [
|
|
368
|
-
createElementVNode("span", _hoisted_31, toDisplayString($options.dateBlock.weekday), 1 /* TEXT */),
|
|
369
|
-
($options.dateBlock.time)
|
|
370
|
-
? (openBlock(), createElementBlock("span", _hoisted_32, toDisplayString($options.dateBlock.time), 1 /* TEXT */))
|
|
371
|
-
: createCommentVNode("v-if", true)
|
|
372
|
-
])
|
|
373
|
-
], 8 /* PROPS */, _hoisted_26))
|
|
374
|
-
: ($options.dateTimestamp)
|
|
375
|
-
? (openBlock(), createElementBlock("time", {
|
|
376
|
-
key: 2,
|
|
377
|
-
class: normalizeClass(["cn-cell-renderer__date", $options.dateVariant ? 'cn-cell-renderer__date--' + $options.dateVariant : null]),
|
|
378
|
-
datetime: $options.dateTimestamp.toISOString(),
|
|
379
|
-
title: $options.isRelativeDate ? $options.absoluteDateLabel : $options.rawTitle
|
|
380
|
-
}, toDisplayString($options.dateLabel), 11 /* TEXT, CLASS, PROPS */, _hoisted_33))
|
|
381
|
-
: (openBlock(), createElementBlock("span", _hoisted_34, "—"))
|
|
356
|
+
($options.dateTimestamp)
|
|
357
|
+
? (openBlock(), createElementBlock("time", {
|
|
358
|
+
key: 0,
|
|
359
|
+
class: normalizeClass(["cn-cell-renderer__age", $options.ageVariant ? 'cn-cell-renderer__age--' + $options.ageVariant : null]),
|
|
360
|
+
datetime: $options.dateTimestamp.toISOString(),
|
|
361
|
+
title: $options.absoluteDateLabel
|
|
362
|
+
}, toDisplayString($options.ageLabel), 11 /* TEXT, CLASS, PROPS */, _hoisted_23))
|
|
363
|
+
: (openBlock(), createElementBlock("span", _hoisted_24, "—"))
|
|
382
364
|
], 64 /* STABLE_FRAGMENT */))
|
|
383
|
-
: ($props.widget === '
|
|
365
|
+
: ($props.widget === 'date')
|
|
384
366
|
? (openBlock(), createElementBlock(Fragment, { key: 10 }, [
|
|
385
|
-
($options.
|
|
386
|
-
? (openBlock(), createElementBlock(
|
|
387
|
-
|
|
388
|
-
|
|
367
|
+
($options.dueResult)
|
|
368
|
+
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
369
|
+
($options.dateTimestamp)
|
|
370
|
+
? (openBlock(), createElementBlock("time", {
|
|
371
|
+
key: 0,
|
|
372
|
+
class: normalizeClass(["cn-cell-renderer__date", $options.dueResult.tone === 'danger' ? 'cn-cell-renderer__date--error' : null]),
|
|
373
|
+
datetime: $options.dateTimestamp.toISOString(),
|
|
374
|
+
title: $options.absoluteDateLabel,
|
|
375
|
+
"data-testid": "cn-cell-renderer-due"
|
|
376
|
+
}, toDisplayString($options.dueResult.text), 11 /* TEXT, CLASS, PROPS */, _hoisted_25))
|
|
377
|
+
: (openBlock(), createElementBlock("span", _hoisted_26, toDisplayString($options.dueResult.text), 1 /* TEXT */))
|
|
378
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
379
|
+
: ($options.dateTimestamp && $options.dateBlock)
|
|
380
|
+
? (openBlock(), createElementBlock("time", {
|
|
381
|
+
key: 1,
|
|
382
|
+
class: "cn-cell-renderer__date-block",
|
|
383
|
+
datetime: $options.dateTimestamp.toISOString(),
|
|
384
|
+
title: $options.absoluteDateLabel,
|
|
385
|
+
"data-testid": "cn-cell-date-block"
|
|
386
|
+
}, [
|
|
387
|
+
createElementVNode("span", _hoisted_28, [
|
|
388
|
+
createElementVNode("strong", _hoisted_29, toDisplayString($options.dateBlock.day), 1 /* TEXT */),
|
|
389
|
+
createElementVNode("span", _hoisted_30, toDisplayString($options.dateBlock.month), 1 /* TEXT */)
|
|
390
|
+
]),
|
|
391
|
+
createElementVNode("span", _hoisted_31, [
|
|
392
|
+
createElementVNode("span", _hoisted_32, toDisplayString($options.dateBlock.weekday), 1 /* TEXT */),
|
|
393
|
+
($options.dateBlock.time)
|
|
394
|
+
? (openBlock(), createElementBlock("span", _hoisted_33, toDisplayString($options.dateBlock.time), 1 /* TEXT */))
|
|
395
|
+
: createCommentVNode("v-if", true)
|
|
396
|
+
])
|
|
397
|
+
], 8 /* PROPS */, _hoisted_27))
|
|
398
|
+
: ($options.dateTimestamp)
|
|
399
|
+
? (openBlock(), createElementBlock("time", {
|
|
400
|
+
key: 2,
|
|
401
|
+
class: normalizeClass(["cn-cell-renderer__date", $options.dateVariant ? 'cn-cell-renderer__date--' + $options.dateVariant : null]),
|
|
402
|
+
datetime: $options.dateTimestamp.toISOString(),
|
|
403
|
+
title: $options.isRelativeDate ? $options.absoluteDateLabel : $options.rawTitle
|
|
404
|
+
}, toDisplayString($options.dateLabel), 11 /* TEXT, CLASS, PROPS */, _hoisted_34))
|
|
405
|
+
: (openBlock(), createElementBlock("span", _hoisted_35, "—"))
|
|
406
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
407
|
+
: ($props.widget === 'progress')
|
|
408
|
+
? (openBlock(), createElementBlock(Fragment, { key: 11 }, [
|
|
409
|
+
($options.progressPercent === null)
|
|
410
|
+
? (openBlock(), createElementBlock("span", _hoisted_36, "—"))
|
|
411
|
+
: (openBlock(), createElementBlock("span", _hoisted_37, [
|
|
389
412
|
createElementVNode("span", _hoisted_38, [
|
|
390
|
-
createElementVNode("span",
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
413
|
+
createElementVNode("span", _hoisted_39, [
|
|
414
|
+
createElementVNode("span", {
|
|
415
|
+
class: normalizeClass(["cn-cell-renderer__progress-fill", 'cn-cell-renderer__progress-fill--' + $options.progressTone]),
|
|
416
|
+
style: normalizeStyle({ width: $options.progressPercent + '%' })
|
|
417
|
+
}, null, 6 /* CLASS, STYLE */)
|
|
418
|
+
]),
|
|
419
|
+
createElementVNode("strong", {
|
|
420
|
+
class: normalizeClass(["cn-cell-renderer__progress-value", 'cn-cell-renderer__progress-value--' + $options.progressTone])
|
|
421
|
+
}, toDisplayString($options.progressPercent) + "%", 3 /* TEXT, CLASS */)
|
|
394
422
|
]),
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
423
|
+
($options.progressBadge)
|
|
424
|
+
? (openBlock(), createElementBlock("span", {
|
|
425
|
+
key: 0,
|
|
426
|
+
class: normalizeClass(["cn-cell-renderer__progress-badge", 'cn-cell-renderer__progress-badge--' + $options.progressBadge.tone])
|
|
427
|
+
}, toDisplayString($options.progressBadge.label), 3 /* TEXT, CLASS */))
|
|
428
|
+
: createCommentVNode("v-if", true)
|
|
429
|
+
]))
|
|
430
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
431
|
+
: ($props.widget === 'switch')
|
|
432
|
+
? (openBlock(), createElementBlock("span", {
|
|
433
|
+
key: 12,
|
|
434
|
+
class: "cn-cell-renderer__switch",
|
|
435
|
+
"data-testid": "cn-cell-switch",
|
|
436
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop"])),
|
|
437
|
+
onKeydown: _cache[1] || (_cache[1] = withModifiers(() => {}, ["stop"]))
|
|
438
|
+
}, [
|
|
439
|
+
createVNode(_component_NcCheckboxRadioSwitch, {
|
|
440
|
+
type: "switch",
|
|
441
|
+
modelValue: $options.switchChecked,
|
|
442
|
+
disabled: $options.switchBusy || typeof ($props.widgetProps && $props.widgetProps.onToggle) !== 'function',
|
|
443
|
+
"onUpdate:modelValue": $options.onSwitchToggle
|
|
444
|
+
}, {
|
|
445
|
+
default: withCtx(() => [
|
|
446
|
+
createTextVNode(toDisplayString($options.hasValue ? $options.labelledValue : ''), 1 /* TEXT */)
|
|
398
447
|
]),
|
|
399
|
-
|
|
400
|
-
|
|
448
|
+
_: 1 /* STABLE */
|
|
449
|
+
}, 8 /* PROPS */, ["modelValue", "disabled", "onUpdate:modelValue"])
|
|
450
|
+
], 32 /* NEED_HYDRATION */))
|
|
451
|
+
: ($props.widget === 'iconLabel')
|
|
452
|
+
? (openBlock(), createElementBlock("span", _hoisted_40, [
|
|
453
|
+
(typeof $options.iconLabelIcon === 'string' && $options.iconLabelIcon)
|
|
454
|
+
? (openBlock(), createBlock(_component_CnIcon, {
|
|
401
455
|
key: 0,
|
|
402
|
-
|
|
403
|
-
}, toDisplayString($options.progressBadge.label), 3 /* TEXT, CLASS */))
|
|
404
|
-
: createCommentVNode("v-if", true)
|
|
405
|
-
]))
|
|
406
|
-
], 64 /* STABLE_FRAGMENT */))
|
|
407
|
-
: ($props.widget === 'switch')
|
|
408
|
-
? (openBlock(), createElementBlock("span", {
|
|
409
|
-
key: 11,
|
|
410
|
-
class: "cn-cell-renderer__switch",
|
|
411
|
-
"data-testid": "cn-cell-switch",
|
|
412
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop"])),
|
|
413
|
-
onKeydown: _cache[1] || (_cache[1] = withModifiers(() => {}, ["stop"]))
|
|
414
|
-
}, [
|
|
415
|
-
createVNode(_component_NcCheckboxRadioSwitch, {
|
|
416
|
-
type: "switch",
|
|
417
|
-
modelValue: $options.switchChecked,
|
|
418
|
-
disabled: $options.switchBusy || typeof ($props.widgetProps && $props.widgetProps.onToggle) !== 'function',
|
|
419
|
-
"onUpdate:modelValue": $options.onSwitchToggle
|
|
420
|
-
}, {
|
|
421
|
-
default: withCtx(() => [
|
|
422
|
-
createTextVNode(toDisplayString($options.hasValue ? $options.labelledValue : ''), 1 /* TEXT */)
|
|
423
|
-
]),
|
|
424
|
-
_: 1 /* STABLE */
|
|
425
|
-
}, 8 /* PROPS */, ["modelValue", "disabled", "onUpdate:modelValue"])
|
|
426
|
-
], 32 /* NEED_HYDRATION */))
|
|
427
|
-
: ($props.widget === 'iconLabel')
|
|
428
|
-
? (openBlock(), createElementBlock("span", _hoisted_39, [
|
|
429
|
-
(typeof $options.iconLabelIcon === 'string' && $options.iconLabelIcon)
|
|
430
|
-
? (openBlock(), createBlock(_component_CnIcon, {
|
|
431
|
-
key: 0,
|
|
432
|
-
name: $options.iconLabelIcon,
|
|
433
|
-
size: 16,
|
|
434
|
-
"aria-hidden": "true"
|
|
435
|
-
}, null, 8 /* PROPS */, ["name"]))
|
|
436
|
-
: ($options.iconLabelIcon)
|
|
437
|
-
? (openBlock(), createBlock(resolveDynamicComponent($options.iconLabelIcon), {
|
|
438
|
-
key: 1,
|
|
456
|
+
name: $options.iconLabelIcon,
|
|
439
457
|
size: 16,
|
|
440
458
|
"aria-hidden": "true"
|
|
441
|
-
}))
|
|
442
|
-
:
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
]))
|
|
447
|
-
: ($options.hasFormatter)
|
|
448
|
-
? (openBlock(), createElementBlock("span", {
|
|
449
|
-
key: 13,
|
|
450
|
-
title: $options.rawTitle
|
|
451
|
-
}, toDisplayString($options.formattedValue), 9 /* TEXT, PROPS */, _hoisted_42))
|
|
452
|
-
: ($options.isSwatch)
|
|
453
|
-
? (openBlock(), createElementBlock("span", _hoisted_43, [
|
|
454
|
-
($options.swatchColor)
|
|
455
|
-
? (openBlock(), createElementBlock("span", {
|
|
456
|
-
key: 0,
|
|
457
|
-
class: "cn-cell-renderer__swatch-dot",
|
|
458
|
-
style: normalizeStyle({ backgroundColor: $options.swatchColor }),
|
|
459
|
+
}, null, 8 /* PROPS */, ["name"]))
|
|
460
|
+
: ($options.iconLabelIcon)
|
|
461
|
+
? (openBlock(), createBlock(resolveDynamicComponent($options.iconLabelIcon), {
|
|
462
|
+
key: 1,
|
|
463
|
+
size: 16,
|
|
459
464
|
"aria-hidden": "true"
|
|
460
|
-
}
|
|
465
|
+
}))
|
|
461
466
|
: createCommentVNode("v-if", true),
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
467
|
+
($options.hasValue)
|
|
468
|
+
? (openBlock(), createElementBlock("span", _hoisted_41, toDisplayString($options.labelledValue), 1 /* TEXT */))
|
|
469
|
+
: (openBlock(), createElementBlock("span", _hoisted_42, "—"))
|
|
470
|
+
]))
|
|
471
|
+
: ($options.hasFormatter)
|
|
472
|
+
? (openBlock(), createElementBlock("span", {
|
|
473
|
+
key: 14,
|
|
474
|
+
title: $options.rawTitle
|
|
475
|
+
}, toDisplayString($options.formattedValue), 9 /* TEXT, PROPS */, _hoisted_43))
|
|
476
|
+
: ($options.isSwatch)
|
|
477
|
+
? (openBlock(), createElementBlock("span", _hoisted_44, [
|
|
478
|
+
($options.swatchColor)
|
|
479
|
+
? (openBlock(), createElementBlock("span", {
|
|
480
|
+
key: 0,
|
|
481
|
+
class: "cn-cell-renderer__swatch-dot",
|
|
482
|
+
style: normalizeStyle({ backgroundColor: $options.swatchColor }),
|
|
483
|
+
"aria-hidden": "true"
|
|
484
|
+
}, null, 4 /* STYLE */))
|
|
485
|
+
: createCommentVNode("v-if", true),
|
|
486
|
+
($options.hasValue)
|
|
487
|
+
? (openBlock(), createElementBlock("span", {
|
|
488
|
+
key: 1,
|
|
489
|
+
title: $options.rawTitle
|
|
490
|
+
}, toDisplayString($options.labelledValue), 9 /* TEXT, PROPS */, _hoisted_45))
|
|
491
|
+
: (openBlock(), createElementBlock("span", _hoisted_46, "—"))
|
|
492
|
+
]))
|
|
493
|
+
: ($options.hasBuiltinFormat)
|
|
494
|
+
? (openBlock(), createElementBlock("span", {
|
|
495
|
+
key: 16,
|
|
496
|
+
title: $options.rawTitle,
|
|
497
|
+
class: "cn-cell-renderer--number"
|
|
498
|
+
}, toDisplayString($options.formattedValue), 9 /* TEXT, PROPS */, _hoisted_47))
|
|
499
|
+
: ($options.isDate)
|
|
492
500
|
? (openBlock(), createElementBlock(Fragment, { key: 17 }, [
|
|
493
|
-
($options.
|
|
494
|
-
? (openBlock(), createElementBlock("
|
|
501
|
+
($options.dateTimestamp && $options.isBoardLook)
|
|
502
|
+
? (openBlock(), createElementBlock("time", {
|
|
495
503
|
key: 0,
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
? (openBlock(), createElementBlock("span", {
|
|
504
|
+
class: "cn-cell-renderer__date",
|
|
505
|
+
datetime: $options.dateTimestamp.toISOString(),
|
|
506
|
+
title: $options.absoluteDateLabel
|
|
507
|
+
}, toDisplayString($options.boardDateLabel), 9 /* TEXT, PROPS */, _hoisted_48))
|
|
508
|
+
: ($options.dateTimestamp)
|
|
509
|
+
? (openBlock(), createBlock(_component_NcDateTime, {
|
|
503
510
|
key: 1,
|
|
504
|
-
|
|
505
|
-
},
|
|
506
|
-
: (openBlock(), createElementBlock("span",
|
|
511
|
+
timestamp: $options.dateTimestamp
|
|
512
|
+
}, null, 8 /* PROPS */, ["timestamp"]))
|
|
513
|
+
: (openBlock(), createElementBlock("span", _hoisted_49, "—"))
|
|
507
514
|
], 64 /* STABLE_FRAGMENT */))
|
|
508
|
-
: ($options.
|
|
515
|
+
: ($options.isUri)
|
|
509
516
|
? (openBlock(), createElementBlock(Fragment, { key: 18 }, [
|
|
510
|
-
($
|
|
511
|
-
? (openBlock(),
|
|
517
|
+
($options.uriHref)
|
|
518
|
+
? (openBlock(), createElementBlock("a", {
|
|
512
519
|
key: 0,
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
520
|
+
href: $options.uriHref,
|
|
521
|
+
target: "_blank",
|
|
522
|
+
rel: "noopener",
|
|
523
|
+
class: "cn-cell-renderer__link"
|
|
524
|
+
}, toDisplayString($options.formattedValue), 9 /* TEXT, PROPS */, _hoisted_50))
|
|
525
|
+
: ($options.hasValue)
|
|
526
|
+
? (openBlock(), createElementBlock("span", {
|
|
527
|
+
key: 1,
|
|
528
|
+
title: $options.rawTitle
|
|
529
|
+
}, toDisplayString($options.formattedValue), 9 /* TEXT, PROPS */, _hoisted_51))
|
|
530
|
+
: (openBlock(), createElementBlock("span", _hoisted_52, "—"))
|
|
517
531
|
], 64 /* STABLE_FRAGMENT */))
|
|
518
|
-
: ($options.
|
|
532
|
+
: ($options.propertyType === 'boolean')
|
|
519
533
|
? (openBlock(), createElementBlock(Fragment, { key: 19 }, [
|
|
520
534
|
($props.value)
|
|
521
|
-
? (openBlock(), createBlock(
|
|
535
|
+
? (openBlock(), createBlock(_component_CheckBold, {
|
|
522
536
|
key: 0,
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
}, null, 8 /* PROPS */, ["label", "colorKey", "colorMap"]))
|
|
537
|
+
size: 16,
|
|
538
|
+
class: "cn-cell-renderer__icon cn-cell-renderer__icon--success"
|
|
539
|
+
}))
|
|
527
540
|
: (openBlock(), createElementBlock("span", _hoisted_53, "—"))
|
|
528
541
|
], 64 /* STABLE_FRAGMENT */))
|
|
529
|
-
: ($options.
|
|
542
|
+
: ($options.isEnum)
|
|
530
543
|
? (openBlock(), createElementBlock(Fragment, { key: 20 }, [
|
|
531
|
-
(
|
|
532
|
-
? (openBlock(),
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
544
|
+
($props.value)
|
|
545
|
+
? (openBlock(), createBlock(_component_CnStatusBadge, {
|
|
546
|
+
key: 0,
|
|
547
|
+
label: $options.enumLabel,
|
|
548
|
+
colorKey: String($props.value),
|
|
549
|
+
colorMap: $options.enumColorMap
|
|
550
|
+
}, null, 8 /* PROPS */, ["label", "colorKey", "colorMap"]))
|
|
551
|
+
: (openBlock(), createElementBlock("span", _hoisted_54, "—"))
|
|
537
552
|
], 64 /* STABLE_FRAGMENT */))
|
|
538
|
-
: (
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
553
|
+
: ($options.propertyType === 'array')
|
|
554
|
+
? (openBlock(), createElementBlock(Fragment, { key: 21 }, [
|
|
555
|
+
(!$props.value || !$props.value.length)
|
|
556
|
+
? (openBlock(), createElementBlock("span", _hoisted_55, "—"))
|
|
557
|
+
: (openBlock(), createElementBlock("span", {
|
|
558
|
+
key: 1,
|
|
559
|
+
title: Array.isArray($props.value) ? $props.value.join(', ') : ''
|
|
560
|
+
}, toDisplayString($options.formattedValue), 9 /* TEXT, PROPS */, _hoisted_56))
|
|
561
|
+
], 64 /* STABLE_FRAGMENT */))
|
|
562
|
+
: (openBlock(), createElementBlock("span", {
|
|
563
|
+
key: 22,
|
|
564
|
+
title: $options.rawTitle
|
|
565
|
+
}, toDisplayString($options.formattedValue), 9 /* TEXT, PROPS */, _hoisted_57))
|
|
542
566
|
], 2 /* CLASS */))
|
|
543
567
|
}
|
|
544
568
|
|