@conduction/nextcloud-vue 0.1.0-beta.11 → 0.1.0-beta.12

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 (78) hide show
  1. package/dist/nextcloud-vue.cjs +67614 -0
  2. package/dist/nextcloud-vue.cjs.js +13518 -13617
  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 +1796 -1800
  6. package/dist/nextcloud-vue.esm.js +13518 -13617
  7. package/dist/nextcloud-vue.esm.js.map +1 -1
  8. package/package.json +3 -2
  9. package/src/components/CnActionsBar/CnActionsBar.vue +254 -254
  10. package/src/components/CnAdvancedFormDialog/CnAdvancedFormDialog.vue +570 -570
  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 +422 -422
  14. package/src/components/CnAdvancedFormDialog/CnPropertyValueCell.vue +247 -247
  15. package/src/components/CnCard/CnCard.vue +415 -415
  16. package/src/components/CnCardGrid/CnCardGrid.vue +156 -156
  17. package/src/components/CnCellRenderer/CnCellRenderer.vue +132 -132
  18. package/src/components/CnChartWidget/CnChartWidget.vue +346 -346
  19. package/src/components/CnConfigurationCard/CnConfigurationCard.vue +77 -77
  20. package/src/components/CnContextMenu/CnContextMenu.vue +142 -142
  21. package/src/components/CnCopyDialog/CnCopyDialog.vue +266 -266
  22. package/src/components/CnDashboardGrid/CnDashboardGrid.vue +229 -229
  23. package/src/components/CnDashboardPage/CnDashboardPage.vue +397 -397
  24. package/src/components/CnDataTable/CnDataTable.vue +362 -362
  25. package/src/components/CnDeleteDialog/CnDeleteDialog.vue +177 -177
  26. package/src/components/CnDetailCard/CnDetailCard.vue +225 -225
  27. package/src/components/CnDetailGrid/CnDetailGrid.vue +256 -256
  28. package/src/components/CnDetailPage/CnDetailPage.vue +432 -432
  29. package/src/components/CnFacetSidebar/CnFacetSidebar.vue +234 -234
  30. package/src/components/CnFilterBar/CnFilterBar.vue +153 -153
  31. package/src/components/CnFormDialog/CnFormDialog.vue +1047 -1047
  32. package/src/components/CnIcon/CnIcon.vue +89 -89
  33. package/src/components/CnIndexPage/CnIndexPage.vue +981 -980
  34. package/src/components/CnIndexSidebar/CnIndexSidebar.vue +536 -536
  35. package/src/components/CnInfoWidget/CnInfoWidget.vue +219 -219
  36. package/src/components/CnItemCard/CnItemCard.vue +134 -134
  37. package/src/components/CnJsonViewer/CnJsonViewer.vue +312 -312
  38. package/src/components/CnKpiGrid/CnKpiGrid.vue +93 -93
  39. package/src/components/CnMassActionBar/CnMassActionBar.vue +161 -161
  40. package/src/components/CnMassCopyDialog/CnMassCopyDialog.vue +327 -327
  41. package/src/components/CnMassDeleteDialog/CnMassDeleteDialog.vue +245 -245
  42. package/src/components/CnMassExportDialog/CnMassExportDialog.vue +191 -191
  43. package/src/components/CnMassImportDialog/CnMassImportDialog.vue +494 -494
  44. package/src/components/CnNoteCard/CnNoteCard.vue +149 -149
  45. package/src/components/CnNotesCard/CnNotesCard.vue +416 -416
  46. package/src/components/CnObjectCard/CnObjectCard.vue +294 -294
  47. package/src/components/CnObjectDataWidget/CnObjectDataWidget.vue +854 -854
  48. package/src/components/CnObjectMetadataWidget/CnObjectMetadataWidget.vue +289 -289
  49. package/src/components/CnObjectSidebar/CnAuditTrailTab.vue +369 -369
  50. package/src/components/CnObjectSidebar/CnFilesTab.vue +287 -287
  51. package/src/components/CnObjectSidebar/CnNotesTab.vue +250 -250
  52. package/src/components/CnObjectSidebar/CnObjectSidebar.vue +255 -255
  53. package/src/components/CnObjectSidebar/CnTagsTab.vue +259 -259
  54. package/src/components/CnObjectSidebar/CnTasksTab.vue +483 -483
  55. package/src/components/CnPageHeader/CnPageHeader.vue +61 -61
  56. package/src/components/CnPagination/CnPagination.vue +253 -253
  57. package/src/components/CnProgressBar/CnProgressBar.vue +262 -262
  58. package/src/components/CnRegisterMapping/CnRegisterMapping.vue +793 -793
  59. package/src/components/CnRowActions/CnRowActions.vue +95 -95
  60. package/src/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue +226 -226
  61. package/src/components/CnSchemaFormDialog/CnSchemaFormDialog.vue +788 -788
  62. package/src/components/CnSchemaFormDialog/CnSchemaPropertiesTab.vue +305 -305
  63. package/src/components/CnSchemaFormDialog/CnSchemaPropertyActions.vue +1398 -1398
  64. package/src/components/CnSchemaFormDialog/CnSchemaSecurityTab.vue +236 -236
  65. package/src/components/CnSettingsCard/CnSettingsCard.vue +92 -92
  66. package/src/components/CnSettingsSection/CnSettingsSection.vue +267 -267
  67. package/src/components/CnStatsBlock/CnStatsBlock.vue +437 -437
  68. package/src/components/CnStatsPanel/CnStatsPanel.vue +321 -321
  69. package/src/components/CnStatusBadge/CnStatusBadge.vue +90 -90
  70. package/src/components/CnTabbedFormDialog/CnTabbedFormDialog.vue +545 -545
  71. package/src/components/CnTableWidget/CnTableWidget.vue +333 -333
  72. package/src/components/CnTasksCard/CnTasksCard.vue +374 -374
  73. package/src/components/CnTileWidget/CnTileWidget.vue +159 -159
  74. package/src/components/CnTimelineStages/CnTimelineStages.vue +294 -294
  75. package/src/components/CnUserActionMenu/CnUserActionMenu.vue +436 -436
  76. package/src/components/CnVersionInfoCard/CnVersionInfoCard.vue +313 -313
  77. package/src/components/CnWidgetRenderer/CnWidgetRenderer.vue +180 -180
  78. package/src/components/CnWidgetWrapper/CnWidgetWrapper.vue +248 -248
