@simsustech/quasar-components 0.11.15 → 0.11.16

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.16
4
+
5
+ ### Patch Changes
6
+
7
+ - c890140: feat(components): add isItem prop to LocaleSelect
8
+
3
9
  ## 0.11.15
4
10
 
5
11
  ### 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: {
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.16",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -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)