@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
@@ -1,4 +1,4 @@
1
- import { ChevronRight as e } from "../../icons/sputnigUiIcons.js";
1
+ import { ChevronRight as e } from "../../icons/_internal/generatedSputnigUiIconComponents.js";
2
2
  import { useOwnedAttrs as t } from "../../../internal/ownedAttrs.js";
3
3
  import { resolveSemanticToneBinding as n } from "../../../internal/semanticTone.js";
4
4
  import r from "../data-display/SBadge.vue.js";
@@ -6,8 +6,8 @@ import { PassiveContentBoundary as i, useInteractiveLeafRegistration as a } from
6
6
  import { resolveLinkTarget as o } from "../../../internal/linkTarget.js";
7
7
  import { useTreeActionRegistration as s } from "../_internal/treeRuntime.js";
8
8
  import c from "../data-display/SProgressIndicator.vue.js";
9
- import { computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, getCurrentInstance as _, mergeProps as v, openBlock as y, ref as b, resolveDynamicComponent as x, toDisplayString as S, unref as C, watchEffect as w, withCtx as T } from "vue";
10
- import { RouterLink as ee } from "vue-router";
9
+ import { computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, mergeProps as _, openBlock as v, ref as y, resolveDynamicComponent as b, toDisplayString as x, unref as S, useSlots as C, watchEffect as ee, withCtx as w } from "vue";
10
+ import { RouterLink as T } from "vue-router";
11
11
  //#region src/components/shared/controls/SButton.vue?vue&type=script&setup=true&lang.ts
