@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.
Files changed (97) hide show
  1. package/README.md +89 -0
  2. 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
  3. package/dist/assets/src/components/shared/containers/SDrawer.css_vue_type_style_index_0_src_091d7325_scoped_091d7325_lang.css +2 -0
  4. 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
  5. 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
  6. 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
  7. 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
  8. package/dist/assets/src/components/shared/data-display/SCodeBlock.css_vue_type_style_index_0_src_78557968_scoped_78557968_lang.css +2 -0
  9. 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
  10. package/dist/assets/src/components/shared/data-display/SCodeWorkspaceEditor.css_vue_type_style_index_0_src_b200dc8e_scoped_b200dc8e_lang.css +2 -0
  11. package/dist/assets/src/components/shared/data-display/_internal/SRichBlockNode.css_vue_type_style_index_0_src_195d5c06_scoped_195d5c06_lang.css +2 -0
  12. 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
  13. 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
  14. package/dist/assets/src/components/shared/persona/_internal/SPersonaRunConsole.css_vue_type_style_index_0_src_21bf807e_scoped_21bf807e_lang.css +2 -0
  15. package/dist/index.js +4 -2
  16. package/dist/src/components/icons/_internal/generatedSputnigUiIconComponents.d.ts +243 -0
  17. package/dist/src/components/icons/_internal/generatedSputnigUiIconComponents.js +7 -0
  18. package/dist/src/components/icons/_internal/generatedSputnigUiIconMarkup.d.ts +721 -239
  19. package/dist/src/components/icons/_internal/generatedSputnigUiIconMarkup.js +244 -4
  20. package/dist/src/components/icons/_internal/sputnigUiIconRuntime.d.ts +18 -0
  21. package/dist/src/components/icons/_internal/sputnigUiIconRuntime.js +99 -0
  22. package/dist/src/components/icons/sputnigUiIcons.d.ts +5 -81
  23. package/dist/src/components/icons/sputnigUiIcons.js +238 -394
  24. package/dist/src/components/layout/SAppShell.vue.d.ts +2 -2
  25. package/dist/src/components/layout/SSideMenuButton.vue.d.ts +1 -1
  26. package/dist/src/components/layout/_internal/SAppBrand.vue.d.ts +3 -3
  27. package/dist/src/components/layout/types.d.ts +2 -2
  28. package/dist/src/components/shared/_internal/SDialogSurface.vue.d.ts +2 -1
  29. package/dist/src/components/shared/_internal/SDialogSurface.vue.js +2 -2
  30. package/dist/src/components/shared/_internal/SDialogSurface.vue_vue_type_script_setup_true_lang.js +38 -37
  31. package/dist/src/components/shared/_internal/SMenuItem.vue_vue_type_script_setup_true_lang.js +1 -1
  32. package/dist/src/components/shared/_internal/SToastItem.vue_vue_type_script_setup_true_lang.js +1 -1
  33. package/dist/src/components/shared/_internal/STreeNode.vue_vue_type_script_setup_true_lang.js +1 -1
  34. package/dist/src/components/shared/_internal/dialogSurface.d.ts +3 -0
  35. package/dist/src/components/shared/_internal/dialogSurface.js +23 -19
  36. package/dist/src/components/shared/containers/SCloudChromeRow.vue_vue_type_script_setup_true_lang.js +44 -44
  37. package/dist/src/components/shared/containers/SDrawer.vue.d.ts +7 -1
  38. package/dist/src/components/shared/containers/SDrawer.vue.js +2 -2
  39. package/dist/src/components/shared/containers/SDrawer.vue_vue_type_script_setup_true_lang.js +49 -44
  40. package/dist/src/components/shared/containers/SModal.vue.d.ts +7 -1
  41. package/dist/src/components/shared/containers/SModal.vue.js +2 -2
  42. package/dist/src/components/shared/containers/SModal.vue_vue_type_script_setup_true_lang.js +48 -41
  43. package/dist/src/components/shared/controls/SButton.vue.d.ts +32 -2
  44. package/dist/src/components/shared/controls/SButton.vue.js +2 -2
  45. package/dist/src/components/shared/controls/SButton.vue_vue_type_script_setup_true_lang.js +77 -79
  46. package/dist/src/components/shared/controls/SCheckbox.vue_vue_type_script_setup_true_lang.js +1 -1
  47. package/dist/src/components/shared/controls/SComboboxTrigger.vue_vue_type_script_setup_true_lang.js +1 -1
  48. package/dist/src/components/shared/controls/SContextToggleButton.vue_vue_type_script_setup_true_lang.js +1 -1
  49. package/dist/src/components/shared/controls/SDragHandle.vue_vue_type_script_setup_true_lang.js +21 -21
  50. package/dist/src/components/shared/controls/SInputText.vue.d.ts +6 -0
  51. package/dist/src/components/shared/controls/SInputText.vue.js +2 -2
  52. package/dist/src/components/shared/controls/SInputText.vue_vue_type_script_setup_true_lang.js +117 -97
  53. package/dist/src/components/shared/controls/SLink.vue.d.ts +17 -1
  54. package/dist/src/components/shared/controls/SLink.vue.js +2 -2
  55. package/dist/src/components/shared/controls/SLink.vue_vue_type_script_setup_true_lang.js +22 -22
  56. package/dist/src/components/shared/controls/SListboxOption.vue_vue_type_script_setup_true_lang.js +1 -1
  57. package/dist/src/components/shared/controls/STextarea.d.ts +1 -1
  58. package/dist/src/components/shared/controls/STextarea.vue.d.ts +12 -18
  59. package/dist/src/components/shared/controls/_internal/SInlineTokenSurface.vue_vue_type_script_lang.js +1 -1
  60. package/dist/src/components/shared/data-display/SActionListItem.vue.d.ts +1 -1
  61. package/dist/src/components/shared/data-display/SChip.vue_vue_type_script_setup_true_lang.js +1 -1
  62. package/dist/src/components/shared/data-display/SCodeBlock.vue.d.ts +33 -11
  63. package/dist/src/components/shared/data-display/SCodeBlock.vue.js +2 -2
  64. package/dist/src/components/shared/data-display/SCodeBlock.vue_vue_type_script_setup_true_lang.js +77 -75
  65. package/dist/src/components/shared/data-display/SCodeEditor.vue.d.ts +22 -10
  66. package/dist/src/components/shared/data-display/SCodeEditor.vue.js +2 -2
  67. package/dist/src/components/shared/data-display/SCodeEditor.vue_vue_type_script_setup_true_lang.js +44 -44
  68. package/dist/src/components/shared/data-display/SCodeSearchPanel.vue_vue_type_script_setup_true_lang.js +1 -1
  69. package/dist/src/components/shared/data-display/SCodeWorkspaceEditor.vue.js +2 -2
  70. package/dist/src/components/shared/data-display/SCodeWorkspaceEditor.vue_vue_type_script_setup_true_lang.js +3 -3
  71. package/dist/src/components/shared/data-display/SCopyField.vue_vue_type_script_setup_true_lang.js +1 -1
  72. package/dist/src/components/shared/data-display/SDocBlock.vue_vue_type_script_setup_true_lang.js +1 -1
  73. package/dist/src/components/shared/data-display/SExpandableText.vue_vue_type_script_setup_true_lang.js +1 -1
  74. package/dist/src/components/shared/data-display/SMessage.vue_vue_type_script_setup_true_lang.js +1 -1
  75. package/dist/src/components/shared/data-display/STable.vue_vue_type_script_setup_true_lang.js +1 -1
  76. package/dist/src/components/shared/data-display/_internal/SRichBlockNode.vue.js +2 -2
  77. package/dist/src/components/shared/data-display/_internal/SRichBlockNode.vue_vue_type_script_setup_true_lang.js +2 -2
  78. package/dist/src/components/shared/database/SSqlEditor.vue_vue_type_script_setup_true_lang.js +7 -10
  79. package/dist/src/components/shared/navigation/SBottomNav.vue.js +2 -2
  80. package/dist/src/components/shared/navigation/SBottomNav.vue_vue_type_script_setup_true_lang.js +70 -68
  81. package/dist/src/components/shared/navigation/SBreadcrumbs.vue.js +2 -2
  82. package/dist/src/components/shared/navigation/SBreadcrumbs.vue_vue_type_script_setup_true_lang.js +20 -21
  83. package/dist/src/components/shared/persona/SPersonaProjectPicker.vue_vue_type_script_setup_true_lang.js +1 -1
  84. package/dist/src/components/shared/persona/_internal/SPersonaRunConsole.vue.js +2 -2
  85. package/dist/src/components/shared/persona/_internal/SPersonaRunConsole.vue_vue_type_script_setup_true_lang.js +6 -3
  86. package/dist/src/composables/useDialogOverlay.d.ts +2 -0
  87. package/dist/src/composables/useDialogOverlay.js +14 -7
  88. package/dist/src/internal/feedbackPresentation.js +1 -1
  89. package/docs/accessibility.md +10 -0
  90. package/docs/public-api.md +12 -0
  91. package/docs/versioning.md +38 -10
  92. package/package.json +1 -1
  93. package/dist/assets/src/components/shared/containers/SDrawer.css_vue_type_style_index_0_src_1226da98_scoped_1226da98_lang.css +0 -2
  94. package/dist/assets/src/components/shared/data-display/SCodeBlock.css_vue_type_style_index_0_src_aad45526_scoped_aad45526_lang.css +0 -2
  95. package/dist/assets/src/components/shared/data-display/SCodeWorkspaceEditor.css_vue_type_style_index_0_src_864bce1d_scoped_864bce1d_lang.css +0 -2
  96. package/dist/assets/src/components/shared/data-display/_internal/SRichBlockNode.css_vue_type_style_index_0_src_63180598_scoped_63180598_lang.css +0 -2
  97. package/dist/assets/src/components/shared/persona/_internal/SPersonaRunConsole.css_vue_type_style_index_0_src_c71f59d4_scoped_c71f59d4_lang.css +0 -2
