@simsustech/quasar-components 0.11.10 → 0.11.11
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 +8 -0
- package/dist/LocaleSelect.vue_vue_type_script_setup_true_lang-Du4fNbTV.js +573 -0
- package/dist/authentication.js +148 -65
- package/dist/form.js +155 -300
- package/dist/general.js +44 -195
- package/dist/md3.js +435 -0
- package/dist/{nl-BTgHOvpQ.js → nl-BJwNz421.js} +70 -0
- package/dist/{nl-jHKPHlmh.js → nl-CneFq5NZ.js} +4 -0
- package/dist/nl-NLgZUAKl.js +6 -0
- package/dist/types/ui/authentication/EmailChangeForm.vue.d.ts +2 -2
- package/dist/types/ui/authentication/LoginButton.vue.d.ts +1 -1
- package/dist/types/ui/authentication/LoginForm.vue.d.ts +2 -2
- package/dist/types/ui/authentication/LogoutButton.vue.d.ts +12 -0
- package/dist/types/ui/authentication/LogoutForm.vue.d.ts +18 -0
- package/dist/types/ui/authentication/PasswordChangeForm.vue.d.ts +2 -2
- package/dist/types/ui/authentication/RegisterForm.vue.d.ts +2 -2
- package/dist/types/ui/authentication/RequestOtpForm.vue.d.ts +2 -2
- package/dist/types/ui/authentication/UserMenuButton.vue.d.ts +1 -1
- package/dist/types/ui/authentication/index.d.ts +2 -0
- package/dist/types/ui/authentication/lang/index.d.ts +12 -0
- package/dist/types/ui/form/DateInput.vue.d.ts +11 -1
- package/dist/types/ui/form/FormInput.vue.d.ts +2 -15
- package/dist/types/ui/form/FormItem.vue.d.ts +2 -19
- package/dist/types/ui/form/LocaleSelect.vue.d.ts +6 -4
- package/dist/types/ui/form/lang/index.d.ts +1131 -0
- package/dist/types/ui/general/QDrawerList.vue.d.ts +2 -7
- package/dist/types/ui/general/QLanguageSelect.vue.d.ts +7 -4
- package/dist/types/ui/general/QStyledCard.vue.d.ts +9 -5
- package/dist/types/ui/general/QStyledLayout.vue.d.ts +1 -1
- package/dist/types/ui/general/QSubmitButton.vue.d.ts +1 -1
- package/dist/types/ui/general/ResourcePage.vue.d.ts +9 -5
- package/dist/types/ui/general/ResponsiveDialog.vue.d.ts +3 -2
- package/dist/types/ui/general/index.d.ts +0 -1
- package/dist/types/ui/md3/Md3Layout.vue.d.ts +31 -0
- package/dist/types/ui/md3/NavigationRailFabs.vue.d.ts +14 -0
- package/dist/types/ui/md3/index.d.ts +3 -0
- package/dist/types/ui/md3/lang/en-US.d.ts +3 -0
- package/dist/types/ui/md3/lang/index.d.ts +12 -0
- package/dist/types/ui/md3/lang/nl.d.ts +3 -0
- package/package.json +21 -14
- package/src/ui/authentication/LogoutButton.vue +31 -0
- package/src/ui/authentication/LogoutForm.vue +49 -0
- package/src/ui/authentication/index.ts +2 -0
- package/src/ui/authentication/lang/en-US.ts +4 -0
- package/src/ui/authentication/lang/index.ts +4 -0
- package/src/ui/authentication/lang/nl.ts +4 -0
- package/src/ui/form/DateInput.vue +42 -23
- package/src/ui/form/LocaleSelect.vue +29 -43
- package/src/ui/form/lang/en-US.ts +377 -0
- package/src/ui/form/lang/index.ts +377 -0
- package/src/ui/form/lang/nl.ts +377 -0
- package/src/ui/general/QLanguageSelect.vue +30 -106
- package/src/ui/general/{QLanguageSelectBtn.vue → QLanguageSelectBtn.vue.bak} +1 -1
- package/src/ui/general/QStyledCard.vue +2 -2
- package/src/ui/general/ResponsiveDialog.vue +14 -4
- package/src/ui/general/index.ts +1 -1
- package/src/ui/md3/Md3Layout.vue +139 -0
- package/src/ui/md3/NavigationRailFabs.vue +68 -0
- package/src/ui/md3/index.ts +3 -0
- package/src/ui/md3/lang/en-US.ts +7 -0
- package/src/ui/md3/lang/index.ts +41 -0
- package/src/ui/md3/lang/nl.ts +7 -0
- package/vite.config.ts +4 -3
- package/dist/flags.js +0 -255
- package/dist/icons.js +0 -25
- package/dist/index-DnmJt2wP.js +0 -7921
- package/dist/nl-BL9hHEHL.js +0 -76
- package/dist/types/ui/general/QLanguageSelectBtn.vue.d.ts +0 -11
package/dist/form.js
CHANGED
|
@@ -1,109 +1,8 @@
|
|
|
1
|
-
import {
|
|
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
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
yes: "Yes",
|
|
7
|
-
no: "No",
|
|
8
|
-
selectMultiple: "Select one or multiple",
|
|
9
|
-
noResultsAvailable: "No results available.",
|
|
10
|
-
buttons: {
|
|
11
|
-
close: "Close"
|
|
12
|
-
},
|
|
13
|
-
email: {
|
|
14
|
-
subject: "Subject"
|
|
15
|
-
},
|
|
16
|
-
fields: {
|
|
17
|
-
name: "Name",
|
|
18
|
-
firstName: "First name",
|
|
19
|
-
lastName: "Last name",
|
|
20
|
-
address: "Address",
|
|
21
|
-
postalCode: "Postal code",
|
|
22
|
-
city: "City",
|
|
23
|
-
telephoneNumber: "Telephone number"
|
|
24
|
-
},
|
|
25
|
-
validations: {
|
|
26
|
-
fieldRequired: "Field is required."
|
|
27
|
-
},
|
|
28
|
-
gender: {
|
|
29
|
-
gender: "Gender",
|
|
30
|
-
male: "Male",
|
|
31
|
-
female: "Female",
|
|
32
|
-
other: "Other"
|
|
33
|
-
},
|
|
34
|
-
postalCode: {
|
|
35
|
-
postalCode: "Postal code",
|
|
36
|
-
validations: {
|
|
37
|
-
invalidPostalCode: "Invalid postal code"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
datePicker: {
|
|
41
|
-
date: "Date",
|
|
42
|
-
placeholder: "YYYY/MM/DD",
|
|
43
|
-
YYYY: "YYYY",
|
|
44
|
-
MM: "MM",
|
|
45
|
-
DD: "DD",
|
|
46
|
-
validations: {
|
|
47
|
-
unavailableRange: "The selected period contains unavailable dates."
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
currency: {
|
|
51
|
-
currency: "Currency",
|
|
52
|
-
EUR: "Euro",
|
|
53
|
-
USD: "USD"
|
|
54
|
-
},
|
|
55
|
-
locale: {
|
|
56
|
-
locale: "Locale"
|
|
57
|
-
},
|
|
58
|
-
cron: {
|
|
59
|
-
name: "Repeat",
|
|
60
|
-
minute: "Minute",
|
|
61
|
-
hour: "Hour",
|
|
62
|
-
dayOfMonth: "Day of month",
|
|
63
|
-
month: "Month",
|
|
64
|
-
dayOfWeek: "Day of week",
|
|
65
|
-
every: {
|
|
66
|
-
minute: "Every minute",
|
|
67
|
-
hour: "Every hour",
|
|
68
|
-
dayOfMonth: "Every day",
|
|
69
|
-
month: "Every month",
|
|
70
|
-
dayOfWeek: "Every day of the week"
|
|
71
|
-
},
|
|
72
|
-
validations: {
|
|
73
|
-
invalidCron: "Cron rule is invalid."
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
const enUS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
78
|
-
__proto__: null,
|
|
79
|
-
default: lang$1
|
|
80
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
81
|
-
const lang = ref(lang$1);
|
|
82
|
-
const locales = /* @__PURE__ */ Object.assign({
|
|
83
|
-
"./en-US.ts": () => Promise.resolve().then(() => enUS),
|
|
84
|
-
"./nl.ts": () => import("./nl-BL9hHEHL.js")
|
|
85
|
-
});
|
|
86
|
-
const useLang = () => {
|
|
87
|
-
return lang;
|
|
88
|
-
};
|
|
89
|
-
let loadingLanguage = false;
|
|
90
|
-
const loadLang = async (isoName) => {
|
|
91
|
-
if (!loadingLanguage) {
|
|
92
|
-
loadingLanguage = true;
|
|
93
|
-
try {
|
|
94
|
-
const data = (await locales[`./${isoName}.ts`]()).default;
|
|
95
|
-
if (data) {
|
|
96
|
-
lang.value = data;
|
|
97
|
-
}
|
|
98
|
-
} catch (e) {
|
|
99
|
-
throw new Error(
|
|
100
|
-
`[quasar-components] Failed to load ${isoName} language file.`
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
loadingLanguage = false;
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
3
|
+
import { u as useLang, l as loadLang } from "./LocaleSelect.vue_vue_type_script_setup_true_lang-Du4fNbTV.js";
|
|
4
|
+
import { _ } from "./LocaleSelect.vue_vue_type_script_setup_true_lang-Du4fNbTV.js";
|
|
5
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
107
6
|
__name: "GenderSelect",
|
|
108
7
|
props: {
|
|
109
8
|
modelValue: {},
|
|
@@ -115,39 +14,39 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
115
14
|
let __temp, __restore;
|
|
116
15
|
const props = __props;
|
|
117
16
|
const attrs = useAttrs();
|
|
118
|
-
const
|
|
17
|
+
const lang = useLang();
|
|
119
18
|
const $q = useQuasar();
|
|
120
|
-
if (
|
|
19
|
+
if (lang.value.isoName !== $q.lang.isoName) [__temp, __restore] = withAsyncContext(() => loadLang($q.lang.isoName)), await __temp, __restore();
|
|
121
20
|
watch($q.lang, () => {
|
|
122
21
|
loadLang($q.lang.isoName);
|
|
123
22
|
});
|
|
124
23
|
const genderOptions = ref([
|
|
125
24
|
{
|
|
126
|
-
label:
|
|
25
|
+
label: lang.value.gender.male,
|
|
127
26
|
value: "male"
|
|
128
27
|
},
|
|
129
28
|
{
|
|
130
|
-
label:
|
|
29
|
+
label: lang.value.gender.female,
|
|
131
30
|
value: "female"
|
|
132
31
|
}
|
|
133
32
|
]);
|
|
134
33
|
if (!props.disableOther) {
|
|
135
34
|
genderOptions.value.push({
|
|
136
|
-
label:
|
|
35
|
+
label: lang.value.gender.other,
|
|
137
36
|
value: "other"
|
|
138
37
|
});
|
|
139
38
|
}
|
|
140
39
|
const validations = ref([]);
|
|
141
40
|
if (props.required)
|
|
142
41
|
validations.value.push(
|
|
143
|
-
(val) => !!val ||
|
|
42
|
+
(val) => !!val || lang.value.validations.fieldRequired
|
|
144
43
|
);
|
|
145
44
|
return (_ctx, _cache) => {
|
|
146
45
|
return openBlock(), createBlock(unref(QSelect), mergeProps(unref(attrs), {
|
|
147
46
|
rules: validations.value,
|
|
148
47
|
"model-value": _ctx.modelValue,
|
|
149
48
|
options: genderOptions.value,
|
|
150
|
-
label: `${unref(
|
|
49
|
+
label: `${unref(lang).gender.gender}${_ctx.required ? "*" : ""}`,
|
|
151
50
|
"emit-value": "",
|
|
152
51
|
"map-options": "",
|
|
153
52
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
|
|
@@ -155,16 +54,16 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
155
54
|
};
|
|
156
55
|
}
|
|
157
56
|
});
|
|
158
|
-
const _sfc_main$
|
|
57
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
159
58
|
__name: "GenderItem",
|
|
160
59
|
props: {
|
|
161
60
|
modelValue: {}
|
|
162
61
|
},
|
|
163
62
|
setup(__props) {
|
|
164
63
|
const attrs = useAttrs();
|
|
165
|
-
const
|
|
64
|
+
const lang = useLang();
|
|
166
65
|
const $q = useQuasar();
|
|
167
|
-
if (
|
|
66
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
168
67
|
watch($q.lang, () => {
|
|
169
68
|
loadLang($q.lang.isoName);
|
|
170
69
|
});
|
|
@@ -175,13 +74,13 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
175
74
|
default: withCtx(() => [
|
|
176
75
|
createVNode(unref(QItemLabel), { overline: "" }, {
|
|
177
76
|
default: withCtx(() => [
|
|
178
|
-
createTextVNode(toDisplayString(unref(
|
|
77
|
+
createTextVNode(toDisplayString(unref(lang).gender.gender), 1)
|
|
179
78
|
]),
|
|
180
79
|
_: 1
|
|
181
80
|
}),
|
|
182
81
|
createVNode(unref(QItemLabel), null, {
|
|
183
82
|
default: withCtx(() => [
|
|
184
|
-
createTextVNode(toDisplayString(_ctx.modelValue ? unref(
|
|
83
|
+
createTextVNode(toDisplayString(_ctx.modelValue ? unref(lang).gender[_ctx.modelValue] : ""), 1)
|
|
185
84
|
]),
|
|
186
85
|
_: 1
|
|
187
86
|
})
|
|
@@ -194,7 +93,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
194
93
|
};
|
|
195
94
|
}
|
|
196
95
|
});
|
|
197
|
-
const _sfc_main$
|
|
96
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
198
97
|
__name: "PostalCodeInput",
|
|
199
98
|
props: {
|
|
200
99
|
modelValue: {},
|
|
@@ -204,7 +103,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
204
103
|
emits: ["update:modelValue"],
|
|
205
104
|
setup(__props) {
|
|
206
105
|
const props = __props;
|
|
207
|
-
const
|
|
106
|
+
const lang = useLang();
|
|
208
107
|
const attrs = useAttrs();
|
|
209
108
|
const { country } = toRefs(props);
|
|
210
109
|
const masks = ref({
|
|
@@ -213,7 +112,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
213
112
|
const validations = ref({
|
|
214
113
|
NL: [
|
|
215
114
|
(val) => !val || // Do not check an empty string
|
|
216
|
-
/^[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$/i.test(val) ||
|
|
115
|
+
/^[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$/i.test(val) || lang.value.postalCode.validations.invalidPostalCode
|
|
217
116
|
]
|
|
218
117
|
});
|
|
219
118
|
const computedMask = computed(() => {
|
|
@@ -226,7 +125,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
226
125
|
if (country.value && validations.value[country.value])
|
|
227
126
|
val.push(...validations.value[country.value]);
|
|
228
127
|
if (props.required)
|
|
229
|
-
val.push((val2) => !!val2 ||
|
|
128
|
+
val.push((val2) => !!val2 || lang.value.validations.fieldRequired);
|
|
230
129
|
return val;
|
|
231
130
|
});
|
|
232
131
|
return (_ctx, _cache) => {
|
|
@@ -234,13 +133,13 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
234
133
|
mask: computedMask.value,
|
|
235
134
|
rules: computedValidations.value,
|
|
236
135
|
"model-value": _ctx.modelValue,
|
|
237
|
-
label: `${unref(
|
|
136
|
+
label: `${unref(lang).postalCode.postalCode}${_ctx.required ? "*" : ""}`,
|
|
238
137
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
|
|
239
138
|
}), null, 16, ["mask", "rules", "model-value", "label"]);
|
|
240
139
|
};
|
|
241
140
|
}
|
|
242
141
|
});
|
|
243
|
-
const _sfc_main$
|
|
142
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
244
143
|
__name: "FormItem",
|
|
245
144
|
props: {
|
|
246
145
|
modelValue: {},
|
|
@@ -250,9 +149,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
250
149
|
setup(__props) {
|
|
251
150
|
const attrs = useAttrs();
|
|
252
151
|
const slots = useSlots();
|
|
253
|
-
const
|
|
152
|
+
const lang = useLang();
|
|
254
153
|
const $q = useQuasar();
|
|
255
|
-
if (
|
|
154
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
256
155
|
watch($q.lang, () => {
|
|
257
156
|
loadLang($q.lang.isoName);
|
|
258
157
|
});
|
|
@@ -272,7 +171,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
272
171
|
default: withCtx(() => [
|
|
273
172
|
createVNode(unref(QItemLabel), { overline: "" }, {
|
|
274
173
|
default: withCtx(() => [
|
|
275
|
-
createTextVNode(toDisplayString(_ctx.label ? _ctx.label : _ctx.field ? unref(
|
|
174
|
+
createTextVNode(toDisplayString(_ctx.label ? _ctx.label : _ctx.field ? unref(lang).fields[_ctx.field] : ""), 1)
|
|
276
175
|
]),
|
|
277
176
|
_: 1
|
|
278
177
|
}),
|
|
@@ -300,7 +199,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
300
199
|
};
|
|
301
200
|
}
|
|
302
201
|
});
|
|
303
|
-
const _sfc_main$
|
|
202
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
304
203
|
__name: "FormInput",
|
|
305
204
|
props: {
|
|
306
205
|
modelValue: {},
|
|
@@ -311,25 +210,25 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
311
210
|
setup(__props) {
|
|
312
211
|
const props = __props;
|
|
313
212
|
const attrs = useAttrs();
|
|
314
|
-
const
|
|
213
|
+
const lang = useLang();
|
|
315
214
|
const $q = useQuasar();
|
|
316
|
-
if (
|
|
215
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
317
216
|
watch($q.lang, () => {
|
|
318
217
|
loadLang($q.lang.isoName);
|
|
319
218
|
});
|
|
320
219
|
const validations = ref([]);
|
|
321
220
|
if (props.required)
|
|
322
221
|
validations.value.push(
|
|
323
|
-
(val) => !!val ||
|
|
222
|
+
(val) => !!val || lang.value.validations.fieldRequired
|
|
324
223
|
);
|
|
325
224
|
return (_ctx, _cache) => {
|
|
326
225
|
return openBlock(), createBlock(unref(QInput), mergeProps(unref(attrs), {
|
|
327
226
|
rules: validations.value,
|
|
328
227
|
"model-value": _ctx.modelValue,
|
|
329
|
-
label: `${_ctx.field ? unref(
|
|
228
|
+
label: `${_ctx.field ? unref(lang).fields[_ctx.field] : _ctx.label ? _ctx.label : ""}${_ctx.required ? "*" : ""}`,
|
|
330
229
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
|
|
331
230
|
}), createSlots({ _: 2 }, [
|
|
332
|
-
renderList(_ctx.$slots, (
|
|
231
|
+
renderList(_ctx.$slots, (_2, slot) => {
|
|
333
232
|
return {
|
|
334
233
|
name: slot,
|
|
335
234
|
fn: withCtx((scope) => [
|
|
@@ -341,7 +240,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
341
240
|
};
|
|
342
241
|
}
|
|
343
242
|
});
|
|
344
|
-
const _sfc_main$
|
|
243
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
345
244
|
__name: "TelephoneNumberInput",
|
|
346
245
|
props: {
|
|
347
246
|
modelValue: {},
|
|
@@ -350,29 +249,30 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
350
249
|
emits: ["update:modelValue"],
|
|
351
250
|
setup(__props) {
|
|
352
251
|
const props = __props;
|
|
353
|
-
const
|
|
252
|
+
const lang = useLang();
|
|
354
253
|
const attrs = useAttrs();
|
|
355
254
|
const validations = ref([]);
|
|
356
255
|
if (props.required)
|
|
357
256
|
validations.value.push(
|
|
358
|
-
(val) => !!val ||
|
|
257
|
+
(val) => !!val || lang.value.validations.fieldRequired
|
|
359
258
|
);
|
|
360
259
|
return (_ctx, _cache) => {
|
|
361
260
|
return openBlock(), createBlock(unref(QInput), mergeProps(unref(attrs), {
|
|
362
261
|
rules: validations.value,
|
|
363
262
|
"model-value": _ctx.modelValue,
|
|
364
|
-
label: `${unref(
|
|
263
|
+
label: `${unref(lang).fields.telephoneNumber}${_ctx.required ? "*" : ""}`,
|
|
365
264
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
|
|
366
265
|
}), null, 16, ["rules", "model-value", "label"]);
|
|
367
266
|
};
|
|
368
267
|
}
|
|
369
268
|
});
|
|
370
|
-
const _hoisted_1
|
|
269
|
+
const _hoisted_1 = { class: "row" };
|
|
270
|
+
const _hoisted_2 = {
|
|
371
271
|
key: 0,
|
|
372
|
-
style: { "margin-
|
|
272
|
+
style: { "margin-top": "1em", "width": "1ch" }
|
|
373
273
|
};
|
|
374
|
-
const
|
|
375
|
-
const _sfc_main$
|
|
274
|
+
const _hoisted_3 = { class: "row items-center justify-end" };
|
|
275
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
376
276
|
__name: "DateInput",
|
|
377
277
|
props: {
|
|
378
278
|
modelValue: {},
|
|
@@ -391,7 +291,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
391
291
|
setup(__props, { emit: __emit }) {
|
|
392
292
|
const props = __props;
|
|
393
293
|
const emit = __emit;
|
|
394
|
-
const
|
|
294
|
+
const lang = useLang();
|
|
395
295
|
const { modelValue, format, locale } = toRefs(props);
|
|
396
296
|
const year = ref();
|
|
397
297
|
const month = ref();
|
|
@@ -467,40 +367,49 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
467
367
|
const dateProps = computed(() => ({
|
|
468
368
|
YYYY: {
|
|
469
369
|
modelValue: year.value,
|
|
470
|
-
placeholder:
|
|
370
|
+
placeholder: lang.value.datePicker.YYYY,
|
|
471
371
|
style: {
|
|
472
|
-
width: format.value === "YYYY-MM-DD" ? "8ch" : "
|
|
473
|
-
"margin-top": "-
|
|
474
|
-
"margin-bottom": "-0.5em"
|
|
372
|
+
"max-width": format.value === "YYYY-MM-DD" ? "8ch" : "7ch",
|
|
373
|
+
"margin-top": "-1.75em",
|
|
374
|
+
"margin-bottom": "-0.5em",
|
|
375
|
+
background: "transparent",
|
|
376
|
+
border: 0
|
|
475
377
|
},
|
|
476
378
|
// suffix: format.value === 'YYYY-MM-DD' ? '-' : undefined,
|
|
477
379
|
class: format.value !== "YYYY-MM-DD" ? "q-mb-none q-ml-none" : void 0,
|
|
380
|
+
inputClass: "text-center",
|
|
478
381
|
"onUpdate:modelValue": setYear,
|
|
479
382
|
onKeydown: goToNextElement
|
|
480
383
|
},
|
|
481
384
|
MM: {
|
|
482
385
|
modelValue: month.value ? String(month.value).padStart(2, "0") : "",
|
|
483
|
-
placeholder:
|
|
386
|
+
placeholder: lang.value.datePicker.MM,
|
|
484
387
|
style: {
|
|
485
|
-
width: "
|
|
486
|
-
"margin-top": "-
|
|
487
|
-
"margin-bottom": "-0.5em"
|
|
388
|
+
"max-width": "7ch",
|
|
389
|
+
"margin-top": "-1.75em",
|
|
390
|
+
"margin-bottom": "-0.5em",
|
|
391
|
+
background: "transparent",
|
|
392
|
+
border: 0
|
|
488
393
|
},
|
|
489
394
|
// suffix: '-',
|
|
490
395
|
class: "q-ml-none",
|
|
396
|
+
inputClass: "text-center",
|
|
491
397
|
"onUpdate:modelValue": setMonth,
|
|
492
398
|
onKeydown: goToNextElement
|
|
493
399
|
},
|
|
494
400
|
DD: {
|
|
495
401
|
modelValue: day.value ? String(day.value).padStart(2, "0") : "",
|
|
496
|
-
placeholder:
|
|
402
|
+
placeholder: lang.value.datePicker.DD,
|
|
497
403
|
style: {
|
|
498
|
-
width: format.value === "DD-MM-YYYY" ? "
|
|
499
|
-
"margin-top": "-
|
|
500
|
-
"margin-bottom": "-0.5em"
|
|
404
|
+
"max-width": format.value === "DD-MM-YYYY" ? "7ch" : "4ch",
|
|
405
|
+
"margin-top": "-1.75em",
|
|
406
|
+
"margin-bottom": "-0.5em",
|
|
407
|
+
background: "transparent",
|
|
408
|
+
border: 0
|
|
501
409
|
},
|
|
502
410
|
// suffix: format.value === 'DD-MM-YYYY' ? '-' : undefined,
|
|
503
411
|
class: format.value === "YYYY-MM-DD" ? "q-ml-none" : void 0,
|
|
412
|
+
inputClass: "text-center",
|
|
504
413
|
"onUpdate:modelValue": setDay,
|
|
505
414
|
onKeydown: goToNextElement
|
|
506
415
|
}
|
|
@@ -514,7 +423,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
514
423
|
]);
|
|
515
424
|
if (props.required)
|
|
516
425
|
validations.value.push(
|
|
517
|
-
(val) => !!val ||
|
|
426
|
+
(val) => !!val || lang.value.validations.fieldRequired
|
|
518
427
|
);
|
|
519
428
|
return (_ctx, _cache) => {
|
|
520
429
|
const _component_q_icon = QIcon;
|
|
@@ -529,20 +438,30 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
529
438
|
rules: validations.value,
|
|
530
439
|
label: `${_ctx.label}${_ctx.required ? "*" : ""}`,
|
|
531
440
|
"stack-label": ""
|
|
532
|
-
}, {
|
|
441
|
+
}, createSlots({
|
|
533
442
|
control: withCtx(() => [
|
|
534
|
-
(
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
443
|
+
createElementVNode("div", _hoisted_1, [
|
|
444
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(format).split("-"), (part, index) => {
|
|
445
|
+
return openBlock(), createBlock(resolveDynamicComponent(unref(QInput)), mergeProps({
|
|
446
|
+
key: part,
|
|
447
|
+
class: "col-auto",
|
|
448
|
+
borderless: "",
|
|
449
|
+
filled: false,
|
|
450
|
+
outlined: false,
|
|
451
|
+
standout: false,
|
|
452
|
+
rounded: false,
|
|
453
|
+
ref_for: true
|
|
454
|
+
}, dateProps.value[part], {
|
|
455
|
+
inputmode: "numeric",
|
|
456
|
+
dense: ""
|
|
457
|
+
}), {
|
|
458
|
+
after: withCtx(() => [
|
|
459
|
+
index < 2 ? (openBlock(), createElementBlock("a", _hoisted_2, "-")) : createCommentVNode("", true)
|
|
460
|
+
]),
|
|
461
|
+
_: 2
|
|
462
|
+
}, 1040);
|
|
463
|
+
}), 128))
|
|
464
|
+
])
|
|
546
465
|
]),
|
|
547
466
|
append: withCtx(() => [
|
|
548
467
|
_ctx.clearable ? (openBlock(), createBlock(_component_q_icon, {
|
|
@@ -575,9 +494,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
575
494
|
"onUpdate:modelValue": setDate
|
|
576
495
|
}), {
|
|
577
496
|
default: withCtx(() => [
|
|
578
|
-
createElementVNode("div",
|
|
497
|
+
createElementVNode("div", _hoisted_3, [
|
|
579
498
|
withDirectives(createVNode(_component_q_btn, {
|
|
580
|
-
label: unref(
|
|
499
|
+
label: unref(lang).buttons.close,
|
|
581
500
|
color: "primary",
|
|
582
501
|
flat: ""
|
|
583
502
|
}, null, 8, ["label"]), [
|
|
@@ -595,12 +514,21 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
595
514
|
_: 1
|
|
596
515
|
}, 8, ["name"])
|
|
597
516
|
]),
|
|
598
|
-
_:
|
|
599
|
-
},
|
|
517
|
+
_: 2
|
|
518
|
+
}, [
|
|
519
|
+
renderList(_ctx.$slots, (_2, slot) => {
|
|
520
|
+
return {
|
|
521
|
+
name: slot,
|
|
522
|
+
fn: withCtx((scope) => [
|
|
523
|
+
renderSlot(_ctx.$slots, slot, normalizeProps(guardReactiveProps(scope || {})))
|
|
524
|
+
])
|
|
525
|
+
};
|
|
526
|
+
})
|
|
527
|
+
]), 1032, ["model-value", "rules", "label"]);
|
|
600
528
|
};
|
|
601
529
|
}
|
|
602
530
|
});
|
|
603
|
-
const _sfc_main$
|
|
531
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
604
532
|
__name: "BooleanSelect",
|
|
605
533
|
props: {
|
|
606
534
|
modelValue: { type: [Boolean, null] },
|
|
@@ -611,26 +539,26 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
611
539
|
setup(__props) {
|
|
612
540
|
const props = __props;
|
|
613
541
|
const attrs = useAttrs();
|
|
614
|
-
const
|
|
542
|
+
const lang = useLang();
|
|
615
543
|
const $q = useQuasar();
|
|
616
|
-
if (
|
|
544
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
617
545
|
watch($q.lang, () => {
|
|
618
546
|
loadLang($q.lang.isoName);
|
|
619
547
|
});
|
|
620
548
|
const booleanOptions = ref([
|
|
621
549
|
{
|
|
622
|
-
label:
|
|
550
|
+
label: lang.value.yes,
|
|
623
551
|
value: true
|
|
624
552
|
},
|
|
625
553
|
{
|
|
626
|
-
label:
|
|
554
|
+
label: lang.value.no,
|
|
627
555
|
value: false
|
|
628
556
|
}
|
|
629
557
|
]);
|
|
630
558
|
const validations = ref([]);
|
|
631
559
|
if (props.required)
|
|
632
560
|
validations.value.push(
|
|
633
|
-
(val) => val !== null ||
|
|
561
|
+
(val) => val !== null || lang.value.validations.fieldRequired
|
|
634
562
|
);
|
|
635
563
|
return (_ctx, _cache) => {
|
|
636
564
|
return openBlock(), createBlock(unref(QSelect), mergeProps(unref(attrs), {
|
|
@@ -645,7 +573,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
645
573
|
};
|
|
646
574
|
}
|
|
647
575
|
});
|
|
648
|
-
const _sfc_main$
|
|
576
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
649
577
|
__name: "BooleanItem",
|
|
650
578
|
props: {
|
|
651
579
|
modelValue: { type: [Boolean, null] },
|
|
@@ -653,9 +581,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
653
581
|
},
|
|
654
582
|
setup(__props) {
|
|
655
583
|
const attrs = useAttrs();
|
|
656
|
-
const
|
|
584
|
+
const lang = useLang();
|
|
657
585
|
const $q = useQuasar();
|
|
658
|
-
if (
|
|
586
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
659
587
|
watch($q.lang, () => {
|
|
660
588
|
loadLang($q.lang.isoName);
|
|
661
589
|
});
|
|
@@ -672,7 +600,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
672
600
|
}),
|
|
673
601
|
createVNode(unref(QItemLabel), null, {
|
|
674
602
|
default: withCtx(() => [
|
|
675
|
-
createTextVNode(toDisplayString(_ctx.modelValue === null ? "-" : _ctx.modelValue ? unref(
|
|
603
|
+
createTextVNode(toDisplayString(_ctx.modelValue === null ? "-" : _ctx.modelValue ? unref(lang).yes : unref(lang).no), 1)
|
|
676
604
|
]),
|
|
677
605
|
_: 1
|
|
678
606
|
})
|
|
@@ -688,7 +616,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
688
616
|
const __default__ = {
|
|
689
617
|
name: "EmailInput"
|
|
690
618
|
};
|
|
691
|
-
const _sfc_main$
|
|
619
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
692
620
|
...__default__,
|
|
693
621
|
props: {
|
|
694
622
|
subject: {},
|
|
@@ -697,7 +625,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
697
625
|
emits: ["update:subject", "update:body"],
|
|
698
626
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
699
627
|
const emit = __emit;
|
|
700
|
-
const
|
|
628
|
+
const lang = useLang();
|
|
701
629
|
const variables = ref({
|
|
702
630
|
// header: lang.value.some.nested.prop
|
|
703
631
|
});
|
|
@@ -712,7 +640,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
712
640
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
713
641
|
createVNode(unref(QInput), {
|
|
714
642
|
outlined: "",
|
|
715
|
-
placeholder: unref(
|
|
643
|
+
placeholder: unref(lang).email.subject,
|
|
716
644
|
"model-value": _ctx.subject,
|
|
717
645
|
type: "text",
|
|
718
646
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:subject", $event))
|
|
@@ -731,7 +659,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
731
659
|
};
|
|
732
660
|
}
|
|
733
661
|
});
|
|
734
|
-
const _sfc_main$
|
|
662
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
735
663
|
__name: "DatePicker",
|
|
736
664
|
props: {
|
|
737
665
|
modelValue: {},
|
|
@@ -745,7 +673,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
745
673
|
const attrs = useAttrs();
|
|
746
674
|
const emit = __emit;
|
|
747
675
|
const $q = useQuasar();
|
|
748
|
-
const
|
|
676
|
+
const lang = useLang();
|
|
749
677
|
const { periods, range, options: parentOptions } = toRefs(props);
|
|
750
678
|
const update = (val) => {
|
|
751
679
|
var _a;
|
|
@@ -759,7 +687,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
759
687
|
for (const period of unavailablePeriods) {
|
|
760
688
|
if (parsedFrom <= period.startDate && parsedTo >= period.endDate) {
|
|
761
689
|
return $q.notify({
|
|
762
|
-
message:
|
|
690
|
+
message: lang.value.datePicker.validations.unavailableRange,
|
|
763
691
|
color: "red"
|
|
764
692
|
});
|
|
765
693
|
}
|
|
@@ -796,7 +724,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
796
724
|
};
|
|
797
725
|
}
|
|
798
726
|
});
|
|
799
|
-
const _sfc_main$
|
|
727
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
800
728
|
__name: "CurrencySelect",
|
|
801
729
|
props: {
|
|
802
730
|
modelValue: {},
|
|
@@ -806,28 +734,28 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
806
734
|
setup(__props) {
|
|
807
735
|
const props = __props;
|
|
808
736
|
const attrs = useAttrs();
|
|
809
|
-
const
|
|
737
|
+
const lang = useLang();
|
|
810
738
|
const currencyOptions = ref([
|
|
811
739
|
{
|
|
812
|
-
label:
|
|
740
|
+
label: lang.value.currency.EUR,
|
|
813
741
|
value: "EUR"
|
|
814
742
|
},
|
|
815
743
|
{
|
|
816
|
-
label:
|
|
744
|
+
label: lang.value.currency.USD,
|
|
817
745
|
value: "USD"
|
|
818
746
|
}
|
|
819
747
|
]);
|
|
820
748
|
const validations = ref([]);
|
|
821
749
|
if (props.required)
|
|
822
750
|
validations.value.push(
|
|
823
|
-
(val) => !!val ||
|
|
751
|
+
(val) => !!val || lang.value.validations.fieldRequired
|
|
824
752
|
);
|
|
825
753
|
return (_ctx, _cache) => {
|
|
826
754
|
return openBlock(), createBlock(unref(QSelect), mergeProps(unref(attrs), {
|
|
827
755
|
rules: validations.value,
|
|
828
756
|
"model-value": _ctx.modelValue,
|
|
829
757
|
options: currencyOptions.value,
|
|
830
|
-
label: `${unref(
|
|
758
|
+
label: `${unref(lang).currency.currency}${_ctx.required ? "*" : ""}`,
|
|
831
759
|
"emit-value": "",
|
|
832
760
|
"map-options": "",
|
|
833
761
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event))
|
|
@@ -835,79 +763,6 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
835
763
|
};
|
|
836
764
|
}
|
|
837
765
|
});
|
|
838
|
-
const _hoisted_1 = { key: 0 };
|
|
839
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
840
|
-
__name: "LocaleSelect",
|
|
841
|
-
props: {
|
|
842
|
-
modelValue: {},
|
|
843
|
-
required: { type: Boolean },
|
|
844
|
-
allowedCodes: { default: () => ["en-US", "nl"] }
|
|
845
|
-
},
|
|
846
|
-
setup(__props) {
|
|
847
|
-
const attrs = useAttrs();
|
|
848
|
-
const lang2 = useLang();
|
|
849
|
-
const flagsLang = useLang$1();
|
|
850
|
-
const languageOptions = computed(() => {
|
|
851
|
-
var _a;
|
|
852
|
-
const options = [];
|
|
853
|
-
for (let lang22 of Object.keys(flagsLang.value.languages)) {
|
|
854
|
-
if (!((_a = __props.allowedCodes) == null ? void 0 : _a.length) || __props.allowedCodes.includes(lang22)) {
|
|
855
|
-
options.push({
|
|
856
|
-
label: flagsLang.value.languages[lang22],
|
|
857
|
-
value: lang22
|
|
858
|
-
});
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
return options;
|
|
862
|
-
});
|
|
863
|
-
return (_ctx, _cache) => {
|
|
864
|
-
const _component_q_item_section = QItemSection;
|
|
865
|
-
const _component_q_item_label = QItemLabel;
|
|
866
|
-
const _component_q_item = QItem;
|
|
867
|
-
return openBlock(), createBlock(unref(QSelect), mergeProps(unref(attrs), {
|
|
868
|
-
options: languageOptions.value,
|
|
869
|
-
"model-value": _ctx.modelValue,
|
|
870
|
-
label: `${unref(lang2).locale.locale}${_ctx.required ? "*" : ""}`,
|
|
871
|
-
"emit-value": "",
|
|
872
|
-
"map-options": ""
|
|
873
|
-
}), {
|
|
874
|
-
selected: withCtx(() => [
|
|
875
|
-
_ctx.modelValue ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
876
|
-
(openBlock(), createBlock(resolveDynamicComponent(flags[_ctx.modelValue.slice(-2).toLowerCase()]))),
|
|
877
|
-
createTextVNode(" " + toDisplayString(unref(flagsLang).languages[_ctx.modelValue]), 1)
|
|
878
|
-
])) : createCommentVNode("", true)
|
|
879
|
-
]),
|
|
880
|
-
option: withCtx((scope) => [
|
|
881
|
-
createVNode(_component_q_item, normalizeProps(guardReactiveProps(scope.itemProps)), {
|
|
882
|
-
default: withCtx(() => [
|
|
883
|
-
createVNode(_component_q_item_section, { avatar: "" }, {
|
|
884
|
-
default: withCtx(() => [
|
|
885
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
886
|
-
flags[scope.opt.value.slice(-2).toLowerCase()]
|
|
887
|
-
)))
|
|
888
|
-
]),
|
|
889
|
-
_: 2
|
|
890
|
-
}, 1024),
|
|
891
|
-
createVNode(_component_q_item_section, null, {
|
|
892
|
-
default: withCtx(() => [
|
|
893
|
-
createVNode(_component_q_item_label, null, {
|
|
894
|
-
default: withCtx(() => [
|
|
895
|
-
createTextVNode(toDisplayString(scope.opt.label), 1)
|
|
896
|
-
]),
|
|
897
|
-
_: 2
|
|
898
|
-
}, 1024)
|
|
899
|
-
]),
|
|
900
|
-
_: 2
|
|
901
|
-
}, 1024)
|
|
902
|
-
]),
|
|
903
|
-
_: 2
|
|
904
|
-
}, 1040)
|
|
905
|
-
]),
|
|
906
|
-
_: 1
|
|
907
|
-
}, 16, ["options", "model-value", "label"]);
|
|
908
|
-
};
|
|
909
|
-
}
|
|
910
|
-
});
|
|
911
766
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
912
767
|
__name: "FilteredModelSelect",
|
|
913
768
|
props: {
|
|
@@ -928,7 +783,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
928
783
|
const props = __props;
|
|
929
784
|
const attrs = useAttrs();
|
|
930
785
|
const emit = __emit;
|
|
931
|
-
const
|
|
786
|
+
const lang = useLang();
|
|
932
787
|
const {
|
|
933
788
|
modelValue,
|
|
934
789
|
onFilter,
|
|
@@ -961,7 +816,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
961
816
|
return [];
|
|
962
817
|
});
|
|
963
818
|
const requiredValidation = ref(
|
|
964
|
-
(val) => (Array.isArray(val) ? !!val.length : !!val) ||
|
|
819
|
+
(val) => (Array.isArray(val) ? !!val.length : !!val) || lang.value.validations.fieldRequired
|
|
965
820
|
);
|
|
966
821
|
const selectedIds = computed(() => {
|
|
967
822
|
if (Array.isArray(modelValue.value)) {
|
|
@@ -1002,7 +857,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1002
857
|
"model-value": unref(modelValue),
|
|
1003
858
|
options: options.value,
|
|
1004
859
|
label: `${_ctx.label}${_ctx.required ? "*" : ""}`,
|
|
1005
|
-
hint: _ctx.multiple ? unref(
|
|
860
|
+
hint: _ctx.multiple ? unref(lang).selectMultiple : void 0,
|
|
1006
861
|
"emit-value": "",
|
|
1007
862
|
"map-options": "",
|
|
1008
863
|
"fill-input": !_ctx.multiple,
|
|
@@ -1023,7 +878,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1023
878
|
default: withCtx(() => [
|
|
1024
879
|
createVNode(_component_q_item_section, { class: "text-italic text-grey" }, {
|
|
1025
880
|
default: withCtx(() => [
|
|
1026
|
-
createTextVNode(toDisplayString(unref(
|
|
881
|
+
createTextVNode(toDisplayString(unref(lang).noResultsAvailable), 1)
|
|
1027
882
|
]),
|
|
1028
883
|
_: 1
|
|
1029
884
|
})
|
|
@@ -1033,7 +888,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1033
888
|
]),
|
|
1034
889
|
_: 2
|
|
1035
890
|
}, [
|
|
1036
|
-
renderList(_ctx.$slots, (
|
|
891
|
+
renderList(_ctx.$slots, (_2, slot) => {
|
|
1037
892
|
return {
|
|
1038
893
|
name: slot,
|
|
1039
894
|
fn: withCtx((scope) => [
|
|
@@ -1060,11 +915,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1060
915
|
const emit = __emit;
|
|
1061
916
|
const { modelValue } = toRefs(props);
|
|
1062
917
|
const $q = useQuasar();
|
|
1063
|
-
const
|
|
918
|
+
const lang = useLang();
|
|
1064
919
|
const cronregex = new RegExp(
|
|
1065
920
|
/(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@every (\d+(ns|us|µs|ms|s|m|h))+)|((((\d+,)+\d+|(\d+(\/|-)\d+)|\d+|\*) ?){5,7})/
|
|
1066
921
|
);
|
|
1067
|
-
const label =
|
|
922
|
+
const label = lang.value.cron.name;
|
|
1068
923
|
const minute = ref(["0"]);
|
|
1069
924
|
const hour = ref(["0"]);
|
|
1070
925
|
const dayOfMonth = ref(["1"]);
|
|
@@ -1073,12 +928,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1073
928
|
const minuteOptions = ref([...Array(59).keys()].map(String));
|
|
1074
929
|
const hourOptions = ref([...Array(24).keys()].map(String));
|
|
1075
930
|
const dayOfMonthOptions = ref(
|
|
1076
|
-
Array.from({ length: 31 }, (
|
|
931
|
+
Array.from({ length: 31 }, (_2, i) => i + 1).map(
|
|
1077
932
|
(dayOfMonth2) => String(dayOfMonth2)
|
|
1078
933
|
)
|
|
1079
934
|
);
|
|
1080
935
|
const monthOptions = ref([
|
|
1081
|
-
...Array.from({ length: 12 }, (
|
|
936
|
+
...Array.from({ length: 12 }, (_2, i) => i + 1).map((month2) => ({
|
|
1082
937
|
label: $q.lang.date.months[month2 - 1],
|
|
1083
938
|
value: String(month2)
|
|
1084
939
|
}))
|
|
@@ -1090,7 +945,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1090
945
|
}))
|
|
1091
946
|
);
|
|
1092
947
|
const validations = ref([
|
|
1093
|
-
(val) => cronregex.test(val) ||
|
|
948
|
+
(val) => cronregex.test(val) || lang.value.cron.validations.invalidCron
|
|
1094
949
|
]);
|
|
1095
950
|
watch([minute, hour, dayOfMonth, month, dayOfWeek], () => {
|
|
1096
951
|
const cron = `${minute.value.join(",") || "*"} ${hour.value.join(",") || "*"} ${dayOfMonth.value.join(",") || "*"} ${month.value.join(",") || "*"} ${dayOfWeek.value.join(",") || "*"}`;
|
|
@@ -1133,7 +988,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1133
988
|
modelValue: hour.value,
|
|
1134
989
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => hour.value = $event),
|
|
1135
990
|
options: hourOptions.value,
|
|
1136
|
-
hint: unref(
|
|
991
|
+
hint: unref(lang).cron.hour,
|
|
1137
992
|
"bottom-slots": "",
|
|
1138
993
|
style: {
|
|
1139
994
|
width: "10ch",
|
|
@@ -1145,7 +1000,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1145
1000
|
multiple: ""
|
|
1146
1001
|
}, {
|
|
1147
1002
|
selected: withCtx(() => [
|
|
1148
|
-
createTextVNode(toDisplayString(hour.value.length ? hour.value.join(",") : unref(
|
|
1003
|
+
createTextVNode(toDisplayString(hour.value.length ? hour.value.join(",") : unref(lang).cron.every.hour), 1)
|
|
1149
1004
|
]),
|
|
1150
1005
|
_: 1
|
|
1151
1006
|
}, 8, ["modelValue", "options", "hint"])) : createCommentVNode("", true),
|
|
@@ -1154,7 +1009,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1154
1009
|
modelValue: minute.value,
|
|
1155
1010
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => minute.value = $event),
|
|
1156
1011
|
options: minuteOptions.value,
|
|
1157
|
-
hint: unref(
|
|
1012
|
+
hint: unref(lang).cron.minute,
|
|
1158
1013
|
"bottom-slots": "",
|
|
1159
1014
|
style: {
|
|
1160
1015
|
width: "10ch",
|
|
@@ -1166,7 +1021,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1166
1021
|
multiple: ""
|
|
1167
1022
|
}, {
|
|
1168
1023
|
selected: withCtx(() => [
|
|
1169
|
-
createTextVNode(toDisplayString(minute.value.length ? minute.value.join(",") : unref(
|
|
1024
|
+
createTextVNode(toDisplayString(minute.value.length ? minute.value.join(",") : unref(lang).cron.every.minute), 1)
|
|
1170
1025
|
]),
|
|
1171
1026
|
_: 1
|
|
1172
1027
|
}, 8, ["modelValue", "options", "hint"])) : createCommentVNode("", true),
|
|
@@ -1174,7 +1029,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1174
1029
|
modelValue: dayOfMonth.value,
|
|
1175
1030
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dayOfMonth.value = $event),
|
|
1176
1031
|
options: dayOfMonthOptions.value,
|
|
1177
|
-
hint: unref(
|
|
1032
|
+
hint: unref(lang).cron.dayOfMonth,
|
|
1178
1033
|
"bottom-slots": "",
|
|
1179
1034
|
style: {
|
|
1180
1035
|
width: "10ch",
|
|
@@ -1186,7 +1041,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1186
1041
|
multiple: ""
|
|
1187
1042
|
}, {
|
|
1188
1043
|
selected: withCtx(() => [
|
|
1189
|
-
createTextVNode(toDisplayString(dayOfMonth.value.length ? dayOfMonth.value.join(",") : unref(
|
|
1044
|
+
createTextVNode(toDisplayString(dayOfMonth.value.length ? dayOfMonth.value.join(",") : unref(lang).cron.every.dayOfMonth), 1)
|
|
1190
1045
|
]),
|
|
1191
1046
|
_: 1
|
|
1192
1047
|
}, 8, ["modelValue", "options", "hint"]),
|
|
@@ -1194,8 +1049,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1194
1049
|
modelValue: month.value,
|
|
1195
1050
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => month.value = $event),
|
|
1196
1051
|
options: monthOptions.value,
|
|
1197
|
-
hint: unref(
|
|
1198
|
-
placeholder: unref(
|
|
1052
|
+
hint: unref(lang).cron.month,
|
|
1053
|
+
placeholder: unref(lang).cron.month,
|
|
1199
1054
|
"bottom-slots": "",
|
|
1200
1055
|
style: {
|
|
1201
1056
|
width: "16ch",
|
|
@@ -1207,7 +1062,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1207
1062
|
multiple: ""
|
|
1208
1063
|
}, {
|
|
1209
1064
|
selected: withCtx(() => [
|
|
1210
|
-
createTextVNode(toDisplayString(month.value.length ? month.value.map((val) => unref($q).lang.date.months[Number(val) - 1]).join(",") : unref(
|
|
1065
|
+
createTextVNode(toDisplayString(month.value.length ? month.value.map((val) => unref($q).lang.date.months[Number(val) - 1]).join(",") : unref(lang).cron.every.month), 1)
|
|
1211
1066
|
]),
|
|
1212
1067
|
_: 1
|
|
1213
1068
|
}, 8, ["modelValue", "options", "hint", "placeholder"]),
|
|
@@ -1216,7 +1071,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1216
1071
|
modelValue: dayOfWeek.value,
|
|
1217
1072
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => dayOfWeek.value = $event),
|
|
1218
1073
|
options: dayOfWeekOptions.value,
|
|
1219
|
-
placeholder: unref(
|
|
1074
|
+
placeholder: unref(lang).cron.dayOfWeek,
|
|
1220
1075
|
style: {
|
|
1221
1076
|
width: "16ch",
|
|
1222
1077
|
"margin-top": "-2em",
|
|
@@ -1227,7 +1082,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1227
1082
|
multiple: ""
|
|
1228
1083
|
}, {
|
|
1229
1084
|
selected: withCtx(() => [
|
|
1230
|
-
createTextVNode(toDisplayString(dayOfWeek.value.length ? dayOfWeek.value.map((val) => unref($q).lang.date.days[Number(val)]).join(",") : unref(
|
|
1085
|
+
createTextVNode(toDisplayString(dayOfWeek.value.length ? dayOfWeek.value.map((val) => unref($q).lang.date.days[Number(val)]).join(",") : unref(lang).cron.every.dayOfWeek), 1)
|
|
1231
1086
|
]),
|
|
1232
1087
|
_: 1
|
|
1233
1088
|
}, 8, ["modelValue", "options", "placeholder"])) : createCommentVNode("", true)
|
|
@@ -1238,21 +1093,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1238
1093
|
}
|
|
1239
1094
|
});
|
|
1240
1095
|
export {
|
|
1241
|
-
_sfc_main$
|
|
1242
|
-
_sfc_main$
|
|
1096
|
+
_sfc_main$5 as BooleanItem,
|
|
1097
|
+
_sfc_main$6 as BooleanSelect,
|
|
1243
1098
|
_sfc_main as CronScheduleInput,
|
|
1244
|
-
_sfc_main$
|
|
1245
|
-
_sfc_main$
|
|
1246
|
-
_sfc_main$
|
|
1247
|
-
_sfc_main$
|
|
1099
|
+
_sfc_main$2 as CurrencySelect,
|
|
1100
|
+
_sfc_main$7 as DateInput,
|
|
1101
|
+
_sfc_main$3 as DatePicker,
|
|
1102
|
+
_sfc_main$4 as EmailInput,
|
|
1248
1103
|
_sfc_main$1 as FilteredModelSelect,
|
|
1249
|
-
_sfc_main$
|
|
1250
|
-
_sfc_main$
|
|
1251
|
-
_sfc_main$
|
|
1252
|
-
_sfc_main$
|
|
1253
|
-
|
|
1254
|
-
_sfc_main$
|
|
1255
|
-
_sfc_main$
|
|
1104
|
+
_sfc_main$9 as FormInput,
|
|
1105
|
+
_sfc_main$a as FormItem,
|
|
1106
|
+
_sfc_main$c as GenderItem,
|
|
1107
|
+
_sfc_main$d as GenderSelect,
|
|
1108
|
+
_ as LocaleSelect,
|
|
1109
|
+
_sfc_main$b as PostalCodeInput,
|
|
1110
|
+
_sfc_main$8 as TelephoneNumberInput,
|
|
1256
1111
|
loadLang,
|
|
1257
1112
|
useLang
|
|
1258
1113
|
};
|