sinde-ui 0.0.0-stage → 1.0.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/LICENSE.md +171 -0
- package/NOTICE +21 -0
- package/README.md +296 -2
- package/THIRD_PARTY_LICENSES.md +131 -0
- package/dist/chunks/use-ui-config-Ckaon2pR.mjs +10 -0
- package/dist/components/SAppShell.vue.d.ts +21 -0
- package/dist/components/SAsideNav.vue.d.ts +27 -0
- package/dist/components/SAvatar.vue.d.ts +21 -0
- package/dist/components/SBtn.vue.d.ts +15 -0
- package/dist/components/SCheckbox.vue.d.ts +24 -0
- package/dist/components/SCopy.vue.d.ts +26 -0
- package/dist/components/SCropper.vue.d.ts +16 -0
- package/dist/components/SDataTable.vue.d.ts +57 -0
- package/dist/components/SDateTimePicker/Calendar.vue.d.ts +40 -0
- package/dist/components/SDateTimePicker/Popover.vue.d.ts +22 -0
- package/dist/components/SDateTimePicker/QuickActions.vue.d.ts +13 -0
- package/dist/components/SDateTimePicker/Time.vue.d.ts +29 -0
- package/dist/components/SDateTimePicker/TimeWheel.vue.d.ts +15 -0
- package/dist/components/SDateTimePicker/index.vue.d.ts +33 -0
- package/dist/components/SDatetime.vue.d.ts +20 -0
- package/dist/components/SDocMarkdown.vue.d.ts +6 -0
- package/dist/components/SField.vue.d.ts +14 -0
- package/dist/components/SFile.vue.d.ts +27 -0
- package/dist/components/SGradation.vue.d.ts +24 -0
- package/dist/components/SIcon.vue.d.ts +8 -0
- package/dist/components/SImage.vue.d.ts +60 -0
- package/dist/components/SInput.vue.d.ts +21 -0
- package/dist/components/SLink.vue.d.ts +16 -0
- package/dist/components/SList.vue.d.ts +19 -0
- package/dist/components/SLoad.vue.d.ts +7 -0
- package/dist/components/SNav.vue.d.ts +13 -0
- package/dist/components/SNotification.vue.d.ts +15 -0
- package/dist/components/SNotificationHost.vue.d.ts +3 -0
- package/dist/components/SRange.vue.d.ts +19 -0
- package/dist/components/SScrollableEdges.vue.d.ts +21 -0
- package/dist/components/SSelect.vue.d.ts +39 -0
- package/dist/components/SSpoiler.vue.d.ts +24 -0
- package/dist/components/STextSpans.vue.d.ts +35 -0
- package/dist/components/STextarea.vue.d.ts +16 -0
- package/dist/components/SToggle.vue.d.ts +26 -0
- package/dist/components/STooltip.vue.d.ts +16 -0
- package/dist/components/STree.vue.d.ts +11 -0
- package/dist/components/icons/book-open.vue.d.ts +3 -0
- package/dist/components/icons/braces.vue.d.ts +3 -0
- package/dist/components/icons/calendar.vue.d.ts +3 -0
- package/dist/components/icons/camera.vue.d.ts +3 -0
- package/dist/components/icons/check.vue.d.ts +3 -0
- package/dist/components/icons/chevron.vue.d.ts +3 -0
- package/dist/components/icons/clock.vue.d.ts +3 -0
- package/dist/components/icons/close.vue.d.ts +3 -0
- package/dist/components/icons/collapse.vue.d.ts +3 -0
- package/dist/components/icons/contact-round.vue.d.ts +3 -0
- package/dist/components/icons/crown.vue.d.ts +3 -0
- package/dist/components/icons/expand.vue.d.ts +3 -0
- package/dist/components/icons/file-pen-line.vue.d.ts +3 -0
- package/dist/components/icons/fit-screen.vue.d.ts +3 -0
- package/dist/components/icons/flip-x.vue.d.ts +3 -0
- package/dist/components/icons/flip-y.vue.d.ts +3 -0
- package/dist/components/icons/home.vue.d.ts +3 -0
- package/dist/components/icons/inbox.vue.d.ts +3 -0
- package/dist/components/icons/layout.vue.d.ts +3 -0
- package/dist/components/icons/package.vue.d.ts +3 -0
- package/dist/components/icons/receipt.vue.d.ts +3 -0
- package/dist/components/icons/refresh.vue.d.ts +3 -0
- package/dist/components/icons/rotate-left.vue.d.ts +3 -0
- package/dist/components/icons/rotate-right.vue.d.ts +3 -0
- package/dist/components/icons/send.vue.d.ts +3 -0
- package/dist/components/icons/shield-alert.vue.d.ts +3 -0
- package/dist/components/icons/trash-2.vue.d.ts +3 -0
- package/dist/components/icons/users.vue.d.ts +3 -0
- package/dist/components/icons/vertical-dots.vue.d.ts +3 -0
- package/dist/components/icons/zoom-in.vue.d.ts +3 -0
- package/dist/components/icons/zoom-out.vue.d.ts +3 -0
- package/dist/composables/use-clipboard.d.ts +10 -0
- package/dist/composables/use-link-component.d.ts +5 -0
- package/dist/composables/use-notifications.d.ts +24 -0
- package/dist/composables/use-open-select.d.ts +2 -0
- package/dist/composables/use-optional-router.d.ts +16 -0
- package/dist/composables/use-sinde-user.d.ts +16 -0
- package/dist/composables/use-ui-config.d.ts +19 -0
- package/dist/icons.d.ts +5 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.mjs +3892 -0
- package/dist/nuxt.d.ts +18 -0
- package/dist/nuxt.mjs +44 -0
- package/dist/runtime/plugin.mjs +8 -0
- package/dist/style.css +2 -0
- package/dist/utils/count-form.d.ts +2 -0
- package/dist/utils/date.d.ts +5 -0
- package/dist/utils/media.d.ts +9 -0
- package/dist/utils/picker-dt.d.ts +30 -0
- package/package.json +100 -4
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
nav?: (props: typeof __VLS_1) => any;
|
|
4
|
+
} & {
|
|
5
|
+
default?: (props: typeof __VLS_3) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
dispose: () => any;
|
|
9
|
+
ready: () => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
11
|
+
onDispose?: (() => any) | undefined;
|
|
12
|
+
onReady?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, 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,27 @@
|
|
|
1
|
+
export interface SAsideNavItem {
|
|
2
|
+
to: string;
|
|
3
|
+
label: string;
|
|
4
|
+
/** Иконка из набора проекта; в компактном режиме показывается вместо подписи. */
|
|
5
|
+
icon?: string;
|
|
6
|
+
/** Дополнительные префиксы путей, на которых пункт считается активным. */
|
|
7
|
+
activePrefixes?: string[];
|
|
8
|
+
/** Пункт активен только на своём адресе, без подразделов (например, корень раздела). */
|
|
9
|
+
exact?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
14
|
+
items?: SAsideNavItem[];
|
|
15
|
+
/** Компактный режим: только иконки, подпись уходит в aria-label и title. */
|
|
16
|
+
collapsed?: boolean;
|
|
17
|
+
/** Заголовок группы пунктов; в компактном режиме скрывается. */
|
|
18
|
+
heading?: string;
|
|
19
|
+
ariaLabel?: string;
|
|
20
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
21
|
+
items?: SAsideNavItem[];
|
|
22
|
+
/** Компактный режим: только иконки, подпись уходит в aria-label и title. */
|
|
23
|
+
collapsed?: boolean;
|
|
24
|
+
/** Заголовок группы пунктов; в компактном режиме скрывается. */
|
|
25
|
+
heading?: string;
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
4
|
+
/** Ссылка на изображение аватара. */
|
|
5
|
+
src?: string;
|
|
6
|
+
/** Имя пользователя: подпись и инициалы, если нет изображения. */
|
|
7
|
+
name?: string;
|
|
8
|
+
/** Куда ведёт клик по аватарке. */
|
|
9
|
+
to?: string;
|
|
10
|
+
/** Явная подпись для aria-label. */
|
|
11
|
+
label?: string;
|
|
12
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
13
|
+
/** Ссылка на изображение аватара. */
|
|
14
|
+
src?: string;
|
|
15
|
+
/** Имя пользователя: подпись и инициалы, если нет изображения. */
|
|
16
|
+
name?: string;
|
|
17
|
+
/** Куда ведёт клик по аватарке. */
|
|
18
|
+
to?: string;
|
|
19
|
+
/** Явная подпись для aria-label. */
|
|
20
|
+
label?: string;
|
|
21
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const BtnState: {
|
|
2
|
+
readonly Idle: "idle";
|
|
3
|
+
readonly Active: "active";
|
|
4
|
+
readonly Load: "load";
|
|
5
|
+
readonly Disabled: "disabled";
|
|
6
|
+
};
|
|
7
|
+
export type SBtnState = (typeof BtnState)[keyof typeof BtnState];
|
|
8
|
+
interface SBtnProps {
|
|
9
|
+
to?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
state?: SBtnState;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
declare const __VLS_export: import("vue").DefineComponent<SBtnProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SBtnProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface SCheckboxProps {
|
|
2
|
+
id?: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
partial?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<SCheckboxProps & {
|
|
10
|
+
modelValue?: boolean | "partial";
|
|
11
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: "partial" | boolean) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<SCheckboxProps & {
|
|
14
|
+
modelValue?: boolean | "partial";
|
|
15
|
+
}> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: "partial" | boolean) => any) | undefined;
|
|
17
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
18
|
+
default?: (props: {}) => any;
|
|
19
|
+
}>;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface SCopyProps {
|
|
2
|
+
value?: string | null;
|
|
3
|
+
hover?: string;
|
|
4
|
+
done?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<SCopyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
copied: (value: string) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<SCopyProps> & Readonly<{
|
|
12
|
+
onCopied?: ((value: string) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
14
|
+
default?: (props: {
|
|
15
|
+
copied: boolean;
|
|
16
|
+
copying: boolean;
|
|
17
|
+
state: string;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
copy: () => Promise<void>;
|
|
20
|
+
}) => any;
|
|
21
|
+
}>;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface SCropperProps {
|
|
2
|
+
file: File | null;
|
|
3
|
+
title?: string;
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
/** Соотношение сторон или "free" — свободная форма (по умолчанию). */
|
|
6
|
+
aspectRatio?: number | "free";
|
|
7
|
+
}
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<SCropperProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
cancel: () => any;
|
|
12
|
+
confirm: (file: File) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<SCropperProps> & Readonly<{
|
|
14
|
+
onCancel?: (() => any) | undefined;
|
|
15
|
+
onConfirm?: ((file: File) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export type SDataTableRow = Record<string, unknown>;
|
|
2
|
+
export type SDataTableColumn = {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
widthClass?: string;
|
|
6
|
+
headerClass?: string;
|
|
7
|
+
cellClass?: string;
|
|
8
|
+
nowrap?: boolean;
|
|
9
|
+
sortable?: boolean;
|
|
10
|
+
};
|
|
11
|
+
interface SDataTableProps {
|
|
12
|
+
columns: SDataTableColumn[];
|
|
13
|
+
rows?: SDataTableRow[];
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
emptyText?: string;
|
|
16
|
+
rowKey?: string | ((_row: SDataTableRow, _index: number) => PropertyKey);
|
|
17
|
+
nowrap?: boolean;
|
|
18
|
+
rowNumbers?: boolean;
|
|
19
|
+
divider?: (_row: SDataTableRow, _index: number) => string | null | undefined;
|
|
20
|
+
fixedLayout?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const _default: typeof __VLS_export;
|
|
23
|
+
export default _default;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<SDataTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SDataTableProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
25
|
+
[x: `header-${string}`]: ((props: {
|
|
26
|
+
column: SDataTableColumn;
|
|
27
|
+
sortable: boolean;
|
|
28
|
+
sorted: boolean;
|
|
29
|
+
}) => any) | undefined;
|
|
30
|
+
} & {
|
|
31
|
+
[x: `header-${string}`]: ((props: {
|
|
32
|
+
column: SDataTableColumn;
|
|
33
|
+
sortable: boolean;
|
|
34
|
+
sorted: boolean;
|
|
35
|
+
}) => any) | undefined;
|
|
36
|
+
} & {
|
|
37
|
+
[x: `cell-${string}`]: ((props: {
|
|
38
|
+
row: SDataTableRow;
|
|
39
|
+
column: SDataTableColumn;
|
|
40
|
+
value: unknown;
|
|
41
|
+
index: number;
|
|
42
|
+
}) => any) | undefined;
|
|
43
|
+
} & {
|
|
44
|
+
empty?: (props: {}) => any;
|
|
45
|
+
} & {
|
|
46
|
+
cell?: (props: {
|
|
47
|
+
row: SDataTableRow;
|
|
48
|
+
column: SDataTableColumn;
|
|
49
|
+
value: unknown;
|
|
50
|
+
index: number;
|
|
51
|
+
}) => any;
|
|
52
|
+
}>;
|
|
53
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { DateTimePickerLocaleInfo } from "../../utils/picker-dt";
|
|
2
|
+
import type { DateTimePickerParts } from "../../utils/picker-dt";
|
|
3
|
+
interface SDateTimePickerCalendarProps {
|
|
4
|
+
selected: DateTimePickerParts | null;
|
|
5
|
+
min: DateTimePickerParts | null;
|
|
6
|
+
max: DateTimePickerParts | null;
|
|
7
|
+
localeInfo: DateTimePickerLocaleInfo;
|
|
8
|
+
labels: {
|
|
9
|
+
grid: string;
|
|
10
|
+
prevMonth: string;
|
|
11
|
+
nextMonth: string;
|
|
12
|
+
month: string;
|
|
13
|
+
year: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
declare const __VLS_export: import("vue").DefineComponent<SDateTimePickerCalendarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
commit: (day: {
|
|
20
|
+
year: number;
|
|
21
|
+
month: number;
|
|
22
|
+
day: number;
|
|
23
|
+
}) => any;
|
|
24
|
+
select: (day: {
|
|
25
|
+
year: number;
|
|
26
|
+
month: number;
|
|
27
|
+
day: number;
|
|
28
|
+
}) => any;
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<SDateTimePickerCalendarProps> & Readonly<{
|
|
30
|
+
onCommit?: ((day: {
|
|
31
|
+
year: number;
|
|
32
|
+
month: number;
|
|
33
|
+
day: number;
|
|
34
|
+
}) => any) | undefined;
|
|
35
|
+
onSelect?: ((day: {
|
|
36
|
+
year: number;
|
|
37
|
+
month: number;
|
|
38
|
+
day: number;
|
|
39
|
+
}) => any) | undefined;
|
|
40
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
interface SDateTimePickerPopoverProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
trigger?: HTMLElement | null;
|
|
4
|
+
panelId?: string;
|
|
5
|
+
ariaLabel?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<SDateTimePickerPopoverProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
close: () => any;
|
|
11
|
+
confirm: () => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<SDateTimePickerPopoverProps> & Readonly<{
|
|
13
|
+
onClose?: (() => any) | undefined;
|
|
14
|
+
onConfirm?: (() => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
16
|
+
default?: (props: {}) => any;
|
|
17
|
+
}>;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type QuickAction = "today" | "now" | "tomorrow" | "yesterday" | "startOfDay" | "endOfDay";
|
|
2
|
+
interface SDateTimePickerQuickActionsProps {
|
|
3
|
+
showDate: boolean;
|
|
4
|
+
showTime: boolean;
|
|
5
|
+
labels: Record<QuickAction, string>;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<SDateTimePickerQuickActionsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
action: (action: QuickAction) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<SDateTimePickerQuickActionsProps> & Readonly<{
|
|
12
|
+
onAction?: ((action: QuickAction) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
interface SDateTimePickerTimeProps {
|
|
2
|
+
hour: number;
|
|
3
|
+
minute: number;
|
|
4
|
+
second: number;
|
|
5
|
+
showSeconds?: boolean;
|
|
6
|
+
disabledHours?: number[];
|
|
7
|
+
disabledMinutes?: number[];
|
|
8
|
+
disabledSeconds?: number[];
|
|
9
|
+
labels: {
|
|
10
|
+
hours: string;
|
|
11
|
+
minutes: string;
|
|
12
|
+
seconds: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<SDateTimePickerTimeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
change: (patch: {
|
|
19
|
+
hour?: number;
|
|
20
|
+
minute?: number;
|
|
21
|
+
second?: number;
|
|
22
|
+
}) => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<SDateTimePickerTimeProps> & Readonly<{
|
|
24
|
+
onChange?: ((patch: {
|
|
25
|
+
hour?: number;
|
|
26
|
+
minute?: number;
|
|
27
|
+
second?: number;
|
|
28
|
+
}) => any) | undefined;
|
|
29
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface SDateTimePickerTimeWheelProps {
|
|
2
|
+
modelValue: number;
|
|
3
|
+
values: number[];
|
|
4
|
+
labels: string[];
|
|
5
|
+
ariaLabel?: string;
|
|
6
|
+
disabledValues?: number[];
|
|
7
|
+
loop?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<SDateTimePickerTimeWheelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: number) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<SDateTimePickerTimeWheelProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface SDateTimePickerProps {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
readonly?: boolean;
|
|
4
|
+
invalid?: boolean;
|
|
5
|
+
locale?: string;
|
|
6
|
+
min?: string;
|
|
7
|
+
max?: string;
|
|
8
|
+
showDate?: boolean;
|
|
9
|
+
showTime?: boolean;
|
|
10
|
+
showSeconds?: boolean;
|
|
11
|
+
closeOnSelect?: boolean;
|
|
12
|
+
showTimezone?: boolean;
|
|
13
|
+
id?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
declare const __VLS_export: import("vue").DefineComponent<SDateTimePickerProps & {
|
|
20
|
+
modelValue?: string;
|
|
21
|
+
timezone?: string;
|
|
22
|
+
}, {
|
|
23
|
+
focus: () => void | undefined;
|
|
24
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
"update:modelValue": (value: string) => any;
|
|
26
|
+
"update:timezone": (value: string | undefined) => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<SDateTimePickerProps & {
|
|
28
|
+
modelValue?: string;
|
|
29
|
+
timezone?: string;
|
|
30
|
+
}> & Readonly<{
|
|
31
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
32
|
+
"onUpdate:timezone"?: ((value: string | undefined) => any) | undefined;
|
|
33
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** @public */
|
|
2
|
+
export declare const SDatetimeView: {
|
|
3
|
+
readonly Short: "short";
|
|
4
|
+
readonly Full: "full";
|
|
5
|
+
};
|
|
6
|
+
export type SDatetimeView = (typeof SDatetimeView)[keyof typeof SDatetimeView];
|
|
7
|
+
/** @public */
|
|
8
|
+
export type SDatetimeValue = Date | string | number | null;
|
|
9
|
+
interface FmtDtOptions {
|
|
10
|
+
view?: SDatetimeView;
|
|
11
|
+
fullYear?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface SDatetimeProps extends FmtDtOptions {
|
|
14
|
+
value?: SDatetimeValue;
|
|
15
|
+
/** Зона отображения; по умолчанию берётся из конфигурации UI-системы. */
|
|
16
|
+
timeZone?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
declare const __VLS_export: import("vue").DefineComponent<SDatetimeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SDatetimeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
html: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: 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>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
4
|
+
label?: string;
|
|
5
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
6
|
+
label?: string;
|
|
7
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
8
|
+
default?: (props: {}) => any;
|
|
9
|
+
}>;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
interface SFileProps {
|
|
2
|
+
id?: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
accept?: string;
|
|
5
|
+
buttonLabel?: string;
|
|
6
|
+
count?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
showList?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<SFileProps & {
|
|
15
|
+
modelValue?: File[];
|
|
16
|
+
}, {
|
|
17
|
+
reset: () => void;
|
|
18
|
+
files: import("vue").ModelRef<File[], string, File[], File[]>;
|
|
19
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
change: (event: Event, files: File[]) => any;
|
|
21
|
+
"update:modelValue": (value: File[]) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<SFileProps & {
|
|
23
|
+
modelValue?: File[];
|
|
24
|
+
}> & Readonly<{
|
|
25
|
+
onChange?: ((event: Event, files: File[]) => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type SGradationOption = {
|
|
2
|
+
value: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
};
|
|
5
|
+
interface SGradationProps {
|
|
6
|
+
options: SGradationOption[];
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
clearValue?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
declare const __VLS_export: import("vue").DefineComponent<SGradationProps & {
|
|
15
|
+
modelValue?: string | null;
|
|
16
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
change: (value: string) => any;
|
|
18
|
+
"update:modelValue": (value: string | null) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<SGradationProps & {
|
|
20
|
+
modelValue?: string | null;
|
|
21
|
+
}> & Readonly<{
|
|
22
|
+
onChange?: ((value: string) => any) | undefined;
|
|
23
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type SIconName } from "../icons";
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
5
|
+
name: SIconName;
|
|
6
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
7
|
+
name: SIconName;
|
|
8
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
export interface SImageItem {
|
|
3
|
+
src: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
thumbnailSrc?: string;
|
|
7
|
+
fileSize?: number;
|
|
8
|
+
size?: number;
|
|
9
|
+
}
|
|
10
|
+
interface SImageProps {
|
|
11
|
+
src?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
alt?: string;
|
|
14
|
+
items?: SImageItem[] | Ref<SImageItem[]>;
|
|
15
|
+
groups?: SImageItem[][] | Ref<SImageItem[][]>;
|
|
16
|
+
initialIndex?: number;
|
|
17
|
+
trigger?: boolean;
|
|
18
|
+
triggerLabel?: string;
|
|
19
|
+
routeSync?: boolean;
|
|
20
|
+
galleryName?: string;
|
|
21
|
+
wrap?: boolean;
|
|
22
|
+
groupSwitching?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<SImageProps & {
|
|
27
|
+
modelValue?: boolean;
|
|
28
|
+
}, {
|
|
29
|
+
open: (index?: number) => void;
|
|
30
|
+
close: () => void;
|
|
31
|
+
goTo: (index: number) => void;
|
|
32
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
|
+
change: (index: number) => any;
|
|
34
|
+
close: () => any;
|
|
35
|
+
"group-change": (index: number) => any;
|
|
36
|
+
"group-next": () => any;
|
|
37
|
+
"group-previous": () => any;
|
|
38
|
+
open: () => any;
|
|
39
|
+
"update:modelValue": (value: boolean) => any;
|
|
40
|
+
}, string, import("vue").PublicProps, Readonly<SImageProps & {
|
|
41
|
+
modelValue?: boolean;
|
|
42
|
+
}> & Readonly<{
|
|
43
|
+
onChange?: ((index: number) => any) | undefined;
|
|
44
|
+
onClose?: (() => any) | undefined;
|
|
45
|
+
"onGroup-change"?: ((index: number) => any) | undefined;
|
|
46
|
+
"onGroup-next"?: (() => any) | undefined;
|
|
47
|
+
"onGroup-previous"?: (() => any) | undefined;
|
|
48
|
+
onOpen?: (() => any) | undefined;
|
|
49
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
50
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
51
|
+
'toolbar-start'?: (props: {
|
|
52
|
+
index: number;
|
|
53
|
+
item: SImageItem;
|
|
54
|
+
}) => any;
|
|
55
|
+
}>;
|
|
56
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
4
|
+
id?: string;
|
|
5
|
+
invalid?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
} & {
|
|
8
|
+
modelValue?: string | number | null;
|
|
9
|
+
}, {
|
|
10
|
+
focus: () => void | undefined;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: string | number | null | undefined) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
14
|
+
id?: string;
|
|
15
|
+
invalid?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
} & {
|
|
18
|
+
modelValue?: string | number | null;
|
|
19
|
+
}> & Readonly<{
|
|
20
|
+
"onUpdate:modelValue"?: ((value: string | number | null | undefined) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
4
|
+
to: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
7
|
+
to: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
10
|
+
default?: (props: {}) => any;
|
|
11
|
+
}>;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
4
|
+
items: string[];
|
|
5
|
+
tag?: "ul" | "ol";
|
|
6
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
7
|
+
items: string[];
|
|
8
|
+
tag?: "ul" | "ol";
|
|
9
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
10
|
+
item?: (props: {
|
|
11
|
+
item: string;
|
|
12
|
+
index: number;
|
|
13
|
+
}) => any;
|
|
14
|
+
}>;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
4
|
+
label?: string;
|
|
5
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
6
|
+
label?: string;
|
|
7
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface SNavItem {
|
|
2
|
+
to: string;
|
|
3
|
+
label: string;
|
|
4
|
+
/** Дополнительные префиксы путей, на которых пункт считается активным. */
|
|
5
|
+
activePrefixes?: string[];
|
|
6
|
+
}
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
10
|
+
items?: SNavItem[];
|
|
11
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
12
|
+
items?: SNavItem[];
|
|
13
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface SNotificationProps {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
message?: string;
|
|
5
|
+
type?: "success" | "error" | "info";
|
|
6
|
+
duration?: number;
|
|
7
|
+
floating?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<SNotificationProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: boolean) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<SNotificationProps> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|