@simsustech/quasar-components 0.11.3 → 0.11.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,11 @@
1
1
  # @simsustech/quasar-components
2
2
 
3
+ ## 0.11.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 1df3ea7: feat(FilteredModelSelect): add no-option template
8
+
3
9
  ## 0.11.3
4
10
 
5
11
  ### Patch Changes
package/dist/form.js CHANGED
@@ -6,6 +6,7 @@ const lang$1 = {
6
6
  yes: "Yes",
7
7
  no: "No",
8
8
  selectMultiple: "Select one or multiple",
9
+ noResultsAvailable: "No results available.",
9
10
  buttons: {
10
11
  close: "Close"
11
12
  },
@@ -80,7 +81,7 @@ const enUS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
80
81
  const lang = ref(lang$1);
81
82
  const locales = /* @__PURE__ */ Object.assign({
82
83
  "./en-US.ts": () => Promise.resolve().then(() => enUS),
83
- "./nl.ts": () => import("./nl-db4MMX_N.js")
84
+ "./nl.ts": () => import("./nl-BL9hHEHL.js")
84
85
  });
85
86
  const useLang = () => {
86
87
  return lang;
@@ -988,6 +989,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
988
989
  });
989
990
  });
990
991
  return (_ctx, _cache) => {
992
+ const _component_q_item_section = QItemSection;
993
+ const _component_q_item = QItem;
991
994
  return openBlock(), createBlock(unref(QSelect), mergeProps({
992
995
  ref_key: "selectRef",
993
996
  ref: selectRef
@@ -1011,6 +1014,19 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1011
1014
  hint: withCtx(() => [
1012
1015
  createTextVNode(toDisplayString(_ctx.hint), 1)
1013
1016
  ]),
1017
+ "no-option": withCtx(() => [
1018
+ createVNode(_component_q_item, null, {
1019
+ default: withCtx(() => [
1020
+ createVNode(_component_q_item_section, { class: "text-italic text-grey" }, {
1021
+ default: withCtx(() => [
1022
+ createTextVNode(toDisplayString(unref(lang2).noResultsAvailable), 1)
1023
+ ]),
1024
+ _: 1
1025
+ })
1026
+ ]),
1027
+ _: 1
1028
+ })
1029
+ ]),
1014
1030
  _: 2
1015
1031
  }, [
1016
1032
  renderList(_ctx.$slots, (_, slot) => {
@@ -3,6 +3,7 @@ const lang = {
3
3
  yes: "Ja",
4
4
  no: "Nee",
5
5
  selectMultiple: "Selecteer één of meerdere",
6
+ noResultsAvailable: "Geen resultaten beschikbaar.",
6
7
  buttons: {
7
8
  close: "Sluiten"
8
9
  },
@@ -3,6 +3,7 @@ export interface Language {
3
3
  yes: string;
4
4
  no: string;
5
5
  selectMultiple: string;
6
+ noResultsAvailable: string;
6
7
  buttons: {
7
8
  close: string;
8
9
  };
@@ -76,6 +77,7 @@ export declare const lang: Ref<{
76
77
  yes: string;
77
78
  no: string;
78
79
  selectMultiple: string;
80
+ noResultsAvailable: string;
79
81
  buttons: {
80
82
  close: string;
81
83
  };
@@ -147,6 +149,7 @@ export declare const lang: Ref<{
147
149
  yes: string;
148
150
  no: string;
149
151
  selectMultiple: string;
152
+ noResultsAvailable: string;
150
153
  buttons: {
151
154
  close: string;
152
155
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simsustech/quasar-components",
3
- "version": "0.11.3",
3
+ "version": "0.11.4",
4
4
  "author": "Stefan van Herwijnen",
5
5
  "description": "High level components for Quasar Framework",
6
6
  "license": "MIT",
@@ -22,6 +22,13 @@
22
22
  <template v-for="(_, slot) in $slots" #[slot]="scope">
23
23
  <slot :name="slot" v-bind="scope || {}" />
24
24
  </template>
25
+ <template #no-option>
26
+ <q-item>
27
+ <q-item-section class="text-italic text-grey">
28
+ {{ lang.noResultsAvailable }}
29
+ </q-item-section>
30
+ </q-item>
31
+ </template>
25
32
  </q-select>
26
33
  </template>
27
34
 
@@ -5,6 +5,7 @@ const lang: Language = {
5
5
  yes: 'Yes',
6
6
  no: 'No',
7
7
  selectMultiple: 'Select one or multiple',
8
+ noResultsAvailable: 'No results available.',
8
9
  buttons: {
9
10
  close: 'Close'
10
11
  },
@@ -3,6 +3,7 @@ export interface Language {
3
3
  yes: string
4
4
  no: string
5
5
  selectMultiple: string
6
+ noResultsAvailable: string
6
7
  buttons: {
7
8
  close: string
8
9
  }
@@ -5,6 +5,7 @@ const lang: Language = {
5
5
  yes: 'Ja',
6
6
  no: 'Nee',
7
7
  selectMultiple: 'Selecteer één of meerdere',
8
+ noResultsAvailable: 'Geen resultaten beschikbaar.',
8
9
  buttons: {
9
10
  close: 'Sluiten'
10
11
  },