@cloudron/pankow 3.5.10 → 3.5.12

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.
@@ -17,7 +17,7 @@ const internalId = uuidv4();
17
17
 
18
18
  <template>
19
19
  <span class="pankow-checkbox">
20
- <input :id="id || internalId" class="pankow-checkbox-input" type="checkbox" v-model="model" :disabled="disabled"/>
20
+ <input :id="id || internalId" class="pankow-checkbox-input" type="checkbox" v-model="model" :disabled="disabled" @input="$emit('update:modelValue', $event.target.checked)"/>
21
21
  <slot>
22
22
  <label :for="id || internalId" class="pankow-checkbox-input-label">
23
23
  {{ label }}
@@ -6,6 +6,7 @@ const svgEye = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data
6
6
  const svgEyeSlash = '<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="eye-slash" class="svg-inline--fa fa-eye-slash fa-w-20" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="currentColor" d="M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"></path></svg>';
7
7
 
8
8
  const emit = defineEmits([ 'update:modelValue' ]);
9
+
9
10
  const props = defineProps({
10
11
  placeholder: String,
11
12
  modelValue: String,
@@ -22,6 +22,10 @@ const props = defineProps({
22
22
  validator(value, props) {
23
23
  return [ 'asc', 'desc' ].includes(value);
24
24
  }
25
+ },
26
+ fixedLayout: {
27
+ type: Boolean,
28
+ default: false,
25
29
  }
26
30
  });
27
31
 
@@ -92,13 +96,13 @@ onMounted(() => {
92
96
  <template>
93
97
  <div class="pankow-table-scroll-wrapper">
94
98
  <div class="pankow-table-wrapper">
95
- <table class="pankow-table">
99
+ <table class="pankow-table" :class="{ 'pankow-table-layout-fixed': fixedLayout }">
96
100
  <thead class="pankow-table-header" v-if="sortedItems.length !== 0">
97
101
  <tr>
98
102
  <th v-for="column in Object.keys(columns)"
99
103
  class="pankow-table-header-column"
100
104
  :class="{ 'pankow-table-header-column-sortable': columns[column].sort, 'pankow-table-cell-hide-mobile': columns[column].hideMobile }"
101
- :style="{ 'text-align': columns[column].align || null }"
105
+ :style="{ 'text-align': columns[column].align || null, width: typeof columns[column].width === 'string' ? columns[column].width : 'auto' }"
102
106
  @click="toggleSort(column)"
103
107
  >
104
108
  <Icon v-if="columns[column].icon" :icon="columns[column].icon" />
@@ -154,6 +158,10 @@ onMounted(() => {
154
158
  border-spacing: 0px;
155
159
  }
156
160
 
161
+ .pankow-table-layout-fixed {
162
+ table-layout: fixed;
163
+ }
164
+
157
165
  .pankow-table-header {
158
166
  top: 0;
159
167
  position: sticky;
@@ -186,6 +194,7 @@ onMounted(() => {
186
194
  .pankow-table-cell {
187
195
  padding: 5px;
188
196
  height: 100%;
197
+ overflow: hidden;
189
198
  }
190
199
 
191
200
  .pankow-table-row-with-hover:hover {
@@ -199,6 +208,7 @@ onMounted(() => {
199
208
 
200
209
  .pankow-table-cell-nowrap {
201
210
  white-space: nowrap;
211
+ text-overflow: ellipsis;
202
212
  }
203
213
 
204
214
  @media (max-width: 576px) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudron/pankow",
3
3
  "private": false,
4
- "version": "3.5.10",
4
+ "version": "3.5.12",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "types": "types/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "@fontsource/inter": "^5.2.8",
20
20
  "@fortawesome/fontawesome-free": "^7.1.0",
21
21
  "filesize": "^11.0.13",
22
- "monaco-editor": "^0.54.0"
22
+ "monaco-editor": "^0.55.1"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@vitejs/plugin-vue": "^6.0.2",
package/style.css CHANGED
@@ -23,7 +23,7 @@
23
23
 
24
24
  --pankow-color-light-dark: #ced4da;
25
25
 
26
- --pankow-tooltip-background-color: rgba(0,0,0,0.5);
26
+ --pankow-tooltip-background-color: #333;
27
27
  --pankow-tooltip-text-color: white;
28
28
 
29
29
  --pankow-color-primary: #1a76bf;
@@ -100,9 +100,6 @@ input {
100
100
 
101
101
  --pankow-dialog-background-color: #32383e;
102
102
  --pankow-dialog-backdrop-color: rgba(0,0,0,.7);
103
-
104
- --pankow-tooltip-background-color: rgba(255,255,255,0.5);
105
- --pankow-tooltip-text-color: black;
106
103
  }
107
104
  }
108
105
 
package/tooltip.js CHANGED
@@ -55,7 +55,7 @@ function update(target, value, modifiers, tooltip) {
55
55
  tooltip.innerText = value;
56
56
 
57
57
  // BOTTOM is default
58
- const pos = modifiers.top ? TOP : (modifiers.left ? LEFT : (modifiers.RIGHT ? RIGHT : BOTTOM));
58
+ const pos = modifiers.top ? TOP : (modifiers.left ? LEFT : (modifiers.right ? RIGHT : BOTTOM));
59
59
 
60
60
  const targetRect = target.getBoundingClientRect();
61
61
  const tooltipRect = tooltip.getBoundingClientRect();