@conduction/nextcloud-vue 0.1.0-beta.4 → 0.1.0-beta.6

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.
Files changed (71) hide show
  1. package/dist/nextcloud-vue.cjs +67614 -0
  2. package/dist/nextcloud-vue.cjs.js +9559 -8983
  3. package/dist/nextcloud-vue.cjs.js.map +1 -1
  4. package/dist/nextcloud-vue.cjs.map +1 -0
  5. package/dist/nextcloud-vue.css +1231 -1231
  6. package/dist/nextcloud-vue.esm.js +9559 -8983
  7. package/dist/nextcloud-vue.esm.js.map +1 -1
  8. package/package.json +14 -5
  9. package/src/components/CnActionsBar/CnActionsBar.vue +235 -235
  10. package/src/components/CnAdvancedFormDialog/CnAdvancedFormDialog.vue +579 -579
  11. package/src/components/CnAdvancedFormDialog/CnDataTab.vue +217 -217
  12. package/src/components/CnAdvancedFormDialog/CnMetadataTab.vue +121 -121
  13. package/src/components/CnAdvancedFormDialog/CnPropertiesTab.vue +418 -418
  14. package/src/components/CnAdvancedFormDialog/CnPropertyValueCell.vue +247 -247
  15. package/src/components/CnCardGrid/CnCardGrid.vue +152 -152
  16. package/src/components/CnCellRenderer/CnCellRenderer.vue +132 -132
  17. package/src/components/CnChartWidget/CnChartWidget.vue +320 -320
  18. package/src/components/CnConfigurationCard/CnConfigurationCard.vue +77 -77
  19. package/src/components/CnCopyDialog/CnCopyDialog.vue +250 -250
  20. package/src/components/CnDashboardGrid/CnDashboardGrid.vue +225 -225
  21. package/src/components/CnDashboardPage/CnDashboardPage.vue +390 -390
  22. package/src/components/CnDataTable/CnDataTable.vue +349 -349
  23. package/src/components/CnDeleteDialog/CnDeleteDialog.vue +170 -170
  24. package/src/components/CnDetailCard/CnDetailCard.vue +214 -214
  25. package/src/components/CnDetailPage/CnDetailPage.vue +285 -281
  26. package/src/components/CnFacetSidebar/CnFacetSidebar.vue +231 -231
  27. package/src/components/CnFilterBar/CnFilterBar.vue +152 -152
  28. package/src/components/CnFormDialog/CnFormDialog.vue +302 -11
  29. package/src/components/CnIcon/CnIcon.vue +89 -89
  30. package/src/components/CnIndexPage/CnIndexPage.vue +884 -874
  31. package/src/components/CnIndexSidebar/CnIndexSidebar.vue +503 -503
  32. package/src/components/CnItemCard/CnItemCard.vue +132 -132
  33. package/src/components/CnKpiGrid/CnKpiGrid.vue +89 -89
  34. package/src/components/CnMassActionBar/CnMassActionBar.vue +160 -160
  35. package/src/components/CnMassCopyDialog/CnMassCopyDialog.vue +320 -320
  36. package/src/components/CnMassDeleteDialog/CnMassDeleteDialog.vue +238 -238
  37. package/src/components/CnMassExportDialog/CnMassExportDialog.vue +190 -190
  38. package/src/components/CnMassImportDialog/CnMassImportDialog.vue +491 -491
  39. package/src/components/CnNoteCard/CnNoteCard.vue +149 -149
  40. package/src/components/CnNotesCard/CnNotesCard.vue +413 -413
  41. package/src/components/CnObjectCard/CnObjectCard.vue +292 -292
  42. package/src/components/CnObjectCard/eslint-setup.md +235 -0
  43. package/src/components/CnObjectCard/package.json-or.json +132 -0
  44. package/src/components/CnObjectSidebar/CnObjectSidebar.vue +876 -876
  45. package/src/components/CnPageHeader/CnPageHeader.vue +57 -57
  46. package/src/components/CnPagination/CnPagination.vue +252 -252
  47. package/src/components/CnRegisterMapping/CnRegisterMapping.vue +792 -792
  48. package/src/components/CnRowActions/CnRowActions.vue +95 -73
  49. package/src/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue +226 -226
  50. package/src/components/CnSchemaFormDialog/CnSchemaFormDialog.vue +787 -787
  51. package/src/components/CnSchemaFormDialog/CnSchemaPropertiesTab.vue +305 -305
  52. package/src/components/CnSchemaFormDialog/CnSchemaPropertyActions.vue +1398 -1398
  53. package/src/components/CnSchemaFormDialog/CnSchemaSecurityTab.vue +236 -236
  54. package/src/components/CnSettingsCard/CnSettingsCard.vue +92 -92
  55. package/src/components/CnSettingsSection/CnSettingsSection.vue +266 -266
  56. package/src/components/CnStatsBlock/CnStatsBlock.vue +420 -420
  57. package/src/components/CnStatusBadge/CnStatusBadge.vue +77 -77
  58. package/src/components/CnTabbedFormDialog/CnTabbedFormDialog.vue +540 -540
  59. package/src/components/CnTasksCard/CnTasksCard.vue +373 -373
  60. package/src/components/CnTileWidget/CnTileWidget.vue +159 -159
  61. package/src/components/CnTimelineStages/CnTimelineStages.vue +292 -292
  62. package/src/components/CnUserActionMenu/CnUserActionMenu.vue +435 -435
  63. package/src/components/CnVersionInfoCard/CnVersionInfoCard.vue +312 -312
  64. package/src/components/CnWidgetRenderer/CnWidgetRenderer.vue +180 -180
  65. package/src/components/CnWidgetWrapper/CnWidgetWrapper.vue +211 -211
  66. package/src/index.js +1 -1
  67. package/src/types/notification.d.ts +13 -13
  68. package/src/types/organisation.d.ts +15 -15
  69. package/src/types/schema.d.ts +13 -13
  70. package/src/types/task.d.ts +6 -6
  71. package/src/utils/headers.js +5 -3
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@conduction/nextcloud-vue",
3
- "version": "0.1.0-beta.4",
3
+ "version": "0.1.0-beta.6",
4
4
  "description": "Shared Vue component library for Conduction Nextcloud apps — complements @nextcloud/vue with higher-level components, OpenRegister integration, and NL Design System support",