@@ -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/SDialogSurface.vue.js";
6
- import { Teleport as o, Transition as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createVNode as m, defineComponent as h, mergeProps as g, normalizeStyle as _, openBlock as v, renderSlot as y, unref as b, withCtx as x } from "vue";
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 S = ["data-placement"], C = ["data-placement"], w = /*@__PURE__*/ h({
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(h, { emit: w }) {
28
- let T = h, { t: E } = t(), D = w, O = n({
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
- }), k = c(() => T.ariaLabel ?? E("dialog.drawer")), A = c(() => i("SDrawer", "placement", T.placement, ["right", "bottom"])), j = c(() => i("SDrawer", "size", T.size, [
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
- ])), M = c(() => r("SDrawer", "open", T.open)), N = c(() => r("SDrawer", "closable", T.closable)), P = c(() => r("SDrawer", "mobileFullScreen", T.mobileFullScreen)), F = c(() => ({
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: j.value,
38
- placement: A.value,
39
- mobileFullScreen: P.value
39
+ size: N.value,
40
+ placement: M.value,
41
+ mobileFullScreen: I.value
40
42
  }));
41
- function I() {
42
- A.value, j.value, M.value, N.value, P.value;
43
+ function R() {
44
+ M.value, N.value, P.value, F.value, I.value, j.value;
43
45
  }
44
- I();
45
- function L() {
46
- D("update:open", !1);
46
+ R();
47
+ function z() {
48
+ O("update:open", !1);
47
49
  }
48
- let { setPanelElement: R, backdropStyle: z, surfaceStyle: B } = e({
49
- open: M,
50
- closable: N,
51
- requestClose: L
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) => (v(), l(o, { to: "body" }, [m(s, { name: "s-drawer-backdrop" }, {
54
- default: x(() => [h.open ? (v(), d("div", {
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: _(b(z)),
60
+ style: v(x(V)),
58
61
  "aria-hidden": "true"
59
- }, null, 4)) : u("", !0)]),
62
+ }, null, 4)) : d("", !0)]),
60
63
  _: 1
61
- }), m(s, { name: "s-drawer-panel" }, {
62
- default: x(() => [h.open ? (v(), d("div", {
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": A.value,
66
- style: _(b(B))
67
- }, [f("div", {
68
+ "data-placement": M.value,
69
+ style: v(x(H))
70
+ }, [p("div", {
68
71
  class: "s-drawer-positioner",
69
- "data-placement": A.value
70
- }, [m(a, g(b(O).bindings(), {
71
- presentation: F.value,
72
- title: h.title,
73
- "accessible-name": k.value,
74
- closable: h.closable,
75
- "set-surface-element": b(R),
76
- onRequestClose: L
77
- }), p({
78
- default: x(() => [y(e.$slots, "default", {}, void 0, !0)]),
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: x(() => [y(e.$slots, "header", {}, void 0, !0)]),
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: x(({ close: t }) => [y(e.$slots, "footer", { close: t }, void 0, !0)]),
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, C)], 12, S)) : u("", !0)]),
99
+ ])], 8, w)], 12, C)) : d("", !0)]),
95
100
  _: 3
96
101
  })]));
