@simsustech/quasar-components 0.5.3 → 0.5.5

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.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 6f8d9b9: feat: export useLang and loadLang
8
+
9
+ ## 0.5.4
10
+
11
+ ### Patch Changes
12
+
13
+ - d5d0975: fix(DateInput): fix style
14
+
3
15
  ## 0.5.3
4
16
 
5
17
  ### Patch Changes
@@ -1660,5 +1660,7 @@ export {
1660
1660
  _sfc_main$4 as RegisterForm,
1661
1661
  _sfc_main$b as RequestOtpForm,
1662
1662
  _sfc_main$1 as UserMenuButton,
1663
- _sfc_main$3 as VerificationSlider
1663
+ _sfc_main$3 as VerificationSlider,
1664
+ loadLang,
1665
+ useLang
1664
1666
  };
@@ -223,5 +223,7 @@ const enUs = {
223
223
  };
224
224
  export {
225
225
  enUs as e,
226
- nl as n
226
+ loadLang as l,
227
+ nl as n,
228
+ useLang as u
227
229
  };
package/dist/flags.js CHANGED
@@ -1,5 +1,7 @@
1
- import { e, n } from "./en-US-Duo_j_eL.js";
1
+ import { e, l, n, u } from "./en-US-BEeILC7o.js";
2
2
  export {
3
3
  e as enUs,
4
- n as nl
4
+ l as loadLang,
5
+ n as nl,
6
+ u as useLang
5
7
  };
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,
@@ -754,5 +754,7 @@ export {
754
754
  _sfc_main$9 as GenderItem,
755
755
  _sfc_main$a as GenderSelect,
756
756
  _sfc_main$8 as PostalCodeInput,
757
- _sfc_main$5 as TelephoneNumberInput
757
+ _sfc_main$5 as TelephoneNumberInput,
758
+ loadLang,
759
+ useLang
758
760
  };
package/dist/general.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { l as loadLang, u as useLang, _ as _sfc_main$4 } from "./QSubmitButton.vue_vue_type_script_setup_true_lang-DAnZaTMl.js";
2
2
  import { useQuasar, QCard, QCardSection, QCardActions, QDialog, QBtn, QToolbarTitle, QToolbar, QHeader, QPage, QPageContainer, QLayout, QSpace, QPageSticky, QSelect, QItemSection, QItemLabel, QItem } from "quasar";
3
3
  import { defineComponent, watch, ref, openBlock, createBlock, unref, withCtx, renderSlot, createVNode, createElementVNode, normalizeProps, guardReactiveProps, normalizeClass, createCommentVNode, toRefs, useAttrs, computed, mergeProps, createTextVNode, toDisplayString } from "vue";
4
- import { e as enUs, n as nl } from "./en-US-Duo_j_eL.js";
4
+ import { e as enUs, n as nl } from "./en-US-BEeILC7o.js";
5
5
  const _hoisted_1$1 = { class: "text-h6" };
6
6
  const _hoisted_2 = { class: "text-subtitle2" };
7
7
  const __default__$2 = {
@@ -419,5 +419,7 @@ export {
419
419
  QStyledCard,
420
420
  _sfc_main$4 as QSubmitButton,
421
421
  _sfc_main$1 as ResourcePage,
422
- _sfc_main$2 as ResponsiveDialog
422
+ _sfc_main$2 as ResponsiveDialog,
423
+ loadLang,
424
+ useLang
423
425
  };
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
+ }
@@ -10,3 +10,4 @@ export { default as VerificationSlider } from './VerificationSlider.vue';
10
10
  export { default as ConsentList } from './ConsentList.vue';
11
11
  export { default as UserMenuButton } from './UserMenuButton.vue';
12
12
  export { default as LoginButton } from './LoginButton.vue';
13
+ export { useLang, loadLang } from './lang/index.js';
@@ -1,3 +1,4 @@
1
1
  import nl from 'nl.flag';
2
2
  import enUs from 'en-US.flag';
3
3
  export { nl, enUs };
4
+ export { useLang, loadLang } from './lang/index.js';
@@ -9,3 +9,4 @@ export { default as BooleanSelect } from './BooleanSelect.vue';
9
9
  export { default as BooleanItem } from './BooleanItem.vue';
10
10
  export { default as EmailInput } from './EmailInput.vue';
11
11
  export { default as DatePicker } from './DatePicker.vue';
12
+ export { useLang, loadLang } from './lang/index.js';
@@ -3,3 +3,4 @@ export { default as QStyledCard } from './QStyledCard.vue';
3
3
  export { default as ResponsiveDialog } from './ResponsiveDialog.vue';
4
4
  export { default as ResourcePage } from './ResourcePage.vue';
5
5
  export { default as QLanguageSelect } from './QLanguageSelect.vue';
6
+ export { useLang, loadLang } from './lang/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -10,3 +10,4 @@ export { default as VerificationSlider } from './VerificationSlider.vue'
10
10
  export { default as ConsentList } from './ConsentList.vue'
11
11
  export { default as UserMenuButton } from './UserMenuButton.vue'
12
12
  export { default as LoginButton } from './LoginButton.vue'
13
+ export { useLang, loadLang } from './lang/index.js'
@@ -2,3 +2,4 @@
2
2
  import nl from 'nl.flag'
3
3
  import enUs from 'en-US.flag'
4
4
  export { nl, enUs }
5
+ export { useLang, loadLang } from './lang/index.js'
@@ -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>
@@ -9,3 +9,4 @@ export { default as BooleanSelect } from './BooleanSelect.vue'
9
9
  export { default as BooleanItem } from './BooleanItem.vue'
10
10
  export { default as EmailInput } from './EmailInput.vue'
11
11
  export { default as DatePicker } from './DatePicker.vue'
12
+ export { useLang, loadLang } from './lang/index.js'
@@ -3,3 +3,4 @@ export { default as QStyledCard } from './QStyledCard.vue'
3
3
  export { default as ResponsiveDialog } from './ResponsiveDialog.vue'
4
4
  export { default as ResourcePage } from './ResourcePage.vue'
5
5
  export { default as QLanguageSelect } from './QLanguageSelect.vue'
6
+ export { useLang, loadLang } from './lang/index.js'