@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,120 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { VProgressLinear, VIcon } from "vuetify/components";
|
|
3
|
+
import { ref, computed } from "vue";
|
|
4
|
+
import { useI18n } from "vue-i18n";
|
|
5
|
+
import { toaster } from "../../utils/toaster";
|
|
6
|
+
const { t } = useI18n();
|
|
7
|
+
const isDragging = ref(false);
|
|
8
|
+
const isHovered = ref(false);
|
|
9
|
+
const props = defineProps({
|
|
10
|
+
modelValue: { type: Array, required: true },
|
|
11
|
+
loading: { type: Boolean, required: false }
|
|
12
|
+
});
|
|
13
|
+
const emit = defineEmits(["update:model-value"]);
|
|
14
|
+
const files = computed({
|
|
15
|
+
get() {
|
|
16
|
+
return props.modelValue;
|
|
17
|
+
},
|
|
18
|
+
set(val) {
|
|
19
|
+
emit("update:model-value", val);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const dragover = (event) => {
|
|
23
|
+
event.preventDefault();
|
|
24
|
+
isDragging.value = true;
|
|
25
|
+
};
|
|
26
|
+
const dragleave = (event) => {
|
|
27
|
+
event.preventDefault();
|
|
28
|
+
isDragging.value = false;
|
|
29
|
+
};
|
|
30
|
+
const mouseEnter = (event) => {
|
|
31
|
+
event.preventDefault();
|
|
32
|
+
isHovered.value = true;
|
|
33
|
+
};
|
|
34
|
+
const mouseLeave = (event) => {
|
|
35
|
+
event.preventDefault();
|
|
36
|
+
isHovered.value = false;
|
|
37
|
+
};
|
|
38
|
+
const handleFileUpload = async (event) => {
|
|
39
|
+
event.preventDefault();
|
|
40
|
+
const allowedExtensions = /(\.xls|\.xlsx)$/i;
|
|
41
|
+
let inputFiles = document.getElementById("upload-input").files;
|
|
42
|
+
if (event.target.files && allowedExtensions.test(event.target.files[0]?.name) || event.dataTransfer.files && allowedExtensions.test(event.dataTransfer.files[0]?.name)) {
|
|
43
|
+
inputFiles = event.type === "change" ? event.target.files : event.dataTransfer.files;
|
|
44
|
+
files.value = [...inputFiles ? [inputFiles] : []];
|
|
45
|
+
isDragging.value = false;
|
|
46
|
+
} else {
|
|
47
|
+
toaster().error(t("files_must_be_xls_xlsx"));
|
|
48
|
+
isDragging.value = false;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<template>
|
|
54
|
+
<div
|
|
55
|
+
class="drop-area d-flex flex-column justify-center app-min-h-250px py-10 px-7 gap-4 position-relative overflow-hidden"
|
|
56
|
+
:class="isHovered || isDragging ? 'bg-yellow-light app-border-primary' : 'bg-surface app-border-silver'"
|
|
57
|
+
@dragover="dragover"
|
|
58
|
+
@dragleave="dragleave"
|
|
59
|
+
@mouseenter="mouseEnter"
|
|
60
|
+
@mouseleave="mouseLeave"
|
|
61
|
+
@drop="handleFileUpload"
|
|
62
|
+
>
|
|
63
|
+
<input
|
|
64
|
+
id="upload-input"
|
|
65
|
+
type="file"
|
|
66
|
+
class="d-none"
|
|
67
|
+
name="file"
|
|
68
|
+
accept=".xls,.xlsx"
|
|
69
|
+
@change="handleFileUpload"
|
|
70
|
+
>
|
|
71
|
+
<div class="app-w-48px app-h-48px rounded-lg bg-grayish-blue d-flex align-center justify-center me-2">
|
|
72
|
+
<VIcon icon="tabler-upload" size="28" color="dark-gray" />
|
|
73
|
+
</div>
|
|
74
|
+
<div v-if="!isDragging" class="d-flex flex-column align-center gap-4">
|
|
75
|
+
<p class="mb-0">
|
|
76
|
+
{{ t('drag_here_or') }}
|
|
77
|
+
</p>
|
|
78
|
+
<label
|
|
79
|
+
for="upload-input"
|
|
80
|
+
class="text-base font-weight-medium hover-underline text-blue"
|
|
81
|
+
>
|
|
82
|
+
{{ t("actions.choose_from_files") }}
|
|
83
|
+
</label>
|
|
84
|
+
<span class="text-sm text-gray-500">{{ t("upload_restriction") }}</span>
|
|
85
|
+
<div v-if="files && files[0]" class="d-flex align-center app-font-size-15 font-weight-medium mt-2 text-success">
|
|
86
|
+
{{ t("inputs.file_name") }}: {{ files[0]?.item(0)?.name }}
|
|
87
|
+
</div>
|
|
88
|
+
<VProgressLinear
|
|
89
|
+
v-if="loading"
|
|
90
|
+
indeterminate
|
|
91
|
+
color="primary"
|
|
92
|
+
:size="20"
|
|
93
|
+
:width="2"
|
|
94
|
+
/>
|
|
95
|
+
</div>
|
|
96
|
+
<div v-else>
|
|
97
|
+
<span> {{ t("release_to_upload") }} </span>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</template>
|
|
101
|
+
|
|
102
|
+
<style scoped>
|
|
103
|
+
.file-upload {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
align-items: center;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.drop-area {
|
|
110
|
+
width: 100%;
|
|
111
|
+
min-height: 100px;
|
|
112
|
+
border-radius: 10px;
|
|
113
|
+
border-width: 2px;
|
|
114
|
+
border-style: dashed;
|
|
115
|
+
display: flex;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
align-items: center;
|
|
118
|
+
margin-top: 10px;
|
|
119
|
+
}
|
|
120
|
+
</style>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue: FileList[];
|
|
3
|
+
loading?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:model-value": (value: FileList[]) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onUpdate:model-value"?: ((value: FileList[]) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import 'cropperjs/dist/cropper.css';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
src?: string | null | Partial<MediaStream>;
|
|
4
|
+
canEdit?: boolean;
|
|
5
|
+
canDelete?: boolean;
|
|
6
|
+
imagePlaceholder?: string;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_ModelProps = {
|
|
10
|
+
modelValue?: File | null;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
|
+
declare var __VLS_75: {
|
|
14
|
+
avatarRef: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
default?: (props: typeof __VLS_75) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
update: (...args: any[]) => void;
|
|
21
|
+
delete: (...args: any[]) => void;
|
|
22
|
+
"update:modelValue": (value: File | null | undefined) => void;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((value: File | null | undefined) => any) | undefined;
|
|
25
|
+
onUpdate?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import Cropper from "cropperjs";
|
|
3
|
+
import "cropperjs/dist/cropper.css";
|
|
4
|
+
import { computed, ref, watch, nextTick } from "vue";
|
|
5
|
+
import { useI18n } from "vue-i18n";
|
|
6
|
+
import { VSlider, VList, VListItem, VBadge, VMenu, VAvatar, VImg, VIcon } from "vuetify/components";
|
|
7
|
+
import avatar from "../../images/avatar.png";
|
|
8
|
+
import { ruleValidator } from "../../utils/ruleValidator";
|
|
9
|
+
import Modal from "../Modal.vue";
|
|
10
|
+
import BaseButton from "./BaseButton.vue";
|
|
11
|
+
const { fileValidator } = ruleValidator();
|
|
12
|
+
const emit = defineEmits(["delete", "update"]);
|
|
13
|
+
const props = defineProps({
|
|
14
|
+
src: { type: [String, null, Object], required: false },
|
|
15
|
+
canEdit: { type: Boolean, required: false, default: true },
|
|
16
|
+
canDelete: { type: Boolean, required: false, default: true },
|
|
17
|
+
imagePlaceholder: { type: String, required: false },
|
|
18
|
+
isLoading: { type: Boolean, required: true }
|
|
19
|
+
});
|
|
20
|
+
const { t } = useI18n();
|
|
21
|
+
const model = defineModel({ type: null });
|
|
22
|
+
const avatarRef = ref();
|
|
23
|
+
const imageSrc = ref(props.src || avatar);
|
|
24
|
+
const fileInputRef = ref(null);
|
|
25
|
+
const zoomLevel = ref(1);
|
|
26
|
+
const initialZoom = ref(1);
|
|
27
|
+
const cropperDialog = ref(false);
|
|
28
|
+
const cropImageSrc = ref(null);
|
|
29
|
+
const selectedFile = ref(null);
|
|
30
|
+
const cropperInstance = ref(null);
|
|
31
|
+
const cropperImage = ref(null);
|
|
32
|
+
watch(() => props.src, (newSrc) => {
|
|
33
|
+
imageSrc.value = newSrc || props.imagePlaceholder || avatar;
|
|
34
|
+
}, { immediate: true });
|
|
35
|
+
const generateImageUrl = (file) => {
|
|
36
|
+
const imageElement = document.getElementById("image-preview");
|
|
37
|
+
const imageUrl = URL.createObjectURL(file);
|
|
38
|
+
imageSrc.value = imageUrl;
|
|
39
|
+
if (imageElement) {
|
|
40
|
+
imageElement.onload = () => URL.revokeObjectURL(imageUrl);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const onImageChange = (event) => {
|
|
44
|
+
const inputElement = event.target;
|
|
45
|
+
const file = inputElement.files?.[0];
|
|
46
|
+
const isValidFile = fileValidator(file, 3, ["image/png", "image/jpeg", "image/jpg"]);
|
|
47
|
+
if (isValidFile && file) {
|
|
48
|
+
selectedFile.value = file;
|
|
49
|
+
cropImageSrc.value = URL.createObjectURL(file);
|
|
50
|
+
cropperDialog.value = true;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const initCropper = () => {
|
|
54
|
+
if (cropperInstance.value) {
|
|
55
|
+
cropperInstance.value.destroy();
|
|
56
|
+
}
|
|
57
|
+
if (cropperImage.value) {
|
|
58
|
+
cropperInstance.value = new Cropper(cropperImage.value, {
|
|
59
|
+
aspectRatio: 1,
|
|
60
|
+
viewMode: 1,
|
|
61
|
+
responsive: true,
|
|
62
|
+
zoomable: true,
|
|
63
|
+
scalable: false,
|
|
64
|
+
movable: true,
|
|
65
|
+
wheelZoomRatio: 0,
|
|
66
|
+
zoomOnWheel: false,
|
|
67
|
+
ready() {
|
|
68
|
+
const data = cropperInstance.value?.getImageData();
|
|
69
|
+
initialZoom.value = data ? Math.min(data.width / data.naturalWidth, data.height / data.naturalHeight) : 1;
|
|
70
|
+
zoomLevel.value = initialZoom.value;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const cropImage = () => {
|
|
76
|
+
if (!cropperInstance.value) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const canvas = cropperInstance.value.getCroppedCanvas({
|
|
80
|
+
width: 200,
|
|
81
|
+
height: 200
|
|
82
|
+
});
|
|
83
|
+
canvas.toBlob((blob) => {
|
|
84
|
+
if (blob && selectedFile.value) {
|
|
85
|
+
const croppedFile = new File([blob], selectedFile.value.name, { type: selectedFile.value.type });
|
|
86
|
+
generateImageUrl(croppedFile);
|
|
87
|
+
model.value = croppedFile;
|
|
88
|
+
emit("update");
|
|
89
|
+
cropperDialog.value = false;
|
|
90
|
+
}
|
|
91
|
+
}, selectedFile.value?.type);
|
|
92
|
+
};
|
|
93
|
+
const deleteUserImage = () => {
|
|
94
|
+
imageSrc.value = avatar;
|
|
95
|
+
model.value = null;
|
|
96
|
+
emit("delete");
|
|
97
|
+
emit("update");
|
|
98
|
+
};
|
|
99
|
+
watch(zoomLevel, async (newZoom) => {
|
|
100
|
+
await nextTick(() => {
|
|
101
|
+
if (cropperInstance.value) {
|
|
102
|
+
cropperInstance.value.zoomTo(newZoom);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
const loading = computed(() => props.isLoading);
|
|
107
|
+
const hasImage = computed(() => {
|
|
108
|
+
return !/^https?:\/\/[^\/]+\/assets\/images\/.*/.test(props.src);
|
|
109
|
+
});
|
|
110
|
+
</script>
|
|
111
|
+
|
|
112
|
+
<template>
|
|
113
|
+
<VBadge location="end top" class="badge-camera mb-4">
|
|
114
|
+
<template #badge>
|
|
115
|
+
<VMenu v-if="src && canEdit" location="end">
|
|
116
|
+
<template #activator="{ props: propsBadge }">
|
|
117
|
+
<BaseButton
|
|
118
|
+
elevation="0"
|
|
119
|
+
size="32"
|
|
120
|
+
:loading="loading"
|
|
121
|
+
v-bind="propsBadge"
|
|
122
|
+
>
|
|
123
|
+
<VIcon icon="tabler-camera-plus" size="20" />
|
|
124
|
+
</BaseButton>
|
|
125
|
+
</template>
|
|
126
|
+
<VList>
|
|
127
|
+
<VListItem @click="fileInputRef?.click()">
|
|
128
|
+
{{ t('actions.change_img') }}
|
|
129
|
+
</VListItem>
|
|
130
|
+
|
|
131
|
+
<VListItem v-if="hasImage && canDelete" class="text-red" @click="deleteUserImage">
|
|
132
|
+
{{ t("actions.delete_img") }}
|
|
133
|
+
</VListItem>
|
|
134
|
+
</VList>
|
|
135
|
+
</VMenu>
|
|
136
|
+
|
|
137
|
+
<BaseButton
|
|
138
|
+
v-else-if="canEdit"
|
|
139
|
+
elevation="0"
|
|
140
|
+
size="32"
|
|
141
|
+
:loading="loading"
|
|
142
|
+
@click="fileInputRef?.click()"
|
|
143
|
+
>
|
|
144
|
+
<VIcon icon="tabler-camera-plus" size="20" />
|
|
145
|
+
</BaseButton>
|
|
146
|
+
</template>
|
|
147
|
+
|
|
148
|
+
<VAvatar
|
|
149
|
+
ref="avatarRef"
|
|
150
|
+
style="overflow: visible;"
|
|
151
|
+
rounded="circle"
|
|
152
|
+
size="120"
|
|
153
|
+
>
|
|
154
|
+
<VImg
|
|
155
|
+
id="image-preview"
|
|
156
|
+
cover
|
|
157
|
+
:src="imageSrc || imagePlaceholder || avatar"
|
|
158
|
+
class="rounded-circle bg-grey-lighten-1"
|
|
159
|
+
/>
|
|
160
|
+
<slot v-bind="{
|
|
161
|
+
avatarRef
|
|
162
|
+
}" />
|
|
163
|
+
</VAvatar>
|
|
164
|
+
|
|
165
|
+
<input
|
|
166
|
+
ref="fileInputRef"
|
|
167
|
+
class="d-none"
|
|
168
|
+
type="file"
|
|
169
|
+
accept=".jpeg, .jpg, .png"
|
|
170
|
+
@change="onImageChange"
|
|
171
|
+
>
|
|
172
|
+
</VBadge>
|
|
173
|
+
|
|
174
|
+
<!-- Cropper Dialog -->
|
|
175
|
+
<Modal
|
|
176
|
+
v-model="cropperDialog"
|
|
177
|
+
persistent
|
|
178
|
+
width="500"
|
|
179
|
+
:has-icon="false"
|
|
180
|
+
@save="cropImage"
|
|
181
|
+
@cancel="cropperDialog = false"
|
|
182
|
+
>
|
|
183
|
+
<img
|
|
184
|
+
v-if="cropImageSrc"
|
|
185
|
+
ref="cropperImage"
|
|
186
|
+
:src="cropImageSrc"
|
|
187
|
+
style="max-width: 100%;"
|
|
188
|
+
@load="initCropper"
|
|
189
|
+
>
|
|
190
|
+
|
|
191
|
+
<template #additional-actions>
|
|
192
|
+
<VSlider
|
|
193
|
+
v-model="zoomLevel"
|
|
194
|
+
class="pa-3 mt-2 flex-grow-1"
|
|
195
|
+
:min="initialZoom"
|
|
196
|
+
:max="initialZoom * 3"
|
|
197
|
+
step="0.1"
|
|
198
|
+
density="comfortable"
|
|
199
|
+
track-size="6"
|
|
200
|
+
thumb-size="18"
|
|
201
|
+
prepend-icon="tabler-minus"
|
|
202
|
+
append-icon="tabler-plus"
|
|
203
|
+
/>
|
|
204
|
+
</template>
|
|
205
|
+
</Modal>
|
|
206
|
+
</template>
|
|
207
|
+
|
|
208
|
+
<style>
|
|
209
|
+
.badge-camera .v-badge__badge {
|
|
210
|
+
z-index: 10000;
|
|
211
|
+
inset-inline-start: calc(100% - 24px) !important;
|
|
212
|
+
background: transparent !important;
|
|
213
|
+
inset-block-end: calc(100% - 24px) !important;
|
|
214
|
+
inset-inline-end: auto !important;
|
|
215
|
+
bottom: auto !important;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
:deep(.cropper-container) {
|
|
219
|
+
width: auto !important;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
:global(.cropper-line),
|
|
223
|
+
:global(.cropper-point) {
|
|
224
|
+
background-color: rgb(var(--v-theme-primary));
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
:global(.cropper-view-box) {
|
|
228
|
+
outline-color: rgba(var(--v-theme-primary), 0.75);
|
|
229
|
+
}
|
|
230
|
+
</style>
|
|
231
|
+
|
|
232
|
+
<style scoped>
|
|
233
|
+
:deep(.v-img__img){border-radius:999999px}
|
|
234
|
+
</style>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import 'cropperjs/dist/cropper.css';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
src?: string | null | Partial<MediaStream>;
|
|
4
|
+
canEdit?: boolean;
|
|
5
|
+
canDelete?: boolean;
|
|
6
|
+
imagePlaceholder?: string;
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_ModelProps = {
|
|
10
|
+
modelValue?: File | null;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
13
|
+
declare var __VLS_75: {
|
|
14
|
+
avatarRef: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
default?: (props: typeof __VLS_75) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
update: (...args: any[]) => void;
|
|
21
|
+
delete: (...args: any[]) => void;
|
|
22
|
+
"update:modelValue": (value: File | null | undefined) => void;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
+
"onUpdate:modelValue"?: ((value: File | null | undefined) => any) | undefined;
|
|
25
|
+
onUpdate?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
errorMessages?: string | string[];
|
|
3
|
+
};
|
|
4
|
+
type __VLS_ModelProps = {
|
|
5
|
+
modelValue?: unknown;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
+
declare var __VLS_1: {
|
|
9
|
+
internalErrorMessages: string | string[] | undefined;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_1) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: unknown) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { watch, ref } from "vue";
|
|
3
|
+
const value = defineModel({ type: null });
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
errorMessages: { type: [String, Array], required: false }
|
|
6
|
+
});
|
|
7
|
+
const internalErrorMessages = ref();
|
|
8
|
+
watch(() => props.errorMessages, (val) => {
|
|
9
|
+
internalErrorMessages.value = val;
|
|
10
|
+
}, {
|
|
11
|
+
deep: true,
|
|
12
|
+
immediate: true
|
|
13
|
+
});
|
|
14
|
+
watch(() => value, () => {
|
|
15
|
+
internalErrorMessages.value = "";
|
|
16
|
+
}, {
|
|
17
|
+
deep: true,
|
|
18
|
+
immediate: true
|
|
19
|
+
});
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<template>
|
|
23
|
+
<slot v-bind="{ internalErrorMessages }" />
|
|
24
|
+
</template>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
errorMessages?: string | string[];
|
|
3
|
+
};
|
|
4
|
+
type __VLS_ModelProps = {
|
|
5
|
+
modelValue?: unknown;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
+
declare var __VLS_1: {
|
|
9
|
+
internalErrorMessages: string | string[] | undefined;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_1) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: unknown) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ValidateOn } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
hideDetails?: boolean;
|
|
4
|
+
label?: string;
|
|
5
|
+
customId?: string;
|
|
6
|
+
errorMessages?: string[] | string;
|
|
7
|
+
validateOn?: ValidateOn;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
rules?: ((value: unknown) => string)[];
|
|
10
|
+
};
|
|
11
|
+
type __VLS_ModelProps = {
|
|
12
|
+
modelValue?: string[] | null;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
15
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (value: string[] | null) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: ((value: string[] | null) => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|