12
12
  var E = {
13
13
  key: 0,
@@ -27,7 +27,7 @@ var E = {
27
27
  inheritAttrs: !1,
28
28
  __name: "SButton",
29
29
  props: {
30
- label: { default: void 0 },
30
+ label: {},
31
31
  severity: { default: "primary" },
32
32
  size: { default: "md" },
33
33
  disabled: {
@@ -38,16 +38,16 @@ var E = {
38
38
  type: Boolean,
39
39
  default: !1
40
40
  },
41
- loadingLabel: { default: void 0 },
42
- leadingIcon: { default: void 0 },
43
- trailingIcon: { default: void 0 },
41
+ loadingLabel: {},
42
+ leadingIcon: {},
43
+ trailingIcon: {},
44
44
  iconSize: { default: "default" },
45
45
  density: { default: "default" },
46
46
  spacing: { default: "default" },
47
47
  hoverSurface: { default: "self" },
48
- badge: { default: void 0 },
48
+ badge: {},
49
49
  badgeSeverity: { default: "secondary" },
50
- shortcut: { default: void 0 },
50
+ shortcut: {},
51
51
  iconOnly: {
52
52
  type: Boolean,
53
53
  default: !1
@@ -58,18 +58,18 @@ var E = {
58
58
  shape: { default: "default" },
59
59
  pressed: {
60
60
  type: [Boolean, String],
61
- default: void 0
61
+ default: () => void 0
62
62
  },
63
63
  busy: {
64
64
  type: Boolean,
65
65
  default: !1
66
66
  },
67
- disclosure: { default: void 0 },
68
- href: { default: void 0 },
69
- to: { default: void 0 },
70
- target: { default: void 0 },
71
- rel: { default: void 0 },
72
- type: { default: void 0 }
67
+ disclosure: {},
68
+ href: {},
69
+ to: {},
70
+ target: {},
71
+ rel: {},
72
+ type: {}
73
73
  },
74
74
  emits: ["click"],
75
75
  setup(g, { expose: N, emit: P }) {
@@ -81,45 +81,43 @@ var E = {
81
81
  "warn",
82
82
  "danger",
83
83
  "contrast"
84
- ], I = g, L = P, R = _();
85
- if (!R) throw Error("SButton: component instance is unavailable");
86
- let z = R.slots, B = () => z.default?.() ?? [], V = b(null), H = t({
84
+ ], I = P, L = C(), R = () => L.default?.() ?? [], z = y(null), B = t({
87
85
  component: "SButton",
88
86
  owner: "native button"
89
- }), U = l(() => n("SButton", "severity", I.severity, F)), W = s({
87
+ }), V = l(() => n("SButton", "severity", g.severity, F)), H = s({
90
88
  owner: "SButton",
91
- element: V,
92
- disabled: () => I.disabled || I.loading
89
+ element: z,
90
+ disabled: () => g.disabled || g.loading
93
91
  });
94
92
  a({ owner: "SButton" });
95
- let G = l(() => {
96
- let e = I.href !== void 0, t = I.to !== void 0;
93
+ let U = l(() => {
94
+ let e = g.href !== void 0, t = g.to !== void 0;
97
95
  if (e && t) throw TypeError("SButton: передайте не более одного navigation target — href или to");
98
96
  if (!e && !t) return null;
99
- if (I.type !== void 0) throw TypeError("SButton: navigation target несовместим с native button type");
97
+ if (g.type !== void 0) throw TypeError("SButton: navigation target несовместим с native button type");
100
98
  return o({
101
- href: I.href,
102
- to: I.to,
103
- target: I.target,
104
- rel: I.rel,
99
+ href: g.href,
100
+ to: g.to,
101
+ target: g.target,
102
+ rel: g.rel,
105
103
  owner: "SButton"
106
104
  });
107
- }), K = l(() => I.disabled || I.loading), q = l(() => {
108
- let e = G.value;
109
- return !e || K.value ? e ? "a" : "button" : e.kind === "router" ? ee : "a";
110
- }), J = l(() => {
111
- let e = H.bindings(), t = W ? {
105
+ }), W = l(() => g.disabled || g.loading), G = l(() => {
106
+ let e = U.value;
107
+ return !e || W.value ? e ? "a" : "button" : e.kind === "router" ? T : "a";
108
+ }), K = l(() => {
109
+ let e = B.bindings(), t = H ? {
112
110
  ...e,
113
111
  tabindex: -1
114
- } : e, n = I.disclosure ? {
112
+ } : e, n = g.disclosure ? {
115
113
  ...t,
116
- "aria-expanded": I.disclosure.expanded,
117
- "aria-controls": I.disclosure.controls
118
- } : t, r = G.value, i = r === null ? {
114
+ "aria-expanded": g.disclosure.expanded,
115
+ "aria-controls": g.disclosure.controls
116
+ } : t, r = U.value, i = r === null ? {
119
117
  ...n,
120
- disabled: I.disabled || I.loading || void 0,
121
- type: I.type ?? "button"
122
- } : K.value ? {
118
+ disabled: g.disabled || g.loading || void 0,
119
+ type: g.type ?? "button"
120
+ } : W.value ? {
123
121
  ...n,
124
122
  "aria-disabled": !0,
125
123
  tabindex: -1
@@ -127,61 +125,61 @@ var E = {
127
125
  ...n,
128
126
  ...r.bindings
129
127
  };
130
- if (!I.loading) return i;
128
+ if (!g.loading) return i;
131
129
  let a = i["aria-label"], o = [
132
- I.loadingLabel,
133
- I.label,
130
+ g.loadingLabel,
131
+ g.label,
134
132
  a
135
133
  ].find((e) => typeof e == "string" && e.trim().length > 0);
136
- if (!o && !z.default) throw Error("SButton: loading action requires label, loadingLabel, or aria-label");
134
+ if (!o && !L.default) throw Error("SButton: loading action requires label, loadingLabel, or aria-label");
137
135
  return o ? {
138
136
  ...i,
139
137
  "aria-label": o
140
138
  } : i;
141
- }), Y = {
139
+ }), q = {
142
140
  owner: "SButton",
143
141
  region: "passive default content",
144
142
  guidance: "Вынесите независимое действие в соседний SButton. / Move the independent action to a sibling SButton."
145
143
  };
146
- w(() => {
147
- let e = G.value;
148
- if (e && I.pressed !== void 0) throw Error("SButton: navigation target несовместим с pressed toggle semantics");
149
- if (e && I.disclosure !== void 0) throw Error("SButton: navigation target несовместим с disclosure trigger semantics");
150
- if (I.disclosure && I.disclosure.controls.trim().length === 0) throw Error("SButton: disclosure.controls must be a non-empty id");
151
- let t = I.disclosure?.iconPlacement ?? "trailing";
152
- if (I.disclosure && (t === "leading" && I.leadingIcon || t === "trailing" && I.trailingIcon)) throw Error(`SButton: disclosure ${t} icon conflicts with the matching icon prop`);
144
+ ee(() => {
145
+ let e = U.value;
146
+ if (e && g.pressed !== void 0) throw Error("SButton: navigation target несовместим с pressed toggle semantics");
147
+ if (e && g.disclosure !== void 0) throw Error("SButton: navigation target несовместим с disclosure trigger semantics");
148
+ if (g.disclosure && g.disclosure.controls.trim().length === 0) throw Error("SButton: disclosure.controls must be a non-empty id");
149
+ let t = g.disclosure?.iconPlacement ?? "trailing";
150
+ if (g.disclosure && (t === "leading" && g.leadingIcon || t === "trailing" && g.trailingIcon)) throw Error(`SButton: disclosure ${t} icon conflicts with the matching icon prop`);
153
151
  });
154
- let X = l(() => I.iconOnly || I.label === "" && !!(I.leadingIcon || I.trailingIcon || z.default)), Z = l(() => I.label === void 0 || I.label === "" && !I.leadingIcon && !I.trailingIcon), Q = l(() => I.size === "lg" ? "sm" : "xs");
155
- function te(e) {
152
+ let J = l(() => g.iconOnly || g.label === "" && !!(g.leadingIcon || g.trailingIcon || L.default)), Y = l(() => g.label === void 0 || g.label === "" && !g.leadingIcon && !g.trailingIcon), X = l(() => g.size === "lg" ? "sm" : "xs");
153
+ function Z(e) {
156
154
  if (e === null) {
157
- V.value = null;
155
+ z.value = null;
158
156
  return;
159
157
  }
160
158
  if (e instanceof HTMLButtonElement || e instanceof HTMLAnchorElement) {
161
- V.value = e;
159
+ z.value = e;
162
160
  return;
163
161
  }
164
162
  let t = Reflect.get(e, "$el");
165
163
  if (!(t instanceof HTMLAnchorElement)) throw TypeError("SButton: RouterLink root must resolve to an HTMLAnchorElement");
166
- V.value = t;
164
+ z.value = t;
167
165
  }
168
- function ne(e) {
169
- if (G.value && K.value) {
166
+ function Q(e) {
167
+ if (U.value && W.value) {
170
168
  e.preventDefault(), e.stopImmediatePropagation();
171
169
  return;
172
170
  }
173
- L("click", e);
171
+ I("click", e);
174
172
  }
175
173
  let $ = () => {
176
- let e = V.value;
174
+ let e = z.value;
177
175
  if (!e) throw Error("SButton: interactive element is unavailable");
178
176
  return e;
179
177
  };
180
178
  return N({
181
179
  getElement: $,
182
180
  focus: (e) => $().focus(e)
183
- }), (t, n) => (y(), u(x(q.value), v({ ref: te }, J.value, {
184
- "data-s-tone": U.value["data-s-tone"],
181
+ }), (t, n) => (v(), u(b(G.value), _({ ref: Z }, K.value, {
182
+ "data-s-tone": V.value["data-s-tone"],
185
183
  class: "s-button",
186
184
  "data-size": g.size,
187
185
  "data-width": g.width,
@@ -189,53 +187,53 @@ var E = {
189
187
  "data-density": g.density,
190
188
  "data-spacing": g.spacing,
191
189
  "data-hover-surface": g.hoverSurface,
192
- "data-icon-only": X.value,
190
+ "data-icon-only": J.value,
193
191
  "data-icon-size": g.iconSize,
194
192
  "data-appearance": g.appearance,
195
193
  "data-shape": g.shape,
196
194
  "data-loading": g.loading || void 0,
197
195
  "aria-pressed": g.pressed,
198
196
  "aria-busy": g.busy || g.loading || void 0,
199
- onClick: ne
197
+ onClick: Q
200
198
  }), {
201
- default: T(() => [g.loading ? (y(), f("span", E, [h(c, {
199
+ default: w(() => [g.loading ? (v(), f("span", E, [h(c, {
202
200
  accessibility: { mode: "decorative" },
203
- size: Q.value
201
+ size: X.value
204
202
  }, null, 8, ["size"])])) : d("", !0), p("span", D, [
205
- g.disclosure?.iconPlacement === "leading" ? (y(), f("span", {
203
+ g.disclosure?.iconPlacement === "leading" ? (v(), f("span", {
206
204
  key: 0,
207
205
  class: "s-button__disclosure-icon s-button__icon s-button__icon--leading",
208
206
  "data-expanded": g.disclosure.expanded,
209
207
  "data-disclosure-icon": "",
210
208
  "aria-hidden": "true"
211
- }, [h(C(e))], 8, O)) : g.leadingIcon ? (y(), u(x(g.leadingIcon), {
209
+ }, [h(S(e))], 8, O)) : g.leadingIcon ? (v(), u(b(g.leadingIcon), {
212
210
  key: 1,
213
211
  class: "s-button__icon s-button__icon--leading",
214
212
  "aria-hidden": "true"
215
213
  })) : d("", !0),
216
- g.label ? (y(), f("span", k, S(g.label), 1)) : d("", !0),
217
- Z.value ? (y(), u(C(i), {
214
+ g.label ? (v(), f("span", k, x(g.label), 1)) : d("", !0),
215
+ Y.value ? (v(), u(S(i), {
218
216
  key: 3,
219
- contract: Y
217
+ contract: q
220
218
  }, {
221
- default: T(() => [(y(), u(x(B)))]),
219
+ default: w(() => [(v(), u(b(R)))]),
222
220
  _: 1
223
221
  })) : d("", !0),
224
- g.badge === void 0 ? d("", !0) : (y(), f("span", A, [h(r, {
222
+ g.badge === void 0 ? d("", !0) : (v(), f("span", A, [h(r, {
225
223
  severity: g.badgeSeverity,
226
224
  size: "xs"
227
225
  }, {
228
- default: T(() => [m(S(g.badge), 1)]),
226
+ default: w(() => [m(x(g.badge), 1)]),
229
227
  _: 1
230
228
  }, 8, ["severity"])])),
231
- g.shortcut ? (y(), f("span", j, S(g.shortcut), 1)) : d("", !0),
232
- g.disclosure && g.disclosure.iconPlacement !== "leading" && g.disclosure.iconPlacement !== "none" ? (y(), f("span", {
229
+ g.shortcut ? (v(), f("span", j, x(g.shortcut), 1)) : d("", !0),
230
+ g.disclosure && g.disclosure.iconPlacement !== "leading" && g.disclosure.iconPlacement !== "none" ? (v(), f("span", {
233
231
  key: 6,
234
232
  class: "s-button__disclosure-icon s-button__icon s-button__icon--trailing",
235
233
  "data-expanded": g.disclosure.expanded,
236
234
  "data-disclosure-icon": "",
237
235
  "aria-hidden": "true"
238
- }, [h(C(e))], 8, M)) : g.trailingIcon ? (y(), u(x(g.trailingIcon), {
236
+ }, [h(S(e))], 8, M)) : g.trailingIcon ? (v(), u(b(g.trailingIcon), {
239
237
  key: 7,
240
238
  class: "s-button__icon s-button__icon--trailing",
241
239
  "aria-hidden": "true"
@@ -1,4 +1,4 @@
1
- import { Check as e, Minus as t } from "../../icons/sputnigUiIcons.js";
1
+ import { Check as e, Minus as t } from "../../icons/_internal/generatedSputnigUiIconComponents.js";
2
2
  import { mergeIdReferences as n, useOwnedAttrs as r } from "../../../internal/ownedAttrs.js";
3
3
  import { useInteractiveLeafRegistration as i } from "../../../internal/passiveContentContract.js";
4
4
  import { useBinaryInput as a } from "../../../internal/useBinaryInput.js";
@@ -1,4 +1,4 @@
1
- import { ChevronDown as e, ChevronsUpDown as t } from "../../icons/sputnigUiIcons.js";
1
+ import { ChevronDown as e, ChevronsUpDown as t } from "../../icons/_internal/generatedSputnigUiIconComponents.js";
2
2
  import { useUiKitLocale as n } from "../../../composables/useUiKitLocale.js";
3
3
  import { useInteractiveLeafRegistration as r } from "../../../internal/passiveContentContract.js";
4
4
  import { resolveFieldSurfaceBindings as i } from "../../../internal/fieldSurface.js";
@@ -1,4 +1,4 @@
1
- import { Minus as e, MinusCircle as t, PlusCircle as n } from "../../icons/sputnigUiIcons.js";
1
+ import { Minus as e, MinusCircle as t, PlusCircle as n } from "../../icons/_internal/generatedSputnigUiIconComponents.js";
2
2
  import { useUiKitLocale as r } from "../../../composables/useUiKitLocale.js";
3
3
  import { useOwnedAttrs as i } from "../../../internal/ownedAttrs.js";
4
4
  import { validateNonEmptyString as a } from "../../../internal/runtimeContract.js";
@@ -1,4 +1,4 @@
1
- import { getSputnigUiIconComponent as e } from "../../icons/sputnigUiIcons.js";
1
+ import { Drag as e } from "../../icons/_internal/generatedSputnigUiIconComponents.js";
2
2
  import { useUiKitLocale as t } from "../../../composables/useUiKitLocale.js";
3
3
  import { useOwnedAttrs as n } from "../../../internal/ownedAttrs.js";
4
4
  import { validateNonEmptyString as r } from "../../../internal/runtimeContract.js";
@@ -31,23 +31,23 @@ var p = /*@__PURE__*/ s({
31
31
  "keyboard-active-change"
32
32
  ],
33
33
  setup(s, { emit: p }) {
34
- let m = s, h = p, g = e("drag"), _ = n({
34
+ let m = s, h = p, g = n({
35
35
  component: "SDragHandle",
36
36
  owner: "drag handle command"
37
- }), { t: v } = t(), y = u(!1), b = a(() => r("SDragHandle", "label", m.label)), x = a(() => m.orientation === "vertical" ? "Enter Space ArrowUp ArrowDown Escape" : "Enter Space ArrowLeft ArrowRight Escape"), S = a(() => y.value ? v("layout.dragActive", { label: b.value }) : v("layout.dragIdle", { label: b.value }));
37
+ }), { t: _ } = t(), v = u(!1), y = a(() => r("SDragHandle", "label", m.label)), b = a(() => m.orientation === "vertical" ? "Enter Space ArrowUp ArrowDown Escape" : "Enter Space ArrowLeft ArrowRight Escape"), x = a(() => v.value ? _("layout.dragActive", { label: y.value }) : _("layout.dragIdle", { label: y.value }));
38
+ function S(e) {
39
+ v.value !== e && (v.value = e, h("keyboard-active-change", e));
40
+ }
38
41
  function C(e) {
39
- y.value !== e && (y.value = e, h("keyboard-active-change", e));
42
+ m.disabled || e.detail > 0 || S(!v.value);
40
43
  }
41
44
  function w(e) {
42
- m.disabled || e.detail > 0 || C(!y.value);
45
+ m.disabled || (S(!1), h("drag-start", e));
43
46
  }
44
47
  function T(e) {
45
- m.disabled || (C(!1), h("drag-start", e));
46
- }
47
- function E(e) {
48
- if (m.disabled || !y.value) return;
48
+ if (m.disabled || !v.value) return;
49
49
  if (e.key === "Escape") {
50
- e.preventDefault(), C(!1);
50
+ e.preventDefault(), S(!1);
51
51
  return;
52
52
  }
53
53
  let t = m.orientation === "vertical" ? "ArrowUp" : "ArrowLeft", n = m.orientation === "vertical" ? "ArrowDown" : "ArrowRight";
@@ -57,23 +57,23 @@ var p = /*@__PURE__*/ s({
57
57
  (r !== -1 || m.canMovePrevious) && (r !== 1 || m.canMoveNext) && h("reorder", r);
58
58
  }
59
59
  return f(() => {
60
- m.disabled && C(!1);
61
- }), (e, t) => (l(), o(i, c(d(_).bindings(), {
60
+ m.disabled && S(!1);
61
+ }), (t, n) => (l(), o(i, c(d(g).bindings(), {
62
62
  size: s.size,
63
63
  severity: "secondary",
64
64
  appearance: "ghost",
65
65
  "icon-only": "",
66
- "leading-icon": d(g),
66
+ "leading-icon": d(e),
67
67
  disabled: s.disabled,
68
- pressed: y.value,
69
- title: S.value,
70
- "aria-label": S.value,
71
- "aria-keyshortcuts": x.value,
68
+ pressed: v.value,
69
+ title: x.value,
70
+ "aria-label": x.value,
71
+ "aria-keyshortcuts": b.value,
72
72
  "data-s-drag-handle": "",
73
- "data-state": y.value ? "keyboard-active" : "idle",
74
- onClick: w,
75
- onPointerdown: T,
76
- onKeydown: E
73
+ "data-state": v.value ? "keyboard-active" : "idle",
74
+ onClick: C,
75
+ onPointerdown: w,
76
+ onKeydown: T
77
77
  }), null, 16, [
78
78
  "size",
79
79
  "leading-icon",
@@ -33,6 +33,10 @@ export interface Props {
33
33
  disabled?: boolean;
34
34
  readonly?: boolean;
35
35
  required?: boolean;
36
+ /** Минимальная длина textual-значения для native constraint validation. / Minimum textual value length for native constraint validation. */
37
+ minLength?: number;
38
+ /** Максимальная длина textual-значения, ограничивающая пользовательский ввод. / Maximum textual value length that constrains user input. */
39
+ maxLength?: number;
36
40
  monospace?: boolean;
37
41
  size?: 'sm' | 'md' | 'lg';
38
42
  density?: SInputTextDensity;
@@ -108,6 +112,8 @@ declare const __VLS_export: import('vue').DefineComponent<Props, {
108
112
  appearance: "field" | "grid-cell" | "workbench-title";
109
113
  monospace: boolean;
110
114
  modelModifiers: SInputTextModelModifiers;
115
+ minLength: number;
116
+ maxLength: number;
111
117
  trailingText: string;
112
118
  trailingAction: SInputTextTrailingAction;
113
119
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1,8 +1,8 @@
1
- import "../../../../assets/src/components/shared/controls/SInputText.css_vue_type_style_index_0_src_6d42d245_scoped_6d42d245_lang.css";
1
+ import "../../../../assets/src/components/shared/controls/SInputText.css_vue_type_style_index_0_src_a9c5f1aa_scoped_a9c5f1aa_lang.css";
2
2
  import e from "../../../../_virtual/_plugin-vue_export-helper.js";
3
3
  import t from "./SInputText.vue_vue_type_script_setup_true_lang.js";
4
4
  /* empty css */
5
5
  //#region src/components/shared/controls/SInputText.vue
6
- var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-6d42d245"]]);
6
+ var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-a9c5f1aa"]]);
7
7
  //#endregion
8
8
  export { n as default };