@winchsa/ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +166 -0
- package/dist/components/Breadcrumbs.vue +46 -0
- package/dist/components/Breadcrumbs.vue.d.ts +6 -0
- package/dist/components/Drawer.vue +60 -0
- package/dist/components/Drawer.vue.d.ts +44 -0
- package/dist/components/IconBtn.vue +18 -0
- package/dist/components/IconBtn.vue.d.ts +30 -0
- package/dist/components/Modal.vue +155 -0
- package/dist/components/Modal.vue.d.ts +0 -0
- package/dist/components/SiteTitle.vue +14 -0
- package/dist/components/SiteTitle.vue.d.ts +2 -0
- package/dist/components/Toaster.vue +19 -0
- package/dist/components/Toaster.vue.d.ts +5 -0
- package/dist/components/cards/CheckboxesCard.vue +76 -0
- package/dist/components/cards/CheckboxesCard.vue.d.ts +20 -0
- package/dist/components/cards/HeaderCard.vue +31 -0
- package/dist/components/cards/HeaderCard.vue.d.ts +8 -0
- package/dist/components/cards/ImageCard.vue +73 -0
- package/dist/components/cards/ImageCard.vue.d.ts +63 -0
- package/dist/components/cards/InputCard.vue +60 -0
- package/dist/components/cards/InputCard.vue.d.ts +41 -0
- package/dist/components/cards/StaticCard.vue +37 -0
- package/dist/components/cards/StaticCard.vue.d.ts +33 -0
- package/dist/components/core/AppBarSearch.vue +345 -0
- package/dist/components/core/AppBarSearch.vue.d.ts +1587 -0
- package/dist/components/core/AppDrawerHeaderSection.vue +21 -0
- package/dist/components/core/AppDrawerHeaderSection.vue.d.ts +30 -0
- package/dist/components/core/AppSearchHeader.vue +72 -0
- package/dist/components/core/AppSearchHeader.vue.d.ts +7 -0
- package/dist/components/core/AppStepper.vue +232 -0
- package/dist/components/core/AppStepper.vue.d.ts +25 -0
- package/dist/components/core/CustomizerSection.vue +19 -0
- package/dist/components/core/CustomizerSection.vue.d.ts +25 -0
- package/dist/components/core/DialogCloseBtn.vue +20 -0
- package/dist/components/core/DialogCloseBtn.vue.d.ts +9 -0
- package/dist/components/core/MoreBtn.vue +27 -0
- package/dist/components/core/MoreBtn.vue.d.ts +25 -0
- package/dist/components/core/ScrollToTop.vue +39 -0
- package/dist/components/core/ScrollToTop.vue.d.ts +2 -0
- package/dist/components/core/app-form-elements/AppCombobox.vue +67 -0
- package/dist/components/core/app-form-elements/AppCombobox.vue.d.ts +0 -0
- package/dist/components/core/app-form-elements/AppSelect.vue +98 -0
- package/dist/components/core/app-form-elements/AppSelect.vue.d.ts +0 -0
- package/dist/components/core/app-form-elements/AppSwitch.vue +59 -0
- package/dist/components/core/app-form-elements/AppSwitch.vue.d.ts +27 -0
- package/dist/components/core/app-form-elements/AppTextField.vue +66 -0
- package/dist/components/core/app-form-elements/AppTextField.vue.d.ts +26 -0
- package/dist/components/core/app-form-elements/AppTextarea.vue +69 -0
- package/dist/components/core/app-form-elements/AppTextarea.vue.d.ts +26 -0
- package/dist/components/core/app-form-elements/CustomCheckboxes.vue +69 -0
- package/dist/components/core/app-form-elements/CustomCheckboxes.vue.d.ts +39 -0
- package/dist/components/core/app-form-elements/CustomCheckboxesWithIcon.vue +80 -0
- package/dist/components/core/app-form-elements/CustomCheckboxesWithIcon.vue.d.ts +39 -0
- package/dist/components/core/app-form-elements/CustomCheckboxesWithImage.vue +67 -0
- package/dist/components/core/app-form-elements/CustomCheckboxesWithImage.vue.d.ts +15 -0
- package/dist/components/core/app-form-elements/CustomRadios.vue +69 -0
- package/dist/components/core/app-form-elements/CustomRadios.vue.d.ts +40 -0
- package/dist/components/core/app-form-elements/CustomRadiosWithIcon.vue +98 -0
- package/dist/components/core/app-form-elements/CustomRadiosWithIcon.vue.d.ts +45 -0
- package/dist/components/core/app-form-elements/CustomRadiosWithImage.vue +69 -0
- package/dist/components/core/app-form-elements/CustomRadiosWithImage.vue.d.ts +53 -0
- package/dist/components/core/cards/AppCard.vue +45 -0
- package/dist/components/core/cards/AppCard.vue.d.ts +26 -0
- package/dist/components/core/cards/AppCardActions.vue +126 -0
- package/dist/components/core/cards/AppCardActions.vue.d.ts +79 -0
- package/dist/components/core/cards/CardStatisticsHorizontal.vue +29 -0
- package/dist/components/core/cards/CardStatisticsHorizontal.vue.d.ts +10 -0
- package/dist/components/forms/Accordion.vue +43 -0
- package/dist/components/forms/Accordion.vue.d.ts +35 -0
- package/dist/components/forms/AppLabel.vue +47 -0
- package/dist/components/forms/AppLabel.vue.d.ts +36 -0
- package/dist/components/forms/AppLink.vue +50 -0
- package/dist/components/forms/AppLink.vue.d.ts +27 -0
- package/dist/components/forms/AppNumberField.vue +85 -0
- package/dist/components/forms/AppNumberField.vue.d.ts +45 -0
- package/dist/components/forms/AppOtpInput.vue +84 -0
- package/dist/components/forms/AppOtpInput.vue.d.ts +16 -0
- package/dist/components/forms/AttachmentCropperInput.vue +228 -0
- package/dist/components/forms/AttachmentCropperInput.vue.d.ts +25 -0
- package/dist/components/forms/AttachmentInput.vue +116 -0
- package/dist/components/forms/AttachmentInput.vue.d.ts +20 -0
- package/dist/components/forms/AutocompleteInput.vue +759 -0
- package/dist/components/forms/AutocompleteInput.vue.d.ts +0 -0
- package/dist/components/forms/BankSelect.vue +43 -0
- package/dist/components/forms/BankSelect.vue.d.ts +19 -0
- package/dist/components/forms/BaseButton.vue +42 -0
- package/dist/components/forms/BaseButton.vue.d.ts +31 -0
- package/dist/components/forms/CounterInput.vue +71 -0
- package/dist/components/forms/CounterInput.vue.d.ts +15 -0
- package/dist/components/forms/DatePicker.vue +400 -0
- package/dist/components/forms/DatePicker.vue.d.ts +34 -0
- package/dist/components/forms/DatePickerRange.vue +129 -0
- package/dist/components/forms/DatePickerRange.vue.d.ts +23 -0
- package/dist/components/forms/DraggedUploadFile.vue +120 -0
- package/dist/components/forms/DraggedUploadFile.vue.d.ts +10 -0
- package/dist/components/forms/ImageCardInput.vue +234 -0
- package/dist/components/forms/ImageCardInput.vue.d.ts +0 -0
- package/dist/components/forms/InputValidationWrapper.vue +24 -0
- package/dist/components/forms/InputValidationWrapper.vue.d.ts +33 -0
- package/dist/components/forms/LicensePlateInput.vue +159 -0
- package/dist/components/forms/LicensePlateInput.vue.d.ts +16 -0
- package/dist/components/forms/ManualDate.vue +262 -0
- package/dist/components/forms/ManualDate.vue.d.ts +17 -0
- package/dist/components/forms/MobileInput.vue +118 -0
- package/dist/components/forms/MobileInput.vue.d.ts +49 -0
- package/dist/components/forms/PasswordInput.vue +29 -0
- package/dist/components/forms/PasswordInput.vue.d.ts +13 -0
- package/dist/components/forms/RangeInput.vue +48 -0
- package/dist/components/forms/RangeInput.vue.d.ts +5 -0
- package/dist/components/forms/Tabs.vue +35 -0
- package/dist/components/forms/Tabs.vue.d.ts +42 -0
- package/dist/components/forms/TimePicker.vue +370 -0
- package/dist/components/forms/TimePicker.vue.d.ts +23 -0
- package/dist/components/icons/EndMarker.vue +25 -0
- package/dist/components/icons/EndMarker.vue.d.ts +17 -0
- package/dist/components/icons/RedXIcon.vue +36 -0
- package/dist/components/icons/RedXIcon.vue.d.ts +2 -0
- package/dist/components/icons/StarFillIcon.vue +28 -0
- package/dist/components/icons/StarFillIcon.vue.d.ts +2 -0
- package/dist/components/icons/StartMarker.vue +25 -0
- package/dist/components/icons/StartMarker.vue.d.ts +17 -0
- package/dist/components/icons/WorkerIcon.vue +39 -0
- package/dist/components/icons/WorkerIcon.vue.d.ts +2 -0
- package/dist/components/loading/LoadingBar.vue +31 -0
- package/dist/components/loading/LoadingBar.vue.d.ts +5 -0
- package/dist/components/loading/LoadingDialog.vue +41 -0
- package/dist/components/loading/LoadingDialog.vue.d.ts +11 -0
- package/dist/components/loading/LoadingItem.vue +66 -0
- package/dist/components/loading/LoadingItem.vue.d.ts +47 -0
- package/dist/components/table/DataTable.vue +319 -0
- package/dist/components/table/DataTable.vue.d.ts +0 -0
- package/dist/components/table/EditableDataTable.vue +329 -0
- package/dist/components/table/EditableDataTable.vue.d.ts +73 -0
- package/dist/components/table/EditableDataTableRow.vue +243 -0
- package/dist/components/table/EditableDataTableRow.vue.d.ts +18 -0
- package/dist/components/table/FilterGenerator.vue +232 -0
- package/dist/components/table/FilterGenerator.vue.d.ts +14 -0
- package/dist/components/table/StaticTable.vue +152 -0
- package/dist/components/table/StaticTable.vue.d.ts +25 -0
- package/dist/components/table/TablePagination.vue +73 -0
- package/dist/components/table/TablePagination.vue.d.ts +13 -0
- package/dist/composables/use-is-mobile.d.ts +1 -0
- package/dist/composables/use-is-mobile.js +10 -0
- package/dist/composables/use-is-mobile.mjs +4 -0
- package/dist/composables/use-table-filters.d.ts +23 -0
- package/dist/composables/use-table-filters.js +196 -0
- package/dist/composables/use-table-filters.mjs +183 -0
- package/dist/fonts/NotoSans-Medium.ttf +0 -0
- package/dist/fonts/NotoSansArabic-Medium.ttf +0 -0
- package/dist/fonts/saudi_riyal_symbol/saudi_riyal_symbol.eot +0 -0
- package/dist/fonts/saudi_riyal_symbol/saudi_riyal_symbol.svg +9 -0
- package/dist/fonts/saudi_riyal_symbol/saudi_riyal_symbol.ttf +0 -0
- package/dist/fonts/saudi_riyal_symbol/saudi_riyal_symbol.woff +0 -0
- package/dist/fonts/saudi_riyal_symbol/saudi_riyal_symbol.woff2 +0 -0
- package/dist/images/avatar.png +0 -0
- package/dist/images/sa.svg +1 -0
- package/dist/images/successful-registration.svg +15 -0
- package/dist/index.d.ts +66 -0
- package/dist/index.js +447 -0
- package/dist/index.mjs +128 -0
- package/dist/styles/@core/scss/base/_components.scss +164 -0
- package/dist/styles/@core/scss/base/_dark.scss +16 -0
- package/dist/styles/@core/scss/base/_default-layout-w-vertical-nav.scss +106 -0
- package/dist/styles/@core/scss/base/_default-layout.scss +16 -0
- package/dist/styles/@core/scss/base/_index.scss +47 -0
- package/dist/styles/@core/scss/base/_layouts.scss +63 -0
- package/dist/styles/@core/scss/base/_misc.scss +20 -0
- package/dist/styles/@core/scss/base/_mixins.scss +84 -0
- package/dist/styles/@core/scss/base/_route-transitions.scss +70 -0
- package/dist/styles/@core/scss/base/_utilities.scss +418 -0
- package/dist/styles/@core/scss/base/_utils.scss +100 -0
- package/dist/styles/@core/scss/base/_variables.scss +190 -0
- package/dist/styles/@core/scss/base/_vertical-nav.scss +264 -0
- package/dist/styles/@core/scss/base/libs/_perfect-scrollbar.scss +35 -0
- package/dist/styles/@core/scss/base/libs/vuetify/_index.scss +1 -0
- package/dist/styles/@core/scss/base/libs/vuetify/_overrides.scss +385 -0
- package/dist/styles/@core/scss/base/libs/vuetify/_variables.scss +48 -0
- package/dist/styles/@core/scss/base/placeholders/_default-layout-vertical-nav.scss +48 -0
- package/dist/styles/@core/scss/base/placeholders/_default-layout.scss +3 -0
- package/dist/styles/@core/scss/base/placeholders/_index.scss +5 -0
- package/dist/styles/@core/scss/base/placeholders/_misc.scss +7 -0
- package/dist/styles/@core/scss/base/placeholders/_nav.scss +26 -0
- package/dist/styles/@core/scss/base/placeholders/_vertical-nav.scss +84 -0
- package/dist/styles/@core/scss/base/skins/_bordered.scss +60 -0
- package/dist/styles/@core/scss/base/skins/_index.scss +1 -0
- package/dist/styles/@core/scss/template/_components.scss +1035 -0
- package/dist/styles/@core/scss/template/_default-layout-w-vertical-nav.scss +20 -0
- package/dist/styles/@core/scss/template/_utilities.scss +20 -0
- package/dist/styles/@core/scss/template/_variables.scss +67 -0
- package/dist/styles/@core/scss/template/_vertical-nav.scss +41 -0
- package/dist/styles/@core/scss/template/index.css +18764 -0
- package/dist/styles/@core/scss/template/index.scss +15 -0
- package/dist/styles/@core/scss/template/libs/apex-chart.css +90 -0
- package/dist/styles/@core/scss/template/libs/apex-chart.scss +99 -0
- package/dist/styles/@core/scss/template/libs/shepherd.css +82 -0
- package/dist/styles/@core/scss/template/libs/shepherd.scss +88 -0
- package/dist/styles/@core/scss/template/libs/vuetify/_variables.scss +461 -0
- package/dist/styles/@core/scss/template/libs/vuetify/index.css +741 -0
- package/dist/styles/@core/scss/template/libs/vuetify/index.scss +1 -0
- package/dist/styles/@core/scss/template/pages/misc.css +16 -0
- package/dist/styles/@core/scss/template/pages/misc.scss +20 -0
- package/dist/styles/@core/scss/template/placeholders/_default-layout-vertical-nav.scss +9 -0
- package/dist/styles/@core/scss/template/placeholders/_index.scss +3 -0
- package/dist/styles/@core/scss/template/placeholders/_nav.scss +15 -0
- package/dist/styles/@core/scss/template/placeholders/_vertical-nav.scss +18 -0
- package/dist/styles/@core/scss/template/skins/_bordered.scss +36 -0
- package/dist/styles/@core/scss/template/skins/_index.scss +1 -0
- package/dist/styles/@layouts/styles/_classes.scss +3 -0
- package/dist/styles/@layouts/styles/_dashboard-layout.scss +43 -0
- package/dist/styles/@layouts/styles/_global.scss +10 -0
- package/dist/styles/@layouts/styles/_mixins.scss +28 -0
- package/dist/styles/@layouts/styles/_placeholders.scss +53 -0
- package/dist/styles/@layouts/styles/_rtl.scss +7 -0
- package/dist/styles/@layouts/styles/_variables.scss +22 -0
- package/dist/styles/@layouts/styles/index.css +14 -0
- package/dist/styles/@layouts/styles/index.scss +2 -0
- package/dist/styles/assets/scss/styles.css +16099 -0
- package/dist/styles/assets/scss/styles.scss +246 -0
- package/dist/styles/assets/scss/variables/_template.scss +1 -0
- package/dist/styles/assets/scss/variables/_vuetify.scss +1 -0
- package/dist/types.d.ts +226 -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 +39 -0
- package/dist/utils/client.mjs +25 -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/index.d.ts +9 -0
- package/dist/utils/index.js +104 -0
- package/dist/utils/index.mjs +9 -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 +28 -0
- package/dist/utils/ruleValidator.js +158 -0
- package/dist/utils/ruleValidator.mjs +144 -0
- package/dist/utils/toaster.d.ts +12 -0
- package/dist/utils/toaster.js +71 -0
- package/dist/utils/toaster.mjs +59 -0
- package/dist/utils/utils.d.ts +8 -0
- package/dist/utils/utils.js +70 -0
- package/dist/utils/utils.mjs +56 -0
- package/package.json +79 -0
- package/src/styles/@core/scss/base/_components.scss +164 -0
- package/src/styles/@core/scss/base/_dark.scss +16 -0
- package/src/styles/@core/scss/base/_default-layout-w-vertical-nav.scss +106 -0
- package/src/styles/@core/scss/base/_default-layout.scss +16 -0
- package/src/styles/@core/scss/base/_index.scss +47 -0
- package/src/styles/@core/scss/base/_layouts.scss +63 -0
- package/src/styles/@core/scss/base/_misc.scss +20 -0
- package/src/styles/@core/scss/base/_mixins.scss +84 -0
- package/src/styles/@core/scss/base/_route-transitions.scss +70 -0
- package/src/styles/@core/scss/base/_utilities.scss +418 -0
- package/src/styles/@core/scss/base/_utils.scss +100 -0
- package/src/styles/@core/scss/base/_variables.scss +190 -0
- package/src/styles/@core/scss/base/_vertical-nav.scss +264 -0
- package/src/styles/@core/scss/base/libs/_perfect-scrollbar.scss +35 -0
- package/src/styles/@core/scss/base/libs/vuetify/_index.scss +1 -0
- package/src/styles/@core/scss/base/libs/vuetify/_overrides.scss +385 -0
- package/src/styles/@core/scss/base/libs/vuetify/_variables.scss +48 -0
- package/src/styles/@core/scss/base/placeholders/_default-layout-vertical-nav.scss +48 -0
- package/src/styles/@core/scss/base/placeholders/_default-layout.scss +3 -0
- package/src/styles/@core/scss/base/placeholders/_index.scss +5 -0
- package/src/styles/@core/scss/base/placeholders/_misc.scss +7 -0
- package/src/styles/@core/scss/base/placeholders/_nav.scss +26 -0
- package/src/styles/@core/scss/base/placeholders/_vertical-nav.scss +84 -0
- package/src/styles/@core/scss/base/skins/_bordered.scss +60 -0
- package/src/styles/@core/scss/base/skins/_index.scss +1 -0
- package/src/styles/@core/scss/template/_components.scss +1035 -0
- package/src/styles/@core/scss/template/_default-layout-w-vertical-nav.scss +20 -0
- package/src/styles/@core/scss/template/_utilities.scss +20 -0
- package/src/styles/@core/scss/template/_variables.scss +67 -0
- package/src/styles/@core/scss/template/_vertical-nav.scss +41 -0
- package/src/styles/@core/scss/template/index.scss +15 -0
- package/src/styles/@core/scss/template/libs/apex-chart.scss +99 -0
- package/src/styles/@core/scss/template/libs/shepherd.scss +88 -0
- package/src/styles/@core/scss/template/libs/vuetify/_variables.scss +461 -0
- package/src/styles/@core/scss/template/libs/vuetify/index.scss +1 -0
- package/src/styles/@core/scss/template/pages/misc.scss +20 -0
- package/src/styles/@core/scss/template/placeholders/_default-layout-vertical-nav.scss +9 -0
- package/src/styles/@core/scss/template/placeholders/_index.scss +3 -0
- package/src/styles/@core/scss/template/placeholders/_nav.scss +15 -0
- package/src/styles/@core/scss/template/placeholders/_vertical-nav.scss +18 -0
- package/src/styles/@core/scss/template/skins/_bordered.scss +36 -0
- package/src/styles/@core/scss/template/skins/_index.scss +1 -0
- package/src/styles/@layouts/styles/_classes.scss +3 -0
- package/src/styles/@layouts/styles/_dashboard-layout.scss +43 -0
- package/src/styles/@layouts/styles/_global.scss +10 -0
- package/src/styles/@layouts/styles/_mixins.scss +28 -0
- package/src/styles/@layouts/styles/_placeholders.scss +53 -0
- package/src/styles/@layouts/styles/_rtl.scss +7 -0
- package/src/styles/@layouts/styles/_variables.scss +22 -0
- package/src/styles/@layouts/styles/index.scss +2 -0
- package/src/styles/assets/scss/styles.scss +246 -0
- package/src/styles/assets/scss/variables/_template.scss +1 -0
- package/src/styles/assets/scss/variables/_vuetify.scss +1 -0
|
File without changes
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { buildApiUrl } from "../../utils/apiUrl";
|
|
3
|
+
import AutocompleteInput from "./AutocompleteInput.vue";
|
|
4
|
+
const bank = defineModel({ type: [Object, String, null], ...{ default: null } });
|
|
5
|
+
defineProps({
|
|
6
|
+
rules: { type: Array, required: false },
|
|
7
|
+
errorMessages: { type: String, required: false },
|
|
8
|
+
multiple: { type: Boolean, required: false },
|
|
9
|
+
params: { type: Object, required: false },
|
|
10
|
+
searchInternally: { type: Boolean, required: false },
|
|
11
|
+
disabled: { type: Boolean, required: false },
|
|
12
|
+
trackByValue: { type: [String, Array], required: false }
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<AutocompleteInput
|
|
18
|
+
v-model="bank"
|
|
19
|
+
:params="params"
|
|
20
|
+
:url="buildApiUrl('/banks')"
|
|
21
|
+
label="inputs.bank"
|
|
22
|
+
item-label="name"
|
|
23
|
+
track-by="id"
|
|
24
|
+
:track-by-value="trackByValue"
|
|
25
|
+
searchable
|
|
26
|
+
:search-internally="searchInternally"
|
|
27
|
+
:rules="rules"
|
|
28
|
+
:error-messages="errorMessages"
|
|
29
|
+
:multiple="multiple"
|
|
30
|
+
:disabled="disabled"
|
|
31
|
+
>
|
|
32
|
+
<template #option="{ option }">
|
|
33
|
+
<div class="d-flex align-center">
|
|
34
|
+
<img
|
|
35
|
+
:src="option?.image"
|
|
36
|
+
width="25"
|
|
37
|
+
class="me-2"
|
|
38
|
+
>
|
|
39
|
+
{{ option.name }}
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
</AutocompleteInput>
|
|
43
|
+
</template>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Bank, Params } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
rules?: ((value: unknown) => string | true)[];
|
|
4
|
+
errorMessages?: string;
|
|
5
|
+
multiple?: boolean;
|
|
6
|
+
params?: Params;
|
|
7
|
+
searchInternally?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
trackByValue?: string | string[];
|
|
10
|
+
};
|
|
11
|
+
type __VLS_PublicProps = {
|
|
12
|
+
modelValue?: Bank | string | null;
|
|
13
|
+
} & __VLS_Props;
|
|
14
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: string | Bank | null) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: string | Bank | null) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, useAttrs } from "vue";
|
|
3
|
+
import { VBtn, VIcon } from "vuetify/components";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
title: { type: String, required: false },
|
|
6
|
+
color: { type: String, required: false, default: "primary" },
|
|
7
|
+
icon: { type: String, required: false },
|
|
8
|
+
leadingIcon: { type: String, required: false },
|
|
9
|
+
trailingIcon: { type: String, required: false }
|
|
10
|
+
});
|
|
11
|
+
const buttonColor = computed(() => useAttrs()?.disabled ? "secondary" : props.color);
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<VBtn
|
|
16
|
+
:color="buttonColor"
|
|
17
|
+
v-bind="$attrs"
|
|
18
|
+
class="px-4 text-center"
|
|
19
|
+
>
|
|
20
|
+
<VIcon
|
|
21
|
+
v-if="leadingIcon"
|
|
22
|
+
:icon="leadingIcon"
|
|
23
|
+
class="me-2 pa-0"
|
|
24
|
+
size="20"
|
|
25
|
+
/>
|
|
26
|
+
<VIcon
|
|
27
|
+
v-if="icon"
|
|
28
|
+
size="20"
|
|
29
|
+
:icon="icon"
|
|
30
|
+
rounded="md"
|
|
31
|
+
/>
|
|
32
|
+
<slot>
|
|
33
|
+
{{ title }}
|
|
34
|
+
</slot>
|
|
35
|
+
<VIcon
|
|
36
|
+
v-if="trailingIcon"
|
|
37
|
+
:icon="trailingIcon"
|
|
38
|
+
class="ms-2 pa-0"
|
|
39
|
+
size="20"
|
|
40
|
+
/>
|
|
41
|
+
</VBtn>
|
|
42
|
+
</template>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { VBtn, VIcon } from 'vuetify/components';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
leadingIcon?: string;
|
|
7
|
+
trailingIcon?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const buttonColor: import("vue").ComputedRef<string>;
|
|
10
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
11
|
+
declare var __VLS_14: {};
|
|
12
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
13
|
+
default?: (props: typeof __VLS_14) => any;
|
|
14
|
+
}>;
|
|
15
|
+
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
16
|
+
VBtn: typeof VBtn;
|
|
17
|
+
VIcon: typeof VIcon;
|
|
18
|
+
buttonColor: typeof buttonColor;
|
|
19
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
+
color: string;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
23
|
+
color: string;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { VBtn, VIcon, VTextField } from "vuetify/components";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
disabled: { type: Boolean, required: false },
|
|
5
|
+
max: { type: Number, required: false },
|
|
6
|
+
min: { type: Number, required: false, default: 0 },
|
|
7
|
+
modelValue: { type: Number, required: false, default: 1 }
|
|
8
|
+
});
|
|
9
|
+
const emit = defineEmits(["update:modelValue"]);
|
|
10
|
+
const increment = () => {
|
|
11
|
+
if (props.max !== void 0 && props.modelValue >= props.max) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
emit("update:modelValue", props.modelValue + 1);
|
|
15
|
+
};
|
|
16
|
+
const decrement = () => {
|
|
17
|
+
if (props.modelValue <= props.min) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
emit("update:modelValue", props.modelValue - 1);
|
|
21
|
+
};
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<div class="d-flex align-center mt-6">
|
|
26
|
+
<VBtn
|
|
27
|
+
icon
|
|
28
|
+
size="36"
|
|
29
|
+
color="yellow"
|
|
30
|
+
:disabled="disabled"
|
|
31
|
+
@click="decrement"
|
|
32
|
+
>
|
|
33
|
+
<VIcon color="black">
|
|
34
|
+
mdi-minus
|
|
35
|
+
</VIcon>
|
|
36
|
+
</VBtn>
|
|
37
|
+
|
|
38
|
+
<VTextField
|
|
39
|
+
:model-value="modelValue"
|
|
40
|
+
readonly
|
|
41
|
+
hide-details
|
|
42
|
+
style="max-width: 60px;"
|
|
43
|
+
@update:model-value="(val) => $emit('update:modelValue', +val)"
|
|
44
|
+
/>
|
|
45
|
+
|
|
46
|
+
<VBtn
|
|
47
|
+
icon
|
|
48
|
+
:disabled="disabled"
|
|
49
|
+
size="36"
|
|
50
|
+
color="yellow"
|
|
51
|
+
@click="increment"
|
|
52
|
+
>
|
|
53
|
+
<VIcon color="black">
|
|
54
|
+
mdi-plus
|
|
55
|
+
</VIcon>
|
|
56
|
+
</VBtn>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
59
|
+
|
|
60
|
+
<style scoped>
|
|
61
|
+
:deep(.v-input *) {
|
|
62
|
+
border: 0 !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
:deep(.v-field__input) input {
|
|
66
|
+
display: flex !important;
|
|
67
|
+
align-items: center !important;
|
|
68
|
+
justify-content: center !important;
|
|
69
|
+
text-align: center;
|
|
70
|
+
}
|
|
71
|
+
</style>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
max?: number;
|
|
4
|
+
min?: number;
|
|
5
|
+
modelValue?: number;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
8
|
+
"update:modelValue": (value: number) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
modelValue: number;
|
|
13
|
+
min: number;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { DatePicker as VCalendarDatePicker } from "v-calendar";
|
|
3
|
+
import "v-calendar/style.css";
|
|
4
|
+
import { useTheme } from "vuetify";
|
|
5
|
+
import { computed, onBeforeMount, onMounted, onBeforeUnmount, ref, watch, nextTick, useAttrs } from "vue";
|
|
6
|
+
import { useI18n } from "vue-i18n";
|
|
7
|
+
import { VTextField, VLabel } from "vuetify/components";
|
|
8
|
+
import { extractDate, formatDateWithoutTime } from "../../utils/formatters";
|
|
9
|
+
import { generateUniqueId } from "../../utils/utils";
|
|
10
|
+
const { t, locale } = useI18n();
|
|
11
|
+
const { current } = useTheme();
|
|
12
|
+
const props = defineProps({
|
|
13
|
+
modelValue: { type: [String, Date], required: false, default: "" },
|
|
14
|
+
format: { type: String, required: false, default: "YYYY-MM-DD" },
|
|
15
|
+
displayFormat: { type: String, required: false },
|
|
16
|
+
label: { type: String, required: false },
|
|
17
|
+
forcedLabel: { type: String, required: false },
|
|
18
|
+
minDate: { type: [String, Date, null], required: false },
|
|
19
|
+
maxDate: { type: [String, Date, null], required: false },
|
|
20
|
+
placeholder: { type: String, required: false },
|
|
21
|
+
disabled: { type: Boolean, required: false, skipCheck: true },
|
|
22
|
+
errorMessages: { type: [String, Array], required: false, default: "" },
|
|
23
|
+
clearable: { type: Boolean, required: false },
|
|
24
|
+
clearIcon: { type: String, required: false },
|
|
25
|
+
required: { type: Boolean, required: false },
|
|
26
|
+
rules: { type: Array, required: false },
|
|
27
|
+
showToday: { type: Boolean, required: false, default: true },
|
|
28
|
+
hideErrorMessage: { type: Boolean, required: false, default: false },
|
|
29
|
+
inTable: { type: Boolean, required: false }
|
|
30
|
+
});
|
|
31
|
+
const emit = defineEmits(["update:modelValue", "resetSelectedDate"]);
|
|
32
|
+
const popover = ref({
|
|
33
|
+
visibility: "focus",
|
|
34
|
+
placement: "top"
|
|
35
|
+
});
|
|
36
|
+
const inputValue = ref("");
|
|
37
|
+
const isFocus = ref(false);
|
|
38
|
+
const value = ref();
|
|
39
|
+
const guid = generateUniqueId();
|
|
40
|
+
const elementId = computed(() => {
|
|
41
|
+
const attrs = useAttrs();
|
|
42
|
+
const _elementIdToken = attrs.id || attrs.label;
|
|
43
|
+
return _elementIdToken ? `AppTextField-${_elementIdToken}-${guid}` : `datepicker-${_elementIdToken}-${guid}`;
|
|
44
|
+
});
|
|
45
|
+
const LangLabel = computed(() => props.label ? t(props.label) : "");
|
|
46
|
+
const placeholder = computed(() => {
|
|
47
|
+
if (props.placeholder) {
|
|
48
|
+
return props.placeholder;
|
|
49
|
+
}
|
|
50
|
+
if (LangLabel.value) {
|
|
51
|
+
return t("inputs.placeholder_select", {
|
|
52
|
+
name: LangLabel.value
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
return "";
|
|
56
|
+
});
|
|
57
|
+
const localeConfig = computed(() => ({
|
|
58
|
+
id: locale.value,
|
|
59
|
+
firstDayOfWeek: 2,
|
|
60
|
+
masks: { weekdays: "WWW" }
|
|
61
|
+
}));
|
|
62
|
+
const isValueToday = computed(() => formatDateWithoutTime(/* @__PURE__ */ new Date()) === formatDateWithoutTime(value.value));
|
|
63
|
+
const calendarAttributes = computed(() => props.showToday ? [{
|
|
64
|
+
key: "today",
|
|
65
|
+
highlight: {
|
|
66
|
+
fillMode: isValueToday.value ? "solid" : "outline",
|
|
67
|
+
contentStyle: { pointerEvents: isValueToday.value ? "none" : "auto", fontWeight: "600" }
|
|
68
|
+
},
|
|
69
|
+
dates: /* @__PURE__ */ new Date()
|
|
70
|
+
}] : []);
|
|
71
|
+
const selectAttribute = computed(() => {
|
|
72
|
+
return { highlight: { contentStyle: { pointerEvents: "none", fontWeight: "600" } } };
|
|
73
|
+
});
|
|
74
|
+
const resetSelectedDate = () => {
|
|
75
|
+
value.value = "";
|
|
76
|
+
inputValue.value = "";
|
|
77
|
+
emit("resetSelectedDate");
|
|
78
|
+
};
|
|
79
|
+
const formatDate = ($event) => {
|
|
80
|
+
const input = document.getElementById(elementId.value);
|
|
81
|
+
if (!$event) {
|
|
82
|
+
inputValue.value = "";
|
|
83
|
+
input?.focus();
|
|
84
|
+
resetSelectedDate();
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
let cleaned = $event.replace(/[^0-9\\/]/g, "");
|
|
88
|
+
if (cleaned.length >= 2 && cleaned[2] !== "/") {
|
|
89
|
+
cleaned = `${cleaned.slice(0, 2)}/${cleaned.slice(2)}`;
|
|
90
|
+
}
|
|
91
|
+
if (cleaned.length >= 5 && cleaned[5] !== "/") {
|
|
92
|
+
cleaned = `${cleaned.slice(0, 5)}/${cleaned.slice(5)}`;
|
|
93
|
+
}
|
|
94
|
+
const parts = cleaned.split("/");
|
|
95
|
+
if (parts[0] && parseInt(parts[0], 10) > 31) {
|
|
96
|
+
parts[0] = "31";
|
|
97
|
+
}
|
|
98
|
+
if (parts[1] && parseInt(parts[1], 10) > 12) {
|
|
99
|
+
parts[1] = "12";
|
|
100
|
+
}
|
|
101
|
+
if (parts[2] && Number((/* @__PURE__ */ new Date()).getFullYear()) < Number(parts[2])) {
|
|
102
|
+
parts[2] = `${(/* @__PURE__ */ new Date()).getFullYear()}`;
|
|
103
|
+
}
|
|
104
|
+
if (parts[2] && parts[2].length > 4) {
|
|
105
|
+
parts[2] = "";
|
|
106
|
+
}
|
|
107
|
+
inputValue.value = parts.join("/");
|
|
108
|
+
if (parts[2] && parts[2].length > 3 && parts[1] && parts[0]) {
|
|
109
|
+
value.value = new Date(Number(parts[2]), Number(parts[1]) - 1, Number(parts[0]));
|
|
110
|
+
nextTick(() => {
|
|
111
|
+
isFocus.value = true;
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
input.value = parts.join("/");
|
|
115
|
+
input?.focus();
|
|
116
|
+
};
|
|
117
|
+
const customPosition = () => {
|
|
118
|
+
const datepickerInputElement = document.querySelector(`#${elementId.value}`);
|
|
119
|
+
const rect = datepickerInputElement?.getBoundingClientRect();
|
|
120
|
+
return {
|
|
121
|
+
top: (rect?.top || 0) + window.pageYOffset + (rect?.height || 100) / 2 + 46 / 2,
|
|
122
|
+
left: (rect?.left || 0) - (props.inTable ? rect?.width : 0)
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
const closeMenu = (event) => {
|
|
126
|
+
const vCalendarMenu = document.getElementById(`vc-calendar-container-${elementId.value}`);
|
|
127
|
+
const vCalendarInput = document.getElementById(`${elementId.value}`);
|
|
128
|
+
if (!vCalendarMenu?.contains(event.target) && !vCalendarInput?.contains(event.target)) {
|
|
129
|
+
isFocus.value = false;
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
const getFullTextDate = (date, format, hasTime = true) => {
|
|
133
|
+
if (date) {
|
|
134
|
+
const extractedDateParts = extractDate(date, format, hasTime);
|
|
135
|
+
const generatedStandardDate = extractedDateParts ? new Date(+extractedDateParts.year, +extractedDateParts.month - 1, +extractedDateParts.day) : "";
|
|
136
|
+
return generatedStandardDate;
|
|
137
|
+
} else {
|
|
138
|
+
return "";
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
const setCalendarValue = (dateValue) => {
|
|
142
|
+
value.value = dateValue;
|
|
143
|
+
inputValue.value = dateValue ? formatDateWithoutTime(dateValue, props.displayFormat) : "";
|
|
144
|
+
isFocus.value = false;
|
|
145
|
+
emit("update:modelValue", value.value ? formatDateWithoutTime(value.value, props.format) : "");
|
|
146
|
+
};
|
|
147
|
+
watch(() => props.modelValue, (val) => {
|
|
148
|
+
if (val) {
|
|
149
|
+
const date = getFullTextDate(val, props.format);
|
|
150
|
+
inputValue.value = formatDateWithoutTime(date, props.displayFormat)?.includes("NaN") ? "" : date ? formatDateWithoutTime(date, props.displayFormat) : "";
|
|
151
|
+
value.value = date;
|
|
152
|
+
} else {
|
|
153
|
+
inputValue.value = "";
|
|
154
|
+
resetSelectedDate();
|
|
155
|
+
}
|
|
156
|
+
}, {
|
|
157
|
+
immediate: true
|
|
158
|
+
});
|
|
159
|
+
onBeforeMount(() => {
|
|
160
|
+
if (props.modelValue) {
|
|
161
|
+
const date = getFullTextDate(props.modelValue, props.format);
|
|
162
|
+
inputValue.value = formatDateWithoutTime(date, props.displayFormat)?.includes("NaN") ? "" : date ? formatDateWithoutTime(date, props.displayFormat) : "";
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
onMounted(() => {
|
|
166
|
+
window.addEventListener("mouseup", closeMenu);
|
|
167
|
+
const observer = new MutationObserver((mutations) => {
|
|
168
|
+
mutations.forEach((mutation) => {
|
|
169
|
+
if (mutation && mutation.addedNodes) {
|
|
170
|
+
mutation.addedNodes.forEach((elm) => {
|
|
171
|
+
if (elm && typeof elm?.className === "string" && elm?.className?.includes("vc-nav-popover-container")) {
|
|
172
|
+
elm.addEventListener("click", (e) => {
|
|
173
|
+
if (e?.target?.classList?.contains("is-active")) {
|
|
174
|
+
document.body.click();
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
observer.observe(document.body, {
|
|
183
|
+
childList: true,
|
|
184
|
+
subtree: true
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
onBeforeUnmount(() => {
|
|
188
|
+
window.removeEventListener("mouseup", closeMenu);
|
|
189
|
+
});
|
|
190
|
+
</script>
|
|
191
|
+
|
|
192
|
+
<template>
|
|
193
|
+
<div class="d-flex flex-column w-100">
|
|
194
|
+
<VLabel
|
|
195
|
+
v-if="forcedLabel || label"
|
|
196
|
+
class="text-body-2 text-high-emphasis mb-2"
|
|
197
|
+
:text="forcedLabel ? forcedLabel : LangLabel"
|
|
198
|
+
/>
|
|
199
|
+
<div dir="ltr" class="h-100">
|
|
200
|
+
<div :dir="locale === 'en' ? 'ltr' : 'rtl'" class="d-flex justify-center align-center gap-2 h-100">
|
|
201
|
+
<VTextField
|
|
202
|
+
v-bind="{
|
|
203
|
+
...$attrs
|
|
204
|
+
}"
|
|
205
|
+
:id="elementId"
|
|
206
|
+
:model-value="inputValue"
|
|
207
|
+
:placeholder="placeholder"
|
|
208
|
+
:append-inner-icon="$attrs['append-inner-icon'] || 'tabler-calendar-event'"
|
|
209
|
+
:disabled="disabled"
|
|
210
|
+
:clearable="clearable"
|
|
211
|
+
:clear-icon="clearIcon"
|
|
212
|
+
:rules="rules"
|
|
213
|
+
:hide-details="hideErrorMessage"
|
|
214
|
+
:error-messages="errorMessages"
|
|
215
|
+
style="padding-block: 0.125rem;"
|
|
216
|
+
autocomplete="off"
|
|
217
|
+
@update:model-value="formatDate"
|
|
218
|
+
@click:clear="resetSelectedDate"
|
|
219
|
+
@focus="isFocus = true"
|
|
220
|
+
@click="isFocus = true"
|
|
221
|
+
>
|
|
222
|
+
<template #details>
|
|
223
|
+
<span class="app-h-1" />
|
|
224
|
+
</template>
|
|
225
|
+
</VTextField>
|
|
226
|
+
</div>
|
|
227
|
+
<Teleport to="body">
|
|
228
|
+
<div
|
|
229
|
+
v-show="isFocus"
|
|
230
|
+
:id="`vc-calendar-container-${elementId}`"
|
|
231
|
+
class="position-absolute"
|
|
232
|
+
style="z-index: 1005;"
|
|
233
|
+
dir="ltr"
|
|
234
|
+
:style="{
|
|
235
|
+
left: `${customPosition().left - 20}px`,
|
|
236
|
+
top: `${customPosition().top + 10}px`
|
|
237
|
+
}"
|
|
238
|
+
>
|
|
239
|
+
<div class="position-relative">
|
|
240
|
+
<div class="vc-custom-arrow" />
|
|
241
|
+
<VCalendarDatePicker
|
|
242
|
+
:model-value="value"
|
|
243
|
+
dir="ltr"
|
|
244
|
+
class="vc-calender-custom"
|
|
245
|
+
:popover="popover"
|
|
246
|
+
:locale="localeConfig"
|
|
247
|
+
:attributes="calendarAttributes"
|
|
248
|
+
:select-attribute="selectAttribute"
|
|
249
|
+
:min-date="minDate instanceof Date ? minDate : typeof minDate === 'string' ? getFullTextDate(minDate, props.format, false) : null"
|
|
250
|
+
:max-date="maxDate instanceof Date ? maxDate : typeof maxDate === 'string' ? getFullTextDate(maxDate, props.format, false) : null"
|
|
251
|
+
:is-required="required"
|
|
252
|
+
:is-dark="current.dark"
|
|
253
|
+
inline
|
|
254
|
+
@update:model-value="setCalendarValue"
|
|
255
|
+
/>
|
|
256
|
+
</div>
|
|
257
|
+
</div>
|
|
258
|
+
</Teleport>
|
|
259
|
+
</div>
|
|
260
|
+
</div>
|
|
261
|
+
</template>
|
|
262
|
+
|
|
263
|
+
<style scoped>
|
|
264
|
+
:deep(.v-input__control) .v-field__input {
|
|
265
|
+
padding-inline-start: 14px;
|
|
266
|
+
}
|
|
267
|
+
:deep(.v-input__control) .v-field__input input {
|
|
268
|
+
padding-inline-start: 0px;
|
|
269
|
+
font-size: 13px !important;
|
|
270
|
+
}
|
|
271
|
+
:deep(.v-input__control) .v-field .v-field__clearable {
|
|
272
|
+
inset-inline-start: -4px !important;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.app-border-primary {
|
|
276
|
+
border-color: rgb(var(--v-theme-primary)) !important;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
:deep(.vc-blue) {
|
|
280
|
+
--vc-accent-50: #fdf7e6;
|
|
281
|
+
--vc-accent-100: #fcefbf;
|
|
282
|
+
--vc-accent-200: #fbe791;
|
|
283
|
+
--vc-accent-300: #fadd62;
|
|
284
|
+
--vc-accent-400: #fdc930;
|
|
285
|
+
--vc-accent-500: #fdc930;
|
|
286
|
+
--vc-accent-600: #fdc930;
|
|
287
|
+
--vc-accent-700: #fdc930;
|
|
288
|
+
--vc-accent-800: #fdc930;
|
|
289
|
+
--vc-accent-900: #fdc930;
|
|
290
|
+
color: #000 !important;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.vc-calender-custom {
|
|
294
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
:deep(.vc-nav-item.is-active) {
|
|
298
|
+
color: #000 !important;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
:deep(.vc-monthly) .is-not-in-month * {
|
|
302
|
+
color: rgb(var(--v-theme-gray-600));
|
|
303
|
+
opacity: 1;
|
|
304
|
+
pointer-events: all !important;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
:deep(.vc-light), :deep(.vc-dark) {
|
|
308
|
+
--vc-focus-ring: none !important;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
:deep(.vc-title) span {
|
|
312
|
+
font-weight: 500 !important;
|
|
313
|
+
font-size: 16px !important;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
:deep(.vc-nav-title) {
|
|
317
|
+
font-weight: 500 !important;
|
|
318
|
+
font-size: 14px !important;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
:deep(.vc-weekday), :deep(.vc-nav-item) {
|
|
322
|
+
font-weight: 500 !important;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
:deep(.vc-disabled) {
|
|
326
|
+
color: rgb(var(--v-theme-gray-600)) !important;
|
|
327
|
+
opacity: 0.5 !important;
|
|
328
|
+
cursor: not-allowed;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
:deep(.vc-popover-content) {
|
|
332
|
+
min-width: 200px !important;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
:deep(.vc-nav-item) {
|
|
336
|
+
width: auto !important;
|
|
337
|
+
padding-left: 2px !important;
|
|
338
|
+
padding-right: 2px !important;
|
|
339
|
+
display: flex;
|
|
340
|
+
align-items: center;
|
|
341
|
+
justify-content: center;
|
|
342
|
+
line-height: unset;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
:deep(.vc-nav-item.is-current) {
|
|
346
|
+
background-color: transparent !important;
|
|
347
|
+
color: rgb(var(--v-theme-on-surface));
|
|
348
|
+
font-weight: 400 !important;
|
|
349
|
+
border: 2px solid rgb(var(--v-theme-primary)) !important;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
:deep(.vc-arrow), :deep(.vc-weekday) {
|
|
353
|
+
color: rgb(var(--v-theme-on-surface));
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
:deep(.vc-bordered) {
|
|
357
|
+
border-color: rgba(var(--v-theme-gray-300));
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
:deep(.vc-custom-arrow) {
|
|
361
|
+
width: 15px;
|
|
362
|
+
height: 15px;
|
|
363
|
+
background: rgba(var(--v-theme-surface));
|
|
364
|
+
position: absolute;
|
|
365
|
+
z-index: 10;
|
|
366
|
+
border-top: 1px solid rgba(var(--v-theme-gray-300));
|
|
367
|
+
border-left: 1px solid rgba(var(--v-theme-gray-300));
|
|
368
|
+
left: 50%;
|
|
369
|
+
top: -7px;
|
|
370
|
+
transform: translateX(-50%) rotate(45deg);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
:deep(.vc-popover-content-wrapper[data-popper-placement]) {
|
|
374
|
+
width: 100% !important;
|
|
375
|
+
height: 100% !important;
|
|
376
|
+
top: 0 !important;
|
|
377
|
+
transform: translate(0) !important;
|
|
378
|
+
}
|
|
379
|
+
:deep(.vc-popover-content-wrapper[data-popper-placement]) .vc-nav-container {
|
|
380
|
+
margin-top: 2px;
|
|
381
|
+
}
|
|
382
|
+
:deep(.vc-popover-content-wrapper[data-popper-placement]) .vc-popover-content {
|
|
383
|
+
background-color: rgba(var(--v-theme-surface));
|
|
384
|
+
margin-top: 0px !important;
|
|
385
|
+
width: 100% !important;
|
|
386
|
+
height: 100% !important;
|
|
387
|
+
}
|
|
388
|
+
:deep(.vc-popover-content-wrapper[data-popper-placement]) .vc-popover-content .vc-nav-items {
|
|
389
|
+
padding: 15px;
|
|
390
|
+
gap: 20px;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
:deep(.vc-custom-arrow) {
|
|
394
|
+
display: none !important;
|
|
395
|
+
}
|
|
396
|
+
</style>
|
|
397
|
+
|
|
398
|
+
<style>
|
|
399
|
+
.vc-calender-custom{box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px 0 rgba(0,0,0,.06)!important}
|
|
400
|
+
</style>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import 'v-calendar/style.css';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: string | Date;
|
|
4
|
+
format?: string;
|
|
5
|
+
displayFormat?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
forcedLabel?: string;
|
|
8
|
+
minDate?: string | Date | null;
|
|
9
|
+
maxDate?: string | Date | null;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
disabled?: boolean | undefined;
|
|
12
|
+
errorMessages?: string | string[];
|
|
13
|
+
clearable?: boolean;
|
|
14
|
+
clearIcon?: string;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
rules?: ((value: unknown) => typeof value | string)[];
|
|
17
|
+
showToday?: boolean;
|
|
18
|
+
hideErrorMessage?: boolean;
|
|
19
|
+
inTable?: boolean;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
22
|
+
"update:modelValue": (value: string | Date) => any;
|
|
23
|
+
resetSelectedDate: () => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
"onUpdate:modelValue"?: ((value: string | Date) => any) | undefined;
|
|
26
|
+
onResetSelectedDate?: (() => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
modelValue: string | Date;
|
|
29
|
+
errorMessages: string | string[];
|
|
30
|
+
format: string;
|
|
31
|
+
showToday: boolean;
|
|
32
|
+
hideErrorMessage: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
export default _default;
|