@conduction/nextcloud-vue 0.1.0-beta.4 → 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 (68) hide show
  1. package/dist/nextcloud-vue.cjs +67614 -0
  2. package/dist/nextcloud-vue.cjs.js +9554 -8980
  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 +9554 -8980
  7. package/dist/nextcloud-vue.esm.js.map +1 -1
  8. package/package.json +11 -4
  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/CnObjectSidebar/CnObjectSidebar.vue +876 -876
  43. package/src/components/CnPageHeader/CnPageHeader.vue +57 -57
  44. package/src/components/CnPagination/CnPagination.vue +252 -252
  45. package/src/components/CnRegisterMapping/CnRegisterMapping.vue +792 -792
  46. package/src/components/CnRowActions/CnRowActions.vue +95 -73
  47. package/src/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue +226 -226
  48. package/src/components/CnSchemaFormDialog/CnSchemaFormDialog.vue +787 -787
  49. package/src/components/CnSchemaFormDialog/CnSchemaPropertiesTab.vue +305 -305
  50. package/src/components/CnSchemaFormDialog/CnSchemaPropertyActions.vue +1398 -1398
  51. package/src/components/CnSchemaFormDialog/CnSchemaSecurityTab.vue +236 -236
  52. package/src/components/CnSettingsCard/CnSettingsCard.vue +92 -92
  53. package/src/components/CnSettingsSection/CnSettingsSection.vue +266 -266
  54. package/src/components/CnStatsBlock/CnStatsBlock.vue +420 -420
  55. package/src/components/CnStatusBadge/CnStatusBadge.vue +77 -77
  56. package/src/components/CnTabbedFormDialog/CnTabbedFormDialog.vue +540 -540
  57. package/src/components/CnTasksCard/CnTasksCard.vue +373 -373
  58. package/src/components/CnTileWidget/CnTileWidget.vue +159 -159
  59. package/src/components/CnTimelineStages/CnTimelineStages.vue +292 -292
  60. package/src/components/CnUserActionMenu/CnUserActionMenu.vue +435 -435
  61. package/src/components/CnVersionInfoCard/CnVersionInfoCard.vue +312 -312
  62. package/src/components/CnWidgetRenderer/CnWidgetRenderer.vue +180 -180
  63. package/src/components/CnWidgetWrapper/CnWidgetWrapper.vue +211 -211
  64. package/src/index.js +1 -1
  65. package/src/types/notification.d.ts +13 -13
  66. package/src/types/organisation.d.ts +15 -15
  67. package/src/types/schema.d.ts +13 -13
  68. package/src/types/task.d.ts +6 -6
