@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,149 +1,149 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
This code was taken from nextcloud-vue due to certain changes being required but unable to be done as a patch.
|
|
3
|
-
|
|
4
|
-
https://github.com/nextcloud-libraries/nextcloud-vue/blob/main/src/components/NcNoteCard/NcNoteCard.vue
|
|
5
|
-
-->
|
|
6
|
-
<template>
|
|
7
|
-
<div
|
|
8
|
-
class="notecard"
|
|
9
|
-
:class="{
|
|
10
|
-
[`notecard--${type}`]: type,
|
|
11
|
-
}"
|
|
12
|
-
:role="shouldShowAlert ? 'alert' : 'note'">
|
|
13
|
-
<slot name="icon">
|
|
14
|
-
<NcIconSvgWrapper
|
|
15
|
-
:path="iconPath"
|
|
16
|
-
class="notecard__icon"
|
|
17
|
-
:class="{ 'notecard__icon--heading': heading }"
|
|
18
|
-
inline />
|
|
19
|
-
</slot>
|
|
20
|
-
<div>
|
|
21
|
-
<p v-if="heading" class="notecard__heading">
|
|
22
|
-
{{ heading }}
|
|
23
|
-
</p>
|
|
24
|
-
<slot>
|
|
25
|
-
<p class="notecard__text">
|
|
26
|
-
{{ text }}
|
|
27
|
-
</p>
|
|
28
|
-
</slot>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</template>
|
|
32
|
-
|
|
33
|
-
<script>
|
|
34
|
-
import { NcIconSvgWrapper } from '@nextcloud/vue'
|
|
35
|
-
|
|
36
|
-
// hardcoded @mdi/js icons to avoid unnececary package and bundlesize
|
|
37
|
-
// we are only doing this to patch NcNoteCard anyway
|
|
38
|
-
const mdiAlert = 'M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z'
|
|
39
|
-
const mdiAlertDecagram = 'M23,12L20.56,9.22L20.9,5.54L17.29,4.72L15.4,1.54L12,3L8.6,1.54L6.71,4.72L3.1,5.53L3.44,9.21L1,12L3.44,14.78L3.1,18.47L6.71,19.29L8.6,22.47L12,21L15.4,22.46L17.29,19.28L20.9,18.46L20.56,14.78L23,12M13,17H11V15H13V17M13,13H11V7H13V13Z'
|
|
40
|
-
const mdiCheckboxMarkedCircle = 'M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z'
|
|
41
|
-
const mdiInformation = 'M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 12,2Z'
|
|
42
|
-
|
|
43
|
-
export default {
|
|
44
|
-
name: 'CnNoteCard',
|
|
45
|
-
components: {
|
|
46
|
-
NcIconSvgWrapper,
|
|
47
|
-
},
|
|
48
|
-
props: {
|
|
49
|
-
/** Optional text to show as a heading of the note card */
|
|
50
|
-
heading: {
|
|
51
|
-
type: String,
|
|
52
|
-
default: undefined,
|
|
53
|
-
},
|
|
54
|
-
/**
|
|
55
|
-
* Enforce the `alert` role on the note card.
|
|
56
|
-
*
|
|
57
|
-
* The alert role should only be used for information that requires the user's immediate attention.
|
|
58
|
-
*
|
|
59
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/alert_role
|
|
60
|
-
*/
|
|
61
|
-
showAlert: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: undefined,
|
|
64
|
-
},
|
|
65
|
-
/** The message text of the note card */
|
|
66
|
-
text: {
|
|
67
|
-
type: String,
|
|
68
|
-
default: undefined,
|
|
69
|
-
},
|
|
70
|
-
/** Type or severity of the message */
|
|
71
|
-
type: {
|
|
72
|
-
type: String,
|
|
73
|
-
default: 'warning',
|
|
74
|
-
validator: (value) =>
|
|
75
|
-
['success', 'info', 'warning', 'error'].includes(value),
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
computed: {
|
|
79
|
-
shouldShowAlert() {
|
|
80
|
-
return this.showAlert || this.type === 'error'
|
|
81
|
-
},
|
|
82
|
-
iconPath() {
|
|
83
|
-
switch (this.type) {
|
|
84
|
-
case 'error':
|
|
85
|
-
return mdiAlertDecagram
|
|
86
|
-
case 'success':
|
|
87
|
-
return mdiCheckboxMarkedCircle
|
|
88
|
-
case 'info':
|
|
89
|
-
return mdiInformation
|
|
90
|
-
case 'warning':
|
|
91
|
-
default:
|
|
92
|
-
return mdiAlert
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
}
|
|
97
|
-
</script>
|
|
98
|
-
|
|
99
|
-
<!-- we do not have support for scss so this has been translated to css -->
|
|
100
|
-
<!-- @TODO add scss support -->
|
|
101
|
-
<style scoped>
|
|
102
|
-
.notecard {
|
|
103
|
-
--note-card-icon-size: 20px;
|
|
104
|
-
--note-card-padding: calc(2 * var(--default-grid-baseline));
|
|
105
|
-
color: var(--color-main-text) !important;
|
|
106
|
-
background-color: var(--note-background) !important;
|
|
107
|
-
border-inline-start: var(--default-grid-baseline) solid var(--note-theme);
|
|
108
|
-
border-radius: var(--border-radius-small);
|
|
109
|
-
margin: 1rem 0;
|
|
110
|
-
padding: var(--note-card-padding);
|
|
111
|
-
display: flex;
|
|
112
|
-
flex-direction: row;
|
|
113
|
-
gap: var(--note-card-padding);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.notecard__heading {
|
|
117
|
-
font-size: var(--note-card-icon-size); /* Same as icon */
|
|
118
|
-
font-weight: 600;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.notecard__icon {
|
|
122
|
-
color: var(--note-theme);
|
|
123
|
-
}
|
|
124
|
-
.notecard__icon--heading {
|
|
125
|
-
font-size: var(--note-card-icon-size);
|
|
126
|
-
/* Ensure icon is on the same height as the heading */
|
|
127
|
-
margin-block: calc((1lh - 1em) / 2) auto;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.notecard--success {
|
|
131
|
-
--note-background: var(--color-success);
|
|
132
|
-
--note-theme: var(--color-success-text);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.notecard--info {
|
|
136
|
-
--note-background: var(--color-info);
|
|
137
|
-
--note-theme: var(--color-info-text);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.notecard--error {
|
|
141
|
-
--note-background: var(--color-error);
|
|
142
|
-
--note-theme: var(--color-error-text);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.notecard--warning {
|
|
146
|
-
--note-background: var(--color-warning);
|
|
147
|
-
--note-theme: var(--color-warning-text);
|
|
148
|
-
}
|
|
149
|
-
</style>
|
|
1
|
+
<!--
|
|
2
|
+
This code was taken from nextcloud-vue due to certain changes being required but unable to be done as a patch.
|
|
3
|
+
|
|
4
|
+
https://github.com/nextcloud-libraries/nextcloud-vue/blob/main/src/components/NcNoteCard/NcNoteCard.vue
|
|
5
|
+
-->
|
|
6
|
+
<template>
|
|
7
|
+
<div
|
|
8
|
+
class="notecard"
|
|
9
|
+
:class="{
|
|
10
|
+
[`notecard--${type}`]: type,
|
|
11
|
+
}"
|
|
12
|
+
:role="shouldShowAlert ? 'alert' : 'note'">
|
|
13
|
+
<slot name="icon">
|
|
14
|
+
<NcIconSvgWrapper
|
|
15
|
+
:path="iconPath"
|
|
16
|
+
class="notecard__icon"
|
|
17
|
+
:class="{ 'notecard__icon--heading': heading }"
|
|
18
|
+
inline />
|
|
19
|
+
</slot>
|
|
20
|
+
<div>
|
|
21
|
+
<p v-if="heading" class="notecard__heading">
|
|
22
|
+
{{ heading }}
|
|
23
|
+
</p>
|
|
24
|
+
<slot>
|
|
25
|
+
<p class="notecard__text">
|
|
26
|
+
{{ text }}
|
|
27
|
+
</p>
|
|
28
|
+
</slot>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<script>
|
|
34
|
+
import { NcIconSvgWrapper } from '@nextcloud/vue'
|
|
35
|
+
|
|
36
|
+
// hardcoded @mdi/js icons to avoid unnececary package and bundlesize
|
|
37
|
+
// we are only doing this to patch NcNoteCard anyway
|
|
38
|
+
const mdiAlert = 'M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z'
|
|
39
|
+
const mdiAlertDecagram = 'M23,12L20.56,9.22L20.9,5.54L17.29,4.72L15.4,1.54L12,3L8.6,1.54L6.71,4.72L3.1,5.53L3.44,9.21L1,12L3.44,14.78L3.1,18.47L6.71,19.29L8.6,22.47L12,21L15.4,22.46L17.29,19.28L20.9,18.46L20.56,14.78L23,12M13,17H11V15H13V17M13,13H11V7H13V13Z'
|
|
40
|
+
const mdiCheckboxMarkedCircle = 'M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z'
|
|
41
|
+
const mdiInformation = 'M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 12,2Z'
|
|
42
|
+
|
|
43
|
+
export default {
|
|
44
|
+
name: 'CnNoteCard',
|
|
45
|
+
components: {
|
|
46
|
+
NcIconSvgWrapper,
|
|
47
|
+
},
|
|
48
|
+
props: {
|
|
49
|
+
/** Optional text to show as a heading of the note card */
|
|
50
|
+
heading: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: undefined,
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* Enforce the `alert` role on the note card.
|
|
56
|
+
*
|
|
57
|
+
* The alert role should only be used for information that requires the user's immediate attention.
|
|
58
|
+
*
|
|
59
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/alert_role
|
|
60
|
+
*/
|
|
61
|
+
showAlert: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: undefined,
|
|
64
|
+
},
|
|
65
|
+
/** The message text of the note card */
|
|
66
|
+
text: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: undefined,
|
|
69
|
+
},
|
|
70
|
+
/** Type or severity of the message */
|
|
71
|
+
type: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: 'warning',
|
|
74
|
+
validator: (value) =>
|
|
75
|
+
['success', 'info', 'warning', 'error'].includes(value),
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
computed: {
|
|
79
|
+
shouldShowAlert() {
|
|
80
|
+
return this.showAlert || this.type === 'error'
|
|
81
|
+
},
|
|
82
|
+
iconPath() {
|
|
83
|
+
switch (this.type) {
|
|
84
|
+
case 'error':
|
|
85
|
+
return mdiAlertDecagram
|
|
86
|
+
case 'success':
|
|
87
|
+
return mdiCheckboxMarkedCircle
|
|
88
|
+
case 'info':
|
|
89
|
+
return mdiInformation
|
|
90
|
+
case 'warning':
|
|
91
|
+
default:
|
|
92
|
+
return mdiAlert
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
}
|
|
97
|
+
</script>
|
|
98
|
+
|
|
99
|
+
<!-- we do not have support for scss so this has been translated to css -->
|
|
100
|
+
<!-- @TODO add scss support -->
|
|
101
|
+
<style scoped>
|
|
102
|
+
.notecard {
|
|
103
|
+
--note-card-icon-size: 20px;
|
|
104
|
+
--note-card-padding: calc(2 * var(--default-grid-baseline));
|
|
105
|
+
color: var(--color-main-text) !important;
|
|
106
|
+
background-color: var(--note-background) !important;
|
|
107
|
+
border-inline-start: var(--default-grid-baseline) solid var(--note-theme);
|
|
108
|
+
border-radius: var(--border-radius-small);
|
|
109
|
+
margin: 1rem 0;
|
|
110
|
+
padding: var(--note-card-padding);
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-direction: row;
|
|
113
|
+
gap: var(--note-card-padding);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.notecard__heading {
|
|
117
|
+
font-size: var(--note-card-icon-size); /* Same as icon */
|
|
118
|
+
font-weight: 600;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.notecard__icon {
|
|
122
|
+
color: var(--note-theme);
|
|
123
|
+
}
|
|
124
|
+
.notecard__icon--heading {
|
|
125
|
+
font-size: var(--note-card-icon-size);
|
|
126
|
+
/* Ensure icon is on the same height as the heading */
|
|
127
|
+
margin-block: calc((1lh - 1em) / 2) auto;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.notecard--success {
|
|
131
|
+
--note-background: var(--color-success);
|
|
132
|
+
--note-theme: var(--color-success-text);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.notecard--info {
|
|
136
|
+
--note-background: var(--color-info);
|
|
137
|
+
--note-theme: var(--color-info-text);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.notecard--error {
|
|
141
|
+
--note-background: var(--color-error);
|
|
142
|
+
--note-theme: var(--color-error-text);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.notecard--warning {
|
|
146
|
+
--note-background: var(--color-warning);
|
|
147
|
+
--note-theme: var(--color-warning-text);
|
|
148
|
+
}
|
|
149
|
+
</style>
|