@cloudron/pankow 3.6.7 → 3.7.0

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.
@@ -0,0 +1,21 @@
1
+ <script setup>
2
+
3
+ const model = defineModel();
4
+ const props = defineProps({
5
+ readonly: {
6
+ type: Boolean,
7
+ default: false
8
+ },
9
+ });
10
+
11
+ </script>
12
+
13
+ <template>
14
+ <input class="pankow-text-input" type="datetime-local" :readonly="readonly" v-model="model"/>
15
+ </template>
16
+
17
+ <style>
18
+
19
+ /* using TextInput styles */
20
+
21
+ </style>
@@ -168,9 +168,9 @@ function blurEventHandler() {
168
168
 
169
169
  async function open(event, element = null) {
170
170
  isOpen.value = true;
171
- pageX = element ? element.getBoundingClientRect().left : event.pageX;
172
- targetBottom = element ? element.getBoundingClientRect().bottom : event.pageY;
173
- targetTop = element ? element.getBoundingClientRect().top : event.pageY;
171
+ pageX = element ? element.getBoundingClientRect().left : (event.touches && event.touches[0] ? event.touches[0].pageX : event.pageX);
172
+ targetBottom = element ? element.getBoundingClientRect().bottom : (event.touches && event.touches[0] ? event.touches[0].pageY : event.pageY);
173
+ targetTop = element ? element.getBoundingClientRect().top : (event.touches && event.touches[0] ? event.touches[0].pageY : event.pageY);
174
174
  offsetY.value = element ? (element.getBoundingClientRect().height + 2) : 0; // offset in case we roll up
175
175
  forElement = element;
176
176
  prevFocusElement = document.activeElement;
@@ -176,6 +176,7 @@ onMounted(() => {
176
176
  user-select: none;
177
177
  border-bottom: 1px solid var(--pankow-color-light-dark);
178
178
  white-space: nowrap;
179
+ font-weight: var(--pankow-font-weight-bold);
179
180
  }
180
181
 
181
182
  .pankow-table-header-column-sortable {
package/index.js CHANGED
@@ -13,6 +13,7 @@ import ButtonGroup from './components/ButtonGroup.vue';
13
13
  import ClipboardAction from './components/ClipboardAction.vue';
14
14
  import ClipboardButton from './components/ClipboardButton.vue';
15
15
  import Checkbox from './components/Checkbox.vue';
16
+ import DateTimeInput from './components/DateTimeInput.vue';
16
17
  import Dialog from './components/Dialog.vue';
17
18
  import DirectoryView from './components/DirectoryView.vue';
18
19
  import EmailInput from './components/EmailInput.vue';
@@ -58,6 +59,7 @@ export {
58
59
  ClipboardAction,
59
60
  ClipboardButton,
60
61
  Checkbox,
62
+ DateTimeInput,
61
63
  Dialog,
62
64
  DirectoryView,
63
65
  EmailInput,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudron/pankow",
3
3
  "private": false,
4
- "version": "3.6.7",
4
+ "version": "3.7.0",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "types": "types/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "highlight.js": "^11.11.1",
35
35
  "typescript": "^5.9.3",
36
36
  "vite": "^7.3.1",
37
- "vue": "^3.5.27",
37
+ "vue": "^3.5.28",
38
38
  "vue-router": "^5.0.2"
39
39
  }
40
40
  }
package/types/index.d.ts CHANGED
@@ -3,4 +3,4 @@ import gestures from './gestures.js';
3
3
  import tooltip from './tooltip.js';
4
4
  import fallbackImage from './fallbackImage.js';
5
5
  import utils from './utils.js';
6
- export { BottomBar, Breadcrumb, Button, ButtonGroup, ClipboardAction, ClipboardButton, Checkbox, Dialog, DirectoryView, EmailInput, FileUploader, FormGroup, InputGroup, Icon, InputDialog, MainLayout, MaskedInput, Menu, MenuItem, SingleSelect, MultiSelect, Notification, NumberInput, OfflineBanner, PasswordInput, Popover, ProgressBar, Radiobutton, SideBar, Spinner, Switch, TableView, TabView, TagInput, TextInput, TextInputRaw, TopBar, fetcher, gestures, tooltip, fallbackImage, utils };
6
+ export { BottomBar, Breadcrumb, Button, ButtonGroup, ClipboardAction, ClipboardButton, Checkbox, DateTimeInput, Dialog, DirectoryView, EmailInput, FileUploader, FormGroup, InputGroup, Icon, InputDialog, MainLayout, MaskedInput, Menu, MenuItem, SingleSelect, MultiSelect, Notification, NumberInput, OfflineBanner, PasswordInput, Popover, ProgressBar, Radiobutton, SideBar, Spinner, Switch, TableView, TabView, TagInput, TextInput, TextInputRaw, TopBar, fetcher, gestures, tooltip, fallbackImage, utils };