@@ -1,159 +1,159 @@
1
- <!--
2
- CnTileWidget — Quick-access tile with icon and link.
3
-
4
- A simple, colorful tile for app shortcuts or external links.
5
- Supports SVG paths, CSS icon classes, image URLs, and emoji icons.
6
- -->
7
- <template>
8
- <div
9
- v-if="tile"
10
- class="cn-tile-widget"
11
- :style="tileStyles">
12
- <a
13
- :href="tileUrl"
14
- class="cn-tile-widget__link"
15
- :target="tile.linkType === 'url' ? '_blank' : '_self'"
16
- rel="noopener noreferrer">
17
- <!-- SVG icon -->
18
- <svg
19
- v-if="tile.iconType === 'svg'"
20
- class="cn-tile-widget__icon cn-tile-widget__icon--svg"
21
- :style="{ fill: tile.textColor || '#ffffff' }"
22
- viewBox="0 0 24 24">
23
- <path :d="tile.icon" />
24
- </svg>
25
- <!-- Other icon types -->
26
- <div v-else class="cn-tile-widget__icon">
27
- <span v-if="tile.iconType === 'class'" :class="['icon', tile.icon]" />
28
- <img v-else-if="tile.iconType === 'url'" :src="tile.icon" alt="">
29
- <span v-else-if="tile.iconType === 'emoji'" class="cn-tile-widget__emoji">{{ tile.icon }}</span>
30
- </div>
31
- <div class="cn-tile-widget__title" :style="{ color: tile.textColor || '#ffffff' }">
32
- {{ tile.title }}
33
- </div>
34
- </a>
35
- </div>
36
- </template>
37
-
38
- <script>
39
- import { generateUrl } from '@nextcloud/router'
40
-
41
- /**
42
- * CnTileWidget — Quick-access tile with icon and link.
43
- *
44
- * @example
45
- * <CnTileWidget :tile="{
46
- * title: 'Files',
47
- * icon: 'M12,2C6.48,...',
48
- * iconType: 'svg',
49
- * backgroundColor: '#0082c9',
50
- * textColor: '#ffffff',
51
- * linkType: 'app',
52
- * linkValue: 'files',
53
- * }" />
54
- */
55
- export default {
56
- name: 'CnTileWidget',
57
-
58
- props: {
59
- /**
60
- * Tile configuration object.
61
- * @type {{ title: string, icon: string, iconType: 'svg'|'class'|'url'|'emoji', backgroundColor?: string, textColor?: string, linkType: 'app'|'url', linkValue: string }}
62
- */
63
- tile: {
64
- type: Object,
65
- required: true,
66
- },
67
- },
68
-
69
- computed: {
70
- tileUrl() {
71
- if (this.tile.linkType === 'app') {
72
- return generateUrl('/apps/' + this.tile.linkValue)
73
- }
74
- return this.tile.linkValue || '#'
75
- },
76
-
77
- tileStyles() {
78
- return {
79
- '--cn-tile-bg': this.tile.backgroundColor || '#0082c9',
80
- '--cn-tile-text': this.tile.textColor || '#ffffff',
81
- }
82
- },
83
- },
84
- }
85
- </script>
86
-
87
- <style scoped>
88
- .cn-tile-widget {
89
- height: 100%;
90
- width: 100%;
91
- position: absolute;
92
- top: 0;
93
- left: 0;
94
- overflow: hidden;
95
- background-color: var(--cn-tile-bg);
96
- }
97
-
98
- .cn-tile-widget__link {
99
- display: flex;
100
- flex-direction: column;
101
- align-items: center;
102
- justify-content: center;
103
- height: 100%;
104
- width: 100%;
105
- text-decoration: none;
106
- padding: 20px;
107
- gap: 12px;
108
- transition: transform 0.2s ease, opacity 0.2s ease;
109
- background-color: var(--cn-tile-bg);
110
- color: var(--cn-tile-text);
111
- }
112
-
113
- .cn-tile-widget__link:hover {
114
- transform: scale(1.02);
115
- opacity: 0.95;
116
- }
117
-
118
- .cn-tile-widget__icon {
119
- font-size: 48px;
120
- width: 48px;
121
- height: 48px;
122
- display: flex;
123
- align-items: center;
124
- justify-content: center;
125
- flex-shrink: 0;
126
- }
127
-
128
- .cn-tile-widget__icon--svg {
129
- width: 48px;
130
- height: 48px;
131
- }
132
-
133
- .cn-tile-widget__icon span.icon {
134
- display: inline-block;
135
- width: 48px;
136
- height: 48px;
137
- background-size: 48px;
138
- filter: brightness(0) invert(1);
139
- }
140
-
141
- .cn-tile-widget__icon img {
142
- width: 100%;
143
- height: 100%;
144
- object-fit: contain;
145
- }
146
-
147
- .cn-tile-widget__emoji {
148
- font-size: 48px;
149
- }
150
-
151
- .cn-tile-widget__title {
152
- font-size: 16px;
153
- font-weight: 700;
154
- text-align: center;
155
- word-break: break-word;
156
- line-height: 1.3;
157
- color: var(--cn-tile-text);
158
- }
159
- </style>
1
+ <!--
2
+ CnTileWidget — Quick-access tile with icon and link.
3
+
4
+ A simple, colorful tile for app shortcuts or external links.
5
+ Supports SVG paths, CSS icon classes, image URLs, and emoji icons.
6
+ -->
7
+ <template>
8
+ <div
9
+ v-if="tile"
10
+ class="cn-tile-widget"
11
+ :style="tileStyles">
12
+ <a
13
+ :href="tileUrl"
14
+ class="cn-tile-widget__link"
15
+ :target="tile.linkType === 'url' ? '_blank' : '_self'"
16
+ rel="noopener noreferrer">
17
+ <!-- SVG icon -->
18
+ <svg
19
+ v-if="tile.iconType === 'svg'"
20
+ class="cn-tile-widget__icon cn-tile-widget__icon--svg"
21
+ :style="{ fill: tile.textColor || '#ffffff' }"
22
+ viewBox="0 0 24 24">
23
+ <path :d="tile.icon" />
24
+ </svg>
25
+ <!-- Other icon types -->
26
+ <div v-else class="cn-tile-widget__icon">
27
+ <span v-if="tile.iconType === 'class'" :class="['icon', tile.icon]" />
28
+ <img v-else-if="tile.iconType === 'url'" :src="tile.icon" alt="">
29
+ <span v-else-if="tile.iconType === 'emoji'" class="cn-tile-widget__emoji">{{ tile.icon }}</span>
30
+ </div>
31
+ <div class="cn-tile-widget__title" :style="{ color: tile.textColor || '#ffffff' }">
32
+ {{ tile.title }}
33
+ </div>
34
+ </a>
35
+ </div>
36
+ </template>
37
+
38
+ <script>
39
+ import { generateUrl } from '@nextcloud/router'
40
+
41
+ /**
42
+ * CnTileWidget — Quick-access tile with icon and link.
43
+ *
44
+ * @example
45
+ * <CnTileWidget :tile="{
46
+ * title: 'Files',
47
+ * icon: 'M12,2C6.48,...',
48
+ * iconType: 'svg',
49
+ * backgroundColor: '#0082c9',
50
+ * textColor: '#ffffff',
51
+ * linkType: 'app',
52
+ * linkValue: 'files',
53
+ * }" />
54
+ */
55
+ export default {
56
+ name: 'CnTileWidget',
57
+
58
+ props: {
59
+ /**
60
+ * Tile configuration object.
61
+ * @type {{ title: string, icon: string, iconType: 'svg'|'class'|'url'|'emoji', backgroundColor?: string, textColor?: string, linkType: 'app'|'url', linkValue: string }}
62
+ */
63
+ tile: {
64
+ type: Object,
65
+ required: true,
66
+ },
67
+ },
68
+
69
+ computed: {
70
+ tileUrl() {
71
+ if (this.tile.linkType === 'app') {
72
+ return generateUrl('/apps/' + this.tile.linkValue)
73
+ }
74
+ return this.tile.linkValue || '#'
75
+ },
76
+
77
+ tileStyles() {
78
+ return {
79
+ '--cn-tile-bg': this.tile.backgroundColor || '#0082c9',
80
+ '--cn-tile-text': this.tile.textColor || '#ffffff',
81
+ }
82
+ },
83
+ },
84
+ }
85
+ </script>
86
+
87
+ <style scoped>
88
+ .cn-tile-widget {
89
+ height: 100%;
90
+ width: 100%;
91
+ position: absolute;
92
+ top: 0;
93
+ left: 0;
94
+ overflow: hidden;
95
+ background-color: var(--cn-tile-bg);
96
+ }
97
+
98
+ .cn-tile-widget__link {
99
+ display: flex;
100
+ flex-direction: column;
101
+ align-items: center;
102
+ justify-content: center;
103
+ height: 100%;
104
+ width: 100%;
105
+ text-decoration: none;
106
+ padding: 20px;
107
+ gap: 12px;
108
+ transition: transform 0.2s ease, opacity 0.2s ease;
109
+ background-color: var(--cn-tile-bg);
110
+ color: var(--cn-tile-text);
111
+ }
112
+
113
+ .cn-tile-widget__link:hover {
114
+ transform: scale(1.02);
115
+ opacity: 0.95;
116
+ }
117
+
118
+ .cn-tile-widget__icon {
119
+ font-size: 48px;
120
+ width: 48px;
121
+ height: 48px;
122
+ display: flex;
123
+ align-items: center;
124
+ justify-content: center;
125
+ flex-shrink: 0;
126
+ }
127
+
128
+ .cn-tile-widget__icon--svg {
129
+ width: 48px;
130
+ height: 48px;
131
+ }
132
+
133
+ .cn-tile-widget__icon span.icon {
134
+ display: inline-block;
135
+ width: 48px;
136
+ height: 48px;
137
+ background-size: 48px;
138
+ filter: brightness(0) invert(1);
139
+ }
140
+
141
+ .cn-tile-widget__icon img {
142
+ width: 100%;
143
+ height: 100%;
144
+ object-fit: contain;
145
+ }
146
+
147
+ .cn-tile-widget__emoji {
148
+ font-size: 48px;
149
+ }
150
+
151
+ .cn-tile-widget__title {
152
+ font-size: 16px;
153
+ font-weight: 700;
154
+ text-align: center;
155
+ word-break: break-word;
156
+ line-height: 1.3;
157
+ color: var(--cn-tile-text);
158
+ }
159
+ </style>