@@ -1,191 +1,191 @@
1
- <template>
2
- <NcDialog
3
- :name="dialogTitle"
4
- size="small"
5
- :can-close="!loading"
6
- @closing="$emit('close')">
7
- <!-- Result phase -->
8
- <div v-if="result !== null" class="cn-mass-export__result">
9
- <NcNoteCard v-if="result.success" type="success">
10
- {{ successText }}
11
- </NcNoteCard>
12
- <NcNoteCard v-if="result.error" type="error">
13
- {{ result.error }}
14
- </NcNoteCard>
15
- </div>
16
-
17
- <!-- Form phase -->
18
- <div v-else class="cn-mass-export__form">
19
- <p v-if="description" class="cn-mass-export__description">
20
- {{ description }}
21
- </p>
22
-
23
- <div class="cn-mass-export__field">
24
- <label for="cn-mass-export-format">{{ formatLabel }}</label>
25
- <NcSelect
26
- input-id="cn-mass-export-format"
27
- :options="formatOptions"
28
- :value="selectedFormat"
29
- :clearable="false"
30
- @input="selectedFormat = $event" />
31
- </div>
32
- </div>
33
-
34
- <template #actions>
35
- <NcButton @click="$emit('close')">
36
- {{ result !== null ? closeLabel : cancelLabel }}
37
- </NcButton>
38
- <NcButton
39
- v-if="result === null"
40
- type="primary"
41
- :disabled="loading"
42
- @click="executeExport">
43
- <template #icon>
44
- <NcLoadingIcon v-if="loading" :size="20" />
45
- <ExportIcon v-else :size="20" />
46
- </template>
47
- {{ confirmLabel }}
48
- </NcButton>
49
- </template>
50
- </NcDialog>
51
- </template>
52
-
53
- <script>
54
- import { translate as t } from '@nextcloud/l10n'
55
- import { NcDialog, NcButton, NcNoteCard, NcLoadingIcon, NcSelect } from '@nextcloud/vue'
56
- import ExportIcon from 'vue-material-design-icons/Export.vue'
57
-
58
- /**
59
- * CnMassExportDialog — Export dialog with format selection.
60
- *
61
- * Allows users to select an export format and triggers the export.
62
- * The parent handles the actual download. Based on the OpenRegister
63
- * ExportRegister pattern.
64
- *
65
- * @example
66
- * <CnMassExportDialog
67
- * v-if="showExportDialog"
68
- * ref="exportDialog"
69
- * description="Export 42 objects from Cases"
70
- * @confirm="onExportConfirm"
71
- * @close="showExportDialog = false" />
72
- *
73
- * // In methods:
74
- * async onExportConfirm({ format }) {
75
- * try {
76
- * const response = await axios({
77
- * url: `/api/objects/export`,
78
- * method: 'GET',
79
- * params: { type: format },
80
- * responseType: 'blob',
81
- * })
82
- * // Trigger download...
83
- * this.$refs.exportDialog.setResult({ success: true })
84
- * } catch (e) {
85
- * this.$refs.exportDialog.setResult({ error: e.message })
86
- * }
87
- * }
88
- */
89
- export default {
90
- name: 'CnMassExportDialog',
91
-
92
- components: {
93
- NcDialog,
94
- NcButton,
95
- NcNoteCard,
96
- NcLoadingIcon,
97
- NcSelect,
98
- ExportIcon,
99
- },
100
-
101
- props: {
102
- /** Dialog title */
103
- dialogTitle: {
104
- type: String,
105
- default: () => t('nextcloud-vue', 'Export objects'),
106
- },
107
- /** Description text shown above the format selector */
108
- description: {
109
- type: String,
110
- default: '',
111
- },
112
- /** Available export formats */
113
- formats: {
114
- type: Array,
115
- default: () => [
116
- { id: 'excel', label: 'Excel (.xlsx)' },
117
- { id: 'csv', label: 'CSV (.csv)' },
118
- ],
119
- },
120
- /** Default selected format ID */
121
- defaultFormat: {
122
- type: String,
123
- default: 'excel',
124
- },
125
- /** Success message */
126
- successText: {
127
- type: String,
128
- default: () => t('nextcloud-vue', 'Export completed successfully.'),
129
- },
130
- formatLabel: { type: String, default: () => t('nextcloud-vue', 'Export format') },
131
- cancelLabel: { type: String, default: () => t('nextcloud-vue', 'Cancel') },
132
- closeLabel: { type: String, default: () => t('nextcloud-vue', 'Close') },
133
- confirmLabel: { type: String, default: () => t('nextcloud-vue', 'Export') },
134
- },
135
-
136
- data() {
137
- const defaultOption = this.formats.find((f) => f.id === this.defaultFormat) || this.formats[0]
138
- return {
139
- selectedFormat: defaultOption,
140
- loading: false,
141
- result: null,
142
- closeTimeout: null,
143
- }
144
- },
145
-
146
- beforeDestroy() {
147
- if (this.closeTimeout) clearTimeout(this.closeTimeout)
148
- },
149
-
150
- methods: {
151
- executeExport() {
152
- this.loading = true
153
- this.$emit('confirm', {
154
- format: this.selectedFormat.id,
155
- })
156
- },
157
-
158
- /**
159
- * Set the result of the export operation.
160
- * @param {{ success?: boolean, error?: string }} resultData - Result data to pass to the dialog
161
- * @public
162
- */
163
- setResult(resultData) {
164
- this.loading = false
165
- this.result = resultData
166
- if (resultData.success) {
167
- this.closeTimeout = setTimeout(() => {
168
- this.$emit('close')
169
- }, 2000)
170
- }
171
- },
172
- },
173
- }
174
- </script>
175
-
176
- <style scoped>
177
- .cn-mass-export__description {
178
- margin-bottom: 16px;
179
- color: var(--color-text-maxcontrast);
180
- }
181
-
182
- .cn-mass-export__field {
183
- display: flex;
184
- flex-direction: column;
185
- gap: 4px;
186
- }
187
-
188
- .cn-mass-export__field label {
189
- font-weight: 600;
190
- }
191
- </style>
1
+ <template>
2
+ <NcDialog
3
+ :name="dialogTitle"
4
+ size="small"
5
+ :can-close="!loading"
6
+ @closing="$emit('close')">
7
+ <!-- Result phase -->
8
+ <div v-if="result !== null" class="cn-mass-export__result">
9
+ <NcNoteCard v-if="result.success" type="success">
10
+ {{ successText }}
11
+ </NcNoteCard>
12
+ <NcNoteCard v-if="result.error" type="error">
13
+ {{ result.error }}
14
+ </NcNoteCard>
15
+ </div>
16
+
17
+ <!-- Form phase -->
18
+ <div v-else class="cn-mass-export__form">
19
+ <p v-if="description" class="cn-mass-export__description">
20
+ {{ description }}
21
+ </p>
22
+
23
+ <div class="cn-mass-export__field">
24
+ <label for="cn-mass-export-format">{{ formatLabel }}</label>
25
+ <NcSelect
26
+ input-id="cn-mass-export-format"
27
+ :options="formatOptions"
28
+ :value="selectedFormat"
29
+ :clearable="false"
30
+ @input="selectedFormat = $event" />
31
+ </div>
32
+ </div>
33
+
34
+ <template #actions>
35
+ <NcButton @click="$emit('close')">
36
+ {{ result !== null ? closeLabel : cancelLabel }}
37
+ </NcButton>
38
+ <NcButton
39
+ v-if="result === null"
40
+ type="primary"
41
+ :disabled="loading"
42
+ @click="executeExport">
43
+ <template #icon>
44
+ <NcLoadingIcon v-if="loading" :size="20" />
45
+ <ExportIcon v-else :size="20" />
46
+ </template>
47
+ {{ confirmLabel }}
48
+ </NcButton>
49
+ </template>
50
+ </NcDialog>
51
+ </template>
52
+
53
+ <script>
54
+ import { translate as t } from '@nextcloud/l10n'
55
+ import { NcDialog, NcButton, NcNoteCard, NcLoadingIcon, NcSelect } from '@nextcloud/vue'
56
+ import ExportIcon from 'vue-material-design-icons/Export.vue'
57
+
58
+ /**
59
+ * CnMassExportDialog — Export dialog with format selection.
60
+ *
61
+ * Allows users to select an export format and triggers the export.
62
+ * The parent handles the actual download. Based on the OpenRegister
63
+ * ExportRegister pattern.
64
+ *
65
+ * @example
66
+ * <CnMassExportDialog
67
+ * v-if="showExportDialog"
68
+ * ref="exportDialog"
69
+ * description="Export 42 objects from Cases"
70
+ * @confirm="onExportConfirm"
71
+ * @close="showExportDialog = false" />
72
+ *
73
+ * // In methods:
74
+ * async onExportConfirm({ format }) {
75
+ * try {
76
+ * const response = await axios({
77
+ * url: `/api/objects/export`,
78
+ * method: 'GET',
79
+ * params: { type: format },
80
+ * responseType: 'blob',
81
+ * })
82
+ * // Trigger download...
83
+ * this.$refs.exportDialog.setResult({ success: true })
84
+ * } catch (e) {
85
+ * this.$refs.exportDialog.setResult({ error: e.message })
86
+ * }
87
+ * }
88
+ */
89
+ export default {
90
+ name: 'CnMassExportDialog',
91
+
92
+ components: {
93
+ NcDialog,
94
+ NcButton,
95
+ NcNoteCard,
96
+ NcLoadingIcon,
97
+ NcSelect,
98
+ ExportIcon,
99
+ },
100
+
101
+ props: {
102
+ /** Dialog title */
103
+ dialogTitle: {
104
+ type: String,
105
+ default: () => t('nextcloud-vue', 'Export objects'),
106
+ },
107
+ /** Description text shown above the format selector */
108
+ description: {
109
+ type: String,
110
+ default: '',
111
+ },
112
+ /** Available export formats */
113
+ formats: {
114
+ type: Array,
115
+ default: () => [
116
+ { id: 'excel', label: 'Excel (.xlsx)' },
117
+ { id: 'csv', label: 'CSV (.csv)' },
118
+ ],
119
+ },
120
+ /** Default selected format ID */
121
+ defaultFormat: {
122
+ type: String,
123
+ default: 'excel',
124
+ },
125
+ /** Success message */
126
+ successText: {
127
+ type: String,
128
+ default: () => t('nextcloud-vue', 'Export completed successfully.'),
129
+ },
130
+ formatLabel: { type: String, default: () => t('nextcloud-vue', 'Export format') },
131
+ cancelLabel: { type: String, default: () => t('nextcloud-vue', 'Cancel') },
132
+ closeLabel: { type: String, default: () => t('nextcloud-vue', 'Close') },
133
+ confirmLabel: { type: String, default: () => t('nextcloud-vue', 'Export') },
134
+ },
135
+
136
+ data() {
137
+ const defaultOption = this.formats.find((f) => f.id === this.defaultFormat) || this.formats[0]
138
+ return {
139
+ selectedFormat: defaultOption,
140
+ loading: false,
141
+ result: null,
142
+ closeTimeout: null,
143
+ }
144
+ },
145
+
146
+ beforeDestroy() {
147
+ if (this.closeTimeout) clearTimeout(this.closeTimeout)
148
+ },
149
+
150
+ methods: {
151
+ executeExport() {
152
+ this.loading = true
153
+ this.$emit('confirm', {
154
+ format: this.selectedFormat.id,
155
+ })
156
+ },
157
+
158
+ /**
159
+ * Set the result of the export operation.
160
+ * @param {{ success?: boolean, error?: string }} resultData - Result data to pass to the dialog
161
+ * @public
162
+ */
163
+ setResult(resultData) {
164
+ this.loading = false
165
+ this.result = resultData
166
+ if (resultData.success) {
167
+ this.closeTimeout = setTimeout(() => {
168
+ this.$emit('close')
169
+ }, 2000)
170
+ }
171
+ },
172
+ },
173
+ }
174
+ </script>
175
+
176
+ <style scoped>
177
+ .cn-mass-export__description {
178
+ margin-bottom: 16px;
179
+ color: var(--color-text-maxcontrast);
180
+ }
181
+
182
+ .cn-mass-export__field {
183
+ display: flex;
184
+ flex-direction: column;
185
+ gap: 4px;
186
+ }
187
+
188
+ .cn-mass-export__field label {
189
+ font-weight: 600;
190
+ }
191
+ </style>