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