@winchsa/ui 0.1.31 → 0.1.33
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/package.json +1 -1
- package/dist/components/Breadcrumbs.d.vue.ts +0 -7
- package/dist/components/Breadcrumbs.vue +0 -46
- package/dist/components/Breadcrumbs.vue.d.ts +0 -7
- package/dist/components/CustomizerSection.d.vue.ts +0 -17
- package/dist/components/CustomizerSection.vue +0 -19
- package/dist/components/CustomizerSection.vue.d.ts +0 -17
- package/dist/components/DialogCloseBtn.d.vue.ts +0 -7
- package/dist/components/DialogCloseBtn.vue +0 -20
- package/dist/components/DialogCloseBtn.vue.d.ts +0 -7
- package/dist/components/Drawer.d.vue.ts +0 -28
- package/dist/components/Drawer.vue +0 -60
- package/dist/components/Drawer.vue.d.ts +0 -28
- package/dist/components/IconBtn.d.vue.ts +0 -18
- package/dist/components/IconBtn.vue +0 -24
- package/dist/components/IconBtn.vue.d.ts +0 -18
- package/dist/components/LoadingBar.d.vue.ts +0 -6
- package/dist/components/LoadingBar.vue +0 -31
- package/dist/components/LoadingBar.vue.d.ts +0 -6
- package/dist/components/LoadingDialog.d.vue.ts +0 -12
- package/dist/components/LoadingDialog.vue +0 -41
- package/dist/components/LoadingDialog.vue.d.ts +0 -12
- package/dist/components/LoadingItem.d.vue.ts +0 -25
- package/dist/components/LoadingItem.vue +0 -66
- package/dist/components/LoadingItem.vue.d.ts +0 -25
- package/dist/components/Modal.d.vue.ts +0 -50
- package/dist/components/Modal.vue +0 -155
- package/dist/components/Modal.vue.d.ts +0 -50
- package/dist/components/MoreBtn.d.vue.ts +0 -17
- package/dist/components/MoreBtn.vue +0 -28
- package/dist/components/MoreBtn.vue.d.ts +0 -17
- package/dist/components/ScrollToTop.d.vue.ts +0 -3
- package/dist/components/ScrollToTop.vue +0 -39
- package/dist/components/ScrollToTop.vue.d.ts +0 -3
- package/dist/components/SiteTitle.d.vue.ts +0 -3
- package/dist/components/SiteTitle.vue +0 -14
- package/dist/components/SiteTitle.vue.d.ts +0 -3
- package/dist/components/Toaster.d.vue.ts +0 -6
- package/dist/components/Toaster.vue +0 -19
- package/dist/components/Toaster.vue.d.ts +0 -6
- package/dist/components/cards/AppCard.d.vue.ts +0 -18
- package/dist/components/cards/AppCard.vue +0 -45
- package/dist/components/cards/AppCard.vue.d.ts +0 -18
- package/dist/components/cards/AppCardActions.d.vue.ts +0 -33
- package/dist/components/cards/AppCardActions.vue +0 -126
- package/dist/components/cards/AppCardActions.vue.d.ts +0 -33
- package/dist/components/cards/CardStatisticsHorizontal.d.vue.ts +0 -9
- package/dist/components/cards/CardStatisticsHorizontal.vue +0 -29
- package/dist/components/cards/CardStatisticsHorizontal.vue.d.ts +0 -9
- package/dist/components/cards/CheckboxesCard.d.vue.ts +0 -18
- package/dist/components/cards/CheckboxesCard.vue +0 -108
- package/dist/components/cards/CheckboxesCard.vue.d.ts +0 -18
- package/dist/components/cards/HeaderCard.d.vue.ts +0 -9
- package/dist/components/cards/HeaderCard.vue +0 -31
- package/dist/components/cards/HeaderCard.vue.d.ts +0 -9
- package/dist/components/cards/ImageCard.d.vue.ts +0 -33
- package/dist/components/cards/ImageCard.vue +0 -73
- package/dist/components/cards/ImageCard.vue.d.ts +0 -33
- package/dist/components/cards/InputCard.d.vue.ts +0 -21
- package/dist/components/cards/InputCard.vue +0 -60
- package/dist/components/cards/InputCard.vue.d.ts +0 -21
- package/dist/components/cards/StaticCard.d.vue.ts +0 -21
- package/dist/components/cards/StaticCard.vue +0 -37
- package/dist/components/cards/StaticCard.vue.d.ts +0 -21
- package/dist/components/forms/Accordion.d.vue.ts +0 -19
- package/dist/components/forms/Accordion.vue +0 -43
- package/dist/components/forms/Accordion.vue.d.ts +0 -19
- package/dist/components/forms/AppBarSearch.d.vue.ts +0 -43
- package/dist/components/forms/AppBarSearch.vue +0 -345
- package/dist/components/forms/AppBarSearch.vue.d.ts +0 -43
- package/dist/components/forms/AppCombobox.d.vue.ts +0 -13
- package/dist/components/forms/AppCombobox.vue +0 -67
- package/dist/components/forms/AppCombobox.vue.d.ts +0 -13
- package/dist/components/forms/AppDrawerHeaderSection.d.vue.ts +0 -20
- package/dist/components/forms/AppDrawerHeaderSection.vue +0 -21
- package/dist/components/forms/AppDrawerHeaderSection.vue.d.ts +0 -20
- package/dist/components/forms/AppLabel.d.vue.ts +0 -24
- package/dist/components/forms/AppLabel.vue +0 -47
- package/dist/components/forms/AppLabel.vue.d.ts +0 -24
- package/dist/components/forms/AppLink.d.vue.ts +0 -19
- package/dist/components/forms/AppLink.vue +0 -50
- package/dist/components/forms/AppLink.vue.d.ts +0 -19
- package/dist/components/forms/AppNumberField.d.vue.ts +0 -20
- package/dist/components/forms/AppNumberField.vue +0 -85
- package/dist/components/forms/AppNumberField.vue.d.ts +0 -20
- package/dist/components/forms/AppOtpInput.d.vue.ts +0 -13
- package/dist/components/forms/AppOtpInput.vue +0 -84
- package/dist/components/forms/AppOtpInput.vue.d.ts +0 -13
- package/dist/components/forms/AppSearchHeader.d.vue.ts +0 -8
- package/dist/components/forms/AppSearchHeader.vue +0 -72
- package/dist/components/forms/AppSearchHeader.vue.d.ts +0 -8
- package/dist/components/forms/AppSelect.d.vue.ts +0 -17
- package/dist/components/forms/AppSelect.vue +0 -98
- package/dist/components/forms/AppSelect.vue.d.ts +0 -17
- package/dist/components/forms/AppStepper.d.vue.ts +0 -21
- package/dist/components/forms/AppStepper.vue +0 -232
- package/dist/components/forms/AppStepper.vue.d.ts +0 -21
- package/dist/components/forms/AppSwitch.d.vue.ts +0 -16
- package/dist/components/forms/AppSwitch.vue +0 -59
- package/dist/components/forms/AppSwitch.vue.d.ts +0 -16
- package/dist/components/forms/AppTextField.d.vue.ts +0 -13
- package/dist/components/forms/AppTextField.vue +0 -66
- package/dist/components/forms/AppTextField.vue.d.ts +0 -13
- package/dist/components/forms/AppTextarea.d.vue.ts +0 -13
- package/dist/components/forms/AppTextarea.vue +0 -69
- package/dist/components/forms/AppTextarea.vue.d.ts +0 -13
- package/dist/components/forms/AttachmentCropperInput.d.vue.ts +0 -18
- package/dist/components/forms/AttachmentCropperInput.vue +0 -227
- package/dist/components/forms/AttachmentCropperInput.vue.d.ts +0 -18
- package/dist/components/forms/AttachmentInput.d.vue.ts +0 -16
- package/dist/components/forms/AttachmentInput.vue +0 -116
- package/dist/components/forms/AttachmentInput.vue.d.ts +0 -16
- package/dist/components/forms/AutocompleteInput.d.vue.ts +0 -84
- package/dist/components/forms/AutocompleteInput.vue +0 -760
- package/dist/components/forms/AutocompleteInput.vue.d.ts +0 -84
- package/dist/components/forms/BankSelect.d.vue.ts +0 -21
- package/dist/components/forms/BankSelect.vue +0 -43
- package/dist/components/forms/BankSelect.vue.d.ts +0 -21
- package/dist/components/forms/BaseButton.d.vue.ts +0 -20
- package/dist/components/forms/BaseButton.vue +0 -42
- package/dist/components/forms/BaseButton.vue.d.ts +0 -20
- package/dist/components/forms/CounterInput.d.vue.ts +0 -13
- package/dist/components/forms/CounterInput.vue +0 -71
- package/dist/components/forms/CounterInput.vue.d.ts +0 -13
- package/dist/components/forms/CustomCheckboxes.d.vue.ts +0 -25
- package/dist/components/forms/CustomCheckboxes.vue +0 -69
- package/dist/components/forms/CustomCheckboxes.vue.d.ts +0 -25
- package/dist/components/forms/CustomCheckboxesWithIcon.d.vue.ts +0 -25
- package/dist/components/forms/CustomCheckboxesWithIcon.vue +0 -80
- package/dist/components/forms/CustomCheckboxesWithIcon.vue.d.ts +0 -25
- package/dist/components/forms/CustomCheckboxesWithImage.d.vue.ts +0 -16
- package/dist/components/forms/CustomCheckboxesWithImage.vue +0 -67
- package/dist/components/forms/CustomCheckboxesWithImage.vue.d.ts +0 -16
- package/dist/components/forms/CustomRadios.d.vue.ts +0 -25
- package/dist/components/forms/CustomRadios.vue +0 -69
- package/dist/components/forms/CustomRadios.vue.d.ts +0 -25
- package/dist/components/forms/CustomRadiosWithIcon.d.vue.ts +0 -28
- package/dist/components/forms/CustomRadiosWithIcon.vue +0 -98
- package/dist/components/forms/CustomRadiosWithIcon.vue.d.ts +0 -28
- package/dist/components/forms/CustomRadiosWithImage.d.vue.ts +0 -35
- package/dist/components/forms/CustomRadiosWithImage.vue +0 -69
- package/dist/components/forms/CustomRadiosWithImage.vue.d.ts +0 -35
- package/dist/components/forms/DatePicker.d.vue.ts +0 -29
- package/dist/components/forms/DatePicker.vue +0 -400
- package/dist/components/forms/DatePicker.vue.d.ts +0 -29
- package/dist/components/forms/DatePickerRange.d.vue.ts +0 -24
- package/dist/components/forms/DatePickerRange.vue +0 -127
- package/dist/components/forms/DatePickerRange.vue.d.ts +0 -24
- package/dist/components/forms/DraggedUploadFile.d.vue.ts +0 -11
- package/dist/components/forms/DraggedUploadFile.vue +0 -120
- package/dist/components/forms/DraggedUploadFile.vue.d.ts +0 -11
- package/dist/components/forms/ImageCardInput.d.vue.ts +0 -35
- package/dist/components/forms/ImageCardInput.vue +0 -234
- package/dist/components/forms/ImageCardInput.vue.d.ts +0 -35
- package/dist/components/forms/InputValidationWrapper.d.vue.ts +0 -26
- package/dist/components/forms/InputValidationWrapper.vue +0 -24
- package/dist/components/forms/InputValidationWrapper.vue.d.ts +0 -26
- package/dist/components/forms/LicensePlateInput.d.vue.ts +0 -21
- package/dist/components/forms/LicensePlateInput.vue +0 -175
- package/dist/components/forms/LicensePlateInput.vue.d.ts +0 -21
- package/dist/components/forms/ManualDate.d.vue.ts +0 -20
- package/dist/components/forms/ManualDate.vue +0 -264
- package/dist/components/forms/ManualDate.vue.d.ts +0 -20
- package/dist/components/forms/MobileInput.d.vue.ts +0 -25
- package/dist/components/forms/MobileInput.vue +0 -118
- package/dist/components/forms/MobileInput.vue.d.ts +0 -25
- package/dist/components/forms/PasswordInput.d.vue.ts +0 -11
- package/dist/components/forms/PasswordInput.vue +0 -29
- package/dist/components/forms/PasswordInput.vue.d.ts +0 -11
- package/dist/components/forms/RangeInput.d.vue.ts +0 -10
- package/dist/components/forms/RangeInput.vue +0 -48
- package/dist/components/forms/RangeInput.vue.d.ts +0 -10
- package/dist/components/forms/Tabs.d.vue.ts +0 -23
- package/dist/components/forms/Tabs.vue +0 -35
- package/dist/components/forms/Tabs.vue.d.ts +0 -23
- package/dist/components/forms/TimePicker.d.vue.ts +0 -18
- package/dist/components/forms/TimePicker.vue +0 -370
- package/dist/components/forms/TimePicker.vue.d.ts +0 -18
- package/dist/components/table/DataTable.d.vue.ts +0 -70
- package/dist/components/table/DataTable.vue +0 -361
- package/dist/components/table/DataTable.vue.d.ts +0 -70
- package/dist/components/table/EditableDataTable.d.vue.ts +0 -21
- package/dist/components/table/EditableDataTable.vue +0 -330
- package/dist/components/table/EditableDataTable.vue.d.ts +0 -21
- package/dist/components/table/EditableDataTableRow.d.vue.ts +0 -20
- package/dist/components/table/EditableDataTableRow.vue +0 -253
- package/dist/components/table/EditableDataTableRow.vue.d.ts +0 -20
- package/dist/components/table/FilterGenerator.d.vue.ts +0 -13
- package/dist/components/table/FilterGenerator.vue +0 -231
- package/dist/components/table/FilterGenerator.vue.d.ts +0 -13
- package/dist/components/table/StaticTable.d.vue.ts +0 -34
- package/dist/components/table/StaticTable.vue +0 -152
- package/dist/components/table/StaticTable.vue.d.ts +0 -34
- package/dist/components/table/TablePagination.d.vue.ts +0 -15
- package/dist/components/table/TablePagination.vue +0 -73
- package/dist/components/table/TablePagination.vue.d.ts +0 -15
- package/dist/composables/useIsMobile.d.ts +0 -1
- package/dist/composables/useIsMobile.js +0 -10
- package/dist/composables/useIsMobile.mjs +0 -4
- package/dist/composables/useTableFilters.d.ts +0 -23
- package/dist/composables/useTableFilters.js +0 -197
- package/dist/composables/useTableFilters.mjs +0 -184
- package/dist/images/avatar.png +0 -0
- package/dist/images/sa.svg +0 -1
- package/dist/index.d.ts +0 -65
- package/dist/index.js +0 -454
- package/dist/index.mjs +0 -130
- package/dist/lang/ar.json +0 -54
- package/dist/lang/en.json +0 -54
- package/dist/styles/assets/scss/variables/_template.scss +0 -1
- package/dist/styles/assets/scss/variables/_vuetify.scss +0 -1
- package/dist/styles/core/base/_components.scss +0 -164
- package/dist/styles/core/base/_dark.scss +0 -16
- package/dist/styles/core/base/_default-layout-w-vertical-nav.scss +0 -106
- package/dist/styles/core/base/_default-layout.scss +0 -16
- package/dist/styles/core/base/_index.scss +0 -47
- package/dist/styles/core/base/_layouts.scss +0 -63
- package/dist/styles/core/base/_misc.scss +0 -20
- package/dist/styles/core/base/_mixins.scss +0 -84
- package/dist/styles/core/base/_route-transitions.scss +0 -70
- package/dist/styles/core/base/_utilities.scss +0 -418
- package/dist/styles/core/base/_utils.scss +0 -100
- package/dist/styles/core/base/_variables.scss +0 -190
- package/dist/styles/core/base/_vertical-nav.scss +0 -264
- package/dist/styles/core/base/libs/_perfect-scrollbar.scss +0 -35
- package/dist/styles/core/base/libs/vuetify/_index.scss +0 -1
- package/dist/styles/core/base/libs/vuetify/_overrides.scss +0 -380
- package/dist/styles/core/base/libs/vuetify/_variables.scss +0 -48
- package/dist/styles/core/base/placeholders/_default-layout-vertical-nav.scss +0 -48
- package/dist/styles/core/base/placeholders/_default-layout.scss +0 -3
- package/dist/styles/core/base/placeholders/_index.scss +0 -5
- package/dist/styles/core/base/placeholders/_misc.scss +0 -7
- package/dist/styles/core/base/placeholders/_nav.scss +0 -26
- package/dist/styles/core/base/placeholders/_vertical-nav.scss +0 -84
- package/dist/styles/core/base/skins/_bordered.scss +0 -60
- package/dist/styles/core/base/skins/_index.scss +0 -1
- package/dist/styles/core/template/_components.scss +0 -1035
- package/dist/styles/core/template/_default-layout-w-vertical-nav.scss +0 -20
- package/dist/styles/core/template/_utilities.scss +0 -20
- package/dist/styles/core/template/_variables.scss +0 -67
- package/dist/styles/core/template/_vertical-nav.scss +0 -41
- package/dist/styles/core/template/index.css +0 -18779
- package/dist/styles/core/template/index.scss +0 -15
- package/dist/styles/core/template/libs/vuetify/_variables.scss +0 -464
- package/dist/styles/core/template/libs/vuetify/index.css +0 -739
- package/dist/styles/core/template/libs/vuetify/index.scss +0 -1
- package/dist/styles/core/template/pages/misc.css +0 -16
- package/dist/styles/core/template/pages/misc.scss +0 -20
- package/dist/styles/core/template/placeholders/_default-layout-vertical-nav.scss +0 -9
- package/dist/styles/core/template/placeholders/_index.scss +0 -3
- package/dist/styles/core/template/placeholders/_nav.scss +0 -15
- package/dist/styles/core/template/placeholders/_vertical-nav.scss +0 -18
- package/dist/styles/core/template/skins/_bordered.scss +0 -36
- package/dist/styles/core/template/skins/_index.scss +0 -1
- package/dist/styles/layouts/_classes.scss +0 -3
- package/dist/styles/layouts/_dashboard-layout.scss +0 -43
- package/dist/styles/layouts/_global.scss +0 -10
- package/dist/styles/layouts/_mixins.scss +0 -28
- package/dist/styles/layouts/_placeholders.scss +0 -53
- package/dist/styles/layouts/_rtl.scss +0 -7
- package/dist/styles/layouts/_variables.scss +0 -22
- package/dist/styles/layouts/index.css +0 -14
- package/dist/styles/layouts/index.scss +0 -2
- package/dist/types.d.ts +0 -218
- package/dist/utils/apiUrl.d.ts +0 -1
- package/dist/utils/apiUrl.js +0 -15
- package/dist/utils/apiUrl.mjs +0 -8
- package/dist/utils/client.d.ts +0 -9
- package/dist/utils/client.js +0 -53
- package/dist/utils/client.mjs +0 -39
- package/dist/utils/files.d.ts +0 -2
- package/dist/utils/files.js +0 -35
- package/dist/utils/files.mjs +0 -22
- package/dist/utils/formValidation.d.ts +0 -7
- package/dist/utils/formValidation.js +0 -20
- package/dist/utils/formValidation.mjs +0 -13
- package/dist/utils/formatters.d.ts +0 -12
- package/dist/utils/formatters.js +0 -84
- package/dist/utils/formatters.mjs +0 -56
- package/dist/utils/hijriDate.d.ts +0 -58
- package/dist/utils/hijriDate.js +0 -168
- package/dist/utils/hijriDate.mjs +0 -1951
- package/dist/utils/i18n.d.ts +0 -8
- package/dist/utils/i18n.js +0 -36
- package/dist/utils/i18n.mjs +0 -27
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/index.js +0 -115
- package/dist/utils/index.mjs +0 -10
- package/dist/utils/queryParams.d.ts +0 -4
- package/dist/utils/queryParams.js +0 -26
- package/dist/utils/queryParams.mjs +0 -18
- package/dist/utils/ruleValidator.d.ts +0 -41
- package/dist/utils/ruleValidator.js +0 -210
- package/dist/utils/ruleValidator.mjs +0 -195
- package/dist/utils/toaster.d.ts +0 -12
- package/dist/utils/toaster.js +0 -68
- package/dist/utils/toaster.mjs +0 -58
- package/dist/utils/utils.d.ts +0 -9
- package/dist/utils/utils.js +0 -84
- package/dist/utils/utils.mjs +0 -67
|
@@ -1,120 +0,0 @@
|
|
|
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>
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,234 +0,0 @@
|
|
|
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>
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
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>
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
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;
|