@conduction/nextcloud-vue 0.1.0-beta.3 → 0.1.0-beta.5

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 (142) hide show
  1. package/README.md +226 -226
  2. package/dist/nextcloud-vue.cjs +67614 -0
  3. package/dist/nextcloud-vue.cjs.js +58386 -6112
  4. package/dist/nextcloud-vue.cjs.js.map +1 -1
  5. package/dist/nextcloud-vue.cjs.map +1 -0
  6. package/dist/nextcloud-vue.css +1819 -285
  7. package/dist/nextcloud-vue.esm.js +58342 -6088
  8. package/dist/nextcloud-vue.esm.js.map +1 -1
  9. package/package.json +82 -62
  10. package/src/components/CnActionsBar/CnActionsBar.vue +17 -7
  11. package/src/components/CnActionsBar/index.js +1 -1
  12. package/src/components/CnAdvancedFormDialog/CnAdvancedFormDialog.vue +579 -0
  13. package/src/components/CnAdvancedFormDialog/CnDataTab.vue +217 -0
  14. package/src/components/CnAdvancedFormDialog/CnMetadataTab.vue +121 -0
  15. package/src/components/CnAdvancedFormDialog/CnPropertiesTab.vue +418 -0
  16. package/src/components/CnAdvancedFormDialog/CnPropertyValueCell.vue +247 -0
  17. package/src/components/CnAdvancedFormDialog/index.js +1 -0
  18. package/src/components/CnCardGrid/CnCardGrid.vue +1 -1
  19. package/src/components/CnCardGrid/index.js +1 -1
  20. package/src/components/CnCellRenderer/index.js +1 -1
  21. package/src/components/CnChartWidget/CnChartWidget.vue +320 -0
  22. package/src/components/CnChartWidget/index.js +1 -0
  23. package/src/components/CnConfigurationCard/index.js +1 -1
  24. package/src/components/CnCopyDialog/CnCopyDialog.vue +250 -250
  25. package/src/components/CnDashboardGrid/CnDashboardGrid.vue +225 -0
  26. package/src/components/CnDashboardGrid/index.js +1 -0
  27. package/src/components/CnDashboardPage/CnDashboardPage.vue +390 -0
  28. package/src/components/CnDashboardPage/index.js +1 -0
  29. package/src/components/CnDataTable/CnDataTable.vue +1 -1
  30. package/src/components/CnDataTable/index.js +1 -1
  31. package/src/components/CnDeleteDialog/CnDeleteDialog.vue +170 -170
  32. package/src/components/CnDetailCard/CnDetailCard.vue +214 -0
  33. package/src/components/CnDetailCard/index.js +1 -0
  34. package/src/components/CnDetailPage/CnDetailPage.vue +285 -0
  35. package/src/components/CnDetailPage/index.js +1 -0
  36. package/src/components/CnFacetSidebar/CnFacetSidebar.vue +9 -1
  37. package/src/components/CnFacetSidebar/index.js +1 -1
  38. package/src/components/CnFilterBar/index.js +1 -1
  39. package/src/components/CnFormDialog/CnFormDialog.vue +302 -11
  40. package/src/components/CnIcon/index.js +1 -1
  41. package/src/components/CnIndexPage/CnIndexPage.vue +71 -3
  42. package/src/components/CnIndexPage/index.js +1 -1
  43. package/src/components/CnIndexSidebar/CnIndexSidebar.vue +121 -102
  44. package/src/components/CnIndexSidebar/index.js +1 -1
  45. package/src/components/CnItemCard/CnItemCard.vue +132 -0
  46. package/src/components/CnItemCard/index.js +1 -0
  47. package/src/components/CnKpiGrid/index.js +1 -1
  48. package/src/components/CnMassActionBar/index.js +1 -1
  49. package/src/components/CnMassCopyDialog/index.js +1 -1
  50. package/src/components/CnMassDeleteDialog/index.js +1 -1
  51. package/src/components/CnMassExportDialog/index.js +1 -1
  52. package/src/components/CnMassImportDialog/index.js +1 -1
  53. package/src/components/CnNoteCard/CnNoteCard.vue +149 -0
  54. package/src/components/CnNoteCard/index.js +1 -0
  55. package/src/components/CnNotesCard/CnNotesCard.vue +413 -0
  56. package/src/components/CnNotesCard/index.js +1 -0
  57. package/src/components/CnObjectCard/CnObjectCard.vue +1 -1
  58. package/src/components/CnObjectCard/index.js +1 -1
  59. package/src/components/CnObjectSidebar/CnObjectSidebar.vue +876 -0
  60. package/src/components/CnObjectSidebar/index.js +1 -0
  61. package/src/components/CnPageHeader/index.js +1 -1
  62. package/src/components/CnPagination/index.js +1 -1
  63. package/src/components/CnRegisterMapping/CnRegisterMapping.vue +792 -792
  64. package/src/components/CnRowActions/CnRowActions.vue +25 -3
  65. package/src/components/CnRowActions/index.js +1 -1
  66. package/src/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue +226 -0
  67. package/src/components/CnSchemaFormDialog/CnSchemaFormDialog.vue +787 -0
  68. package/src/components/CnSchemaFormDialog/CnSchemaPropertiesTab.vue +305 -0
  69. package/src/components/CnSchemaFormDialog/CnSchemaPropertyActions.vue +1398 -0
  70. package/src/components/CnSchemaFormDialog/CnSchemaSecurityTab.vue +236 -0
  71. package/src/components/CnSchemaFormDialog/index.js +1 -0
  72. package/src/components/CnSettingsCard/index.js +1 -1
  73. package/src/components/CnSettingsSection/index.js +1 -1
  74. package/src/components/CnStatsBlock/CnStatsBlock.vue +62 -8
  75. package/src/components/CnStatsBlock/index.js +1 -1
  76. package/src/components/CnStatusBadge/index.js +1 -1
  77. package/src/components/CnTabbedFormDialog/CnTabbedFormDialog.vue +540 -0
  78. package/src/components/CnTabbedFormDialog/index.js +1 -0
  79. package/src/components/CnTasksCard/CnTasksCard.vue +373 -0
  80. package/src/components/CnTasksCard/index.js +1 -0
  81. package/src/components/CnTileWidget/CnTileWidget.vue +159 -0
  82. package/src/components/CnTileWidget/index.js +1 -0
  83. package/src/components/CnTimelineStages/CnTimelineStages.vue +292 -0
  84. package/src/components/CnTimelineStages/index.js +1 -0
  85. package/src/components/CnUserActionMenu/CnUserActionMenu.vue +435 -0
  86. package/src/components/CnUserActionMenu/index.js +1 -0
  87. package/src/components/CnVersionInfoCard/index.js +1 -1
  88. package/src/components/CnWidgetRenderer/CnWidgetRenderer.vue +180 -0
  89. package/src/components/CnWidgetRenderer/index.js +1 -0
  90. package/src/components/CnWidgetWrapper/CnWidgetWrapper.vue +211 -0
  91. package/src/components/CnWidgetWrapper/index.js +1 -0
  92. package/src/components/index.js +43 -29
  93. package/src/composables/index.js +4 -3
  94. package/src/composables/useDashboardView.js +240 -0
  95. package/src/composables/useDetailView.js +289 -132
  96. package/src/composables/useListView.js +363 -362
  97. package/src/composables/useSubResource.js +142 -142
  98. package/src/constants/metadata.js +30 -30
  99. package/src/css/CnSchemaFormDialog.css +546 -0
  100. package/src/css/__sample_nextcloud_tokens.css +110 -0
  101. package/src/css/actions-bar.css +48 -48
  102. package/src/css/badge.css +51 -51
  103. package/src/css/card.css +128 -128
  104. package/src/css/dashboard.css +70 -0
  105. package/src/css/detail-page.css +168 -0
  106. package/src/css/detail.css +68 -68
  107. package/src/css/index-page.css +44 -32
  108. package/src/css/index-sidebar.css +193 -187
  109. package/src/css/index.css +16 -12
  110. package/src/css/layout.css +90 -90
  111. package/src/css/page-header.css +33 -33
  112. package/src/css/pagination.css +72 -72
  113. package/src/css/table.css +142 -142
  114. package/src/css/timeline-stages.css +218 -0
  115. package/src/css/utilities.css +46 -46
  116. package/src/index.js +72 -53
  117. package/src/store/createSubResourcePlugin.js +135 -135
  118. package/src/store/index.js +3 -3
  119. package/src/store/plugins/auditTrails.js +17 -17
  120. package/src/store/plugins/files.js +250 -186
  121. package/src/store/plugins/index.js +7 -5
  122. package/src/store/plugins/lifecycle.js +180 -180
  123. package/src/store/plugins/relations.js +68 -68
  124. package/src/store/plugins/search.js +372 -0
  125. package/src/store/plugins/selection.js +104 -0
  126. package/src/store/useObjectStore.js +829 -686
  127. package/src/types/auditTrail.d.ts +32 -32
  128. package/src/types/file.d.ts +23 -23
  129. package/src/types/index.d.ts +35 -35
  130. package/src/types/notification.d.ts +36 -36
  131. package/src/types/object.d.ts +40 -40
  132. package/src/types/organisation.d.ts +41 -41
  133. package/src/types/register.d.ts +25 -25
  134. package/src/types/schema.d.ts +39 -39
  135. package/src/types/shared.d.ts +79 -79
  136. package/src/types/source.d.ts +14 -14
  137. package/src/types/task.d.ts +31 -31
  138. package/src/utils/errors.js +96 -96
  139. package/src/utils/headers.js +68 -50
  140. package/src/utils/id.js +13 -0
  141. package/src/utils/index.js +3 -3
  142. package/src/utils/schema.js +422 -419
