@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.
Files changed (71) hide show
  1. package/dist/nextcloud-vue.cjs +67614 -0
  2. package/dist/nextcloud-vue.cjs.js +9559 -8983
  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 +1231 -1231
  6. package/dist/nextcloud-vue.esm.js +9559 -8983
  7. package/dist/nextcloud-vue.esm.js.map +1 -1
  8. package/package.json +14 -5
  9. package/src/components/CnActionsBar/CnActionsBar.vue +235 -235
  10. package/src/components/CnAdvancedFormDialog/CnAdvancedFormDialog.vue +579 -579
  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 +418 -418
  14. package/src/components/CnAdvancedFormDialog/CnPropertyValueCell.vue +247 -247
  15. package/src/components/CnCardGrid/CnCardGrid.vue +152 -152
  16. package/src/components/CnCellRenderer/CnCellRenderer.vue +132 -132
  17. package/src/components/CnChartWidget/CnChartWidget.vue +320 -320
  18. package/src/components/CnConfigurationCard/CnConfigurationCard.vue +77 -77
  19. package/src/components/CnCopyDialog/CnCopyDialog.vue +250 -250
  20. package/src/components/CnDashboardGrid/CnDashboardGrid.vue +225 -225
  21. package/src/components/CnDashboardPage/CnDashboardPage.vue +390 -390
  22. package/src/components/CnDataTable/CnDataTable.vue +349 -349
  23. package/src/components/CnDeleteDialog/CnDeleteDialog.vue +170 -170
  24. package/src/components/CnDetailCard/CnDetailCard.vue +214 -214
  25. package/src/components/CnDetailPage/CnDetailPage.vue +285 -281
  26. package/src/components/CnFacetSidebar/CnFacetSidebar.vue +231 -231
  27. package/src/components/CnFilterBar/CnFilterBar.vue +152 -152
  28. package/src/components/CnFormDialog/CnFormDialog.vue +302 -11
  29. package/src/components/CnIcon/CnIcon.vue +89 -89
  30. package/src/components/CnIndexPage/CnIndexPage.vue +884 -874
  31. package/src/components/CnIndexSidebar/CnIndexSidebar.vue +503 -503
  32. package/src/components/CnItemCard/CnItemCard.vue +132 -132
  33. package/src/components/CnKpiGrid/CnKpiGrid.vue +89 -89
  34. package/src/components/CnMassActionBar/CnMassActionBar.vue +160 -160
  35. package/src/components/CnMassCopyDialog/CnMassCopyDialog.vue +320 -320
  36. package/src/components/CnMassDeleteDialog/CnMassDeleteDialog.vue +238 -238
  37. package/src/components/CnMassExportDialog/CnMassExportDialog.vue +190 -190
  38. package/src/components/CnMassImportDialog/CnMassImportDialog.vue +491 -491
  39. package/src/components/CnNoteCard/CnNoteCard.vue +149 -149
  40. package/src/components/CnNotesCard/CnNotesCard.vue +413 -413
  41. package/src/components/CnObjectCard/CnObjectCard.vue +292 -292
  42. package/src/components/CnObjectCard/eslint-setup.md +235 -0
  43. package/src/components/CnObjectCard/package.json-or.json +132 -0
  44. package/src/components/CnObjectSidebar/CnObjectSidebar.vue +876 -876
  45. package/src/components/CnPageHeader/CnPageHeader.vue +57 -57
  46. package/src/components/CnPagination/CnPagination.vue +252 -252
  47. package/src/components/CnRegisterMapping/CnRegisterMapping.vue +792 -792
  48. package/src/components/CnRowActions/CnRowActions.vue +95 -73
  49. package/src/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue +226 -226
  50. package/src/components/CnSchemaFormDialog/CnSchemaFormDialog.vue +787 -787
  51. package/src/components/CnSchemaFormDialog/CnSchemaPropertiesTab.vue +305 -305
  52. package/src/components/CnSchemaFormDialog/CnSchemaPropertyActions.vue +1398 -1398
  53. package/src/components/CnSchemaFormDialog/CnSchemaSecurityTab.vue +236 -236
  54. package/src/components/CnSettingsCard/CnSettingsCard.vue +92 -92
  55. package/src/components/CnSettingsSection/CnSettingsSection.vue +266 -266
  56. package/src/components/CnStatsBlock/CnStatsBlock.vue +420 -420
  57. package/src/components/CnStatusBadge/CnStatusBadge.vue +77 -77
  58. package/src/components/CnTabbedFormDialog/CnTabbedFormDialog.vue +540 -540
  59. package/src/components/CnTasksCard/CnTasksCard.vue +373 -373
  60. package/src/components/CnTileWidget/CnTileWidget.vue +159 -159
  61. package/src/components/CnTimelineStages/CnTimelineStages.vue +292 -292
  62. package/src/components/CnUserActionMenu/CnUserActionMenu.vue +435 -435
  63. package/src/components/CnVersionInfoCard/CnVersionInfoCard.vue +312 -312
  64. package/src/components/CnWidgetRenderer/CnWidgetRenderer.vue +180 -180
  65. package/src/components/CnWidgetWrapper/CnWidgetWrapper.vue +211 -211
  66. package/src/index.js +1 -1
  67. package/src/types/notification.d.ts +13 -13
  68. package/src/types/organisation.d.ts +15 -15
  69. package/src/types/schema.d.ts +13 -13
  70. package/src/types/task.d.ts +6 -6
  71. 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>