5
5
  "license": "EUPL-1.2",
6
6
  "author": "Conduction B.V. <info@conduction.nl>",
7
- "main": "dist/nextcloud-vue.cjs.js",
7
+ "main": "dist/nextcloud-vue.cjs",
8
8
  "module": "dist/nextcloud-vue.esm.js",
9
9
  "style": "dist/nextcloud-vue.css",
10
10
  "types": "src/types/index.d.ts",
@@ -13,14 +13,15 @@
13
13
  "src/",
14
14
  "css/"
15
15
  ],
16
+ "type": "module",
16
17
  "sideEffects": true,
17
18
  "scripts": {
18
19
  "build": "rollup -c",
19
20
  "dev": "rollup -c -w",
20
21
  "test": "jest",
21
22
  "lint": "eslint src/",
23
+ "lint-fix": "npm run lint -- --fix",
22
24
  "stylelint": "stylelint 'src/**/*.vue' 'src/**/*.css'",
23
- "prepare": "npm run build",
24
25
  "prepublishOnly": "npm run build"
25
26
  },
26
27
  "dependencies": {
@@ -39,12 +40,14 @@
39
40
  "bootstrap-vue": "^2.23.1",
40
41
  "pinia": "^2.0.0",
41
42
  "vue": "^2.7.0",
42
- "vue-material-design-icons": "^5.0.0",
43
- "vue-frag": "^1.4.3"
43
+ "vue-frag": "^1.4.3",
44
+ "vue-material-design-icons": "^5.0.0"
44
45
  },
