@simsustech/quasar-components 0.11.22 → 0.11.24
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 +13 -0
- package/dist/{LocaleSelect.vue_vue_type_script_setup_true_lang-CMvTDKR3.js → LocaleSelect.vue_vue_type_script_setup_true_lang-DThzjchm.js} +7 -4
- package/dist/{QSubmitButton.vue_vue_type_script_setup_true_lang-UtpXkOh7.js → QSubmitButton.vue_vue_type_script_setup_true_lang-D-I0Gws4.js} +3 -3
- package/dist/authentication.js +95 -110
- package/dist/form.js +79 -89
- package/dist/general.js +23 -31
- package/dist/md3.js +87 -137
- package/dist/types/ui/authentication/AccountsTable.vue.d.ts +22 -17
- package/dist/types/ui/authentication/ConsentList.vue.d.ts +3 -2
- package/dist/types/ui/authentication/EmailChangeForm.vue.d.ts +3 -2
- package/dist/types/ui/authentication/EmailChangeStepper.vue.d.ts +3 -2
- package/dist/types/ui/authentication/LoginButton.vue.d.ts +3 -2
- package/dist/types/ui/authentication/LoginForm.vue.d.ts +3 -2
- package/dist/types/ui/authentication/LogoutButton.vue.d.ts +3 -2
- package/dist/types/ui/authentication/LogoutForm.vue.d.ts +3 -2
- package/dist/types/ui/authentication/OtpInput.vue.d.ts +2 -1
- package/dist/types/ui/authentication/PasswordChangeForm.vue.d.ts +3 -2
- package/dist/types/ui/authentication/PasswordChangeStepper.vue.d.ts +3 -2
- package/dist/types/ui/authentication/RegisterForm.vue.d.ts +3 -2
- package/dist/types/ui/authentication/RequestOtpForm.vue.d.ts +3 -2
- package/dist/types/ui/authentication/UserMenuButton.vue.d.ts +3 -2
- package/dist/types/ui/authentication/VerificationSlider.vue.d.ts +3 -2
- package/dist/types/ui/form/BooleanItem.vue.d.ts +2 -1
- package/dist/types/ui/form/BooleanSelect.vue.d.ts +2 -1
- package/dist/types/ui/form/CronScheduleInput.vue.d.ts +2 -1
- package/dist/types/ui/form/CurrencySelect.vue.d.ts +2 -1
- package/dist/types/ui/form/DateInput.vue.d.ts +5 -4
- package/dist/types/ui/form/DatePicker.vue.d.ts +2 -1
- package/dist/types/ui/form/EmailInput.vue.d.ts +3 -2
- package/dist/types/ui/form/FilteredModelSelect.vue.d.ts +19 -15
- package/dist/types/ui/form/FormInput.vue.d.ts +5 -4
- package/dist/types/ui/form/FormItem.vue.d.ts +6 -5
- package/dist/types/ui/form/GenderItem.vue.d.ts +2 -1
- package/dist/types/ui/form/GenderSelect.vue.d.ts +2 -1
- package/dist/types/ui/form/LocaleSelect.vue.d.ts +6 -1
- package/dist/types/ui/form/PostalCodeInput.vue.d.ts +2 -1
- package/dist/types/ui/form/TelephoneNumberInput.vue.d.ts +2 -1
- package/dist/types/ui/general/QDrawerList.vue.d.ts +5 -4
- package/dist/types/ui/general/QLanguageSelect.vue.d.ts +6 -1
- package/dist/types/ui/general/QStyledCard.vue.d.ts +3 -2
- package/dist/types/ui/general/QStyledLayout.vue.d.ts +3 -2
- package/dist/types/ui/general/QSubmitButton.vue.d.ts +3 -2
- package/dist/types/ui/general/ResourcePage.vue.d.ts +3 -2
- package/dist/types/ui/general/ResponsiveDialog.vue.d.ts +3 -2
- package/dist/types/ui/md3/Md3Layout.vue.d.ts +11 -10
- package/dist/types/ui/md3/NavigationRailFabs.vue.d.ts +2 -1
- package/dist/vite-plugin.js +2 -1
- package/package.json +28 -28
- package/src/ui/form/DateInput.vue +2 -1
- package/src/ui/form/LocaleSelect.vue +2 -0
- package/src/ui/general/QLanguageSelect.vue +3 -1
- package/src/vite-plugin.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @simsustech/quasar-components
|
|
2
2
|
|
|
3
|
+
## 0.11.24
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f271caf: chore: update dependencies
|
|
8
|
+
- 206b679: fix: use fileURLToPath instead of pathname
|
|
9
|
+
|
|
10
|
+
## 0.11.23
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 85d1703: fix(components): DateInput use lazy-rules
|
|
15
|
+
|
|
3
16
|
## 0.11.22
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QSelect, QItem, QItemSection, QIcon, QItemLabel } from "quasar";
|
|
2
|
-
import { ref, defineComponent, toRefs, useAttrs, computed,
|
|
2
|
+
import { ref, defineComponent, toRefs, useAttrs, computed, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, normalizeProps, guardReactiveProps, createTextVNode, toDisplayString, createElementBlock, createCommentVNode } from "vue";
|
|
3
3
|
const lang$1 = {
|
|
4
4
|
isoName: "en-US",
|
|
5
5
|
yes: "Yes",
|
|
@@ -487,8 +487,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
487
487
|
locales: {},
|
|
488
488
|
isItem: { type: Boolean }
|
|
489
489
|
},
|
|
490
|
-
|
|
490
|
+
emits: ["update:modelValue"],
|
|
491
|
+
setup(__props, { emit: __emit }) {
|
|
491
492
|
const props = __props;
|
|
493
|
+
const emit = __emit;
|
|
492
494
|
const { modelValue, locales: locales2 } = toRefs(props);
|
|
493
495
|
const lang2 = useLang();
|
|
494
496
|
const attrs = useAttrs();
|
|
@@ -510,10 +512,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
510
512
|
"model-value": unref(modelValue),
|
|
511
513
|
filled: false,
|
|
512
514
|
"emit-value": "",
|
|
513
|
-
"map-options": ""
|
|
515
|
+
"map-options": "",
|
|
516
|
+
onInput: _cache[0] || (_cache[0] = ($event) => emit("update:modelValue", $event.target.value))
|
|
514
517
|
}), {
|
|
515
518
|
"selected-item": withCtx((scope) => [
|
|
516
|
-
scope.opt &&
|
|
519
|
+
scope.opt && __props.isItem ? (openBlock(), createBlock(_component_q_item, { key: 0 }, {
|
|
517
520
|
default: withCtx(() => [
|
|
518
521
|
createVNode(_component_q_item_section, { avatar: "" }, {
|
|
519
522
|
default: withCtx(() => [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useQuasar, debounce, QBtn } from "quasar";
|
|
2
|
-
import { ref, defineComponent, toRefs, useAttrs, watch, computed,
|
|
2
|
+
import { ref, defineComponent, toRefs, useAttrs, watch, computed, openBlock, createBlock, mergeProps, unref, withCtx, renderSlot, createTextVNode, toDisplayString } from "vue";
|
|
3
3
|
const lang$1 = {
|
|
4
4
|
isoName: "en-US",
|
|
5
5
|
submit: "Submit",
|
|
@@ -87,8 +87,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
87
|
return (_ctx, _cache) => {
|
|
88
88
|
const _component_q_btn = QBtn;
|
|
89
89
|
return openBlock(), createBlock(_component_q_btn, mergeProps(unref(attrs), {
|
|
90
|
-
color:
|
|
91
|
-
loading:
|
|
90
|
+
color: __props.color,
|
|
91
|
+
loading: __props.loading || unref(loadingInternal),
|
|
92
92
|
type: "submit",
|
|
93
93
|
onClick: unref(submit)
|
|
94
94
|
}), {
|
package/dist/authentication.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useQuasar, QForm, QInput, QStepper, QStep, QStepperNavigation, QIcon, QBtn, QSlider, QList, QItem, QItemSection, QMenu, QTable, QTr, QTd, QItemLabel, QSelect, QTh } from "quasar";
|
|
2
|
-
import { ref, defineComponent, watch, computed,
|
|
3
|
-
import { _ as _sfc_main$f } from "./QSubmitButton.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { ref, defineComponent, watch, computed, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, renderSlot, toRef, createCommentVNode, toRefs, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createElementVNode } from "vue";
|
|
3
|
+
import { _ as _sfc_main$f } from "./QSubmitButton.vue_vue_type_script_setup_true_lang-D-I0Gws4.js";
|
|
4
4
|
const lang$1 = {
|
|
5
5
|
isoName: "en-US",
|
|
6
6
|
myAccount: "Account",
|
|
@@ -423,8 +423,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
423
423
|
const submit = ({
|
|
424
424
|
done
|
|
425
425
|
}) => {
|
|
426
|
-
|
|
427
|
-
(_a = formRef.value) == null ? void 0 : _a.validate().then((success) => {
|
|
426
|
+
formRef.value?.validate().then((success) => {
|
|
428
427
|
if (success) {
|
|
429
428
|
emit("submit", {
|
|
430
429
|
email: email.value.trim(),
|
|
@@ -444,11 +443,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
444
443
|
return openBlock(), createBlock(unref(QForm), mergeProps({
|
|
445
444
|
ref_key: "formRef",
|
|
446
445
|
ref: formRef
|
|
447
|
-
},
|
|
446
|
+
}, __props.form, {
|
|
448
447
|
onSubmit: _cache[1] || (_cache[1] = (e) => submit)
|
|
449
448
|
}), {
|
|
450
449
|
default: withCtx(() => [
|
|
451
|
-
createVNode(_component_q_input, mergeProps(
|
|
450
|
+
createVNode(_component_q_input, mergeProps(__props.input, {
|
|
452
451
|
id: "email",
|
|
453
452
|
modelValue: email.value,
|
|
454
453
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => email.value = $event),
|
|
@@ -482,7 +481,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
482
481
|
return openBlock(), createBlock(unref(QInput), {
|
|
483
482
|
id: "otp",
|
|
484
483
|
name: "otp",
|
|
485
|
-
"model-value":
|
|
484
|
+
"model-value": __props.modelValue,
|
|
486
485
|
"bottom-slots": "",
|
|
487
486
|
"lazy-rules": "",
|
|
488
487
|
label: unref(lang2).otp.verificationCode,
|
|
@@ -529,8 +528,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
529
528
|
]
|
|
530
529
|
}));
|
|
531
530
|
const submit = (evt) => {
|
|
532
|
-
|
|
533
|
-
(_a = formRef.value) == null ? void 0 : _a.validate().then((success) => {
|
|
531
|
+
formRef.value?.validate().then((success) => {
|
|
534
532
|
if (success) {
|
|
535
533
|
emit("submit", {
|
|
536
534
|
email: email.value.trim(),
|
|
@@ -557,15 +555,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
557
555
|
ref_key: "formRef",
|
|
558
556
|
ref: formRef,
|
|
559
557
|
class: "q-gutter-md"
|
|
560
|
-
},
|
|
558
|
+
}, __props.form, {
|
|
561
559
|
onSubmit: _cache[3] || (_cache[3] = (e) => submit)
|
|
562
560
|
}), {
|
|
563
561
|
default: withCtx(() => [
|
|
564
|
-
createVNode(_sfc_main$d, mergeProps(
|
|
562
|
+
createVNode(_sfc_main$d, mergeProps(__props.input, {
|
|
565
563
|
modelValue: otp.value,
|
|
566
564
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => otp.value = $event)
|
|
567
565
|
}), null, 16, ["modelValue"]),
|
|
568
|
-
createVNode(_component_q_input, mergeProps(
|
|
566
|
+
createVNode(_component_q_input, mergeProps(__props.input, {
|
|
569
567
|
id: "newEmail",
|
|
570
568
|
modelValue: newEmail.value,
|
|
571
569
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => newEmail.value = $event),
|
|
@@ -575,7 +573,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
575
573
|
rules: validations.value["newEmail"],
|
|
576
574
|
"lazy-rules": ""
|
|
577
575
|
}), null, 16, ["modelValue", "label", "rules"]),
|
|
578
|
-
createVNode(_component_q_input, mergeProps(
|
|
576
|
+
createVNode(_component_q_input, mergeProps(__props.input, {
|
|
579
577
|
id: "repeatNewEmail",
|
|
580
578
|
modelValue: repeatNewEmail.value,
|
|
581
579
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => repeatNewEmail.value = $event),
|
|
@@ -619,16 +617,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
619
617
|
const requestOtpFormRef = ref();
|
|
620
618
|
const emailChangeFormRef = ref();
|
|
621
619
|
const requestOtpHeader = computed(
|
|
622
|
-
() =>
|
|
623
|
-
var _a;
|
|
624
|
-
return ((_a = requestOtpFormRef.value) == null ? void 0 : _a.variables.header) || "";
|
|
625
|
-
}
|
|
620
|
+
() => requestOtpFormRef.value?.variables.header || ""
|
|
626
621
|
);
|
|
627
622
|
const emailChangeHeader = computed(
|
|
628
|
-
() =>
|
|
629
|
-
var _a;
|
|
630
|
-
return ((_a = emailChangeFormRef.value) == null ? void 0 : _a.variables.header) || "";
|
|
631
|
-
}
|
|
623
|
+
() => emailChangeFormRef.value?.variables.header || ""
|
|
632
624
|
);
|
|
633
625
|
const requestOtp = ({
|
|
634
626
|
email: emittedEmail,
|
|
@@ -674,22 +666,19 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
674
666
|
}, {
|
|
675
667
|
navigation: withCtx(() => [
|
|
676
668
|
createVNode(_component_q_stepper_navigation, { class: "text-right" }, {
|
|
677
|
-
default: withCtx(() =>
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
}, null, 8, ["onSubmit"])) : createCommentVNode("", true)
|
|
691
|
-
];
|
|
692
|
-
}),
|
|
669
|
+
default: withCtx(() => [
|
|
670
|
+
step.value === "requestOtp" ? (openBlock(), createBlock(_sfc_main$f, {
|
|
671
|
+
key: 0,
|
|
672
|
+
"is-next-button": "",
|
|
673
|
+
form: "requestOtpForm",
|
|
674
|
+
onSubmit: requestOtpFormRef.value?.functions.submit
|
|
675
|
+
}, null, 8, ["onSubmit"])) : createCommentVNode("", true),
|
|
676
|
+
step.value === "changeEmail" ? (openBlock(), createBlock(_sfc_main$f, {
|
|
677
|
+
key: 1,
|
|
678
|
+
form: "emailChangeForm",
|
|
679
|
+
onSubmit: emailChangeFormRef.value?.functions.submit
|
|
680
|
+
}, null, 8, ["onSubmit"])) : createCommentVNode("", true)
|
|
681
|
+
]),
|
|
693
682
|
_: 1
|
|
694
683
|
})
|
|
695
684
|
]),
|
|
@@ -703,7 +692,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
703
692
|
ref_key: "requestOtpFormRef",
|
|
704
693
|
ref: requestOtpFormRef,
|
|
705
694
|
form: { id: "requestOtpForm" },
|
|
706
|
-
input:
|
|
695
|
+
input: __props.input,
|
|
707
696
|
onSubmit: requestOtp
|
|
708
697
|
}, null, 8, ["input"])
|
|
709
698
|
]),
|
|
@@ -719,7 +708,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
719
708
|
ref: emailChangeFormRef,
|
|
720
709
|
form: { id: "emailChangeForm" },
|
|
721
710
|
email: email.value,
|
|
722
|
-
input:
|
|
711
|
+
input: __props.input,
|
|
723
712
|
onSubmit: changeEmail
|
|
724
713
|
}, null, 8, ["email", "input"])
|
|
725
714
|
]),
|
|
@@ -781,8 +770,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
781
770
|
]
|
|
782
771
|
}));
|
|
783
772
|
const submit = (evt) => {
|
|
784
|
-
|
|
785
|
-
(_a = formRef.value) == null ? void 0 : _a.validate().then((success) => {
|
|
773
|
+
formRef.value?.validate().then((success) => {
|
|
786
774
|
if (success) {
|
|
787
775
|
emit("submit", {
|
|
788
776
|
email: email.value,
|
|
@@ -808,15 +796,15 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
808
796
|
ref_key: "formRef",
|
|
809
797
|
ref: formRef,
|
|
810
798
|
class: "q-gutter-md"
|
|
811
|
-
},
|
|
799
|
+
}, __props.form, {
|
|
812
800
|
onSubmit: _cache[5] || (_cache[5] = (e) => submit)
|
|
813
801
|
}), {
|
|
814
802
|
default: withCtx(() => [
|
|
815
|
-
createVNode(_sfc_main$d, mergeProps(
|
|
803
|
+
createVNode(_sfc_main$d, mergeProps(__props.input, {
|
|
816
804
|
modelValue: otp.value,
|
|
817
805
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => otp.value = $event)
|
|
818
806
|
}), null, 16, ["modelValue"]),
|
|
819
|
-
createVNode(_component_q_input, mergeProps(
|
|
807
|
+
createVNode(_component_q_input, mergeProps(__props.input, {
|
|
820
808
|
id: "newPassword",
|
|
821
809
|
modelValue: newPassword.value,
|
|
822
810
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => newPassword.value = $event),
|
|
@@ -829,14 +817,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
829
817
|
}), {
|
|
830
818
|
append: withCtx(() => [
|
|
831
819
|
createVNode(_component_q_icon, {
|
|
832
|
-
name: showPassword.value ?
|
|
820
|
+
name: showPassword.value ? __props.icons.visibility : __props.icons.visibilityOff,
|
|
833
821
|
class: "cursor-pointer",
|
|
834
822
|
onClick: _cache[1] || (_cache[1] = ($event) => showPassword.value = !showPassword.value)
|
|
835
823
|
}, null, 8, ["name"])
|
|
836
824
|
]),
|
|
837
825
|
_: 1
|
|
838
826
|
}, 16, ["modelValue", "type", "label", "rules"]),
|
|
839
|
-
createVNode(_component_q_input, mergeProps(
|
|
827
|
+
createVNode(_component_q_input, mergeProps(__props.input, {
|
|
840
828
|
id: "repeatNewPassword",
|
|
841
829
|
modelValue: repeatNewPassword.value,
|
|
842
830
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => repeatNewPassword.value = $event),
|
|
@@ -849,7 +837,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
849
837
|
}), {
|
|
850
838
|
append: withCtx(() => [
|
|
851
839
|
createVNode(_component_q_icon, {
|
|
852
|
-
name: showRepeatPassword.value ?
|
|
840
|
+
name: showRepeatPassword.value ? __props.icons.visibility : __props.icons.visibilityOff,
|
|
853
841
|
class: "cursor-pointer",
|
|
854
842
|
onClick: _cache[3] || (_cache[3] = ($event) => showRepeatPassword.value = !showRepeatPassword.value)
|
|
855
843
|
}, null, 8, ["name"])
|
|
@@ -932,22 +920,19 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
932
920
|
}, {
|
|
933
921
|
navigation: withCtx(() => [
|
|
934
922
|
createVNode(_component_q_stepper_navigation, { class: "text-right" }, {
|
|
935
|
-
default: withCtx(() =>
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
}, null, 8, ["onSubmit"])) : createCommentVNode("", true)
|
|
949
|
-
];
|
|
950
|
-
}),
|
|
923
|
+
default: withCtx(() => [
|
|
924
|
+
step.value === "requestOtp" ? (openBlock(), createBlock(_sfc_main$f, {
|
|
925
|
+
key: 0,
|
|
926
|
+
"is-next-button": "",
|
|
927
|
+
form: "requestOtpForm",
|
|
928
|
+
onSubmit: requestOtpFormRef.value?.functions.submit
|
|
929
|
+
}, null, 8, ["onSubmit"])) : createCommentVNode("", true),
|
|
930
|
+
step.value === "changePassword" ? (openBlock(), createBlock(_sfc_main$f, {
|
|
931
|
+
key: 1,
|
|
932
|
+
form: "passwordChangeForm",
|
|
933
|
+
onSubmit: passwordChangeFormRef.value?.functions.submit
|
|
934
|
+
}, null, 8, ["onSubmit"])) : createCommentVNode("", true)
|
|
935
|
+
]),
|
|
951
936
|
_: 1
|
|
952
937
|
})
|
|
953
938
|
]),
|
|
@@ -961,7 +946,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
961
946
|
ref_key: "requestOtpFormRef",
|
|
962
947
|
ref: requestOtpFormRef,
|
|
963
948
|
form: { id: "requestOtpForm" },
|
|
964
|
-
input:
|
|
949
|
+
input: __props.input,
|
|
965
950
|
onSubmit: requestOtp
|
|
966
951
|
}, null, 8, ["input"])
|
|
967
952
|
]),
|
|
@@ -977,8 +962,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
977
962
|
ref: passwordChangeFormRef,
|
|
978
963
|
form: { id: "passwordChangeForm" },
|
|
979
964
|
email: email.value,
|
|
980
|
-
input:
|
|
981
|
-
icons:
|
|
965
|
+
input: __props.input,
|
|
966
|
+
icons: __props.icons,
|
|
982
967
|
onSubmit: changePassword
|
|
983
968
|
}, null, 8, ["email", "input", "icons"])
|
|
984
969
|
]),
|
|
@@ -1004,7 +989,6 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1004
989
|
},
|
|
1005
990
|
emits: ["submit"],
|
|
1006
991
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1007
|
-
var _a, _b;
|
|
1008
992
|
const props = __props;
|
|
1009
993
|
const { icons } = toRefs(props);
|
|
1010
994
|
const emit = __emit;
|
|
@@ -1032,8 +1016,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1032
1016
|
password: [(val) => !!val || lang2.value.login.validations.fieldRequired]
|
|
1033
1017
|
}));
|
|
1034
1018
|
const submit = (evt) => {
|
|
1035
|
-
|
|
1036
|
-
(_a2 = formRef.value) == null ? void 0 : _a2.validate().then((success) => {
|
|
1019
|
+
formRef.value?.validate().then((success) => {
|
|
1037
1020
|
if (success) {
|
|
1038
1021
|
emit("submit", {
|
|
1039
1022
|
email: email.value.trim(),
|
|
@@ -1044,8 +1027,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1044
1027
|
} else evt.done();
|
|
1045
1028
|
});
|
|
1046
1029
|
};
|
|
1047
|
-
const visibilityIcon =
|
|
1048
|
-
const visibilityOffIcon =
|
|
1030
|
+
const visibilityIcon = icons.value?.visibility ?? "visibility";
|
|
1031
|
+
const visibilityOffIcon = icons.value?.visibilifyOff ?? "visibility_off";
|
|
1049
1032
|
const variables = ref({
|
|
1050
1033
|
header,
|
|
1051
1034
|
createAccount,
|
|
@@ -1067,11 +1050,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1067
1050
|
ref_key: "formRef",
|
|
1068
1051
|
ref: formRef,
|
|
1069
1052
|
class: "q-gutter-md"
|
|
1070
|
-
},
|
|
1053
|
+
}, __props.form, {
|
|
1071
1054
|
onSubmit: _cache[4] || (_cache[4] = (e) => submit)
|
|
1072
1055
|
}), {
|
|
1073
1056
|
default: withCtx(() => [
|
|
1074
|
-
!
|
|
1057
|
+
!__props.useUsername ? (openBlock(), createBlock(_component_q_input, mergeProps({ key: 0 }, __props.input, {
|
|
1075
1058
|
id: "email",
|
|
1076
1059
|
modelValue: email.value,
|
|
1077
1060
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => email.value = $event),
|
|
@@ -1082,7 +1065,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1082
1065
|
"lazy-rules": "",
|
|
1083
1066
|
autcomplete: "email"
|
|
1084
1067
|
}), null, 16, ["modelValue", "label", "rules"])) : createCommentVNode("", true),
|
|
1085
|
-
|
|
1068
|
+
__props.useUsername ? (openBlock(), createBlock(_component_q_input, mergeProps({ key: 1 }, __props.input, {
|
|
1086
1069
|
id: "username",
|
|
1087
1070
|
modelValue: username.value,
|
|
1088
1071
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => username.value = $event),
|
|
@@ -1098,7 +1081,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1098
1081
|
modelValue: password.value,
|
|
1099
1082
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => password.value = $event),
|
|
1100
1083
|
class: "q-pt-none"
|
|
1101
|
-
},
|
|
1084
|
+
}, __props.input, {
|
|
1102
1085
|
name: "password",
|
|
1103
1086
|
type: showPassword.value ? "text" : "password",
|
|
1104
1087
|
label: unref(lang2).login.fields.password,
|
|
@@ -1116,13 +1099,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1116
1099
|
]),
|
|
1117
1100
|
_: 1
|
|
1118
1101
|
}, 16, ["modelValue", "type", "label", "rules"]),
|
|
1119
|
-
|
|
1102
|
+
__props.passwordForgotUrl ? (openBlock(), createBlock(_component_q_btn, {
|
|
1120
1103
|
key: 2,
|
|
1121
1104
|
class: "q-pt-none text-primary",
|
|
1122
1105
|
label: unref(lang2).login.forgotPassword,
|
|
1123
1106
|
size: "sm",
|
|
1124
1107
|
flat: "",
|
|
1125
|
-
to:
|
|
1108
|
+
to: __props.passwordForgotUrl
|
|
1126
1109
|
}, null, 8, ["label", "to"])) : createCommentVNode("", true),
|
|
1127
1110
|
renderSlot(_ctx.$slots, "default", { submit })
|
|
1128
1111
|
]),
|
|
@@ -1169,7 +1152,14 @@ var alphanumeric = {
|
|
|
1169
1152
|
bn: /^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,
|
|
1170
1153
|
eo: /^[0-9ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,
|
|
1171
1154
|
"hi-IN": /^[\u0900-\u0963]+[\u0966-\u097F]*$/i,
|
|
1172
|
-
"si-LK": /^[0-9\u0D80-\u0DFF]
|
|
1155
|
+
"si-LK": /^[0-9\u0D80-\u0DFF]+$/,
|
|
1156
|
+
"ta-IN": /^[0-9\u0B80-\u0BFF.]+$/i,
|
|
1157
|
+
"te-IN": /^[0-9\u0C00-\u0C7F.]+$/i,
|
|
1158
|
+
"kn-IN": /^[0-9\u0C80-\u0CFF.]+$/i,
|
|
1159
|
+
"ml-IN": /^[0-9\u0D00-\u0D7F.]+$/i,
|
|
1160
|
+
"gu-IN": /^[0-9\u0A80-\u0AFF.]+$/i,
|
|
1161
|
+
"pa-IN": /^[0-9\u0A00-\u0A7F.]+$/i,
|
|
1162
|
+
"or-IN": /^[0-9\u0B00-\u0B7F.]+$/i
|
|
1173
1163
|
};
|
|
1174
1164
|
var englishLocales = ["AU", "GB", "HK", "IN", "NZ", "ZA", "ZM"];
|
|
1175
1165
|
for (var locale, i = 0; i < englishLocales.length; i++) {
|
|
@@ -1274,8 +1264,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1274
1264
|
]
|
|
1275
1265
|
}));
|
|
1276
1266
|
const submit = (evt) => {
|
|
1277
|
-
|
|
1278
|
-
(_a = formRef.value) == null ? void 0 : _a.validate().then((success) => {
|
|
1267
|
+
formRef.value?.validate().then((success) => {
|
|
1279
1268
|
if (success) {
|
|
1280
1269
|
emit("submit", {
|
|
1281
1270
|
email: email.value.trim(),
|
|
@@ -1308,11 +1297,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1308
1297
|
ref_key: "formRef",
|
|
1309
1298
|
ref: formRef,
|
|
1310
1299
|
class: "q-gutter-md"
|
|
1311
|
-
},
|
|
1300
|
+
}, __props.form, {
|
|
1312
1301
|
onSubmit: _cache[6] || (_cache[6] = (e) => submit)
|
|
1313
1302
|
}), {
|
|
1314
1303
|
default: withCtx(() => [
|
|
1315
|
-
!
|
|
1304
|
+
!__props.useUsername ? (openBlock(), createBlock(_component_q_input, mergeProps({ key: 0 }, __props.input, {
|
|
1316
1305
|
id: "email",
|
|
1317
1306
|
modelValue: email.value,
|
|
1318
1307
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => email.value = $event),
|
|
@@ -1322,7 +1311,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1322
1311
|
rules: validations.value["email"],
|
|
1323
1312
|
"lazy-rules": ""
|
|
1324
1313
|
}), null, 16, ["modelValue", "label", "rules"])) : createCommentVNode("", true),
|
|
1325
|
-
|
|
1314
|
+
__props.useUsername ? (openBlock(), createBlock(_component_q_input, mergeProps({ key: 1 }, __props.input, {
|
|
1326
1315
|
id: "username",
|
|
1327
1316
|
modelValue: username.value,
|
|
1328
1317
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => username.value = $event),
|
|
@@ -1332,7 +1321,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1332
1321
|
rules: validations.value["username"],
|
|
1333
1322
|
"lazy-rules": ""
|
|
1334
1323
|
}), null, 16, ["modelValue", "label", "rules"])) : createCommentVNode("", true),
|
|
1335
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
1324
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.extraFields, (field) => {
|
|
1336
1325
|
return openBlock(), createBlock(_component_q_input, {
|
|
1337
1326
|
key: field.name,
|
|
1338
1327
|
modelValue: extraFieldValues.value[field.name],
|
|
@@ -1344,7 +1333,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1344
1333
|
"bottom-slots": ""
|
|
1345
1334
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "label", "rules"]);
|
|
1346
1335
|
}), 128)),
|
|
1347
|
-
createVNode(_component_q_input, mergeProps(
|
|
1336
|
+
createVNode(_component_q_input, mergeProps(__props.input, {
|
|
1348
1337
|
id: "password",
|
|
1349
1338
|
modelValue: password.value,
|
|
1350
1339
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => password.value = $event),
|
|
@@ -1357,7 +1346,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1357
1346
|
}), {
|
|
1358
1347
|
append: withCtx(() => [
|
|
1359
1348
|
createVNode(_component_q_icon, {
|
|
1360
|
-
name: showPassword.value ?
|
|
1349
|
+
name: showPassword.value ? __props.icons.visibility : __props.icons.visibilityOff,
|
|
1361
1350
|
class: "cursor-pointer",
|
|
1362
1351
|
onClick: _cache[2] || (_cache[2] = ($event) => showPassword.value = !showPassword.value)
|
|
1363
1352
|
}, null, 8, ["name"])
|
|
@@ -1377,7 +1366,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1377
1366
|
}, {
|
|
1378
1367
|
append: withCtx(() => [
|
|
1379
1368
|
createVNode(_component_q_icon, {
|
|
1380
|
-
name: showPassword.value ?
|
|
1369
|
+
name: showPassword.value ? __props.icons.visibility : __props.icons.visibilityOff,
|
|
1381
1370
|
class: "cursor-pointer",
|
|
1382
1371
|
onClick: _cache[4] || (_cache[4] = ($event) => showPassword.value = !showPassword.value)
|
|
1383
1372
|
}, null, 8, ["name"])
|
|
@@ -1457,7 +1446,6 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1457
1446
|
icons: {}
|
|
1458
1447
|
},
|
|
1459
1448
|
setup(__props, { expose: __expose }) {
|
|
1460
|
-
var _a;
|
|
1461
1449
|
const props = __props;
|
|
1462
1450
|
const { icons } = toRefs(props);
|
|
1463
1451
|
const $q = useQuasar();
|
|
@@ -1469,7 +1457,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1469
1457
|
const message = computed(() => lang2.value.consent.message);
|
|
1470
1458
|
const allow = computed(() => lang2.value.consent.allow);
|
|
1471
1459
|
const deny = computed(() => lang2.value.consent.deny);
|
|
1472
|
-
const checkIcon =
|
|
1460
|
+
const checkIcon = icons.value?.check ?? "check";
|
|
1473
1461
|
const variables = ref({
|
|
1474
1462
|
message,
|
|
1475
1463
|
allow,
|
|
@@ -1489,7 +1477,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1489
1477
|
const _component_q_list = QList;
|
|
1490
1478
|
return openBlock(), createBlock(_component_q_list, null, {
|
|
1491
1479
|
default: withCtx(() => [
|
|
1492
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
1480
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.scopes, (scope) => {
|
|
1493
1481
|
return openBlock(), createBlock(_component_q_item, {
|
|
1494
1482
|
key: scope.name
|
|
1495
1483
|
}, {
|
|
@@ -1513,7 +1501,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1513
1501
|
_: 2
|
|
1514
1502
|
}, 1024);
|
|
1515
1503
|
}), 128)),
|
|
1516
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
1504
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.claims, (claim) => {
|
|
1517
1505
|
return openBlock(), createBlock(_component_q_item, {
|
|
1518
1506
|
key: claim.name
|
|
1519
1507
|
}, {
|
|
@@ -1537,7 +1525,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1537
1525
|
_: 2
|
|
1538
1526
|
}, 1024);
|
|
1539
1527
|
}), 128)),
|
|
1540
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
1528
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.resourceScopes, (resourceScope) => {
|
|
1541
1529
|
return openBlock(), createBlock(_component_q_item, {
|
|
1542
1530
|
key: resourceScope.name
|
|
1543
1531
|
}, {
|
|
@@ -1578,7 +1566,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1578
1566
|
},
|
|
1579
1567
|
emits: ["signOut"],
|
|
1580
1568
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1581
|
-
var _a;
|
|
1582
1569
|
const props = __props;
|
|
1583
1570
|
const { icons } = toRefs(props);
|
|
1584
1571
|
const emit = __emit;
|
|
@@ -1588,7 +1575,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1588
1575
|
watch($q.lang, (val) => {
|
|
1589
1576
|
loadLang($q.lang.isoName);
|
|
1590
1577
|
});
|
|
1591
|
-
const personIcon =
|
|
1578
|
+
const personIcon = icons.value?.person ?? "person";
|
|
1592
1579
|
const variables = ref({
|
|
1593
1580
|
// header: lang.value.some.nested.prop
|
|
1594
1581
|
});
|
|
@@ -1614,7 +1601,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1614
1601
|
default: withCtx(() => [
|
|
1615
1602
|
createVNode(_component_q_list, null, {
|
|
1616
1603
|
default: withCtx(() => [
|
|
1617
|
-
createVNode(_component_q_item, { to:
|
|
1604
|
+
createVNode(_component_q_item, { to: __props.userRoute }, {
|
|
1618
1605
|
default: withCtx(() => [
|
|
1619
1606
|
createVNode(_component_q_item_section, null, {
|
|
1620
1607
|
default: withCtx(() => [
|
|
@@ -1673,7 +1660,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1673
1660
|
return openBlock(), createBlock(_sfc_main$f, null, {
|
|
1674
1661
|
default: withCtx(() => [
|
|
1675
1662
|
renderSlot(_ctx.$slots, "icon"),
|
|
1676
|
-
|
|
1663
|
+
__props.withNetwork ? (openBlock(), createElementBlock("div", _hoisted_1$2, toDisplayString(unref(lang2).login.loginWith) + " " + toDisplayString(__props.withNetwork), 1)) : (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(unref(lang2).login.login), 1))
|
|
1677
1664
|
]),
|
|
1678
1665
|
_: 3
|
|
1679
1666
|
});
|
|
@@ -1693,7 +1680,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1693
1680
|
},
|
|
1694
1681
|
emits: ["update:pagination", "update:criteria", "addRole", "removeRole"],
|
|
1695
1682
|
setup(__props, { emit: __emit }) {
|
|
1696
|
-
var _a, _b, _c;
|
|
1697
1683
|
const props = __props;
|
|
1698
1684
|
const emit = __emit;
|
|
1699
1685
|
const { modelValue, count, mappedRoles, columns, icons } = toRefs(props);
|
|
@@ -1781,7 +1767,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1781
1767
|
format: (val) => val.map((role) => mappedRoles.value[role]).join(", ")
|
|
1782
1768
|
}
|
|
1783
1769
|
]);
|
|
1784
|
-
if (columns
|
|
1770
|
+
if (columns?.value) accountColumns.value.push(...columns.value);
|
|
1785
1771
|
const roleOptions = computed(
|
|
1786
1772
|
() => Object.entries(mappedRoles.value).map(([key, value]) => ({
|
|
1787
1773
|
label: value,
|
|
@@ -1805,13 +1791,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1805
1791
|
});
|
|
1806
1792
|
};
|
|
1807
1793
|
const openRemoveRoleDialog = (account) => {
|
|
1808
|
-
var _a2;
|
|
1809
1794
|
$q.dialog({
|
|
1810
1795
|
message: lang2.value.account.messages.removeRole(account),
|
|
1811
1796
|
options: {
|
|
1812
1797
|
type: "radio",
|
|
1813
1798
|
model: "role",
|
|
1814
|
-
items:
|
|
1799
|
+
items: account.roles?.map((role) => ({
|
|
1815
1800
|
label: mappedRoles.value[role],
|
|
1816
1801
|
value: role
|
|
1817
1802
|
}))
|
|
@@ -1822,9 +1807,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1822
1807
|
emit("removeRole", { id: account.id, role });
|
|
1823
1808
|
});
|
|
1824
1809
|
};
|
|
1825
|
-
const searchIcon =
|
|
1826
|
-
const cancelIcon =
|
|
1827
|
-
const moreVertIcon =
|
|
1810
|
+
const searchIcon = icons.value?.search ?? "search";
|
|
1811
|
+
const cancelIcon = icons.value?.cancel ?? "cancel";
|
|
1812
|
+
const moreVertIcon = icons.value?.moreVert ?? "more_vert";
|
|
1828
1813
|
return (_ctx, _cache) => {
|
|
1829
1814
|
const _component_q_th = QTh;
|
|
1830
1815
|
const _component_q_tr = QTr;
|
|
@@ -1981,8 +1966,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1981
1966
|
_: 1
|
|
1982
1967
|
})
|
|
1983
1968
|
]),
|
|
1984
|
-
_:
|
|
1985
|
-
},
|
|
1969
|
+
_: 1
|
|
1970
|
+
}, 8, ["onClick"]),
|
|
1986
1971
|
createVNode(_component_q_item, {
|
|
1987
1972
|
clickable: "",
|
|
1988
1973
|
onClick: ($event) => openRemoveRoleDialog(props2.row)
|
|
@@ -2000,8 +1985,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2000
1985
|
_: 1
|
|
2001
1986
|
})
|
|
2002
1987
|
]),
|
|
2003
|
-
_:
|
|
2004
|
-
},
|
|
1988
|
+
_: 1
|
|
1989
|
+
}, 8, ["onClick"])
|
|
2005
1990
|
]),
|
|
2006
1991
|
_: 2
|
|
2007
1992
|
}, 1024)
|
|
@@ -2056,15 +2041,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2056
2041
|
ref: formRef,
|
|
2057
2042
|
"data-allow-mismatch": "props",
|
|
2058
2043
|
class: "q-gutter-md"
|
|
2059
|
-
},
|
|
2044
|
+
}, __props.form, {
|
|
2060
2045
|
method: "post",
|
|
2061
|
-
action:
|
|
2046
|
+
action: __props.action
|
|
2062
2047
|
}), {
|
|
2063
2048
|
default: withCtx(() => [
|
|
2064
2049
|
createElementVNode("input", {
|
|
2065
2050
|
type: "hidden",
|
|
2066
2051
|
name: "xsrf",
|
|
2067
|
-
value:
|
|
2052
|
+
value: __props.xsrfSecret
|
|
2068
2053
|
}, null, 8, _hoisted_1),
|
|
2069
2054
|
renderSlot(_ctx.$slots, "default")
|
|
2070
2055
|
]),
|