@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.
- package/dist/nextcloud-vue.cjs +67614 -0
- package/dist/nextcloud-vue.cjs.js +9559 -8983
- package/dist/nextcloud-vue.cjs.js.map +1 -1
- package/dist/nextcloud-vue.cjs.map +1 -0
- package/dist/nextcloud-vue.css +1231 -1231
- package/dist/nextcloud-vue.esm.js +9559 -8983
- package/dist/nextcloud-vue.esm.js.map +1 -1
- package/package.json +14 -5
- package/src/components/CnActionsBar/CnActionsBar.vue +235 -235
- package/src/components/CnAdvancedFormDialog/CnAdvancedFormDialog.vue +579 -579
- package/src/components/CnAdvancedFormDialog/CnDataTab.vue +217 -217
- package/src/components/CnAdvancedFormDialog/CnMetadataTab.vue +121 -121
- package/src/components/CnAdvancedFormDialog/CnPropertiesTab.vue +418 -418
- package/src/components/CnAdvancedFormDialog/CnPropertyValueCell.vue +247 -247
- package/src/components/CnCardGrid/CnCardGrid.vue +152 -152
- package/src/components/CnCellRenderer/CnCellRenderer.vue +132 -132
- package/src/components/CnChartWidget/CnChartWidget.vue +320 -320
- package/src/components/CnConfigurationCard/CnConfigurationCard.vue +77 -77
- package/src/components/CnCopyDialog/CnCopyDialog.vue +250 -250
- package/src/components/CnDashboardGrid/CnDashboardGrid.vue +225 -225
- package/src/components/CnDashboardPage/CnDashboardPage.vue +390 -390
- package/src/components/CnDataTable/CnDataTable.vue +349 -349
- package/src/components/CnDeleteDialog/CnDeleteDialog.vue +170 -170
- package/src/components/CnDetailCard/CnDetailCard.vue +214 -214
- package/src/components/CnDetailPage/CnDetailPage.vue +285 -281
- package/src/components/CnFacetSidebar/CnFacetSidebar.vue +231 -231
- package/src/components/CnFilterBar/CnFilterBar.vue +152 -152
- package/src/components/CnFormDialog/CnFormDialog.vue +302 -11
- package/src/components/CnIcon/CnIcon.vue +89 -89
- package/src/components/CnIndexPage/CnIndexPage.vue +884 -874
- package/src/components/CnIndexSidebar/CnIndexSidebar.vue +503 -503
- package/src/components/CnItemCard/CnItemCard.vue +132 -132
- package/src/components/CnKpiGrid/CnKpiGrid.vue +89 -89
- package/src/components/CnMassActionBar/CnMassActionBar.vue +160 -160
- package/src/components/CnMassCopyDialog/CnMassCopyDialog.vue +320 -320
- package/src/components/CnMassDeleteDialog/CnMassDeleteDialog.vue +238 -238
- package/src/components/CnMassExportDialog/CnMassExportDialog.vue +190 -190
- package/src/components/CnMassImportDialog/CnMassImportDialog.vue +491 -491
- package/src/components/CnNoteCard/CnNoteCard.vue +149 -149
- package/src/components/CnNotesCard/CnNotesCard.vue +413 -413
- package/src/components/CnObjectCard/CnObjectCard.vue +292 -292
- package/src/components/CnObjectCard/eslint-setup.md +235 -0
- package/src/components/CnObjectCard/package.json-or.json +132 -0
- package/src/components/CnObjectSidebar/CnObjectSidebar.vue +876 -876
- package/src/components/CnPageHeader/CnPageHeader.vue +57 -57
- package/src/components/CnPagination/CnPagination.vue +252 -252
- package/src/components/CnRegisterMapping/CnRegisterMapping.vue +792 -792
- package/src/components/CnRowActions/CnRowActions.vue +95 -73
- package/src/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue +226 -226
- package/src/components/CnSchemaFormDialog/CnSchemaFormDialog.vue +787 -787
- 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 +266 -266
- package/src/components/CnStatsBlock/CnStatsBlock.vue +420 -420
- package/src/components/CnStatusBadge/CnStatusBadge.vue +77 -77
- package/src/components/CnTabbedFormDialog/CnTabbedFormDialog.vue +540 -540
- package/src/components/CnTasksCard/CnTasksCard.vue +373 -373
- package/src/components/CnTileWidget/CnTileWidget.vue +159 -159
- package/src/components/CnTimelineStages/CnTimelineStages.vue +292 -292
- package/src/components/CnUserActionMenu/CnUserActionMenu.vue +435 -435
- package/src/components/CnVersionInfoCard/CnVersionInfoCard.vue +312 -312
- package/src/components/CnWidgetRenderer/CnWidgetRenderer.vue +180 -180
- package/src/components/CnWidgetWrapper/CnWidgetWrapper.vue +211 -211
- package/src/index.js +1 -1
- package/src/types/notification.d.ts +13 -13
- package/src/types/organisation.d.ts +15 -15
- package/src/types/schema.d.ts +13 -13
- package/src/types/task.d.ts +6 -6
- package/src/utils/headers.js +5 -3
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<span
|
|
3
|
-
class="cn-status-badge"
|
|
4
|
-
:class="badgeClasses">
|
|
5
|
-
<slot>{{ label }}</slot>
|
|
6
|
-
</span>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script>
|
|
10
|
-
/**
|
|
11
|
-
* CnStatusBadge — Color-coded pill badge for status, priority, or category display.
|
|
12
|
-
*
|
|
13
|
-
* Replaces the various .status-badge / .priority-badge CSS patterns duplicated
|
|
14
|
-
* across Pipelinq and Procest. Supports a colorMap for automatic variant lookup.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* <CnStatusBadge label="Open" variant="success" />
|
|
18
|
-
* <CnStatusBadge label="Urgent" variant="error" size="small" />
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* <!-- With colorMap: variant auto-resolved from label -->
|
|
22
|
-
* <CnStatusBadge
|
|
23
|
-
* label="overdue"
|
|
24
|
-
* :color-map="{ open: 'success', closed: 'default', overdue: 'error' }" />
|
|
25
|
-
*/
|
|
26
|
-
export default {
|
|
27
|
-
name: 'CnStatusBadge',
|
|
28
|
-
|
|
29
|
-
props: {
|
|
30
|
-
/** Badge label text */
|
|
31
|
-
label: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: '',
|
|
34
|
-
},
|
|
35
|
-
/**
|
|
36
|
-
* Color variant: 'default', 'primary', 'success', 'warning', 'error', 'info'
|
|
37
|
-
*/
|
|
38
|
-
variant: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: 'default',
|
|
41
|
-
validator: (v) => ['default', 'primary', 'success', 'warning', 'error', 'info'].includes(v),
|
|
42
|
-
},
|
|
43
|
-
/** Size: 'small' or 'medium' */
|
|
44
|
-
size: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: 'medium',
|
|
47
|
-
validator: (v) => ['small', 'medium'].includes(v),
|
|
48
|
-
},
|
|
49
|
-
/**
|
|
50
|
-
* Map of label values to variants. When provided, the variant is resolved
|
|
51
|
-
* from this map using the label (case-insensitive). Falls back to the variant prop.
|
|
52
|
-
* @example { open: 'success', closed: 'default', overdue: 'error' }
|
|
53
|
-
*/
|
|
54
|
-
colorMap: {
|
|
55
|
-
type: Object,
|
|
56
|
-
default: null,
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
computed: {
|
|
61
|
-
resolvedVariant() {
|
|
62
|
-
if (this.colorMap && this.label) {
|
|
63
|
-
const key = this.label.toLowerCase()
|
|
64
|
-
return this.colorMap[key] || this.variant
|
|
65
|
-
}
|
|
66
|
-
return this.variant
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
badgeClasses() {
|
|
70
|
-
return {
|
|
71
|
-
['cn-status-badge--' + this.resolvedVariant]: true,
|
|
72
|
-
'cn-status-badge--small': this.size === 'small',
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
}
|
|
77
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<span
|
|
3
|
+
class="cn-status-badge"
|
|
4
|
+
:class="badgeClasses">
|
|
5
|
+
<slot>{{ label }}</slot>
|
|
6
|
+
</span>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
/**
|
|
11
|
+
* CnStatusBadge — Color-coded pill badge for status, priority, or category display.
|
|
12
|
+
*
|
|
13
|
+
* Replaces the various .status-badge / .priority-badge CSS patterns duplicated
|
|
14
|
+
* across Pipelinq and Procest. Supports a colorMap for automatic variant lookup.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* <CnStatusBadge label="Open" variant="success" />
|
|
18
|
+
* <CnStatusBadge label="Urgent" variant="error" size="small" />
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* <!-- With colorMap: variant auto-resolved from label -->
|
|
22
|
+
* <CnStatusBadge
|
|
23
|
+
* label="overdue"
|
|
24
|
+
* :color-map="{ open: 'success', closed: 'default', overdue: 'error' }" />
|
|
25
|
+
*/
|
|
26
|
+
export default {
|
|
27
|
+
name: 'CnStatusBadge',
|
|
28
|
+
|
|
29
|
+
props: {
|
|
30
|
+
/** Badge label text */
|
|
31
|
+
label: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: '',
|
|
34
|
+
},
|
|
35
|
+
/**
|
|
36
|
+
* Color variant: 'default', 'primary', 'success', 'warning', 'error', 'info'
|
|
37
|
+
*/
|
|
38
|
+
variant: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: 'default',
|
|
41
|
+
validator: (v) => ['default', 'primary', 'success', 'warning', 'error', 'info'].includes(v),
|
|
42
|
+
},
|
|
43
|
+
/** Size: 'small' or 'medium' */
|
|
44
|
+
size: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: 'medium',
|
|
47
|
+
validator: (v) => ['small', 'medium'].includes(v),
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* Map of label values to variants. When provided, the variant is resolved
|
|
51
|
+
* from this map using the label (case-insensitive). Falls back to the variant prop.
|
|
52
|
+
* @example { open: 'success', closed: 'default', overdue: 'error' }
|
|
53
|
+
*/
|
|
54
|
+
colorMap: {
|
|
55
|
+
type: Object,
|
|
56
|
+
default: null,
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
computed: {
|
|
61
|
+
resolvedVariant() {
|
|
62
|
+
if (this.colorMap && this.label) {
|
|
63
|
+
const key = this.label.toLowerCase()
|
|
64
|
+
return this.colorMap[key] || this.variant
|
|
65
|
+
}
|
|
66
|
+
return this.variant
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
badgeClasses() {
|
|
70
|
+
return {
|
|
71
|
+
['cn-status-badge--' + this.resolvedVariant]: true,
|
|
72
|
+
'cn-status-badge--small': this.size === 'small',
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
}
|
|
77
|
+
</script>
|