@conduction/nextcloud-vue 0.1.0-beta.7 → 0.1.0-beta.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/nextcloud-vue",
3
- "version": "0.1.0-beta.7",
3
+ "version": "0.1.0-beta.8",
4
4
  "description": "Shared Vue component library for Conduction Nextcloud apps — complements @nextcloud/vue with higher-level components, OpenRegister integration, and NL Design System support",
5
5
  "license": "EUPL-1.2",
6
6
  "author": "Conduction B.V. <info@conduction.nl>",
@@ -13,7 +13,6 @@
13
13
  "src/",
14
14
  "css/"
15
15
  ],
16
- "type": "module",
17
16
  "sideEffects": true,
18
17
  "scripts": {
19
18
  "build": "rollup -c",
@@ -32,7 +31,6 @@
32
31
  "@nextcloud/dialogs": "^7.3.0",
33
32
  "@uiw/codemirror-theme-github": "^4.25.8",
34
33
  "gridstack": "^10.3.1",
35
- "vue-apexcharts": "^1.7.0",
36
34
  "vue-codemirror6": "^1.4.3"
37
35
  },
38
36
  "peerDependencies": {
@@ -44,7 +42,8 @@
44
42
  "pinia": "^2.0.0",
45
43
  "vue": "^2.7.0",
46
44
  "vue-frag": "^1.4.3",
47
- "vue-material-design-icons": "^5.0.0"
45
+ "vue-material-design-icons": "^5.0.0",
46
+ "vue-apexcharts": "^1.7.0"
48
47
  },
49
48
  "overrides": {
50
49
  "json5": "^2.2.3",
@@ -31,7 +31,10 @@
31
31
  </div>
32
32
 
33
33
  <!-- Add button (primary) -->
34
- <NcButton v-if="showAdd" type="primary" @click="$emit('add')">
34
+ <NcButton v-if="showAdd"
35
+ type="primary"
36
+ :disabled="addDisabled"
37
+ @click="$emit('add')">
35
38
  <template #icon>
36
39
  <CnIcon v-if="addIcon" :name="addIcon" :size="20" />
37
40
  <Plus v-else :size="20" />
@@ -46,7 +49,7 @@
46
49
  :force-name="true"
47
50
  :inline="0"
48
51
  menu-name="Actions">
49
- <NcActionButton :disabled="refreshing" @click="$emit('refresh')">
52
+ <NcActionButton :disabled="refreshing || refreshDisabled" @click="$emit('refresh')">
50
53
  <template #icon>
51
54
  <NcLoadingIcon v-if="refreshing" :size="20" />
52
55
  <Refresh v-else :size="20" />
@@ -218,6 +221,16 @@ export default {
218
221
  type: Boolean,
219
222
  default: false,
220
223
  },
224
+ /** Whether the refresh action is disabled (e.g. when required selections are missing) */
225
+ refreshDisabled: {
226
+ type: Boolean,
227
+ default: false,
228
+ },
229
+ /** Whether the Add button is disabled (e.g. when required selections are missing) */
230
+ addDisabled: {
231
+ type: Boolean,
232
+ default: false,
233
+ },
221
234
  /** Whether to show the Add button */
222
235
  showAdd: {
223
236
  type: Boolean,
@@ -28,6 +28,8 @@
28
28
  :view-mode="currentViewMode"
29
29
  :show-view-toggle="showViewToggle"
30
30
  :refreshing="refreshing"
31
+ :refresh-disabled="refreshDisabled"
32
+ :add-disabled="addDisabled"
31
33
  :show-add="showAdd"
32
34
  @add="onAddClick"
33
35
  @refresh="$emit('refresh')"
@@ -573,6 +575,16 @@ export default {
573
575
  type: Boolean,
574
576
  default: false,
575
577
  },
578
+ /** Whether the refresh action is disabled (e.g. when required selections are missing) */
579
+ refreshDisabled: {
580
+ type: Boolean,
581
+ default: false,
582
+ },
583
+ /** Whether the Add button is disabled (e.g. when required selections are missing) */
584
+ addDisabled: {
585
+ type: Boolean,
586
+ default: false,
587
+ },
576
588
  /** Whether to show the Add button in the actions bar */
577
589
  showAdd: {
578
590
  type: Boolean,