@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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { VSpacer } from "vuetify/components";
|
|
3
|
+
import IconBtn from "../IconBtn.vue";
|
|
4
|
+
defineProps({
|
|
5
|
+
title: { type: String, required: true }
|
|
6
|
+
});
|
|
7
|
+
defineEmits(["cancel"]);
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div class="px-5 py-3 d-flex align-center">
|
|
12
|
+
<h3 class="font-weight-medium text-xl">
|
|
13
|
+
{{ title }}
|
|
14
|
+
</h3>
|
|
15
|
+
<VSpacer />
|
|
16
|
+
|
|
17
|
+
<slot name="beforeClose" />
|
|
18
|
+
|
|
19
|
+
<IconBtn icon="tabler-x" @click="$emit('cancel', $event)" />
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { VSpacer } from 'vuetify/components';
|
|
2
|
+
import IconBtn from '../IconBtn.vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
7
|
+
declare var __VLS_5: {};
|
|
8
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
9
|
+
beforeClose?: (props: typeof __VLS_5) => any;
|
|
10
|
+
}>;
|
|
11
|
+
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
12
|
+
VSpacer: typeof VSpacer;
|
|
13
|
+
IconBtn: typeof IconBtn;
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
|
+
cancel: (el: MouseEvent) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onCancel?: ((el: MouseEvent) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
|
+
cancel: (el: MouseEvent) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
22
|
+
onCancel?: ((el: MouseEvent) => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { VCardText, VIcon } from "vuetify/components";
|
|
3
|
+
import AppSearchHeaderBg from "../../images/avatar.png";
|
|
4
|
+
import AppTextField from "./app-form-elements/AppTextField.vue";
|
|
5
|
+
import AppCard from "./cards/AppCard.vue";
|
|
6
|
+
defineProps({
|
|
7
|
+
title: { type: String, required: false },
|
|
8
|
+
subtitle: { type: String, required: false },
|
|
9
|
+
customClass: { type: String, required: false }
|
|
10
|
+
});
|
|
11
|
+
defineOptions({
|
|
12
|
+
inheritAttrs: false
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<!-- Search Banner -->
|
|
18
|
+
<AppCard
|
|
19
|
+
flat
|
|
20
|
+
class="text-center search-header"
|
|
21
|
+
:class="customClass"
|
|
22
|
+
:style="`background: url(${AppSearchHeaderBg});`"
|
|
23
|
+
>
|
|
24
|
+
<VCardText>
|
|
25
|
+
<h5 class="text-h3 font-weight-medium">
|
|
26
|
+
{{ title }}
|
|
27
|
+
</h5>
|
|
28
|
+
|
|
29
|
+
<!-- Search Input -->
|
|
30
|
+
<AppTextField
|
|
31
|
+
v-bind="$attrs"
|
|
32
|
+
placeholder="Search a question..."
|
|
33
|
+
class="search-header-input mx-auto my-3"
|
|
34
|
+
density="comfortable"
|
|
35
|
+
>
|
|
36
|
+
<template #prepend-inner>
|
|
37
|
+
<VIcon
|
|
38
|
+
icon="tabler-search"
|
|
39
|
+
size="23"
|
|
40
|
+
/>
|
|
41
|
+
</template>
|
|
42
|
+
</AppTextField>
|
|
43
|
+
|
|
44
|
+
<p class="mb-0">
|
|
45
|
+
{{ subtitle }}
|
|
46
|
+
</p>
|
|
47
|
+
</VCardText>
|
|
48
|
+
</AppCard>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<style>
|
|
52
|
+
.search-header {
|
|
53
|
+
padding: 4rem !important;
|
|
54
|
+
background-size: cover !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.search-header-input {
|
|
58
|
+
border-radius: 0.25rem !important;
|
|
59
|
+
border-radius: 0.375rem !important;
|
|
60
|
+
background-color: rgb(var(--v-theme-surface));
|
|
61
|
+
max-inline-size: 40.125rem !important;
|
|
62
|
+
}
|
|
63
|
+
.search-header-input .v-field__prepend-inner i {
|
|
64
|
+
inset-block-start: 3px !important;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@media (max-width: 37.5rem) {
|
|
68
|
+
.search-header {
|
|
69
|
+
padding: 1.5rem !important;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
</style>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
subtitle?: string;
|
|
4
|
+
customClass?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, computed, watchEffect } from "vue";
|
|
3
|
+
import { VSlideGroup, VSlideGroupItem, VIcon } from "vuetify/components";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
items: { type: Array, required: true },
|
|
6
|
+
currentStep: { type: Number, required: false, default: 0 },
|
|
7
|
+
direction: { type: String, required: false, default: "horizontal" },
|
|
8
|
+
iconSize: { type: [String, Number], required: false, default: 52 },
|
|
9
|
+
isActiveStepValid: { type: Boolean, required: false, default: void 0 }
|
|
10
|
+
});
|
|
11
|
+
const emit = defineEmits(["update:currentStep"]);
|
|
12
|
+
const currentStep = ref(props.currentStep || 0);
|
|
13
|
+
const activeOrCompletedStepsClasses = computed(
|
|
14
|
+
() => (index) => index < currentStep.value ? "stepper-steps-completed" : index === currentStep.value ? "stepper-steps-active" : ""
|
|
15
|
+
);
|
|
16
|
+
const isHorizontalAndNotLastStep = computed(
|
|
17
|
+
() => (index) => props.direction === "horizontal" && props.items.length - 1 !== index
|
|
18
|
+
);
|
|
19
|
+
const isValidationEnabled = computed(() => {
|
|
20
|
+
return props.isActiveStepValid !== void 0;
|
|
21
|
+
});
|
|
22
|
+
watchEffect(() => {
|
|
23
|
+
if (props.currentStep !== void 0 && props.currentStep < props.items.length && props.currentStep >= 0) {
|
|
24
|
+
currentStep.value = props.currentStep;
|
|
25
|
+
}
|
|
26
|
+
emit("update:currentStep", currentStep.value);
|
|
27
|
+
});
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template>
|
|
31
|
+
<VSlideGroup
|
|
32
|
+
v-model="currentStep"
|
|
33
|
+
class="app-stepper"
|
|
34
|
+
show-arrows
|
|
35
|
+
:direction="direction"
|
|
36
|
+
>
|
|
37
|
+
<VSlideGroupItem
|
|
38
|
+
v-for="(item, index) in items"
|
|
39
|
+
:key="item.title"
|
|
40
|
+
:value="index"
|
|
41
|
+
>
|
|
42
|
+
<div
|
|
43
|
+
class="cursor-pointer mx-1"
|
|
44
|
+
:class="[!isActiveStepValid && isValidationEnabled && 'stepper-steps-invalid', activeOrCompletedStepsClasses(index)]"
|
|
45
|
+
@click="!isValidationEnabled && emit('update:currentStep', index)"
|
|
46
|
+
>
|
|
47
|
+
<!-- SECTION stepper step with icon -->
|
|
48
|
+
<template v-if="item.icon">
|
|
49
|
+
<div class="stepper-icon-step text-high-emphasis d-flex align-center gap-2">
|
|
50
|
+
<!-- icon and title -->
|
|
51
|
+
<div
|
|
52
|
+
class="d-flex align-center gap-4 step-wrapper"
|
|
53
|
+
:class="[direction === 'horizontal' && 'flex-column']"
|
|
54
|
+
>
|
|
55
|
+
<div class="stepper-icon">
|
|
56
|
+
<VIcon
|
|
57
|
+
:icon="item.icon"
|
|
58
|
+
:size="item.size || iconSize"
|
|
59
|
+
/>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div>
|
|
63
|
+
<p class="stepper-title font-weight-medium mb-0">
|
|
64
|
+
{{ item.title }}
|
|
65
|
+
</p>
|
|
66
|
+
<span
|
|
67
|
+
v-if="item.subtitle"
|
|
68
|
+
class="stepper-subtitle"
|
|
69
|
+
>
|
|
70
|
+
<span class="text-sm">{{ item.subtitle }}</span>
|
|
71
|
+
</span>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<!-- append chevron -->
|
|
76
|
+
<VIcon
|
|
77
|
+
v-if="isHorizontalAndNotLastStep(index)"
|
|
78
|
+
class="flip-in-rtl stepper-chevron-indicator mx-6"
|
|
79
|
+
size="24"
|
|
80
|
+
icon="tabler-chevron-right"
|
|
81
|
+
/>
|
|
82
|
+
</div>
|
|
83
|
+
</template>
|
|
84
|
+
<!-- !SECTION -->
|
|
85
|
+
|
|
86
|
+
<!-- SECTION stepper step without icon -->
|
|
87
|
+
<template v-else>
|
|
88
|
+
<div class="d-flex align-center gap-x-2">
|
|
89
|
+
<div class="d-flex align-center gap-2">
|
|
90
|
+
<div
|
|
91
|
+
class="d-flex align-center justify-center"
|
|
92
|
+
style="block-size: 24px; inline-size: 24px"
|
|
93
|
+
>
|
|
94
|
+
<!-- custom circle icon -->
|
|
95
|
+
<template v-if="index >= currentStep">
|
|
96
|
+
<div
|
|
97
|
+
v-if="!isValidationEnabled || isActiveStepValid || index !== currentStep"
|
|
98
|
+
class="stepper-step-indicator"
|
|
99
|
+
/>
|
|
100
|
+
|
|
101
|
+
<VIcon
|
|
102
|
+
v-else
|
|
103
|
+
icon="tabler-alert-circle"
|
|
104
|
+
size="24"
|
|
105
|
+
color="error"
|
|
106
|
+
/>
|
|
107
|
+
</template>
|
|
108
|
+
|
|
109
|
+
<!-- step completed icon -->
|
|
110
|
+
|
|
111
|
+
<VIcon
|
|
112
|
+
v-else
|
|
113
|
+
icon="custom-check-circle"
|
|
114
|
+
class="stepper-step-icon"
|
|
115
|
+
size="24"
|
|
116
|
+
/>
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
<!-- Step Number -->
|
|
120
|
+
<h4 class="text-h4 step-number">
|
|
121
|
+
{{ (index + 1).toString().padStart(2, "0") }}
|
|
122
|
+
</h4>
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
<!-- title and subtitle -->
|
|
126
|
+
<div style="line-height: 0">
|
|
127
|
+
<h6 class="text-sm font-weight-medium step-title">
|
|
128
|
+
{{ item.title }}
|
|
129
|
+
</h6>
|
|
130
|
+
|
|
131
|
+
<span
|
|
132
|
+
v-if="item.subtitle"
|
|
133
|
+
class="text-xs step-subtitle"
|
|
134
|
+
>
|
|
135
|
+
{{ item.subtitle }}
|
|
136
|
+
</span>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
<!-- stepper step line -->
|
|
140
|
+
<div
|
|
141
|
+
v-if="isHorizontalAndNotLastStep(index)"
|
|
142
|
+
class="stepper-step-line"
|
|
143
|
+
/>
|
|
144
|
+
</div>
|
|
145
|
+
</template>
|
|
146
|
+
<!-- !SECTION -->
|
|
147
|
+
</div>
|
|
148
|
+
</VSlideGroupItem>
|
|
149
|
+
</VSlideGroup>
|
|
150
|
+
</template>
|
|
151
|
+
|
|
152
|
+
<style>
|
|
153
|
+
.app-stepper.stepper-icon-step-bg .stepper-icon-step .step-wrapper {
|
|
154
|
+
flex-direction: row !important;
|
|
155
|
+
}
|
|
156
|
+
.app-stepper.stepper-icon-step-bg .stepper-icon-step .stepper-icon {
|
|
157
|
+
display: flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
border-radius: 0.3125rem;
|
|
161
|
+
background-color: rgba(var(--v-theme-on-surface), var(--v-selected-opacity));
|
|
162
|
+
block-size: 2.5rem;
|
|
163
|
+
color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));
|
|
164
|
+
inline-size: 2.5rem;
|
|
165
|
+
margin-inline-end: 0.3rem;
|
|
166
|
+
}
|
|
167
|
+
.app-stepper.stepper-icon-step-bg .stepper-icon-step .stepper-title,
|
|
168
|
+
.app-stepper.stepper-icon-step-bg .stepper-icon-step .stepper-subtitle {
|
|
169
|
+
line-height: normal;
|
|
170
|
+
}
|
|
171
|
+
.app-stepper.stepper-icon-step-bg .stepper-icon-step .stepper-title {
|
|
172
|
+
color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity));
|
|
173
|
+
font-size: 0.9375rem;
|
|
174
|
+
font-weight: 500 !important;
|
|
175
|
+
}
|
|
176
|
+
.app-stepper.stepper-icon-step-bg .stepper-icon-step .stepper-subtitle {
|
|
177
|
+
color: rgba(var(--v-theme-on-surface), var(--v-disabled-opacity));
|
|
178
|
+
font-size: 0.875rem;
|
|
179
|
+
}
|
|
180
|
+
.app-stepper.stepper-icon-step-bg .stepper-steps-active .stepper-icon-step .stepper-icon {
|
|
181
|
+
background-color: rgb(var(--v-theme-primary));
|
|
182
|
+
color: rgba(var(--v-theme-on-primary));
|
|
183
|
+
}
|
|
184
|
+
.app-stepper.stepper-icon-step-bg .stepper-steps-completed .stepper-icon-step .stepper-icon {
|
|
185
|
+
background: rgba(var(--v-theme-primary), 0.08);
|
|
186
|
+
color: rgba(var(--v-theme-primary));
|
|
187
|
+
}
|
|
188
|
+
.app-stepper .v-slide-group__content {
|
|
189
|
+
justify-content: center;
|
|
190
|
+
row-gap: 1.5rem;
|
|
191
|
+
}
|
|
192
|
+
.app-stepper .v-slide-group__content .stepper-step-indicator {
|
|
193
|
+
border: 0.3125rem solid rgb(var(--v-theme-primary));
|
|
194
|
+
border-radius: 50%;
|
|
195
|
+
background-color: rgb(var(--v-theme-surface));
|
|
196
|
+
block-size: 1.25rem;
|
|
197
|
+
inline-size: 1.25rem;
|
|
198
|
+
opacity: var(--v-activated-opacity);
|
|
199
|
+
}
|
|
200
|
+
.app-stepper .v-slide-group__content .stepper-step-line {
|
|
201
|
+
border-radius: 0.1875rem;
|
|
202
|
+
background-color: rgb(var(--v-theme-primary));
|
|
203
|
+
block-size: 0.1875rem;
|
|
204
|
+
inline-size: 3.75rem;
|
|
205
|
+
opacity: var(--v-activated-opacity);
|
|
206
|
+
}
|
|
207
|
+
.app-stepper .v-slide-group__content .stepper-chevron-indicator {
|
|
208
|
+
color: rgba(var(--v-theme-on-surface), var(--v-disabled-opacity));
|
|
209
|
+
}
|
|
210
|
+
.app-stepper .v-slide-group__content .stepper-steps-completed .stepper-icon-step,
|
|
211
|
+
.app-stepper .v-slide-group__content .stepper-steps-completed .stepper-step-icon,
|
|
212
|
+
.app-stepper .v-slide-group__content .stepper-steps-active .stepper-icon-step,
|
|
213
|
+
.app-stepper .v-slide-group__content .stepper-steps-active .stepper-step-icon {
|
|
214
|
+
color: rgb(var(--v-theme-primary)) !important;
|
|
215
|
+
}
|
|
216
|
+
.app-stepper .v-slide-group__content .stepper-steps-completed .stepper-step-indicator,
|
|
217
|
+
.app-stepper .v-slide-group__content .stepper-steps-active .stepper-step-indicator {
|
|
218
|
+
opacity: 1;
|
|
219
|
+
}
|
|
220
|
+
.app-stepper .v-slide-group__content .stepper-steps-completed .stepper-step-line {
|
|
221
|
+
opacity: 1;
|
|
222
|
+
}
|
|
223
|
+
.app-stepper .v-slide-group__content .stepper-steps-completed .stepper-chevron-indicator {
|
|
224
|
+
color: rgb(var(--v-theme-primary));
|
|
225
|
+
}
|
|
226
|
+
.app-stepper .v-slide-group__content .stepper-steps-invalid.stepper-steps-active .stepper-icon-step,
|
|
227
|
+
.app-stepper .v-slide-group__content .stepper-steps-invalid.stepper-steps-active .step-number,
|
|
228
|
+
.app-stepper .v-slide-group__content .stepper-steps-invalid.stepper-steps-active .step-title,
|
|
229
|
+
.app-stepper .v-slide-group__content .stepper-steps-invalid.stepper-steps-active .step-subtitle {
|
|
230
|
+
color: rgb(var(--v-theme-error)) !important;
|
|
231
|
+
}
|
|
232
|
+
</style>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type Item = {
|
|
2
|
+
title: string;
|
|
3
|
+
icon?: string;
|
|
4
|
+
size?: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
};
|
|
7
|
+
type Direction = 'vertical' | 'horizontal';
|
|
8
|
+
type __VLS_Props = {
|
|
9
|
+
items: Item[];
|
|
10
|
+
currentStep?: number;
|
|
11
|
+
direction?: Direction;
|
|
12
|
+
iconSize?: string | number;
|
|
13
|
+
isActiveStepValid?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
16
|
+
"update:currentStep": (value: number) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
"onUpdate:currentStep"?: ((value: number) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
iconSize: string | number;
|
|
21
|
+
direction: Direction;
|
|
22
|
+
currentStep: number;
|
|
23
|
+
isActiveStepValid: boolean;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { VDivider } from "vuetify/components";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
title: { type: String, required: true },
|
|
5
|
+
divider: { type: Boolean, required: false, default: true }
|
|
6
|
+
});
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<VDivider v-if="divider" />
|
|
11
|
+
|
|
12
|
+
<div class="customizer-section">
|
|
13
|
+
<p class="text-caption">
|
|
14
|
+
{{ props.title }}
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
<slot />
|
|
18
|
+
</div>
|
|
19
|
+
</template>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { VDivider } from 'vuetify/components';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
divider?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
7
|
+
declare var __VLS_5: {};
|
|
8
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
9
|
+
default?: (props: typeof __VLS_5) => any;
|
|
10
|
+
}>;
|
|
11
|
+
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
12
|
+
VDivider: typeof VDivider;
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
+
divider: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
divider: boolean;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { VIcon } from "vuetify/components";
|
|
3
|
+
import IconBtn from "../IconBtn.vue";
|
|
4
|
+
defineProps({
|
|
5
|
+
icon: { type: String, required: false, default: "tabler-x" },
|
|
6
|
+
iconSize: { type: String, required: false, default: "22" }
|
|
7
|
+
});
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<IconBtn
|
|
12
|
+
variant="elevated"
|
|
13
|
+
class="v-dialog-close-btn"
|
|
14
|
+
>
|
|
15
|
+
<VIcon
|
|
16
|
+
:icon="icon"
|
|
17
|
+
:size="iconSize"
|
|
18
|
+
/>
|
|
19
|
+
</IconBtn>
|
|
20
|
+
</template>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
icon?: string;
|
|
3
|
+
iconSize?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
+
icon: string;
|
|
7
|
+
iconSize: string;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { VIcon, VList, VMenu } from "vuetify/components";
|
|
3
|
+
import IconBtn from "../IconBtn.vue";
|
|
4
|
+
defineProps({
|
|
5
|
+
menuList: { type: Array, required: false },
|
|
6
|
+
itemProps: { type: Boolean, required: false }
|
|
7
|
+
});
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<IconBtn
|
|
12
|
+
density="compact"
|
|
13
|
+
>
|
|
14
|
+
<VIcon icon="tabler-dots-vertical" color="text-on-background" />
|
|
15
|
+
|
|
16
|
+
<VMenu
|
|
17
|
+
activator="parent"
|
|
18
|
+
>
|
|
19
|
+
<slot>
|
|
20
|
+
<VList
|
|
21
|
+
:items="menuList"
|
|
22
|
+
:item-props="itemProps"
|
|
23
|
+
/>
|
|
24
|
+
</slot>
|
|
25
|
+
</VMenu>
|
|
26
|
+
</IconBtn>
|
|
27
|
+
</template>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { VIcon, VList, VMenu } from 'vuetify/components';
|
|
2
|
+
import IconBtn from '../IconBtn.vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
menuList?: unknown[];
|
|
5
|
+
itemProps?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
8
|
+
declare var __VLS_13: {};
|
|
9
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
10
|
+
default?: (props: typeof __VLS_13) => any;
|
|
11
|
+
}>;
|
|
12
|
+
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
13
|
+
VIcon: typeof VIcon;
|
|
14
|
+
VList: typeof VList;
|
|
15
|
+
VMenu: typeof VMenu;
|
|
16
|
+
IconBtn: typeof IconBtn;
|
|
17
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useWindowScroll } from "@vueuse/core";
|
|
3
|
+
import { VScaleTransition, VBtn, VIcon } from "vuetify/components";
|
|
4
|
+
const { y } = useWindowScroll();
|
|
5
|
+
const scrollToTop = () => {
|
|
6
|
+
window.scrollTo({
|
|
7
|
+
top: 0,
|
|
8
|
+
behavior: "smooth"
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<VScaleTransition
|
|
15
|
+
style="transform-origin: center"
|
|
16
|
+
class="scroll-to-top d-print-none"
|
|
17
|
+
>
|
|
18
|
+
<VBtn
|
|
19
|
+
v-show="y > 200"
|
|
20
|
+
icon
|
|
21
|
+
density="comfortable"
|
|
22
|
+
@click="scrollToTop"
|
|
23
|
+
>
|
|
24
|
+
<VIcon
|
|
25
|
+
size="22"
|
|
26
|
+
icon="tabler-arrow-up"
|
|
27
|
+
/>
|
|
28
|
+
</VBtn>
|
|
29
|
+
</VScaleTransition>
|
|
30
|
+
</template>
|
|
31
|
+
|
|
32
|
+
<style>
|
|
33
|
+
.scroll-to-top {
|
|
34
|
+
position: fixed !important;
|
|
35
|
+
z-index: 999;
|
|
36
|
+
inset-block-end: 5%;
|
|
37
|
+
inset-inline-end: 25px;
|
|
38
|
+
}
|
|
39
|
+
</style>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, useAttrs } from "vue";
|
|
3
|
+
import { VCombobox, VLabel } from "vuetify/components";
|
|
4
|
+
import { useI18n } from "vue-i18n";
|
|
5
|
+
defineOptions({
|
|
6
|
+
name: "AppCombobox",
|
|
7
|
+
inheritAttrs: false
|
|
8
|
+
});
|
|
9
|
+
const { t } = useI18n();
|
|
10
|
+
const elementId = computed(() => {
|
|
11
|
+
const attrs = useAttrs();
|
|
12
|
+
const _elementIdToken = attrs.id || attrs.label;
|
|
13
|
+
return _elementIdToken ? `app-combobox-${_elementIdToken}-${Math.random().toString(36).slice(2, 7)}` : void 0;
|
|
14
|
+
});
|
|
15
|
+
const label = computed(() => useAttrs()?.label);
|
|
16
|
+
const LangLabel = computed(() => label.value ? t(label.value) : "");
|
|
17
|
+
const placeholder = computed(() => {
|
|
18
|
+
if (useAttrs()?.placeholder) {
|
|
19
|
+
return useAttrs()?.placeholder;
|
|
20
|
+
}
|
|
21
|
+
if (label.value) {
|
|
22
|
+
return t("inputs.placeholder", {
|
|
23
|
+
name: LangLabel.value
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return "";
|
|
27
|
+
});
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template>
|
|
31
|
+
<div
|
|
32
|
+
class="app-combobox flex-grow-1"
|
|
33
|
+
:class="$attrs.class"
|
|
34
|
+
>
|
|
35
|
+
<VLabel
|
|
36
|
+
v-if="label"
|
|
37
|
+
:for="elementId"
|
|
38
|
+
class="mb-2 text-body-2 text-high-emphasis"
|
|
39
|
+
:text="LangLabel"
|
|
40
|
+
/>
|
|
41
|
+
|
|
42
|
+
<VCombobox
|
|
43
|
+
v-bind="{
|
|
44
|
+
...$attrs,
|
|
45
|
+
class: null,
|
|
46
|
+
label: void 0,
|
|
47
|
+
variant: 'outlined',
|
|
48
|
+
id: elementId,
|
|
49
|
+
menuProps: {
|
|
50
|
+
contentClass: ['app-inner-list', 'app-combobox__content', 'v-combobox__content', $attrs.multiple !== void 0 ? 'v-list-select-multiple' : '']
|
|
51
|
+
}
|
|
52
|
+
}"
|
|
53
|
+
:no-data-text="t('no_data')"
|
|
54
|
+
:placeholder="placeholder"
|
|
55
|
+
>
|
|
56
|
+
<template
|
|
57
|
+
v-for="(_, name) in $slots"
|
|
58
|
+
#[name]="slotProps"
|
|
59
|
+
>
|
|
60
|
+
<slot
|
|
61
|
+
:name="name"
|
|
62
|
+
v-bind="slotProps || {}"
|
|
63
|
+
/>
|
|
64
|
+
</template>
|
|
65
|
+
</VCombobox>
|
|
66
|
+
</div>
|
|
67
|
+
</template>
|
|
File without changes
|