@cloudron/pankow 3.2.20 → 3.2.22

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.
@@ -5,7 +5,8 @@ import { uuidv4 } from '../utils.js';
5
5
  const props = defineProps({
6
6
  label: String,
7
7
  id: String,
8
- disabled: null
8
+ disabled: null,
9
+ helpUrl: String
9
10
  });
10
11
 
11
12
  const model = defineModel({ type: Boolean });
@@ -18,7 +19,10 @@ const internalId = uuidv4();
18
19
  <span class="pankow-checkbox">
19
20
  <input :id="id || internalId" class="pankow-checkbox-input" type="checkbox" v-model="model" :disabled="disabled"/>
20
21
  <slot>
21
- <label :for="id || internalId" class="pankow-checkbox-input-label">{{ label }}</label>
22
+ <label :for="id || internalId" class="pankow-checkbox-input-label">
23
+ {{ label }}
24
+ <sup v-if="helpUrl"><a :href="helpUrl" target="_blank"><i class="fa fa-question-circle"></i></a></sup>
25
+ </label>
22
26
  </slot>
23
27
  </span>
24
28
  </template>
@@ -35,10 +35,6 @@ const props = defineProps({
35
35
  type: Boolean,
36
36
  default: true
37
37
  },
38
- rejectBusy: {
39
- type: Boolean,
40
- default: false
41
- },
42
38
  rejectActive: {
43
39
  type: Boolean,
44
40
  default: true
@@ -120,7 +116,7 @@ defineExpose({ open, close });
120
116
  <div class="pankow-dialog-buttons" v-if="rejectLabel || confirmLabel || alternateLabel">
121
117
  <Button :[alternateStyle]="!!alternateStyle" @click="onAlternateAction" v-show="alternateLabel" :loading="alternateBusy" :disabled="alternateBusy || !alternateActive">{{ alternateLabel }}</Button>
122
118
  <div style="flex-grow: 1;"></div>
123
- <Button :[rejectStyle]="!!rejectStyle" @click="onReject" v-show="rejectLabel">{{ rejectLabel }}</Button>
119
+ <Button :[rejectStyle]="!!rejectStyle" @click="onReject" v-show="rejectLabel" :disabled="!rejectActive">{{ rejectLabel }}</Button>
124
120
  <Button :[confirmStyle]="!!confirmStyle" @click="onConfirm" v-show="confirmLabel" :loading="confirmBusy" :disabled="confirmBusy || !confirmActive">{{ confirmLabel }}</Button>
125
121
  </div>
126
122
  </div>
@@ -139,7 +135,6 @@ defineExpose({ open, close });
139
135
  top: 0px;
140
136
  z-index: 2001;
141
137
  background-color: var(--pankow-dialog-backdrop-color);
142
- backdrop-filter: blur(2px);
143
138
  }
144
139
 
145
140
  .pankow-dialog {
@@ -287,7 +287,7 @@ defineExpose({
287
287
  <div class="pankow-menu-backdrop" @click="onBackdrop($event)" @contextmenu="onBackdrop($event)" v-show="isOpen"></div>
288
288
  <Transition :name="rollUp ? 'pankow-roll-up' : 'pankow-roll-down'">
289
289
  <div class="pankow-menu" v-show="isOpen" ref="container" tabindex="0" @keydown.up.stop="selectUp()" @keydown.down.stop="selectDown()" @keydown.esc.stop="close()" @keydown="onKeyDown">
290
- <TextInput placeholder="Filter ..." @keydown.up.stop="selectUp()" @keydown.down.stop="selectDown()" @keydown.stop @keydown.esc.stop="close()" @click.stop style="border: 0; padding: 8px 12px;" v-model="searchString" v-if="searchThreshold < model.length"/>
290
+ <TextInput placeholder="Filter ..." @keydown.up.stop="selectUp()" @keydown.down.stop="selectDown()" @keydown.stop @keydown.esc.stop="close()" @click.stop style="width: 100%; border: 0; padding: 8px 12px;" v-model="searchString" v-if="searchThreshold < model.length"/>
291
291
  <component v-for="item in visibleItems" ref="itemElements" :is="item.type || (item.href ? MenuItemLink : MenuItem)" @activated="onItemActivated(item)" :item="item" :has-icons="hasIcons" />
292
292
  <MenuItem v-if="model.length === 0" :item="emptyItem"/>
293
293
  </div>
@@ -114,7 +114,6 @@ export default {
114
114
  .pankow-notification {
115
115
  display: inline-block;
116
116
  background-color: rgba(255,255,255,0.6);
117
- backdrop-filter: blur(10px);
118
117
  opacity: 0.9;
119
118
  padding: 10px 15px;
120
119
  margin-top: 10px;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudron/pankow",
3
3
  "private": false,
4
- "version": "3.2.20",
4
+ "version": "3.2.22",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "types": "types/index.d.ts",
package/style.css CHANGED
@@ -198,7 +198,6 @@ textarea:focus {
198
198
  position: absolute;
199
199
  border-radius: var(--pankow-border-radius);
200
200
  background-color: var(--pankow-tooltip-background-color);
201
- backdrop-filter: blur(10px);
202
201
  color: var(--pankow-tooltip-text-color);
203
202
  padding: 4px 7px;
204
203
  font-size: 12px;
@@ -1,40 +0,0 @@
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>