@pgcorp/ui-kit 0.10.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +89 -0
- package/dist/assets/src/components/shared/_internal/{SDialogSurface.css_vue_type_style_index_0_src_979bf586_scoped_979bf586_lang.css → SDialogSurface.css_vue_type_style_index_0_src_d1b65adf_scoped_d1b65adf_lang.css} +1 -1
- package/dist/assets/src/components/shared/containers/SDrawer.css_vue_type_style_index_0_src_091d7325_scoped_091d7325_lang.css +2 -0
- package/dist/assets/src/components/shared/containers/{SModal.css_vue_type_style_index_0_src_64c62e90_scoped_64c62e90_lang.css → SModal.css_vue_type_style_index_0_src_23373daf_scoped_23373daf_lang.css} +1 -1
- package/dist/assets/src/components/shared/controls/{SButton.css_vue_type_style_index_0_src_49f356bb_scoped_49f356bb_lang.css → SButton.css_vue_type_style_index_0_src_52ad38b1_scoped_52ad38b1_lang.css} +1 -1
- package/dist/assets/src/components/shared/controls/{SInputText.css_vue_type_style_index_0_src_6d42d245_scoped_6d42d245_lang.css → SInputText.css_vue_type_style_index_0_src_a9c5f1aa_scoped_a9c5f1aa_lang.css} +1 -1
- package/dist/assets/src/components/shared/controls/{SLink.css_vue_type_style_index_0_src_fc6fdfb3_scoped_fc6fdfb3_lang.css → SLink.css_vue_type_style_index_0_src_c7ae14e1_scoped_c7ae14e1_lang.css} +1 -1
- package/dist/assets/src/components/shared/data-display/SCodeBlock.css_vue_type_style_index_0_src_78557968_scoped_78557968_lang.css +2 -0
- package/dist/assets/src/components/shared/data-display/{SCodeEditor.css_vue_type_style_index_0_src_cad79088_scoped_cad79088_lang.css → SCodeEditor.css_vue_type_style_index_0_src_124ca461_scoped_124ca461_lang.css} +1 -1
- package/dist/assets/src/components/shared/data-display/SCodeWorkspaceEditor.css_vue_type_style_index_0_src_b200dc8e_scoped_b200dc8e_lang.css +2 -0
- package/dist/assets/src/components/shared/data-display/_internal/SRichBlockNode.css_vue_type_style_index_0_src_195d5c06_scoped_195d5c06_lang.css +2 -0
- package/dist/assets/src/components/shared/navigation/{SBottomNav.vue_vue_type_style_index_0_scoped_a0d16ca3_lang.css → SBottomNav.vue_vue_type_style_index_0_scoped_b3963080_lang.css} +1 -1
- package/dist/assets/src/components/shared/navigation/{SBreadcrumbs.css_vue_type_style_index_0_src_e2c5851e_scoped_e2c5851e_lang.css → SBreadcrumbs.css_vue_type_style_index_0_src_f836963c_scoped_f836963c_lang.css} +1 -1
- package/dist/assets/src/components/shared/persona/_internal/SPersonaRunConsole.css_vue_type_style_index_0_src_21bf807e_scoped_21bf807e_lang.css +2 -0
- package/dist/index.js +4 -2
- package/dist/src/components/icons/_internal/generatedSputnigUiIconComponents.d.ts +243 -0
- package/dist/src/components/icons/_internal/generatedSputnigUiIconComponents.js +7 -0
- package/dist/src/components/icons/_internal/generatedSputnigUiIconMarkup.d.ts +721 -239
- package/dist/src/components/icons/_internal/generatedSputnigUiIconMarkup.js +244 -4
- package/dist/src/components/icons/_internal/sputnigUiIconRuntime.d.ts +18 -0
- package/dist/src/components/icons/_internal/sputnigUiIconRuntime.js +99 -0
- package/dist/src/components/icons/sputnigUiIcons.d.ts +5 -81
- package/dist/src/components/icons/sputnigUiIcons.js +238 -394
- package/dist/src/components/layout/SAppShell.vue.d.ts +2 -2
- package/dist/src/components/layout/SSideMenuButton.vue.d.ts +1 -1
- package/dist/src/components/layout/_internal/SAppBrand.vue.d.ts +3 -3
- package/dist/src/components/layout/types.d.ts +2 -2
- package/dist/src/components/shared/_internal/SDialogSurface.vue.d.ts +2 -1
- package/dist/src/components/shared/_internal/SDialogSurface.vue.js +2 -2
- package/dist/src/components/shared/_internal/SDialogSurface.vue_vue_type_script_setup_true_lang.js +38 -37
- package/dist/src/components/shared/_internal/SMenuItem.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/shared/_internal/SToastItem.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/shared/_internal/STreeNode.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/shared/_internal/dialogSurface.d.ts +3 -0
- package/dist/src/components/shared/_internal/dialogSurface.js +23 -19
- package/dist/src/components/shared/containers/SCloudChromeRow.vue_vue_type_script_setup_true_lang.js +44 -44
- package/dist/src/components/shared/containers/SDrawer.vue.d.ts +7 -1
- package/dist/src/components/shared/containers/SDrawer.vue.js +2 -2
- package/dist/src/components/shared/containers/SDrawer.vue_vue_type_script_setup_true_lang.js +49 -44
- package/dist/src/components/shared/containers/SModal.vue.d.ts +7 -1
- package/dist/src/components/shared/containers/SModal.vue.js +2 -2
- package/dist/src/components/shared/containers/SModal.vue_vue_type_script_setup_true_lang.js +48 -41
- package/dist/src/components/shared/controls/SButton.vue.d.ts +32 -2
- package/dist/src/components/shared/controls/SButton.vue.js +2 -2
- package/dist/src/components/shared/controls/SButton.vue_vue_type_script_setup_true_lang.js +77 -79
- package/dist/src/components/shared/controls/SCheckbox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/shared/controls/SComboboxTrigger.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/shared/controls/SContextToggleButton.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/shared/controls/SDragHandle.vue_vue_type_script_setup_true_lang.js +21 -21
- package/dist/src/components/shared/controls/SInputText.vue.d.ts +6 -0
- package/dist/src/components/shared/controls/SInputText.vue.js +2 -2
- package/dist/src/components/shared/controls/SInputText.vue_vue_type_script_setup_true_lang.js +117 -97
- package/dist/src/components/shared/controls/SLink.vue.d.ts +17 -1
- package/dist/src/components/shared/controls/SLink.vue.js +2 -2
- package/dist/src/components/shared/controls/SLink.vue_vue_type_script_setup_true_lang.js +22 -22
- package/dist/src/components/shared/controls/SListboxOption.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/shared/controls/STextarea.d.ts +1 -1
- package/dist/src/components/shared/controls/STextarea.vue.d.ts +12 -18
- package/dist/src/components/shared/controls/_internal/SInlineTokenSurface.vue_vue_type_script_lang.js +1 -1
- package/dist/src/components/shared/data-display/SActionListItem.vue.d.ts +1 -1
- package/dist/src/components/shared/data-display/SChip.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/shared/data-display/SCodeBlock.vue.d.ts +33 -11
- package/dist/src/components/shared/data-display/SCodeBlock.vue.js +2 -2
- package/dist/src/components/shared/data-display/SCodeBlock.vue_vue_type_script_setup_true_lang.js +77 -75
- package/dist/src/components/shared/data-display/SCodeEditor.vue.d.ts +22 -10
- package/dist/src/components/shared/data-display/SCodeEditor.vue.js +2 -2
- package/dist/src/components/shared/data-display/SCodeEditor.vue_vue_type_script_setup_true_lang.js +44 -44
- package/dist/src/components/shared/data-display/SCodeSearchPanel.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/shared/data-display/SCodeWorkspaceEditor.vue.js +2 -2
- package/dist/src/components/shared/data-display/SCodeWorkspaceEditor.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/src/components/shared/data-display/SCopyField.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/shared/data-display/SDocBlock.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/shared/data-display/SExpandableText.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/shared/data-display/SMessage.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/shared/data-display/STable.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/shared/data-display/_internal/SRichBlockNode.vue.js +2 -2
- package/dist/src/components/shared/data-display/_internal/SRichBlockNode.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/src/components/shared/database/SSqlEditor.vue_vue_type_script_setup_true_lang.js +7 -10
- package/dist/src/components/shared/navigation/SBottomNav.vue.js +2 -2
- package/dist/src/components/shared/navigation/SBottomNav.vue_vue_type_script_setup_true_lang.js +70 -68
- package/dist/src/components/shared/navigation/SBreadcrumbs.vue.js +2 -2
- package/dist/src/components/shared/navigation/SBreadcrumbs.vue_vue_type_script_setup_true_lang.js +20 -21
- package/dist/src/components/shared/persona/SPersonaProjectPicker.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/shared/persona/_internal/SPersonaRunConsole.vue.js +2 -2
- package/dist/src/components/shared/persona/_internal/SPersonaRunConsole.vue_vue_type_script_setup_true_lang.js +6 -3
- package/dist/src/composables/useDialogOverlay.d.ts +2 -0
- package/dist/src/composables/useDialogOverlay.js +14 -7
- package/dist/src/internal/feedbackPresentation.js +1 -1
- package/docs/accessibility.md +10 -0
- package/docs/public-api.md +12 -0
- package/docs/versioning.md +38 -10
- package/package.json +1 -1
- package/dist/assets/src/components/shared/containers/SDrawer.css_vue_type_style_index_0_src_1226da98_scoped_1226da98_lang.css +0 -2
- package/dist/assets/src/components/shared/data-display/SCodeBlock.css_vue_type_style_index_0_src_aad45526_scoped_aad45526_lang.css +0 -2
- package/dist/assets/src/components/shared/data-display/SCodeWorkspaceEditor.css_vue_type_style_index_0_src_864bce1d_scoped_864bce1d_lang.css +0 -2
- package/dist/assets/src/components/shared/data-display/_internal/SRichBlockNode.css_vue_type_style_index_0_src_63180598_scoped_63180598_lang.css +0 -2
- package/dist/assets/src/components/shared/persona/_internal/SPersonaRunConsole.css_vue_type_style_index_0_src_c71f59d4_scoped_c71f59d4_lang.css +0 -2
package/dist/src/components/shared/containers/SDrawer.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -2,10 +2,11 @@ import { useDialogOverlay as e } from "../../../composables/useDialogOverlay.js"
|
|
|
2
2
|
import { useUiKitLocale as t } from "../../../composables/useUiKitLocale.js";
|
|
3
3
|
import { useOwnedAttrs as n } from "../../../internal/ownedAttrs.js";
|
|
4
4
|
import { validateBoolean as r, validateExactString as i } from "../../../internal/runtimeContract.js";
|
|
5
|
-
import a from "../_internal/
|
|
6
|
-
import
|
|
5
|
+
import { validateDialogSurfaceHeadingLevel as a } from "../_internal/dialogSurface.js";
|
|
6
|
+
import o from "../_internal/SDialogSurface.vue.js";
|
|
7
|
+
import { Teleport as s, Transition as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as m, createVNode as h, defineComponent as g, mergeProps as _, normalizeStyle as v, openBlock as y, renderSlot as b, unref as x, withCtx as S } from "vue";
|
|
7
8
|
//#region src/components/shared/containers/SDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
9
|
+
var C = ["data-placement"], w = ["data-placement"], T = /*@__PURE__*/ g({
|
|
9
10
|
inheritAttrs: !1,
|
|
10
11
|
__name: "SDrawer",
|
|
11
12
|
props: {
|
|
@@ -21,80 +22,84 @@ var S = ["data-placement"], C = ["data-placement"], w = /*@__PURE__*/ h({
|
|
|
21
22
|
type: Boolean,
|
|
22
23
|
default: !0
|
|
23
24
|
},
|
|
24
|
-
ariaLabel: { default: void 0 }
|
|
25
|
+
ariaLabel: { default: void 0 },
|
|
26
|
+
headingLevel: { default: 2 }
|
|
25
27
|
},
|
|
26
|
-
emits: ["update:open"],
|
|
27
|
-
setup(
|
|
28
|
-
let
|
|
28
|
+
emits: ["update:open", "opened"],
|
|
29
|
+
setup(g, { emit: T }) {
|
|
30
|
+
let E = g, { t: D } = t(), O = T, k = n({
|
|
29
31
|
component: "SDrawer",
|
|
30
32
|
owner: "drawer dialog surface"
|
|
31
|
-
}),
|
|
33
|
+
}), A = l(() => E.ariaLabel ?? D("dialog.drawer")), j = l(() => a("SDrawer", E.headingLevel)), M = l(() => i("SDrawer", "placement", E.placement, ["right", "bottom"])), N = l(() => i("SDrawer", "size", E.size, [
|
|
32
34
|
"sm",
|
|
33
35
|
"md",
|
|
34
36
|
"lg"
|
|
35
|
-
])),
|
|
37
|
+
])), P = l(() => r("SDrawer", "open", E.open)), F = l(() => r("SDrawer", "closable", E.closable)), I = l(() => r("SDrawer", "mobileFullScreen", E.mobileFullScreen)), L = l(() => ({
|
|
36
38
|
kind: "drawer",
|
|
37
|
-
size:
|
|
38
|
-
placement:
|
|
39
|
-
mobileFullScreen:
|
|
39
|
+
size: N.value,
|
|
40
|
+
placement: M.value,
|
|
41
|
+
mobileFullScreen: I.value
|
|
40
42
|
}));
|
|
41
|
-
function
|
|
42
|
-
|
|
43
|
+
function R() {
|
|
44
|
+
M.value, N.value, P.value, F.value, I.value, j.value;
|
|
43
45
|
}
|
|
44
|
-
|
|
45
|
-
function
|
|
46
|
-
|
|
46
|
+
R();
|
|
47
|
+
function z() {
|
|
48
|
+
O("update:open", !1);
|
|
47
49
|
}
|
|
48
|
-
let { setPanelElement:
|
|
49
|
-
open:
|
|
50
|
-
closable:
|
|
51
|
-
requestClose:
|
|
50
|
+
let { setPanelElement: B, backdropStyle: V, surfaceStyle: H } = e({
|
|
51
|
+
open: P,
|
|
52
|
+
closable: F,
|
|
53
|
+
requestClose: z,
|
|
54
|
+
opened: () => O("opened")
|
|
52
55
|
});
|
|
53
|
-
return (e, t) => (
|
|
54
|
-
default:
|
|
56
|
+
return (e, t) => (y(), u(s, { to: "body" }, [h(c, { name: "s-drawer-backdrop" }, {
|
|
57
|
+
default: S(() => [g.open ? (y(), f("div", {
|
|
55
58
|
key: 0,
|
|
56
59
|
class: "s-drawer-backdrop",
|
|
57
|
-
style:
|
|
60
|
+
style: v(x(V)),
|
|
58
61
|
"aria-hidden": "true"
|
|
59
|
-
}, null, 4)) :
|
|
62
|
+
}, null, 4)) : d("", !0)]),
|
|
60
63
|
_: 1
|
|
61
|
-
}),
|
|
62
|
-
default:
|
|
64
|
+
}), h(c, { name: "s-drawer-panel" }, {
|
|
65
|
+
default: S(() => [g.open ? (y(), f("div", {
|
|
63
66
|
key: 0,
|
|
64
67
|
class: "s-drawer-shell",
|
|
65
|
-
"data-placement":
|
|
66
|
-
style:
|
|
67
|
-
}, [
|
|
68
|
+
"data-placement": M.value,
|
|
69
|
+
style: v(x(H))
|
|
70
|
+
}, [p("div", {
|
|
68
71
|
class: "s-drawer-positioner",
|
|
69
|
-
"data-placement":
|
|
70
|
-
}, [
|
|
71
|
-
presentation:
|
|
72
|
-
title:
|
|
73
|
-
"accessible-name":
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
72
|
+
"data-placement": M.value
|
|
73
|
+
}, [h(o, _(x(k).bindings(), {
|
|
74
|
+
presentation: L.value,
|
|
75
|
+
title: g.title,
|
|
76
|
+
"accessible-name": A.value,
|
|
77
|
+
"heading-level": j.value,
|
|
78
|
+
closable: g.closable,
|
|
79
|
+
"set-surface-element": x(B),
|
|
80
|
+
onRequestClose: z
|
|
81
|
+
}), m({
|
|
82
|
+
default: S(() => [b(e.$slots, "default", {}, void 0, !0)]),
|
|
79
83
|
_: 2
|
|
80
84
|
}, [e.$slots.header ? {
|
|
81
85
|
name: "header",
|
|
82
|
-
fn:
|
|
86
|
+
fn: S(() => [b(e.$slots, "header", {}, void 0, !0)]),
|
|
83
87
|
key: "0"
|
|
84
88
|
} : void 0, e.$slots.footer ? {
|
|
85
89
|
name: "footer",
|
|
86
|
-
fn:
|
|
90
|
+
fn: S(({ close: t }) => [b(e.$slots, "footer", { close: t }, void 0, !0)]),
|
|
87
91
|
key: "1"
|
|
88
92
|
} : void 0]), 1040, [
|
|
89
93
|
"presentation",
|
|
90
94
|
"title",
|
|
91
95
|
"accessible-name",
|
|
96
|
+
"heading-level",
|
|
92
97
|
"closable",
|
|
93
98
|
"set-surface-element"
|
|
94
|
-
])], 8,
|
|
99
|
+
])], 8, w)], 12, C)) : d("", !0)]),
|
|
95
100
|
_: 3
|
|
96
101
|
})]));
|
|
97
102
|
}
|
|
98
103
|
});
|
|
99
104
|
//#endregion
|
|
100
|
-
export {
|
|
105
|
+
export { T as default };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { DialogSurfaceModalSize, DialogSurfaceScrollBehavior, DialogSurfaceTone } from '../_internal/dialogSurface';
|
|
1
|
+
import { DialogSurfaceHeadingLevel, DialogSurfaceModalSize, DialogSurfaceScrollBehavior, DialogSurfaceTone } from '../_internal/dialogSurface';
|
|
2
2
|
export type ModalSize = DialogSurfaceModalSize;
|
|
3
3
|
export type ModalSurface = DialogSurfaceTone;
|
|
4
4
|
export type ModalScrollBehavior = DialogSurfaceScrollBehavior;
|
|
5
|
+
export type ModalHeadingLevel = DialogSurfaceHeadingLevel;
|
|
5
6
|
export interface Props {
|
|
6
7
|
open: boolean;
|
|
7
8
|
title?: string;
|
|
@@ -12,6 +13,8 @@ export interface Props {
|
|
|
12
13
|
surface?: ModalSurface;
|
|
13
14
|
scrollBehavior?: ModalScrollBehavior;
|
|
14
15
|
ariaLabel?: string;
|
|
16
|
+
/** Уровень видимого заголовка в document outline. / Visible title level in the document outline. */
|
|
17
|
+
headingLevel?: ModalHeadingLevel;
|
|
15
18
|
}
|
|
16
19
|
declare var __VLS_28: {}, __VLS_30: {}, __VLS_33: {
|
|
17
20
|
close: () => void;
|
|
@@ -33,8 +36,10 @@ type __VLS_Slots = {} & {
|
|
|
33
36
|
};
|
|
34
37
|
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
38
|
"update:open": (value: boolean) => any;
|
|
39
|
+
opened: () => any;
|
|
36
40
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
37
41
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
42
|
+
onOpened?: (() => any) | undefined;
|
|
38
43
|
}>, {
|
|
39
44
|
layout: "desktop" | "mobile-fullscreen";
|
|
40
45
|
title: string;
|
|
@@ -43,6 +48,7 @@ declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, i
|
|
|
43
48
|
ariaLabel: string;
|
|
44
49
|
surface: ModalSurface;
|
|
45
50
|
scrollBehavior: ModalScrollBehavior;
|
|
51
|
+
headingLevel: ModalHeadingLevel;
|
|
46
52
|
fullScreen: boolean;
|
|
47
53
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
48
54
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../../../assets/src/components/shared/containers/SModal.
|
|
1
|
+
import "../../../../assets/src/components/shared/containers/SModal.css_vue_type_style_index_0_src_23373daf_scoped_23373daf_lang.css";
|
|
2
2
|
import e from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
import t from "./SModal.vue_vue_type_script_setup_true_lang.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
//#region src/components/shared/containers/SModal.vue
|
|
6
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-
|
|
6
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-23373daf"]]);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { n as default };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { useDialogOverlay as e } from "../../../composables/useDialogOverlay.js";
|
|
2
2
|
import { useUiKitLocale as t } from "../../../composables/useUiKitLocale.js";
|
|
3
3
|
import { useOwnedAttrs as n } from "../../../internal/ownedAttrs.js";
|
|
4
|
-
import r from "../_internal/
|
|
5
|
-
import
|
|
4
|
+
import { validateDialogSurfaceHeadingLevel as r } from "../_internal/dialogSurface.js";
|
|
5
|
+
import i from "../_internal/SDialogSurface.vue.js";
|
|
6
|
+
import { Teleport as a, Transition as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as f, createVNode as p, defineComponent as m, mergeProps as h, normalizeClass as g, normalizeStyle as _, openBlock as v, renderSlot as y, toRef as b, unref as x, withCtx as S } from "vue";
|
|
6
7
|
//#region src/components/shared/containers/SModal.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
8
|
+
var C = /*@__PURE__*/ m({
|
|
8
9
|
inheritAttrs: !1,
|
|
9
10
|
__name: "SModal",
|
|
10
11
|
props: {
|
|
@@ -22,82 +23,88 @@ var S = /*@__PURE__*/ p({
|
|
|
22
23
|
layout: { default: "desktop" },
|
|
23
24
|
surface: { default: "default" },
|
|
24
25
|
scrollBehavior: { default: "page" },
|
|
25
|
-
ariaLabel: { default: void 0 }
|
|
26
|
+
ariaLabel: { default: void 0 },
|
|
27
|
+
headingLevel: { default: 2 }
|
|
26
28
|
},
|
|
27
|
-
emits: ["update:open"],
|
|
28
|
-
setup(
|
|
29
|
-
let
|
|
30
|
-
function
|
|
31
|
-
|
|
29
|
+
emits: ["update:open", "opened"],
|
|
30
|
+
setup(m, { emit: C }) {
|
|
31
|
+
let w = m, { t: T } = t(), E = C;
|
|
32
|
+
function D() {
|
|
33
|
+
E("update:open", !1);
|
|
32
34
|
}
|
|
33
|
-
let
|
|
35
|
+
let O = s(() => w.fullScreen || w.layout === "mobile-fullscreen"), k = n({
|
|
34
36
|
component: "SModal",
|
|
35
37
|
owner: "modal dialog surface"
|
|
36
|
-
}),
|
|
38
|
+
}), A = s(() => w.ariaLabel ?? T("dialog.modal")), j = s(() => r("SModal", w.headingLevel));
|
|
39
|
+
j.value;
|
|
40
|
+
let M = s(() => ({
|
|
37
41
|
kind: "modal",
|
|
38
|
-
size:
|
|
39
|
-
fullscreen:
|
|
40
|
-
surface:
|
|
41
|
-
scrollBehavior:
|
|
42
|
-
})), { setPanelElement:
|
|
43
|
-
open:
|
|
44
|
-
closable:
|
|
45
|
-
requestClose:
|
|
42
|
+
size: w.size,
|
|
43
|
+
fullscreen: O.value,
|
|
44
|
+
surface: w.surface,
|
|
45
|
+
scrollBehavior: w.scrollBehavior
|
|
46
|
+
})), { setPanelElement: N, backdropStyle: P, surfaceStyle: F } = e({
|
|
47
|
+
open: b(w, "open"),
|
|
48
|
+
closable: b(w, "closable"),
|
|
49
|
+
requestClose: D,
|
|
50
|
+
opened: () => E("opened")
|
|
46
51
|
});
|
|
47
|
-
return (e, t) => (
|
|
48
|
-
default:
|
|
52
|
+
return (e, t) => (v(), c(a, { to: "body" }, [p(o, { name: "s-modal-backdrop" }, {
|
|
53
|
+
default: S(() => [m.open ? (v(), u("div", {
|
|
49
54
|
key: 0,
|
|
50
55
|
class: "s-modal-backdrop",
|
|
51
|
-
style:
|
|
56
|
+
style: _(x(P)),
|
|
52
57
|
"aria-hidden": "true"
|
|
53
|
-
}, null, 4)) :
|
|
58
|
+
}, null, 4)) : l("", !0)]),
|
|
54
59
|
_: 1
|
|
55
|
-
}),
|
|
56
|
-
default:
|
|
60
|
+
}), p(o, { name: "s-modal-panel" }, {
|
|
61
|
+
default: S(() => [m.open ? (v(), u("div", {
|
|
57
62
|
key: 0,
|
|
58
63
|
class: "s-modal-container",
|
|
59
|
-
style:
|
|
60
|
-
}, [
|
|
61
|
-
presentation:
|
|
62
|
-
title:
|
|
63
|
-
"accessible-name":
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
style: _(x(F))
|
|
65
|
+
}, [d("div", { class: g(["s-modal-panel-container", { "s-modal-panel-container--fullscreen": O.value }]) }, [p(i, h(x(k).bindings(), {
|
|
66
|
+
presentation: M.value,
|
|
67
|
+
title: m.title,
|
|
68
|
+
"accessible-name": A.value,
|
|
69
|
+
"heading-level": j.value,
|
|
70
|
+
closable: m.closable,
|
|
71
|
+
"set-surface-element": x(N),
|
|
72
|
+
onRequestClose: D
|
|
73
|
+
}), f({
|
|
74
|
+
default: S(() => [y(e.$slots, "default", {}, void 0, !0)]),
|
|
69
75
|
_: 2
|
|
70
76
|
}, [
|
|
71
77
|
e.$slots.header ? {
|
|
72
78
|
name: "header",
|
|
73
|
-
fn:
|
|
79
|
+
fn: S(() => [y(e.$slots, "header", {}, void 0, !0)]),
|
|
74
80
|
key: "0"
|
|
75
81
|
} : void 0,
|
|
76
82
|
e.$slots.footer ? {
|
|
77
83
|
name: "footer",
|
|
78
|
-
fn:
|
|
84
|
+
fn: S(({ close: t }) => [y(e.$slots, "footer", { close: t }, void 0, !0)]),
|
|
79
85
|
key: "1"
|
|
80
86
|
} : void 0,
|
|
81
87
|
e.$slots["footer-start"] ? {
|
|
82
88
|
name: "footer-start",
|
|
83
|
-
fn:
|
|
89
|
+
fn: S(({ close: t }) => [y(e.$slots, "footer-start", { close: t }, void 0, !0)]),
|
|
84
90
|
key: "2"
|
|
85
91
|
} : void 0,
|
|
86
92
|
e.$slots["footer-end"] ? {
|
|
87
93
|
name: "footer-end",
|
|
88
|
-
fn:
|
|
94
|
+
fn: S(({ close: t }) => [y(e.$slots, "footer-end", { close: t }, void 0, !0)]),
|
|
89
95
|
key: "3"
|
|
90
96
|
} : void 0
|
|
91
97
|
]), 1040, [
|
|
92
98
|
"presentation",
|
|
93
99
|
"title",
|
|
94
100
|
"accessible-name",
|
|
101
|
+
"heading-level",
|
|
95
102
|
"closable",
|
|
96
103
|
"set-surface-element"
|
|
97
|
-
])], 2)], 4)) :
|
|
104
|
+
])], 2)], 4)) : l("", !0)]),
|
|
98
105
|
_: 3
|
|
99
106
|
})]));
|
|
100
107
|
}
|
|
101
108
|
});
|
|
102
109
|
//#endregion
|
|
103
|
-
export {
|
|
110
|
+
export { C as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component } from 'vue';
|
|
1
|
+
import { Component, VNodeChild } from 'vue';
|
|
2
2
|
import { InteractiveElementApi } from '../../../internal/interactiveElement';
|
|
3
3
|
import { BadgeSeverity } from '../data-display/SBadge.vue';
|
|
4
4
|
import { LinkBrowsingTarget, LinkRouterTarget } from './SLink';
|
|
@@ -67,6 +67,36 @@ export type SButtonNavigationProps = SButtonPresentationProps & SButtonNavigatio
|
|
|
67
67
|
});
|
|
68
68
|
/** Strict action/navigation XOR with a shared button presentation. */
|
|
69
69
|
export type Props = SButtonActionProps | SButtonNavigationProps;
|
|
70
|
-
|
|
70
|
+
type __VLS_Slots = {
|
|
71
|
+
/** Пассивное содержимое action/navigation button. / Passive action/navigation button content. */
|
|
72
|
+
default?: () => VNodeChild;
|
|
73
|
+
};
|
|
74
|
+
declare const __VLS_base: import('vue').DefineComponent<SButtonActionProps | (SButtonPresentationProps & SButtonNavigationOptions & {
|
|
75
|
+
href: string;
|
|
76
|
+
to?: never;
|
|
77
|
+
type?: never;
|
|
78
|
+
}) | (SButtonPresentationProps & SButtonNavigationOptions & {
|
|
79
|
+
href?: never;
|
|
80
|
+
to: LinkRouterTarget;
|
|
81
|
+
type?: never;
|
|
82
|
+
}), SButtonApi, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
83
|
+
click: (event: MouseEvent) => any;
|
|
84
|
+
}, string, import('vue').PublicProps, Readonly<SButtonActionProps | (SButtonPresentationProps & SButtonNavigationOptions & {
|
|
85
|
+
href: string;
|
|
86
|
+
to?: never;
|
|
87
|
+
type?: never;
|
|
88
|
+
}) | (SButtonPresentationProps & SButtonNavigationOptions & {
|
|
89
|
+
href?: never;
|
|
90
|
+
to: LinkRouterTarget;
|
|
91
|
+
type?: never;
|
|
92
|
+
})> & Readonly<{
|
|
93
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
94
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
95
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
71
96
|
declare const _default: typeof __VLS_export;
|
|
72
97
|
export default _default;
|
|
98
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
99
|
+
new (): {
|
|
100
|
+
$slots: S;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../../../assets/src/components/shared/controls/SButton.
|
|
1
|
+
import "../../../../assets/src/components/shared/controls/SButton.css_vue_type_style_index_0_src_52ad38b1_scoped_52ad38b1_lang.css";
|
|
2
2
|
import e from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
import t from "./SButton.vue_vue_type_script_setup_true_lang.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
//#region src/components/shared/controls/SButton.vue
|
|
6
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-
|
|
6
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-52ad38b1"]]);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { n as default };
|