97
102
  }
98
103
  });
99
104
  //#endregion
100
- export { w as default };
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.css_vue_type_style_index_0_src_64c62e90_scoped_64c62e90_lang.css";
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-64c62e90"]]);
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/SDialogSurface.vue.js";
5
- import { Teleport as i, Transition as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as d, createVNode as f, defineComponent as p, mergeProps as m, normalizeClass as h, normalizeStyle as g, openBlock as _, renderSlot as v, toRef as y, unref as b, withCtx as x } from "vue";
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 S = /*@__PURE__*/ p({
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(p, { emit: S }) {
29
- let C = p, { t: w } = t(), T = S;
30
- function E() {
31
- T("update:open", !1);
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 D = o(() => C.fullScreen || C.layout === "mobile-fullscreen"), O = n({
35
+ let O = s(() => w.fullScreen || w.layout === "mobile-fullscreen"), k = n({
34
36
  component: "SModal",
35
37
  owner: "modal dialog surface"
36
- }), k = o(() => C.ariaLabel ?? w("dialog.modal")), A = o(() => ({
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: C.size,
39
- fullscreen: D.value,
40
- surface: C.surface,
41
- scrollBehavior: C.scrollBehavior
42
- })), { setPanelElement: j, backdropStyle: M, surfaceStyle: N } = e({
43
- open: y(C, "open"),
44
- closable: y(C, "closable"),
45
- requestClose: E
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) => (_(), s(i, { to: "body" }, [f(a, { name: "s-modal-backdrop" }, {
48
- default: x(() => [p.open ? (_(), l("div", {
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: g(b(M)),
56
+ style: _(x(P)),
52
57
  "aria-hidden": "true"
53
- }, null, 4)) : c("", !0)]),
58
+ }, null, 4)) : l("", !0)]),
54
59
  _: 1
55
- }), f(a, { name: "s-modal-panel" }, {
56
- default: x(() => [p.open ? (_(), l("div", {
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: g(b(N))
60
- }, [u("div", { class: h(["s-modal-panel-container", { "s-modal-panel-container--fullscreen": D.value }]) }, [f(r, m(b(O).bindings(), {
61
- presentation: A.value,
62
- title: p.title,
63
- "accessible-name": k.value,
64
- closable: p.closable,
65
- "set-surface-element": b(j),
66
- onRequestClose: E
67
- }), d({
68
- default: x(() => [v(e.$slots, "default", {}, void 0, !0)]),
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: x(() => [v(e.$slots, "header", {}, void 0, !0)]),
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: x(({ close: t }) => [v(e.$slots, "footer", { close: t }, void 0, !0)]),
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: x(({ close: t }) => [v(e.$slots, "footer-start", { close: t }, void 0, !0)]),
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: x(({ close: t }) => [v(e.$slots, "footer-end", { close: t }, void 0, !0)]),
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)) : c("", !0)]),
104
+ ])], 2)], 4)) : l("", !0)]),
98
105
  _: 3
99
106
  })]));
100
107
  }
101
108
  });
102
109
  //#endregion
103
- export { S as default };
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
- declare const __VLS_export: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
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.css_vue_type_style_index_0_src_49f356bb_scoped_49f356bb_lang.css";
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-49f356bb"]]);
6
+ var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-52ad38b1"]]);
7
7
  //#endregion
8
8
  export { n as default };