@conduction/nextcloud-vue 0.1.0-beta.1 → 0.1.0-beta.10
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/README.md +226 -0
- package/css/index.css +5 -0
- package/dist/nextcloud-vue.cjs +67614 -0
- package/dist/nextcloud-vue.cjs.js +76311 -5905
- package/dist/nextcloud-vue.cjs.js.map +1 -1
- package/dist/nextcloud-vue.cjs.map +1 -0
- package/dist/nextcloud-vue.css +3279 -203
- package/dist/nextcloud-vue.esm.js +76240 -5882
- package/dist/nextcloud-vue.esm.js.map +1 -1
- package/package.json +89 -63
- package/src/components/CnActionsBar/CnActionsBar.vue +254 -0
- package/src/components/CnActionsBar/index.js +1 -0
- package/src/components/CnAdvancedFormDialog/CnAdvancedFormDialog.vue +569 -0
- package/src/components/CnAdvancedFormDialog/CnDataTab.vue +217 -0
- package/src/components/CnAdvancedFormDialog/CnMetadataTab.vue +121 -0
- package/src/components/CnAdvancedFormDialog/CnPropertiesTab.vue +422 -0
- package/src/components/CnAdvancedFormDialog/CnPropertyValueCell.vue +247 -0
- package/src/components/CnAdvancedFormDialog/index.js +1 -0
- package/src/components/CnCard/CnCard.vue +415 -0
- package/src/components/CnCard/index.js +1 -0
- package/src/components/CnCardGrid/CnCardGrid.vue +23 -20
- package/src/components/CnCardGrid/index.js +1 -1
- package/src/components/CnCellRenderer/index.js +1 -1
- package/src/components/CnChartWidget/CnChartWidget.vue +318 -0
- package/src/components/CnChartWidget/index.js +1 -0
- package/src/components/CnConfigurationCard/index.js +1 -1
- package/src/components/CnContextMenu/CnContextMenu.vue +142 -0
- package/src/components/CnContextMenu/index.js +1 -0
- package/src/components/CnCopyDialog/CnCopyDialog.vue +257 -0
- package/src/components/CnCopyDialog/index.js +1 -0
- package/src/components/CnDashboardGrid/CnDashboardGrid.vue +229 -0
- package/src/components/CnDashboardGrid/index.js +1 -0
- package/src/components/CnDashboardPage/CnDashboardPage.vue +396 -0
- package/src/components/CnDashboardPage/index.js +1 -0
- package/src/components/CnDataTable/CnDataTable.vue +24 -16
- package/src/components/CnDataTable/index.js +1 -1
- package/src/components/CnDeleteDialog/CnDeleteDialog.vue +177 -0
- package/src/components/CnDeleteDialog/index.js +1 -0
- package/src/components/CnDetailCard/CnDetailCard.vue +225 -0
- package/src/components/CnDetailCard/index.js +1 -0
- package/src/components/CnDetailGrid/CnDetailGrid.vue +254 -0
- package/src/components/CnDetailGrid/index.js +1 -0
- package/src/components/CnDetailPage/CnDetailPage.vue +431 -0
- package/src/components/CnDetailPage/index.js +1 -0
- package/src/components/CnFacetSidebar/CnFacetSidebar.vue +12 -2
- package/src/components/CnFacetSidebar/index.js +1 -1
- package/src/components/CnFilterBar/index.js +1 -1
- package/src/components/CnFormDialog/CnFormDialog.vue +934 -0
- package/src/components/CnFormDialog/index.js +1 -0
- package/src/components/CnIcon/CnIcon.vue +89 -0
- package/src/components/CnIcon/index.js +1 -0
- package/src/components/CnIndexPage/CnIndexPage.vue +589 -291
- package/src/components/CnIndexPage/index.js +1 -1
- package/src/components/CnIndexSidebar/CnIndexSidebar.vue +535 -0
- package/src/components/CnIndexSidebar/index.js +1 -0
- package/src/components/CnInfoWidget/CnInfoWidget.vue +219 -0
- package/src/components/CnInfoWidget/index.js +1 -0
- package/src/components/CnItemCard/CnItemCard.vue +134 -0
- package/src/components/CnItemCard/index.js +1 -0
- package/src/components/CnJsonViewer/CnJsonViewer.vue +283 -0
- package/src/components/CnJsonViewer/index.js +1 -0
- package/src/components/CnKpiGrid/CnKpiGrid.vue +5 -1
- package/src/components/CnKpiGrid/index.js +1 -1
- package/src/components/CnMassActionBar/CnMassActionBar.vue +6 -5
- package/src/components/CnMassActionBar/index.js +1 -1
- package/src/components/CnMassCopyDialog/CnMassCopyDialog.vue +16 -9
- package/src/components/CnMassCopyDialog/index.js +1 -1
- package/src/components/CnMassDeleteDialog/CnMassDeleteDialog.vue +16 -9
- package/src/components/CnMassDeleteDialog/index.js +1 -1
- package/src/components/CnMassExportDialog/CnMassExportDialog.vue +8 -7
- package/src/components/CnMassExportDialog/index.js +1 -1
- package/src/components/CnMassImportDialog/CnMassImportDialog.vue +20 -17
- package/src/components/CnMassImportDialog/index.js +1 -1
- package/src/components/CnNoteCard/CnNoteCard.vue +149 -0
- package/src/components/CnNoteCard/index.js +1 -0
- package/src/components/CnNotesCard/CnNotesCard.vue +415 -0
- package/src/components/CnNotesCard/index.js +1 -0
- package/src/components/CnObjectCard/CnObjectCard.vue +3 -1
- package/src/components/CnObjectCard/index.js +1 -1
- package/src/components/CnObjectDataWidget/CnObjectDataWidget.vue +853 -0
- package/src/components/CnObjectDataWidget/index.js +1 -0
- package/src/components/CnObjectMetadataWidget/CnObjectMetadataWidget.vue +288 -0
- package/src/components/CnObjectMetadataWidget/index.js +1 -0
- package/src/components/CnObjectSidebar/CnAuditTrailTab.vue +368 -0
- package/src/components/CnObjectSidebar/CnFilesTab.vue +286 -0
- package/src/components/CnObjectSidebar/CnNotesTab.vue +249 -0
- package/src/components/CnObjectSidebar/CnObjectSidebar.vue +254 -0
- package/src/components/CnObjectSidebar/CnTagsTab.vue +258 -0
- package/src/components/CnObjectSidebar/CnTasksTab.vue +482 -0
- package/src/components/CnObjectSidebar/index.js +6 -0
- package/src/components/CnPageHeader/CnPageHeader.vue +61 -0
- package/src/components/CnPageHeader/index.js +1 -0
- package/src/components/CnPagination/CnPagination.vue +7 -6
- package/src/components/CnPagination/index.js +1 -1
- package/src/components/CnProgressBar/CnProgressBar.vue +262 -0
- package/src/components/CnProgressBar/index.js +1 -0
- package/src/components/CnRegisterMapping/CnRegisterMapping.vue +792 -0
- package/src/components/CnRegisterMapping/index.js +1 -0
- package/src/components/CnRowActions/CnRowActions.vue +25 -3
- package/src/components/CnRowActions/index.js +1 -1
- package/src/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue +226 -0
- package/src/components/CnSchemaFormDialog/CnSchemaFormDialog.vue +787 -0
- package/src/components/CnSchemaFormDialog/CnSchemaPropertiesTab.vue +305 -0
- package/src/components/CnSchemaFormDialog/CnSchemaPropertyActions.vue +1398 -0
- package/src/components/CnSchemaFormDialog/CnSchemaSecurityTab.vue +236 -0
- package/src/components/CnSchemaFormDialog/index.js +1 -0
- package/src/components/CnSettingsCard/index.js +1 -1
- package/src/components/CnSettingsSection/index.js +1 -1
- package/src/components/CnStatsBlock/CnStatsBlock.vue +89 -19
- package/src/components/CnStatsBlock/index.js +1 -1
- package/src/components/CnStatsPanel/CnStatsPanel.vue +320 -0
- package/src/components/CnStatsPanel/index.js +1 -0
- package/src/components/CnStatusBadge/CnStatusBadge.vue +15 -2
- package/src/components/CnStatusBadge/index.js +1 -1
- package/src/components/CnTabbedFormDialog/CnTabbedFormDialog.vue +544 -0
- package/src/components/CnTabbedFormDialog/index.js +1 -0
- package/src/components/CnTableWidget/CnTableWidget.vue +332 -0
- package/src/components/CnTableWidget/index.js +1 -0
- package/src/components/CnTasksCard/CnTasksCard.vue +373 -0
- package/src/components/CnTasksCard/index.js +1 -0
- package/src/components/CnTileWidget/CnTileWidget.vue +159 -0
- package/src/components/CnTileWidget/index.js +1 -0
- package/src/components/CnTimelineStages/CnTimelineStages.vue +292 -0
- package/src/components/CnTimelineStages/index.js +1 -0
- package/src/components/CnUserActionMenu/CnUserActionMenu.vue +435 -0
- package/src/components/CnUserActionMenu/index.js +1 -0
- package/src/components/CnVersionInfoCard/index.js +1 -1
- package/src/components/CnWidgetRenderer/CnWidgetRenderer.vue +180 -0
- package/src/components/CnWidgetRenderer/index.js +1 -0
- package/src/components/CnWidgetWrapper/CnWidgetWrapper.vue +246 -0
- package/src/components/CnWidgetWrapper/index.js +1 -0
- package/src/components/index.js +57 -25
- package/src/composables/index.js +5 -3
- package/src/composables/useContextMenu.js +126 -0
- package/src/composables/useDashboardView.js +286 -0
- package/src/composables/useDetailView.js +290 -132
- package/src/composables/useListView.js +364 -153
- package/src/composables/useSubResource.js +142 -142
- package/src/constants/metadata.js +30 -0
- package/src/css/CnSchemaFormDialog.css +546 -0
- package/src/css/__sample_nextcloud_tokens.css +110 -0
- package/src/css/actions-bar.css +54 -0
- package/src/css/badge.css +83 -51
- package/src/css/card.css +129 -128
- package/src/css/context-menu.css +20 -0
- package/src/css/dashboard.css +70 -0
- package/src/css/detail-page.css +235 -0
- package/src/css/detail.css +68 -68
- package/src/css/index-page.css +44 -0
- package/src/css/index-sidebar.css +193 -0
- package/src/css/index.css +17 -8
- package/src/css/layout.css +90 -90
- package/src/css/page-header.css +35 -0
- package/src/css/pagination.css +72 -72
- package/src/css/table.css +142 -143
- package/src/css/timeline-stages.css +220 -0
- package/src/css/utilities.css +46 -46
- package/src/index.js +91 -50
- package/src/mixins/gridLayout.js +118 -0
- package/src/store/createCrudStore.js +360 -0
- package/src/store/createSubResourcePlugin.js +125 -135
- package/src/store/index.js +4 -3
- package/src/store/plugins/auditTrails.js +357 -17
- package/src/store/plugins/files.js +250 -186
- package/src/store/plugins/index.js +7 -4
- package/src/store/plugins/lifecycle.js +180 -180
- package/src/store/plugins/registerMapping.js +195 -0
- package/src/store/plugins/relations.js +68 -68
- package/src/store/plugins/search.js +385 -0
- package/src/store/plugins/selection.js +104 -0
- package/src/store/useObjectStore.js +823 -625
- package/src/types/auditTrail.d.ts +32 -32
- package/src/types/file.d.ts +23 -23
- package/src/types/index.d.ts +35 -35
- package/src/types/notification.d.ts +36 -36
- package/src/types/object.d.ts +40 -40
- package/src/types/organisation.d.ts +41 -41
- package/src/types/register.d.ts +25 -25
- package/src/types/schema.d.ts +39 -39
- package/src/types/shared.d.ts +79 -79
- package/src/types/source.d.ts +14 -14
- package/src/types/task.d.ts +31 -31
- package/src/utils/errors.js +96 -96
- package/src/utils/getTheme.js +9 -0
- package/src/utils/headers.js +80 -44
- package/src/utils/id.js +13 -0
- package/src/utils/index.js +4 -3
- package/src/utils/schema.js +422 -287
- package/src/utils/widgetVisibility.js +162 -0
- package/src/components/CnDetailViewLayout/CnDetailViewLayout.vue +0 -88
- package/src/components/CnDetailViewLayout/index.js +0 -1
- package/src/components/CnEmptyState/CnEmptyState.vue +0 -78
- package/src/components/CnEmptyState/index.js +0 -1
- package/src/components/CnListViewLayout/CnListViewLayout.vue +0 -80
- package/src/components/CnListViewLayout/index.js +0 -1
- package/src/components/CnViewModeToggle/CnViewModeToggle.vue +0 -77
- package/src/components/CnViewModeToggle/index.js +0 -1
package/src/css/badge.css
CHANGED
|
@@ -1,51 +1,83 @@
|
|
|
1
|
-
/* ========================================
|
|
2
|
-
@conduction/nextcloud-vue — Status Badge
|
|
3
|
-
======================================== */
|
|
4
|
-
|
|
5
|
-
.cn-status-badge {
|
|
6
|
-
display: inline-flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
font-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
color: var(--color-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
color: var(--
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
color: var(--color-success);
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
color: var(--color-warning-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
color: var(--color-error);
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
color: var(--color-info,
|
|
51
|
-
|
|
1
|
+
/* ========================================
|
|
2
|
+
@conduction/nextcloud-vue — Status Badge
|
|
3
|
+
======================================== */
|
|
4
|
+
|
|
5
|
+
.cn-status-badge {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: calc(0.5 * var(--default-grid-baseline));
|
|
9
|
+
padding: calc(0.5 * var(--default-grid-baseline)) calc(2.5 * var(--default-grid-baseline));
|
|
10
|
+
border-radius: var(--border-radius-pill);
|
|
11
|
+
font-size: 0.85em;
|
|
12
|
+
font-weight: 500;
|
|
13
|
+
line-height: 1.4;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Size variants */
|
|
18
|
+
.cn-status-badge--small {
|
|
19
|
+
padding: calc(0.25 * var(--default-grid-baseline)) calc(2 * var(--default-grid-baseline));
|
|
20
|
+
font-size: 0.75em;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Color variants */
|
|
24
|
+
.cn-status-badge--default {
|
|
25
|
+
background-color: var(--color-background-dark);
|
|
26
|
+
color: var(--color-main-text);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.cn-status-badge--primary {
|
|
30
|
+
background-color: var(--color-primary-element-light);
|
|
31
|
+
color: var(--color-primary-element);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cn-status-badge--success {
|
|
35
|
+
background-color: var(--color-success-light, rgba(70, 186, 97, 0.15));
|
|
36
|
+
color: var(--color-success);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.cn-status-badge--warning {
|
|
40
|
+
background-color: var(--color-warning-light, rgba(232, 163, 39, 0.15));
|
|
41
|
+
color: var(--color-warning-text, var(--color-warning));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.cn-status-badge--error {
|
|
45
|
+
background-color: var(--color-error-light, rgba(224, 68, 68, 0.15));
|
|
46
|
+
color: var(--color-error);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.cn-status-badge--info {
|
|
50
|
+
background-color: var(--color-info-light, rgba(0, 130, 201, 0.15));
|
|
51
|
+
color: var(--color-info, #0082c9);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Solid variants — solid background with white text for use on colored backgrounds */
|
|
55
|
+
.cn-status-badge--solid.cn-status-badge--default {
|
|
56
|
+
background-color: var(--color-background-dark);
|
|
57
|
+
color: var(--color-main-text);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.cn-status-badge--solid.cn-status-badge--primary {
|
|
61
|
+
background-color: var(--color-primary-element);
|
|
62
|
+
color: white;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.cn-status-badge--solid.cn-status-badge--success {
|
|
66
|
+
background-color: var(--color-success);
|
|
67
|
+
color: white;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.cn-status-badge--solid.cn-status-badge--warning {
|
|
71
|
+
background-color: var(--color-warning);
|
|
72
|
+
color: var(--color-primary-text);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.cn-status-badge--solid.cn-status-badge--error {
|
|
76
|
+
background-color: var(--color-error);
|
|
77
|
+
color: white;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.cn-status-badge--solid.cn-status-badge--info {
|
|
81
|
+
background-color: var(--color-info, #0082c9);
|
|
82
|
+
color: white;
|
|
83
|
+
}
|
package/src/css/card.css
CHANGED
|
@@ -1,128 +1,129 @@
|
|
|
1
|
-
/* ========================================
|
|
2
|
-
@conduction/nextcloud-vue — Card Styles
|
|
3
|
-
======================================== */
|
|
4
|
-
|
|
5
|
-
/* Card Grid */
|
|
6
|
-
.cn-card-grid {
|
|
7
|
-
display: grid;
|
|
8
|
-
gap:
|
|
9
|
-
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
.cn-card-header
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
.cn-card-header
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
font-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
font-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
.
|
|
123
|
-
.card
|
|
124
|
-
.
|
|
125
|
-
.
|
|
126
|
-
.
|
|
127
|
-
.
|
|
128
|
-
.
|
|
1
|
+
/* ========================================
|
|
2
|
+
@conduction/nextcloud-vue — Card Styles
|
|
3
|
+
======================================== */
|
|
4
|
+
|
|
5
|
+
/* Card Grid */
|
|
6
|
+
.cn-card-grid {
|
|
7
|
+
display: grid;
|
|
8
|
+
gap: calc(4 * var(--default-grid-baseline));
|
|
9
|
+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
10
|
+
padding: 0.25rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Base Card */
|
|
14
|
+
.cn-card {
|
|
15
|
+
background: var(--color-main-background);
|
|
16
|
+
border-radius: var(--border-radius-large);
|
|
17
|
+
padding: calc(5 * var(--default-grid-baseline));
|
|
18
|
+
box-shadow: 0 2px 8px var(--color-box-shadow);
|
|
19
|
+
min-height: 200px;
|
|
20
|
+
transition: transform var(--animation-quick) ease-in-out;
|
|
21
|
+
border: 1px solid var(--color-border);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.cn-card:hover {
|
|
25
|
+
transform: scale(1.01);
|
|
26
|
+
box-shadow: 0 4px 12px var(--color-box-shadow);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* Card Header */
|
|
30
|
+
.cn-card-header {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
gap: calc(2 * var(--default-grid-baseline));
|
|
35
|
+
margin-bottom: calc(3 * var(--default-grid-baseline));
|
|
36
|
+
padding-bottom: calc(2 * var(--default-grid-baseline));
|
|
37
|
+
border-bottom: 1px solid var(--color-border);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.cn-card-header h2,
|
|
41
|
+
.cn-card-header h3 {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: calc(2 * var(--default-grid-baseline));
|
|
45
|
+
margin: 0;
|
|
46
|
+
color: var(--color-main-text);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.cn-card-header h2 { font-size: 1.2em; }
|
|
50
|
+
.cn-card-header h3 { font-size: 1.1em; }
|
|
51
|
+
|
|
52
|
+
/* Settings Card */
|
|
53
|
+
.cn-settings-card {
|
|
54
|
+
background: var(--color-background-hover);
|
|
55
|
+
border-radius: var(--border-radius-large);
|
|
56
|
+
padding: calc(5 * var(--default-grid-baseline));
|
|
57
|
+
margin-bottom: calc(5 * var(--default-grid-baseline));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.cn-settings-card h4 {
|
|
61
|
+
margin: 0 0 calc(4 * var(--default-grid-baseline)) 0;
|
|
62
|
+
color: var(--color-main-text);
|
|
63
|
+
font-size: 16px;
|
|
64
|
+
font-weight: 600;
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
gap: calc(2 * var(--default-grid-baseline));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.cn-settings-card--collapsible h4 {
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
user-select: none;
|
|
73
|
+
display: flex;
|
|
74
|
+
justify-content: space-between;
|
|
75
|
+
align-items: center;
|
|
76
|
+
transition: color var(--animation-quick) ease;
|
|
77
|
+
margin-bottom: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.cn-settings-card--collapsible h4:hover {
|
|
81
|
+
color: var(--color-primary-element);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.cn-settings-card__chevron {
|
|
85
|
+
transition: transform var(--animation-slow) ease;
|
|
86
|
+
color: var(--color-text-maxcontrast);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.cn-settings-card--collapsible h4:hover .cn-settings-card__chevron {
|
|
90
|
+
color: var(--color-primary-element);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.cn-settings-card__content {
|
|
94
|
+
padding-top: calc(4 * var(--default-grid-baseline));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Stat Grid */
|
|
98
|
+
.cn-stat-grid {
|
|
99
|
+
display: grid;
|
|
100
|
+
grid-template-columns: repeat(2, 1fr);
|
|
101
|
+
gap: calc(3 * var(--default-grid-baseline));
|
|
102
|
+
margin-bottom: calc(4 * var(--default-grid-baseline));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.cn-stat-item {
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
gap: var(--default-grid-baseline);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.cn-stat-label {
|
|
112
|
+
color: var(--color-text-maxcontrast);
|
|
113
|
+
font-size: 0.9em;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.cn-stat-value {
|
|
117
|
+
font-size: 1.1em;
|
|
118
|
+
font-weight: 600;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* Backwards compatibility aliases */
|
|
122
|
+
.cardGrid { display: grid; gap: calc(4 * var(--default-grid-baseline)); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
|
|
123
|
+
.card { background: var(--color-main-background); border-radius: var(--border-radius-large); padding: calc(5 * var(--default-grid-baseline)); box-shadow: 0 2px 8px var(--color-box-shadow); min-height: 200px; transition: transform var(--animation-quick) ease-in-out; border: 1px solid var(--color-border); }
|
|
124
|
+
.card:hover { transform: scale(1.01); box-shadow: 0 4px 12px var(--color-box-shadow); }
|
|
125
|
+
.cardHeader { display: flex; align-items: center; justify-content: space-between; gap: calc(2 * var(--default-grid-baseline)); margin-bottom: calc(3 * var(--default-grid-baseline)); padding-bottom: calc(2 * var(--default-grid-baseline)); border-bottom: 1px solid var(--color-border); }
|
|
126
|
+
.statGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(3 * var(--default-grid-baseline)); margin-bottom: calc(4 * var(--default-grid-baseline)); }
|
|
127
|
+
.statItem { display: flex; flex-direction: column; gap: var(--default-grid-baseline); }
|
|
128
|
+
.statLabel { color: var(--color-text-maxcontrast); font-size: 0.9em; }
|
|
129
|
+
.statValue { font-size: 1.1em; font-weight: 600; }
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* useContextMenu — Position the context menu popper at cursor coordinates.
|
|
2
|
+
*
|
|
3
|
+
* Works with any NcActions that uses useContextMenu().
|
|
4
|
+
* The data attribute ensures transforms only apply when a context menu is active,
|
|
5
|
+
* avoiding interference with regular NcActions poppers.
|
|
6
|
+
*/
|
|
7
|
+
html[data-cn-ctx-menu] .v-popper__popper {
|
|
8
|
+
transform: translate3d(var(--cn-ctx-menu-x), var(--cn-ctx-menu-y), 0px) !important;
|
|
9
|
+
}
|
|
10
|
+
html[data-cn-ctx-menu] .v-popper__popper[data-popper-placement="top"] {
|
|
11
|
+
transform: translate3d(var(--cn-ctx-menu-x), calc(var(--cn-ctx-menu-y) - 50vh + 34px), 0px) !important;
|
|
12
|
+
}
|
|
13
|
+
html[data-cn-ctx-menu] .v-popper__popper .v-popper__arrow-container {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Destructive action styling (shared across all context menus) */
|
|
18
|
+
html[data-cn-ctx-menu] .cn-row-action--destructive {
|
|
19
|
+
color: var(--color-error) !important;
|
|
20
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* @conduction/nextcloud-vue — Dashboard component styles */
|
|
2
|
+
|
|
3
|
+
/* Dashboard page layout */
|
|
4
|
+
.cn-dashboard-page {
|
|
5
|
+
padding: 20px;
|
|
6
|
+
max-width: 1400px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Widget grid item borders for non-tile widgets */
|
|
10
|
+
.cn-dashboard-grid :deep(.grid-stack-item-content:has(.cn-widget-wrapper)) {
|
|
11
|
+
border: 1px solid var(--color-border);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Dashboard widget content area */
|
|
15
|
+
.cn-dashboard-widget-content {
|
|
16
|
+
padding: 16px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Dashboard KPI row inside grid */
|
|
20
|
+
.cn-dashboard-kpi-row {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: 12px;
|
|
24
|
+
padding: 16px;
|
|
25
|
+
height: 100%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Dashboard chart container */
|
|
29
|
+
.cn-dashboard-chart {
|
|
30
|
+
padding: 16px;
|
|
31
|
+
height: 100%;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.cn-dashboard-chart__title {
|
|
37
|
+
margin: 0 0 12px;
|
|
38
|
+
font-size: 15px;
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.cn-dashboard-chart__content {
|
|
43
|
+
flex: 1;
|
|
44
|
+
min-height: 0;
|
|
45
|
+
overflow: auto;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Dashboard list widget */
|
|
49
|
+
.cn-dashboard-list {
|
|
50
|
+
padding: 0;
|
|
51
|
+
margin: 0;
|
|
52
|
+
list-style: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.cn-dashboard-list__item {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
gap: 8px;
|
|
59
|
+
padding: 8px 16px;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
border-bottom: 1px solid var(--color-border-dark);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.cn-dashboard-list__item:last-child {
|
|
65
|
+
border-bottom: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.cn-dashboard-list__item:hover {
|
|
69
|
+
background: var(--color-background-hover);
|
|
70
|
+
}
|