@simsustech/quasar-components 0.5.2 → 0.5.4

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.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - d5d0975: fix(DateInput): fix style
8
+
9
+ ## 0.5.3
10
+
11
+ ### Patch Changes
12
+
13
+ - a908cb3: fix(PostalCodeInput): make modelValue optional
14
+
3
15
  ## 0.5.2
4
16
 
5
17
  ### Patch Changes
package/dist/form.js CHANGED
@@ -329,7 +329,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
329
329
  });
330
330
  const _hoisted_1 = {
331
331
  key: 0,
332
- style: { "padding": "0px", "margin": "0px", "font-size": "18px" }
332
+ style: { "margin-left": "-0.5em", "margin-top": "0.75em" }
333
333
  };
334
334
  const _hoisted_2 = { class: "row items-center justify-end" };
335
335
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
@@ -431,7 +431,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
431
431
  YYYY: {
432
432
  modelValue: year.value,
433
433
  placeholder: lang2.value.datePicker.YYYY,
434
- style: "max-width: 6.5ch",
434
+ style: "width: 7ch; margin-top: -2em; margin-bottom: -0.5em",
435
435
  // suffix: format.value === 'YYYY-MM-DD' ? '-' : undefined,
436
436
  class: format.value !== "YYYY-MM-DD" ? "q-mb-none q-ml-xs" : void 0,
437
437
  "onUpdate:modelValue": setYear,
@@ -440,7 +440,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
440
440
  MM: {
441
441
  modelValue: month.value ? String(month.value).padStart(2, "0") : "",
442
442
  placeholder: lang2.value.datePicker.MM,
443
- style: "max-width: 4.5ch",
443
+ style: "width: 6ch; margin-top: -2em; margin-bottom: -0.5em",
444
444
  // suffix: '-',
445
445
  class: "q-ml-xs",
446
446
  "onUpdate:modelValue": setMonth,
@@ -449,7 +449,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
449
449
  DD: {
450
450
  modelValue: day.value ? String(day.value).padStart(2, "0") : "",
451
451
  placeholder: lang2.value.datePicker.DD,
452
- style: "max-width: 4.5ch",
452
+ style: "width: 6ch; margin-top: -2em; margin-bottom: -0.5em",
453
453
  // suffix: format.value === 'DD-MM-YYYY' ? '-' : undefined,
454
454
  class: format.value === "YYYY-MM-DD" ? "q-ml-xs" : void 0,
455
455
  "onUpdate:modelValue": setDay,
package/dist/style.css CHANGED
@@ -1,25 +1,4 @@
1
1
  .card[data-v-302df27a] {
2
2
  width: 100%;
3
3
  max-width: 300px;
4
- }
5
- .q-field--auto-height .q-field__control,
6
- .q-field--auto-height .q-field__native {
7
- min-height: 1em;
8
- }
9
- .q-field--borderless .q-field__bottom,
10
- .q-field--borderless.q-field--dense .q-field__control,
11
- .q-field--standard .q-field__bottom,
12
- .q-field--standard.q-field--dense .q-field__control {
13
- padding-top: 0;
14
- }
15
- .q-field--auto-height.q-field--labeled .q-field__control-container {
16
- padding-top: 13px;
17
- }
18
- .q-field--auto-height.q-field--labeled .q-field__native {
19
- padding-bottom: 0px;
20
- }
21
- .q-field__after {
22
- height: 1em;
23
- margin-top: 0.5em;
24
- margin-left: -8px;
25
- }
4
+ }
@@ -1,6 +1,6 @@
1
1
  export type PostalCodeLocales = 'nl';
2
2
  export interface Props {
3
- modelValue: string;
3
+ modelValue?: string;
4
4
  locale: PostalCodeLocales;
5
5
  required?: boolean;
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -15,11 +15,11 @@
15
15
  v-bind="dateProps[part]"
16
16
  >
17
17
  <template #after>
18
- <a v-if="index < 2" style="padding: 0px; margin: 0px; font-size: 18px"
18
+ <a v-if="index < 2" style="margin-left: -0.5em; margin-top: 0.75em"
19
19
  >-</a
20
20
  >
21
- </template></component
22
- >
21
+ </template>
22
+ </component>
23
23
  </template>
24
24
 
25
25
  <template #append>
@@ -185,7 +185,7 @@ const dateProps = computed<Record<string, QInputProps>>(() => ({
185
185
  YYYY: {
186
186
  modelValue: year.value,
187
187
  placeholder: lang.value.datePicker.YYYY,
188
- style: 'max-width: 6.5ch',
188
+ style: 'width: 7ch; margin-top: -2em; margin-bottom: -0.5em',
189
189
  // suffix: format.value === 'YYYY-MM-DD' ? '-' : undefined,
190
190
  class: format.value !== 'YYYY-MM-DD' ? 'q-mb-none q-ml-xs' : undefined,
191
191
  'onUpdate:modelValue': setYear,
@@ -194,7 +194,7 @@ const dateProps = computed<Record<string, QInputProps>>(() => ({
194
194
  MM: {
195
195
  modelValue: month.value ? String(month.value).padStart(2, '0') : '',
196
196
  placeholder: lang.value.datePicker.MM,
197
- style: 'max-width: 4.5ch',
197
+ style: 'width: 6ch; margin-top: -2em; margin-bottom: -0.5em',
198
198
  // suffix: '-',
199
199
  class: 'q-ml-xs',
200
200
  'onUpdate:modelValue': setMonth,
@@ -203,7 +203,7 @@ const dateProps = computed<Record<string, QInputProps>>(() => ({
203
203
  DD: {
204
204
  modelValue: day.value ? String(day.value).padStart(2, '0') : '',
205
205
  placeholder: lang.value.datePicker.DD,
206
- style: 'max-width: 4.5ch',
206
+ style: 'width: 6ch; margin-top: -2em; margin-bottom: -0.5em',
207
207
  // suffix: format.value === 'DD-MM-YYYY' ? '-' : undefined,
208
208
  class: format.value === 'YYYY-MM-DD' ? 'q-ml-xs' : undefined,
209
209
  'onUpdate:modelValue': setDay,
@@ -226,26 +226,4 @@ if (props.required)
226
226
  )
227
227
  </script>
228
228
 
229
- <style>
230
- .q-field--auto-height .q-field__control,
231
- .q-field--auto-height .q-field__native {
232
- min-height: 1em;
233
- }
234
- .q-field--borderless .q-field__bottom,
235
- .q-field--borderless.q-field--dense .q-field__control,
236
- .q-field--standard .q-field__bottom,
237
- .q-field--standard.q-field--dense .q-field__control {
238
- padding-top: 0;
239
- }
240
- .q-field--auto-height.q-field--labeled .q-field__control-container {
241
- padding-top: 13px;
242
- }
243
- .q-field--auto-height.q-field--labeled .q-field__native {
244
- padding-bottom: 0px;
245
- }
246
- .q-field__after {
247
- height: 1em;
248
- margin-top: 0.5em;
249
- margin-left: -8px;
250
- }
251
- </style>
229
+ <style></style>
@@ -17,7 +17,7 @@ import { useLang } from './lang'
17
17
  export type PostalCodeLocales = 'nl'
18
18
 
19
19
  export interface Props {
20
- modelValue: string
20
+ modelValue?: string
21
21
  locale: PostalCodeLocales
22
22
  required?: boolean
23
23
  }