@cloudron/pankow 3.6.1 → 3.6.3

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.
@@ -71,7 +71,6 @@ function onClick(event) {
71
71
  user-select: none;
72
72
  white-space: nowrap;
73
73
  text-align: center;
74
- border: none;
75
74
  padding: var(--pankow-input-vertial-padding) max(12px, var(--pankow-input-horizontal-padding));
76
75
  border-radius: var(--pankow-border-radius);
77
76
  text-decoration: none;
@@ -47,12 +47,12 @@
47
47
  :fallbackIcon="fallbackIcon"
48
48
  :item="item"
49
49
  :show-owner="showOwner"
50
- :show-share="showShare"
51
50
  :show-extract="showExtract"
52
51
  :show-size="showSize"
53
52
  :show-star="showStar"
54
53
  :show-modified="showModified"
55
54
  :rename-handler="renameHandler"
55
+ :share-indicator-property="shareIndicatorProperty"
56
56
  :select-handler="onSelectAndFocus"
57
57
  :drop-handler="onDrop"
58
58
  :can-drop-handler="onCanDropHandler"
@@ -145,14 +145,18 @@ export default {
145
145
  default: true
146
146
  },
147
147
  showShare: {
148
- // if String its the name of the property for existing share indicator
149
- type: [ Boolean, String ],
148
+ type: Boolean,
150
149
  default: false
151
150
  },
152
151
  showModified: {
153
152
  type: Boolean,
154
153
  default: false
155
154
  },
155
+ shareIndicatorProperty: {
156
+ // the name of the property for existing share indicator
157
+ type: String,
158
+ default: '',
159
+ },
156
160
  editable: {
157
161
  type: Boolean,
158
162
  default: true
@@ -13,7 +13,7 @@
13
13
 
14
14
  <div v-if="visible" class="col icon">
15
15
  <img :src="item.previewUrl || item.icon" ref="iconImage" @error="iconError($event)"/>
16
- <i v-show="typeof showShare === 'string' && item[showShare]" class="fa-solid fa-share-nodes is-shared"></i>
16
+ <i v-show="shareIndicatorProperty !== '' && !!item[shareIndicatorProperty]" class="fa-solid fa-share-nodes is-shared"></i>
17
17
  </div>
18
18
 
19
19
  <div v-if="visible && !rename" class="col label">
@@ -68,11 +68,6 @@ export default {
68
68
  type: Boolean,
69
69
  default: false
70
70
  },
71
- showShare: {
72
- // if String its the name of the property for existing share indicator
73
- type: [ Boolean, String ],
74
- default: false
75
- },
76
71
  showSize: {
77
72
  type: Boolean,
78
73
  default: false
@@ -85,6 +80,10 @@ export default {
85
80
  type: Boolean,
86
81
  default: false
87
82
  },
83
+ shareIndicatorProperty: {
84
+ type: String,
85
+ default: '',
86
+ },
88
87
  fallbackIcon: String,
89
88
  renameHandler: {
90
89
  type: Function,
@@ -297,7 +296,6 @@ export default {
297
296
 
298
297
  .star-icon {
299
298
  color: #ffcb00;
300
- padding: 10px;
301
299
  visibility: hidden;
302
300
  cursor: pointer;
303
301
  }
@@ -15,6 +15,10 @@ const props = defineProps({
15
15
  type: Boolean,
16
16
  default: false,
17
17
  },
18
+ showTrack: {
19
+ type: Boolean,
20
+ default: true,
21
+ },
18
22
  busy: {
19
23
  type: Boolean,
20
24
  default: false,
@@ -33,10 +37,12 @@ const normalizedValue = computed(() => {
33
37
  <template>
34
38
  <div class="pankow-progress-bar">
35
39
  <div class="pankow-progress-bar-label" v-show="showLabel"><slot>{{ value + ' %' }}</slot></div>
36
- <div v-if="mode !== 'indeterminate'" class="pankow-progress-bar-filled" :style="{ width: normalizedValue+'%', height: slim ? '2px' : '6px' }">
37
- <div v-if="busy" class="pankow-progress-bar-glow" :style="{ height: slim ? '2px' : '6px' }"></div>
40
+ <div :class="{ 'pankow-progress-bar-background': showTrack }">
41
+ <div v-if="mode !== 'indeterminate'" class="pankow-progress-bar-filled" :style="{ width: normalizedValue+'%', height: slim ? '2px' : '6px' }">
42
+ <div v-if="busy" class="pankow-progress-bar-glow" :style="{ height: slim ? '2px' : '6px' }"></div>
43
+ </div>
44
+ <div v-else class="pankow-progress-bar-indeterminate" :style="{ height: slim ? '2px' : '6px' }"></div>
38
45
  </div>
39
- <div v-else class="pankow-progress-bar-indeterminate" :style="{ height: slim ? '2px' : '6px' }"></div>
40
46
  </div>
41
47
  </template>
42
48
 
@@ -54,6 +60,17 @@ const normalizedValue = computed(() => {
54
60
  padding-bottom: 3px;
55
61
  }
56
62
 
63
+ .pankow-progress-bar-background {
64
+ border-radius: var(--pankow-border-radius);
65
+ background-color: var(--pankow-color-light-dark);
66
+ }
67
+
68
+ @media (prefers-color-scheme: dark) {
69
+ .pankow-progress-bar-background {
70
+ background-color: var(--pankow-input-background-color);
71
+ }
72
+ }
73
+
57
74
  .pankow-progress-bar-filled {
58
75
  position: relative;
59
76
  background-color: var(--pankow-color-primary);
@@ -89,7 +106,6 @@ const normalizedValue = computed(() => {
89
106
  height: 6px;
90
107
  display: block;
91
108
  position: relative;
92
- background: rgba(255, 255, 255, 0.15);
93
109
  overflow: hidden;
94
110
  border-radius: calc(var(--pankow-border-radius) / 1.5);
95
111
  }
@@ -114,7 +114,7 @@ onMounted(() => {
114
114
  <tbody>
115
115
  <tr v-if="busy">
116
116
  <td :colspan="Object.keys(columns).length" style="text-align: center; padding: 20px;">
117
- <ProgressBar mode="indeterminate" :show-label="false" :slim="true" v-show="finalBusy"/>
117
+ <ProgressBar mode="indeterminate" :show-track="false" :show-label="false" :slim="true" v-show="finalBusy"/>
118
118
  </td>
119
119
  </tr>
120
120
  <tr v-else-if="!busy && sortedItems.length === 0">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudron/pankow",
3
3
  "private": false,
4
- "version": "3.6.1",
4
+ "version": "3.6.3",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "types": "types/index.d.ts",