@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
@@ -1,160 +1,160 @@
1
- <template>
2
- <NcActions
3
- v-if="count > 0"
4
- :menu-name="menuLabel"
5
- :inline="0">
6
- <template #icon>
7
- <TuneVariant :size="20" />
8
- </template>
9
-
10
- <!-- Built-in: Import -->
11
- <NcActionButton
12
- v-if="showImport"
13
- @click="$emit('mass-import')">
14
- <template #icon>
15
- <Import :size="20" />
16
- </template>
17
- {{ importLabel }}
18
- </NcActionButton>
19
-
20
- <!-- Built-in: Export -->
21
- <NcActionButton
22
- v-if="showExport"
23
- @click="$emit('mass-export')">
24
- <template #icon>
25
- <Export :size="20" />
26
- </template>
27
- {{ exportLabel }}
28
- </NcActionButton>
29
-
30
- <!-- Built-in: Copy -->
31
- <NcActionButton
32
- v-if="showCopy"
33
- @click="$emit('mass-copy')">
34
- <template #icon>
35
- <ContentCopy :size="20" />
36
- </template>
37
- {{ copyLabel }}
38
- </NcActionButton>
39
-
40
- <!-- Built-in: Delete -->
41
- <NcActionButton
42
- v-if="showDelete"
43
- @click="$emit('mass-delete')">
44
- <template #icon>
45
- <TrashCanOutline :size="20" />
46
- </template>
47
- {{ deleteLabel }}
48
- </NcActionButton>
49
-
50
- <!-- Custom actions slot -->
51
- <slot name="actions" :count="count" :selected-ids="selectedIds" />
52
- </NcActions>
53
- </template>
54
-
55
- <script>
56
- import { NcActions, NcActionButton } from '@nextcloud/vue'
57
- import TuneVariant from 'vue-material-design-icons/TuneVariant.vue'
58
- import ContentCopy from 'vue-material-design-icons/ContentCopy.vue'
59
- import TrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'
60
- import Import from 'vue-material-design-icons/Import.vue'
61
- import Export from 'vue-material-design-icons/Export.vue'
62
-
63
- /**
64
- * CnMassActionBar — Mass action dropdown button for selected items.
65
- *
66
- * Renders as a single "Mass Actions (N)" dropdown button with built-in
67
- * Import, Export, Copy, and Delete actions plus a slot for custom actions.
68
- * Place this in the header/action bar of your index page.
69
- *
70
- * ## Adding Custom Mass Actions
71
- *
72
- * Use the `#actions` scoped slot to add app-specific mass actions.
73
- * Slot content should use `NcActionButton` components:
74
- *
75
- * ```vue
76
- * <CnMassActionBar :selected-ids="selectedIds" :count="selectedIds.length">
77
- * <template #actions="{ count, selectedIds }">
78
- * <NcActionButton @click="migrateSelected(selectedIds)">
79
- * <template #icon><SwapHorizontal :size="20" /></template>
80
- * Migrate
81
- * </NcActionButton>
82
- * <NcActionButton @click="publishSelected(selectedIds)">
83
- * <template #icon><Publish :size="20" /></template>
84
- * Publish
85
- * </NcActionButton>
86
- * </template>
87
- * </CnMassActionBar>
88
- * ```
89
- *
90
- * @example Basic usage
91
- * <CnMassActionBar
92
- * :selected-ids="selectedIds"
93
- * :count="selectedIds.length"
94
- * @mass-copy="openCopyDialog"
95
- * @mass-delete="openDeleteDialog"
96
- * @mass-import="openImportDialog"
97
- * @mass-export="openExportDialog" />
98
- */
99
- export default {
100
- name: 'CnMassActionBar',
101
-
102
- components: {
103
- NcActions,
104
- NcActionButton,
105
- TuneVariant,
106
- ContentCopy,
107
- TrashCanOutline,
108
- Import,
109
- Export,
110
- },
111
-
112
- props: {
113
- /** Array of selected item IDs */
114
- selectedIds: {
115
- type: Array,
116
- default: () => [],
117
- },
118
- /** Number of selected items */
119
- count: {
120
- type: Number,
121
- default: 0,
122
- },
123
- /** Whether to show the built-in Import action */
124
- showImport: {
125
- type: Boolean,
126
- default: true,
127
- },
128
- /** Whether to show the built-in Export action */
129
- showExport: {
130
- type: Boolean,
131
- default: true,
132
- },
133
- /** Whether to show the built-in Copy action */
134
- showCopy: {
135
- type: Boolean,
136
- default: true,
137
- },
138
- /** Whether to show the built-in Delete action */
139
- showDelete: {
140
- type: Boolean,
141
- default: true,
142
- },
143
- /** Label template for the menu button. Use {count} for the count. */
144
- menuLabelTemplate: {
145
- type: String,
146
- default: 'Mass Actions ({count})',
147
- },
148
- importLabel: { type: String, default: 'Import' },
149
- exportLabel: { type: String, default: 'Export' },
150
- copyLabel: { type: String, default: 'Copy' },
151
- deleteLabel: { type: String, default: 'Delete' },
152
- },
153
-
154
- computed: {
155
- menuLabel() {
156
- return this.menuLabelTemplate.replace('{count}', String(this.count))
157
- },
158
- },
159
- }
160
- </script>
1
+ <template>
2
+ <NcActions
3
+ v-if="count > 0"
4
+ :menu-name="menuLabel"
5
+ :inline="0">
6
+ <template #icon>
7
+ <TuneVariant :size="20" />
8
+ </template>
9
+
10
+ <!-- Built-in: Import -->
11
+ <NcActionButton
12
+ v-if="showImport"
13
+ @click="$emit('mass-import')">
14
+ <template #icon>
15
+ <Import :size="20" />
16
+ </template>
17
+ {{ importLabel }}
18
+ </NcActionButton>
19
+
20
+ <!-- Built-in: Export -->
21
+ <NcActionButton
22
+ v-if="showExport"
23
+ @click="$emit('mass-export')">
24
+ <template #icon>
25
+ <Export :size="20" />
26
+ </template>
27
+ {{ exportLabel }}
28
+ </NcActionButton>
29
+
30
+ <!-- Built-in: Copy -->
31
+ <NcActionButton
32
+ v-if="showCopy"
33
+ @click="$emit('mass-copy')">
34
+ <template #icon>
35
+ <ContentCopy :size="20" />
36
+ </template>
37
+ {{ copyLabel }}
38
+ </NcActionButton>
39
+
40
+ <!-- Built-in: Delete -->
41
+ <NcActionButton
42
+ v-if="showDelete"
43
+ @click="$emit('mass-delete')">
44
+ <template #icon>
45
+ <TrashCanOutline :size="20" />
46
+ </template>
47
+ {{ deleteLabel }}
48
+ </NcActionButton>
49
+
50
+ <!-- Custom actions slot -->
51
+ <slot name="actions" :count="count" :selected-ids="selectedIds" />
52
+ </NcActions>
53
+ </template>
54
+
55
+ <script>
56
+ import { NcActions, NcActionButton } from '@nextcloud/vue'
57
+ import TuneVariant from 'vue-material-design-icons/TuneVariant.vue'
58
+ import ContentCopy from 'vue-material-design-icons/ContentCopy.vue'
59
+ import TrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'
60
+ import Import from 'vue-material-design-icons/Import.vue'
61
+ import Export from 'vue-material-design-icons/Export.vue'
62
+
63
+ /**
64
+ * CnMassActionBar — Mass action dropdown button for selected items.
65
+ *
66
+ * Renders as a single "Mass Actions (N)" dropdown button with built-in
67
+ * Import, Export, Copy, and Delete actions plus a slot for custom actions.
68
+ * Place this in the header/action bar of your index page.
69
+ *
70
+ * ## Adding Custom Mass Actions
71
+ *
72
+ * Use the `#actions` scoped slot to add app-specific mass actions.
73
+ * Slot content should use `NcActionButton` components:
74
+ *
75
+ * ```vue
76
+ * <CnMassActionBar :selected-ids="selectedIds" :count="selectedIds.length">
77
+ * <template #actions="{ count, selectedIds }">
78
+ * <NcActionButton @click="migrateSelected(selectedIds)">
79
+ * <template #icon><SwapHorizontal :size="20" /></template>
80
+ * Migrate
81
+ * </NcActionButton>
82
+ * <NcActionButton @click="publishSelected(selectedIds)">
83
+ * <template #icon><Publish :size="20" /></template>
84
+ * Publish
85
+ * </NcActionButton>
86
+ * </template>
87
+ * </CnMassActionBar>
88
+ * ```
89
+ *
90
+ * @example Basic usage
91
+ * <CnMassActionBar
92
+ * :selected-ids="selectedIds"
93
+ * :count="selectedIds.length"
94
+ * @mass-copy="openCopyDialog"
95
+ * @mass-delete="openDeleteDialog"
96
+ * @mass-import="openImportDialog"
97
+ * @mass-export="openExportDialog" />
98
+ */
99
+ export default {
100
+ name: 'CnMassActionBar',
101
+
102
+ components: {
103
+ NcActions,
104
+ NcActionButton,
105
+ TuneVariant,
106
+ ContentCopy,
107
+ TrashCanOutline,
108
+ Import,
109
+ Export,
110
+ },
111
+
112
+ props: {
113
+ /** Array of selected item IDs */
114
+ selectedIds: {
115
+ type: Array,
116
+ default: () => [],
117
+ },
118
+ /** Number of selected items */
119
+ count: {
120
+ type: Number,
121
+ default: 0,
122
+ },
123
+ /** Whether to show the built-in Import action */
124
+ showImport: {
125
+ type: Boolean,
126
+ default: true,
127
+ },
128
+ /** Whether to show the built-in Export action */
129
+ showExport: {
130
+ type: Boolean,
131
+ default: true,
132
+ },
133
+ /** Whether to show the built-in Copy action */
134
+ showCopy: {
135
+ type: Boolean,
136
+ default: true,
137
+ },
138
+ /** Whether to show the built-in Delete action */
139
+ showDelete: {
140
+ type: Boolean,
141
+ default: true,
142
+ },
143
+ /** Label template for the menu button. Use {count} for the count. */
144
+ menuLabelTemplate: {
145
+ type: String,
146
+ default: 'Mass Actions ({count})',
147
+ },
148
+ importLabel: { type: String, default: 'Import' },
149
+ exportLabel: { type: String, default: 'Export' },
150
+ copyLabel: { type: String, default: 'Copy' },
151
+ deleteLabel: { type: String, default: 'Delete' },
152
+ },
153
+
154
+ computed: {
155
+ menuLabel() {
156
+ return this.menuLabelTemplate.replace('{count}', String(this.count))
157
+ },
158
+ },
159
+ }
160
+ </script>