@simsustech/quasar-components 0.11.15 → 0.11.17

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,18 @@
1
1
  # @simsustech/quasar-components
2
2
 
3
+ ## 0.11.17
4
+
5
+ ### Patch Changes
6
+
7
+ - c4a67e8: fix(components): fix DateInput margins
8
+ - f10af4e: fix(components): fix CronScheduleInput margins
9
+
10
+ ## 0.11.16
11
+
12
+ ### Patch Changes
13
+
14
+ - c890140: feat(components): add isItem prop to LocaleSelect
15
+
3
16
  ## 0.11.15
4
17
 
5
18
  ### Patch Changes
@@ -479,12 +479,13 @@ const loadLang = async (isoName) => {
479
479
  loadingLanguage = false;
480
480
  }
481
481
  };
482
- const _hoisted_1 = { key: 0 };
482
+ const _hoisted_1 = { key: 1 };
483
483
  const _sfc_main = /* @__PURE__ */ defineComponent({
484
484
  __name: "LocaleSelect",
485
485
  props: {
486
486
  modelValue: {},
487
- locales: {}
487
+ locales: {},
488
+ isItem: { type: Boolean }
488
489
  },
489
490
  setup(__props) {
490
491
  const props = __props;
@@ -512,7 +513,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
512
513
  "map-options": ""
513
514
  }), {
514
515
  "selected-item": withCtx((scope) => [
515
- scope.opt ? (openBlock(), createElementBlock("div", _hoisted_1, [
516
+ scope.opt && _ctx.isItem ? (openBlock(), createBlock(_component_q_item, { key: 0 }, {
517
+ default: withCtx(() => [
518
+ createVNode(_component_q_item_section, { avatar: "" }, {
519
+ default: withCtx(() => [
520
+ createVNode(_component_q_icon, {
521
+ name: scope.opt.icon
522
+ }, null, 8, ["name"])
523
+ ]),
524
+ _: 2
525
+ }, 1024),
526
+ createVNode(_component_q_item_section, null, {
527
+ default: withCtx(() => [
528
+ createVNode(_component_q_item_label, null, {
529
+ default: withCtx(() => [
530
+ createTextVNode(toDisplayString(scope.opt.label), 1)
531
+ ]),
532
+ _: 2
533
+ }, 1024)
534
+ ]),
535
+ _: 2
536
+ }, 1024)
537
+ ]),
538
+ _: 2
539
+ }, 1024)) : scope.opt ? (openBlock(), createElementBlock("div", _hoisted_1, [
516
540
  createVNode(_component_q_icon, {
517
541
  name: scope.opt.icon
518
542
  }, null, 8, ["name"]),
package/dist/form.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, useAttrs, withAsyncContext, watch, ref, createBlock, openBlock, unref, mergeProps, normalizeProps, guardReactiveProps, withCtx, createVNode, createTextVNode, toDisplayString, toRefs, computed, useSlots, createCommentVNode, renderSlot, createSlots, renderList, resolveDirective, createElementVNode, withDirectives, createElementBlock, Fragment, resolveDynamicComponent } from "vue";
2
2
  import { useQuasar, QSelect, QItem, QItemSection, QItemLabel, QInput, QField, QIcon, QTooltip, QPopupProxy, QDate, QBtn, QEditor } from "quasar";
3
- import { u as useLang, l as loadLang } from "./LocaleSelect.vue_vue_type_script_setup_true_lang-DmbnGyqQ.js";
4
- import { _ } from "./LocaleSelect.vue_vue_type_script_setup_true_lang-DmbnGyqQ.js";
3
+ import { u as useLang, l as loadLang } from "./LocaleSelect.vue_vue_type_script_setup_true_lang-CMvTDKR3.js";
4
+ import { _ } from "./LocaleSelect.vue_vue_type_script_setup_true_lang-CMvTDKR3.js";
5
5
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
6
6
  __name: "GenderSelect",
7
7
  props: {
@@ -370,7 +370,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
370
370
  placeholder: lang.value.datePicker.YYYY,
371
371
  style: {
372
372
  "max-width": format.value === "YYYY-MM-DD" ? "8ch" : "7ch",
373
- "margin-top": "-1.75em",
373
+ "margin-top": "-1.7em",
374
374
  "margin-bottom": "-0.5em",
375
375
  background: "transparent",
376
376
  border: 0
@@ -386,7 +386,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
386
386
  placeholder: lang.value.datePicker.MM,
387
387
  style: {
388
388
  "max-width": "7ch",
389
- "margin-top": "-1.75em",
389
+ "margin-top": "-1.7em",
390
390
  "margin-bottom": "-0.5em",
391
391
  background: "transparent",
392
392
  border: 0
@@ -402,7 +402,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
402
402
  placeholder: lang.value.datePicker.DD,
403
403
  style: {
404
404
  "max-width": format.value === "DD-MM-YYYY" ? "7ch" : "4ch",
405
- "margin-top": "-1.75em",
405
+ "margin-top": "-1.7em",
406
406
  "margin-bottom": "-0.5em",
407
407
  background: "transparent",
408
408
  border: 0
@@ -971,12 +971,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
971
971
  }
972
972
  }
973
973
  const smallStyle = {
974
- "margin-top": "-1.75em",
975
- "margin-bottom": "-0.5em",
976
- background: "transparent",
977
- border: 0
978
- };
979
- const largeStyle = {
974
+ "margin-top": "-1.7em",
980
975
  "margin-bottom": "-0.5em",
981
976
  background: "transparent",
982
977
  border: 0
@@ -1086,7 +1081,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1086
1081
  outlined: false,
1087
1082
  standout: false,
1088
1083
  rounded: false,
1089
- style: largeStyle,
1084
+ style: smallStyle,
1090
1085
  "map-options": "",
1091
1086
  "emit-value": "",
1092
1087
  multiple: ""
package/dist/general.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { u as useLang, l as loadLang, _ as _sfc_main$5 } from "./QSubmitButton.vue_vue_type_script_setup_true_lang-UtpXkOh7.js";
2
2
  import { useQuasar, QCard, QCardSection, QCardActions, QDialog, QLayout, QHeader, QToolbar, QBtn, QToolbarTitle, QPageContainer, QPage, QPageSticky, QSpace, QList } from "quasar";
3
3
  import { defineComponent, watch, ref, createBlock, openBlock, unref, withCtx, renderSlot, createVNode, createElementVNode, normalizeProps, guardReactiveProps, createCommentVNode, toRefs, normalizeClass, createElementBlock } from "vue";
4
- import { _ as _sfc_main$6 } from "./LocaleSelect.vue_vue_type_script_setup_true_lang-DmbnGyqQ.js";
4
+ import { _ as _sfc_main$6 } from "./LocaleSelect.vue_vue_type_script_setup_true_lang-CMvTDKR3.js";
5
5
  const _hoisted_1$1 = { class: "text-h6" };
6
6
  const _hoisted_2$1 = { class: "text-subtitle2" };
7
7
  const __default__$2 = {
@@ -5,6 +5,7 @@ export interface Props {
5
5
  icon: string;
6
6
  isoName: keyof Language['languages'];
7
7
  }[];
8
+ isItem?: boolean;
8
9
  }
9
10
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
11
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.11.15",
3
+ "version": "0.11.17",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -86,7 +86,7 @@
86
86
  :outlined="false"
87
87
  :standout="false"
88
88
  :rounded="false"
89
- :style="largeStyle"
89
+ :style="smallStyle"
90
90
  map-options
91
91
  emit-value
92
92
  multiple
@@ -214,13 +214,7 @@ function setInternalCron(cronString: string) {
214
214
  }
215
215
 
216
216
  const smallStyle = {
217
- 'margin-top': '-1.75em',
218
- 'margin-bottom': '-0.5em',
219
- background: 'transparent',
220
- border: 0
221
- }
222
-
223
- const largeStyle = {
217
+ 'margin-top': '-1.7em',
224
218
  'margin-bottom': '-0.5em',
225
219
  background: 'transparent',
226
220
  border: 0
@@ -206,7 +206,7 @@ const dateProps = computed<Record<string, QInputProps>>(() => ({
206
206
  placeholder: lang.value.datePicker.YYYY,
207
207
  style: {
208
208
  'max-width': format.value === 'YYYY-MM-DD' ? '8ch' : '7ch',
209
- 'margin-top': '-1.75em',
209
+ 'margin-top': '-1.7em',
210
210
  'margin-bottom': '-0.5em',
211
211
  background: 'transparent',
212
212
  border: 0
@@ -222,7 +222,7 @@ const dateProps = computed<Record<string, QInputProps>>(() => ({
222
222
  placeholder: lang.value.datePicker.MM,
223
223
  style: {
224
224
  'max-width': '7ch',
225
- 'margin-top': '-1.75em',
225
+ 'margin-top': '-1.7em',
226
226
  'margin-bottom': '-0.5em',
227
227
  background: 'transparent',
228
228
  border: 0
@@ -238,7 +238,7 @@ const dateProps = computed<Record<string, QInputProps>>(() => ({
238
238
  placeholder: lang.value.datePicker.DD,
239
239
  style: {
240
240
  'max-width': format.value === 'DD-MM-YYYY' ? '7ch' : '4ch',
241
- 'margin-top': '-1.75em',
241
+ 'margin-top': '-1.7em',
242
242
  'margin-bottom': '-0.5em',
243
243
  background: 'transparent',
244
244
  border: 0
@@ -8,7 +8,17 @@
8
8
  map-options
9
9
  >
10
10
  <template #selected-item="scope">
11
- <div v-if="scope.opt">
11
+ <q-item v-if="scope.opt && isItem">
12
+ <q-item-section avatar>
13
+ <q-icon :name="scope.opt.icon" />
14
+ </q-item-section>
15
+ <q-item-section>
16
+ <q-item-label>
17
+ {{ scope.opt.label }}
18
+ </q-item-label>
19
+ </q-item-section>
20
+ </q-item>
21
+ <div v-else-if="scope.opt">
12
22
  <q-icon :name="scope.opt.icon" />
13
23
  {{ scope.opt.label }}
14
24
  </div>
@@ -39,6 +49,7 @@ export interface Props {
39
49
  icon: string
40
50
  isoName: keyof Language['languages']
41
51
  }[]
52
+ isItem?: boolean
42
53
  }
43
54
  const props = defineProps<Props>()
44
55
  const { modelValue, locales } = toRefs(props)