beeple-toolkit 0.1.0 → 1.0.1
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/beeple-toolkit.css +1 -1
- package/dist/beeple-toolkit.es.js +10927 -80
- package/dist/beeple-toolkit.umd.js +5 -1
- package/dist/components/Avatar/Avatar.vue.d.ts +8 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +5 -0
- package/dist/components/Breadcrumbs/index.d.ts +1 -0
- package/dist/components/Button/Button.vue.d.ts +25 -22
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/CheckboxInput/CheckboxInput.vue.d.ts +14 -0
- package/dist/components/CheckboxInput/index.d.ts +1 -0
- package/dist/components/ContextCard/ContextCard.vue.d.ts +21 -0
- package/dist/components/ContextCard/index.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.vue.d.ts +33 -0
- package/dist/components/DatePicker/DatePickerActions.vue.d.ts +9 -0
- package/dist/components/DatePicker/DatePickerCalendarSection.vue.d.ts +36 -0
- package/dist/components/DatePicker/DatePickerHeader.vue.d.ts +27 -0
- package/dist/components/DatePicker/DatePickerNavigation.vue.d.ts +23 -0
- package/dist/components/DatePicker/DatePickerPanel.vue.d.ts +49 -0
- package/dist/components/DatePicker/DatePickerTimeSection.vue.d.ts +22 -0
- package/dist/components/DatePicker/dateUtils.d.ts +53 -0
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/DatePicker/locales.d.ts +24 -0
- package/dist/components/DropDown/DropDown.vue.d.ts +34 -0
- package/dist/components/DropDown/DropDownMenu.vue.d.ts +61 -0
- package/dist/components/DropDown/DropDownMenuItem.vue.d.ts +26 -0
- package/dist/components/DropDown/DropDownTrigger.vue.d.ts +39 -0
- package/dist/components/DropDown/index.d.ts +1 -0
- package/dist/components/FilterButton/FilterButton.vue.d.ts +27 -0
- package/dist/components/FilterButton/FilterButtonTrigger.vue.d.ts +21 -0
- package/dist/components/FilterButton/index.d.ts +1 -0
- package/dist/components/Icon/Icon.vue.d.ts +8 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Input/Input.vue.d.ts +41 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/KeyboardInput/KeyboardInput.vue.d.ts +13 -0
- package/dist/components/KeyboardInput/index.d.ts +1 -0
- package/dist/components/Label/Label.vue.d.ts +8 -0
- package/dist/components/Label/index.d.ts +1 -0
- package/dist/components/Menu/Menu.vue.d.ts +24 -0
- package/dist/components/Menu/index.d.ts +1 -0
- package/dist/components/Modal/Modal.vue.d.ts +30 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/ProgressBar/ProgressBar.vue.d.ts +11 -0
- package/dist/components/ProgressBar/index.d.ts +1 -0
- package/dist/components/RadioInput/RadioInput.vue.d.ts +12 -0
- package/dist/components/RadioInput/index.d.ts +1 -0
- package/dist/components/Slider/Slider.vue.d.ts +17 -0
- package/dist/components/Slider/index.d.ts +1 -0
- package/dist/components/StatusDot/StatusDot.vue.d.ts +10 -0
- package/dist/components/StatusDot/index.d.ts +1 -0
- package/dist/components/Switch/Switch.vue.d.ts +19 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/TeamCard/TeamCard.vue.d.ts +18 -0
- package/dist/components/TeamCard/TeamCardBody.vue.d.ts +20 -0
- package/dist/components/TeamCard/TeamCardHeader.vue.d.ts +17 -0
- package/dist/components/TeamCard/TeamCardMenu.vue.d.ts +19 -0
- package/dist/components/TeamCard/TeamCardRoles.vue.d.ts +7 -0
- package/dist/components/TeamCard/index.d.ts +1 -0
- package/dist/components/Textarea/Textarea.vue.d.ts +17 -0
- package/dist/components/Textarea/index.d.ts +1 -0
- package/dist/components/TimeInput/TimeInput.vue.d.ts +19 -0
- package/dist/components/TimeInput/index.d.ts +1 -0
- package/dist/components/Toast/Toast.vue.d.ts +17 -0
- package/dist/components/{Page/Page.vue.d.ts → Toast/ToastContainer.vue.d.ts} +1 -1
- package/dist/components/Toast/index.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.vue.d.ts +21 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Typography/Subtitle.vue.d.ts +17 -0
- package/dist/components/Typography/Text.vue.d.ts +20 -0
- package/dist/components/Typography/Title.vue.d.ts +17 -0
- package/dist/components/constants.d.ts +19 -0
- package/dist/components/index.d.ts +32 -3
- package/dist/components/types.d.ts +295 -0
- package/dist/main.d.ts +1 -0
- package/dist/stores/index.d.ts +2 -0
- package/dist/stores/toast.d.ts +142 -0
- package/package.json +33 -13
- package/dist/components/Header/Header.vue.d.ts +0 -17
- package/dist/favicon.ico +0 -0
- package/dist/vite.svg +0 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AvatarProps } from '../types';
|
|
2
|
+
import './avatar.css';
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<AvatarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
|
|
4
|
+
size: "xxx-small" | "xx-small" | "x-small" | "small" | "medium" | "large";
|
|
5
|
+
alt: string;
|
|
6
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Avatar.vue';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { BreadcrumbsProps } from '../types';
|
|
2
|
+
import './breadcrumbs.css';
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<BreadcrumbsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<BreadcrumbsProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
4
|
+
declare const _default: typeof __VLS_export;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Breadcrumbs.vue';
|
|
@@ -1,28 +1,31 @@
|
|
|
1
|
+
import type { ButtonProps } from '../types';
|
|
2
|
+
import type { ButtonType, ButtonSize } from '../constants';
|
|
1
3
|
import './button.css';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
primary?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* size of the button
|
|
13
|
-
*/
|
|
14
|
-
size?: 'small' | 'medium' | 'large';
|
|
15
|
-
/**
|
|
16
|
-
* background color of the button
|
|
17
|
-
*/
|
|
18
|
-
backgroundColor?: string;
|
|
4
|
+
declare var __VLS_10: {}, __VLS_12: {}, __VLS_14: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
leadingIcon?: (props: typeof __VLS_10) => any;
|
|
7
|
+
} & {
|
|
8
|
+
textIcon?: (props: typeof __VLS_12) => any;
|
|
9
|
+
} & {
|
|
10
|
+
trailingIcon?: (props: typeof __VLS_14) => any;
|
|
19
11
|
};
|
|
20
|
-
declare const
|
|
21
|
-
click: (
|
|
22
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
23
|
-
onClick?: ((
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
click: (event: MouseEvent) => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
15
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
24
16
|
}>, {
|
|
25
|
-
|
|
17
|
+
type: ButtonType;
|
|
18
|
+
size: ButtonSize;
|
|
19
|
+
iconVariant: "leading" | "text" | "trailing";
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
isLoading: boolean;
|
|
22
|
+
isActive: boolean;
|
|
26
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
25
|
declare const _default: typeof __VLS_export;
|
|
28
26
|
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Button.vue';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CheckboxInputProps } from '../types';
|
|
2
|
+
import './checkbox.css';
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<CheckboxInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
"update:checked": (checked: boolean) => any;
|
|
5
|
+
change: (checked: boolean) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<CheckboxInputProps> & Readonly<{
|
|
7
|
+
"onUpdate:checked"?: ((checked: boolean) => any) | undefined;
|
|
8
|
+
onChange?: ((checked: boolean) => any) | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
checked: boolean;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CheckboxInput.vue';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ContextCardProps } from '../types';
|
|
2
|
+
import './contextCard.css';
|
|
3
|
+
declare var __VLS_1: {}, __VLS_15: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
default?: (props: typeof __VLS_1) => any;
|
|
6
|
+
} & {
|
|
7
|
+
content?: (props: typeof __VLS_15) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<ContextCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContextCardProps> & Readonly<{}>, {
|
|
10
|
+
color: "light" | "dark";
|
|
11
|
+
position: "top-left" | "top-middle" | "top-right" | "bottom-left" | "bottom-middle" | "bottom-right" | "left-top" | "left-middle" | "left-bottom" | "right-top" | "right-middle" | "right-bottom";
|
|
12
|
+
delay: number;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ContextCard.vue';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
type DatePickerValue = Date | {
|
|
2
|
+
start: Date;
|
|
3
|
+
end: Date;
|
|
4
|
+
} | {
|
|
5
|
+
date: Date;
|
|
6
|
+
startTime: Date;
|
|
7
|
+
endTime: Date;
|
|
8
|
+
} | null;
|
|
9
|
+
import type { DatePickerProps } from '../types';
|
|
10
|
+
import './datepicker.css';
|
|
11
|
+
declare var __VLS_1: {};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
trigger?: (props: typeof __VLS_1) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<DatePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (value: DatePickerValue) => any;
|
|
17
|
+
change: (value: DatePickerValue) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<DatePickerProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: DatePickerValue) => any) | undefined;
|
|
20
|
+
onChange?: ((value: DatePickerValue) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
locale: import("./locales").DatePickerLocale;
|
|
23
|
+
placeholder: string;
|
|
24
|
+
variant: import("../types").DatePickerVariant;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
cancel: () => any;
|
|
3
|
+
apply: () => any;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
5
|
+
onCancel?: (() => any) | undefined;
|
|
6
|
+
onApply?: (() => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type CalendarDay } from './dateUtils';
|
|
2
|
+
import { type DatePickerLocale } from './locales';
|
|
3
|
+
interface DatePickerCalendarSectionProps {
|
|
4
|
+
inputValue: string;
|
|
5
|
+
inputEndValue?: string;
|
|
6
|
+
calendarDays: CalendarDay[];
|
|
7
|
+
isRange?: boolean;
|
|
8
|
+
isInputError?: boolean;
|
|
9
|
+
isInputEndError?: boolean;
|
|
10
|
+
locale?: DatePickerLocale;
|
|
11
|
+
}
|
|
12
|
+
declare const __VLS_export: import("vue").DefineComponent<DatePickerCalendarSectionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:inputValue": (value: string) => any;
|
|
14
|
+
"update:inputEndValue": (value: string) => any;
|
|
15
|
+
inputEnter: () => any;
|
|
16
|
+
inputEndEnter: () => any;
|
|
17
|
+
inputBlur: () => any;
|
|
18
|
+
inputEndBlur: () => any;
|
|
19
|
+
selectDate: (date: Date) => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<DatePickerCalendarSectionProps> & Readonly<{
|
|
21
|
+
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
|
22
|
+
"onUpdate:inputEndValue"?: ((value: string) => any) | undefined;
|
|
23
|
+
onInputEnter?: (() => any) | undefined;
|
|
24
|
+
onInputEndEnter?: (() => any) | undefined;
|
|
25
|
+
onInputBlur?: (() => any) | undefined;
|
|
26
|
+
onInputEndBlur?: (() => any) | undefined;
|
|
27
|
+
onSelectDate?: ((date: Date) => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
locale: DatePickerLocale;
|
|
30
|
+
inputEndValue: string;
|
|
31
|
+
isRange: boolean;
|
|
32
|
+
isInputError: boolean;
|
|
33
|
+
isInputEndError: boolean;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type DatePickerLocale } from './locales';
|
|
2
|
+
interface DatePickerHeaderProps {
|
|
3
|
+
month: string;
|
|
4
|
+
year: string;
|
|
5
|
+
locale?: DatePickerLocale;
|
|
6
|
+
view?: 'calendar' | 'month' | 'year';
|
|
7
|
+
}
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<DatePickerHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
previousYear: () => any;
|
|
10
|
+
previousMonth: () => any;
|
|
11
|
+
nextMonth: () => any;
|
|
12
|
+
nextYear: () => any;
|
|
13
|
+
selectMonth: () => any;
|
|
14
|
+
selectYear: () => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<DatePickerHeaderProps> & Readonly<{
|
|
16
|
+
onPreviousYear?: (() => any) | undefined;
|
|
17
|
+
onPreviousMonth?: (() => any) | undefined;
|
|
18
|
+
onNextMonth?: (() => any) | undefined;
|
|
19
|
+
onNextYear?: (() => any) | undefined;
|
|
20
|
+
onSelectMonth?: (() => any) | undefined;
|
|
21
|
+
onSelectYear?: (() => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
locale: DatePickerLocale;
|
|
24
|
+
view: "calendar" | "month" | "year";
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { DatePickerLocale } from './locales';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
locale?: DatePickerLocale;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
selectThisWeek: () => any;
|
|
7
|
+
selectPreviousWeek: () => any;
|
|
8
|
+
selectNextWeek: () => any;
|
|
9
|
+
selectThisMonth: () => any;
|
|
10
|
+
selectPreviousMonth: () => any;
|
|
11
|
+
selectNextMonth: () => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onSelectThisWeek?: (() => any) | undefined;
|
|
14
|
+
onSelectPreviousWeek?: (() => any) | undefined;
|
|
15
|
+
onSelectNextWeek?: (() => any) | undefined;
|
|
16
|
+
onSelectThisMonth?: (() => any) | undefined;
|
|
17
|
+
onSelectPreviousMonth?: (() => any) | undefined;
|
|
18
|
+
onSelectNextMonth?: (() => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
locale: DatePickerLocale;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { DatePickerVariant, DatePickerTranslations } from '../types';
|
|
2
|
+
import { type DatePickerLocale } from './locales';
|
|
3
|
+
type DatePickerValue = Date | {
|
|
4
|
+
start: Date;
|
|
5
|
+
end: Date;
|
|
6
|
+
} | {
|
|
7
|
+
date: Date;
|
|
8
|
+
startTime: Date;
|
|
9
|
+
endTime: Date;
|
|
10
|
+
} | null;
|
|
11
|
+
export interface DatePickerPanelProps {
|
|
12
|
+
variant?: DatePickerVariant;
|
|
13
|
+
modelValue?: DatePickerValue;
|
|
14
|
+
isShowActions?: boolean;
|
|
15
|
+
isExtended?: boolean;
|
|
16
|
+
minDate?: Date;
|
|
17
|
+
maxDate?: Date;
|
|
18
|
+
defaultStartHours?: string;
|
|
19
|
+
defaultStartMinutes?: string;
|
|
20
|
+
defaultEndHours?: string;
|
|
21
|
+
defaultEndMinutes?: string;
|
|
22
|
+
locale?: DatePickerLocale;
|
|
23
|
+
translations?: DatePickerTranslations;
|
|
24
|
+
timezone?: string;
|
|
25
|
+
}
|
|
26
|
+
declare const __VLS_export: import("vue").DefineComponent<DatePickerPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
"update:modelValue": (value: DatePickerValue) => any;
|
|
28
|
+
cancel: () => any;
|
|
29
|
+
apply: (value: DatePickerValue) => any;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<DatePickerPanelProps> & Readonly<{
|
|
31
|
+
"onUpdate:modelValue"?: ((value: DatePickerValue) => any) | undefined;
|
|
32
|
+
onCancel?: (() => any) | undefined;
|
|
33
|
+
onApply?: ((value: DatePickerValue) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
locale: DatePickerLocale;
|
|
36
|
+
modelValue: DatePickerValue;
|
|
37
|
+
variant: DatePickerVariant;
|
|
38
|
+
isShowActions: boolean;
|
|
39
|
+
isExtended: boolean;
|
|
40
|
+
minDate: Date;
|
|
41
|
+
maxDate: Date;
|
|
42
|
+
defaultStartHours: string;
|
|
43
|
+
defaultStartMinutes: string;
|
|
44
|
+
defaultEndHours: string;
|
|
45
|
+
defaultEndMinutes: string;
|
|
46
|
+
timezone: string;
|
|
47
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
|
+
declare const _default: typeof __VLS_export;
|
|
49
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { DatePickerVariant, DatePickerTranslations } from '../types';
|
|
2
|
+
interface DatePickerTimeSectionProps {
|
|
3
|
+
variant: DatePickerVariant;
|
|
4
|
+
startHours: string;
|
|
5
|
+
startMinutes: string;
|
|
6
|
+
endHours: string;
|
|
7
|
+
endMinutes: string;
|
|
8
|
+
translations?: DatePickerTranslations;
|
|
9
|
+
}
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<DatePickerTimeSectionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:startHours": (value: string) => any;
|
|
12
|
+
"update:startMinutes": (value: string) => any;
|
|
13
|
+
"update:endHours": (value: string) => any;
|
|
14
|
+
"update:endMinutes": (value: string) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<DatePickerTimeSectionProps> & Readonly<{
|
|
16
|
+
"onUpdate:startHours"?: ((value: string) => any) | undefined;
|
|
17
|
+
"onUpdate:startMinutes"?: ((value: string) => any) | undefined;
|
|
18
|
+
"onUpdate:endHours"?: ((value: string) => any) | undefined;
|
|
19
|
+
"onUpdate:endMinutes"?: ((value: string) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { Locale } from 'date-fns';
|
|
2
|
+
import type { DatePickerVariant } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Returns midnight of today's date in the given IANA timezone (or local time if omitted)
|
|
5
|
+
*/
|
|
6
|
+
export declare function getTodayInTimezone(timezone?: string): Date;
|
|
7
|
+
/**
|
|
8
|
+
* Parses a date string in DD/MM/YYYY format
|
|
9
|
+
* @param dateStr - Date string to parse
|
|
10
|
+
* @returns Parsed date or null if invalid
|
|
11
|
+
*/
|
|
12
|
+
export declare function parseDateString(dateStr: string): Date | null;
|
|
13
|
+
/**
|
|
14
|
+
* Formats date input with validation and auto-formatting
|
|
15
|
+
* @param value - Raw input value
|
|
16
|
+
* @returns Formatted date string in DD/MM/YYYY format
|
|
17
|
+
*/
|
|
18
|
+
export declare function formatDateInput(value: string): string;
|
|
19
|
+
export interface CalendarDay {
|
|
20
|
+
date: Date;
|
|
21
|
+
day: string;
|
|
22
|
+
isCurrentMonth: boolean;
|
|
23
|
+
isToday: boolean;
|
|
24
|
+
isSelected: boolean;
|
|
25
|
+
isInRange: boolean;
|
|
26
|
+
isDisabled: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface DayGroup {
|
|
29
|
+
isRangeGroup: boolean;
|
|
30
|
+
days?: CalendarDay[];
|
|
31
|
+
day?: CalendarDay;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Groups calendar days into 5 rows × 7 columns with range highlighting
|
|
35
|
+
* @param calendarDays - Array of calendar days
|
|
36
|
+
* @returns Grouped days organized by weeks with range groups
|
|
37
|
+
*/
|
|
38
|
+
export declare function groupCalendarDays(calendarDays: CalendarDay[]): DayGroup[][];
|
|
39
|
+
/**
|
|
40
|
+
* Formats the display value for the date picker based on variant and model value
|
|
41
|
+
* @param modelValue - The current value of the date picker
|
|
42
|
+
* @param variant - The date picker variant
|
|
43
|
+
* @param dateFnsLocale - The date-fns locale to use for formatting
|
|
44
|
+
* @returns Formatted display string
|
|
45
|
+
*/
|
|
46
|
+
export declare function formatDatePickerDisplayValue(modelValue: Date | {
|
|
47
|
+
start: Date;
|
|
48
|
+
end: Date;
|
|
49
|
+
} | {
|
|
50
|
+
date: Date;
|
|
51
|
+
startTime: Date;
|
|
52
|
+
endTime: Date;
|
|
53
|
+
} | null | undefined, variant: DatePickerVariant, dateFnsLocale: Locale): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DatePicker.vue';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Locale } from 'date-fns';
|
|
2
|
+
export type DatePickerLocale = 'de-DE' | 'en-US' | 'en-GB' | 'es-ES' | 'fr-FR' | 'it-IT' | 'nl-NL' | 'pl-PL' | 'pt-PT' | 'uk-UA' | 'zh-CN';
|
|
3
|
+
export interface LocaleConfig {
|
|
4
|
+
weekStartsOn: 0 | 1;
|
|
5
|
+
weekDays: string[];
|
|
6
|
+
tooltips: {
|
|
7
|
+
previousYear: string;
|
|
8
|
+
previousMonth: string;
|
|
9
|
+
nextMonth: string;
|
|
10
|
+
nextYear: string;
|
|
11
|
+
};
|
|
12
|
+
navigation: {
|
|
13
|
+
weekTitle: string;
|
|
14
|
+
monthTitle: string;
|
|
15
|
+
thisWeek: string;
|
|
16
|
+
previousWeek: string;
|
|
17
|
+
nextWeek: string;
|
|
18
|
+
thisMonth: string;
|
|
19
|
+
previousMonth: string;
|
|
20
|
+
nextMonth: string;
|
|
21
|
+
};
|
|
22
|
+
dateFnsLocale: Locale;
|
|
23
|
+
}
|
|
24
|
+
export declare const LOCALE_CONFIGS: Record<DatePickerLocale, LocaleConfig>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { DropDownProps } from '../types';
|
|
2
|
+
import './dropdown.css';
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<DropDownProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
search: (query: string) => any;
|
|
5
|
+
close: () => any;
|
|
6
|
+
"update:modelValue": (value: unknown) => any;
|
|
7
|
+
change: (value: unknown) => any;
|
|
8
|
+
open: () => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<DropDownProps> & Readonly<{
|
|
10
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
11
|
+
onClose?: (() => any) | undefined;
|
|
12
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
13
|
+
onChange?: ((value: unknown) => any) | undefined;
|
|
14
|
+
onOpen?: (() => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
label: string;
|
|
17
|
+
size: "x-small" | "small" | "medium" | "large";
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
isMulti: boolean;
|
|
20
|
+
placeholder: string;
|
|
21
|
+
clearable: boolean;
|
|
22
|
+
isError: boolean;
|
|
23
|
+
errorMessage: string;
|
|
24
|
+
searchable: boolean;
|
|
25
|
+
searchPlaceholder: string;
|
|
26
|
+
selectAllText: string;
|
|
27
|
+
clearAllText: string;
|
|
28
|
+
noOptionsText: string;
|
|
29
|
+
optionLabel: string;
|
|
30
|
+
optionValue: string;
|
|
31
|
+
maxHeight: string;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type StyleValue } from 'vue';
|
|
2
|
+
import type { DropDownOption } from '../types';
|
|
3
|
+
interface DropDownMenuProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
dropdownStyle: StyleValue;
|
|
6
|
+
isMulti: boolean;
|
|
7
|
+
searchable: boolean;
|
|
8
|
+
searchPlaceholder: string;
|
|
9
|
+
searchQuery: string;
|
|
10
|
+
selectAllText: string;
|
|
11
|
+
clearAllText: string;
|
|
12
|
+
areAllOptionsSelected: boolean;
|
|
13
|
+
filteredOptions: Array<string | number | DropDownOption | Record<string, unknown>>;
|
|
14
|
+
highlightedIndex: number;
|
|
15
|
+
noOptionsText: string;
|
|
16
|
+
optionLabel: string;
|
|
17
|
+
optionValue: string;
|
|
18
|
+
getOptionKey: (option: string | number | DropDownOption | Record<string, unknown>) => string;
|
|
19
|
+
getOptionLabel: (option: string | number | DropDownOption | Record<string, unknown>) => string;
|
|
20
|
+
getOptionAvatar: (option: string | number | DropDownOption | Record<string, unknown>) => {
|
|
21
|
+
photo?: string;
|
|
22
|
+
fullName?: string;
|
|
23
|
+
} | undefined;
|
|
24
|
+
getOptionAvatarAlt: (option: string | number | DropDownOption | Record<string, unknown>) => string | undefined;
|
|
25
|
+
getOptionLeadingIcon: (option: string | number | DropDownOption | Record<string, unknown>) => string | undefined;
|
|
26
|
+
getOptionTrailingIcon: (option: string | number | DropDownOption | Record<string, unknown>) => string | undefined;
|
|
27
|
+
getOptionDisabled: (option: string | number | DropDownOption | Record<string, unknown>) => boolean;
|
|
28
|
+
getOptionClickable: (option: string | number | DropDownOption | Record<string, unknown>) => boolean;
|
|
29
|
+
isSelected: (option: string | number | DropDownOption | Record<string, unknown>) => boolean;
|
|
30
|
+
}
|
|
31
|
+
declare const __VLS_export: import("vue").DefineComponent<DropDownMenuProps, {
|
|
32
|
+
dropdownRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
33
|
+
optionsRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
34
|
+
searchRef: import("vue").Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
35
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
close: () => any;
|
|
37
|
+
checkboxChange: (option: string | number | DropDownOption | Record<string, unknown>, checked: boolean) => any;
|
|
38
|
+
selectFirstFiltered: () => any;
|
|
39
|
+
selectHighlighted: () => any;
|
|
40
|
+
navigateDown: () => any;
|
|
41
|
+
navigateUp: () => any;
|
|
42
|
+
selectAll: (checked: boolean) => any;
|
|
43
|
+
clearAll: () => any;
|
|
44
|
+
selectOption: (option: string | number | DropDownOption | Record<string, unknown>) => any;
|
|
45
|
+
setHighlighted: (index: number) => any;
|
|
46
|
+
"update:searchQuery": (value: string) => any;
|
|
47
|
+
}, string, import("vue").PublicProps, Readonly<DropDownMenuProps> & Readonly<{
|
|
48
|
+
onClose?: (() => any) | undefined;
|
|
49
|
+
onCheckboxChange?: ((option: string | number | DropDownOption | Record<string, unknown>, checked: boolean) => any) | undefined;
|
|
50
|
+
onSelectFirstFiltered?: (() => any) | undefined;
|
|
51
|
+
onSelectHighlighted?: (() => any) | undefined;
|
|
52
|
+
onNavigateDown?: (() => any) | undefined;
|
|
53
|
+
onNavigateUp?: (() => any) | undefined;
|
|
54
|
+
onSelectAll?: ((checked: boolean) => any) | undefined;
|
|
55
|
+
onClearAll?: (() => any) | undefined;
|
|
56
|
+
onSelectOption?: ((option: string | number | DropDownOption | Record<string, unknown>) => any) | undefined;
|
|
57
|
+
onSetHighlighted?: ((index: number) => any) | undefined;
|
|
58
|
+
"onUpdate:searchQuery"?: ((value: string) => any) | undefined;
|
|
59
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
60
|
+
declare const _default: typeof __VLS_export;
|
|
61
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { DropDownOption } from '../types';
|
|
2
|
+
interface DropDownMenuItemProps {
|
|
3
|
+
option: string | number | DropDownOption | Record<string, unknown>;
|
|
4
|
+
label: string;
|
|
5
|
+
isMulti: boolean;
|
|
6
|
+
isSelected: boolean;
|
|
7
|
+
isHighlighted: boolean;
|
|
8
|
+
isDisabled: boolean;
|
|
9
|
+
isClickable: boolean;
|
|
10
|
+
avatar?: {
|
|
11
|
+
photo?: string;
|
|
12
|
+
fullName?: string;
|
|
13
|
+
};
|
|
14
|
+
avatarAlt?: string;
|
|
15
|
+
leadingIcon?: string;
|
|
16
|
+
trailingIcon?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const __VLS_export: import("vue").DefineComponent<DropDownMenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
select: (option: string | number | DropDownOption | Record<string, unknown>) => any;
|
|
20
|
+
checkboxChange: (option: string | number | DropDownOption | Record<string, unknown>, checked: boolean) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<DropDownMenuItemProps> & Readonly<{
|
|
22
|
+
onSelect?: ((option: string | number | DropDownOption | Record<string, unknown>) => any) | undefined;
|
|
23
|
+
onCheckboxChange?: ((option: string | number | DropDownOption | Record<string, unknown>, checked: boolean) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
interface DropDownTriggerProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
isMulti: boolean;
|
|
4
|
+
hasValue: boolean;
|
|
5
|
+
modelValue: unknown;
|
|
6
|
+
displayValue?: string;
|
|
7
|
+
selectedOptionAvatar?: {
|
|
8
|
+
photo?: string;
|
|
9
|
+
fullName?: string;
|
|
10
|
+
};
|
|
11
|
+
selectedOptionLeadingIcon?: string;
|
|
12
|
+
placeholder: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
clearable: boolean;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
avatarSize: 'xxx-small' | 'xx-small' | 'x-small' | 'small' | 'medium' | 'large';
|
|
17
|
+
getTagKey: (value: unknown, index: number) => string;
|
|
18
|
+
getTagLabel: (value: unknown) => string;
|
|
19
|
+
getTagAvatar: (value: unknown) => {
|
|
20
|
+
photo?: string;
|
|
21
|
+
fullName?: string;
|
|
22
|
+
} | undefined;
|
|
23
|
+
getTagLeadingIcon: (value: unknown) => string | undefined;
|
|
24
|
+
}
|
|
25
|
+
declare const __VLS_export: import("vue").DefineComponent<DropDownTriggerProps, {
|
|
26
|
+
triggerRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
27
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
toggle: (source: string) => any;
|
|
29
|
+
close: () => any;
|
|
30
|
+
removeTag: (value: unknown) => any;
|
|
31
|
+
clear: (event: Event) => any;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<DropDownTriggerProps> & Readonly<{
|
|
33
|
+
onToggle?: ((source: string) => any) | undefined;
|
|
34
|
+
onClose?: (() => any) | undefined;
|
|
35
|
+
onRemoveTag?: ((value: unknown) => any) | undefined;
|
|
36
|
+
onClear?: ((event: Event) => any) | undefined;
|
|
37
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const _default: typeof __VLS_export;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DropDown.vue';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { FilterButtonProps } from '../types';
|
|
2
|
+
import '../DropDown/dropdown.css';
|
|
3
|
+
import './filterButton.css';
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<FilterButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
+
close: () => any;
|
|
6
|
+
"update:modelValue": (value: unknown) => any;
|
|
7
|
+
change: (value: unknown) => any;
|
|
8
|
+
open: () => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<FilterButtonProps> & Readonly<{
|
|
10
|
+
onClose?: (() => any) | undefined;
|
|
11
|
+
"onUpdate:modelValue"?: ((value: unknown) => any) | undefined;
|
|
12
|
+
onChange?: ((value: unknown) => any) | undefined;
|
|
13
|
+
onOpen?: (() => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
size: import("../constants.ts").ButtonSize;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
searchable: boolean;
|
|
18
|
+
searchPlaceholder: string;
|
|
19
|
+
selectAllText: string;
|
|
20
|
+
clearAllText: string;
|
|
21
|
+
noOptionsText: string;
|
|
22
|
+
optionLabel: string;
|
|
23
|
+
optionValue: string;
|
|
24
|
+
filterName: string;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ButtonSize } from '../constants';
|
|
2
|
+
interface FilterButtonTriggerProps {
|
|
3
|
+
filterName: string;
|
|
4
|
+
selectedCount: number;
|
|
5
|
+
size?: ButtonSize;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
isOpen?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<FilterButtonTriggerProps, {
|
|
10
|
+
triggerRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
clear: () => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<FilterButtonTriggerProps> & Readonly<{
|
|
14
|
+
onClear?: (() => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
size: ButtonSize;
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
isOpen: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './FilterButton.vue';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IconProps } from '../types';
|
|
2
|
+
import 'eva-icons/style/eva-icons.css';
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<IconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IconProps> & Readonly<{}>, {
|
|
4
|
+
size: string | number;
|
|
5
|
+
customSvgComponent: import("vue").DefineComponent;
|
|
6
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Icon.vue';
|