@dv.net/ui-kit 7.6.0 → 7.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/UiAnimation/UiAnimation.vue.d.ts +747 -0
- package/dist/components/UiAnimation/types.d.ts +6 -0
- package/dist/components/UiAvatar/UiAvatar.vue.d.ts +3 -0
- package/dist/components/UiAvatar/components/AvatarMask.vue.d.ts +5 -0
- package/dist/components/UiAvatar/types.d.ts +9 -0
- package/dist/components/UiBlockTitle/UiBlockTitle.vue.d.ts +18 -0
- package/dist/components/UiBlockTitle/types.d.ts +8 -0
- package/dist/components/UiButton/UiButton.vue.d.ts +33 -0
- package/dist/components/UiButton/types.d.ts +27 -0
- package/dist/components/UiChat/UiChat.vue.d.ts +118 -0
- package/dist/components/UiChat/UiChatAttachments.vue.d.ts +17 -0
- package/dist/components/UiChat/UiChatFooter.vue.d.ts +96 -0
- package/dist/components/UiChat/UiChatHeader.vue.d.ts +14 -0
- package/dist/components/UiChat/UiChatManagerAlert.vue.d.ts +5 -0
- package/dist/components/UiChat/UiChatMessage.vue.d.ts +7 -0
- package/dist/components/UiChat/UiChatMessageAttachments.vue.d.ts +6 -0
- package/dist/components/UiChat/types.d.ts +69 -0
- package/dist/components/UiCheckbox/UiCheckbox.vue.d.ts +34 -0
- package/dist/components/UiCheckbox/types.d.ts +8 -0
- package/dist/components/UiCheckboxGroup/UiCheckboxGroup.vue.d.ts +30 -0
- package/dist/components/UiCheckboxGroup/constants.d.ts +1 -0
- package/dist/components/UiCheckboxGroup/types.d.ts +12 -0
- package/dist/components/UiCollapse/UiCollapse.vue.d.ts +29 -0
- package/dist/components/UiCollapse/constants.d.ts +1 -0
- package/dist/components/UiCollapse/types.d.ts +12 -0
- package/dist/components/UiCollapseItem/UiCollapseItem.vue.d.ts +19 -0
- package/dist/components/UiCollapseItem/types.d.ts +7 -0
- package/dist/components/UiConfirm/UiConfirm.vue.d.ts +42 -0
- package/dist/components/UiConfirm/types.d.ts +11 -0
- package/dist/components/UiCopyText/UiCopyText.vue.d.ts +27 -0
- package/dist/components/UiCopyText/types.d.ts +9 -0
- package/dist/components/UiDatepicker/UiDatepickerRange.vue.d.ts +861 -0
- package/dist/components/UiDatepicker/components/DatePickerInput.vue.d.ts +21 -0
- package/dist/components/UiDatepicker/components/DatePickerInputs.vue.d.ts +15 -0
- package/dist/components/UiDatepicker/components/DatePickerPresets.vue.d.ts +11 -0
- package/dist/components/UiDatepicker/components/DatePickerSlider.vue.d.ts +34 -0
- package/dist/components/UiDatepicker/composables/useDatePicker.d.ts +19 -0
- package/dist/components/UiDatepicker/composables/useDatePickerPresets.d.ts +6 -0
- package/dist/components/UiDatepicker/composables/useDatePickerSelected.d.ts +18 -0
- package/dist/components/UiDatepicker/types.d.ts +26 -0
- package/dist/components/UiDragAndDrop/UiDragAndDrop.vue.d.ts +19 -0
- package/dist/components/UiDragAndDrop/UiFileItem.vue.d.ts +10 -0
- package/dist/components/UiDragAndDrop/UiFileItemLoading.vue.d.ts +10 -0
- package/dist/components/UiDragAndDrop/UiProgressBar.vue.d.ts +9 -0
- package/dist/components/UiDragAndDrop/icons/FileIcon.vue.d.ts +2 -0
- package/dist/components/UiDragAndDrop/types.d.ts +13 -0
- package/dist/components/UiDrawer/UiDrawer.vue.d.ts +29 -0
- package/dist/components/UiDrawer/types.d.ts +7 -0
- package/dist/components/UiDropdown/UiDropdown.vue.d.ts +47 -0
- package/dist/components/UiDropdown/types.d.ts +14 -0
- package/dist/components/UiFlagIcon/UiFlagIcon.vue.d.ts +5 -0
- package/dist/components/UiFlagIcon/types.d.ts +4 -0
- package/dist/components/UiForm/UiForm.vue.d.ts +23 -0
- package/dist/components/UiForm/constants.d.ts +1 -0
- package/dist/components/UiForm/types.d.ts +15 -0
- package/dist/components/UiForm/useValidate.d.ts +5 -0
- package/dist/components/UiForm/validations.d.ts +4 -0
- package/dist/components/UiFormItem/UiFormItem.vue.d.ts +26 -0
- package/dist/components/UiFormItem/types.d.ts +16 -0
- package/dist/components/UiGallery/UiGallery.vue.d.ts +11 -0
- package/dist/components/UiGallery/types.d.ts +8 -0
- package/dist/components/UiIcon/UiIcon.vue.d.ts +6 -0
- package/dist/components/UiIcon/types.d.ts +8 -0
- package/dist/components/UiIconButton/UiIconButton.vue.d.ts +14 -0
- package/dist/components/UiIconButton/types.d.ts +21 -0
- package/dist/components/UiInput/UiInput.vue.d.ts +51 -0
- package/dist/components/UiInput/types.d.ts +23 -0
- package/dist/components/UiLanguages/UiLanguages.vue.d.ts +261 -0
- package/dist/components/UiLanguages/components/UiLanguageButton.vue.d.ts +7 -0
- package/dist/components/UiLanguages/types.d.ts +17 -0
- package/dist/components/UiLayout/UiLayout.vue.d.ts +27 -0
- package/dist/components/UiLayout/types.d.ts +4 -0
- package/dist/components/UiLayoutAuth/UiLayoutAuth.vue.d.ts +18 -0
- package/dist/components/UiLayoutMenu/UiLayoutMenu.vue.d.ts +9 -0
- package/dist/components/UiLayoutMenu/UiLayoutMenuItem.vue.d.ts +7 -0
- package/dist/components/UiLayoutMenu/types.d.ts +30 -0
- package/dist/components/UiLink/UiLink.vue.d.ts +21 -0
- package/dist/components/UiLink/types.d.ts +10 -0
- package/dist/components/UiLoading/UiLoading.vue.d.ts +7 -0
- package/dist/components/UiLoading/types.d.ts +9 -0
- package/dist/components/UiMobileMenu/UiMobileMenu.vue.d.ts +31 -0
- package/dist/components/UiModal/UiModal.vue.d.ts +38 -0
- package/dist/components/UiModal/types.d.ts +11 -0
- package/dist/components/UiOverlay/UiOverlay.vue.d.ts +24 -0
- package/dist/components/UiPagination/UiPagination.vue.d.ts +22 -0
- package/dist/components/UiPagination/components/IconArrow.vue.d.ts +2 -0
- package/dist/components/UiPagination/types.d.ts +13 -0
- package/dist/components/UiProfileMenu/UiProfileMenu.vue.d.ts +29 -0
- package/dist/components/UiProfileMenu/components/UiProfileMenuItem.vue.d.ts +1258 -0
- package/dist/components/UiProfileMenu/types.d.ts +22 -0
- package/dist/components/UiRadio/UiRadio.vue.d.ts +21 -0
- package/dist/components/UiRadio/types.d.ts +6 -0
- package/dist/components/UiRadioGroup/UiRadioGroup.vue.d.ts +30 -0
- package/dist/components/UiRadioGroup/constants.d.ts +1 -0
- package/dist/components/UiRadioGroup/types.d.ts +12 -0
- package/dist/components/UiSelect/UiSelect.vue.d.ts +39 -0
- package/dist/components/UiSelect/components/SelectList.vue.d.ts +22 -0
- package/dist/components/UiSelect/components/SelectListItem.vue.d.ts +32 -0
- package/dist/components/UiSelect/components/SelectSearch.vue.d.ts +124 -0
- package/dist/components/UiSelect/components/SelectTrigger.vue.d.ts +33 -0
- package/dist/components/UiSelect/components/SelectVirtualList.vue.d.ts +27 -0
- package/dist/components/UiSelect/composables/useKeyboard.d.ts +11 -0
- package/dist/components/UiSelect/composables/useMultiple.d.ts +4 -0
- package/dist/components/UiSelect/types.d.ts +43 -0
- package/dist/components/UiSkeleton/UiSkeleton.vue.d.ts +11 -0
- package/dist/components/UiSkeleton/types.d.ts +9 -0
- package/dist/components/UiSwitch/UiSwitch.vue.d.ts +17 -0
- package/dist/components/UiSwitch/types.d.ts +8 -0
- package/dist/components/UiTable/UiTable.vue.d.ts +64 -0
- package/dist/components/UiTable/components/TableSort.vue.d.ts +27 -0
- package/dist/components/UiTable/components/TableSummary.vue.d.ts +26 -0
- package/dist/components/UiTable/composables/useExpande.d.ts +6 -0
- package/dist/components/UiTable/composables/useSelected.d.ts +9 -0
- package/dist/components/UiTable/composables/useSort.d.ts +9 -0
- package/dist/components/UiTable/helpers/getValueByHeaderName.d.ts +1 -0
- package/dist/components/UiTable/types.d.ts +58 -0
- package/dist/components/UiTabs/UiTabs.vue.d.ts +32 -0
- package/dist/components/UiTabs/constants.d.ts +1 -0
- package/dist/components/UiTabs/types.d.ts +17 -0
- package/dist/components/UiTabsItem/UiTabsItem.vue.d.ts +18 -0
- package/dist/components/UiTabsItem/types.d.ts +4 -0
- package/dist/components/UiTag/UiTag.vue.d.ts +8 -0
- package/dist/components/UiTag/types.d.ts +8 -0
- package/dist/components/UiTextarea/UiTextarea.vue.d.ts +55 -0
- package/dist/components/UiTextarea/type.d.ts +17 -0
- package/dist/components/UiTooltip/UiTooltip.vue.d.ts +56 -0
- package/dist/components/UiTooltip/types.d.ts +19 -0
- package/dist/composables/useBreakpoints.d.ts +5 -0
- package/dist/composables/useNotification/UiNotification.vue.d.ts +24 -0
- package/dist/composables/useNotification/types.d.ts +1 -0
- package/dist/composables/useNotification/useNotification.d.ts +2 -0
- package/dist/config/index.d.ts +182 -0
- package/dist/helpers/animations-list.d.ts +55 -0
- package/dist/helpers/is-mobile-device.d.ts +1 -0
- package/dist/helpers/svg-list.d.ts +5 -0
- package/dist/helpers/toogleHiddenClass.d.ts +1 -0
- package/dist/index.d.ts +48 -0
- package/package.json +16 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface DatePickerInputProps {
|
|
2
|
+
placeholder: string;
|
|
3
|
+
isError: boolean;
|
|
4
|
+
maska: string;
|
|
5
|
+
label: string;
|
|
6
|
+
autofocus?: boolean;
|
|
7
|
+
}
|
|
8
|
+
type __VLS_Props = DatePickerInputProps;
|
|
9
|
+
type __VLS_PublicProps = {
|
|
10
|
+
modelValue?: any;
|
|
11
|
+
} & __VLS_Props;
|
|
12
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
input: (...args: any[]) => void;
|
|
14
|
+
"update:modelValue": (value: any) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
19
|
+
inputRef: HTMLInputElement;
|
|
20
|
+
}, HTMLLabelElement>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UiDatepickerRangeProps } from '../types';
|
|
2
|
+
type __VLS_Props = Pick<UiDatepickerRangeProps, "single">;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
"model-value"?: string[];
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
change: (...args: any[]) => void;
|
|
8
|
+
submit: (...args: any[]) => void;
|
|
9
|
+
"update:model-value": (value: string[]) => void;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
12
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
"onUpdate:model-value"?: ((value: string[]) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PresetModel } from '../types';
|
|
2
|
+
interface DatePickerPresetProps {
|
|
3
|
+
date: string[];
|
|
4
|
+
presets: PresetModel[];
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<DatePickerPresetProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
change: (...args: any[]) => void;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<DatePickerPresetProps> & Readonly<{
|
|
9
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DatepickerSwapRange } from '../types';
|
|
2
|
+
interface DatePickerSliderProps {
|
|
3
|
+
isShow?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
selectedRange?: DatepickerSwapRange;
|
|
6
|
+
minDate?: string;
|
|
7
|
+
maxDate: string;
|
|
8
|
+
enableTimePicker?: boolean;
|
|
9
|
+
}
|
|
10
|
+
type __VLS_Props = DatePickerSliderProps;
|
|
11
|
+
type __VLS_PublicProps = {
|
|
12
|
+
modelValue?: string[];
|
|
13
|
+
} & __VLS_Props;
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
slots: {
|
|
17
|
+
default?(_: {}): any;
|
|
18
|
+
};
|
|
19
|
+
refs: {};
|
|
20
|
+
rootEl: HTMLDivElement;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
"update:modelValue": (value: string[]) => any;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as dayjs } from 'dayjs';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
export declare function useDatePicker(modelValue?: Ref<string[]>): {
|
|
4
|
+
today: string;
|
|
5
|
+
yesterday: string;
|
|
6
|
+
weekAgo: string;
|
|
7
|
+
startOfMonth: string;
|
|
8
|
+
startOfYear: string;
|
|
9
|
+
dayjs: typeof dayjs;
|
|
10
|
+
modelValueFormat: import('vue').ComputedRef<string>;
|
|
11
|
+
inputFormat: import('vue').ComputedRef<string>;
|
|
12
|
+
quarterAgo: string;
|
|
13
|
+
beginDate: import('vue').ComputedRef<string>;
|
|
14
|
+
startDate: import('vue').ComputedRef<dayjs.Dayjs | null>;
|
|
15
|
+
endDate: import('vue').ComputedRef<dayjs.Dayjs | null>;
|
|
16
|
+
monthAgo: string;
|
|
17
|
+
yearAgo: string;
|
|
18
|
+
checkIsValidDate: () => boolean;
|
|
19
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
|
2
|
+
import { ComputedRef } from 'vue';
|
|
3
|
+
import { PresetModel, DatepickerSwapRange } from '../types';
|
|
4
|
+
export declare function useDatePickerSelected(params: {
|
|
5
|
+
presets: ComputedRef<PresetModel[]>;
|
|
6
|
+
startDate: ComputedRef<Dayjs | null>;
|
|
7
|
+
endDate: ComputedRef<Dayjs | null>;
|
|
8
|
+
minDate: ComputedRef<string | undefined>;
|
|
9
|
+
maxDate: ComputedRef<string | undefined>;
|
|
10
|
+
locale?: ComputedRef<string>;
|
|
11
|
+
enableTimePicker?: ComputedRef<boolean>;
|
|
12
|
+
}): {
|
|
13
|
+
selectedPreset: ComputedRef<PresetModel | undefined>;
|
|
14
|
+
formattedSelectedDate: ComputedRef<string[]>;
|
|
15
|
+
isAllTimeSelected: ComputedRef<boolean>;
|
|
16
|
+
selectedRange: ComputedRef<DatepickerSwapRange | undefined>;
|
|
17
|
+
selectedDate: ComputedRef<string>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ManipulateType } from 'dayjs';
|
|
2
|
+
export type DatepickerSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
3
|
+
export interface UiDatepickerRangeProps {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
locale?: string;
|
|
6
|
+
beginDate?: string | null;
|
|
7
|
+
size?: DatepickerSize;
|
|
8
|
+
clearable?: boolean;
|
|
9
|
+
autoApply?: boolean;
|
|
10
|
+
maxDate?: string;
|
|
11
|
+
minDate?: string;
|
|
12
|
+
timezone?: string;
|
|
13
|
+
single?: boolean;
|
|
14
|
+
hideSliderArrows?: boolean;
|
|
15
|
+
enableTimePicker?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type DatepickerSwapRange = "week" | "month" | "year";
|
|
18
|
+
export interface PresetModel {
|
|
19
|
+
label: string;
|
|
20
|
+
date: string[];
|
|
21
|
+
id: string;
|
|
22
|
+
slider?: {
|
|
23
|
+
type: ManipulateType;
|
|
24
|
+
count: number;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FileToUpload, UiDragAndDropProps } from './types';
|
|
2
|
+
type __VLS_Props = UiDragAndDropProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: FileToUpload[];
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: FileToUpload[]) => any;
|
|
8
|
+
} & {
|
|
9
|
+
cancel: (id: string) => any;
|
|
10
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
+
"onUpdate:modelValue"?: ((value: FileToUpload[]) => any) | undefined;
|
|
12
|
+
onCancel?: ((id: string) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
multiple: boolean;
|
|
15
|
+
extensions: string[];
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
17
|
+
dropAreaRef: HTMLDivElement;
|
|
18
|
+
}, HTMLDivElement>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FileToUpload } from './types.ts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
file: FileToUpload;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
remove: (id: string) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onRemove?: ((id: string) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FileToUpload } from './types.ts';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
file: FileToUpload;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
6
|
+
cancel: (id: string) => any;
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onCancel?: ((id: string) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_PublicProps = {
|
|
2
|
+
modelValue?: number;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"update:modelValue": (value: number) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
|
+
export default _default;
|
|
@@ -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, {}, SVGSVGElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface UiDragAndDropProps {
|
|
2
|
+
loading?: boolean;
|
|
3
|
+
extensions?: string[];
|
|
4
|
+
multiple?: boolean;
|
|
5
|
+
id?: string;
|
|
6
|
+
}
|
|
7
|
+
export type FileToUpload = {
|
|
8
|
+
id: string;
|
|
9
|
+
file: File;
|
|
10
|
+
percent: number;
|
|
11
|
+
status: "default" | "loading" | "error" | "canceled";
|
|
12
|
+
additionalInfo?: Record<string, unknown>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UiDrawerProps } from './types.ts';
|
|
2
|
+
type __VLS_Props = UiDrawerProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
modelValue?: boolean;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (value: boolean) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
size: string;
|
|
21
|
+
direction: import('./types.ts').DrawerDirection;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { UiDropdownProps } from './types';
|
|
2
|
+
type __VLS_Props = UiDropdownProps;
|
|
3
|
+
declare function open(): void;
|
|
4
|
+
declare function close(): void;
|
|
5
|
+
type __VLS_PublicProps = {
|
|
6
|
+
"modelValue"?: boolean;
|
|
7
|
+
} & __VLS_Props;
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
reference?(_: {}): any;
|
|
12
|
+
default?(_: {}): any;
|
|
13
|
+
};
|
|
14
|
+
refs: {
|
|
15
|
+
dropdownRef: HTMLDivElement;
|
|
16
|
+
contentRefer: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
rootEl: HTMLDivElement;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
22
|
+
open: typeof open;
|
|
23
|
+
close: typeof close;
|
|
24
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
close: (...args: any[]) => void;
|
|
26
|
+
open: (...args: any[]) => void;
|
|
27
|
+
"update:modelValue": (value: boolean) => void;
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
30
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
31
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
teleport: string | boolean;
|
|
34
|
+
placement: import('../UiTooltip/types').UiPlacementType;
|
|
35
|
+
fitContentWidth: boolean;
|
|
36
|
+
trigger: import('./types').UiDropdownTrigger;
|
|
37
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
38
|
+
dropdownRef: HTMLDivElement;
|
|
39
|
+
contentRefer: HTMLDivElement;
|
|
40
|
+
}, HTMLDivElement>;
|
|
41
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OffsetOptions } from '@floating-ui/vue';
|
|
2
|
+
import { UiPlacementType } from '../UiTooltip/types.ts';
|
|
3
|
+
export type UiDropdownTrigger = "click" | "hover";
|
|
4
|
+
export type UiDropdownMode = "custom";
|
|
5
|
+
export interface UiDropdownProps {
|
|
6
|
+
popperClass?: string | string[];
|
|
7
|
+
offset?: OffsetOptions;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
trigger?: UiDropdownTrigger;
|
|
10
|
+
fitContentWidth?: boolean;
|
|
11
|
+
placement?: UiPlacementType;
|
|
12
|
+
teleport?: string | boolean;
|
|
13
|
+
mode?: UiDropdownMode;
|
|
14
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FlagIconProps } from './types.ts';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<FlagIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FlagIconProps> & Readonly<{}>, {
|
|
3
|
+
isSmall: boolean;
|
|
4
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UiFormProps } from './types';
|
|
2
|
+
declare function validate(): boolean | undefined;
|
|
3
|
+
declare function resetValidate(): void;
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
attrs: Partial<{}>;
|
|
6
|
+
slots: {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
refs: {};
|
|
10
|
+
rootEl: HTMLFormElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<UiFormProps, {
|
|
14
|
+
validate: typeof validate;
|
|
15
|
+
resetValidate: typeof resetValidate;
|
|
16
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiFormProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLFormElement>;
|
|
17
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FORM_PROVIDE_VALUE: unique symbol;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface UiFormProps {
|
|
2
|
+
model?: Record<string, string | unknown>;
|
|
3
|
+
rules?: UiFormRules;
|
|
4
|
+
}
|
|
5
|
+
export interface UiFormRules {
|
|
6
|
+
[key: string]: UiFormRule[];
|
|
7
|
+
}
|
|
8
|
+
export interface UiFormRule {
|
|
9
|
+
required?: boolean;
|
|
10
|
+
min?: number;
|
|
11
|
+
max?: number;
|
|
12
|
+
email?: boolean;
|
|
13
|
+
validator?: () => boolean;
|
|
14
|
+
message: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UiFormRule } from './types';
|
|
2
|
+
export declare function useValidation(models: Record<string, unknown>): {
|
|
3
|
+
validation: (fieldName: string, fieldValue: string, rule: UiFormRule) => void;
|
|
4
|
+
errors: import('vue').Ref<Record<string, string[]>, Record<string, string[]>>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UiFormItemProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
label?(_: {}): any;
|
|
6
|
+
default?(_: {
|
|
7
|
+
id: string | undefined;
|
|
8
|
+
}): any;
|
|
9
|
+
notation?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {
|
|
12
|
+
formItemRef: HTMLDivElement;
|
|
13
|
+
};
|
|
14
|
+
rootEl: HTMLDivElement;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<UiFormItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiFormItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
|
+
formItemRef: HTMLDivElement;
|
|
19
|
+
}, HTMLDivElement>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { UiFormRules } from '../UiForm/types';
|
|
3
|
+
export interface UiFormItemProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
notation?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface UiFormItemProvideData {
|
|
11
|
+
model?: Record<string, string>;
|
|
12
|
+
rules?: UiFormRules;
|
|
13
|
+
errors: Record<string, string[]>;
|
|
14
|
+
validateField: (value: string) => void;
|
|
15
|
+
formSubmitCounts: Ref<number>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UiGalleryProps } from './types';
|
|
2
|
+
type __VLS_Props = UiGalleryProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
"modelValue": boolean;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: boolean) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UiIconProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<UiIconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiIconProps> & Readonly<{}>, {
|
|
3
|
+
size: import('./types').UiIconSize;
|
|
4
|
+
color: string;
|
|
5
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UiIconButtonProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<UiIconButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiIconButtonProps> & Readonly<{}>, {
|
|
3
|
+
size: import('./types').UiIconButtonSize;
|
|
4
|
+
type: import('./types').UiIconButtonType;
|
|
5
|
+
mode: import('./types').UiIconButtonMode;
|
|
6
|
+
nativeType: import('./types').UiIconButtonNativeType;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
to: string | import('vue-router').RouteLocationAsRelativeGeneric | import('vue-router').RouteLocationAsPathGeneric;
|
|
9
|
+
href: string;
|
|
10
|
+
iconName: string;
|
|
11
|
+
iconType: import('../UiIcon/types').UiIconType;
|
|
12
|
+
noSize: boolean;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RouteLocationAsPathGeneric, RouteLocationAsRelativeGeneric } from 'vue-router';
|
|
2
|
+
import { UiIconType } from '../UiIcon/types';
|
|
3
|
+
export type UiIconButtonMode = "square" | "circle";
|
|
4
|
+
export type UiIconButtonNativeType = "button" | "submit" | "reset";
|
|
5
|
+
export type UiIconButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
6
|
+
export type UiIconButtonType = "contrast" | "accent" | "tint" | "positive" | "positive-tint" | "negative" | "negative-tint" | "clear";
|
|
7
|
+
export interface UiIconButtonProps {
|
|
8
|
+
mode?: UiIconButtonMode;
|
|
9
|
+
type?: UiIconButtonType;
|
|
10
|
+
size?: UiIconButtonSize;
|
|
11
|
+
iconName: string;
|
|
12
|
+
iconType?: UiIconType;
|
|
13
|
+
iconColor?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
noSize?: boolean;
|
|
17
|
+
to?: string | RouteLocationAsRelativeGeneric | RouteLocationAsPathGeneric;
|
|
18
|
+
href?: string;
|
|
19
|
+
nativeType?: UiIconButtonNativeType;
|
|
20
|
+
containerSmall?: boolean;
|
|
21
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { InputProps } from './types';
|
|
2
|
+
type __VLS_Props = InputProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
"modelValue"?: string | null | number | undefined;
|
|
5
|
+
} & __VLS_Props;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
slots: {
|
|
9
|
+
prepend?(_: {}): any;
|
|
10
|
+
append?(_: {}): any;
|
|
11
|
+
};
|
|
12
|
+
refs: {
|
|
13
|
+
prependRef: HTMLDivElement;
|
|
14
|
+
inputRef: HTMLInputElement;
|
|
15
|
+
appendRef: HTMLDivElement;
|
|
16
|
+
};
|
|
17
|
+
rootEl: HTMLDivElement;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
21
|
+
focus: () => any;
|
|
22
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
+
clear: (args_0: void) => any;
|
|
24
|
+
input: (args_0: string) => any;
|
|
25
|
+
"update:modelValue": (value: string | number | null | undefined) => any;
|
|
26
|
+
change: (args_0: void) => any;
|
|
27
|
+
blur: (args_0: void) => any;
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
|
+
onClear?: ((args_0?: void | undefined) => any) | undefined;
|
|
30
|
+
onInput?: ((args_0: string) => any) | undefined;
|
|
31
|
+
"onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
32
|
+
onChange?: ((args_0?: void | undefined) => any) | undefined;
|
|
33
|
+
onBlur?: ((args_0?: void | undefined) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
size: import('./types').InputSize;
|
|
36
|
+
type: string;
|
|
37
|
+
indexTab: string;
|
|
38
|
+
autocomplete: string;
|
|
39
|
+
step: string;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
41
|
+
prependRef: HTMLDivElement;
|
|
42
|
+
inputRef: HTMLInputElement;
|
|
43
|
+
appendRef: HTMLDivElement;
|
|
44
|
+
}, HTMLDivElement>;
|
|
45
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
46
|
+
export default _default;
|
|
47
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
48
|
+
new (): {
|
|
49
|
+
$slots: S;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type InputSize = "sm" | "md" | "lg" | "xl";
|
|
2
|
+
export interface InputProps {
|
|
3
|
+
isDisabled?: boolean;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
size?: InputSize;
|
|
7
|
+
filled?: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
inside?: boolean;
|
|
11
|
+
type?: string;
|
|
12
|
+
readonly?: boolean;
|
|
13
|
+
readonlyInteractive?: boolean;
|
|
14
|
+
autofocus?: boolean;
|
|
15
|
+
clearable?: boolean;
|
|
16
|
+
isEmptyValueNull?: boolean;
|
|
17
|
+
id?: string;
|
|
18
|
+
indexTab?: string;
|
|
19
|
+
autocomplete?: string;
|
|
20
|
+
showPassword?: boolean;
|
|
21
|
+
name?: string;
|
|
22
|
+
step?: string;
|
|
23
|
+
}
|