@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.
- package/dist/nextcloud-vue.cjs +67614 -0
- package/dist/nextcloud-vue.cjs.js +13518 -13617
- package/dist/nextcloud-vue.cjs.js.map +1 -1
- package/dist/nextcloud-vue.cjs.map +1 -0
- package/dist/nextcloud-vue.css +1796 -1800
- package/dist/nextcloud-vue.esm.js +13518 -13617
- package/dist/nextcloud-vue.esm.js.map +1 -1
- package/package.json +3 -2
- package/src/components/CnActionsBar/CnActionsBar.vue +254 -254
- package/src/components/CnAdvancedFormDialog/CnAdvancedFormDialog.vue +570 -570
- package/src/components/CnAdvancedFormDialog/CnDataTab.vue +217 -217
- package/src/components/CnAdvancedFormDialog/CnMetadataTab.vue +121 -121
- package/src/components/CnAdvancedFormDialog/CnPropertiesTab.vue +422 -422
- package/src/components/CnAdvancedFormDialog/CnPropertyValueCell.vue +247 -247
- package/src/components/CnCard/CnCard.vue +415 -415
- package/src/components/CnCardGrid/CnCardGrid.vue +156 -156
- package/src/components/CnCellRenderer/CnCellRenderer.vue +132 -132
- package/src/components/CnChartWidget/CnChartWidget.vue +346 -346
- package/src/components/CnConfigurationCard/CnConfigurationCard.vue +77 -77
- package/src/components/CnContextMenu/CnContextMenu.vue +142 -142
- package/src/components/CnCopyDialog/CnCopyDialog.vue +266 -266
- package/src/components/CnDashboardGrid/CnDashboardGrid.vue +229 -229
- package/src/components/CnDashboardPage/CnDashboardPage.vue +397 -397
- package/src/components/CnDataTable/CnDataTable.vue +362 -362
- package/src/components/CnDeleteDialog/CnDeleteDialog.vue +177 -177
- package/src/components/CnDetailCard/CnDetailCard.vue +225 -225
- package/src/components/CnDetailGrid/CnDetailGrid.vue +256 -256
- package/src/components/CnDetailPage/CnDetailPage.vue +432 -432
- package/src/components/CnFacetSidebar/CnFacetSidebar.vue +234 -234
- package/src/components/CnFilterBar/CnFilterBar.vue +153 -153
- package/src/components/CnFormDialog/CnFormDialog.vue +1047 -1047
- package/src/components/CnIcon/CnIcon.vue +89 -89
- package/src/components/CnIndexPage/CnIndexPage.vue +981 -980
- package/src/components/CnIndexSidebar/CnIndexSidebar.vue +536 -536
- package/src/components/CnInfoWidget/CnInfoWidget.vue +219 -219
- package/src/components/CnItemCard/CnItemCard.vue +134 -134
- package/src/components/CnJsonViewer/CnJsonViewer.vue +312 -312
- package/src/components/CnKpiGrid/CnKpiGrid.vue +93 -93
- package/src/components/CnMassActionBar/CnMassActionBar.vue +161 -161
- package/src/components/CnMassCopyDialog/CnMassCopyDialog.vue +327 -327
- package/src/components/CnMassDeleteDialog/CnMassDeleteDialog.vue +245 -245
- package/src/components/CnMassExportDialog/CnMassExportDialog.vue +191 -191
- package/src/components/CnMassImportDialog/CnMassImportDialog.vue +494 -494
- package/src/components/CnNoteCard/CnNoteCard.vue +149 -149
- package/src/components/CnNotesCard/CnNotesCard.vue +416 -416
- package/src/components/CnObjectCard/CnObjectCard.vue +294 -294
- package/src/components/CnObjectDataWidget/CnObjectDataWidget.vue +854 -854
- package/src/components/CnObjectMetadataWidget/CnObjectMetadataWidget.vue +289 -289
- package/src/components/CnObjectSidebar/CnAuditTrailTab.vue +369 -369
- package/src/components/CnObjectSidebar/CnFilesTab.vue +287 -287
- package/src/components/CnObjectSidebar/CnNotesTab.vue +250 -250
- package/src/components/CnObjectSidebar/CnObjectSidebar.vue +255 -255
- package/src/components/CnObjectSidebar/CnTagsTab.vue +259 -259
- package/src/components/CnObjectSidebar/CnTasksTab.vue +483 -483
- package/src/components/CnPageHeader/CnPageHeader.vue +61 -61
- package/src/components/CnPagination/CnPagination.vue +253 -253
- package/src/components/CnProgressBar/CnProgressBar.vue +262 -262
- package/src/components/CnRegisterMapping/CnRegisterMapping.vue +793 -793
- package/src/components/CnRowActions/CnRowActions.vue +95 -95
- package/src/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue +226 -226
- package/src/components/CnSchemaFormDialog/CnSchemaFormDialog.vue +788 -788
- package/src/components/CnSchemaFormDialog/CnSchemaPropertiesTab.vue +305 -305
- package/src/components/CnSchemaFormDialog/CnSchemaPropertyActions.vue +1398 -1398
- package/src/components/CnSchemaFormDialog/CnSchemaSecurityTab.vue +236 -236
- package/src/components/CnSettingsCard/CnSettingsCard.vue +92 -92
- package/src/components/CnSettingsSection/CnSettingsSection.vue +267 -267
- package/src/components/CnStatsBlock/CnStatsBlock.vue +437 -437
- package/src/components/CnStatsPanel/CnStatsPanel.vue +321 -321
- package/src/components/CnStatusBadge/CnStatusBadge.vue +90 -90
- package/src/components/CnTabbedFormDialog/CnTabbedFormDialog.vue +545 -545
- package/src/components/CnTableWidget/CnTableWidget.vue +333 -333
- package/src/components/CnTasksCard/CnTasksCard.vue +374 -374
- package/src/components/CnTileWidget/CnTileWidget.vue +159 -159
- package/src/components/CnTimelineStages/CnTimelineStages.vue +294 -294
- package/src/components/CnUserActionMenu/CnUserActionMenu.vue +436 -436
- package/src/components/CnVersionInfoCard/CnVersionInfoCard.vue +313 -313
- package/src/components/CnWidgetRenderer/CnWidgetRenderer.vue +180 -180
- package/src/components/CnWidgetWrapper/CnWidgetWrapper.vue +248 -248
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<span
|
|
3
|
-
class="cn-status-badge"
|
|
4
|
-
:class="badgeClasses">
|
|
5
|
-
<slot>
|
|
6
|
-
<slot name="icon" />
|
|
7
|
-
{{ label }}
|
|
8
|
-
</slot>
|
|
9
|
-
</span>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script>
|
|
13
|
-
/**
|
|
14
|
-
* CnStatusBadge — Color-coded pill badge for status, priority, or category display.
|
|
15
|
-
*
|
|
16
|
-
* Replaces the various .status-badge / .priority-badge CSS patterns duplicated
|
|
17
|
-
* across Pipelinq and Procest. Supports a colorMap for automatic variant lookup.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* <CnStatusBadge label="Open" variant="success" />
|
|
21
|
-
* <CnStatusBadge label="Urgent" variant="error" size="small" />
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* <!-- With colorMap: variant auto-resolved from label -->
|
|
25
|
-
* <CnStatusBadge
|
|
26
|
-
* label="overdue"
|
|
27
|
-
* :color-map="{ open: 'success', closed: 'default', overdue: 'error' }" />
|
|
28
|
-
*/
|
|
29
|
-
export default {
|
|
30
|
-
name: 'CnStatusBadge',
|
|
31
|
-
|
|
32
|
-
props: {
|
|
33
|
-
/** Badge label text */
|
|
34
|
-
label: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: '',
|
|
37
|
-
},
|
|
38
|
-
/**
|
|
39
|
-
* Color variant: 'default', 'primary', 'success', 'warning', 'error', 'info'
|
|
40
|
-
*/
|
|
41
|
-
variant: {
|
|
42
|
-
type: String,
|
|
43
|
-
default: 'default',
|
|
44
|
-
validator: (v) => ['default', 'primary', 'success', 'warning', 'error', 'info'].includes(v),
|
|
45
|
-
},
|
|
46
|
-
/** Size: 'small' or 'medium' */
|
|
47
|
-
size: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: 'medium',
|
|
50
|
-
validator: (v) => ['small', 'medium'].includes(v),
|
|
51
|
-
},
|
|
52
|
-
/**
|
|
53
|
-
* Use solid background with white text instead of light background with colored text.
|
|
54
|
-
* Useful when the badge is placed on a colored background (e.g., an active card).
|
|
55
|
-
*/
|
|
56
|
-
solid: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: false,
|
|
59
|
-
},
|
|
60
|
-
/**
|
|
61
|
-
* Map of label values to variants. When provided, the variant is resolved
|
|
62
|
-
* from this map using the label (case-insensitive). Falls back to the variant prop.
|
|
63
|
-
* @example { open: 'success', closed: 'default', overdue: 'error' }
|
|
64
|
-
*/
|
|
65
|
-
colorMap: {
|
|
66
|
-
type: Object,
|
|
67
|
-
default: null,
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
computed: {
|
|
72
|
-
resolvedVariant() {
|
|
73
|
-
if (this.colorMap && this.label) {
|
|
74
|
-
const key = this.label.toLowerCase()
|
|
75
|
-
const normalizedColorMap = Object.fromEntries(Object.entries(this.colorMap).map(([k, v]) => [k.toLowerCase(), v]))
|
|
76
|
-
return normalizedColorMap[key] || this.variant
|
|
77
|
-
}
|
|
78
|
-
return this.variant
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
badgeClasses() {
|
|
82
|
-
return {
|
|
83
|
-
['cn-status-badge--' + this.resolvedVariant]: true,
|
|
84
|
-
'cn-status-badge--small': this.size === 'small',
|
|
85
|
-
'cn-status-badge--solid': this.solid,
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
}
|
|
90
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<span
|
|
3
|
+
class="cn-status-badge"
|
|
4
|
+
:class="badgeClasses">
|
|
5
|
+
<slot>
|
|
6
|
+
<slot name="icon" />
|
|
7
|
+
{{ label }}
|
|
8
|
+
</slot>
|
|
9
|
+
</span>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script>
|
|
13
|
+
/**
|
|
14
|
+
* CnStatusBadge — Color-coded pill badge for status, priority, or category display.
|
|
15
|
+
*
|
|
16
|
+
* Replaces the various .status-badge / .priority-badge CSS patterns duplicated
|
|
17
|
+
* across Pipelinq and Procest. Supports a colorMap for automatic variant lookup.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* <CnStatusBadge label="Open" variant="success" />
|
|
21
|
+
* <CnStatusBadge label="Urgent" variant="error" size="small" />
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* <!-- With colorMap: variant auto-resolved from label -->
|
|
25
|
+
* <CnStatusBadge
|
|
26
|
+
* label="overdue"
|
|
27
|
+
* :color-map="{ open: 'success', closed: 'default', overdue: 'error' }" />
|
|
28
|
+
*/
|
|
29
|
+
export default {
|
|
30
|
+
name: 'CnStatusBadge',
|
|
31
|
+
|
|
32
|
+
props: {
|
|
33
|
+
/** Badge label text */
|
|
34
|
+
label: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: '',
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* Color variant: 'default', 'primary', 'success', 'warning', 'error', 'info'
|
|
40
|
+
*/
|
|
41
|
+
variant: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: 'default',
|
|
44
|
+
validator: (v) => ['default', 'primary', 'success', 'warning', 'error', 'info'].includes(v),
|
|
45
|
+
},
|
|
46
|
+
/** Size: 'small' or 'medium' */
|
|
47
|
+
size: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: 'medium',
|
|
50
|
+
validator: (v) => ['small', 'medium'].includes(v),
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* Use solid background with white text instead of light background with colored text.
|
|
54
|
+
* Useful when the badge is placed on a colored background (e.g., an active card).
|
|
55
|
+
*/
|
|
56
|
+
solid: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: false,
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* Map of label values to variants. When provided, the variant is resolved
|
|
62
|
+
* from this map using the label (case-insensitive). Falls back to the variant prop.
|
|
63
|
+
* @example { open: 'success', closed: 'default', overdue: 'error' }
|
|
64
|
+
*/
|
|
65
|
+
colorMap: {
|
|
66
|
+
type: Object,
|
|
67
|
+
default: null,
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
computed: {
|
|
72
|
+
resolvedVariant() {
|
|
73
|
+
if (this.colorMap && this.label) {
|
|
74
|
+
const key = this.label.toLowerCase()
|
|
75
|
+
const normalizedColorMap = Object.fromEntries(Object.entries(this.colorMap).map(([k, v]) => [k.toLowerCase(), v]))
|
|
76
|
+
return normalizedColorMap[key] || this.variant
|
|
77
|
+
}
|
|
78
|
+
return this.variant
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
badgeClasses() {
|
|
82
|
+
return {
|
|
83
|
+
['cn-status-badge--' + this.resolvedVariant]: true,
|
|
84
|
+
'cn-status-badge--small': this.size === 'small',
|
|
85
|
+
'cn-status-badge--solid': this.solid,
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
}
|
|
90
|
+
</script>
|