@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 +6 -0
- package/dist/form.js +17 -1
- package/dist/{nl-db4MMX_N.js → nl-BL9hHEHL.js} +1 -0
- package/dist/types/ui/form/lang/index.d.ts +3 -0
- package/package.json +1 -1
- package/src/ui/form/FilteredModelSelect.vue +7 -0
- package/src/ui/form/lang/en-US.ts +1 -0
- package/src/ui/form/lang/index.ts +1 -0
- package/src/ui/form/lang/nl.ts +1 -0
package/CHANGELOG.md
CHANGED
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-
|
|
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 @@ 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
|
@@ -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
|
|