@simsustech/quasar-components 0.5.0 → 0.5.1

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.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 4d55fc8: feat(DateInput): add stack-label; fix(DateInput): set year to undefined on invalid values
8
+
3
9
  ## 0.5.0
4
10
 
5
11
  ### Minor Changes
package/dist/form.js CHANGED
@@ -352,6 +352,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
352
352
  const nr = Number(val);
353
353
  if (nr && nr > 1e3 && nr < 1e4)
354
354
  year.value = nr;
355
+ else
356
+ year.value = void 0;
355
357
  };
356
358
  const setMonth = (val) => {
357
359
  const nr = Number(val);
@@ -471,7 +473,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
471
473
  return openBlock(), createBlock(_component_q_field, {
472
474
  "model-value": unref(modelValue),
473
475
  "bottom-slots": "",
474
- rules: validations.value
476
+ rules: validations.value,
477
+ label: _ctx.label,
478
+ "stack-label": ""
475
479
  }, {
476
480
  control: withCtx(() => [
477
481
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(format).split("-"), (part) => {
@@ -533,7 +537,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
533
537
  })
534
538
  ]),
535
539
  _: 1
536
- }, 8, ["model-value", "rules"]);
540
+ }, 8, ["model-value", "rules", "label"]);
537
541
  };
538
542
  }
539
543
  });
package/dist/style.css CHANGED
@@ -12,3 +12,6 @@
12
12
  .q-field--standard.q-field--dense .q-field__control {
13
13
  padding-top: 0;
14
14
  }
15
+ .q-field--auto-height.q-field--labeled .q-field__control-container {
16
+ padding-top: 13px;
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -1,5 +1,11 @@
1
1
  <template>
2
- <q-field :model-value="modelValue" bottom-slots :rules="validations">
2
+ <q-field
3
+ :model-value="modelValue"
4
+ bottom-slots
5
+ :rules="validations"
6
+ :label="label"
7
+ stack-label
8
+ >
3
9
  <template #control>
4
10
  <component
5
11
  :is="QInput"
@@ -86,6 +92,7 @@ const setYear: InstanceType<typeof QInput>['$props']['onUpdate:modelValue'] = (
86
92
  ) => {
87
93
  const nr = Number(val)
88
94
  if (nr && nr > 1e3 && nr < 1e4) year.value = nr
95
+ else year.value = undefined
89
96
  }
90
97
 
91
98
  const setMonth: InstanceType<typeof QInput>['$props']['onUpdate:modelValue'] = (
@@ -224,4 +231,7 @@ if (props.required)
224
231
  .q-field--standard.q-field--dense .q-field__control {
225
232
  padding-top: 0;
226
233
  }
234
+ .q-field--auto-height.q-field--labeled .q-field__control-container {
235
+ padding-top: 13px;
236
+ }
227
237
  </style>