@simsustech/quasar-components 0.11.26 → 0.12.1
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 +12 -0
- package/dist/LocaleSelect-BqkjbcKS.js +460 -0
- package/dist/QSubmitButton-Chc7dndx.js +101 -0
- package/dist/authentication.js +1935 -2031
- package/dist/form.js +1093 -1118
- package/dist/general.js +319 -361
- package/dist/md3.js +406 -395
- package/dist/nl-DIfqXZG_.js +354 -0
- package/dist/nl-DWmQiCdO.js +12 -0
- package/dist/nl-DbV07Lx7.js +106 -0
- package/dist/nl-ZpgX9FUw.js +4 -0
- package/dist/quasar-components.css +5 -4
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/types/{ui → src/ui}/authentication/LoginForm.vue.d.ts +5 -0
- package/dist/types/{ui/form/LocaleSelect.vue.d.ts → src/ui/form/CountrySelect.vue.d.ts} +8 -5
- package/dist/types/src/ui/form/LocaleSelect.vue.d.ts +28 -0
- package/dist/types/{ui → src/ui}/form/index.d.ts +2 -1
- package/dist/types/src/ui/form/lang/index.d.ts +817 -0
- package/dist/types/{ui → src/ui}/general/QLanguageSelect.vue.d.ts +4 -4
- package/dist/virtualModules.js +62 -2
- package/dist/vite-plugin.js +50 -101
- package/package.json +34 -34
- package/src/ui/authentication/LoginForm.vue +9 -4
- package/src/ui/form/CountrySelect.vue +83 -0
- package/src/ui/form/LocaleSelect.vue +27 -8
- package/src/ui/form/index.ts +9 -1
- package/src/ui/form/lang/en-US.ts +112 -356
- package/src/ui/form/lang/index.ts +173 -377
- package/src/ui/form/lang/nl.ts +108 -352
- package/src/ui/general/QLanguageSelect.vue +20 -16
- package/tsconfig.json +1 -0
- package/tsconfig.node.json +2 -1
- package/tsconfig.types.json +2 -1
- package/dist/LocaleSelect.vue_vue_type_script_setup_true_lang-DFwcmPnu.js +0 -584
- package/dist/QSubmitButton.vue_vue_type_script_setup_true_lang-D-I0Gws4.js +0 -109
- package/dist/nl-BJwNz421.js +0 -453
- package/dist/nl-CneFq5NZ.js +0 -112
- package/dist/nl-NLgZUAKl.js +0 -6
- package/dist/nl-X50pmfG-.js +0 -12
- package/dist/types/ui/form/lang/index.d.ts +0 -1353
- package/eslint.config.js +0 -29
- package/dist/types/{ui → src/ui}/authentication/AccountsTable.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/ConsentList.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/EmailChangeForm.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/EmailChangeStepper.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/LoginButton.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/LogoutButton.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/LogoutForm.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/OtpInput.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/PasswordChangeForm.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/PasswordChangeStepper.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/RegisterForm.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/RequestOtpForm.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/UserMenuButton.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/VerificationSlider.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/index.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/lang/en-US.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/lang/index.d.ts +0 -0
- package/dist/types/{ui → src/ui}/authentication/lang/nl.d.ts +0 -0
- package/dist/types/{ui → src/ui}/flags/index.d.ts +0 -0
- package/dist/types/{ui → src/ui}/flags/lang/en-US.d.ts +0 -0
- package/dist/types/{ui → src/ui}/flags/lang/index.d.ts +0 -0
- package/dist/types/{ui → src/ui}/flags/lang/nl.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/BooleanItem.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/BooleanSelect.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/CronScheduleInput.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/CurrencySelect.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/DateInput.vue.d.ts +1 -1
- package/dist/types/{ui → src/ui}/form/DatePicker.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/EmailInput.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/FilteredModelSelect.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/FormInput.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/FormItem.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/GenderItem.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/GenderSelect.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/PostalCodeInput.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/TelephoneNumberInput.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/lang/en-US.d.ts +0 -0
- package/dist/types/{ui → src/ui}/form/lang/nl.d.ts +0 -0
- package/dist/types/{ui → src/ui}/general/QDrawerList.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/general/QStyledCard.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/general/QStyledLayout.vue.d.ts +0 -0
- package/dist/types/{ui → src/ui}/general/QSubmitButton.vue.d.ts +1 -1
- package/dist/types/{ui → src/ui}/general/ResourcePage.vue.d.ts +1 -1
- /package/dist/types/{ui → src/ui}/general/ResponsiveDialog.vue.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/general/index.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/general/lang/en-US.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/general/lang/index.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/general/lang/nl.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/icons/index.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/icons/labels.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/md3/Md3Layout.vue.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/md3/NavigationRailFabs.vue.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/md3/index.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/md3/lang/en-US.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/md3/lang/index.d.ts +0 -0
- /package/dist/types/{ui → src/ui}/md3/lang/nl.d.ts +0 -0
- /package/dist/types/{virtualModules.d.ts → src/virtualModules.d.ts} +0 -0
- /package/dist/types/{vite-plugin.d.ts → src/vite-plugin.d.ts} +0 -0
package/dist/general.js
CHANGED
|
@@ -1,366 +1,324 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
]),
|
|
52
|
-
_: 3
|
|
53
|
-
}),
|
|
54
|
-
createVNode(_component_q_card_section, { class: "q-pt-none" }, {
|
|
55
|
-
default: withCtx(() => [
|
|
56
|
-
renderSlot(_ctx.$slots, "default")
|
|
57
|
-
]),
|
|
58
|
-
_: 3
|
|
59
|
-
}),
|
|
60
|
-
createVNode(_component_q_card_actions, normalizeProps(guardReactiveProps(__props.actions)), {
|
|
61
|
-
default: withCtx(() => [
|
|
62
|
-
renderSlot(_ctx.$slots, "actions")
|
|
63
|
-
]),
|
|
64
|
-
_: 3
|
|
65
|
-
}, 16)
|
|
66
|
-
]),
|
|
67
|
-
_: 3
|
|
68
|
-
}, 512);
|
|
69
|
-
};
|
|
70
|
-
}
|
|
1
|
+
import { n as loadLang, r as useLang, t as QSubmitButton_default } from "./QSubmitButton-Chc7dndx.js";
|
|
2
|
+
import { t as LocaleSelect_default } from "./LocaleSelect-BqkjbcKS.js";
|
|
3
|
+
import { QBtn, QCard, QCardActions, QCardSection, QDialog, QHeader, QLayout, QList, QPage, QPageContainer, QPageSticky, QSpace, QToolbar, QToolbarTitle, useQuasar } from "quasar";
|
|
4
|
+
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, normalizeClass, normalizeProps, openBlock, ref, renderSlot, toRefs, unref, watch, withCtx } from "vue";
|
|
5
|
+
//#region src/ui/general/QStyledCard.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _hoisted_1$1 = { class: "text-h6" };
|
|
7
|
+
var _hoisted_2$1 = { class: "text-subtitle2" };
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/ui/general/QStyledCard.vue
|
|
10
|
+
var QStyledCard_default = /* @__PURE__ */ defineComponent({
|
|
11
|
+
name: "QStyledCard",
|
|
12
|
+
props: { actions: {} },
|
|
13
|
+
setup(__props, { expose: __expose }) {
|
|
14
|
+
const $q = useQuasar();
|
|
15
|
+
if (useLang().value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
16
|
+
watch($q.lang, (val) => {
|
|
17
|
+
loadLang($q.lang.isoName);
|
|
18
|
+
});
|
|
19
|
+
const qCardRef = ref();
|
|
20
|
+
__expose({
|
|
21
|
+
variables: ref({}),
|
|
22
|
+
functions: ref({})
|
|
23
|
+
});
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
const _component_q_card_section = QCardSection;
|
|
26
|
+
const _component_q_card_actions = QCardActions;
|
|
27
|
+
return openBlock(), createBlock(unref(QCard), {
|
|
28
|
+
ref_key: "qCardRef",
|
|
29
|
+
ref: qCardRef,
|
|
30
|
+
style: { "max-width": "300px" }
|
|
31
|
+
}, {
|
|
32
|
+
default: withCtx(() => [
|
|
33
|
+
renderSlot(_ctx.$slots, "image"),
|
|
34
|
+
createVNode(_component_q_card_section, null, {
|
|
35
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1$1, [renderSlot(_ctx.$slots, "title")]), createElementVNode("div", _hoisted_2$1, [renderSlot(_ctx.$slots, "subtitle")])]),
|
|
36
|
+
_: 3
|
|
37
|
+
}),
|
|
38
|
+
createVNode(_component_q_card_section, { class: "q-pt-none" }, {
|
|
39
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
40
|
+
_: 3
|
|
41
|
+
}),
|
|
42
|
+
createVNode(_component_q_card_actions, normalizeProps(guardReactiveProps(__props.actions)), {
|
|
43
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "actions")]),
|
|
44
|
+
_: 3
|
|
45
|
+
}, 16)
|
|
46
|
+
]),
|
|
47
|
+
_: 3
|
|
48
|
+
}, 512);
|
|
49
|
+
};
|
|
50
|
+
}
|
|
71
51
|
});
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}),
|
|
170
|
-
createVNode(_component_q_page_container, { style: { "margin-bottom": "50px" } }, {
|
|
171
|
-
default: withCtx(() => [
|
|
172
|
-
createVNode(_component_q_page, {
|
|
173
|
-
padding: __props.padding,
|
|
174
|
-
class: "q-pb-xl"
|
|
175
|
-
}, {
|
|
176
|
-
default: withCtx(() => [
|
|
177
|
-
renderSlot(_ctx.$slots, "default")
|
|
178
|
-
]),
|
|
179
|
-
_: 3
|
|
180
|
-
}, 8, ["padding"])
|
|
181
|
-
]),
|
|
182
|
-
_: 3
|
|
183
|
-
})
|
|
184
|
-
]),
|
|
185
|
-
_: 3
|
|
186
|
-
})
|
|
187
|
-
]),
|
|
188
|
-
_: 3
|
|
189
|
-
}, 8, ["maximized"]);
|
|
190
|
-
};
|
|
191
|
-
}
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/ui/general/ResponsiveDialog.vue
|
|
54
|
+
var ResponsiveDialog_default = /* @__PURE__ */ defineComponent({
|
|
55
|
+
name: "ResponsiveDialog",
|
|
56
|
+
props: {
|
|
57
|
+
display: { type: Boolean },
|
|
58
|
+
buttonType: { default: "submit" },
|
|
59
|
+
padding: { type: Boolean },
|
|
60
|
+
icons: { default: () => ({ close: "close" }) }
|
|
61
|
+
},
|
|
62
|
+
emits: ["submit"],
|
|
63
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
64
|
+
const emit = __emit;
|
|
65
|
+
const $q = useQuasar();
|
|
66
|
+
if (useLang().value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
67
|
+
watch($q.lang, (val) => {
|
|
68
|
+
loadLang($q.lang.isoName);
|
|
69
|
+
});
|
|
70
|
+
const submit = (evt) => {
|
|
71
|
+
emit("submit", { done: (success = true) => {
|
|
72
|
+
evt.done();
|
|
73
|
+
if (success) dialogRef.value?.hide();
|
|
74
|
+
} });
|
|
75
|
+
};
|
|
76
|
+
const dialogRef = ref();
|
|
77
|
+
const open = () => dialogRef.value?.show();
|
|
78
|
+
const close = () => dialogRef.value?.hide();
|
|
79
|
+
const toggle = () => dialogRef.value?.toggle();
|
|
80
|
+
__expose({
|
|
81
|
+
variables: ref({}),
|
|
82
|
+
functions: ref({
|
|
83
|
+
open,
|
|
84
|
+
close,
|
|
85
|
+
toggle
|
|
86
|
+
})
|
|
87
|
+
});
|
|
88
|
+
return (_ctx, _cache) => {
|
|
89
|
+
const _component_q_btn = QBtn;
|
|
90
|
+
const _component_q_toolbar_title = QToolbarTitle;
|
|
91
|
+
const _component_q_toolbar = QToolbar;
|
|
92
|
+
const _component_q_header = QHeader;
|
|
93
|
+
const _component_q_page = QPage;
|
|
94
|
+
const _component_q_page_container = QPageContainer;
|
|
95
|
+
const _component_q_layout = QLayout;
|
|
96
|
+
return openBlock(), createBlock(unref(QDialog), {
|
|
97
|
+
ref_key: "dialogRef",
|
|
98
|
+
ref: dialogRef,
|
|
99
|
+
maximized: unref($q).screen.lt.md
|
|
100
|
+
}, {
|
|
101
|
+
default: withCtx(() => [createVNode(_component_q_layout, {
|
|
102
|
+
view: "LHh lpR fff",
|
|
103
|
+
container: "",
|
|
104
|
+
class: "bg-$light-surface dark:bg-$dark-surface",
|
|
105
|
+
style: { "min-width": "85vw" }
|
|
106
|
+
}, {
|
|
107
|
+
default: withCtx(() => [createVNode(_component_q_header, { class: "bg-$light-surface-container-high dark:bg-$dark-surface-container-high" }, {
|
|
108
|
+
default: withCtx(() => [createVNode(_component_q_toolbar, null, {
|
|
109
|
+
default: withCtx(() => [
|
|
110
|
+
createVNode(_component_q_btn, {
|
|
111
|
+
icon: __props.icons.close,
|
|
112
|
+
class: "text-$light-on-surface dark:text-$dark-on-surface",
|
|
113
|
+
flat: "",
|
|
114
|
+
round: "",
|
|
115
|
+
dense: "",
|
|
116
|
+
onClick: close
|
|
117
|
+
}, null, 8, ["icon"]),
|
|
118
|
+
createVNode(_component_q_toolbar_title, null, {
|
|
119
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "title")]),
|
|
120
|
+
_: 3
|
|
121
|
+
}),
|
|
122
|
+
!__props.display ? (openBlock(), createBlock(QSubmitButton_default, {
|
|
123
|
+
key: 0,
|
|
124
|
+
flat: "",
|
|
125
|
+
class: "text-$light-primary dark:text-$dark-primary",
|
|
126
|
+
type: __props.buttonType,
|
|
127
|
+
onSubmit: submit
|
|
128
|
+
}, null, 8, ["type"])) : createCommentVNode("", true)
|
|
129
|
+
]),
|
|
130
|
+
_: 3
|
|
131
|
+
})]),
|
|
132
|
+
_: 3
|
|
133
|
+
}), createVNode(_component_q_page_container, { style: { "margin-bottom": "50px" } }, {
|
|
134
|
+
default: withCtx(() => [createVNode(_component_q_page, {
|
|
135
|
+
padding: __props.padding,
|
|
136
|
+
class: "q-pb-xl"
|
|
137
|
+
}, {
|
|
138
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
139
|
+
_: 3
|
|
140
|
+
}, 8, ["padding"])]),
|
|
141
|
+
_: 3
|
|
142
|
+
})]),
|
|
143
|
+
_: 3
|
|
144
|
+
})]),
|
|
145
|
+
_: 3
|
|
146
|
+
}, 8, ["maximized"]);
|
|
147
|
+
};
|
|
148
|
+
}
|
|
192
149
|
});
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/ui/general/ResourcePage.vue?vue&type=script&setup=true&lang.ts
|
|
152
|
+
var _hoisted_1 = { style: { "margin-top": "80px" } };
|
|
153
|
+
var _hoisted_2 = { key: 0 };
|
|
154
|
+
var _hoisted_3 = { key: 1 };
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/ui/general/ResourcePage.vue
|
|
157
|
+
var ResourcePage_default = /* @__PURE__ */ defineComponent({
|
|
158
|
+
name: "ResourcePage",
|
|
159
|
+
props: {
|
|
160
|
+
type: { default: void 0 },
|
|
161
|
+
disabled: {
|
|
162
|
+
type: Boolean,
|
|
163
|
+
default: false
|
|
164
|
+
},
|
|
165
|
+
topBarFab: {
|
|
166
|
+
type: Boolean,
|
|
167
|
+
default: false
|
|
168
|
+
},
|
|
169
|
+
topBarShrink: {
|
|
170
|
+
type: Boolean,
|
|
171
|
+
default: true
|
|
172
|
+
},
|
|
173
|
+
icons: { default: () => ({
|
|
174
|
+
add: "add",
|
|
175
|
+
edit: "edit"
|
|
176
|
+
}) }
|
|
177
|
+
},
|
|
178
|
+
emits: ["create", "update"],
|
|
179
|
+
setup(__props, { emit: __emit }) {
|
|
180
|
+
const props = __props;
|
|
181
|
+
const emit = __emit;
|
|
182
|
+
const $q = useQuasar();
|
|
183
|
+
const lang = useLang();
|
|
184
|
+
if (lang.value.isoName !== $q.lang.isoName) loadLang($q.lang.isoName);
|
|
185
|
+
watch($q.lang, (val) => {
|
|
186
|
+
loadLang($q.lang.isoName);
|
|
187
|
+
});
|
|
188
|
+
const { type, disabled } = toRefs(props);
|
|
189
|
+
const done = () => "";
|
|
190
|
+
const create = (evt) => emit("create", { done });
|
|
191
|
+
const update = (evt) => emit("update", { done });
|
|
192
|
+
return (_ctx, _cache) => {
|
|
193
|
+
const _component_q_btn = QBtn;
|
|
194
|
+
const _component_q_toolbar_title = QToolbarTitle;
|
|
195
|
+
const _component_q_space = QSpace;
|
|
196
|
+
const _component_q_toolbar = QToolbar;
|
|
197
|
+
const _component_q_page_sticky = QPageSticky;
|
|
198
|
+
const _component_q_page = QPage;
|
|
199
|
+
return openBlock(), createBlock(_component_q_page, { class: "q-ma-md" }, {
|
|
200
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "default")]), createVNode(_component_q_page_sticky, {
|
|
201
|
+
expand: "",
|
|
202
|
+
position: "top"
|
|
203
|
+
}, {
|
|
204
|
+
default: withCtx(() => [createVNode(_component_q_toolbar, { class: normalizeClass(["shadow-2", {
|
|
205
|
+
"bg-dark": unref($q).dark.isActive,
|
|
206
|
+
"bg-white": !unref($q).dark.isActive
|
|
207
|
+
}]) }, {
|
|
208
|
+
default: withCtx(() => [
|
|
209
|
+
__props.topBarFab ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "fab"), unref(type) === "create" ? (openBlock(), createBlock(_component_q_btn, {
|
|
210
|
+
key: 0,
|
|
211
|
+
disable: unref(disabled),
|
|
212
|
+
flat: "",
|
|
213
|
+
style: {
|
|
214
|
+
"margin-bottom": "-50px",
|
|
215
|
+
"z-index": "5"
|
|
216
|
+
},
|
|
217
|
+
round: "",
|
|
218
|
+
size: "lg",
|
|
219
|
+
dense: "",
|
|
220
|
+
icon: __props.icons.add,
|
|
221
|
+
class: "q-mr-sm bg-primary text-white",
|
|
222
|
+
onClick: create
|
|
223
|
+
}, null, 8, ["disable", "icon"])) : unref(type) === "update" ? (openBlock(), createBlock(_component_q_btn, {
|
|
224
|
+
key: 1,
|
|
225
|
+
disable: unref(disabled),
|
|
226
|
+
flat: "",
|
|
227
|
+
style: {
|
|
228
|
+
"margin-bottom": "-50px",
|
|
229
|
+
"z-index": "5"
|
|
230
|
+
},
|
|
231
|
+
round: "",
|
|
232
|
+
size: "lg",
|
|
233
|
+
dense: "",
|
|
234
|
+
icon: __props.icons.edit,
|
|
235
|
+
class: "q-mr-sm bg-primary text-white",
|
|
236
|
+
onClick: update
|
|
237
|
+
}, null, 8, ["disable", "icon"])) : createCommentVNode("", true)])) : createCommentVNode("", true),
|
|
238
|
+
createVNode(_component_q_toolbar_title, { shrink: __props.topBarShrink }, {
|
|
239
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "header")]),
|
|
240
|
+
_: 3
|
|
241
|
+
}, 8, ["shrink"]),
|
|
242
|
+
!__props.topBarFab ? (openBlock(), createElementBlock("div", _hoisted_3, [renderSlot(_ctx.$slots, "top-bar-buttons"), unref(type) === "create" ? (openBlock(), createBlock(_component_q_btn, {
|
|
243
|
+
key: 0,
|
|
244
|
+
disable: unref(disabled),
|
|
245
|
+
label: unref(lang).add,
|
|
246
|
+
icon: __props.icons.add,
|
|
247
|
+
outline: "",
|
|
248
|
+
onClick: create
|
|
249
|
+
}, null, 8, [
|
|
250
|
+
"disable",
|
|
251
|
+
"label",
|
|
252
|
+
"icon"
|
|
253
|
+
])) : unref(type) === "update" ? (openBlock(), createBlock(_component_q_btn, {
|
|
254
|
+
key: 1,
|
|
255
|
+
disable: unref(disabled),
|
|
256
|
+
label: unref(lang).edit,
|
|
257
|
+
icon: __props.icons.edit,
|
|
258
|
+
outline: "",
|
|
259
|
+
onClick: update
|
|
260
|
+
}, null, 8, [
|
|
261
|
+
"disable",
|
|
262
|
+
"label",
|
|
263
|
+
"icon"
|
|
264
|
+
])) : createCommentVNode("", true)])) : createCommentVNode("", true),
|
|
265
|
+
createVNode(_component_q_space, { horizontal: "" }),
|
|
266
|
+
renderSlot(_ctx.$slots, "header-side")
|
|
267
|
+
]),
|
|
268
|
+
_: 3
|
|
269
|
+
}, 8, ["class"])]),
|
|
270
|
+
_: 3
|
|
271
|
+
})]),
|
|
272
|
+
_: 3
|
|
273
|
+
});
|
|
274
|
+
};
|
|
275
|
+
}
|
|
309
276
|
});
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}
|
|
277
|
+
//#endregion
|
|
278
|
+
//#region src/ui/general/QLanguageSelect.vue
|
|
279
|
+
var QLanguageSelect_default = /* @__PURE__ */ defineComponent({
|
|
280
|
+
__name: "QLanguageSelect",
|
|
281
|
+
props: {
|
|
282
|
+
modelValue: {},
|
|
283
|
+
languageImports: {},
|
|
284
|
+
locales: {}
|
|
285
|
+
},
|
|
286
|
+
emits: ["update:modelValue"],
|
|
287
|
+
setup(__props, { emit: __emit }) {
|
|
288
|
+
const props = __props;
|
|
289
|
+
const emit = __emit;
|
|
290
|
+
const { modelValue, languageImports, locales } = toRefs(props);
|
|
291
|
+
const $q = useQuasar();
|
|
292
|
+
const updateModelValue = (v) => {
|
|
293
|
+
const iso639 = v.split("-").at(0);
|
|
294
|
+
for (const i of [iso639, v]) try {
|
|
295
|
+
languageImports.value[i]().then((lang) => {
|
|
296
|
+
$q.lang.set(lang.default);
|
|
297
|
+
});
|
|
298
|
+
} catch {}
|
|
299
|
+
emit("update:modelValue", v);
|
|
300
|
+
};
|
|
301
|
+
return (_ctx, _cache) => {
|
|
302
|
+
return openBlock(), createBlock(LocaleSelect_default, {
|
|
303
|
+
"model-value": unref(modelValue),
|
|
304
|
+
locales: unref(locales),
|
|
305
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = (val) => updateModelValue(val))
|
|
306
|
+
}, null, 8, ["model-value", "locales"]);
|
|
307
|
+
};
|
|
308
|
+
}
|
|
343
309
|
});
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
310
|
+
//#endregion
|
|
311
|
+
//#region src/ui/general/QDrawerList.vue
|
|
312
|
+
var QDrawerList_default = /* @__PURE__ */ defineComponent({
|
|
313
|
+
__name: "QDrawerList",
|
|
314
|
+
setup(__props) {
|
|
315
|
+
return (_ctx, _cache) => {
|
|
316
|
+
return openBlock(), createBlock(unref(QList), { class: "q-drawer-list" }, {
|
|
317
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
318
|
+
_: 3
|
|
319
|
+
});
|
|
320
|
+
};
|
|
321
|
+
}
|
|
356
322
|
});
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
_sfc_main$1 as QLanguageSelect,
|
|
360
|
-
_sfc_main$4 as QStyledCard,
|
|
361
|
-
_sfc_main$5 as QSubmitButton,
|
|
362
|
-
_sfc_main$2 as ResourcePage,
|
|
363
|
-
_sfc_main$3 as ResponsiveDialog,
|
|
364
|
-
loadLang,
|
|
365
|
-
useLang
|
|
366
|
-
};
|
|
323
|
+
//#endregion
|
|
324
|
+
export { QDrawerList_default as QDrawerList, QLanguageSelect_default as QLanguageSelect, QStyledCard_default as QStyledCard, QSubmitButton_default as QSubmitButton, ResourcePage_default as ResourcePage, ResponsiveDialog_default as ResponsiveDialog, loadLang, useLang };
|