@huntflow/ui 0.3.24 → 0.3.26
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/index.d.ts +2 -2
- package/dist/components/ui-icon/icon-list.d.ts +1 -1
- package/dist/components/ui-modal/index.d.ts +3 -2
- package/dist/components/ui-modal/layout.vue.d.ts +14 -7
- package/dist/components/ui-modal/modal-code-snippet.d.ts +1 -1
- package/dist/components/ui-modal/modal.vue.d.ts +3 -27
- package/dist/components/ui-modal/row.vue.d.ts +19 -0
- package/dist/components/ui-modal/types.d.ts +35 -1
- package/dist/components/ui-modal/use-loading-state.d.ts +6 -0
- package/dist/{sprite-DDgv1GJK.js → sprite-DwtHnVzT.js} +1 -1
- package/dist/ui.es.js +2540 -2433
- package/package.json +1 -1
|
@@ -35,10 +35,10 @@ export { UiDropzone } from './ui-dropzone';
|
|
|
35
35
|
export type { UiDropzoneProps } from './ui-dropzone';
|
|
36
36
|
export { UiDropdown } from './ui-dropdown';
|
|
37
37
|
export type { UiDropdownProps, UiDropdownSide, UiDropdownAlign } from './ui-dropdown';
|
|
38
|
+
export { UiModal, UiModalLayout, UiModalRow } from './ui-modal';
|
|
39
|
+
export type { UiModalLayoutProps, UiModalPadding, UiModalProps, UiModalRowProps } from './ui-modal';
|
|
38
40
|
export { UiTooltip, UiTooltipProvider, tooltipPortalTargetKey } from './ui-tooltip';
|
|
39
41
|
export type { UiTooltipProps, UiTooltipSide, UiTooltipAlign, UiTooltipPlacement, UiTooltipTheme } from './ui-tooltip';
|
|
40
|
-
export { UiModal } from './ui-modal';
|
|
41
|
-
export type { UiModalProps } from './ui-modal';
|
|
42
42
|
export { UiTabs } from './ui-tabs';
|
|
43
43
|
export type { UiTabsProps, UiTabsValue, UiTabsItem } from './ui-tabs';
|
|
44
44
|
export { UiPaginationDots } from './ui-pagination-dots';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const icons: readonly ["2-users-18", "2-users-20", "Vector", "add-reaction-16", "ai-20", "alert-20", "alert-24", "alert-fill-20", "alert-fill-24", "alert-fill-28", "archive-16", "archive-18", "archive-20", "archive-24", "archive-28", "arrow-corner-down-left", "arrow-down-20", "arrow-left-18", "arrow-left-20", "arrow-narrow-left-18", "arrow-narrow-left-24", "arrow-narrow-left-bold-24", "arrow-narrow-right-18", "arrow-narrow-right-24", "arrow-narrow-right-bold-20", "arrow-narrow-right-bold-24", "arrow-right-18", "arrow-right-20", "arrow-up-20", "attention-16", "attention-18", "attention-20", "attention-24", "attention-28", "attention-circle-18", "calendar-16", "calendar-18", "calendar-20", "calendar-24", "calendar-28", "casper-20", "chain-link-24", "check-16", "check-18", "check-20", "check-24", "check-28", "check-color-16", "check-color-18", "check-color-20", "check-color-24", "check-color-28", "chevron-down-16", "chevron-down-18", "chevron-down-20", "chevron-down-24", "chevron-down-28", "chevron-left-16", "chevron-left-18", "chevron-left-20", "chevron-left-24", "chevron-left-28", "chevron-right-16", "chevron-right-18", "chevron-right-20", "chevron-right-24", "chevron-right-28", "chevron-up-16", "chevron-up-18", "chevron-up-20", "chevron-up-24", "chevron-up-28", "circle-download-20", "clip-16", "clip-18", "clip-20", "clip-24", "clip-28", "clipboard-16", "clipboard-18", "clipboard-20", "clipboard-24", "clipboard-28", "clock-16", "clock-18", "clock-20", "clock-24", "clock-28", "clock-fill-16", "clock-fill-18", "clock-fill-20", "clock-fill-24", "clock-fill-28", "close-16", "close-18", "close-20", "close-28", "close-large-18", "close-large-20", "close-large-24", "copy-20", "credit-card-18", "credit-card-20", "crown-16", "crown-18", "crown-20", "crown-24", "crown-28", "dots-horizontal-20", "dots-vertical-20", "download-16", "download-18", "download-20", "download-24", "download-28", "download-circle-16", "download-circle-18", "drag-16", "drag-20", "drag-24", "drop-down", "edit-16", "edit-18", "edit-20", "edit-24", "edit-28", "eye-open-20", "eye-slash-20", "feedback-16", "feedback-18", "feedback-20", "feedback-24", "feedback-28", "folder-16", "folder-18", "folder-20", "folder-24", "folder-28", "funnel-20", "graph-16", "graph-18", "graph-20", "graph-24", "graph-28", "home-16", "home-18", "home-20", "home-24", "home-28", "incognito-20", "incognito-24", "info-16", "info-18", "info-20", "info-24", "info-28", "info-circle-16", "info-circle-18", "info-circle-20", "info-circle-24", "info-circle-28", "info-circle", "link-16", "link-18", "link-20", "link-24", "link-28", "lock-16", "lock-18", "lock-20", "lock-24", "lock-28", "lock-black-18", "lock-color-16", "lock-color-18", "lock-color-20", "lock-color-24", "lock-color-28", "max-16", "max-18", "max-20", "max-24", "max-28", "max-contour-18", "max-contour-20", "max-contour-24", "max-disable-16", "max-disable-18", "max-disable-20", "max-disable-24", "max-disable-28", "message-16", "message-18", "message-20", "message-24", "message-28", "message-open-18", "message-replied-18", "money-18", "mute-20", "mute-fill-20", "next-20", "notches-16", "options-16", "options-18", "options-20", "options-24", "options-28", "options-lock-20", "pause-circle-20", "pencil-line-18", "pencil-line-20", "phone-16", "phone-18", "phone-20", "phone-24", "phone-28", "phone-error-16", "phone-error-18", "phone-error-20", "phone-error-24", "phone-error-28", "phone-fill-16", "phone-fill-18", "phone-fill-20", "phone-fill-24", "phone-fill-28", "plus-16", "plus-18", "plus-20", "plus-circle-16", "plus-circle-18", "plus-circle-20", "plus-circle-24", "plus-circle-28", "plus-square-18", "point-chart-20", "print-16", "print-18", "print-20", "print-24", "print-28", "priority-20", "question-16", "question-18", "question-20", "question-24", "question-28", "rating-18", "rating-20", "rating-fill-20", "refresh-18", "refresh-20", "refresh-24", "rocket-16", "rocket-18", "rocket-20", "rocket-24", "rocket-28", "search-16", "search-18", "search-20", "search-24", "search-28", "semiselected-16", "semiselected-18", "semiselected-20", "semiselected-24", "semiselected-28", "settings-16", "settings-18", "settings-20", "settings-24", "settings-28", "settings-fill-18", "settings-fill-20", "share-16", "share-18", "share-20", "share-24", "share-28", "shield-attention-20", "shield-attention-lock-20", "shield-fill-16", "shield-fill-20", "shield-tick-20", "shuffle-20", "signature-20", "sms-16", "sms-18", "sms-20", "sms-24", "sms-28", "split-diff-18", "star-16", "star-18", "star-20", "star-24", "star-28", "stop-color-16", "stop-color-18", "stop-color-20", "stop-color-24", "stop-color-28", "tag-18", "tag-20", "team-24", "telegram-16", "telegram-18", "telegram-20", "telegram-24", "telegram-28", "telegram-contour-18", "telegram-contour-20", "telegram-contour-24", "text-16", "text-18", "text-20", "text-24", "text-28", "thumbs-28", "thumbsup-16", "thumbsup-18", "thumbsup-20", "thumbsup-24", "trash-16", "trash-18", "trash-20", "trash-24", "trash-28", "unmute-18", "unmute-20", "upload-16", "upload-18", "upload-20", "url-16", "url-18", "url-20", "url-24", "url-28", "verification-fill-20", "viber-16", "viber-18", "viber-20", "viber-24", "viber-28", "viber-contour-16", "viber-contour-18", "viber-contour-20", "viber-contour-24", "viber-contour-28", "whatsapp-16", "whatsapp-18", "whatsapp-20", "whatsapp-24", "whatsapp-28", "whatsapp-contour-18", "whatsapp-contour-20", "whatsapp-contour-24", "x-circle-20", "zoom-16", "zoom-18", "zoom-20", "zoom-24", "zoom-28"];
|
|
1
|
+
export declare const icons: readonly ["2-users-18", "2-users-20", "Vector", "add-reaction-16", "ai-20", "alert-20", "alert-24", "alert-fill-20", "alert-fill-24", "alert-fill-28", "archive-16", "archive-18", "archive-20", "archive-24", "archive-28", "arrow-corner-down-left", "arrow-down-20", "arrow-left-18", "arrow-left-20", "arrow-narrow-left-18", "arrow-narrow-left-24", "arrow-narrow-left-bold-24", "arrow-narrow-right-18", "arrow-narrow-right-24", "arrow-narrow-right-bold-20", "arrow-narrow-right-bold-24", "arrow-right-18", "arrow-right-20", "arrow-up-20", "attention-16", "attention-18", "attention-20", "attention-24", "attention-28", "attention-circle-18", "calendar-16", "calendar-18", "calendar-20", "calendar-24", "calendar-28", "casper-20", "chain-link-24", "check-16", "check-18", "check-20", "check-24", "check-28", "check-color-16", "check-color-18", "check-color-20", "check-color-24", "check-color-28", "chevron-down-16", "chevron-down-18", "chevron-down-20", "chevron-down-24", "chevron-down-28", "chevron-left-16", "chevron-left-18", "chevron-left-20", "chevron-left-24", "chevron-left-28", "chevron-right-16", "chevron-right-18", "chevron-right-20", "chevron-right-24", "chevron-right-28", "chevron-up-16", "chevron-up-18", "chevron-up-20", "chevron-up-24", "chevron-up-28", "circle-download-20", "clip-16", "clip-18", "clip-20", "clip-24", "clip-28", "clipboard-16", "clipboard-18", "clipboard-20", "clipboard-24", "clipboard-28", "clock-16", "clock-18", "clock-20", "clock-24", "clock-28", "clock-fill-16", "clock-fill-18", "clock-fill-20", "clock-fill-24", "clock-fill-28", "close-16", "close-18", "close-20", "close-28", "close-large-18", "close-large-20", "close-large-24", "copy-20", "credit-card-18", "credit-card-20", "crown-16", "crown-18", "crown-20", "crown-24", "crown-28", "dots-horizontal-20", "dots-vertical-20", "download-16", "download-18", "download-20", "download-24", "download-28", "download-circle-16", "download-circle-18", "drag-16", "drag-20", "drag-24", "drop-down", "edit-16", "edit-18", "edit-20", "edit-24", "edit-28", "eye-open-20", "eye-slash-20", "feedback-16", "feedback-18", "feedback-20", "feedback-24", "feedback-28", "folder-16", "folder-18", "folder-20", "folder-24", "folder-28", "funnel-20", "graph-16", "graph-18", "graph-20", "graph-24", "graph-28", "home-16", "home-18", "home-20", "home-24", "home-28", "incognito-20", "incognito-24", "info-16", "info-18", "info-20", "info-24", "info-28", "info-circle-16", "info-circle-18", "info-circle-20", "info-circle-24", "info-circle-28", "info-circle", "link-16", "link-18", "link-20", "link-24", "link-28", "lock-16", "lock-18", "lock-20", "lock-24", "lock-28", "lock-black-18", "lock-color-16", "lock-color-18", "lock-color-20", "lock-color-24", "lock-color-28", "max-16", "max-18", "max-20", "max-24", "max-28", "max-contour-18", "max-contour-20", "max-contour-24", "max-disable-16", "max-disable-18", "max-disable-20", "max-disable-24", "max-disable-28", "message-16", "message-18", "message-20", "message-24", "message-28", "message-open-18", "message-replied-18", "money-18", "mute-20", "mute-fill-20", "next-20", "notches-16", "options-16", "options-18", "options-20", "options-24", "options-28", "options-lock-20", "pause-circle-20", "pencil-line-18", "pencil-line-20", "phone-16", "phone-18", "phone-20", "phone-24", "phone-28", "phone-error-16", "phone-error-18", "phone-error-20", "phone-error-24", "phone-error-28", "phone-fill-16", "phone-fill-18", "phone-fill-20", "phone-fill-24", "phone-fill-28", "plus-16", "plus-18", "plus-20", "plus-circle-16", "plus-circle-18", "plus-circle-20", "plus-circle-24", "plus-circle-28", "plus-square-18", "point-chart-20", "print-16", "print-18", "print-20", "print-24", "print-28", "priority-20", "question-16", "question-18", "question-20", "question-24", "question-28", "rating-18", "rating-20", "rating-fill-20", "refresh-18", "refresh-20", "refresh-24", "rocket-16", "rocket-18", "rocket-20", "rocket-24", "rocket-28", "search-16", "search-18", "search-20", "search-24", "search-28", "semiselected-16", "semiselected-18", "semiselected-20", "semiselected-24", "semiselected-28", "settings-16", "settings-18", "settings-20", "settings-24", "settings-28", "settings-fill-18", "settings-fill-20", "share-16", "share-18", "share-20", "share-24", "share-28", "shield-attention-20", "shield-attention-lock-20", "shield-fill-16", "shield-fill-20", "shield-tick-20", "shuffle-20", "signature-20", "sms-16", "sms-18", "sms-20", "sms-24", "sms-28", "split-diff-18", "star-16", "star-18", "star-20", "star-24", "star-28", "stop-color-16", "stop-color-18", "stop-color-20", "stop-color-24", "stop-color-28", "stopwatch-20", "tag-18", "tag-20", "team-24", "telegram-16", "telegram-18", "telegram-20", "telegram-24", "telegram-28", "telegram-contour-18", "telegram-contour-20", "telegram-contour-24", "text-16", "text-18", "text-20", "text-24", "text-28", "thumbs-28", "thumbsup-16", "thumbsup-18", "thumbsup-20", "thumbsup-24", "trash-16", "trash-18", "trash-20", "trash-24", "trash-28", "unmute-18", "unmute-20", "upload-16", "upload-18", "upload-20", "url-16", "url-18", "url-20", "url-24", "url-28", "verification-fill-20", "viber-16", "viber-18", "viber-20", "viber-24", "viber-28", "viber-contour-16", "viber-contour-18", "viber-contour-20", "viber-contour-24", "viber-contour-28", "whatsapp-16", "whatsapp-18", "whatsapp-20", "whatsapp-24", "whatsapp-28", "whatsapp-contour-18", "whatsapp-contour-20", "whatsapp-contour-24", "x-circle-20", "zoom-16", "zoom-18", "zoom-20", "zoom-24", "zoom-28"];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as UiModal } from './modal.vue';
|
|
2
2
|
import { default as UiModalLayout } from './layout.vue';
|
|
3
|
-
|
|
4
|
-
export {
|
|
3
|
+
import { default as UiModalRow } from './row.vue';
|
|
4
|
+
export type { UiModalLayoutProps, UiModalPadding, UiModalProps, UiModalRowProps } from './types';
|
|
5
|
+
export { UiModal, UiModalLayout, UiModalRow };
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
title?: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
singleColumn?: boolean;
|
|
5
|
-
};
|
|
1
|
+
import { UiModalLayoutProps } from './types';
|
|
6
2
|
declare function __VLS_template(): {
|
|
7
3
|
attrs: Partial<{}>;
|
|
8
4
|
slots: {
|
|
5
|
+
loader?(_: {}): any;
|
|
9
6
|
title?(_: {}): any;
|
|
10
7
|
description?(_: {}): any;
|
|
11
8
|
prepend?(_: {}): any;
|
|
12
|
-
main?(_: {}): any;
|
|
13
9
|
default?(_: {}): any;
|
|
14
10
|
side?(_: {}): any;
|
|
15
11
|
append?(_: {}): any;
|
|
@@ -20,7 +16,18 @@ declare function __VLS_template(): {
|
|
|
20
16
|
rootEl: HTMLDivElement;
|
|
21
17
|
};
|
|
22
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<UiModalLayoutProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
loading: (...args: any[]) => void;
|
|
21
|
+
loaded: (...args: any[]) => void;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<UiModalLayoutProps> & Readonly<{
|
|
23
|
+
onLoading?: ((...args: any[]) => any) | undefined;
|
|
24
|
+
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
loading: boolean;
|
|
27
|
+
bodyPadding: import('./types').UiModalPadding;
|
|
28
|
+
stickyFooter: boolean;
|
|
29
|
+
preloaded: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
24
31
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
32
|
export default _default;
|
|
26
33
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const modalCodeSnippet = "<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { UiButton, UiModal } from '@huntflow/ui';\n\nconst isOpen = ref(false);\n</script>\n\n<template>\n <ui-button\n type=\"primary\"\n size=\"s\"\n @click=\"isOpen = true\"\n >\n \u041E\u0442\u043A\u0440\u044B\u0442\u044C\n </ui-button>\n\n <ui-modal\n v-model:open=\"isOpen\"\n title=\"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n description=\"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u043C\u043E\u0434\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u043E\u043A\u043D\u0430\"\n >\n <template #
|
|
1
|
+
export declare const modalCodeSnippet = "<script setup lang=\"ts\">\nimport { ref } from 'vue';\nimport { UiButton, UiModal } from '@huntflow/ui';\n\nconst isOpen = ref(false);\n</script>\n\n<template>\n <ui-button\n type=\"primary\"\n size=\"s\"\n @click=\"isOpen = true\"\n >\n \u041E\u0442\u043A\u0440\u044B\u0442\u044C\n </ui-button>\n\n <ui-modal\n v-model:open=\"isOpen\"\n title=\"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n description=\"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u043C\u043E\u0434\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u043E\u043A\u043D\u0430\"\n >\n <template #default=\"{ setDirty }\">\n \u0421\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 modal\n </template>\n\n <template #error>\n \u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F\n </template>\n\n <template #footer=\"{ dismiss }\">\n <ui-button\n type=\"secondary\"\n size=\"s\"\n @click=\"dismiss\"\n >\n \u041E\u0442\u043C\u0435\u043D\u0430\n </ui-button>\n <ui-button\n type=\"primary\"\n size=\"s\"\n @click=\"dismiss\"\n >\n \u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\n </ui-button>\n </template>\n </ui-modal>\n</template>";
|
|
@@ -7,30 +7,9 @@ declare function __VLS_template(): {
|
|
|
7
7
|
attrs: Partial<{}>;
|
|
8
8
|
slots: {
|
|
9
9
|
loader?(_: {}): any;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
isDismissing: boolean;
|
|
14
|
-
resolveDismissing: (value: boolean) => void;
|
|
15
|
-
dismiss: () => Promise<void>;
|
|
16
|
-
hide: () => void;
|
|
17
|
-
}): any;
|
|
18
|
-
body?(_: {
|
|
19
|
-
open: boolean;
|
|
20
|
-
setDirty: (value: boolean) => void;
|
|
21
|
-
isDismissing: boolean;
|
|
22
|
-
resolveDismissing: (value: boolean) => void;
|
|
23
|
-
dismiss: () => Promise<void>;
|
|
24
|
-
hide: () => void;
|
|
25
|
-
}): any;
|
|
26
|
-
default?(_: {
|
|
27
|
-
open: boolean;
|
|
28
|
-
setDirty: (value: boolean) => void;
|
|
29
|
-
isDismissing: boolean;
|
|
30
|
-
resolveDismissing: (value: boolean) => void;
|
|
31
|
-
dismiss: () => Promise<void>;
|
|
32
|
-
hide: () => void;
|
|
33
|
-
}): any;
|
|
10
|
+
title?(_: {}): any;
|
|
11
|
+
description?(_: {}): any;
|
|
12
|
+
prepend?(_: {}): any;
|
|
34
13
|
default?(_: {
|
|
35
14
|
open: boolean;
|
|
36
15
|
setDirty: (value: boolean) => void;
|
|
@@ -47,9 +26,6 @@ declare function __VLS_template(): {
|
|
|
47
26
|
dismiss: () => Promise<void>;
|
|
48
27
|
hide: () => void;
|
|
49
28
|
}): any;
|
|
50
|
-
title?(_: {}): any;
|
|
51
|
-
description?(_: {}): any;
|
|
52
|
-
prepend?(_: {}): any;
|
|
53
29
|
side?(_: {}): any;
|
|
54
30
|
append?(_: {}): any;
|
|
55
31
|
error?(_: {}): any;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UiModalRowProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
side?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<UiModalRowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<UiModalRowProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -1,5 +1,22 @@
|
|
|
1
|
-
export type UiModalSize = 'm' | 'l'
|
|
1
|
+
export type UiModalSize = 'm' | 'l';
|
|
2
2
|
export type UiModalBeforeClose = () => boolean | Promise<boolean>;
|
|
3
|
+
export type UiModalPadding = 'none' | 's' | 'm' | 'l' | 'xl' | 'xxl' | '3xl';
|
|
4
|
+
export type UiModalRowProps = {
|
|
5
|
+
/** Показывает только основную колонку. */
|
|
6
|
+
singleColumn?: boolean;
|
|
7
|
+
/** Вертикальные отступы колонок. */
|
|
8
|
+
padding?: UiModalPadding;
|
|
9
|
+
};
|
|
10
|
+
export type UiModalLayoutProps = {
|
|
11
|
+
title?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
singleColumn?: boolean;
|
|
14
|
+
/** Вертикальные отступы в body. */
|
|
15
|
+
bodyPadding?: UiModalPadding;
|
|
16
|
+
stickyFooter?: boolean;
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
preloaded?: boolean;
|
|
19
|
+
};
|
|
3
20
|
export type UiModalProps = {
|
|
4
21
|
/** Состояние открытия modal. Используется с v-model:open. */
|
|
5
22
|
open?: boolean;
|
|
@@ -11,12 +28,29 @@ export type UiModalProps = {
|
|
|
11
28
|
description?: string;
|
|
12
29
|
/** Одноколоночный layout без зарезервированной правой колонки. */
|
|
13
30
|
singleColumn?: boolean;
|
|
31
|
+
/** Вертикальные отступы в body. */
|
|
32
|
+
bodyPadding?: UiModalPadding;
|
|
14
33
|
/** Состояние загрузки. */
|
|
15
34
|
loading?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Контент уже был показан хотя бы раз.
|
|
37
|
+
* При `loading=true` и `preloaded=true` показывается оверлей-лоадер поверх контента,
|
|
38
|
+
* а не полноэкранный спиннер модалки.
|
|
39
|
+
*/
|
|
40
|
+
preloaded?: boolean;
|
|
16
41
|
/** Наличие несохраненных изменений. */
|
|
17
42
|
dirty?: boolean;
|
|
18
43
|
/** Хук перед закрытием модального окна. Возврат false отменяет закрытие. */
|
|
19
44
|
beforeClose?: UiModalBeforeClose;
|
|
20
45
|
/** Текст нативного подтверждения при закрытии modal с несохраненными изменениями. */
|
|
21
46
|
confirmationText?: string;
|
|
47
|
+
/** Удаляет содержимое закрытого modal из DOM. */
|
|
48
|
+
unmountOnHide?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Временно скрывает modal без сброса внутреннего состояния.
|
|
51
|
+
* Используется менеджером при открытии другого modal поверх текущего.
|
|
52
|
+
*/
|
|
53
|
+
suspended?: boolean;
|
|
54
|
+
/** Закрепляет footer у нижней границы модального окна при прокрутке. */
|
|
55
|
+
stickyFooter?: boolean;
|
|
22
56
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
export declare const useLoadingState: (loading: MaybeRefOrGetter<boolean>, preloaded: MaybeRefOrGetter<boolean>) => {
|
|
3
|
+
isInitialLoading: import('vue').ComputedRef<boolean>;
|
|
4
|
+
isOverlayLoading: import('vue').ComputedRef<boolean>;
|
|
5
|
+
isLoaderVisible: import('vue').ComputedRef<boolean>;
|
|
6
|
+
};
|