@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,77 +1,77 @@
1
- <template>
2
- <div class="cn-card">
3
- <div class="cn-card-header">
4
- <h3>
5
- <slot name="icon" />
6
- {{ title }}
7
- </h3>
8
- <div class="cn-card-header__actions">
9
- <slot name="actions" />
10
- </div>
11
- </div>
12
-
13
- <!-- Status badges -->
14
- <div v-if="$slots.status" class="cn-config-card__status">
15
- <slot name="status" />
16
- </div>
17
-
18
- <!-- Main content -->
19
- <div class="cn-config-card__content">
20
- <slot />
21
- </div>
22
-
23
- <!-- Footer -->
24
- <div v-if="$slots.footer" class="cn-config-card__footer">
25
- <slot name="footer" />
26
- </div>
27
- </div>
28
- </template>
29
-
30
- <script>
31
- /**
32
- * CnConfigurationCard — Configuration card with title, actions, status, and content.
33
- *
34
- * Decoupled from OpenRegister's ConfigurationCard. All data is provided via
35
- * props and slots — no store dependencies. Consumer wraps this and handles
36
- * navigation/store logic.
37
- *
38
- * @example
39
- * <CnConfigurationCard title="Database Configuration">
40
- * <template #actions>
41
- * <NcActions><NcActionButton @click="edit">Edit</NcActionButton></NcActions>
42
- * </template>
43
- * <template #status>
44
- * <CnStatusBadge label="Connected" variant="success" />
45
- * </template>
46
- * <p>PostgreSQL 15.2 on localhost:5432</p>
47
- * </CnConfigurationCard>
48
- */
49
- export default {
50
- name: 'CnConfigurationCard',
51
-
52
- props: {
53
- /** Card title */
54
- title: {
55
- type: String,
56
- default: '',
57
- },
58
- },
59
- }
60
- </script>
61
-
62
- <style scoped>
63
- .cn-config-card__status {
64
- display: flex;
65
- gap: 8px;
66
- margin-bottom: 12px;
67
- }
68
-
69
- .cn-config-card__content {
70
- margin-bottom: 8px;
71
- }
72
-
73
- .cn-config-card__footer {
74
- padding-top: 12px;
75
- border-top: 1px solid var(--color-border);
76
- }
77
- </style>
1
+ <template>
2
+ <div class="cn-card">
3
+ <div class="cn-card-header">
4
+ <h3>
5
+ <slot name="icon" />
6
+ {{ title }}
7
+ </h3>
8
+ <div class="cn-card-header__actions">
9
+ <slot name="actions" />
10
+ </div>
11
+ </div>
12
+
13
+ <!-- Status badges -->
14
+ <div v-if="$slots.status" class="cn-config-card__status">
15
+ <slot name="status" />
16
+ </div>
17
+
18
+ <!-- Main content -->
19
+ <div class="cn-config-card__content">
20
+ <slot />
21
+ </div>
22
+
23
+ <!-- Footer -->
24
+ <div v-if="$slots.footer" class="cn-config-card__footer">
25
+ <slot name="footer" />
26
+ </div>
27
+ </div>
28
+ </template>
29
+
30
+ <script>
31
+ /**
32
+ * CnConfigurationCard — Configuration card with title, actions, status, and content.
33
+ *
34
+ * Decoupled from OpenRegister's ConfigurationCard. All data is provided via
35
+ * props and slots — no store dependencies. Consumer wraps this and handles
36
+ * navigation/store logic.
37
+ *
38
+ * @example
39
+ * <CnConfigurationCard title="Database Configuration">
40
+ * <template #actions>
41
+ * <NcActions><NcActionButton @click="edit">Edit</NcActionButton></NcActions>
42
+ * </template>
43
+ * <template #status>
44
+ * <CnStatusBadge label="Connected" variant="success" />
45
+ * </template>
46
+ * <p>PostgreSQL 15.2 on localhost:5432</p>
47
+ * </CnConfigurationCard>
48
+ */
49
+ export default {
50
+ name: 'CnConfigurationCard',
51
+
52
+ props: {
53
+ /** Card title */
54
+ title: {
55
+ type: String,
56
+ default: '',
57
+ },
58
+ },
59
+ }
60
+ </script>
61
+
62
+ <style scoped>
63
+ .cn-config-card__status {
64
+ display: flex;
65
+ gap: 8px;
66
+ margin-bottom: 12px;
67
+ }
68
+
69
+ .cn-config-card__content {
70
+ margin-bottom: 8px;
71
+ }
72
+
73
+ .cn-config-card__footer {
74
+ padding-top: 12px;
75
+ border-top: 1px solid var(--color-border);
76
+ }
77
+ </style>
@@ -1,142 +1,142 @@
1
- <template>
2
- <NcActions
3
- :open.sync="internalOpen"
4
- :manual-open="true"
5
- :force-menu="true"
6
- class="cn-context-menu"
7
- container="body"
8
- @close="onClose">
9
- <!-- Dynamic actions from array prop -->
10
- <NcActionButton
11
- v-for="action in actions"
12
- :key="action.label"
13
- :disabled="resolveDisabled(action)"
14
- :class="{ 'cn-row-action--destructive': action.destructive }"
15
- close-after-click
16
- @click="onAction(action)">
17
- <template v-if="action.icon" #icon>
18
- <component :is="action.icon" :size="20" />
19
- </template>
20
- {{ action.label }}
21
- </NcActionButton>
22
-
23
- <!-- Custom content slot (for hardcoded buttons) -->
24
- <slot />
25
- </NcActions>
26
- </template>
27
-
28
- <script>
29
- import { NcActions, NcActionButton } from '@nextcloud/vue'
30
-
31
- /**
32
- * CnContextMenu — Right-click context menu wrapper around NcActions.
33
- *
34
- * Provides a pre-configured NcActions instance that positions itself at the
35
- * cursor via the `useContextMenu` composable's CSS custom properties. Accepts
36
- * an `actions` array for the common dynamic case (like CnRowActions), and a
37
- * default slot for hardcoded NcActionButton content.
38
- *
39
- * Pair with `useContextMenu()` for state management (open/close, target item,
40
- * cursor positioning). The composable handles the DOM attributes; this component
41
- * handles the NcActions template boilerplate.
42
- *
43
- * @example Dynamic actions (CnIndexPage pattern)
44
- * <CnContextMenu
45
- * :open.sync="contextMenuOpen"
46
- * :actions="mergedActions"
47
- * :target-item="contextMenuRow"
48
- * @action="$emit('action', $event)"
49
- * @close="closeContextMenu" />
50
- *
51
- * @example Custom buttons via slot (Doriath pattern)
52
- * <CnContextMenu
53
- * :open.sync="contextMenuOpen"
54
- * @close="closeContextMenu">
55
- * <NcActionButton close-after-click @click="onRename">
56
- * <template #icon><PencilIcon :size="20" /></template>
57
- * Rename
58
- * </NcActionButton>
59
- * </CnContextMenu>
60
- */
61
- export default {
62
- name: 'CnContextMenu',
63
-
64
- components: {
65
- NcActions,
66
- NcActionButton,
67
- },
68
-
69
- props: {
70
- /**
71
- * Whether the context menu is open. Use with `.sync` modifier.
72
- * Bind to `useContextMenu().isOpen`.
73
- */
74
- open: {
75
- type: Boolean,
76
- default: false,
77
- },
78
- /**
79
- * Action definitions rendered as NcActionButton items.
80
- * Same format as CnRowActions: `{ label, icon?, handler?, disabled?, destructive? }`.
81
- * When empty, only the default slot content is rendered.
82
- * @type {Array<{label: string, icon?: Component, handler?: Function, disabled?: boolean | Function, destructive?: boolean}>}
83
- */
84
- actions: {
85
- type: Array,
86
- default: () => [],
87
- },
88
- /**
89
- * The right-clicked item (row, folder, etc.). Passed to action `handler`
90
- * and `disabled` callbacks, and included in the `action` event payload.
91
- * Bind to `useContextMenu().targetItem`.
92
- */
93
- targetItem: {
94
- type: [Object, String, Number],
95
- default: null,
96
- },
97
- },
98
-
99
- data() {
100
- return {
101
- internalOpen: this.open,
102
- }
103
- },
104
-
105
- watch: {
106
- open(val) {
107
- this.internalOpen = val
108
- },
109
- internalOpen(val) {
110
- this.$emit('update:open', val)
111
- },
112
- },
113
-
114
- methods: {
115
- resolveDisabled(action) {
116
- if (typeof action.disabled === 'function') {
117
- return action.disabled(this.targetItem)
118
- }
119
- return !!action.disabled
120
- },
121
-
122
- onAction(action) {
123
- if (action.handler && typeof action.handler === 'function') {
124
- action.handler(this.targetItem)
125
- }
126
- this.$emit('action', { action: action.label, row: this.targetItem })
127
- },
128
-
129
- onClose() {
130
- this.internalOpen = false
131
- this.$emit('close')
132
- },
133
- },
134
- }
135
- </script>
136
-
137
- <style scoped>
138
- .cn-context-menu {
139
- /* Hide the NcActions trigger button — menu opens only via right-click */
140
- display: none;
141
- }
142
- </style>
1
+ <template>
2
+ <NcActions
3
+ :open.sync="internalOpen"
4
+ :manual-open="true"
5
+ :force-menu="true"
6
+ class="cn-context-menu"
7
+ container="body"
8
+ @close="onClose">
9
+ <!-- Dynamic actions from array prop -->
10
+ <NcActionButton
11
+ v-for="action in actions"
12
+ :key="action.label"
13
+ :disabled="resolveDisabled(action)"
14
+ :class="{ 'cn-row-action--destructive': action.destructive }"
15
+ close-after-click
16
+ @click="onAction(action)">
17
+ <template v-if="action.icon" #icon>
18
+ <component :is="action.icon" :size="20" />
19
+ </template>
20
+ {{ action.label }}
21
+ </NcActionButton>
22
+
23
+ <!-- Custom content slot (for hardcoded buttons) -->
24
+ <slot />
25
+ </NcActions>
26
+ </template>
27
+
28
+ <script>
29
+ import { NcActions, NcActionButton } from '@nextcloud/vue'
30
+
31
+ /**
32
+ * CnContextMenu — Right-click context menu wrapper around NcActions.
33
+ *
34
+ * Provides a pre-configured NcActions instance that positions itself at the
35
+ * cursor via the `useContextMenu` composable's CSS custom properties. Accepts
36
+ * an `actions` array for the common dynamic case (like CnRowActions), and a
37
+ * default slot for hardcoded NcActionButton content.
38
+ *
39
+ * Pair with `useContextMenu()` for state management (open/close, target item,
40
+ * cursor positioning). The composable handles the DOM attributes; this component
41
+ * handles the NcActions template boilerplate.
42
+ *
43
+ * @example Dynamic actions (CnIndexPage pattern)
44
+ * <CnContextMenu
45
+ * :open.sync="contextMenuOpen"
46
+ * :actions="mergedActions"
47
+ * :target-item="contextMenuRow"
48
+ * @action="$emit('action', $event)"
49
+ * @close="closeContextMenu" />
50
+ *
51
+ * @example Custom buttons via slot (Doriath pattern)
52
+ * <CnContextMenu
53
+ * :open.sync="contextMenuOpen"
54
+ * @close="closeContextMenu">
55
+ * <NcActionButton close-after-click @click="onRename">
56
+ * <template #icon><PencilIcon :size="20" /></template>
57
+ * Rename
58
+ * </NcActionButton>
59
+ * </CnContextMenu>
60
+ */
61
+ export default {
62
+ name: 'CnContextMenu',
63
+
64
+ components: {
65
+ NcActions,
66
+ NcActionButton,
67
+ },
68
+
69
+ props: {
70
+ /**
71
+ * Whether the context menu is open. Use with `.sync` modifier.
72
+ * Bind to `useContextMenu().isOpen`.
73
+ */
74
+ open: {
75
+ type: Boolean,
76
+ default: false,
77
+ },
78
+ /**
79
+ * Action definitions rendered as NcActionButton items.
80
+ * Same format as CnRowActions: `{ label, icon?, handler?, disabled?, destructive? }`.
81
+ * When empty, only the default slot content is rendered.
82
+ * @type {Array<{label: string, icon?: Component, handler?: Function, disabled?: boolean | Function, destructive?: boolean}>}
83
+ */
84
+ actions: {
85
+ type: Array,
86
+ default: () => [],
87
+ },
88
+ /**
89
+ * The right-clicked item (row, folder, etc.). Passed to action `handler`
90
+ * and `disabled` callbacks, and included in the `action` event payload.
91
+ * Bind to `useContextMenu().targetItem`.
92
+ */
93
+ targetItem: {
94
+ type: [Object, String, Number],
95
+ default: null,
96
+ },
97
+ },
98
+
99
+ data() {
100
+ return {
101
+ internalOpen: this.open,
102
+ }
103
+ },
104
+
105
+ watch: {
106
+ open(val) {
107
+ this.internalOpen = val
108
+ },
109
+ internalOpen(val) {
110
+ this.$emit('update:open', val)
111
+ },
112
+ },
113
+
114
+ methods: {
115
+ resolveDisabled(action) {
116
+ if (typeof action.disabled === 'function') {
117
+ return action.disabled(this.targetItem)
118
+ }
119
+ return !!action.disabled
120
+ },
121
+
122
+ onAction(action) {
123
+ if (action.handler && typeof action.handler === 'function') {
124
+ action.handler(this.targetItem)
125
+ }
126
+ this.$emit('action', { action: action.label, row: this.targetItem })
127
+ },
128
+
129
+ onClose() {
130
+ this.internalOpen = false
131
+ this.$emit('close')
132
+ },
133
+ },
134
+ }
135
+ </script>
136
+
137
+ <style scoped>
138
+ .cn-context-menu {
139
+ /* Hide the NcActions trigger button — menu opens only via right-click */
140
+ display: none;
141
+ }
142
+ </style>