@winchsa/ui 0.1.33 → 0.1.34
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/dist/components/Breadcrumbs.d.vue.ts +7 -0
- package/dist/components/Breadcrumbs.vue +46 -0
- package/dist/components/Breadcrumbs.vue.d.ts +7 -0
- package/dist/components/CustomizerSection.d.vue.ts +17 -0
- package/dist/components/CustomizerSection.vue +19 -0
- package/dist/components/CustomizerSection.vue.d.ts +17 -0
- package/dist/components/DialogCloseBtn.d.vue.ts +7 -0
- package/dist/components/DialogCloseBtn.vue +20 -0
- package/dist/components/DialogCloseBtn.vue.d.ts +7 -0
- package/dist/components/Drawer.d.vue.ts +28 -0
- package/dist/components/Drawer.vue +60 -0
- package/dist/components/Drawer.vue.d.ts +28 -0
- package/dist/components/IconBtn.d.vue.ts +18 -0
- package/dist/components/IconBtn.vue +24 -0
- package/dist/components/IconBtn.vue.d.ts +18 -0
- package/dist/components/LoadingBar.d.vue.ts +6 -0
- package/dist/components/LoadingBar.vue +31 -0
- package/dist/components/LoadingBar.vue.d.ts +6 -0
- package/dist/components/LoadingDialog.d.vue.ts +12 -0
- package/dist/components/LoadingDialog.vue +41 -0
- package/dist/components/LoadingDialog.vue.d.ts +12 -0
- package/dist/components/LoadingItem.d.vue.ts +25 -0
- package/dist/components/LoadingItem.vue +66 -0
- package/dist/components/LoadingItem.vue.d.ts +25 -0
- package/dist/components/Modal.d.vue.ts +50 -0
- package/dist/components/Modal.vue +155 -0
- package/dist/components/Modal.vue.d.ts +50 -0
- package/dist/components/MoreBtn.d.vue.ts +17 -0
- package/dist/components/MoreBtn.vue +28 -0
- package/dist/components/MoreBtn.vue.d.ts +17 -0
- package/dist/components/ScrollToTop.d.vue.ts +3 -0
- package/dist/components/ScrollToTop.vue +39 -0
- package/dist/components/ScrollToTop.vue.d.ts +3 -0
- package/dist/components/SiteTitle.d.vue.ts +3 -0
- package/dist/components/SiteTitle.vue +14 -0
- package/dist/components/SiteTitle.vue.d.ts +3 -0
- package/dist/components/Toaster.d.vue.ts +6 -0
- package/dist/components/Toaster.vue +19 -0
- package/dist/components/Toaster.vue.d.ts +6 -0
- package/dist/components/cards/AppCard.d.vue.ts +18 -0
- package/dist/components/cards/AppCard.vue +45 -0
- package/dist/components/cards/AppCard.vue.d.ts +18 -0
- package/dist/components/cards/AppCardActions.d.vue.ts +33 -0
- package/dist/components/cards/AppCardActions.vue +126 -0
- package/dist/components/cards/AppCardActions.vue.d.ts +33 -0
- package/dist/components/cards/CardStatisticsHorizontal.d.vue.ts +9 -0
- package/dist/components/cards/CardStatisticsHorizontal.vue +29 -0
- package/dist/components/cards/CardStatisticsHorizontal.vue.d.ts +9 -0
- package/dist/components/cards/CheckboxesCard.d.vue.ts +18 -0
- package/dist/components/cards/CheckboxesCard.vue +108 -0
- package/dist/components/cards/CheckboxesCard.vue.d.ts +18 -0
- package/dist/components/cards/HeaderCard.d.vue.ts +9 -0
- package/dist/components/cards/HeaderCard.vue +31 -0
- package/dist/components/cards/HeaderCard.vue.d.ts +9 -0
- package/dist/components/cards/ImageCard.d.vue.ts +33 -0
- package/dist/components/cards/ImageCard.vue +73 -0
- package/dist/components/cards/ImageCard.vue.d.ts +33 -0
- package/dist/components/cards/InputCard.d.vue.ts +21 -0
- package/dist/components/cards/InputCard.vue +60 -0
- package/dist/components/cards/InputCard.vue.d.ts +21 -0
- package/dist/components/cards/StaticCard.d.vue.ts +21 -0
- package/dist/components/cards/StaticCard.vue +37 -0
- package/dist/components/cards/StaticCard.vue.d.ts +21 -0
- package/dist/components/forms/Accordion.d.vue.ts +19 -0
- package/dist/components/forms/Accordion.vue +43 -0
- package/dist/components/forms/Accordion.vue.d.ts +19 -0
- package/dist/components/forms/AppBarSearch.d.vue.ts +43 -0
- package/dist/components/forms/AppBarSearch.vue +345 -0
- package/dist/components/forms/AppBarSearch.vue.d.ts +43 -0
- package/dist/components/forms/AppCombobox.d.vue.ts +13 -0
- package/dist/components/forms/AppCombobox.vue +60 -0
- package/dist/components/forms/AppCombobox.vue.d.ts +13 -0
- package/dist/components/forms/AppDrawerHeaderSection.d.vue.ts +20 -0
- package/dist/components/forms/AppDrawerHeaderSection.vue +21 -0
- package/dist/components/forms/AppDrawerHeaderSection.vue.d.ts +20 -0
- package/dist/components/forms/AppLabel.d.vue.ts +24 -0
- package/dist/components/forms/AppLabel.vue +47 -0
- package/dist/components/forms/AppLabel.vue.d.ts +24 -0
- package/dist/components/forms/AppLink.d.vue.ts +19 -0
- package/dist/components/forms/AppLink.vue +50 -0
- package/dist/components/forms/AppLink.vue.d.ts +19 -0
- package/dist/components/forms/AppNumberField.d.vue.ts +20 -0
- package/dist/components/forms/AppNumberField.vue +79 -0
- package/dist/components/forms/AppNumberField.vue.d.ts +20 -0
- package/dist/components/forms/AppOtpInput.d.vue.ts +13 -0
- package/dist/components/forms/AppOtpInput.vue +84 -0
- package/dist/components/forms/AppOtpInput.vue.d.ts +13 -0
- package/dist/components/forms/AppSearchHeader.d.vue.ts +8 -0
- package/dist/components/forms/AppSearchHeader.vue +72 -0
- package/dist/components/forms/AppSearchHeader.vue.d.ts +8 -0
- package/dist/components/forms/AppSelect.d.vue.ts +17 -0
- package/dist/components/forms/AppSelect.vue +91 -0
- package/dist/components/forms/AppSelect.vue.d.ts +17 -0
- package/dist/components/forms/AppStepper.d.vue.ts +21 -0
- package/dist/components/forms/AppStepper.vue +232 -0
- package/dist/components/forms/AppStepper.vue.d.ts +21 -0
- package/dist/components/forms/AppSwitch.d.vue.ts +16 -0
- package/dist/components/forms/AppSwitch.vue +59 -0
- package/dist/components/forms/AppSwitch.vue.d.ts +16 -0
- package/dist/components/forms/AppTextField.d.vue.ts +13 -0
- package/dist/components/forms/AppTextField.vue +59 -0
- package/dist/components/forms/AppTextField.vue.d.ts +13 -0
- package/dist/components/forms/AppTextarea.d.vue.ts +13 -0
- package/dist/components/forms/AppTextarea.vue +62 -0
- package/dist/components/forms/AppTextarea.vue.d.ts +13 -0
- package/dist/components/forms/AttachmentCropperInput.d.vue.ts +18 -0
- package/dist/components/forms/AttachmentCropperInput.vue +227 -0
- package/dist/components/forms/AttachmentCropperInput.vue.d.ts +18 -0
- package/dist/components/forms/AttachmentInput.d.vue.ts +16 -0
- package/dist/components/forms/AttachmentInput.vue +116 -0
- package/dist/components/forms/AttachmentInput.vue.d.ts +16 -0
- package/dist/components/forms/AutocompleteInput.d.vue.ts +84 -0
- package/dist/components/forms/AutocompleteInput.vue +760 -0
- package/dist/components/forms/AutocompleteInput.vue.d.ts +84 -0
- package/dist/components/forms/BankSelect.d.vue.ts +21 -0
- package/dist/components/forms/BankSelect.vue +43 -0
- package/dist/components/forms/BankSelect.vue.d.ts +21 -0
- package/dist/components/forms/BaseButton.d.vue.ts +20 -0
- package/dist/components/forms/BaseButton.vue +42 -0
- package/dist/components/forms/BaseButton.vue.d.ts +20 -0
- package/dist/components/forms/CounterInput.d.vue.ts +13 -0
- package/dist/components/forms/CounterInput.vue +71 -0
- package/dist/components/forms/CounterInput.vue.d.ts +13 -0
- package/dist/components/forms/CustomCheckboxes.d.vue.ts +25 -0
- package/dist/components/forms/CustomCheckboxes.vue +69 -0
- package/dist/components/forms/CustomCheckboxes.vue.d.ts +25 -0
- package/dist/components/forms/CustomCheckboxesWithIcon.d.vue.ts +25 -0
- package/dist/components/forms/CustomCheckboxesWithIcon.vue +80 -0
- package/dist/components/forms/CustomCheckboxesWithIcon.vue.d.ts +25 -0
- package/dist/components/forms/CustomCheckboxesWithImage.d.vue.ts +16 -0
- package/dist/components/forms/CustomCheckboxesWithImage.vue +67 -0
- package/dist/components/forms/CustomCheckboxesWithImage.vue.d.ts +16 -0
- package/dist/components/forms/CustomRadios.d.vue.ts +25 -0
- package/dist/components/forms/CustomRadios.vue +69 -0
- package/dist/components/forms/CustomRadios.vue.d.ts +25 -0
- package/dist/components/forms/CustomRadiosWithIcon.d.vue.ts +28 -0
- package/dist/components/forms/CustomRadiosWithIcon.vue +98 -0
- package/dist/components/forms/CustomRadiosWithIcon.vue.d.ts +28 -0
- package/dist/components/forms/CustomRadiosWithImage.d.vue.ts +35 -0
- package/dist/components/forms/CustomRadiosWithImage.vue +69 -0
- package/dist/components/forms/CustomRadiosWithImage.vue.d.ts +35 -0
- package/dist/components/forms/DatePicker.d.vue.ts +29 -0
- package/dist/components/forms/DatePicker.vue +392 -0
- package/dist/components/forms/DatePicker.vue.d.ts +29 -0
- package/dist/components/forms/DatePickerRange.d.vue.ts +24 -0
- package/dist/components/forms/DatePickerRange.vue +127 -0
- package/dist/components/forms/DatePickerRange.vue.d.ts +24 -0
- package/dist/components/forms/DraggedUploadFile.d.vue.ts +11 -0
- package/dist/components/forms/DraggedUploadFile.vue +120 -0
- package/dist/components/forms/DraggedUploadFile.vue.d.ts +11 -0
- package/dist/components/forms/ImageCardInput.d.vue.ts +35 -0
- package/dist/components/forms/ImageCardInput.vue +234 -0
- package/dist/components/forms/ImageCardInput.vue.d.ts +35 -0
- package/dist/components/forms/InputValidationWrapper.d.vue.ts +26 -0
- package/dist/components/forms/InputValidationWrapper.vue +24 -0
- package/dist/components/forms/InputValidationWrapper.vue.d.ts +26 -0
- package/dist/components/forms/LicensePlateInput.d.vue.ts +21 -0
- package/dist/components/forms/LicensePlateInput.vue +175 -0
- package/dist/components/forms/LicensePlateInput.vue.d.ts +21 -0
- package/dist/components/forms/ManualDate.d.vue.ts +20 -0
- package/dist/components/forms/ManualDate.vue +264 -0
- package/dist/components/forms/ManualDate.vue.d.ts +20 -0
- package/dist/components/forms/MobileInput.d.vue.ts +25 -0
- package/dist/components/forms/MobileInput.vue +118 -0
- package/dist/components/forms/MobileInput.vue.d.ts +25 -0
- package/dist/components/forms/PasswordInput.d.vue.ts +11 -0
- package/dist/components/forms/PasswordInput.vue +29 -0
- package/dist/components/forms/PasswordInput.vue.d.ts +11 -0
- package/dist/components/forms/RangeInput.d.vue.ts +10 -0
- package/dist/components/forms/RangeInput.vue +48 -0
- package/dist/components/forms/RangeInput.vue.d.ts +10 -0
- package/dist/components/forms/Tabs.d.vue.ts +23 -0
- package/dist/components/forms/Tabs.vue +35 -0
- package/dist/components/forms/Tabs.vue.d.ts +23 -0
- package/dist/components/forms/TimePicker.d.vue.ts +18 -0
- package/dist/components/forms/TimePicker.vue +370 -0
- package/dist/components/forms/TimePicker.vue.d.ts +18 -0
- package/dist/components/table/DataTable.d.vue.ts +70 -0
- package/dist/components/table/DataTable.vue +361 -0
- package/dist/components/table/DataTable.vue.d.ts +70 -0
- package/dist/components/table/EditableDataTable.d.vue.ts +21 -0
- package/dist/components/table/EditableDataTable.vue +330 -0
- package/dist/components/table/EditableDataTable.vue.d.ts +21 -0
- package/dist/components/table/EditableDataTableRow.d.vue.ts +20 -0
- package/dist/components/table/EditableDataTableRow.vue +253 -0
- package/dist/components/table/EditableDataTableRow.vue.d.ts +20 -0
- package/dist/components/table/FilterGenerator.d.vue.ts +13 -0
- package/dist/components/table/FilterGenerator.vue +231 -0
- package/dist/components/table/FilterGenerator.vue.d.ts +13 -0
- package/dist/components/table/StaticTable.d.vue.ts +34 -0
- package/dist/components/table/StaticTable.vue +152 -0
- package/dist/components/table/StaticTable.vue.d.ts +34 -0
- package/dist/components/table/TablePagination.d.vue.ts +15 -0
- package/dist/components/table/TablePagination.vue +73 -0
- package/dist/components/table/TablePagination.vue.d.ts +15 -0
- package/dist/composables/useIsMobile.d.ts +1 -0
- package/dist/composables/useIsMobile.js +10 -0
- package/dist/composables/useIsMobile.mjs +4 -0
- package/dist/composables/useTableFilters.d.ts +23 -0
- package/dist/composables/useTableFilters.js +197 -0
- package/dist/composables/useTableFilters.mjs +184 -0
- package/dist/images/avatar.png +0 -0
- package/dist/images/sa.svg +1 -0
- package/dist/index.d.ts +65 -0
- package/dist/index.js +454 -0
- package/dist/index.mjs +130 -0
- package/dist/lang/ar.json +54 -0
- package/dist/lang/en.json +54 -0
- package/dist/styles/assets/scss/variables/_template.scss +1 -0
- package/dist/styles/assets/scss/variables/_vuetify.scss +1 -0
- package/dist/styles/core/base/_components.scss +164 -0
- package/dist/styles/core/base/_dark.scss +16 -0
- package/dist/styles/core/base/_default-layout-w-vertical-nav.scss +106 -0
- package/dist/styles/core/base/_default-layout.scss +16 -0
- package/dist/styles/core/base/_index.scss +47 -0
- package/dist/styles/core/base/_layouts.scss +63 -0
- package/dist/styles/core/base/_misc.scss +20 -0
- package/dist/styles/core/base/_mixins.scss +84 -0
- package/dist/styles/core/base/_route-transitions.scss +70 -0
- package/dist/styles/core/base/_utilities.scss +418 -0
- package/dist/styles/core/base/_utils.scss +100 -0
- package/dist/styles/core/base/_variables.scss +190 -0
- package/dist/styles/core/base/_vertical-nav.scss +264 -0
- package/dist/styles/core/base/libs/_perfect-scrollbar.scss +35 -0
- package/dist/styles/core/base/libs/vuetify/_index.scss +1 -0
- package/dist/styles/core/base/libs/vuetify/_overrides.scss +380 -0
- package/dist/styles/core/base/libs/vuetify/_variables.scss +48 -0
- package/dist/styles/core/base/placeholders/_default-layout-vertical-nav.scss +48 -0
- package/dist/styles/core/base/placeholders/_default-layout.scss +3 -0
- package/dist/styles/core/base/placeholders/_index.scss +5 -0
- package/dist/styles/core/base/placeholders/_misc.scss +7 -0
- package/dist/styles/core/base/placeholders/_nav.scss +26 -0
- package/dist/styles/core/base/placeholders/_vertical-nav.scss +84 -0
- package/dist/styles/core/base/skins/_bordered.scss +60 -0
- package/dist/styles/core/base/skins/_index.scss +1 -0
- package/dist/styles/core/template/_components.scss +1035 -0
- package/dist/styles/core/template/_default-layout-w-vertical-nav.scss +20 -0
- package/dist/styles/core/template/_utilities.scss +20 -0
- package/dist/styles/core/template/_variables.scss +67 -0
- package/dist/styles/core/template/_vertical-nav.scss +41 -0
- package/dist/styles/core/template/index.css +18779 -0
- package/dist/styles/core/template/index.scss +15 -0
- package/dist/styles/core/template/libs/vuetify/_variables.scss +464 -0
- package/dist/styles/core/template/libs/vuetify/index.css +739 -0
- package/dist/styles/core/template/libs/vuetify/index.scss +1 -0
- package/dist/styles/core/template/pages/misc.css +16 -0
- package/dist/styles/core/template/pages/misc.scss +20 -0
- package/dist/styles/core/template/placeholders/_default-layout-vertical-nav.scss +9 -0
- package/dist/styles/core/template/placeholders/_index.scss +3 -0
- package/dist/styles/core/template/placeholders/_nav.scss +15 -0
- package/dist/styles/core/template/placeholders/_vertical-nav.scss +18 -0
- package/dist/styles/core/template/skins/_bordered.scss +36 -0
- package/dist/styles/core/template/skins/_index.scss +1 -0
- package/dist/styles/layouts/_classes.scss +3 -0
- package/dist/styles/layouts/_dashboard-layout.scss +43 -0
- package/dist/styles/layouts/_global.scss +10 -0
- package/dist/styles/layouts/_mixins.scss +28 -0
- package/dist/styles/layouts/_placeholders.scss +53 -0
- package/dist/styles/layouts/_rtl.scss +7 -0
- package/dist/styles/layouts/_variables.scss +22 -0
- package/dist/styles/layouts/index.css +14 -0
- package/dist/styles/layouts/index.scss +2 -0
- package/dist/types.d.ts +218 -0
- package/dist/utils/apiUrl.d.ts +1 -0
- package/dist/utils/apiUrl.js +15 -0
- package/dist/utils/apiUrl.mjs +8 -0
- package/dist/utils/client.d.ts +9 -0
- package/dist/utils/client.js +53 -0
- package/dist/utils/client.mjs +39 -0
- package/dist/utils/files.d.ts +2 -0
- package/dist/utils/files.js +35 -0
- package/dist/utils/files.mjs +22 -0
- package/dist/utils/formValidation.d.ts +7 -0
- package/dist/utils/formValidation.js +20 -0
- package/dist/utils/formValidation.mjs +13 -0
- package/dist/utils/formatters.d.ts +12 -0
- package/dist/utils/formatters.js +84 -0
- package/dist/utils/formatters.mjs +56 -0
- package/dist/utils/hijriDate.d.ts +58 -0
- package/dist/utils/hijriDate.js +168 -0
- package/dist/utils/hijriDate.mjs +1951 -0
- package/dist/utils/i18n.d.ts +8 -0
- package/dist/utils/i18n.js +36 -0
- package/dist/utils/i18n.mjs +27 -0
- package/dist/utils/index.d.ts +10 -0
- package/dist/utils/index.js +115 -0
- package/dist/utils/index.mjs +10 -0
- package/dist/utils/queryParams.d.ts +4 -0
- package/dist/utils/queryParams.js +26 -0
- package/dist/utils/queryParams.mjs +18 -0
- package/dist/utils/ruleValidator.d.ts +41 -0
- package/dist/utils/ruleValidator.js +210 -0
- package/dist/utils/ruleValidator.mjs +195 -0
- package/dist/utils/toaster.d.ts +12 -0
- package/dist/utils/toaster.js +68 -0
- package/dist/utils/toaster.mjs +58 -0
- package/dist/utils/utils.d.ts +9 -0
- package/dist/utils/utils.js +84 -0
- package/dist/utils/utils.mjs +67 -0
- package/package.json +1 -1
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, computed, watchEffect } from "vue";
|
|
3
|
+
import { VSlideGroup, VSlideGroupItem, VIcon } from "vuetify/components";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
items: { type: Array, required: true },
|
|
6
|
+
currentStep: { type: Number, required: false, default: 0 },
|
|
7
|
+
direction: { type: String, required: false, default: "horizontal" },
|
|
8
|
+
iconSize: { type: [String, Number], required: false, default: 52 },
|
|
9
|
+
isActiveStepValid: { type: Boolean, required: false, default: void 0 }
|
|
10
|
+
});
|
|
11
|
+
const emit = defineEmits(["update:currentStep"]);
|
|
12
|
+
const currentStep = ref(props.currentStep || 0);
|
|
13
|
+
const activeOrCompletedStepsClasses = computed(
|
|
14
|
+
() => (index) => index < currentStep.value ? "stepper-steps-completed" : index === currentStep.value ? "stepper-steps-active" : ""
|
|
15
|
+
);
|
|
16
|
+
const isHorizontalAndNotLastStep = computed(
|
|
17
|
+
() => (index) => props.direction === "horizontal" && props.items.length - 1 !== index
|
|
18
|
+
);
|
|
19
|
+
const isValidationEnabled = computed(() => {
|
|
20
|
+
return props.isActiveStepValid !== void 0;
|
|
21
|
+
});
|
|
22
|
+
watchEffect(() => {
|
|
23
|
+
if (props.currentStep !== void 0 && props.currentStep < props.items.length && props.currentStep >= 0) {
|
|
24
|
+
currentStep.value = props.currentStep;
|
|
25
|
+
}
|
|
26
|
+
emit("update:currentStep", currentStep.value);
|
|
27
|
+
});
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template>
|
|
31
|
+
<VSlideGroup
|
|
32
|
+
v-model="currentStep"
|
|
33
|
+
class="app-stepper"
|
|
34
|
+
show-arrows
|
|
35
|
+
:direction="direction"
|
|
36
|
+
>
|
|
37
|
+
<VSlideGroupItem
|
|
38
|
+
v-for="(item, index) in items"
|
|
39
|
+
:key="item.title"
|
|
40
|
+
:value="index"
|
|
41
|
+
>
|
|
42
|
+
<div
|
|
43
|
+
class="cursor-pointer mx-1"
|
|
44
|
+
:class="[!isActiveStepValid && isValidationEnabled && 'stepper-steps-invalid', activeOrCompletedStepsClasses(index)]"
|
|
45
|
+
@click="!isValidationEnabled && emit('update:currentStep', index)"
|
|
46
|
+
>
|
|
47
|
+
<!-- SECTION stepper step with icon -->
|
|
48
|
+
<template v-if="item.icon">
|
|
49
|
+
<div class="stepper-icon-step text-high-emphasis d-flex align-center gap-2">
|
|
50
|
+
<!-- icon and title -->
|
|
51
|
+
<div
|
|
52
|
+
class="d-flex align-center gap-4 step-wrapper"
|
|
53
|
+
:class="[direction === 'horizontal' && 'flex-column']"
|
|
54
|
+
>
|
|
55
|
+
<div class="stepper-icon">
|
|
56
|
+
<VIcon
|
|
57
|
+
:icon="item.icon"
|
|
58
|
+
:size="item.size || iconSize"
|
|
59
|
+
/>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div>
|
|
63
|
+
<p class="stepper-title font-weight-medium mb-0">
|
|
64
|
+
{{ item.title }}
|
|
65
|
+
</p>
|
|
66
|
+
<span
|
|
67
|
+
v-if="item.subtitle"
|
|
68
|
+
class="stepper-subtitle"
|
|
69
|
+
>
|
|
70
|
+
<span class="text-sm">{{ item.subtitle }}</span>
|
|
71
|
+
</span>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<!-- append chevron -->
|
|
76
|
+
<VIcon
|
|
77
|
+
v-if="isHorizontalAndNotLastStep(index)"
|
|
78
|
+
class="flip-in-rtl stepper-chevron-indicator mx-6"
|
|
79
|
+
size="24"
|
|
80
|
+
icon="tabler-chevron-right"
|
|
81
|
+
/>
|
|
82
|
+
</div>
|
|
83
|
+
</template>
|
|
84
|
+
<!-- !SECTION -->
|
|
85
|
+
|
|
86
|
+
<!-- SECTION stepper step without icon -->
|
|
87
|
+
<template v-else>
|
|
88
|
+
<div class="d-flex align-center gap-x-2">
|
|
89
|
+
<div class="d-flex align-center gap-2">
|
|
90
|
+
<div
|
|
91
|
+
class="d-flex align-center justify-center"
|
|
92
|
+
style="block-size: 24px; inline-size: 24px"
|
|
93
|
+
>
|
|
94
|
+
<!-- custom circle icon -->
|
|
95
|
+
<template v-if="index >= currentStep">
|
|
96
|
+
<div
|
|
97
|
+
v-if="!isValidationEnabled || isActiveStepValid || index !== currentStep"
|
|
98
|
+
class="stepper-step-indicator"
|
|
99
|
+
/>
|
|
100
|
+
|
|
101
|
+
<VIcon
|
|
102
|
+
v-else
|
|
103
|
+
icon="tabler-alert-circle"
|
|
104
|
+
size="24"
|
|
105
|
+
color="error"
|
|
106
|
+
/>
|
|
107
|
+
</template>
|
|
108
|
+
|
|
109
|
+
<!-- step completed icon -->
|
|
110
|
+
|
|
111
|
+
<VIcon
|
|
112
|
+
v-else
|
|
113
|
+
icon="custom-check-circle"
|
|
114
|
+
class="stepper-step-icon"
|
|
115
|
+
size="24"
|
|
116
|
+
/>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<!-- Step Number -->
|
|
120
|
+
<h4 class="text-h4 step-number">
|
|
121
|
+
{{ (index + 1).toString().padStart(2, "0") }}
|
|
122
|
+
</h4>
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
<!-- title and subtitle -->
|
|
126
|
+
<div style="line-height: 0">
|
|
127
|
+
<h6 class="text-sm font-weight-medium step-title">
|
|
128
|
+
{{ item.title }}
|
|
129
|
+
</h6>
|
|
130
|
+
|
|
131
|
+
<span
|
|
132
|
+
v-if="item.subtitle"
|
|
133
|
+
class="text-xs step-subtitle"
|
|
134
|
+
>
|
|
135
|
+
{{ item.subtitle }}
|
|
136
|
+
</span>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
<!-- stepper step line -->
|
|
140
|
+
<div
|
|
141
|
+
v-if="isHorizontalAndNotLastStep(index)"
|
|
142
|
+
class="stepper-step-line"
|
|
143
|
+
/>
|
|
144
|
+
</div>
|
|
145
|
+
</template>
|
|
146
|
+
<!-- !SECTION -->
|
|
147
|
+
</div>
|
|
148
|
+
</VSlideGroupItem>
|
|
149
|
+
</VSlideGroup>
|
|
150
|
+
</template>
|
|
151
|
+
|
|
152
|
+
<style>
|
|
153
|
+
.app-stepper.stepper-icon-step-bg .stepper-icon-step .step-wrapper {
|
|
154
|
+
flex-direction: row !important;
|
|
155
|
+
}
|
|
156
|
+
.app-stepper.stepper-icon-step-bg .stepper-icon-step .stepper-icon {
|
|
157
|
+
display: flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
border-radius: 0.3125rem;
|
|
161
|
+
background-color: rgba(var(--v-theme-on-surface), var(--v-selected-opacity));
|
|
162
|
+
block-size: 2.5rem;
|
|
163
|
+
color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));
|
|
164
|
+
inline-size: 2.5rem;
|
|
165
|
+
margin-inline-end: 0.3rem;
|
|
166
|
+
}
|
|
167
|
+
.app-stepper.stepper-icon-step-bg .stepper-icon-step .stepper-title,
|
|
168
|
+
.app-stepper.stepper-icon-step-bg .stepper-icon-step .stepper-subtitle {
|
|
169
|
+
line-height: normal;
|
|
170
|
+
}
|
|
171
|
+
.app-stepper.stepper-icon-step-bg .stepper-icon-step .stepper-title {
|
|
172
|
+
color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));
|
|
173
|
+
font-size: 0.9375rem;
|
|
174
|
+
font-weight: 500 !important;
|
|
175
|
+
}
|
|
176
|
+
.app-stepper.stepper-icon-step-bg .stepper-icon-step .stepper-subtitle {
|
|
177
|
+
color: rgba(var(--v-theme-on-surface), var(--v-disabled-opacity));
|
|
178
|
+
font-size: 0.875rem;
|
|
179
|
+
}
|
|
180
|
+
.app-stepper.stepper-icon-step-bg .stepper-steps-active .stepper-icon-step .stepper-icon {
|
|
181
|
+
background-color: rgb(var(--v-theme-primary));
|
|
182
|
+
color: rgba(var(--v-theme-on-primary));
|
|
183
|
+
}
|
|
184
|
+
.app-stepper.stepper-icon-step-bg .stepper-steps-completed .stepper-icon-step .stepper-icon {
|
|
185
|
+
background: rgba(var(--v-theme-primary), 0.08);
|
|
186
|
+
color: rgba(var(--v-theme-primary));
|
|
187
|
+
}
|
|
188
|
+
.app-stepper .v-slide-group__content {
|
|
189
|
+
justify-content: center;
|
|
190
|
+
row-gap: 1.5rem;
|
|
191
|
+
}
|
|
192
|
+
.app-stepper .v-slide-group__content .stepper-step-indicator {
|
|
193
|
+
border: 0.3125rem solid rgb(var(--v-theme-primary));
|
|
194
|
+
border-radius: 50%;
|
|
195
|
+
background-color: rgb(var(--v-theme-surface));
|
|
196
|
+
block-size: 1.25rem;
|
|
197
|
+
inline-size: 1.25rem;
|
|
198
|
+
opacity: var(--v-activated-opacity);
|
|
199
|
+
}
|
|
200
|
+
.app-stepper .v-slide-group__content .stepper-step-line {
|
|
201
|
+
border-radius: 0.1875rem;
|
|
202
|
+
background-color: rgb(var(--v-theme-primary));
|
|
203
|
+
block-size: 0.1875rem;
|
|
204
|
+
inline-size: 3.75rem;
|
|
205
|
+
opacity: var(--v-activated-opacity);
|
|
206
|
+
}
|
|
207
|
+
.app-stepper .v-slide-group__content .stepper-chevron-indicator {
|
|
208
|
+
color: rgba(var(--v-theme-on-surface), var(--v-disabled-opacity));
|
|
209
|
+
}
|
|
210
|
+
.app-stepper .v-slide-group__content .stepper-steps-completed .stepper-icon-step,
|
|
211
|
+
.app-stepper .v-slide-group__content .stepper-steps-completed .stepper-step-icon,
|
|
212
|
+
.app-stepper .v-slide-group__content .stepper-steps-active .stepper-icon-step,
|
|
213
|
+
.app-stepper .v-slide-group__content .stepper-steps-active .stepper-step-icon {
|
|
214
|
+
color: rgb(var(--v-theme-primary)) !important;
|
|
215
|
+
}
|
|
216
|
+
.app-stepper .v-slide-group__content .stepper-steps-completed .stepper-step-indicator,
|
|
217
|
+
.app-stepper .v-slide-group__content .stepper-steps-active .stepper-step-indicator {
|
|
218
|
+
opacity: 1;
|
|
219
|
+
}
|
|
220
|
+
.app-stepper .v-slide-group__content .stepper-steps-completed .stepper-step-line {
|
|
221
|
+
opacity: 1;
|
|
222
|
+
}
|
|
223
|
+
.app-stepper .v-slide-group__content .stepper-steps-completed .stepper-chevron-indicator {
|
|
224
|
+
color: rgb(var(--v-theme-primary));
|
|
225
|
+
}
|
|
226
|
+
.app-stepper .v-slide-group__content .stepper-steps-invalid.stepper-steps-active .stepper-icon-step,
|
|
227
|
+
.app-stepper .v-slide-group__content .stepper-steps-invalid.stepper-steps-active .step-number,
|
|
228
|
+
.app-stepper .v-slide-group__content .stepper-steps-invalid.stepper-steps-active .step-title,
|
|
229
|
+
.app-stepper .v-slide-group__content .stepper-steps-invalid.stepper-steps-active .step-subtitle {
|
|
230
|
+
color: rgb(var(--v-theme-error)) !important;
|
|
231
|
+
}
|
|
232
|
+
</style>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type Item = {
|
|
2
|
+
title: string;
|
|
3
|
+
icon?: string;
|
|
4
|
+
size?: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
};
|
|
7
|
+
type Direction = 'vertical' | 'horizontal';
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
items: Item[];
|
|
10
|
+
currentStep?: number;
|
|
11
|
+
direction?: Direction;
|
|
12
|
+
iconSize?: string | number;
|
|
13
|
+
isActiveStepValid?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
16
|
+
"update:currentStep": (value: number) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
"onUpdate:currentStep"?: ((value: number) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
labelSwitch?: string;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_15: string | number, __VLS_16: any;
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
[K in NonNullable<typeof __VLS_15>]?: (props: typeof __VLS_16) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: 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>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, useAttrs } from "vue";
|
|
3
|
+
import { VLabel, VSwitch } from "vuetify/components";
|
|
4
|
+
import { useI18n } from "vue-i18n";
|
|
5
|
+
defineProps({
|
|
6
|
+
labelSwitch: { type: String, required: false }
|
|
7
|
+
});
|
|
8
|
+
defineOptions({
|
|
9
|
+
name: "AppSwitch",
|
|
10
|
+
inheritAttrs: false
|
|
11
|
+
});
|
|
12
|
+
const { t } = useI18n();
|
|
13
|
+
const elementId = computed(() => {
|
|
14
|
+
const attrs = useAttrs();
|
|
15
|
+
const _elementIdToken = attrs.id || attrs.label;
|
|
16
|
+
return _elementIdToken ? `app-switch-${_elementIdToken}-${Math.random().toString(36).slice(2, 7)}` : void 0;
|
|
17
|
+
});
|
|
18
|
+
const label = computed(() => useAttrs().label);
|
|
19
|
+
const LangLabel = computed(() => label.value ? t(label.value) : "");
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<template>
|
|
23
|
+
<div
|
|
24
|
+
class="d-flex flex-column"
|
|
25
|
+
:class="$attrs.class"
|
|
26
|
+
>
|
|
27
|
+
<div>
|
|
28
|
+
<VLabel
|
|
29
|
+
v-if="label"
|
|
30
|
+
:for="elementId"
|
|
31
|
+
class="mb-2 text-body-2 text-high-emphasis"
|
|
32
|
+
:text="LangLabel"
|
|
33
|
+
/>
|
|
34
|
+
</div>
|
|
35
|
+
<div>
|
|
36
|
+
<VSwitch
|
|
37
|
+
v-bind="{
|
|
38
|
+
...$attrs,
|
|
39
|
+
class: null,
|
|
40
|
+
label: void 0,
|
|
41
|
+
variant: 'outlined',
|
|
42
|
+
id: elementId
|
|
43
|
+
}"
|
|
44
|
+
:label="labelSwitch"
|
|
45
|
+
class="item-center h-100"
|
|
46
|
+
>
|
|
47
|
+
<template
|
|
48
|
+
v-for="(_, name) in $slots"
|
|
49
|
+
#[name]="slotProps"
|
|
50
|
+
>
|
|
51
|
+
<slot
|
|
52
|
+
:name="name"
|
|
53
|
+
v-bind="slotProps || {}"
|
|
54
|
+
/>
|
|
55
|
+
</template>
|
|
56
|
+
</VSwitch>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</template>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
labelSwitch?: string;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_15: string | number, __VLS_16: any;
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
[K in NonNullable<typeof __VLS_15>]?: (props: typeof __VLS_16) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: 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>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_15: string | number, __VLS_16: any;
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
[K in NonNullable<typeof __VLS_15>]?: (props: typeof __VLS_16) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, useAttrs } from "vue";
|
|
3
|
+
import { VLabel, VTextField } from "vuetify/components";
|
|
4
|
+
import { useI18n } from "vue-i18n";
|
|
5
|
+
defineOptions({
|
|
6
|
+
name: "AppTextField",
|
|
7
|
+
inheritAttrs: false
|
|
8
|
+
});
|
|
9
|
+
const { t } = useI18n();
|
|
10
|
+
const attrs = useAttrs();
|
|
11
|
+
const uid = Math.random().toString(36).slice(2, 7);
|
|
12
|
+
const label = computed(() => attrs.label);
|
|
13
|
+
const langLabel = computed(() => label.value ? t(label.value) : "");
|
|
14
|
+
const elementId = computed(() => {
|
|
15
|
+
const token = attrs.id || label.value;
|
|
16
|
+
return token ? `AppTextField-${token}-${uid}` : void 0;
|
|
17
|
+
});
|
|
18
|
+
const placeholder = computed(() => {
|
|
19
|
+
return attrs.placeholder || (label.value ? t("inputs.placeholder", { name: langLabel.value }) : "");
|
|
20
|
+
});
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<div
|
|
25
|
+
class="AppTextField flex-grow-1"
|
|
26
|
+
:class="$attrs.class"
|
|
27
|
+
>
|
|
28
|
+
<VLabel
|
|
29
|
+
v-if="label"
|
|
30
|
+
:for="elementId"
|
|
31
|
+
class="mb-2 text-body-2 text-high-emphasis app-font-size-13"
|
|
32
|
+
:text="langLabel"
|
|
33
|
+
/>
|
|
34
|
+
<VTextField
|
|
35
|
+
v-bind="{
|
|
36
|
+
...$attrs,
|
|
37
|
+
class: null,
|
|
38
|
+
label: void 0,
|
|
39
|
+
variant: 'outlined',
|
|
40
|
+
id: elementId
|
|
41
|
+
}"
|
|
42
|
+
:placeholder="placeholder"
|
|
43
|
+
class="app-font-size-13"
|
|
44
|
+
>
|
|
45
|
+
<template
|
|
46
|
+
v-for="(_, name) in $slots"
|
|
47
|
+
#[name]="slotProps"
|
|
48
|
+
>
|
|
49
|
+
<slot
|
|
50
|
+
:name="name"
|
|
51
|
+
v-bind="slotProps || {}"
|
|
52
|
+
/>
|
|
53
|
+
</template>
|
|
54
|
+
<template #details>
|
|
55
|
+
<span class="app-h-10px" />
|
|
56
|
+
</template>
|
|
57
|
+
</VTextField>
|
|
58
|
+
</div>
|
|
59
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_15: string | number, __VLS_16: any;
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
[K in NonNullable<typeof __VLS_15>]?: (props: typeof __VLS_16) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_15: string | number, __VLS_16: any;
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
[K in NonNullable<typeof __VLS_15>]?: (props: typeof __VLS_16) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, useAttrs } from "vue";
|
|
3
|
+
import { VLabel, VTextarea } from "vuetify/components";
|
|
4
|
+
import { useI18n } from "vue-i18n";
|
|
5
|
+
defineOptions({
|
|
6
|
+
name: "AppTextarea",
|
|
7
|
+
inheritAttrs: false
|
|
8
|
+
});
|
|
9
|
+
const { t } = useI18n();
|
|
10
|
+
const attrs = useAttrs();
|
|
11
|
+
const uid = Math.random().toString(36).slice(2, 7);
|
|
12
|
+
const label = computed(() => attrs.label);
|
|
13
|
+
const langLabel = computed(() => label.value ? t(label.value) : "");
|
|
14
|
+
const elementId = computed(() => {
|
|
15
|
+
const token = attrs.id || label.value;
|
|
16
|
+
return token ? `app-textarea-${token}-${uid}` : void 0;
|
|
17
|
+
});
|
|
18
|
+
const placeholder = computed(() => {
|
|
19
|
+
return attrs.placeholder || (label.value ? t("inputs.placeholder", { name: langLabel.value }) : "");
|
|
20
|
+
});
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<div
|
|
25
|
+
class="app-textarea flex-grow-1"
|
|
26
|
+
:class="$attrs.class"
|
|
27
|
+
>
|
|
28
|
+
<VLabel
|
|
29
|
+
v-if="label"
|
|
30
|
+
:for="elementId"
|
|
31
|
+
class="mb-2 text-body-2 text-high-emphasis"
|
|
32
|
+
:text="langLabel"
|
|
33
|
+
/>
|
|
34
|
+
<VTextarea
|
|
35
|
+
v-bind="{
|
|
36
|
+
...$attrs,
|
|
37
|
+
class: null,
|
|
38
|
+
label: void 0,
|
|
39
|
+
variant: 'outlined',
|
|
40
|
+
id: elementId
|
|
41
|
+
}"
|
|
42
|
+
:placeholder="placeholder"
|
|
43
|
+
class="w-100"
|
|
44
|
+
>
|
|
45
|
+
<template
|
|
46
|
+
v-for="(_, name) in $slots"
|
|
47
|
+
#[name]="slotProps"
|
|
48
|
+
>
|
|
49
|
+
<slot
|
|
50
|
+
:name="name"
|
|
51
|
+
v-bind="slotProps || {}"
|
|
52
|
+
/>
|
|
53
|
+
</template>
|
|
54
|
+
</VTextarea>
|
|
55
|
+
</div>
|
|
56
|
+
</template>
|
|
57
|
+
|
|
58
|
+
<style scoped>
|
|
59
|
+
:deep(textarea) {
|
|
60
|
+
padding: 15px 20px !important;
|
|
61
|
+
}
|
|
62
|
+
</style>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_15: string | number, __VLS_16: any;
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
[K in NonNullable<typeof __VLS_15>]?: (props: typeof __VLS_16) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Attachment } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
validTypes?: string[];
|
|
4
|
+
rules?: ((value: unknown) => typeof value | string)[];
|
|
5
|
+
multiple?: boolean;
|
|
6
|
+
modelValue: Attachment | Attachment[] | null;
|
|
7
|
+
sizeInMB?: number;
|
|
8
|
+
showPreview?: boolean;
|
|
9
|
+
cropWidth?: number;
|
|
10
|
+
cropHeight?: number;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
13
|
+
"update:model-value": (value: Attachment | Attachment[]) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
"onUpdate:model-value"?: ((value: Attachment | Attachment[]) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|