@simsustech/quasar-components 0.11.20 → 0.11.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @simsustech/quasar-components
2
2
 
3
+ ## 0.11.22
4
+
5
+ ### Patch Changes
6
+
7
+ - 9ef33d4: fix(components): set DateInput modelValue to null on clear
8
+
9
+ ## 0.11.21
10
+
11
+ ### Patch Changes
12
+
13
+ - 6dc180e: fix(components): use lower QDrawer width for small screens in Md3Layout
14
+
3
15
  ## 0.11.20
4
16
 
5
17
  ### Patch Changes
package/dist/form.js CHANGED
@@ -329,7 +329,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
329
329
  if (year.value && month.value && day.value && !isNaN(Date.parse(date))) {
330
330
  emit("update:modelValue", date);
331
331
  } else {
332
- emit("update:modelValue", "");
332
+ emit("update:modelValue", null);
333
333
  }
334
334
  });
335
335
  const formattedDate = computed(() => {
package/dist/md3.js CHANGED
@@ -280,6 +280,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
280
280
  const drawerRef = ref();
281
281
  const leftDrawerOpen = ref(false);
282
282
  const miniState = ref(false);
283
+ const drawerWidth = computed(() => {
284
+ return $q.screen.lt.sm ? 300 : 360;
285
+ });
283
286
  watch(
284
287
  () => $q.screen.height,
285
288
  () => {
@@ -355,7 +358,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
355
358
  ref_key: "drawerRef",
356
359
  ref: drawerRef,
357
360
  "model-value": leftDrawerOpen.value,
358
- width: 360,
361
+ width: drawerWidth.value,
359
362
  "mini-width": 80,
360
363
  mini: miniState.value,
361
364
  "show-if-above": "",
@@ -391,7 +394,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
391
394
  renderSlot(_ctx.$slots, "drawer")
392
395
  ]),
393
396
  _: 3
394
- }, 8, ["model-value", "mini"]),
397
+ }, 8, ["model-value", "width", "mini"]),
395
398
  createVNode(_component_q_footer, { class: "h-80px lt-md" }, {
396
399
  default: withCtx(() => [
397
400
  renderSlot(_ctx.$slots, "footer")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.11.20",
3
+ "version": "0.11.22",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -161,7 +161,7 @@ watch([year, month, day], () => {
161
161
  if (year.value && month.value && day.value && !isNaN(Date.parse(date))) {
162
162
  emit('update:modelValue', date)
163
163
  } else {
164
- emit('update:modelValue', '')
164
+ emit('update:modelValue', null)
165
165
  }
166
166
  })
167
167
 
@@ -20,7 +20,7 @@
20
20
  <q-drawer
21
21
  ref="drawerRef"
22
22
  :model-value="leftDrawerOpen"
23
- :width="360"
23
+ :width="drawerWidth"
24
24
  :mini-width="80"
25
25
  :mini="miniState"
26
26
  show-if-above
@@ -70,7 +70,7 @@
70
70
  </template>
71
71
 
72
72
  <script setup lang="ts">
73
- import { ref, onMounted, watch } from 'vue'
73
+ import { ref, onMounted, watch, computed } from 'vue'
74
74
  import { debounce, useQuasar } from 'quasar'
75
75
 
76
76
  import { QDrawer } from 'quasar'
@@ -89,6 +89,10 @@ const drawerRef = ref<QDrawer>()
89
89
  const leftDrawerOpen = ref(false)
90
90
  const miniState = ref(false)
91
91
 
92
+ const drawerWidth = computed(() => {
93
+ return $q.screen.lt.sm ? 300 : 360
94
+ })
95
+
92
96
  // Small screen: toggle leftDrawerOpen, large screen: toggle miniState
93
97
  // Prevent unresponsiveness with screen changes and drawer opened
94
98
  watch(