adata-ui 3.1.80 → 3.1.82
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/README.md +84 -84
- package/dist/module.json +1 -1
- package/dist/runtime/components/Alert.vue +26 -26
- package/dist/runtime/components/Alert.vue.d.ts +2 -37
- package/dist/runtime/components/Chip.vue +5 -5
- package/dist/runtime/components/Chip.vue.d.ts +2 -21
- package/dist/runtime/components/ColorMode.vue +12 -12
- package/dist/runtime/components/CurveBlock.vue +177 -177
- package/dist/runtime/components/DigitBadge.vue +5 -5
- package/dist/runtime/components/DigitBadge.vue.d.ts +1 -1
- package/dist/runtime/components/Drawer.vue +32 -32
- package/dist/runtime/components/Drawer.vue.d.ts +2 -47
- package/dist/runtime/components/EmptyHeader.vue +6 -6
- package/dist/runtime/components/Error.vue +59 -59
- package/dist/runtime/components/Footer.vue +73 -73
- package/dist/runtime/components/FooterAccordion.vue +45 -45
- package/dist/runtime/components/Header.vue +111 -111
- package/dist/runtime/components/Header.vue.d.ts +50 -0
- package/dist/runtime/components/Modal.vue +78 -78
- package/dist/runtime/components/Modal.vue.d.ts +9 -49
- package/dist/runtime/components/NewFooter.vue +114 -114
- package/dist/runtime/components/NewFooterAccordion.vue +52 -52
- package/dist/runtime/components/OtherServiceFeatures.vue +45 -45
- package/dist/runtime/components/PkMobileServices.vue +22 -22
- package/dist/runtime/components/SidePanel.vue +76 -76
- package/dist/runtime/components/SidePanel.vue.d.ts +3 -79
- package/dist/runtime/components/Tag.vue +4 -4
- package/dist/runtime/components/Tag.vue.d.ts +2 -12
- package/dist/runtime/components/Toggle.vue +30 -30
- package/dist/runtime/components/accordion/Accordion.vue +41 -41
- package/dist/runtime/components/accordion/Accordion.vue.d.ts +4 -44
- package/dist/runtime/components/button/Button.vue +22 -22
- package/dist/runtime/components/button/Button.vue.d.ts +4 -22
- package/dist/runtime/components/checkbox/Checkbox.vue +58 -58
- package/dist/runtime/components/checkbox/Checkbox.vue.d.ts +7 -39
- package/dist/runtime/components/date-picker/DatePicker.vue +38 -38
- package/dist/runtime/components/error-template/index.vue +32 -32
- package/dist/runtime/components/error-template/index.vue.d.ts +3 -5
- package/dist/runtime/components/feature-description/FeatureDescription.vue +46 -46
- package/dist/runtime/components/floating-label/FloatingLabel.vue +5 -5
- package/dist/runtime/components/floating-label/FloatingLabel.vue.d.ts +2 -7
- package/dist/runtime/components/forms/input/password/InputPassword.vue +25 -25
- package/dist/runtime/components/forms/input/password/InputPassword.vue.d.ts +1 -1
- package/dist/runtime/components/forms/input/standard/InputStandard.vue +108 -108
- package/dist/runtime/components/forms/input/textarea/ATextarea.vue +63 -63
- package/dist/runtime/components/forms/input/textarea/ATextarea.vue.d.ts +3 -35
- package/dist/runtime/components/forms/need-more-data/NeedMoreData.vue +61 -55
- package/dist/runtime/components/forms/need-more-data/NeedMoreData.vue.d.ts +11 -2
- package/dist/runtime/components/forms/request-demo/RequestDemo.vue +63 -59
- package/dist/runtime/components/forms/request-demo/RequestDemo.vue.d.ts +27 -0
- package/dist/runtime/components/header/AlmatyContacts.vue +76 -76
- package/dist/runtime/components/header/AstanaContacts.vue +31 -31
- package/dist/runtime/components/header/CardGallery.vue +60 -60
- package/dist/runtime/components/header/ContactMenu.vue +39 -39
- package/dist/runtime/components/header/ContactMenu.vue.d.ts +8 -2
- package/dist/runtime/components/header/HeaderLink.vue +68 -55
- package/dist/runtime/components/header/LangSwitcher.vue +26 -26
- package/dist/runtime/components/header/ListItem.vue +15 -15
- package/dist/runtime/components/header/NavCard.vue +28 -28
- package/dist/runtime/components/header/NavList.vue +52 -52
- package/dist/runtime/components/header/ProductMenu.vue +72 -72
- package/dist/runtime/components/header/ProductMenu.vue.d.ts +8 -2
- package/dist/runtime/components/header/ProfileMenu.vue +37 -37
- package/dist/runtime/components/header/ProfileMenu.vue.d.ts +5 -1
- package/dist/runtime/components/header/ProfileMenuContent.vue +140 -140
- package/dist/runtime/components/header/ProfileMenuContent.vue.d.ts +5 -1
- package/dist/runtime/components/header/TopHeader.vue +72 -72
- package/dist/runtime/components/header-mobile/HeaderMobile.vue +39 -39
- package/dist/runtime/components/header-mobile/HeaderMobile.vue.d.ts +9 -14
- package/dist/runtime/components/mobile-navigation/BottomNavigation.vue +41 -41
- package/dist/runtime/components/mobile-navigation/BottomNavigation.vue.d.ts +29 -0
- package/dist/runtime/components/mobile-navigation/MainButton.vue +8 -8
- package/dist/runtime/components/mobile-navigation/MainButton.vue.d.ts +5 -1
- package/dist/runtime/components/mobile-navigation/MobileProductMenu.vue +26 -26
- package/dist/runtime/components/modals/ApplicationAcceptedModal.vue +43 -0
- package/dist/runtime/components/modals/ApplicationAcceptedModal.vue.d.ts +9 -0
- package/dist/runtime/components/modals/ConnectingTariffModal.vue +58 -0
- package/dist/runtime/components/modals/ConnectingTariffModal.vue.d.ts +19 -0
- package/dist/runtime/components/modals/InsufficientFundsModal.vue +68 -0
- package/dist/runtime/components/modals/InsufficientFundsModal.vue.d.ts +18 -0
- package/dist/runtime/components/modals/NoAccessContent.vue +34 -34
- package/dist/runtime/components/modals/NoAccessContent.vue.d.ts +5 -1
- package/dist/runtime/components/modals/NoAccessSimple.vue +16 -16
- package/dist/runtime/components/modals/NoAccessSimple.vue.d.ts +5 -1
- package/dist/runtime/components/modals/SubmitApplicationModal.vue +114 -0
- package/dist/runtime/components/modals/SubmitApplicationModal.vue.d.ts +17 -0
- package/dist/runtime/components/modals/TokenTimeoutContent.vue +24 -24
- package/dist/runtime/components/modals/TokenTimeoutContent.vue.d.ts +5 -1
- package/dist/runtime/components/modals/id/IdAccessModal.vue +34 -34
- package/dist/runtime/components/modals/id/IdBanner.vue +29 -29
- package/dist/runtime/components/modals/id/IdConfirmAccountOtpModal.vue +43 -43
- package/dist/runtime/components/modals/id/IdConfirmSuccessfulModal.vue +17 -17
- package/dist/runtime/components/modals/id/IdLoginModal.vue +100 -100
- package/dist/runtime/components/modals/id/IdModals.vue +44 -44
- package/dist/runtime/components/modals/id/IdNewPasswordModal.vue +46 -46
- package/dist/runtime/components/modals/id/IdOtpInput.vue +30 -30
- package/dist/runtime/components/modals/id/IdPasswordSuccessfulModal.vue +14 -14
- package/dist/runtime/components/modals/id/IdRecoveryModal.vue +30 -30
- package/dist/runtime/components/modals/id/IdRegistrationModal.vue +68 -68
- package/dist/runtime/components/modals/id/IdResetPasswordOtpModal.vue +47 -47
- package/dist/runtime/components/modals/id/IdTwoFactorModal.vue +23 -23
- package/dist/runtime/components/payment/process/PaymentKaspiQrSidePanel.vue +51 -51
- package/dist/runtime/components/payment/process/PaymentKaspiRedirectSidePanel.vue +35 -35
- package/dist/runtime/components/payment/process/PaymentMethodSidePanel.vue +69 -69
- package/dist/runtime/components/payment/process/PaymentProcess.vue +26 -26
- package/dist/runtime/components/payment/process/PaymentTopUpSidePanel.vue +63 -63
- package/dist/runtime/components/photos-animation/PhotosAnimation.vue +9 -9
- package/dist/runtime/components/pill-tabs/PillTabs.vue +39 -39
- package/dist/runtime/components/pill-tabs/PillTabs.vue.d.ts +46 -0
- package/dist/runtime/components/radio-button/RadioButton.vue +33 -33
- package/dist/runtime/components/radio-button/RadioButton.vue.d.ts +2 -36
- package/dist/runtime/components/row-card/RowCard.vue +27 -27
- package/dist/runtime/components/row-card/RowCard.vue.d.ts +2 -9
- package/dist/runtime/components/select-row/index.vue +58 -58
- package/dist/runtime/components/select-row/index.vue.d.ts +1 -1
- package/dist/runtime/components/transitions/TransitionHeight.vue +9 -9
- package/dist/runtime/components/transitions/TransitionHeight.vue.d.ts +2 -20
- package/dist/runtime/components/tree-select/TreeSelect.vue +16 -16
- package/dist/runtime/components/tree-select/components/tree-select-nodes.vue +75 -75
- package/dist/runtime/composables/projectState.d.ts +2 -2
- package/dist/runtime/composables/useBuyTariffs.d.ts +7 -0
- package/dist/runtime/composables/useBuyTariffs.js +73 -0
- package/dist/runtime/composables/useIdModals.d.ts +11 -21
- package/dist/runtime/composables/usePayment.d.ts +5 -5
- package/dist/runtime/i18n/i18n.config.d.ts +9 -0
- package/dist/runtime/i18n.d.ts +1 -1
- package/dist/runtime/icons/ai-assistant.vue +13 -13
- package/dist/runtime/icons/akimat.vue +20 -20
- package/dist/runtime/icons/arrow/arrow-circle-down.vue +18 -18
- package/dist/runtime/icons/arrow/arrow-graph-up.vue +24 -24
- package/dist/runtime/icons/arrow/arrow-side-up.vue +19 -19
- package/dist/runtime/icons/arrow/arrow-top-right-on-square.vue +19 -19
- package/dist/runtime/icons/arrow/chevron-down.vue +19 -19
- package/dist/runtime/icons/avatar.vue +41 -41
- package/dist/runtime/icons/avto/car.vue +17 -17
- package/dist/runtime/icons/avto/truck.vue +17 -17
- package/dist/runtime/icons/bank.vue +14 -14
- package/dist/runtime/icons/block.vue +19 -19
- package/dist/runtime/icons/bookmark.vue +19 -19
- package/dist/runtime/icons/calculator.vue +19 -19
- package/dist/runtime/icons/chartBar.vue +14 -14
- package/dist/runtime/icons/check-circle.vue +25 -25
- package/dist/runtime/icons/check-sb.vue +7 -7
- package/dist/runtime/icons/checkbox/checkbox-active.vue +19 -19
- package/dist/runtime/icons/checkbox/checkbox-empty.vue +20 -20
- package/dist/runtime/icons/checkbox/checkbox-intermediate.vue +19 -19
- package/dist/runtime/icons/chevron/chevron-down.vue +16 -16
- package/dist/runtime/icons/chevron/chevron-left.vue +5 -5
- package/dist/runtime/icons/chevron/chevron-right.vue +5 -5
- package/dist/runtime/icons/chevron/chevron-up.vue +5 -5
- package/dist/runtime/icons/chevron/double-chevron-right.vue +12 -12
- package/dist/runtime/icons/clipboard-text.vue +17 -17
- package/dist/runtime/icons/clock.vue +25 -25
- package/dist/runtime/icons/color-mode/moon.vue +20 -20
- package/dist/runtime/icons/color-mode/sun.vue +27 -27
- package/dist/runtime/icons/communication/mail.vue +19 -19
- package/dist/runtime/icons/communication/phone.vue +19 -19
- package/dist/runtime/icons/company.vue +19 -19
- package/dist/runtime/icons/currency/dollar.vue +19 -19
- package/dist/runtime/icons/currency/down.vue +22 -22
- package/dist/runtime/icons/currency/eur.vue +69 -69
- package/dist/runtime/icons/currency/rub.vue +25 -25
- package/dist/runtime/icons/currency/tenge.vue +9 -9
- package/dist/runtime/icons/currency/usd.vue +269 -269
- package/dist/runtime/icons/currency/yuan.vue +37 -37
- package/dist/runtime/icons/document/hdocument.vue +17 -17
- package/dist/runtime/icons/document/id.vue +19 -19
- package/dist/runtime/icons/document/profile.vue +19 -19
- package/dist/runtime/icons/eye-closed.vue +26 -26
- package/dist/runtime/icons/eye-open.vue +7 -7
- package/dist/runtime/icons/eye-opened.vue +23 -23
- package/dist/runtime/icons/file/excel-icon.vue +14 -14
- package/dist/runtime/icons/file/file.vue +19 -19
- package/dist/runtime/icons/file/files.vue +17 -17
- package/dist/runtime/icons/globe.vue +19 -19
- package/dist/runtime/icons/hand-with-phone/hand-with-phone-dark.vue +52 -52
- package/dist/runtime/icons/hand-with-phone/hand-with-phone-light.vue +52 -52
- package/dist/runtime/icons/handshake.vue +19 -19
- package/dist/runtime/icons/history.vue +19 -19
- package/dist/runtime/icons/hot-line.vue +6 -6
- package/dist/runtime/icons/id.vue +9 -9
- package/dist/runtime/icons/info/info-circle.vue +29 -29
- package/dist/runtime/icons/invoice.vue +35 -35
- package/dist/runtime/icons/kaspi-qr.vue +13 -13
- package/dist/runtime/icons/link-chain.vue +31 -31
- package/dist/runtime/icons/loader-circle.vue +34 -34
- package/dist/runtime/icons/lock.vue +19 -19
- package/dist/runtime/icons/logo/adata.vue +48 -48
- package/dist/runtime/icons/logo/logo.vue +27 -27
- package/dist/runtime/icons/map-paper.vue +5 -5
- package/dist/runtime/icons/map-pin-rect.vue +15 -15
- package/dist/runtime/icons/medal.vue +17 -17
- package/dist/runtime/icons/menu/menu-filled.vue +61 -61
- package/dist/runtime/icons/menu/menu.vue +41 -41
- package/dist/runtime/icons/message.vue +24 -24
- package/dist/runtime/icons/modals/door.vue +162 -162
- package/dist/runtime/icons/moon.vue +10 -10
- package/dist/runtime/icons/navigation/expand-window.vue +19 -19
- package/dist/runtime/icons/navigation/location.vue +25 -25
- package/dist/runtime/icons/navigation/logout.vue +19 -19
- package/dist/runtime/icons/notifications.vue +25 -25
- package/dist/runtime/icons/other-service/arrow-square-down.vue +15 -15
- package/dist/runtime/icons/other-service/arrow-top-right-on-square.vue +6 -6
- package/dist/runtime/icons/other-service/block.vue +16 -16
- package/dist/runtime/icons/other-service/currency-dollar.vue +16 -16
- package/dist/runtime/icons/other-service/globe.vue +16 -16
- package/dist/runtime/icons/other-service/link.vue +7 -7
- package/dist/runtime/icons/other-service/magnifying-glass.vue +9 -9
- package/dist/runtime/icons/other-service/standing-scales.vue +15 -15
- package/dist/runtime/icons/other-service/users-three.vue +7 -7
- package/dist/runtime/icons/payment/payment-card.vue +6 -6
- package/dist/runtime/icons/payment/payment-kaspi.vue +11 -11
- package/dist/runtime/icons/plus.vue +24 -24
- package/dist/runtime/icons/radio/radio-check.vue +24 -24
- package/dist/runtime/icons/radio/radio-empty.vue +20 -20
- package/dist/runtime/icons/receipt/hcheck.vue +27 -27
- package/dist/runtime/icons/receipt/receipt.vue +27 -27
- package/dist/runtime/icons/sanctions.vue +8 -8
- package/dist/runtime/icons/scale.vue +19 -19
- package/dist/runtime/icons/search.vue +27 -27
- package/dist/runtime/icons/socials/facebook.vue +15 -15
- package/dist/runtime/icons/socials/google.vue +41 -41
- package/dist/runtime/icons/socials/instagram.vue +19 -19
- package/dist/runtime/icons/socials/linkedin.vue +24 -24
- package/dist/runtime/icons/socials/mailru.vue +34 -34
- package/dist/runtime/icons/socials/telegram.vue +15 -15
- package/dist/runtime/icons/socials/tik-tok.vue +15 -15
- package/dist/runtime/icons/socials/whatsapp.vue +21 -21
- package/dist/runtime/icons/socials/yandex.vue +28 -28
- package/dist/runtime/icons/socials/youtube.vue +16 -16
- package/dist/runtime/icons/sun.vue +14 -14
- package/dist/runtime/icons/sviazi.vue +19 -19
- package/dist/runtime/icons/tasks.vue +10 -10
- package/dist/runtime/icons/toasts/check-circle-toast.vue +6 -6
- package/dist/runtime/icons/toasts/warning-triangle-toast.vue +7 -7
- package/dist/runtime/icons/users/users-three.vue +17 -17
- package/dist/runtime/icons/users/users.vue +31 -31
- package/dist/runtime/icons/warning-triangle.vue +29 -29
- package/dist/runtime/icons/work-bag.vue +20 -20
- package/dist/runtime/icons/x-mark.vue +18 -18
- package/dist/runtime/illustrations/address-location.vue +38 -38
- package/dist/runtime/illustrations/ball-with-chain.vue +120 -120
- package/dist/runtime/illustrations/bill.vue +133 -133
- package/dist/runtime/illustrations/buildings.vue +82 -82
- package/dist/runtime/illustrations/calendar.vue +156 -156
- package/dist/runtime/illustrations/chains.vue +152 -152
- package/dist/runtime/illustrations/coin-percent.vue +126 -126
- package/dist/runtime/illustrations/coins-stack.vue +202 -202
- package/dist/runtime/illustrations/delete-dark.vue +31 -31
- package/dist/runtime/illustrations/delete.vue +32 -32
- package/dist/runtime/illustrations/doc-with-stamp.vue +126 -126
- package/dist/runtime/illustrations/document.vue +64 -64
- package/dist/runtime/illustrations/door.vue +74 -74
- package/dist/runtime/illustrations/empty-box.vue +77 -77
- package/dist/runtime/illustrations/empty-wallet.vue +161 -161
- package/dist/runtime/illustrations/graph-in-coin.vue +119 -119
- package/dist/runtime/illustrations/hammer.vue +156 -156
- package/dist/runtime/illustrations/hand-cash.vue +108 -108
- package/dist/runtime/illustrations/info.vue +39 -39
- package/dist/runtime/illustrations/mail.vue +68 -68
- package/dist/runtime/illustrations/ok.vue +62 -62
- package/dist/runtime/illustrations/people-group.vue +237 -237
- package/dist/runtime/illustrations/person-with-phone.vue +187 -187
- package/dist/runtime/illustrations/person.vue +159 -159
- package/dist/runtime/illustrations/phone-check.vue +90 -90
- package/dist/runtime/illustrations/phone-payment-method.vue +223 -223
- package/dist/runtime/illustrations/stop-hand.vue +77 -77
- package/dist/runtime/illustrations/stop-sign.vue +34 -34
- package/dist/runtime/illustrations/suit.vue +111 -111
- package/dist/runtime/illustrations/suitcase.vue +105 -105
- package/dist/runtime/illustrations/terminal-dark.vue +48 -48
- package/dist/runtime/illustrations/terminal.vue +234 -234
- package/dist/runtime/illustrations/trash-can.vue +108 -108
- package/dist/runtime/illustrations/turn-on-tariff.vue +38 -38
- package/dist/runtime/illustrations/two-persons.vue +169 -169
- package/dist/runtime/lang/en.js +5 -2
- package/dist/runtime/lang/kk.js +5 -2
- package/dist/runtime/lang/ru.d.ts +3 -0
- package/dist/runtime/lang/ru.js +5 -2
- package/dist/runtime/plugins/toast.d.ts +1 -503
- package/dist/runtime/public/kaspi/logo.svg +4 -4
- package/dist/runtime/server/tsconfig.json +3 -3
- package/dist/runtime/utils/getMaxZindex.d.ts +2 -0
- package/dist/runtime/utils/getMaxZindex.js +22 -0
- package/dist/runtime/utils/localizedNavigation.d.ts +1 -1
- package/dist/runtime/utils/useUrls.d.ts +1 -0
- package/dist/runtime/utils/useUrls.js +1 -0
- package/package.json +73 -73
|
@@ -14,9 +14,9 @@ const combinedClasses = twMerge(`
|
|
|
14
14
|
</script>
|
|
15
15
|
|
|
16
16
|
<template>
|
|
17
|
-
<label :class="combinedClasses">
|
|
18
|
-
<slot>
|
|
19
|
-
<span class="text-gray-500 leading-4">{{ value }}</span>
|
|
20
|
-
</slot>
|
|
21
|
-
</label>
|
|
17
|
+
<label :class="combinedClasses">
|
|
18
|
+
<slot>
|
|
19
|
+
<span class="text-gray-500 leading-4">{{ value }}</span>
|
|
20
|
+
</slot>
|
|
21
|
+
</label>
|
|
22
22
|
</template>
|
|
@@ -2,15 +2,10 @@ type __VLS_Props = {
|
|
|
2
2
|
value?: string;
|
|
3
3
|
labelClasses?: string;
|
|
4
4
|
};
|
|
5
|
-
declare const combinedClasses: string;
|
|
6
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
7
5
|
declare var __VLS_1: {};
|
|
8
|
-
type __VLS_Slots =
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
9
7
|
default?: (props: typeof __VLS_1) => any;
|
|
10
|
-
}
|
|
11
|
-
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
12
|
-
combinedClasses: typeof combinedClasses;
|
|
13
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
};
|
|
14
9
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
10
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
16
11
|
export default _default;
|
|
@@ -12,29 +12,29 @@ const isOpened = ref(false);
|
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
14
|
<template>
|
|
15
|
-
<input-standard
|
|
16
|
-
v-bind="$attrs"
|
|
17
|
-
:type="isOpened ? 'text' : 'password'"
|
|
18
|
-
v-bind.prop="props"
|
|
19
|
-
>
|
|
20
|
-
<template #endButton>
|
|
21
|
-
<button
|
|
22
|
-
class="absolute top-1/2 right-4 text-gray-500 fill-gray-500 pointer-events-click text-2xl transform translate-y-[-50%] hover:opacity-80 disabled:pointer-events-none"
|
|
23
|
-
:disabled="disabled"
|
|
24
|
-
type="button"
|
|
25
|
-
@click="isOpened = !isOpened"
|
|
26
|
-
>
|
|
27
|
-
<i-eye-closed
|
|
28
|
-
v-if="!isOpened"
|
|
29
|
-
filled
|
|
30
|
-
class="!mb-0"
|
|
31
|
-
/>
|
|
32
|
-
<i-eye-opened
|
|
33
|
-
v-else
|
|
34
|
-
filled
|
|
35
|
-
class="!mb-0"
|
|
36
|
-
/>
|
|
37
|
-
</button>
|
|
38
|
-
</template>
|
|
39
|
-
</input-standard>
|
|
15
|
+
<input-standard
|
|
16
|
+
v-bind="$attrs"
|
|
17
|
+
:type="isOpened ? 'text' : 'password'"
|
|
18
|
+
v-bind.prop="props"
|
|
19
|
+
>
|
|
20
|
+
<template #endButton>
|
|
21
|
+
<button
|
|
22
|
+
class="absolute top-1/2 right-4 text-gray-500 fill-gray-500 pointer-events-click text-2xl transform translate-y-[-50%] hover:opacity-80 disabled:pointer-events-none"
|
|
23
|
+
:disabled="disabled"
|
|
24
|
+
type="button"
|
|
25
|
+
@click="isOpened = !isOpened"
|
|
26
|
+
>
|
|
27
|
+
<i-eye-closed
|
|
28
|
+
v-if="!isOpened"
|
|
29
|
+
filled
|
|
30
|
+
class="!mb-0"
|
|
31
|
+
/>
|
|
32
|
+
<i-eye-opened
|
|
33
|
+
v-else
|
|
34
|
+
filled
|
|
35
|
+
class="!mb-0"
|
|
36
|
+
/>
|
|
37
|
+
</button>
|
|
38
|
+
</template>
|
|
39
|
+
</input-standard>
|
|
40
40
|
</template>
|
|
@@ -8,8 +8,8 @@ interface Props {
|
|
|
8
8
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
9
9
|
size: "sm" | "md";
|
|
10
10
|
error: string;
|
|
11
|
+
label: string;
|
|
11
12
|
disabled: boolean;
|
|
12
13
|
required: boolean;
|
|
13
|
-
label: string;
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
export default _default;
|
|
@@ -184,118 +184,118 @@ defineExpose({
|
|
|
184
184
|
</script>
|
|
185
185
|
|
|
186
186
|
<template>
|
|
187
|
-
<div :class="wrapperClass">
|
|
188
|
-
<div :class="inputWrapperClass">
|
|
189
|
-
<Transition name="autocomplete-fade">
|
|
190
|
-
<div
|
|
191
|
-
v-if="autocompleteList.length && isFocused"
|
|
187
|
+
<div :class="wrapperClass">
|
|
188
|
+
<div :class="inputWrapperClass">
|
|
189
|
+
<Transition name="autocomplete-fade">
|
|
190
|
+
<div
|
|
191
|
+
v-if="autocompleteList.length && isFocused"
|
|
192
192
|
:class="[
|
|
193
193
|
'absolute z-[31] w-full flex flex-col gap-4 rounded bg-white p-2 shadow dark:bg-gray-900',
|
|
194
194
|
isDropdownUp ? 'bottom-[44px]' : 'top-[44px]',
|
|
195
195
|
shadow ? 'autocomplete-shadow' : ''
|
|
196
|
-
]"
|
|
197
|
-
>
|
|
198
|
-
<ul
|
|
199
|
-
ref="autocompleteContainer"
|
|
200
|
-
class="max-h-[250px] w-full overflow-y-auto"
|
|
201
|
-
>
|
|
202
|
-
<li
|
|
203
|
-
v-for="(item, idx) in autocompleteList"
|
|
204
|
-
:key="idx"
|
|
205
|
-
class="cursor-pointer rounded px-4 py-[10px] transition-colors hover:bg-deepblue-900/10 hover:dark:bg-gray-200/10"
|
|
206
|
-
:class="{ 'bg-deepblue-900/5 dark:bg-gray-200/5': currentItemIndex === idx }"
|
|
207
|
-
@mousedown="onSelectOption(item)"
|
|
208
|
-
@touchend="onSelectOptionMobile(item)"
|
|
209
|
-
@touchmove="mobileAutocomMoved = true"
|
|
210
|
-
>
|
|
211
|
-
<slot
|
|
212
|
-
name="autocomplete-option"
|
|
213
|
-
:item="item"
|
|
214
|
-
>
|
|
215
|
-
{{ autocompleteOption ? item[autocompleteOption] : item }}
|
|
216
|
-
</slot>
|
|
217
|
-
</li>
|
|
218
|
-
</ul>
|
|
219
|
-
<slot
|
|
220
|
-
name="autocomplete-buttons"
|
|
221
|
-
:value="modelValue"
|
|
222
|
-
/>
|
|
223
|
-
</div>
|
|
224
|
-
</Transition>
|
|
225
|
-
<input
|
|
226
|
-
:id="label"
|
|
227
|
-
ref="input"
|
|
228
|
-
v-model="modelValue"
|
|
229
|
-
:type="type"
|
|
230
|
-
:class="[inputClass, { not_empty: modelValue !== null && modelValue !== void 0 && modelValue !== '' }]"
|
|
231
|
-
class="input"
|
|
232
|
-
required
|
|
233
|
-
:tabindex="disabled ? -1 : 0"
|
|
234
|
-
v-bind="$attrs"
|
|
235
|
-
@input="emit('updateValue', modelValue)"
|
|
236
|
-
@keydown="handleKeydown"
|
|
237
|
-
@focus="isFocused = true"
|
|
238
|
-
@blur="isFocused = false"
|
|
239
|
-
>
|
|
240
|
-
<label
|
|
241
|
-
:for="label"
|
|
242
|
-
:class="[labelClass]"
|
|
243
|
-
class="label"
|
|
244
|
-
>
|
|
245
|
-
<span class="text">{{ label }}</span>
|
|
246
|
-
<span
|
|
247
|
-
v-if="required"
|
|
248
|
-
class="text-red-600"
|
|
249
|
-
> *</span>
|
|
250
|
-
</label>
|
|
251
|
-
|
|
252
|
-
<component
|
|
253
|
-
:is="startIcon"
|
|
254
|
-
v-if="startIcon"
|
|
255
|
-
class="pointer-events-none absolute left-4 top-1/2 translate-y-[-50%] transform fill-gray-500 text-base text-gray-500"
|
|
256
|
-
filled
|
|
257
|
-
/>
|
|
258
|
-
<component
|
|
259
|
-
:is="endIcon"
|
|
260
|
-
v-if="endIcon"
|
|
261
|
-
class="pointer-events-none absolute right-4 top-1/2 translate-y-[-50%] transform fill-gray-500 text-base text-gray-500"
|
|
262
|
-
filled
|
|
263
|
-
/>
|
|
264
|
-
<button
|
|
265
|
-
v-if="isClearable"
|
|
266
|
-
class="pointer-events-click absolute right-4 top-1/2 translate-y-[-50%] transform rounded-full bg-deepblue-900/10 p-1 text-2xl hover:opacity-80 dark:bg-gray-200/10"
|
|
267
|
-
type="button"
|
|
268
|
-
@click="onClear"
|
|
269
|
-
>
|
|
270
|
-
<i-x-mark
|
|
271
|
-
filled
|
|
272
|
-
class="!mb-0 fill-gray-600 dark:fill-gray-300"
|
|
273
|
-
/>
|
|
274
|
-
</button>
|
|
275
|
-
<slot name="endButton" />
|
|
276
|
-
</div>
|
|
277
|
-
<Transition name="slide-in">
|
|
278
|
-
<div
|
|
279
|
-
v-if="error && typeof error === 'string'"
|
|
280
|
-
class="mt-1"
|
|
281
|
-
>
|
|
282
|
-
<a-alert
|
|
283
|
-
:size="size === 'sm' ? 'xs' : 'sm'"
|
|
284
|
-
:color="'red'"
|
|
285
|
-
icon-type="triangle"
|
|
286
|
-
>
|
|
287
|
-
<template #default>
|
|
288
|
-
<div class="flex flex-col">
|
|
289
|
-
<span
|
|
290
|
-
v-for="(err, index) in error.split(', ')"
|
|
291
|
-
:key="index"
|
|
292
|
-
>{{ err }}<br></span>
|
|
293
|
-
</div>
|
|
294
|
-
</template>
|
|
295
|
-
</a-alert>
|
|
296
|
-
</div>
|
|
297
|
-
</Transition>
|
|
298
|
-
</div>
|
|
196
|
+
]"
|
|
197
|
+
>
|
|
198
|
+
<ul
|
|
199
|
+
ref="autocompleteContainer"
|
|
200
|
+
class="max-h-[250px] w-full overflow-y-auto"
|
|
201
|
+
>
|
|
202
|
+
<li
|
|
203
|
+
v-for="(item, idx) in autocompleteList"
|
|
204
|
+
:key="idx"
|
|
205
|
+
class="cursor-pointer rounded px-4 py-[10px] transition-colors hover:bg-deepblue-900/10 hover:dark:bg-gray-200/10"
|
|
206
|
+
:class="{ 'bg-deepblue-900/5 dark:bg-gray-200/5': currentItemIndex === idx }"
|
|
207
|
+
@mousedown="onSelectOption(item)"
|
|
208
|
+
@touchend="onSelectOptionMobile(item)"
|
|
209
|
+
@touchmove="mobileAutocomMoved = true"
|
|
210
|
+
>
|
|
211
|
+
<slot
|
|
212
|
+
name="autocomplete-option"
|
|
213
|
+
:item="item"
|
|
214
|
+
>
|
|
215
|
+
{{ autocompleteOption ? item[autocompleteOption] : item }}
|
|
216
|
+
</slot>
|
|
217
|
+
</li>
|
|
218
|
+
</ul>
|
|
219
|
+
<slot
|
|
220
|
+
name="autocomplete-buttons"
|
|
221
|
+
:value="modelValue"
|
|
222
|
+
/>
|
|
223
|
+
</div>
|
|
224
|
+
</Transition>
|
|
225
|
+
<input
|
|
226
|
+
:id="label"
|
|
227
|
+
ref="input"
|
|
228
|
+
v-model="modelValue"
|
|
229
|
+
:type="type"
|
|
230
|
+
:class="[inputClass, { not_empty: modelValue !== null && modelValue !== void 0 && modelValue !== '' }]"
|
|
231
|
+
class="input"
|
|
232
|
+
required
|
|
233
|
+
:tabindex="disabled ? -1 : 0"
|
|
234
|
+
v-bind="$attrs"
|
|
235
|
+
@input="emit('updateValue', modelValue)"
|
|
236
|
+
@keydown="handleKeydown"
|
|
237
|
+
@focus="isFocused = true"
|
|
238
|
+
@blur="isFocused = false"
|
|
239
|
+
>
|
|
240
|
+
<label
|
|
241
|
+
:for="label"
|
|
242
|
+
:class="[labelClass]"
|
|
243
|
+
class="label"
|
|
244
|
+
>
|
|
245
|
+
<span class="text">{{ label }}</span>
|
|
246
|
+
<span
|
|
247
|
+
v-if="required"
|
|
248
|
+
class="text-red-600"
|
|
249
|
+
> *</span>
|
|
250
|
+
</label>
|
|
251
|
+
|
|
252
|
+
<component
|
|
253
|
+
:is="startIcon"
|
|
254
|
+
v-if="startIcon"
|
|
255
|
+
class="pointer-events-none absolute left-4 top-1/2 translate-y-[-50%] transform fill-gray-500 text-base text-gray-500"
|
|
256
|
+
filled
|
|
257
|
+
/>
|
|
258
|
+
<component
|
|
259
|
+
:is="endIcon"
|
|
260
|
+
v-if="endIcon"
|
|
261
|
+
class="pointer-events-none absolute right-4 top-1/2 translate-y-[-50%] transform fill-gray-500 text-base text-gray-500"
|
|
262
|
+
filled
|
|
263
|
+
/>
|
|
264
|
+
<button
|
|
265
|
+
v-if="isClearable"
|
|
266
|
+
class="pointer-events-click absolute right-4 top-1/2 translate-y-[-50%] transform rounded-full bg-deepblue-900/10 p-1 text-2xl hover:opacity-80 dark:bg-gray-200/10"
|
|
267
|
+
type="button"
|
|
268
|
+
@click="onClear"
|
|
269
|
+
>
|
|
270
|
+
<i-x-mark
|
|
271
|
+
filled
|
|
272
|
+
class="!mb-0 fill-gray-600 dark:fill-gray-300"
|
|
273
|
+
/>
|
|
274
|
+
</button>
|
|
275
|
+
<slot name="endButton" />
|
|
276
|
+
</div>
|
|
277
|
+
<Transition name="slide-in">
|
|
278
|
+
<div
|
|
279
|
+
v-if="error && typeof error === 'string'"
|
|
280
|
+
class="mt-1"
|
|
281
|
+
>
|
|
282
|
+
<a-alert
|
|
283
|
+
:size="size === 'sm' ? 'xs' : 'sm'"
|
|
284
|
+
:color="'red'"
|
|
285
|
+
icon-type="triangle"
|
|
286
|
+
>
|
|
287
|
+
<template #default>
|
|
288
|
+
<div class="flex flex-col">
|
|
289
|
+
<span
|
|
290
|
+
v-for="(err, index) in error.split(', ')"
|
|
291
|
+
:key="index"
|
|
292
|
+
>{{ err }}<br></span>
|
|
293
|
+
</div>
|
|
294
|
+
</template>
|
|
295
|
+
</a-alert>
|
|
296
|
+
</div>
|
|
297
|
+
</Transition>
|
|
298
|
+
</div>
|
|
299
299
|
</template>
|
|
300
300
|
|
|
301
301
|
<style scoped>
|
|
@@ -88,69 +88,69 @@ const labelClass = computed(
|
|
|
88
88
|
</script>
|
|
89
89
|
|
|
90
90
|
<template>
|
|
91
|
-
<div :class="wrapperClass">
|
|
92
|
-
<div :class="inputWrapperClass">
|
|
93
|
-
<textarea
|
|
94
|
-
:id="label"
|
|
95
|
-
ref="input"
|
|
96
|
-
v-model="modelValue"
|
|
97
|
-
:class="inputClass"
|
|
98
|
-
:tabindex="disabled ? -1 : 0"
|
|
99
|
-
class="input"
|
|
100
|
-
required
|
|
101
|
-
v-bind="$attrs"
|
|
102
|
-
/>
|
|
103
|
-
<label
|
|
104
|
-
:class="labelClass"
|
|
105
|
-
:for="label"
|
|
106
|
-
class="label cursor-pointer"
|
|
107
|
-
>
|
|
108
|
-
<span class="text">{{ label }}</span>
|
|
109
|
-
<span
|
|
110
|
-
v-if="required"
|
|
111
|
-
class="text-red-600"
|
|
112
|
-
> *</span>
|
|
113
|
-
</label>
|
|
114
|
-
|
|
115
|
-
<component
|
|
116
|
-
:is="startIcon"
|
|
117
|
-
v-if="startIcon"
|
|
118
|
-
class="pointer-events-none absolute left-4 top-5 translate-y-[-50%] transform fill-gray-500 text-base text-gray-500"
|
|
119
|
-
filled
|
|
120
|
-
/>
|
|
121
|
-
<button
|
|
122
|
-
v-if="isClearable"
|
|
123
|
-
class="pointer-events-click absolute right-4 top-5 translate-y-[-50%] transform rounded-full bg-deepblue-900/10 p-1 text-2xl hover:opacity-80 dark:bg-gray-200/10"
|
|
124
|
-
type="button"
|
|
125
|
-
@click="modelValue = ''"
|
|
126
|
-
>
|
|
127
|
-
<i-x-mark
|
|
128
|
-
class="!mb-0 fill-gray-600 dark:fill-gray-300"
|
|
129
|
-
filled
|
|
130
|
-
/>
|
|
131
|
-
</button>
|
|
132
|
-
<slot name="endButton" />
|
|
133
|
-
</div>
|
|
134
|
-
<Transition name="slide-in">
|
|
135
|
-
<div
|
|
136
|
-
v-if="error && typeof error === 'string'"
|
|
137
|
-
class="mt-1"
|
|
138
|
-
>
|
|
139
|
-
<a-alert
|
|
140
|
-
:color="'red'"
|
|
141
|
-
:size="size === 'sm' ? 'sm' : 'lg'"
|
|
142
|
-
icon-type="triangle"
|
|
143
|
-
>
|
|
144
|
-
<template #default>
|
|
145
|
-
<span
|
|
146
|
-
v-for="(err, index) in error.split(', ')"
|
|
147
|
-
:key="index"
|
|
148
|
-
>{{ err }}<br></span>
|
|
149
|
-
</template>
|
|
150
|
-
</a-alert>
|
|
151
|
-
</div>
|
|
152
|
-
</Transition>
|
|
153
|
-
</div>
|
|
91
|
+
<div :class="wrapperClass">
|
|
92
|
+
<div :class="inputWrapperClass">
|
|
93
|
+
<textarea
|
|
94
|
+
:id="label"
|
|
95
|
+
ref="input"
|
|
96
|
+
v-model="modelValue"
|
|
97
|
+
:class="inputClass"
|
|
98
|
+
:tabindex="disabled ? -1 : 0"
|
|
99
|
+
class="input"
|
|
100
|
+
required
|
|
101
|
+
v-bind="$attrs"
|
|
102
|
+
/>
|
|
103
|
+
<label
|
|
104
|
+
:class="labelClass"
|
|
105
|
+
:for="label"
|
|
106
|
+
class="label cursor-pointer"
|
|
107
|
+
>
|
|
108
|
+
<span class="text">{{ label }}</span>
|
|
109
|
+
<span
|
|
110
|
+
v-if="required"
|
|
111
|
+
class="text-red-600"
|
|
112
|
+
> *</span>
|
|
113
|
+
</label>
|
|
114
|
+
|
|
115
|
+
<component
|
|
116
|
+
:is="startIcon"
|
|
117
|
+
v-if="startIcon"
|
|
118
|
+
class="pointer-events-none absolute left-4 top-5 translate-y-[-50%] transform fill-gray-500 text-base text-gray-500"
|
|
119
|
+
filled
|
|
120
|
+
/>
|
|
121
|
+
<button
|
|
122
|
+
v-if="isClearable"
|
|
123
|
+
class="pointer-events-click absolute right-4 top-5 translate-y-[-50%] transform rounded-full bg-deepblue-900/10 p-1 text-2xl hover:opacity-80 dark:bg-gray-200/10"
|
|
124
|
+
type="button"
|
|
125
|
+
@click="modelValue = ''"
|
|
126
|
+
>
|
|
127
|
+
<i-x-mark
|
|
128
|
+
class="!mb-0 fill-gray-600 dark:fill-gray-300"
|
|
129
|
+
filled
|
|
130
|
+
/>
|
|
131
|
+
</button>
|
|
132
|
+
<slot name="endButton" />
|
|
133
|
+
</div>
|
|
134
|
+
<Transition name="slide-in">
|
|
135
|
+
<div
|
|
136
|
+
v-if="error && typeof error === 'string'"
|
|
137
|
+
class="mt-1"
|
|
138
|
+
>
|
|
139
|
+
<a-alert
|
|
140
|
+
:color="'red'"
|
|
141
|
+
:size="size === 'sm' ? 'sm' : 'lg'"
|
|
142
|
+
icon-type="triangle"
|
|
143
|
+
>
|
|
144
|
+
<template #default>
|
|
145
|
+
<span
|
|
146
|
+
v-for="(err, index) in error.split(', ')"
|
|
147
|
+
:key="index"
|
|
148
|
+
>{{ err }}<br></span>
|
|
149
|
+
</template>
|
|
150
|
+
</a-alert>
|
|
151
|
+
</div>
|
|
152
|
+
</Transition>
|
|
153
|
+
</div>
|
|
154
154
|
</template>
|
|
155
155
|
|
|
156
156
|
<style scoped>
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import AAlert from '../../../Alert.vue.js';
|
|
2
1
|
interface Props {
|
|
3
2
|
disabled?: boolean;
|
|
4
3
|
label?: string;
|
|
@@ -12,44 +11,13 @@ interface Props {
|
|
|
12
11
|
colorClasses?: string;
|
|
13
12
|
}
|
|
14
13
|
type __VLS_Props = Props;
|
|
15
|
-
declare const modelValue: import("vue").ModelRef<string | number, string, string | number, string | number>;
|
|
16
|
-
declare const isClearable: import("vue").ComputedRef<boolean>;
|
|
17
|
-
declare const wrapperClass: string;
|
|
18
|
-
declare const inputWrapperClass: import("vue").ComputedRef<string>;
|
|
19
|
-
declare const inputClass: import("vue").ComputedRef<string>;
|
|
20
|
-
declare const labelClass: import("vue").ComputedRef<string>;
|
|
21
14
|
type __VLS_PublicProps = __VLS_Props & {
|
|
22
15
|
modelValue?: string | number;
|
|
23
16
|
};
|
|
24
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
25
17
|
declare var __VLS_9: {};
|
|
26
|
-
type __VLS_Slots =
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
27
19
|
endButton?: (props: typeof __VLS_9) => any;
|
|
28
|
-
}
|
|
29
|
-
declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
30
|
-
AAlert: typeof AAlert;
|
|
31
|
-
modelValue: typeof modelValue;
|
|
32
|
-
isClearable: typeof isClearable;
|
|
33
|
-
wrapperClass: typeof wrapperClass;
|
|
34
|
-
inputWrapperClass: typeof inputWrapperClass;
|
|
35
|
-
inputClass: typeof inputClass;
|
|
36
|
-
labelClass: typeof labelClass;
|
|
37
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
|
-
"update:modelValue": (value: string | number) => any;
|
|
39
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
40
|
-
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
41
|
-
}>, {
|
|
42
|
-
size: "sm" | "md";
|
|
43
|
-
error: string | boolean;
|
|
44
|
-
disabled: boolean;
|
|
45
|
-
required: boolean;
|
|
46
|
-
label: string;
|
|
47
|
-
readonly: boolean;
|
|
48
|
-
clearable: boolean;
|
|
49
|
-
startIcon: string | object;
|
|
50
|
-
colorClasses: string;
|
|
51
|
-
resizeable: boolean | "none" | "both" | "x" | "y";
|
|
52
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
};
|
|
53
21
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
54
22
|
"update:modelValue": (value: string | number) => any;
|
|
55
23
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
@@ -57,9 +25,9 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
57
25
|
}>, {
|
|
58
26
|
size: "sm" | "md";
|
|
59
27
|
error: string | boolean;
|
|
28
|
+
label: string;
|
|
60
29
|
disabled: boolean;
|
|
61
30
|
required: boolean;
|
|
62
|
-
label: string;
|
|
63
31
|
readonly: boolean;
|
|
64
32
|
clearable: boolean;
|
|
65
33
|
startIcon: string | object;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { ref, useI18n, watch } from "#imports";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
userInfo: { type: null, required: true }
|
|
5
|
+
});
|
|
3
6
|
const { t } = useI18n();
|
|
4
7
|
const mail = ref("");
|
|
5
8
|
const phone = ref("");
|
|
@@ -34,7 +37,7 @@ const send = () => {
|
|
|
34
37
|
emit("submit", { phone: phone.value, mail: mail.value, comment: comment.value });
|
|
35
38
|
isSend.value = true;
|
|
36
39
|
phone.value = "";
|
|
37
|
-
mail.value = "";
|
|
40
|
+
mail.value = props.userInfo?.email || "";
|
|
38
41
|
comment.value = "";
|
|
39
42
|
phoneValidation.value = "";
|
|
40
43
|
emailValidation.value = "";
|
|
@@ -52,61 +55,64 @@ watch(comment, (newComment) => {
|
|
|
52
55
|
if (isSend.value) return;
|
|
53
56
|
commentValidation.value = validateComment(newComment);
|
|
54
57
|
});
|
|
58
|
+
onMounted(() => {
|
|
59
|
+
mail.value = props.userInfo?.email || "";
|
|
60
|
+
});
|
|
55
61
|
</script>
|
|
56
62
|
|
|
57
63
|
<template>
|
|
58
|
-
<div class="flex flex-col gap-4 sm:gap-8 bg-white p-8 dark:bg-gray-900 sm:rounded-[20px]">
|
|
59
|
-
<div class="flex flex-col gap-2">
|
|
60
|
-
<h2 class="font-bold text-[2rem] leading-10">
|
|
61
|
-
{{ t("forms.feedback.title") }}
|
|
62
|
-
</h2>
|
|
63
|
-
<p class="body-400 text-gray-600 dark:text-gray-200">
|
|
64
|
-
{{ t("forms.feedback.subtitle") }}
|
|
65
|
-
</p>
|
|
66
|
-
</div>
|
|
67
|
-
<form
|
|
68
|
-
action=""
|
|
69
|
-
class="flex flex-col justify-between gap-2 sm:flex-row sm:gap-4"
|
|
70
|
-
>
|
|
71
|
-
<div class="flex flex-col gap-2 sm:w-1/2 sm:gap-4">
|
|
72
|
-
<adt-forms-input-standard
|
|
73
|
-
v-model="mail"
|
|
74
|
-
type="email"
|
|
75
|
-
color-classes="bg-gray-50 dark:bg-gray-800"
|
|
76
|
-
:error="emailValidation"
|
|
77
|
-
:label="t('forms.feedback.email')"
|
|
78
|
-
required
|
|
79
|
-
size="md"
|
|
80
|
-
/>
|
|
81
|
-
<adt-forms-input-standard
|
|
82
|
-
v-model="phone"
|
|
83
|
-
type="tel"
|
|
84
|
-
color-classes="bg-gray-50 dark:bg-gray-800"
|
|
85
|
-
:error="phoneValidation"
|
|
86
|
-
:label="t('forms.feedback.phone')"
|
|
87
|
-
required
|
|
88
|
-
size="md"
|
|
89
|
-
/>
|
|
90
|
-
</div>
|
|
91
|
-
<div class="sm:w-1/2">
|
|
92
|
-
<lazy-adt-forms-input-textarea-a-textarea
|
|
93
|
-
v-model="comment"
|
|
94
|
-
:error="commentValidation"
|
|
95
|
-
:label="t('forms.feedback.comment')"
|
|
96
|
-
:resizeable="false"
|
|
97
|
-
class="min-h-[72px]"
|
|
98
|
-
color-classes="dark:bg-gray-800 bg-gray-50"
|
|
99
|
-
required
|
|
100
|
-
size="sm"
|
|
101
|
-
/>
|
|
102
|
-
</div>
|
|
103
|
-
</form>
|
|
104
|
-
<adt-button
|
|
105
|
-
class="w-full self-end sm:w-[215px] font-semibold"
|
|
106
|
-
:loading="isLoading"
|
|
107
|
-
@click="send"
|
|
108
|
-
>
|
|
109
|
-
{{ t("forms.feedback.send") }}
|
|
110
|
-
</adt-button>
|
|
111
|
-
</div>
|
|
64
|
+
<div class="flex flex-col gap-4 sm:gap-8 bg-white p-8 dark:bg-gray-900 sm:rounded-[20px]">
|
|
65
|
+
<div class="flex flex-col gap-2">
|
|
66
|
+
<h2 class="font-bold text-[2rem] leading-10">
|
|
67
|
+
{{ t("forms.feedback.title") }}
|
|
68
|
+
</h2>
|
|
69
|
+
<p class="body-400 text-gray-600 dark:text-gray-200">
|
|
70
|
+
{{ t("forms.feedback.subtitle") }}
|
|
71
|
+
</p>
|
|
72
|
+
</div>
|
|
73
|
+
<form
|
|
74
|
+
action=""
|
|
75
|
+
class="flex flex-col justify-between gap-2 sm:flex-row sm:gap-4"
|
|
76
|
+
>
|
|
77
|
+
<div class="flex flex-col gap-2 sm:w-1/2 sm:gap-4">
|
|
78
|
+
<adt-forms-input-standard
|
|
79
|
+
v-model="mail"
|
|
80
|
+
type="email"
|
|
81
|
+
color-classes="bg-gray-50 dark:bg-gray-800"
|
|
82
|
+
:error="emailValidation"
|
|
83
|
+
:label="t('forms.feedback.email')"
|
|
84
|
+
required
|
|
85
|
+
size="md"
|
|
86
|
+
/>
|
|
87
|
+
<adt-forms-input-standard
|
|
88
|
+
v-model="phone"
|
|
89
|
+
type="tel"
|
|
90
|
+
color-classes="bg-gray-50 dark:bg-gray-800"
|
|
91
|
+
:error="phoneValidation"
|
|
92
|
+
:label="t('forms.feedback.phone')"
|
|
93
|
+
required
|
|
94
|
+
size="md"
|
|
95
|
+
/>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="sm:w-1/2">
|
|
98
|
+
<lazy-adt-forms-input-textarea-a-textarea
|
|
99
|
+
v-model="comment"
|
|
100
|
+
:error="commentValidation"
|
|
101
|
+
:label="t('forms.feedback.comment')"
|
|
102
|
+
:resizeable="false"
|
|
103
|
+
class="min-h-[72px]"
|
|
104
|
+
color-classes="dark:bg-gray-800 bg-gray-50"
|
|
105
|
+
required
|
|
106
|
+
size="sm"
|
|
107
|
+
/>
|
|
108
|
+
</div>
|
|
109
|
+
</form>
|
|
110
|
+
<adt-button
|
|
111
|
+
class="w-full self-end sm:w-[215px] font-semibold"
|
|
112
|
+
:loading="isLoading"
|
|
113
|
+
@click="send"
|
|
114
|
+
>
|
|
115
|
+
{{ t("forms.feedback.send") }}
|
|
116
|
+
</adt-button>
|
|
117
|
+
</div>
|
|
112
118
|
</template>
|