@simsustech/quasar-components 0.11.22 → 0.11.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @simsustech/quasar-components
2
2
 
3
+ ## 0.11.23
4
+
5
+ ### Patch Changes
6
+
7
+ - 85d1703: fix(components): DateInput use lazy-rules
8
+
3
9
  ## 0.11.22
4
10
 
5
11
  ### Patch Changes
package/dist/form.js CHANGED
@@ -328,7 +328,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
328
328
  const date = `${year.value}-${String(month.value).padStart(2, "0")}-${String(day.value).padStart(2, "0")}`;
329
329
  if (year.value && month.value && day.value && !isNaN(Date.parse(date))) {
330
330
  emit("update:modelValue", date);
331
- } else {
331
+ } else if (modelValue.value !== null) {
332
332
  emit("update:modelValue", null);
333
333
  }
334
334
  });
@@ -437,7 +437,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
437
437
  "bottom-slots": "",
438
438
  rules: validations.value,
439
439
  label: `${_ctx.label}${_ctx.required ? "*" : ""}`,
440
- "stack-label": ""
440
+ "stack-label": "",
441
+ "lazy-rules": ""
441
442
  }, createSlots({
442
443
  control: withCtx(() => [
443
444
  createElementVNode("div", _hoisted_1$1, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.11.22",
3
+ "version": "0.11.23",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -5,6 +5,7 @@
5
5
  :rules="validations"
6
6
  :label="`${label}${required ? '*' : ''}`"
7
7
  stack-label
8
+ lazy-rules
8
9
  >
9
10
  <template #control>
10
11
  <div class="row">
@@ -160,7 +161,7 @@ watch([year, month, day], () => {
160
161
  const date = `${year.value}-${String(month.value).padStart(2, '0')}-${String(day.value).padStart(2, '0')}`
161
162
  if (year.value && month.value && day.value && !isNaN(Date.parse(date))) {
162
163
  emit('update:modelValue', date)
163
- } else {
164
+ } else if (modelValue.value !== null) {
164
165
  emit('update:modelValue', null)
165
166
  }
166
167
  })