@conduction/nextcloud-vue 2.103.0 → 2.104.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/CnActionsBar/CnActionsBar.vue2.js +23 -0
- package/dist/esm/components/CnActionsBar/CnActionsBar.vue2.js.map +1 -1
- package/dist/esm/components/CnActionsBar/CnActionsBar.vue3.js +94 -72
- package/dist/esm/components/CnActionsBar/CnActionsBar.vue3.js.map +1 -1
- package/dist/esm/components/CnAppRoot/CnAppRoot.vue2.js +18 -1
- package/dist/esm/components/CnAppRoot/CnAppRoot.vue2.js.map +1 -1
- package/dist/esm/components/CnAppRoot/CnAppRoot.vue3.js +3 -3
- package/dist/esm/components/CnAppRoot/CnAppRoot.vue3.js.map +1 -1
- package/dist/esm/components/CnDataTable/CnDataTable.vue2.js +39 -2
- package/dist/esm/components/CnDataTable/CnDataTable.vue2.js.map +1 -1
- package/dist/esm/components/CnDataTable/CnDataTable.vue3.js +14 -0
- package/dist/esm/components/CnDataTable/CnDataTable.vue3.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +40 -2
- 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/CnIndexPage/CnIndexPage.vue2.js +159 -3
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +105 -85
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
- package/dist/esm/components/CnIndexPage/useSelfFetchList.js +7 -2
- package/dist/esm/components/CnIndexPage/useSelfFetchList.js.map +1 -1
- package/dist/esm/components/CnObjectRow/CnObjectRow.vue.js +1 -1
- package/dist/esm/components/CnObjectRow/CnObjectRow.vue2.js +57 -5
- package/dist/esm/components/CnObjectRow/CnObjectRow.vue2.js.map +1 -1
- package/dist/esm/components/CnObjectRow/CnObjectRow.vue3.js +37 -4
- package/dist/esm/components/CnObjectRow/CnObjectRow.vue3.js.map +1 -1
- package/dist/esm/components/CnUserSettingsDialog/CnUserSettingsDialog.vue.js +1 -1
- package/dist/esm/components/CnUserSettingsDialog/CnUserSettingsDialog.vue2.js.map +1 -1
- package/dist/esm/components/CnUserSettingsDialog/CnUserSettingsDialog.vue3.js.map +1 -1
- package/dist/esm/components/CnWidgetObjectTable/CnWidgetObjectTable.vue.js +1 -1
- package/dist/esm/components/CnWidgetObjectTable/CnWidgetObjectTable.vue2.js +18 -2
- package/dist/esm/components/CnWidgetObjectTable/CnWidgetObjectTable.vue2.js.map +1 -1
- package/dist/esm/components/CnWidgetObjectTable/CnWidgetObjectTable.vue3.js.map +1 -1
- package/dist/esm/composables/indexSources.js +7 -7
- package/dist/esm/composables/indexSources.js.map +1 -1
- package/dist/esm/l10n/en.json.js +4 -0
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +4 -0
- package/dist/esm/l10n/nl.json.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +114 -33
- package/dist/esm/utils/nextcloudDirectory.js +18 -1
- package/dist/esm/utils/nextcloudDirectory.js.map +1 -1
- package/dist/esm/utils/sortOrder.js +61 -0
- package/dist/esm/utils/sortOrder.js.map +1 -0
- 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 +4172 -3662
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +114 -33
- package/l10n/en.json +4 -0
- package/l10n/nl.json +4 -0
- package/package.json +1 -1
- package/src/components/CnActionsBar/CnActionsBar.md +1 -0
- package/src/components/CnActionsBar/CnActionsBar.vue +39 -2
- package/src/components/CnAppRoot/CnAppRoot.md +1 -1
- package/src/components/CnAppRoot/CnAppRoot.vue +21 -4
- package/src/components/CnDataTable/CnDataTable.md +1 -0
- package/src/components/CnDataTable/CnDataTable.vue +49 -0
- package/src/components/CnDetailPage/CnDetailPage.md +1 -0
- package/src/components/CnDetailPage/CnDetailPage.vue +40 -2
- package/src/components/CnIndexPage/CnIndexPage.md +4 -2
- package/src/components/CnIndexPage/CnIndexPage.vue +174 -8
- package/src/components/CnIndexPage/useSelfFetchList.js +6 -1
- package/src/components/CnObjectRow/CnObjectRow.vue +95 -1
- package/src/components/CnUserSettingsDialog/CnUserSettingsDialog.vue +7 -2
- package/src/components/CnWidgetObjectTable/CnWidgetObjectTable.vue +18 -2
- package/src/composables/indexSources.js +7 -7
- package/src/css/index-page.css +19 -0
- package/src/css/look-board-index.css +48 -0
- package/src/schemas/app-manifest-v2.schema.json +23 -1
- package/src/utils/nextcloudDirectory.js +17 -0
- package/src/utils/sortOrder.js +58 -0
- package/src/utils/validateManifestV2.compiled.js +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, mergeProps, renderSlot, createBlock, withCtx,
|
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, mergeProps, renderSlot, createVNode, createCommentVNode, createBlock, withCtx, createTextVNode, toDisplayString, renderList, resolveDynamicComponent, normalizeClass, normalizeStyle } from 'vue';
|
|
2
2
|
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
key: 0,
|
|
@@ -7,83 +7,89 @@ const _hoisted_1 = {
|
|
|
7
7
|
};
|
|
8
8
|
const _hoisted_2 = {
|
|
9
9
|
key: 0,
|
|
10
|
+
class: "cn-actions-bar__search cn-actions-bar__search--toolbar",
|
|
11
|
+
"data-testid": "cn-actions-bar-search-toolbar"
|
|
12
|
+
};
|
|
13
|
+
const _hoisted_3 = ["placeholder", "value", "aria-label"];
|
|
14
|
+
const _hoisted_4 = {
|
|
15
|
+
key: 1,
|
|
10
16
|
class: "cn-actions-bar__view-controls",
|
|
11
17
|
"data-testid": "cn-actions-bar-view-controls"
|
|
12
18
|
};
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
19
|
+
const _hoisted_5 = ["aria-label"];
|
|
20
|
+
const _hoisted_6 = ["aria-label"];
|
|
21
|
+
const _hoisted_7 = ["href", "aria-label", "title", "data-mode", "onClick"];
|
|
22
|
+
const _hoisted_8 = ["aria-pressed", "aria-label", "title", "disabled", "data-mode", "onClick"];
|
|
23
|
+
const _hoisted_9 = {
|
|
18
24
|
key: 1,
|
|
19
25
|
class: "cn-actions-bar__info"
|
|
20
26
|
};
|
|
21
|
-
const
|
|
27
|
+
const _hoisted_10 = {
|
|
22
28
|
key: 0,
|
|
23
29
|
class: "cn-actions-bar__search"
|
|
24
30
|
};
|
|
25
|
-
const
|
|
26
|
-
const
|
|
31
|
+
const _hoisted_11 = ["placeholder", "value", "aria-label"];
|
|
32
|
+
const _hoisted_12 = {
|
|
27
33
|
key: 1,
|
|
28
34
|
class: "cn-actions-bar__count"
|
|
29
35
|
};
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
36
|
+
const _hoisted_13 = ["aria-label"];
|
|
37
|
+
const _hoisted_14 = ["aria-pressed", "aria-label", "title", "onClick"];
|
|
38
|
+
const _hoisted_15 = {
|
|
33
39
|
key: 2,
|
|
34
40
|
class: "cn-actions-bar__view-toggle-label"
|
|
35
41
|
};
|
|
36
|
-
const
|
|
37
|
-
const
|
|
42
|
+
const _hoisted_16 = { class: "cn-actions-bar__actions" };
|
|
43
|
+
const _hoisted_17 = {
|
|
38
44
|
key: 0,
|
|
39
45
|
class: "cn-actions-bar__sort"
|
|
40
46
|
};
|
|
41
|
-
const
|
|
47
|
+
const _hoisted_18 = {
|
|
42
48
|
key: 2,
|
|
43
49
|
class: "cn-actions-bar__row cn-actions-bar__row--search",
|
|
44
50
|
"data-testid": "cn-actions-bar-row-search"
|
|
45
51
|
};
|
|
46
|
-
const
|
|
52
|
+
const _hoisted_19 = {
|
|
47
53
|
key: 0,
|
|
48
54
|
class: "cn-actions-bar__search"
|
|
49
55
|
};
|
|
50
|
-
const
|
|
51
|
-
const
|
|
56
|
+
const _hoisted_20 = ["placeholder", "value", "aria-label"];
|
|
57
|
+
const _hoisted_21 = {
|
|
52
58
|
key: 1,
|
|
53
59
|
class: "cn-actions-bar__count"
|
|
54
60
|
};
|
|
55
|
-
const
|
|
61
|
+
const _hoisted_22 = {
|
|
56
62
|
class: "cn-actions-bar__active-label",
|
|
57
63
|
"data-testid": "cn-actions-bar-active-label"
|
|
58
64
|
};
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
const
|
|
65
|
+
const _hoisted_23 = { class: "cn-actions-bar__filter-chip-label" };
|
|
66
|
+
const _hoisted_24 = ["aria-label", "onClick"];
|
|
67
|
+
const _hoisted_25 = {
|
|
62
68
|
class: "cn-actions-bar__sr-status",
|
|
63
69
|
role: "status"
|
|
64
70
|
};
|
|
65
|
-
const
|
|
71
|
+
const _hoisted_26 = {
|
|
66
72
|
key: 3,
|
|
67
73
|
class: "cn-actions-bar__selection",
|
|
68
74
|
"data-testid": "cn-selection-strip"
|
|
69
75
|
};
|
|
70
|
-
const
|
|
76
|
+
const _hoisted_27 = {
|
|
71
77
|
class: "cn-actions-bar__selection-count",
|
|
72
78
|
"aria-hidden": "true"
|
|
73
79
|
};
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
const
|
|
80
|
+
const _hoisted_28 = ["aria-label"];
|
|
81
|
+
const _hoisted_29 = { class: "cn-actions-bar__band-lead" };
|
|
82
|
+
const _hoisted_30 = {
|
|
77
83
|
key: 2,
|
|
78
84
|
class: "cn-actions-bar__band-hint",
|
|
79
85
|
"data-testid": "cn-bulk-band-hint"
|
|
80
86
|
};
|
|
81
87
|
|
|
82
88
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
89
|
+
const _component_Magnify = resolveComponent("Magnify");
|
|
83
90
|
const _component_Tune = resolveComponent("Tune");
|
|
84
91
|
const _component_NcButton = resolveComponent("NcButton");
|
|
85
92
|
const _component_CnIcon = resolveComponent("CnIcon");
|
|
86
|
-
const _component_Magnify = resolveComponent("Magnify");
|
|
87
93
|
const _component_SortVariant = resolveComponent("SortVariant");
|
|
88
94
|
const _component_NcSelect = resolveComponent("NcSelect");
|
|
89
95
|
const _component_Plus = resolveComponent("Plus");
|
|
@@ -110,8 +116,24 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
110
116
|
? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
111
117
|
renderSlot(_ctx.$slots, "filters"),
|
|
112
118
|
renderSlot(_ctx.$slots, "actions-end"),
|
|
113
|
-
($props.
|
|
119
|
+
($props.showSearch && $options.searchInToolbar)
|
|
114
120
|
? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
121
|
+
createVNode(_component_Magnify, {
|
|
122
|
+
size: 18,
|
|
123
|
+
class: "cn-actions-bar__search-icon"
|
|
124
|
+
}),
|
|
125
|
+
createElementVNode("input", {
|
|
126
|
+
type: "search",
|
|
127
|
+
class: "cn-actions-bar__search-input",
|
|
128
|
+
placeholder: $props.searchPlaceholder || $options.t('nextcloud-vue', 'Search…'),
|
|
129
|
+
value: $props.searchValue,
|
|
130
|
+
"aria-label": $props.searchPlaceholder || $options.t('nextcloud-vue', 'Search'),
|
|
131
|
+
onInput: _cache[0] || (_cache[0] = (...args) => ($options.onSearchInput && $options.onSearchInput(...args)))
|
|
132
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_3)
|
|
133
|
+
]))
|
|
134
|
+
: createCommentVNode("v-if", true),
|
|
135
|
+
($props.showSidebarToggle || _ctx.$slots['filter-menu'] || ($props.showViewToggle && $options.viewSegments.length > 1))
|
|
136
|
+
? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
115
137
|
($props.showSidebarToggle)
|
|
116
138
|
? (openBlock(), createBlock(_component_NcButton, {
|
|
117
139
|
key: 0,
|
|
@@ -119,7 +141,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
119
141
|
class: "cn-actions-bar__filter-button",
|
|
120
142
|
"data-testid": "cn-actions-bar-filter-button",
|
|
121
143
|
pressed: $props.sidebarOpen,
|
|
122
|
-
onClick: _cache[
|
|
144
|
+
onClick: _cache[1] || (_cache[1] = $event => (_ctx.$emit('toggle-sidebar')))
|
|
123
145
|
}, {
|
|
124
146
|
icon: withCtx(() => [
|
|
125
147
|
createVNode(_component_Tune, { size: 16 })
|
|
@@ -132,7 +154,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
132
154
|
class: "cn-actions-bar__filter-badge",
|
|
133
155
|
"data-testid": "cn-actions-bar-filter-badge",
|
|
134
156
|
"aria-label": $options.filterCountLabel
|
|
135
|
-
}, toDisplayString($options.filterCount), 9 /* TEXT, PROPS */,
|
|
157
|
+
}, toDisplayString($options.filterCount), 9 /* TEXT, PROPS */, _hoisted_5))
|
|
136
158
|
: createCommentVNode("v-if", true)
|
|
137
159
|
]),
|
|
138
160
|
_: 1 /* STABLE */
|
|
@@ -172,7 +194,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
172
194
|
size: 18,
|
|
173
195
|
class: "cn-actions-bar__view-toggle-icon"
|
|
174
196
|
}))
|
|
175
|
-
], 8 /* PROPS */,
|
|
197
|
+
], 8 /* PROPS */, _hoisted_7))
|
|
176
198
|
: (openBlock(), createElementBlock("button", {
|
|
177
199
|
key: 1,
|
|
178
200
|
type: "button",
|
|
@@ -196,19 +218,19 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
196
218
|
size: 18,
|
|
197
219
|
class: "cn-actions-bar__view-toggle-icon"
|
|
198
220
|
}))
|
|
199
|
-
], 10 /* CLASS, PROPS */,
|
|
221
|
+
], 10 /* CLASS, PROPS */, _hoisted_8))
|
|
200
222
|
], 64 /* STABLE_FRAGMENT */))
|
|
201
223
|
}), 128 /* KEYED_FRAGMENT */))
|
|
202
|
-
], 8 /* PROPS */,
|
|
224
|
+
], 8 /* PROPS */, _hoisted_6))
|
|
203
225
|
: createCommentVNode("v-if", true)
|
|
204
226
|
]))
|
|
205
227
|
: createCommentVNode("v-if", true)
|
|
206
228
|
]))
|
|
207
229
|
: createCommentVNode("v-if", true),
|
|
208
230
|
(!$options.isBoardLayout)
|
|
209
|
-
? (openBlock(), createElementBlock("div",
|
|
231
|
+
? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
210
232
|
($props.showSearch)
|
|
211
|
-
? (openBlock(), createElementBlock("div",
|
|
233
|
+
? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
212
234
|
createVNode(_component_Magnify, {
|
|
213
235
|
size: 18,
|
|
214
236
|
class: "cn-actions-bar__search-icon"
|
|
@@ -219,11 +241,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
219
241
|
placeholder: $props.searchPlaceholder || $options.t('nextcloud-vue', 'Search…'),
|
|
220
242
|
value: $props.searchValue,
|
|
221
243
|
"aria-label": $props.searchPlaceholder || $options.t('nextcloud-vue', 'Search'),
|
|
222
|
-
onInput: _cache[
|
|
223
|
-
}, null, 40 /* PROPS, NEED_HYDRATION */,
|
|
244
|
+
onInput: _cache[2] || (_cache[2] = (...args) => ($options.onSearchInput && $options.onSearchInput(...args)))
|
|
245
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_11)
|
|
224
246
|
]))
|
|
225
247
|
: ($props.showCount && $options.hasTotal)
|
|
226
|
-
? (openBlock(), createElementBlock("span",
|
|
248
|
+
? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString($options.countText), 1 /* TEXT */))
|
|
227
249
|
: createCommentVNode("v-if", true),
|
|
228
250
|
renderSlot(_ctx.$slots, "after-search"),
|
|
229
251
|
($props.showCount && $props.showSearch && $props.showCountWithSearch)
|
|
@@ -271,17 +293,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
271
293
|
class: "cn-actions-bar__view-toggle-icon"
|
|
272
294
|
})),
|
|
273
295
|
(!$options.isBoardLayout)
|
|
274
|
-
? (openBlock(), createElementBlock("span",
|
|
296
|
+
? (openBlock(), createElementBlock("span", _hoisted_15, toDisplayString(seg.label), 1 /* TEXT */))
|
|
275
297
|
: createCommentVNode("v-if", true)
|
|
276
|
-
], 10 /* CLASS, PROPS */,
|
|
298
|
+
], 10 /* CLASS, PROPS */, _hoisted_14))
|
|
277
299
|
}), 128 /* KEYED_FRAGMENT */))
|
|
278
|
-
], 8 /* PROPS */,
|
|
300
|
+
], 8 /* PROPS */, _hoisted_13))
|
|
279
301
|
: createCommentVNode("v-if", true)
|
|
280
302
|
]))
|
|
281
303
|
: createCommentVNode("v-if", true),
|
|
282
|
-
createElementVNode("div",
|
|
304
|
+
createElementVNode("div", _hoisted_16, [
|
|
283
305
|
($props.showSortSelect && $props.sortOptions.length)
|
|
284
|
-
? (openBlock(), createElementBlock("div",
|
|
306
|
+
? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
285
307
|
createVNode(_component_SortVariant, {
|
|
286
308
|
size: 20,
|
|
287
309
|
class: "cn-actions-bar__sort-icon",
|
|
@@ -309,7 +331,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
309
331
|
"aria-label": $options.t('nextcloud-vue', 'Search and columns'),
|
|
310
332
|
title: $options.t('nextcloud-vue', 'Search and columns'),
|
|
311
333
|
pressed: $props.sidebarOpen,
|
|
312
|
-
onClick: _cache[
|
|
334
|
+
onClick: _cache[3] || (_cache[3] = $event => (_ctx.$emit('toggle-sidebar')))
|
|
313
335
|
}, {
|
|
314
336
|
icon: withCtx(() => [
|
|
315
337
|
createVNode(_component_Tune, { size: 20 })
|
|
@@ -363,7 +385,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
363
385
|
default: withCtx(() => [
|
|
364
386
|
createVNode(_component_NcActionButton, {
|
|
365
387
|
disabled: $props.refreshing || $props.refreshDisabled,
|
|
366
|
-
onClick: _cache[
|
|
388
|
+
onClick: _cache[4] || (_cache[4] = $event => (_ctx.$emit('refresh')))
|
|
367
389
|
}, {
|
|
368
390
|
icon: withCtx(() => [
|
|
369
391
|
($props.refreshing)
|
|
@@ -460,7 +482,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
460
482
|
($props.showMassImport)
|
|
461
483
|
? (openBlock(), createBlock(_component_NcActionButton, {
|
|
462
484
|
key: 2,
|
|
463
|
-
onClick: _cache[
|
|
485
|
+
onClick: _cache[5] || (_cache[5] = $event => (_ctx.$emit('show-import')))
|
|
464
486
|
}, {
|
|
465
487
|
icon: withCtx(() => [
|
|
466
488
|
createVNode(_component_Import, { size: 20 })
|
|
@@ -474,7 +496,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
474
496
|
($props.showMassExport)
|
|
475
497
|
? (openBlock(), createBlock(_component_NcActionButton, {
|
|
476
498
|
key: 3,
|
|
477
|
-
onClick: _cache[
|
|
499
|
+
onClick: _cache[6] || (_cache[6] = $event => (_ctx.$emit('show-export')))
|
|
478
500
|
}, {
|
|
479
501
|
icon: withCtx(() => [
|
|
480
502
|
createVNode(_component_Export, { size: 20 })
|
|
@@ -490,7 +512,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
490
512
|
key: 4,
|
|
491
513
|
disabled: $props.selectedIds.length < 1,
|
|
492
514
|
title: $props.selectedIds.length < 1 ? $options.t('nextcloud-vue', 'Select 1 or more items to copy') : '',
|
|
493
|
-
onClick: _cache[
|
|
515
|
+
onClick: _cache[7] || (_cache[7] = $event => (_ctx.$emit('show-copy')))
|
|
494
516
|
}, {
|
|
495
517
|
icon: withCtx(() => [
|
|
496
518
|
createVNode(_component_ContentCopy, { size: 20 })
|
|
@@ -506,7 +528,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
506
528
|
key: 5,
|
|
507
529
|
disabled: $props.selectedIds.length < 1,
|
|
508
530
|
title: $props.selectedIds.length < 1 ? $options.t('nextcloud-vue', 'Select 1 or more items to delete') : '',
|
|
509
|
-
onClick: _cache[
|
|
531
|
+
onClick: _cache[8] || (_cache[8] = $event => (_ctx.$emit('show-delete')))
|
|
510
532
|
}, {
|
|
511
533
|
icon: withCtx(() => [
|
|
512
534
|
createVNode(_component_TrashCanOutline, { size: 20 })
|
|
@@ -527,9 +549,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
527
549
|
: createCommentVNode("v-if", true)
|
|
528
550
|
]),
|
|
529
551
|
($options.isBoardLayout)
|
|
530
|
-
? (openBlock(), createElementBlock("div",
|
|
531
|
-
($props.showSearch)
|
|
532
|
-
? (openBlock(), createElementBlock("div",
|
|
552
|
+
? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
553
|
+
($props.showSearch && !$options.searchInToolbar)
|
|
554
|
+
? (openBlock(), createElementBlock("div", _hoisted_19, [
|
|
533
555
|
createVNode(_component_Magnify, {
|
|
534
556
|
size: 18,
|
|
535
557
|
class: "cn-actions-bar__search-icon"
|
|
@@ -540,23 +562,23 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
540
562
|
placeholder: $props.searchPlaceholder || $options.t('nextcloud-vue', 'Search…'),
|
|
541
563
|
value: $props.searchValue,
|
|
542
564
|
"aria-label": $props.searchPlaceholder || $options.t('nextcloud-vue', 'Search'),
|
|
543
|
-
onInput: _cache[
|
|
544
|
-
}, null, 40 /* PROPS, NEED_HYDRATION */,
|
|
565
|
+
onInput: _cache[9] || (_cache[9] = (...args) => ($options.onSearchInput && $options.onSearchInput(...args)))
|
|
566
|
+
}, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_20)
|
|
545
567
|
]))
|
|
546
|
-
: ($props.showCount && $options.hasTotal)
|
|
547
|
-
? (openBlock(), createElementBlock("span",
|
|
568
|
+
: ($props.showCount && $options.hasTotal && !$options.searchInToolbar)
|
|
569
|
+
? (openBlock(), createElementBlock("span", _hoisted_21, toDisplayString($options.countText), 1 /* TEXT */))
|
|
548
570
|
: createCommentVNode("v-if", true),
|
|
549
571
|
renderSlot(_ctx.$slots, "after-search"),
|
|
550
572
|
($props.activeFilterChips.length > 0)
|
|
551
573
|
? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
552
|
-
createElementVNode("span",
|
|
574
|
+
createElementVNode("span", _hoisted_22, toDisplayString($options.t('nextcloud-vue', 'Active:')), 1 /* TEXT */),
|
|
553
575
|
(openBlock(true), createElementBlock(Fragment, null, renderList($props.activeFilterChips, (chip) => {
|
|
554
576
|
return (openBlock(), createElementBlock("span", {
|
|
555
577
|
key: chip.key,
|
|
556
578
|
class: "cn-actions-bar__filter-chip",
|
|
557
579
|
"data-testid": "cn-actions-bar-filter-chip"
|
|
558
580
|
}, [
|
|
559
|
-
createElementVNode("span",
|
|
581
|
+
createElementVNode("span", _hoisted_23, toDisplayString(chip.label), 1 /* TEXT */),
|
|
560
582
|
createElementVNode("button", {
|
|
561
583
|
type: "button",
|
|
562
584
|
class: "cn-actions-bar__filter-chip-remove",
|
|
@@ -567,14 +589,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
567
589
|
size: 14,
|
|
568
590
|
"aria-hidden": "true"
|
|
569
591
|
})
|
|
570
|
-
], 8 /* PROPS */,
|
|
592
|
+
], 8 /* PROPS */, _hoisted_24)
|
|
571
593
|
]))
|
|
572
594
|
}), 128 /* KEYED_FRAGMENT */)),
|
|
573
595
|
createElementVNode("button", {
|
|
574
596
|
type: "button",
|
|
575
597
|
class: "cn-actions-bar__clear-all",
|
|
576
598
|
"data-testid": "cn-actions-bar-clear-all",
|
|
577
|
-
onClick: _cache[
|
|
599
|
+
onClick: _cache[10] || (_cache[10] = $event => (_ctx.$emit('clear-filters')))
|
|
578
600
|
}, toDisplayString($options.t('nextcloud-vue', 'Clear all')), 1 /* TEXT */)
|
|
579
601
|
], 64 /* STABLE_FRAGMENT */))
|
|
580
602
|
: createCommentVNode("v-if", true),
|
|
@@ -587,15 +609,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
587
609
|
: createCommentVNode("v-if", true)
|
|
588
610
|
]))
|
|
589
611
|
: createCommentVNode("v-if", true),
|
|
590
|
-
createElementVNode("span",
|
|
612
|
+
createElementVNode("span", _hoisted_25, toDisplayString($props.selectable && $props.selectedIds.length > 0 ? $options.selectionCountText : ''), 1 /* TEXT */),
|
|
591
613
|
(!$options.isBoardLayout && $props.selectable && $props.selectedIds.length > 0)
|
|
592
|
-
? (openBlock(), createElementBlock("div",
|
|
593
|
-
createElementVNode("span",
|
|
614
|
+
? (openBlock(), createElementBlock("div", _hoisted_26, [
|
|
615
|
+
createElementVNode("span", _hoisted_27, toDisplayString($options.selectionCountText), 1 /* TEXT */),
|
|
594
616
|
($props.showMassCopy)
|
|
595
617
|
? (openBlock(), createBlock(_component_NcButton, {
|
|
596
618
|
key: 0,
|
|
597
619
|
variant: "secondary",
|
|
598
|
-
onClick: _cache[
|
|
620
|
+
onClick: _cache[11] || (_cache[11] = $event => (_ctx.$emit('show-copy')))
|
|
599
621
|
}, {
|
|
600
622
|
icon: withCtx(() => [
|
|
601
623
|
createVNode(_component_ContentCopy, { size: 20 })
|
|
@@ -610,7 +632,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
610
632
|
? (openBlock(), createBlock(_component_NcButton, {
|
|
611
633
|
key: 1,
|
|
612
634
|
variant: "secondary",
|
|
613
|
-
onClick: _cache[
|
|
635
|
+
onClick: _cache[12] || (_cache[12] = $event => (_ctx.$emit('show-delete')))
|
|
614
636
|
}, {
|
|
615
637
|
icon: withCtx(() => [
|
|
616
638
|
createVNode(_component_TrashCanOutline, { size: 20 })
|
|
@@ -643,7 +665,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
643
665
|
createVNode(_component_NcButton, {
|
|
644
666
|
class: "cn-actions-bar__selection-clear",
|
|
645
667
|
variant: "tertiary",
|
|
646
|
-
onClick: _cache[
|
|
668
|
+
onClick: _cache[13] || (_cache[13] = $event => (_ctx.$emit('clear-selection')))
|
|
647
669
|
}, {
|
|
648
670
|
icon: withCtx(() => [
|
|
649
671
|
createVNode(_component_Close, { size: 20 })
|
|
@@ -664,13 +686,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
664
686
|
"aria-label": $options.t('nextcloud-vue', 'Actions for the selection'),
|
|
665
687
|
"data-testid": "cn-bulk-band"
|
|
666
688
|
}, [
|
|
667
|
-
createElementVNode("strong",
|
|
689
|
+
createElementVNode("strong", _hoisted_29, toDisplayString($options.bulkBandLead), 1 /* TEXT */),
|
|
668
690
|
($props.showMassCopy)
|
|
669
691
|
? (openBlock(), createBlock(_component_NcButton, {
|
|
670
692
|
key: 0,
|
|
671
693
|
variant: "secondary",
|
|
672
694
|
disabled: $props.selectedIds.length === 0,
|
|
673
|
-
onClick: _cache[
|
|
695
|
+
onClick: _cache[14] || (_cache[14] = $event => (_ctx.$emit('show-copy')))
|
|
674
696
|
}, {
|
|
675
697
|
default: withCtx(() => [
|
|
676
698
|
createTextVNode(toDisplayString($options.t('nextcloud-vue', 'Copy selected')), 1 /* TEXT */)
|
|
@@ -683,7 +705,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
683
705
|
key: 1,
|
|
684
706
|
variant: "secondary",
|
|
685
707
|
disabled: $props.selectedIds.length === 0,
|
|
686
|
-
onClick: _cache[
|
|
708
|
+
onClick: _cache[15] || (_cache[15] = $event => (_ctx.$emit('show-delete')))
|
|
687
709
|
}, {
|
|
688
710
|
default: withCtx(() => [
|
|
689
711
|
createTextVNode(toDisplayString($options.t('nextcloud-vue', 'Delete selected')), 1 /* TEXT */)
|
|
@@ -711,9 +733,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
711
733
|
selectedIds: $props.selectedIds
|
|
712
734
|
}),
|
|
713
735
|
($props.bulkHint)
|
|
714
|
-
? (openBlock(), createElementBlock("span",
|
|
736
|
+
? (openBlock(), createElementBlock("span", _hoisted_30, toDisplayString($props.bulkHint), 1 /* TEXT */))
|
|
715
737
|
: createCommentVNode("v-if", true)
|
|
716
|
-
], 10 /* CLASS, PROPS */,
|
|
738
|
+
], 10 /* CLASS, PROPS */, _hoisted_28))
|
|
717
739
|
: createCommentVNode("v-if", true)
|
|
718
740
|
], 64 /* STABLE_FRAGMENT */))
|
|
719
741
|
}
|