@@ -1,170 +1,170 @@
1
- <template>
2
- <NcDialog
3
- :name="dialogTitle"
4
- size="small"
5
- :can-close="!loading"
6
- @closing="$emit('close')">
7
- <!-- Result phase -->
8
- <div v-if="result !== null" class="cn-delete__result">
9
- <NcNoteCard v-if="result.success" type="success">
10
- {{ successText }}
11
- </NcNoteCard>
12
- <NcNoteCard v-if="result.error" type="error">
13
- {{ result.error }}
14
- </NcNoteCard>
15
- </div>
16
-
17
- <!-- Confirm phase -->
18
- <div v-else class="cn-delete__confirm">
19
- <NcNoteCard type="warning">
20
- {{ resolvedWarningText }}
21
- </NcNoteCard>
22
- </div>
23
-
24
- <template #actions>
25
- <NcButton @click="$emit('close')">
26
- {{ result !== null ? closeLabel : cancelLabel }}
27
- </NcButton>
28
- <NcButton
29
- v-if="result === null"
30
- type="error"
31
- :disabled="loading"
32
- @click="executeDelete">
33
- <template #icon>
34
- <NcLoadingIcon v-if="loading" :size="20" />
35
- <TrashCanOutline v-else :size="20" />
36
- </template>
37
- {{ confirmLabel }}
38
- </NcButton>
39
- </template>
40
- </NcDialog>
41
- </template>
42
-
43
- <script>
44
- import { NcDialog, NcButton, NcNoteCard, NcLoadingIcon } from '@nextcloud/vue'
45
- import TrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'
46
-
47
- /**
48
- * CnDeleteDialog — Single-item delete confirmation dialog.
49
- *
50
- * Two-phase UI: confirm then result. The dialog does NOT perform the delete
51
- * itself — it emits a `confirm` event with the item ID. The parent performs
52
- * the actual API call and calls `setResult()` via a ref.
53
- *
54
- * @example
55
- * <CnDeleteDialog
56
- * v-if="showDeleteDialog"
57
- * ref="deleteDialog"
58
- * :item="itemToDelete"
59
- * @confirm="onDeleteConfirm"
60
- * @close="showDeleteDialog = false" />
61
- *
62
- * // In methods:
63
- * async onDeleteConfirm(id) {
64
- * try {
65
- * await store.deleteItem(id)
66
- * this.$refs.deleteDialog.setResult({ success: true })
67
- * } catch (e) {
68
- * this.$refs.deleteDialog.setResult({ error: e.message })
69
- * }
70
- * }
71
- */
72
- export default {
73
- name: 'CnDeleteDialog',
74
-
75
- components: {
76
- NcDialog,
77
- NcButton,
78
- NcNoteCard,
79
- NcLoadingIcon,
80
- TrashCanOutline,
81
- },
82
-
83
- props: {
84
- /** The item to delete. Must have an `id` property. */
85
- item: {
86
- type: Object,
87
- required: true,
88
- },
89
- /** Property name used for display (e.g., 'title', 'name') */
90
- nameField: {
91
- type: String,
92
- default: 'title',
93
- },
94
- /** Dialog title */
95
- dialogTitle: {
96
- type: String,
97
- default: 'Delete Item',
98
- },
99
- /** Warning text. Use `{name}` as placeholder for the item name. */
100
- warningText: {
101
- type: String,
102
- default: 'Are you sure you want to permanently delete "{name}"? This action cannot be undone.',
103
- },
104
- /** Success message */
105
- successText: {
106
- type: String,
107
- default: 'Item successfully deleted.',
108
- },
109
- cancelLabel: { type: String, default: 'Cancel' },
110
- closeLabel: { type: String, default: 'Close' },
111
- confirmLabel: { type: String, default: 'Delete' },
112
- },
113
-
114
- data() {
115
- return {
116
- loading: false,
117
- result: null,
118
- closeTimeout: null,
119
- }
120
- },
121
-
122
- computed: {
123
- itemName() {
124
- return this.item[this.nameField] || this.item.name || this.item.title || this.item.id
125
- },
126
- resolvedWarningText() {
127
- return this.warningText.replace('{name}', this.itemName)
128
- },
129
- },
130
-
131
- beforeDestroy() {
132
- if (this.closeTimeout) clearTimeout(this.closeTimeout)
133
- },
134
-
135
- /**
136
- * @event confirm Emitted when the user confirms deletion. Payload: the item ID.
137
- * @event close Emitted when the dialog should be closed (cancel, close button, or auto-close after success).
138
- */
139
-
140
- methods: {
141
- executeDelete() {
142
- this.loading = true
143
- this.$emit('confirm', this.item.id)
144
- },
145
-
146
- /**
147
- * Set the result of the delete operation. Call this from the parent
148
- * after the API call completes.
149
- *
150
- * @param {{ success?: boolean, error?: string }} resultData
151
- * @public
152
- */
153
- setResult(resultData) {
154
- this.loading = false
155
- this.result = resultData
156
- if (resultData.success) {
157
- this.closeTimeout = setTimeout(() => {
158
- this.$emit('close')
159
- }, 2000)
160
- }
161
- },
162
- },
163
- }
164
- </script>
165
-
166
- <style scoped>
167
- .cn-delete__confirm {
168
- padding: 4px 0;
169
- }
170
- </style>
1
+ <template>
2
+ <NcDialog
3
+ :name="dialogTitle"
4
+ size="small"
5
+ :can-close="!loading"
6
+ @closing="$emit('close')">
7
+ <!-- Result phase -->
8
+ <div v-if="result !== null" class="cn-delete__result">
9
+ <NcNoteCard v-if="result.success" type="success">
10
+ {{ successText }}
11
+ </NcNoteCard>
12
+ <NcNoteCard v-if="result.error" type="error">
13
+ {{ result.error }}
14
+ </NcNoteCard>
15
+ </div>
16
+
17
+ <!-- Confirm phase -->
18
+ <div v-else class="cn-delete__confirm">
19
+ <NcNoteCard type="warning">
20
+ {{ resolvedWarningText }}
21
+ </NcNoteCard>
22
+ </div>
23
+
24
+ <template #actions>
25
+ <NcButton @click="$emit('close')">
26
+ {{ result !== null ? closeLabel : cancelLabel }}
27
+ </NcButton>
28
+ <NcButton
29
+ v-if="result === null"
30
+ type="error"
31
+ :disabled="loading"
32
+ @click="executeDelete">
33
+ <template #icon>
34
+ <NcLoadingIcon v-if="loading" :size="20" />
35
+ <TrashCanOutline v-else :size="20" />
36
+ </template>
37
+ {{ confirmLabel }}
38
+ </NcButton>
39
+ </template>
40
+ </NcDialog>
41
+ </template>
42
+
43
+ <script>
44
+ import { NcDialog, NcButton, NcNoteCard, NcLoadingIcon } from '@nextcloud/vue'
45
+ import TrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'
46
+
47
+ /**
48
+ * CnDeleteDialog — Single-item delete confirmation dialog.
49
+ *
50
+ * Two-phase UI: confirm then result. The dialog does NOT perform the delete
51
+ * itself — it emits a `confirm` event with the item ID. The parent performs
52
+ * the actual API call and calls `setResult()` via a ref.
53
+ *
54
+ * @example
55
+ * <CnDeleteDialog
56
+ * v-if="showDeleteDialog"
57
+ * ref="deleteDialog"
58
+ * :item="itemToDelete"
59
+ * @confirm="onDeleteConfirm"
60
+ * @close="showDeleteDialog = false" />
61
+ *
62
+ * // In methods:
63
+ * async onDeleteConfirm(id) {
64
+ * try {
65
+ * await store.deleteItem(id)
66
+ * this.$refs.deleteDialog.setResult({ success: true })
67
+ * } catch (e) {
68
+ * this.$refs.deleteDialog.setResult({ error: e.message })
69
+ * }
70
+ * }
71
+ */
72
+ export default {
73
+ name: 'CnDeleteDialog',
74
+
75
+ components: {
76
+ NcDialog,
77
+ NcButton,
78
+ NcNoteCard,
79
+ NcLoadingIcon,
80
+ TrashCanOutline,
81
+ },
82
+
83
+ props: {
84
+ /** The item to delete. Must have an `id` property. */
85
+ item: {
86
+ type: Object,
87
+ required: true,
88
+ },
89
+ /** Property name used for display (e.g., 'title', 'name') */
90
+ nameField: {
91
+ type: String,
92
+ default: 'title',
93
+ },
94
+ /** Dialog title */
95
+ dialogTitle: {
96
+ type: String,
97
+ default: 'Delete Item',
98
+ },
99
+ /** Warning text. Use `{name}` as placeholder for the item name. */
100
+ warningText: {
101
+ type: String,
102
+ default: 'Are you sure you want to permanently delete "{name}"? This action cannot be undone.',
103
+ },
104
+ /** Success message */
105
+ successText: {
106
+ type: String,
107
+ default: 'Item successfully deleted.',
108
+ },
109
+ cancelLabel: { type: String, default: 'Cancel' },
110
+ closeLabel: { type: String, default: 'Close' },
111
+ confirmLabel: { type: String, default: 'Delete' },
112
+ },
113
+
114
+ data() {
115
+ return {
116
+ loading: false,
117
+ result: null,
118
+ closeTimeout: null,
119
+ }
120
+ },
121
+
122
+ computed: {
123
+ itemName() {
124
+ return this.item[this.nameField] || this.item.name || this.item.title || this.item.id
125
+ },
126
+ resolvedWarningText() {
127
+ return this.warningText.replace('{name}', this.itemName)
128
+ },
129
+ },
130
+
131
+ beforeDestroy() {
132
+ if (this.closeTimeout) clearTimeout(this.closeTimeout)
133
+ },
134
+
135
+ /**
136
+ * @event confirm Emitted when the user confirms deletion. Payload: the item ID.
137
+ * @event close Emitted when the dialog should be closed (cancel, close button, or auto-close after success).
138
+ */
139
+
140
+ methods: {
141
+ executeDelete() {
142
+ this.loading = true
143
+ this.$emit('confirm', this.item.id)
144
+ },
145
+
146
+ /**
147
+ * Set the result of the delete operation. Call this from the parent
148
+ * after the API call completes.
149
+ *
150
+ * @param {{ success?: boolean, error?: string }} resultData
151
+ * @public
152
+ */
153
+ setResult(resultData) {
154
+ this.loading = false
155
+ this.result = resultData
156
+ if (resultData.success) {
157
+ this.closeTimeout = setTimeout(() => {
158
+ this.$emit('close')
159
+ }, 2000)
160
+ }
161
+ },
162
+ },
163
+ }
164
+ </script>
165
+
166
+ <style scoped>
167
+ .cn-delete__confirm {
168
+ padding: 4px 0;
169
+ }
170
+ </style>
@@ -0,0 +1,214 @@
1
+ <!--
2
+ CnDetailCard — A card container for detail page sections.
3
+
4
+ Visually matches the dashboard widget card style (rounded border, header, content).
5
+ Used inside CnDetailPage to organize entity detail information into cards.
6
+ -->
7
+ <template>
8
+ <div class="cn-detail-card" :class="{ 'cn-detail-card--collapsed': isCollapsed }">
9
+ <!-- Header -->
10
+ <div
11
+ v-if="title || $slots.icon"
12
+ class="cn-detail-card__header"
13
+ :class="{ 'cn-detail-card__header--clickable': collapsible }"
14
+ @click="collapsible && toggleCollapse()">
15
+ <div class="cn-detail-card__header-left">
16
+ <slot name="icon">
17
+ <component
18
+ :is="icon"
19
+ v-if="icon"
20
+ :size="20"
21
+ class="cn-detail-card__icon" />
22
+ </slot>
23
+ <h3 class="cn-detail-card__title">
24
+ {{ title }}
25
+ </h3>
26
+ </div>
27
+ <div class="cn-detail-card__header-right">
28
+ <slot name="header-actions" />
29
+ <button
30
+ v-if="collapsible"
31
+ class="cn-detail-card__collapse-btn"
32
+ :aria-label="isCollapsed ? 'Expand' : 'Collapse'">
33
+ <ChevronDown
34
+ :size="20"
35
+ :class="{ 'cn-detail-card__chevron--rotated': isCollapsed }" />
36
+ </button>
37
+ </div>
38
+ </div>
39
+
40
+ <!-- Content -->
41
+ <div v-show="!isCollapsed" class="cn-detail-card__content">
42
+ <slot />
43
+ </div>
44
+
45
+ <!-- Footer -->
46
+ <div v-if="$slots.footer" v-show="!isCollapsed" class="cn-detail-card__footer">
47
+ <slot name="footer" />
48
+ </div>
49
+ </div>
50
+ </template>
51
+
52
+ <script>
53
+ import ChevronDown from 'vue-material-design-icons/ChevronDown.vue'
54
+
55
+ /**
56
+ * CnDetailCard — Card container for detail page sections.
57
+ *
58
+ * @example Basic usage
59
+ * <CnDetailCard title="Core Info">
60
+ * <div class="info-grid">...</div>
61
+ * </CnDetailCard>
62
+ *
63
+ * @example With icon and actions
64
+ * <CnDetailCard title="Pipeline" :icon="ChartIcon">
65
+ * <template #header-actions>
66
+ * <NcButton>Edit</NcButton>
67
+ * </template>
68
+ * <PipelineProgress :stages="stages" />
69
+ * </CnDetailCard>
70
+ *
71
+ * @example Collapsible
72
+ * <CnDetailCard title="Products" :collapsible="true">
73
+ * <ProductList :items="products" />
74
+ * </CnDetailCard>
75
+ */
76
+ export default {
77
+ name: 'CnDetailCard',
78
+
79
+ components: {
80
+ ChevronDown,
81
+ },
82
+
83
+ props: {
84
+ /** Card header title */
85
+ title: {
86
+ type: String,
87
+ default: '',
88
+ },
89
+ /** Optional MDI icon component for the header */
90
+ icon: {
91
+ type: [Object, Function],
92
+ default: null,
93
+ },
94
+ /** Whether the card can be collapsed */
95
+ collapsible: {
96
+ type: Boolean,
97
+ default: false,
98
+ },
99
+ /** Initial collapsed state (only relevant when collapsible is true) */
100
+ collapsed: {
101
+ type: Boolean,
102
+ default: false,
103
+ },
104
+ },
105
+
106
+ data() {
107
+ return {
108
+ isCollapsed: this.collapsed,
109
+ }
110
+ },
111
+
112
+ watch: {
113
+ collapsed(val) {
114
+ this.isCollapsed = val
115
+ },
116
+ },
117
+
118
+ methods: {
119
+ toggleCollapse() {
120
+ this.isCollapsed = !this.isCollapsed
121
+ this.$emit('update:collapsed', this.isCollapsed)
122
+ },
123
+ },
124
+ }
125
+ </script>
126
+
127
+ <style scoped>
128
+ .cn-detail-card {
129
+ background: var(--color-main-background);
130
+ border: 1px solid var(--color-border);
131
+ border-radius: var(--border-radius-large, 12px);
132
+ overflow: hidden;
133
+ }
134
+
135
+ .cn-detail-card__header {
136
+ display: flex;
137
+ align-items: center;
138
+ justify-content: space-between;
139
+ padding: 12px 16px;
140
+ border-bottom: 1px solid var(--color-border);
141
+ flex-shrink: 0;
142
+ }
143
+
144
+ .cn-detail-card__header--clickable {
145
+ cursor: pointer;
146
+ user-select: none;
147
+ }
148
+
149
+ .cn-detail-card__header--clickable:hover {
150
+ background: var(--color-background-hover);
151
+ }
152
+
153
+ .cn-detail-card--collapsed .cn-detail-card__header {
154
+ border-bottom: none;
155
+ }
156
+
157
+ .cn-detail-card__header-left {
158
+ display: flex;
159
+ align-items: center;
160
+ gap: 8px;
161
+ min-width: 0;
162
+ }
163
+
164
+ .cn-detail-card__header-right {
165
+ display: flex;
166
+ align-items: center;
167
+ gap: 4px;
168
+ flex-shrink: 0;
169
+ }
170
+
171
+ .cn-detail-card__icon {
172
+ color: var(--color-primary-element);
173
+ flex-shrink: 0;
174
+ }
175
+
176
+ .cn-detail-card__title {
177
+ font-weight: 600;
178
+ font-size: 14px;
179
+ margin: 0;
180
+ white-space: nowrap;
181
+ overflow: hidden;
182
+ text-overflow: ellipsis;
183
+ }
184
+
185
+ .cn-detail-card__collapse-btn {
186
+ display: flex;
187
+ align-items: center;
188
+ justify-content: center;
189
+ background: none;
190
+ border: none;
191
+ padding: 4px;
192
+ cursor: pointer;
193
+ color: var(--color-text-maxcontrast);
194
+ border-radius: var(--border-radius);
195
+ }
196
+
197
+ .cn-detail-card__collapse-btn:hover {
198
+ background: var(--color-background-dark);
199
+ }
200
+
201
+ .cn-detail-card__chevron--rotated {
202
+ transform: rotate(-90deg);
203
+ transition: transform 0.2s ease;
204
+ }
205
+
206
+ .cn-detail-card__content {
207
+ padding: 16px;
208
+ }
209
+
210
+ .cn-detail-card__footer {
211
+ padding: 8px 16px;
212
+ border-top: 1px solid var(--color-border);
213
+ }
214
+ </style>
@@ -0,0 +1 @@
1
+ export { default as CnDetailCard } from './CnDetailCard.vue'