@cloudron/pankow 3.2.22 → 3.2.23

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.
@@ -21,7 +21,7 @@ const internalId = uuidv4();
21
21
  <slot>
22
22
  <label :for="id || internalId" class="pankow-checkbox-input-label">
23
23
  {{ label }}
24
- <sup v-if="helpUrl"><a :href="helpUrl" target="_blank"><i class="fa fa-question-circle"></i></a></sup>
24
+ <sup v-if="helpUrl"><a :href="helpUrl" target="_blank" tabindex="-1"><i class="fa fa-question-circle"></i></a></sup>
25
25
  </label>
26
26
  </slot>
27
27
  </span>
@@ -0,0 +1,40 @@
1
+ <script setup>
2
+
3
+ import { computed } from 'vue';
4
+
5
+ const props = defineProps({
6
+ values: Array,
7
+ });
8
+
9
+ // const normalizedValue = computed(() => {
10
+ // if (props.value < 0) return 0;
11
+ // if (props.value > 100) return 100;
12
+ // return props.value;
13
+ // });
14
+
15
+ // we want 100 to be the circumverence so we can neatly use percentage: radius = 100 / ( 3,14159 * 2 ) = 15,9155
16
+ const radius = 15.9155;
17
+ const stroke = 10;
18
+
19
+ function calculateViewbox() {
20
+ return `0 0 ${radius*2+stroke} ${radius*2+stroke}`;
21
+ }
22
+
23
+ function calculateArcPath() {
24
+ return `M${radius+stroke/2} ${stroke/2} a ${radius} ${radius} 0 0 1 0 ${radius*2} a ${radius} ${radius} 0 0 1 0 -${radius*2}`;
25
+ }
26
+
27
+ </script>
28
+
29
+ <template>
30
+ <div class="pankow-circle-chart">
31
+ <svg :viewBox="calculateViewbox()" xmlns="http://www.w3.org/2000/svg">
32
+ <path :d="calculateArcPath()" fill="none" stroke="red" :stroke-width="stroke" stroke-dasharray="75, 100" @click.stop="onClick('red')" />
33
+ <path :d="calculateArcPath()" fill="none" stroke="green" :stroke-width="stroke" stroke-dasharray="30, 100" @click.stop="onClick('green') "/>
34
+ </svg>
35
+ </div>
36
+ </template>
37
+
38
+ <style>
39
+
40
+ </style>
@@ -2,7 +2,7 @@
2
2
  <div class="pankow-table-scroll-wrapper">
3
3
  <div class="pankow-table-wrapper">
4
4
  <table class="pankow-table">
5
- <thead class="pankow-table-header">
5
+ <thead class="pankow-table-header" v-if="sortedItems.length !== 0">
6
6
  <tr>
7
7
  <th v-for="column in Object.keys(columns)" class="pankow-table-header-column" :class="{ 'pankow-table-header-column-sortable': columns[column].sort, 'pankow-table-cell-hide-mobile': columns[column].hideMobile }" @click="toggleSort(column)">
8
8
  <Icon v-if="columns[column].icon" :icon="columns[column].icon" />
@@ -175,7 +175,7 @@ export default {
175
175
 
176
176
  .pankow-table-placeholder {
177
177
  text-align: center;
178
- height: 50px;
178
+ height: 150px;
179
179
  }
180
180
 
181
181
  .pankow-table-cell-nowrap {
@@ -188,4 +188,4 @@ export default {
188
188
  }
189
189
  }
190
190
 
191
- </style>
191
+ </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudron/pankow",
3
3
  "private": false,
4
- "version": "3.2.22",
4
+ "version": "3.2.23",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "types": "types/index.d.ts",
@@ -25,6 +25,6 @@
25
25
  "@vitejs/plugin-vue": "^6.0.1",
26
26
  "typescript": "^5.9.2",
27
27
  "vite": "^7.1.7",
28
- "vue": "^3.5.21"
28
+ "vue": "^3.5.22"
29
29
  }
30
30
  }