@conduction/nextcloud-vue 0.1.0-beta.2 → 0.1.0-beta.4
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 -226
- package/css/index.css +5 -0
- package/dist/nextcloud-vue.cjs.js +60455 -8755
- package/dist/nextcloud-vue.cjs.js.map +1 -1
- package/dist/nextcloud-vue.css +2062 -528
- package/dist/nextcloud-vue.esm.js +60411 -8731
- package/dist/nextcloud-vue.esm.js.map +1 -1
- package/package.json +75 -61
- package/src/components/CnActionsBar/CnActionsBar.vue +235 -225
- package/src/components/CnActionsBar/index.js +1 -1
- package/src/components/CnAdvancedFormDialog/CnAdvancedFormDialog.vue +579 -0
- package/src/components/CnAdvancedFormDialog/CnDataTab.vue +217 -0
- package/src/components/CnAdvancedFormDialog/CnMetadataTab.vue +121 -0
- package/src/components/CnAdvancedFormDialog/CnPropertiesTab.vue +418 -0
- package/src/components/CnAdvancedFormDialog/CnPropertyValueCell.vue +247 -0
- package/src/components/CnAdvancedFormDialog/index.js +1 -0
- package/src/components/CnCardGrid/CnCardGrid.vue +152 -152
- package/src/components/CnCardGrid/index.js +1 -1
- package/src/components/CnCellRenderer/CnCellRenderer.vue +132 -132
- package/src/components/CnCellRenderer/index.js +1 -1
- package/src/components/CnChartWidget/CnChartWidget.vue +320 -0
- package/src/components/CnChartWidget/index.js +1 -0
- package/src/components/CnConfigurationCard/CnConfigurationCard.vue +77 -77
- package/src/components/CnConfigurationCard/index.js +1 -1
- package/src/components/CnDashboardGrid/CnDashboardGrid.vue +225 -0
- package/src/components/CnDashboardGrid/index.js +1 -0
- package/src/components/CnDashboardPage/CnDashboardPage.vue +390 -0
- package/src/components/CnDashboardPage/index.js +1 -0
- package/src/components/CnDataTable/CnDataTable.vue +349 -349
- package/src/components/CnDataTable/index.js +1 -1
- package/src/components/CnDetailCard/CnDetailCard.vue +214 -0
- package/src/components/CnDetailCard/index.js +1 -0
- package/src/components/CnDetailPage/CnDetailPage.vue +281 -0
- package/src/components/CnDetailPage/index.js +1 -0
- package/src/components/CnFacetSidebar/CnFacetSidebar.vue +231 -223
- package/src/components/CnFacetSidebar/index.js +1 -1
- package/src/components/CnFilterBar/CnFilterBar.vue +152 -152
- package/src/components/CnFilterBar/index.js +1 -1
- package/src/components/CnIcon/CnIcon.vue +89 -89
- package/src/components/CnIcon/index.js +1 -1
- package/src/components/CnIndexPage/CnIndexPage.vue +874 -816
- package/src/components/CnIndexPage/index.js +1 -1
- package/src/components/CnIndexSidebar/CnIndexSidebar.vue +503 -484
- package/src/components/CnIndexSidebar/index.js +1 -1
- package/src/components/CnItemCard/CnItemCard.vue +132 -0
- package/src/components/CnItemCard/index.js +1 -0
- package/src/components/CnKpiGrid/CnKpiGrid.vue +89 -89
- package/src/components/CnKpiGrid/index.js +1 -1
- package/src/components/CnMassActionBar/CnMassActionBar.vue +160 -160
- package/src/components/CnMassActionBar/index.js +1 -1
- package/src/components/CnMassCopyDialog/CnMassCopyDialog.vue +320 -320
- package/src/components/CnMassCopyDialog/index.js +1 -1
- package/src/components/CnMassDeleteDialog/CnMassDeleteDialog.vue +238 -238
- package/src/components/CnMassDeleteDialog/index.js +1 -1
- package/src/components/CnMassExportDialog/CnMassExportDialog.vue +190 -190
- package/src/components/CnMassExportDialog/index.js +1 -1
- package/src/components/CnMassImportDialog/CnMassImportDialog.vue +491 -491
- 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 +413 -0
- package/src/components/CnNotesCard/index.js +1 -0
- package/src/components/CnObjectCard/CnObjectCard.vue +292 -292
- package/src/components/CnObjectCard/index.js +1 -1
- package/src/components/CnObjectSidebar/CnObjectSidebar.vue +876 -0
- package/src/components/CnObjectSidebar/index.js +1 -0
- package/src/components/CnPageHeader/CnPageHeader.vue +57 -57
- package/src/components/CnPageHeader/index.js +1 -1
- package/src/components/CnPagination/CnPagination.vue +252 -252
- package/src/components/CnPagination/index.js +1 -1
- package/src/components/CnRowActions/CnRowActions.vue +73 -73
- 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/CnSettingsCard.vue +92 -92
- package/src/components/CnSettingsCard/index.js +1 -1
- package/src/components/CnSettingsSection/CnSettingsSection.vue +266 -266
- package/src/components/CnSettingsSection/index.js +1 -1
- package/src/components/CnStatsBlock/CnStatsBlock.vue +420 -366
- package/src/components/CnStatsBlock/index.js +1 -1
- package/src/components/CnStatusBadge/CnStatusBadge.vue +77 -77
- package/src/components/CnStatusBadge/index.js +1 -1
- package/src/components/CnTabbedFormDialog/CnTabbedFormDialog.vue +540 -0
- package/src/components/CnTabbedFormDialog/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/CnVersionInfoCard.vue +312 -312
- 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 +211 -0
- package/src/components/CnWidgetWrapper/index.js +1 -0
- package/src/components/index.js +43 -29
- package/src/composables/index.js +4 -3
- package/src/composables/useDashboardView.js +240 -0
- package/src/composables/useDetailView.js +289 -132
- package/src/composables/useListView.js +363 -153
- package/src/composables/useSubResource.js +142 -142
- package/src/constants/metadata.js +30 -30
- package/src/css/CnSchemaFormDialog.css +546 -0
- package/src/css/__sample_nextcloud_tokens.css +110 -0
- package/src/css/actions-bar.css +48 -48
- package/src/css/badge.css +51 -51
- package/src/css/card.css +128 -128
- package/src/css/dashboard.css +70 -0
- package/src/css/detail-page.css +168 -0
- package/src/css/detail.css +68 -68
- package/src/css/index-page.css +44 -32
- package/src/css/index-sidebar.css +193 -187
- package/src/css/index.css +16 -12
- package/src/css/layout.css +90 -90
- package/src/css/page-header.css +33 -33
- package/src/css/pagination.css +72 -72
- package/src/css/table.css +142 -142
- package/src/css/timeline-stages.css +218 -0
- package/src/css/utilities.css +46 -46
- package/src/index.js +72 -53
- package/src/store/createSubResourcePlugin.js +135 -135
- package/src/store/index.js +3 -3
- package/src/store/plugins/auditTrails.js +17 -17
- package/src/store/plugins/files.js +250 -186
- package/src/store/plugins/index.js +7 -5
- package/src/store/plugins/lifecycle.js +180 -180
- package/src/store/plugins/relations.js +68 -68
- package/src/store/plugins/search.js +372 -0
- package/src/store/plugins/selection.js +104 -0
- package/src/store/useObjectStore.js +829 -686
- 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/headers.js +68 -50
- package/src/utils/id.js +13 -0
- package/src/utils/index.js +3 -3
- package/src/utils/schema.js +422 -419
package/src/css/layout.css
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
/* ========================================
|
|
2
|
-
@conduction/nextcloud-vue — Layout & Filter Utility Styles
|
|
3
|
-
======================================== */
|
|
4
|
-
|
|
5
|
-
/* List View Layout */
|
|
6
|
-
.cn-list-layout {
|
|
7
|
-
padding: calc(5 * var(--default-grid-baseline));
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.cn-list-layout__header {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: space-between;
|
|
14
|
-
margin-bottom: calc(4 * var(--default-grid-baseline));
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.cn-list-layout__title {
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: baseline;
|
|
20
|
-
gap: calc(2 * var(--default-grid-baseline));
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.cn-list-layout__title h2 {
|
|
24
|
-
margin: 0;
|
|
25
|
-
font-size: 1.4em;
|
|
26
|
-
color: var(--color-main-text);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.cn-list-layout__title .cn-list-layout__count {
|
|
30
|
-
font-size: 0.85em;
|
|
31
|
-
color: var(--color-text-maxcontrast);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.cn-list-layout__actions {
|
|
35
|
-
display: flex;
|
|
36
|
-
gap: calc(2 * var(--default-grid-baseline));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/* Filter Bar */
|
|
40
|
-
.cn-filter-bar {
|
|
41
|
-
display: flex;
|
|
42
|
-
align-items: center;
|
|
43
|
-
gap: calc(3 * var(--default-grid-baseline));
|
|
44
|
-
margin-bottom: calc(4 * var(--default-grid-baseline));
|
|
45
|
-
flex-wrap: wrap;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.cn-filter-bar__search {
|
|
49
|
-
flex: 1;
|
|
50
|
-
min-width: 200px;
|
|
51
|
-
max-width: 400px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.cn-filter-bar__filters {
|
|
55
|
-
display: flex;
|
|
56
|
-
align-items: center;
|
|
57
|
-
gap: calc(2 * var(--default-grid-baseline));
|
|
58
|
-
flex-wrap: wrap;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.cn-filter-bar__filter {
|
|
62
|
-
min-width: 150px;
|
|
63
|
-
max-width: 200px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.cn-filter-bar__clear {
|
|
67
|
-
margin-left: auto;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/* Dashboard Content */
|
|
71
|
-
.cn-dashboard-content {
|
|
72
|
-
margin-inline: auto;
|
|
73
|
-
max-width: 1200px;
|
|
74
|
-
padding-block: calc(5 * var(--default-grid-baseline));
|
|
75
|
-
padding-inline: calc(5 * var(--default-grid-baseline));
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/* Loading Container */
|
|
79
|
-
.cn-loading-container {
|
|
80
|
-
display: flex;
|
|
81
|
-
align-items: center;
|
|
82
|
-
gap: calc(2 * var(--default-grid-baseline));
|
|
83
|
-
color: var(--color-text-maxcontrast);
|
|
84
|
-
justify-content: center;
|
|
85
|
-
padding-block: calc(10 * var(--default-grid-baseline));
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/* Backwards compatibility aliases */
|
|
89
|
-
.dashboardContent { margin-inline: auto; max-width: 1200px; padding-block: calc(5 * var(--default-grid-baseline)); padding-inline: calc(5 * var(--default-grid-baseline)); }
|
|
90
|
-
.loadingContainer { display: flex; align-items: center; gap: calc(2 * var(--default-grid-baseline)); color: var(--color-text-maxcontrast); justify-content: center; padding-block: calc(10 * var(--default-grid-baseline)); }
|
|
1
|
+
/* ========================================
|
|
2
|
+
@conduction/nextcloud-vue — Layout & Filter Utility Styles
|
|
3
|
+
======================================== */
|
|
4
|
+
|
|
5
|
+
/* List View Layout */
|
|
6
|
+
.cn-list-layout {
|
|
7
|
+
padding: calc(5 * var(--default-grid-baseline));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.cn-list-layout__header {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
margin-bottom: calc(4 * var(--default-grid-baseline));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.cn-list-layout__title {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: baseline;
|
|
20
|
+
gap: calc(2 * var(--default-grid-baseline));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.cn-list-layout__title h2 {
|
|
24
|
+
margin: 0;
|
|
25
|
+
font-size: 1.4em;
|
|
26
|
+
color: var(--color-main-text);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.cn-list-layout__title .cn-list-layout__count {
|
|
30
|
+
font-size: 0.85em;
|
|
31
|
+
color: var(--color-text-maxcontrast);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cn-list-layout__actions {
|
|
35
|
+
display: flex;
|
|
36
|
+
gap: calc(2 * var(--default-grid-baseline));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Filter Bar */
|
|
40
|
+
.cn-filter-bar {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: calc(3 * var(--default-grid-baseline));
|
|
44
|
+
margin-bottom: calc(4 * var(--default-grid-baseline));
|
|
45
|
+
flex-wrap: wrap;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.cn-filter-bar__search {
|
|
49
|
+
flex: 1;
|
|
50
|
+
min-width: 200px;
|
|
51
|
+
max-width: 400px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.cn-filter-bar__filters {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
gap: calc(2 * var(--default-grid-baseline));
|
|
58
|
+
flex-wrap: wrap;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.cn-filter-bar__filter {
|
|
62
|
+
min-width: 150px;
|
|
63
|
+
max-width: 200px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.cn-filter-bar__clear {
|
|
67
|
+
margin-left: auto;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Dashboard Content */
|
|
71
|
+
.cn-dashboard-content {
|
|
72
|
+
margin-inline: auto;
|
|
73
|
+
max-width: 1200px;
|
|
74
|
+
padding-block: calc(5 * var(--default-grid-baseline));
|
|
75
|
+
padding-inline: calc(5 * var(--default-grid-baseline));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* Loading Container */
|
|
79
|
+
.cn-loading-container {
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
gap: calc(2 * var(--default-grid-baseline));
|
|
83
|
+
color: var(--color-text-maxcontrast);
|
|
84
|
+
justify-content: center;
|
|
85
|
+
padding-block: calc(10 * var(--default-grid-baseline));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Backwards compatibility aliases */
|
|
89
|
+
.dashboardContent { margin-inline: auto; max-width: 1200px; padding-block: calc(5 * var(--default-grid-baseline)); padding-inline: calc(5 * var(--default-grid-baseline)); }
|
|
90
|
+
.loadingContainer { display: flex; align-items: center; gap: calc(2 * var(--default-grid-baseline)); color: var(--color-text-maxcontrast); justify-content: center; padding-block: calc(10 * var(--default-grid-baseline)); }
|
package/src/css/page-header.css
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
/* CnPageHeader — Reusable page header styles */
|
|
2
|
-
|
|
3
|
-
.cn-page-header {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: flex-start;
|
|
6
|
-
gap: calc(3 * var(--default-grid-baseline));
|
|
7
|
-
margin-bottom: calc(4 * var(--default-grid-baseline));
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.cn-page-header__icon {
|
|
11
|
-
flex-shrink: 0;
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
padding-top: var(--default-grid-baseline);
|
|
15
|
-
color: var(--color-primary);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.cn-page-header__text {
|
|
19
|
-
flex: 1;
|
|
20
|
-
min-width: 0;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.cn-page-header__title {
|
|
24
|
-
margin: 0 0 var(--default-grid-baseline) 0;
|
|
25
|
-
font-size: 2rem;
|
|
26
|
-
font-weight: 300;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.cn-page-header__description {
|
|
30
|
-
color: var(--color-text-maxcontrast);
|
|
31
|
-
margin: 0;
|
|
32
|
-
font-size: var(--default-font-size);
|
|
33
|
-
}
|
|
1
|
+
/* CnPageHeader — Reusable page header styles */
|
|
2
|
+
|
|
3
|
+
.cn-page-header {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
gap: calc(3 * var(--default-grid-baseline));
|
|
7
|
+
margin-bottom: calc(4 * var(--default-grid-baseline));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.cn-page-header__icon {
|
|
11
|
+
flex-shrink: 0;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
padding-top: var(--default-grid-baseline);
|
|
15
|
+
color: var(--color-primary);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.cn-page-header__text {
|
|
19
|
+
flex: 1;
|
|
20
|
+
min-width: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.cn-page-header__title {
|
|
24
|
+
margin: 0 0 var(--default-grid-baseline) 0;
|
|
25
|
+
font-size: 2rem;
|
|
26
|
+
font-weight: 300;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.cn-page-header__description {
|
|
30
|
+
color: var(--color-text-maxcontrast);
|
|
31
|
+
margin: 0;
|
|
32
|
+
font-size: var(--default-font-size);
|
|
33
|
+
}
|
package/src/css/pagination.css
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
/* ========================================
|
|
2
|
-
@conduction/nextcloud-vue — Pagination
|
|
3
|
-
======================================== */
|
|
4
|
-
|
|
5
|
-
.cn-pagination {
|
|
6
|
-
display: flex;
|
|
7
|
-
justify-content: space-between;
|
|
8
|
-
align-items: center;
|
|
9
|
-
gap: calc(4 * var(--default-grid-baseline));
|
|
10
|
-
margin-top: calc(8 * var(--default-grid-baseline));
|
|
11
|
-
padding: calc(5 * var(--default-grid-baseline));
|
|
12
|
-
flex-wrap: nowrap;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.cn-pagination__info {
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
flex-shrink: 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.cn-pagination__page-info {
|
|
22
|
-
color: var(--color-text-maxcontrast);
|
|
23
|
-
font-size: 0.9rem;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.cn-pagination__nav {
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
gap: calc(2 * var(--default-grid-baseline));
|
|
30
|
-
flex-grow: 1;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.cn-pagination__numbers {
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
gap: var(--default-grid-baseline);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.cn-pagination__ellipsis {
|
|
41
|
-
padding: 0 var(--default-grid-baseline);
|
|
42
|
-
color: var(--color-text-maxcontrast);
|
|
43
|
-
font-size: 0.9rem;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.cn-pagination__page-size {
|
|
47
|
-
display: flex;
|
|
48
|
-
align-items: center;
|
|
49
|
-
gap: calc(2 * var(--default-grid-baseline));
|
|
50
|
-
flex-shrink: 0;
|
|
51
|
-
min-width: 0;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.cn-pagination__page-size label {
|
|
55
|
-
font-size: 0.9rem;
|
|
56
|
-
color: var(--color-text-maxcontrast);
|
|
57
|
-
white-space: nowrap;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.cn-pagination__page-size-select {
|
|
61
|
-
min-width: 100px !important;
|
|
62
|
-
max-width: 120px !important;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* Backwards compatibility aliases */
|
|
66
|
-
.viewPagination { display: flex; justify-content: space-between; align-items: center; gap: calc(4 * var(--default-grid-baseline)); margin-top: calc(8 * var(--default-grid-baseline)); padding: calc(5 * var(--default-grid-baseline)); flex-wrap: nowrap; }
|
|
67
|
-
.viewPaginationInfo { display: flex; align-items: center; flex-shrink: 0; }
|
|
68
|
-
.viewPageInfo { color: var(--color-text-maxcontrast); font-size: 0.9rem; }
|
|
69
|
-
.viewPaginationNav { display: flex; align-items: center; gap: calc(2 * var(--default-grid-baseline)); flex-grow: 1; justify-content: center; }
|
|
70
|
-
.viewPaginationNumbers { display: flex; align-items: center; gap: var(--default-grid-baseline); }
|
|
71
|
-
.viewPaginationEllipsis { padding: 0 var(--default-grid-baseline); color: var(--color-text-maxcontrast); font-size: 0.9rem; }
|
|
72
|
-
.viewPaginationPageSize { display: flex; align-items: center; gap: calc(2 * var(--default-grid-baseline)); flex-shrink: 0; min-width: 0; }
|
|
1
|
+
/* ========================================
|
|
2
|
+
@conduction/nextcloud-vue — Pagination
|
|
3
|
+
======================================== */
|
|
4
|
+
|
|
5
|
+
.cn-pagination {
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: calc(4 * var(--default-grid-baseline));
|
|
10
|
+
margin-top: calc(8 * var(--default-grid-baseline));
|
|
11
|
+
padding: calc(5 * var(--default-grid-baseline));
|
|
12
|
+
flex-wrap: nowrap;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.cn-pagination__info {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.cn-pagination__page-info {
|
|
22
|
+
color: var(--color-text-maxcontrast);
|
|
23
|
+
font-size: 0.9rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.cn-pagination__nav {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: calc(2 * var(--default-grid-baseline));
|
|
30
|
+
flex-grow: 1;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cn-pagination__numbers {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
gap: var(--default-grid-baseline);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.cn-pagination__ellipsis {
|
|
41
|
+
padding: 0 var(--default-grid-baseline);
|
|
42
|
+
color: var(--color-text-maxcontrast);
|
|
43
|
+
font-size: 0.9rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.cn-pagination__page-size {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: calc(2 * var(--default-grid-baseline));
|
|
50
|
+
flex-shrink: 0;
|
|
51
|
+
min-width: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.cn-pagination__page-size label {
|
|
55
|
+
font-size: 0.9rem;
|
|
56
|
+
color: var(--color-text-maxcontrast);
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.cn-pagination__page-size-select {
|
|
61
|
+
min-width: 100px !important;
|
|
62
|
+
max-width: 120px !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Backwards compatibility aliases */
|
|
66
|
+
.viewPagination { display: flex; justify-content: space-between; align-items: center; gap: calc(4 * var(--default-grid-baseline)); margin-top: calc(8 * var(--default-grid-baseline)); padding: calc(5 * var(--default-grid-baseline)); flex-wrap: nowrap; }
|
|
67
|
+
.viewPaginationInfo { display: flex; align-items: center; flex-shrink: 0; }
|
|
68
|
+
.viewPageInfo { color: var(--color-text-maxcontrast); font-size: 0.9rem; }
|
|
69
|
+
.viewPaginationNav { display: flex; align-items: center; gap: calc(2 * var(--default-grid-baseline)); flex-grow: 1; justify-content: center; }
|
|
70
|
+
.viewPaginationNumbers { display: flex; align-items: center; gap: var(--default-grid-baseline); }
|
|
71
|
+
.viewPaginationEllipsis { padding: 0 var(--default-grid-baseline); color: var(--color-text-maxcontrast); font-size: 0.9rem; }
|
|
72
|
+
.viewPaginationPageSize { display: flex; align-items: center; gap: calc(2 * var(--default-grid-baseline)); flex-shrink: 0; min-width: 0; }
|
package/src/css/table.css
CHANGED
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
/* ========================================
|
|
2
|
-
@conduction/nextcloud-vue — Table Styles
|
|
3
|
-
======================================== */
|
|
4
|
-
|
|
5
|
-
/* Table Container */
|
|
6
|
-
.cn-table-container {
|
|
7
|
-
background: var(--color-main-background);
|
|
8
|
-
border-radius: var(--border-radius);
|
|
9
|
-
overflow:
|
|
10
|
-
box-shadow: 0 2px 4px var(--color-box-shadow);
|
|
11
|
-
border: 1px solid var(--color-border);
|
|
12
|
-
margin-bottom: calc(5 * var(--default-grid-baseline));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.cn-table-container.cn-table-container--scrollable {
|
|
16
|
-
max-height: 400px;
|
|
17
|
-
overflow-y: auto;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/* Base Table */
|
|
21
|
-
.cn-data-table {
|
|
22
|
-
width: 100%;
|
|
23
|
-
border-collapse: collapse;
|
|
24
|
-
background-color: var(--color-main-background);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.cn-data-table th,
|
|
28
|
-
.cn-data-table td {
|
|
29
|
-
padding: calc(3 * var(--default-grid-baseline));
|
|
30
|
-
text-align: left;
|
|
31
|
-
border-bottom: 1px solid var(--color-border);
|
|
32
|
-
vertical-align: middle;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.cn-data-table th {
|
|
36
|
-
background: var(--color-background-dark);
|
|
37
|
-
font-weight: 500;
|
|
38
|
-
color: var(--color-text-maxcontrast);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.cn-data-table th.cn-table-header--sortable {
|
|
42
|
-
cursor: pointer;
|
|
43
|
-
user-select: none;
|
|
44
|
-
transition: background-color var(--animation-quick) ease;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.cn-data-table th.cn-table-header--sortable:hover {
|
|
48
|
-
background-color: var(--color-background-hover);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.cn-table-sort-indicator {
|
|
52
|
-
margin-left: var(--default-grid-baseline);
|
|
53
|
-
opacity: 0.6;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/* Row States */
|
|
57
|
-
.cn-table-row {
|
|
58
|
-
border-bottom: 1px solid var(--color-border);
|
|
59
|
-
cursor: pointer;
|
|
60
|
-
transition: background-color var(--animation-quick) ease;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.cn-table-row:hover {
|
|
64
|
-
background: var(--color-background-hover);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.cn-table-row--selected {
|
|
68
|
-
background-color: var(--color-primary-light);
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.cn-table-row--selected:hover {
|
|
73
|
-
background-color: var(--color-primary-light);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* Column Types */
|
|
77
|
-
.cn-table-col--checkbox {
|
|
78
|
-
width: 50px;
|
|
79
|
-
text-align: center;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.cn-table-col--actions {
|
|
83
|
-
width: 120px;
|
|
84
|
-
text-align: center;
|
|
85
|
-
min-width: 120px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.cn-table-col--constrained {
|
|
89
|
-
width: 150px;
|
|
90
|
-
max-width: 150px;
|
|
91
|
-
overflow: hidden;
|
|
92
|
-
text-overflow: ellipsis;
|
|
93
|
-
white-space: nowrap;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.cn-table-col--expanded {
|
|
97
|
-
width: auto;
|
|
98
|
-
min-width: 200px;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.cn-table-col--title {
|
|
102
|
-
min-width: 120px;
|
|
103
|
-
max-width: 200px;
|
|
104
|
-
word-wrap: break-word;
|
|
105
|
-
overflow: hidden;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
/* Loading State */
|
|
109
|
-
.cn-table-loading {
|
|
110
|
-
text-align: center;
|
|
111
|
-
padding: calc(12 * var(--default-grid-baseline));
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.cn-table-loading p {
|
|
115
|
-
margin-top: calc(5 * var(--default-grid-baseline));
|
|
116
|
-
color: var(--color-text-maxcontrast);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/* Empty State (inside table) */
|
|
120
|
-
.cn-table-empty td {
|
|
121
|
-
text-align: center;
|
|
122
|
-
padding: calc(12 * var(--default-grid-baseline)) calc(6 * var(--default-grid-baseline));
|
|
123
|
-
color: var(--color-text-maxcontrast);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/* ========================================
|
|
127
|
-
Backwards compatibility aliases
|
|
128
|
-
(legacy OpenRegister CSS class names)
|
|
129
|
-
======================================== */
|
|
130
|
-
.viewTableContainer { background: var(--color-main-background); border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 2px 4px var(--color-box-shadow); border: 1px solid var(--color-border); margin-bottom: calc(5 * var(--default-grid-baseline)); }
|
|
131
|
-
.viewTableContainer.scrollable { max-height: 400px; overflow-y: auto; }
|
|
132
|
-
.viewTable { width: 100%; border-collapse: collapse; background-color: var(--color-main-background); }
|
|
133
|
-
.viewTable th, .viewTable td { padding: calc(3 * var(--default-grid-baseline)); text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
|
|
134
|
-
.viewTable th { background: var(--color-background-hover); font-weight: 500; color: var(--color-text-maxcontrast); background-color: var(--color-background-dark); }
|
|
135
|
-
.viewTableRow { border-bottom: 1px solid var(--color-border); cursor: pointer; transition: background-color var(--animation-quick) ease; }
|
|
136
|
-
.viewTableRow:hover { background: var(--color-background-hover); }
|
|
137
|
-
.viewTableRow.active, .viewTableRowSelected { background: var(--color-primary-light); }
|
|
138
|
-
.tableColumnCheckbox { width: 50px; text-align: center; }
|
|
139
|
-
.tableColumnActions { width: 120px; text-align: center; min-width: 120px; }
|
|
140
|
-
.tableColumnConstrained { width: 150px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
141
|
-
.tableColumnExpanded { width: auto; min-width: 200px; }
|
|
142
|
-
.tableColumnTitle { min-width: 120px; max-width: 200px; word-wrap: break-word; overflow: hidden; }
|
|
1
|
+
/* ========================================
|
|
2
|
+
@conduction/nextcloud-vue — Table Styles
|
|
3
|
+
======================================== */
|
|
4
|
+
|
|
5
|
+
/* Table Container */
|
|
6
|
+
.cn-table-container {
|
|
7
|
+
background: var(--color-main-background);
|
|
8
|
+
border-radius: var(--border-radius);
|
|
9
|
+
overflow-x: auto;
|
|
10
|
+
box-shadow: 0 2px 4px var(--color-box-shadow);
|
|
11
|
+
border: 1px solid var(--color-border);
|
|
12
|
+
margin-bottom: calc(5 * var(--default-grid-baseline));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.cn-table-container.cn-table-container--scrollable {
|
|
16
|
+
max-height: 400px;
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Base Table */
|
|
21
|
+
.cn-data-table {
|
|
22
|
+
width: 100%;
|
|
23
|
+
border-collapse: collapse;
|
|
24
|
+
background-color: var(--color-main-background);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.cn-data-table th,
|
|
28
|
+
.cn-data-table td {
|
|
29
|
+
padding: calc(3 * var(--default-grid-baseline));
|
|
30
|
+
text-align: left;
|
|
31
|
+
border-bottom: 1px solid var(--color-border);
|
|
32
|
+
vertical-align: middle;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.cn-data-table th {
|
|
36
|
+
background: var(--color-background-dark);
|
|
37
|
+
font-weight: 500;
|
|
38
|
+
color: var(--color-text-maxcontrast);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.cn-data-table th.cn-table-header--sortable {
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
user-select: none;
|
|
44
|
+
transition: background-color var(--animation-quick) ease;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.cn-data-table th.cn-table-header--sortable:hover {
|
|
48
|
+
background-color: var(--color-background-hover);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.cn-table-sort-indicator {
|
|
52
|
+
margin-left: var(--default-grid-baseline);
|
|
53
|
+
opacity: 0.6;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Row States */
|
|
57
|
+
.cn-table-row {
|
|
58
|
+
border-bottom: 1px solid var(--color-border);
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
transition: background-color var(--animation-quick) ease;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.cn-table-row:hover {
|
|
64
|
+
background: var(--color-background-hover);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.cn-table-row--selected {
|
|
68
|
+
background-color: var(--color-primary-light);
|
|
69
|
+
box-shadow: inset 3px 0 0 0 var(--color-primary);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.cn-table-row--selected:hover {
|
|
73
|
+
background-color: var(--color-primary-light);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Column Types */
|
|
77
|
+
.cn-table-col--checkbox {
|
|
78
|
+
width: 50px;
|
|
79
|
+
text-align: center;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.cn-table-col--actions {
|
|
83
|
+
width: 120px;
|
|
84
|
+
text-align: center;
|
|
85
|
+
min-width: 120px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.cn-table-col--constrained {
|
|
89
|
+
width: 150px;
|
|
90
|
+
max-width: 150px;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
text-overflow: ellipsis;
|
|
93
|
+
white-space: nowrap;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.cn-table-col--expanded {
|
|
97
|
+
width: auto;
|
|
98
|
+
min-width: 200px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.cn-table-col--title {
|
|
102
|
+
min-width: 120px;
|
|
103
|
+
max-width: 200px;
|
|
104
|
+
word-wrap: break-word;
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* Loading State */
|
|
109
|
+
.cn-table-loading {
|
|
110
|
+
text-align: center;
|
|
111
|
+
padding: calc(12 * var(--default-grid-baseline));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.cn-table-loading p {
|
|
115
|
+
margin-top: calc(5 * var(--default-grid-baseline));
|
|
116
|
+
color: var(--color-text-maxcontrast);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Empty State (inside table) */
|
|
120
|
+
.cn-table-empty td {
|
|
121
|
+
text-align: center;
|
|
122
|
+
padding: calc(12 * var(--default-grid-baseline)) calc(6 * var(--default-grid-baseline));
|
|
123
|
+
color: var(--color-text-maxcontrast);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* ========================================
|
|
127
|
+
Backwards compatibility aliases
|
|
128
|
+
(legacy OpenRegister CSS class names)
|
|
129
|
+
======================================== */
|
|
130
|
+
.viewTableContainer { background: var(--color-main-background); border-radius: var(--border-radius); overflow-x: hidden; overflow-y: visible; box-shadow: 0 2px 4px var(--color-box-shadow); border: 1px solid var(--color-border); margin-bottom: calc(5 * var(--default-grid-baseline)); }
|
|
131
|
+
.viewTableContainer.scrollable { max-height: 400px; overflow-y: auto; }
|
|
132
|
+
.viewTable { width: 100%; border-collapse: collapse; background-color: var(--color-main-background); }
|
|
133
|
+
.viewTable th, .viewTable td { padding: calc(3 * var(--default-grid-baseline)); text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
|
|
134
|
+
.viewTable th { background: var(--color-background-hover); font-weight: 500; color: var(--color-text-maxcontrast); background-color: var(--color-background-dark); }
|
|
135
|
+
.viewTableRow { border-bottom: 1px solid var(--color-border); cursor: pointer; transition: background-color var(--animation-quick) ease; }
|
|
136
|
+
.viewTableRow:hover { background: var(--color-background-hover); }
|
|
137
|
+
.viewTableRow.active, .viewTableRowSelected { background: var(--color-primary-light); }
|
|
138
|
+
.tableColumnCheckbox { width: 50px; text-align: center; }
|
|
139
|
+
.tableColumnActions { width: 120px; text-align: center; min-width: 120px; }
|
|
140
|
+
.tableColumnConstrained { width: 150px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
141
|
+
.tableColumnExpanded { width: auto; min-width: 200px; }
|
|
142
|
+
.tableColumnTitle { min-width: 120px; max-width: 200px; word-wrap: break-word; overflow: hidden; }
|