45
46
  "devDependencies": {
46
47
  "@babel/core": "^7.29.0",
48
+ "@babel/plugin-transform-typescript": "^7.28.6",
47
49
  "@babel/preset-env": "^7.29.0",
50
+ "@babel/preset-typescript": "^7.28.5",
48
51
  "@eslint/config-helpers": "^0.4.2",
49
52
  "@eslint/eslintrc": "^3.3.4",
50
53
  "@eslint/js": "^9.39.3",
@@ -53,12 +56,18 @@
53
56
  "@nextcloud/vue": "^8.12.0",
54
57
  "@rollup/plugin-commonjs": "^25.0.0",
55
58
  "@rollup/plugin-node-resolve": "^15.0.0",
59
+ "@semantic-release/git": "^10.0.1",
56
60
  "@vue/test-utils": "^1.3.6",
57
61
  "@vue/vue2-jest": "^29.2.6",
58
62
  "babel-jest": "^29.7.0",
59
63
  "bootstrap-vue": "^2.23.1",
60
64
  "eslint": "^8.56.0",
61
65
  "eslint-import-resolver-alias": "^1.1.2",
66
+ "eslint-plugin-import": "^2.29.1",
67
+ "eslint-plugin-n": "^16.6.2",
68
+ "eslint-plugin-promise": "^6.1.1",
69
+ "eslint-plugin-vue": "^9.21.1",
70
+ "eslint-webpack-plugin": "^4.0.1",
62
71
  "jest": "^29.7.0",
63
72
  "jest-environment-jsdom": "^29.7.0",
64
73
  "jest-transform-stub": "^2.0.0",
@@ -1,235 +1,235 @@
1
- <template>
2
- <div class="cn-actions-bar">
3
- <div class="cn-actions-bar__info">
4
- <span v-if="pagination && pagination.total > 0" class="cn-actions-bar__count">
5
- {{ countText }}
6
- </span>
7
- </div>
8
- <div class="cn-actions-bar__actions">
9
- <!-- View mode toggle (Cards / Table) -->
10
- <div v-if="showViewToggle" class="cn-actions-bar__view-toggle">
11
- <NcCheckboxRadioSwitch
12
- :checked="viewMode"
13
- :button-variant="true"
14
- value="cards"
15
- name="cn_view_mode"
16
- type="radio"
17
- button-variant-grouped="horizontal"
18
- @update:checked="$emit('view-mode-change', 'cards')">
19
- Cards
20
- </NcCheckboxRadioSwitch>
21
- <NcCheckboxRadioSwitch
22
- :checked="viewMode"
23
- :button-variant="true"
24
- value="table"
25
- name="cn_view_mode"
26
- type="radio"
27
- button-variant-grouped="horizontal"
28
- @update:checked="$emit('view-mode-change', 'table')">
29
- Table
30
- </NcCheckboxRadioSwitch>
31
- </div>
32
-
33
- <!-- Add button (primary) -->
34
- <NcButton type="primary" @click="$emit('add')">
35
- <template #icon>
36
- <CnIcon v-if="addIcon" :name="addIcon" :size="20" />
37
- <Plus v-else :size="20" />
38
- </template>
39
- {{ addLabel }}
40
- </NcButton>
41
-
42
- <slot name="header-actions" />
43
-
44
- <!-- Actions menu (Refresh, Import, Export, mass actions) -->
45
- <NcActions
46
- :force-name="true"
47
- :inline="0"
48
- menu-name="Actions">
49
- <NcActionButton :disabled="refreshing" @click="$emit('refresh')">
50
- <template #icon>
51
- <NcLoadingIcon v-if="refreshing" :size="20" />
52
- <Refresh v-else :size="20" />
53
- </template>
54
- {{ refreshing ? 'Refreshing...' : 'Refresh' }}
55
- </NcActionButton>
56
-
57
- <!-- Custom primary action items (overflow) -->
58
- <slot name="action-items" />
59
-
60
- <!-- Separator between primary and mass actions -->
61
- <NcActionSeparator v-if="hasMassActions" />
62
-
63
- <!-- Mass actions (overflow) -->
64
- <NcActionButton
65
- v-if="showMassImport"
66
- @click="$emit('show-import')">
67
- <template #icon>
68
- <Import :size="20" />
69
- </template>
70
- Import
71
- </NcActionButton>
72
- <NcActionButton
73
- v-if="showMassExport"
74
- @click="$emit('show-export')">
75
- <template #icon>
76
- <Export :size="20" />
77
- </template>
78
- Export
79
- </NcActionButton>
80
- <NcActionButton
81
- v-if="showMassCopy"
82
- :disabled="selectedIds.length < 1"
83
- :title="selectedIds.length < 1 ? 'Select 1 or more items to copy' : ''"
84
- @click="$emit('show-copy')">
85
- <template #icon>
86
- <ContentCopy :size="20" />
87
- </template>
88
- Copy selected
89
- </NcActionButton>
90
- <NcActionButton
91
- v-if="showMassDelete"
92
- :disabled="selectedIds.length < 1"
93
- :title="selectedIds.length < 1 ? 'Select 1 or more items to delete' : ''"
94
- @click="$emit('show-delete')">
95
- <template #icon>
96
- <TrashCanOutline :size="20" />
97
- </template>
98
- Delete selected
99
- </NcActionButton>
100
-
101
- <!-- Custom mass actions (overflow) -->
102
- <slot name="mass-actions" :count="selectedIds.length" :selected-ids="selectedIds" />
103
- </NcActions>
104
- </div>
105
- </div>
106
- </template>
107
-
108
- <script>
109
- import { NcActions, NcActionButton, NcActionSeparator, NcButton, NcCheckboxRadioSwitch, NcLoadingIcon } from '@nextcloud/vue'
110
- import { CnIcon } from '../CnIcon/index.js'
111
- import Plus from 'vue-material-design-icons/Plus.vue'
112
- import Refresh from 'vue-material-design-icons/Refresh.vue'
113
- import ContentCopy from 'vue-material-design-icons/ContentCopy.vue'
114
- import TrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'
115
- import Import from 'vue-material-design-icons/Import.vue'
116
- import Export from 'vue-material-design-icons/Export.vue'
117
-
118
- /**
119
- * CnActionsBar — Reusable actions toolbar with count, mass actions, and primary actions.
120
- *
121
- * @example
122
- * <CnActionsBar
123
- * :pagination="pagination"
124
- * :object-count="items.length"
125
- * add-label="Add Client"
126
- * add-icon="AccountGroup"
127
- * @add="createNew"
128
- * @refresh="reload" />
129
- */
130
- export default {
131
- name: 'CnActionsBar',
132
-
133
- components: {
134
- NcActions,
135
- NcActionButton,
136
- NcActionSeparator,
137
- NcButton,
138
- NcCheckboxRadioSwitch,
139
- NcLoadingIcon,
140
- CnIcon,
141
- Plus,
142
- Refresh,
143
- ContentCopy,
144
- TrashCanOutline,
145
- Import,
146
- Export,
147
- },
148
-
149
- props: {
150
- /** Pagination state: { total, page, pages, limit } */
151
- pagination: {
152
- type: Object,
153
- default: null,
154
- },
155
- /** Number of currently visible objects (for "Showing X of Y") */
156
- objectCount: {
157
- type: Number,
158
- default: 0,
159
- },
160
- /** Whether rows/cards can be selected */
161
- selectable: {
162
- type: Boolean,
163
- default: true,
164
- },
165
- /** Currently selected IDs */
166
- selectedIds: {
167
- type: Array,
168
- default: () => [],
169
- },
170
- /** Label for the Add button */
171
- addLabel: {
172
- type: String,
173
- default: 'Add',
174
- },
175
- /** MDI icon name for the Add button (e.g. 'AccountGroup'). Falls back to Plus icon. */
176
- addIcon: {
177
- type: String,
178
- default: '',
179
- },
180
- /** How many action buttons to show inline (rest go in overflow dropdown) */
181
- inlineActionCount: {
182
- type: Number,
183
- default: 2,
184
- },
185
- /** Whether to show the built-in mass Import action */
186
- showMassImport: {
187
- type: Boolean,
188
- default: true,
189
- },
190
- /** Whether to show the built-in mass Export action */
191
- showMassExport: {
192
- type: Boolean,
193
- default: true,
194
- },
195
- /** Whether to show the built-in mass Copy action */
196
- showMassCopy: {
197
- type: Boolean,
198
- default: true,
199
- },
200
- /** Whether to show the built-in mass Delete action */
201
- showMassDelete: {
202
- type: Boolean,
203
- default: true,
204
- },
205
- /** Current view mode: 'table' or 'cards' */
206
- viewMode: {
207
- type: String,
208
- default: 'table',
209
- validator: (v) => ['table', 'cards'].includes(v),
210
- },
211
- /** Whether to show the Cards/Table view toggle */
212
- showViewToggle: {
213
- type: Boolean,
214
- default: true,
215
- },
216
- /** Whether the refresh action is currently in progress */
217
- refreshing: {
218
- type: Boolean,
219
- default: false,
220
- },
221
- },
222
-
223
- computed: {
224
- countText() {
225
- if (!this.pagination) return ''
226
- return `Showing ${this.objectCount} of ${this.pagination.total}`
227
- },
228
- hasMassActions() {
229
- return this.showMassImport || this.showMassExport || this.showMassCopy || this.showMassDelete
230
- },
231
- },
232
- }
233
- </script>
234
-
235
- <!-- Styles in css/actions-bar.css -->
1
+ <template>
2
+ <div class="cn-actions-bar">
3
+ <div class="cn-actions-bar__info">
4
+ <span v-if="pagination && pagination.total > 0" class="cn-actions-bar__count">
5
+ {{ countText }}
6
+ </span>
7
+ </div>
8
+ <div class="cn-actions-bar__actions">
9
+ <!-- View mode toggle (Cards / Table) -->
10
+ <div v-if="showViewToggle" class="cn-actions-bar__view-toggle">
11
+ <NcCheckboxRadioSwitch
12
+ :checked="viewMode"
13
+ :button-variant="true"
14
+ value="cards"
15
+ name="cn_view_mode"
16
+ type="radio"
17
+ button-variant-grouped="horizontal"
18
+ @update:checked="$emit('view-mode-change', 'cards')">
19
+ Cards
20
+ </NcCheckboxRadioSwitch>
21
+ <NcCheckboxRadioSwitch
22
+ :checked="viewMode"
23
+ :button-variant="true"
24
+ value="table"
25
+ name="cn_view_mode"
26
+ type="radio"
27
+ button-variant-grouped="horizontal"
28
+ @update:checked="$emit('view-mode-change', 'table')">
29
+ Table
30
+ </NcCheckboxRadioSwitch>
31
+ </div>
32
+
33
+ <!-- Add button (primary) -->
34
+ <NcButton type="primary" @click="$emit('add')">
35
+ <template #icon>
36
+ <CnIcon v-if="addIcon" :name="addIcon" :size="20" />
37
+ <Plus v-else :size="20" />
38
+ </template>
39
+ {{ addLabel }}
40
+ </NcButton>
41
+
42
+ <slot name="header-actions" />
43
+
44
+ <!-- Actions menu (Refresh, Import, Export, mass actions) -->
45
+ <NcActions
46
+ :force-name="true"
47
+ :inline="0"
48
+ menu-name="Actions">
49
+ <NcActionButton :disabled="refreshing" @click="$emit('refresh')">
50
+ <template #icon>
51
+ <NcLoadingIcon v-if="refreshing" :size="20" />
52
+ <Refresh v-else :size="20" />
53
+ </template>
54
+ {{ refreshing ? 'Refreshing...' : 'Refresh' }}
55
+ </NcActionButton>
56
+
57
+ <!-- Custom primary action items (overflow) -->
58
+ <slot name="action-items" />
59
+
60
+ <!-- Separator between primary and mass actions -->
61
+ <NcActionSeparator v-if="hasMassActions" />
62
+
63
+ <!-- Mass actions (overflow) -->
64
+ <NcActionButton
65
+ v-if="showMassImport"
66
+ @click="$emit('show-import')">
67
+ <template #icon>
68
+ <Import :size="20" />
69
+ </template>
70
+ Import
71
+ </NcActionButton>
72
+ <NcActionButton
73
+ v-if="showMassExport"
74
+ @click="$emit('show-export')">
75
+ <template #icon>
76
+ <Export :size="20" />
77
+ </template>
78
+ Export
79
+ </NcActionButton>
80
+ <NcActionButton
81
+ v-if="showMassCopy"
82
+ :disabled="selectedIds.length < 1"
83
+ :title="selectedIds.length < 1 ? 'Select 1 or more items to copy' : ''"
84
+ @click="$emit('show-copy')">
85
+ <template #icon>
86
+ <ContentCopy :size="20" />
87
+ </template>
88
+ Copy selected
89
+ </NcActionButton>
90
+ <NcActionButton
91
+ v-if="showMassDelete"
92
+ :disabled="selectedIds.length < 1"
93
+ :title="selectedIds.length < 1 ? 'Select 1 or more items to delete' : ''"
94
+ @click="$emit('show-delete')">
95
+ <template #icon>
96
+ <TrashCanOutline :size="20" />
97
+ </template>
98
+ Delete selected
99
+ </NcActionButton>
100
+
101
+ <!-- Custom mass actions (overflow) -->
102
+ <slot name="mass-actions" :count="selectedIds.length" :selected-ids="selectedIds" />
103
+ </NcActions>
104
+ </div>
105
+ </div>
106
+ </template>
107
+
108
+ <script>
109
+ import { NcActions, NcActionButton, NcActionSeparator, NcButton, NcCheckboxRadioSwitch, NcLoadingIcon } from '@nextcloud/vue'
110
+ import { CnIcon } from '../CnIcon/index.js'
111
+ import Plus from 'vue-material-design-icons/Plus.vue'
112
+ import Refresh from 'vue-material-design-icons/Refresh.vue'
113
+ import ContentCopy from 'vue-material-design-icons/ContentCopy.vue'
114
+ import TrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'
115
+ import Import from 'vue-material-design-icons/Import.vue'
116
+ import Export from 'vue-material-design-icons/Export.vue'
117
+
118
+ /**
119
+ * CnActionsBar — Reusable actions toolbar with count, mass actions, and primary actions.
120
+ *
121
+ * @example
122
+ * <CnActionsBar
123
+ * :pagination="pagination"
124
+ * :object-count="items.length"
125
+ * add-label="Add Client"
126
+ * add-icon="AccountGroup"
127
+ * @add="createNew"
128
+ * @refresh="reload" />
129
+ */
130
+ export default {
131
+ name: 'CnActionsBar',
132
+
133
+ components: {
134
+ NcActions,
135
+ NcActionButton,
136
+ NcActionSeparator,
137
+ NcButton,
138
+ NcCheckboxRadioSwitch,
139
+ NcLoadingIcon,
140
+ CnIcon,
141
+ Plus,
142
+ Refresh,
143
+ ContentCopy,
144
+ TrashCanOutline,
145
+ Import,
146
+ Export,
147
+ },
148
+
149
+ props: {
150
+ /** Pagination state: { total, page, pages, limit } */
151
+ pagination: {
152
+ type: Object,
153
+ default: null,
154
+ },
155
+ /** Number of currently visible objects (for "Showing X of Y") */
156
+ objectCount: {
157
+ type: Number,
158
+ default: 0,
159
+ },
160
+ /** Whether rows/cards can be selected */
161
+ selectable: {
162
+ type: Boolean,
163
+ default: true,
164
+ },
165
+ /** Currently selected IDs */
166
+ selectedIds: {
167
+ type: Array,
168
+ default: () => [],
169
+ },
170
+ /** Label for the Add button */
171
+ addLabel: {
172
+ type: String,
173
+ default: 'Add',
174
+ },
175
+ /** MDI icon name for the Add button (e.g. 'AccountGroup'). Falls back to Plus icon. */
176
+ addIcon: {
177
+ type: String,
178
+ default: '',
179
+ },
180
+ /** How many action buttons to show inline (rest go in overflow dropdown) */
181
+ inlineActionCount: {
182
+ type: Number,
183
+ default: 2,
184
+ },
185
+ /** Whether to show the built-in mass Import action */
186
+ showMassImport: {
187
+ type: Boolean,
188
+ default: true,
189
+ },
190
+ /** Whether to show the built-in mass Export action */
191
+ showMassExport: {
192
+ type: Boolean,
193
+ default: true,
194
+ },
195
+ /** Whether to show the built-in mass Copy action */
196
+ showMassCopy: {
197
+ type: Boolean,
198
+ default: true,
199
+ },
200
+ /** Whether to show the built-in mass Delete action */
201
+ showMassDelete: {
202
+ type: Boolean,
203
+ default: true,
204
+ },
205
+ /** Current view mode: 'table' or 'cards' */
206
+ viewMode: {
207
+ type: String,
208
+ default: 'table',
209
+ validator: (v) => ['table', 'cards'].includes(v),
210
+ },
211
+ /** Whether to show the Cards/Table view toggle */
212
+ showViewToggle: {
213
+ type: Boolean,
214
+ default: true,
215
+ },
216
+ /** Whether the refresh action is currently in progress */
217
+ refreshing: {
218
+ type: Boolean,
219
+ default: false,
220
+ },
221
+ },
222
+
223
+ computed: {
224
+ countText() {
225
+ if (!this.pagination) return ''
226
+ return `Showing ${this.objectCount} of ${this.pagination.total}`
227
+ },
228
+ hasMassActions() {
229
+ return this.showMassImport || this.showMassExport || this.showMassCopy || this.showMassDelete
230
+ },
231
+ },
232
+ }
233
+ </script>
234
+
235
+ <!-- Styles in css/actions-bar.css -->