@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChevronRight as e } from "../../icons/
|
|
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,
|
|
10
|
-
import { RouterLink as
|
|
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: {
|
|
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: {
|
|
42
|
-
leadingIcon: {
|
|
43
|
-
trailingIcon: {
|
|
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: {
|
|
48
|
+
badge: {},
|
|
49
49
|
badgeSeverity: { default: "secondary" },
|
|
50
|
-
shortcut: {
|
|
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: {
|
|
68
|
-
href: {
|
|
69
|
-
to: {
|
|
70
|
-
target: {
|
|
71
|
-
rel: {
|
|
72
|
-
type: {
|
|
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 =
|
|
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
|
-
}),
|
|
87
|
+
}), V = l(() => n("SButton", "severity", g.severity, F)), H = s({
|
|
90
88
|
owner: "SButton",
|
|
91
|
-
element:
|
|
92
|
-
disabled: () =>
|
|
89
|
+
element: z,
|
|
90
|
+
disabled: () => g.disabled || g.loading
|
|
93
91
|
});
|
|
94
92
|
a({ owner: "SButton" });
|
|
95
|
-
let
|
|
96
|
-
let e =
|
|
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 (
|
|
97
|
+
if (g.type !== void 0) throw TypeError("SButton: navigation target несовместим с native button type");
|
|
100
98
|
return o({
|
|
101
|
-
href:
|
|
102
|
-
to:
|
|
103
|
-
target:
|
|
104
|
-
rel:
|
|
99
|
+
href: g.href,
|
|
100
|
+
to: g.to,
|
|
101
|
+
target: g.target,
|
|
102
|
+
rel: g.rel,
|
|
105
103
|
owner: "SButton"
|
|
106
104
|
});
|
|
107
|
-
}),
|
|
108
|
-
let e =
|
|
109
|
-
return !e ||
|
|
110
|
-
}),
|
|
111
|
-
let e =
|
|
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 =
|
|
112
|
+
} : e, n = g.disclosure ? {
|
|
115
113
|
...t,
|
|
116
|
-
"aria-expanded":
|
|
117
|
-
"aria-controls":
|
|
118
|
-
} : t, r =
|
|
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:
|
|
121
|
-
type:
|
|
122
|
-
} :
|
|
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 (!
|
|
128
|
+
if (!g.loading) return i;
|
|
131
129
|
let a = i["aria-label"], o = [
|
|
132
|
-
|
|
133
|
-
|
|
130
|
+
g.loadingLabel,
|
|
131
|
+
g.label,
|
|
134
132
|
a
|
|
135
133
|
].find((e) => typeof e == "string" && e.trim().length > 0);
|
|
136
|
-
if (!o && !
|
|
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
|
-
}),
|
|
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
|
-
|
|
147
|
-
let e =
|
|
148
|
-
if (e &&
|
|
149
|
-
if (e &&
|
|
150
|
-
if (
|
|
151
|
-
let t =
|
|
152
|
-
if (
|
|
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
|
|
155
|
-
function
|
|
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
|
-
|
|
155
|
+
z.value = null;
|
|
158
156
|
return;
|
|
159
157
|
}
|
|
160
158
|
if (e instanceof HTMLButtonElement || e instanceof HTMLAnchorElement) {
|
|
161
|
-
|
|
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
|
-
|
|
164
|
+
z.value = t;
|
|
167
165
|
}
|
|
168
|
-
function
|
|
169
|
-
if (
|
|
166
|
+
function Q(e) {
|
|
167
|
+
if (U.value && W.value) {
|
|
170
168
|
e.preventDefault(), e.stopImmediatePropagation();
|
|
171
169
|
return;
|
|
172
170
|
}
|
|
173
|
-
|
|
171
|
+
I("click", e);
|
|
174
172
|
}
|
|
175
173
|
let $ = () => {
|
|
176
|
-
let e =
|
|
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) => (
|
|
184
|
-
"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":
|
|
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:
|
|
197
|
+
onClick: Q
|
|
200
198
|
}), {
|
|
201
|
-
default:
|
|
199
|
+
default: w(() => [g.loading ? (v(), f("span", E, [h(c, {
|
|
202
200
|
accessibility: { mode: "decorative" },
|
|
203
|
-
size:
|
|
201
|
+
size: X.value
|
|
204
202
|
}, null, 8, ["size"])])) : d("", !0), p("span", D, [
|
|
205
|
-
g.disclosure?.iconPlacement === "leading" ? (
|
|
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(
|
|
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 ? (
|
|
217
|
-
|
|
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:
|
|
217
|
+
contract: q
|
|
220
218
|
}, {
|
|
221
|
-
default:
|
|
219
|
+
default: w(() => [(v(), u(b(R)))]),
|
|
222
220
|
_: 1
|
|
223
221
|
})) : d("", !0),
|
|
224
|
-
g.badge === void 0 ? d("", !0) : (
|
|
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:
|
|
226
|
+
default: w(() => [m(x(g.badge), 1)]),
|
|
229
227
|
_: 1
|
|
230
228
|
}, 8, ["severity"])])),
|
|
231
|
-
g.shortcut ? (
|
|
232
|
-
g.disclosure && g.disclosure.iconPlacement !== "leading" && g.disclosure.iconPlacement !== "none" ? (
|
|
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(
|
|
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"
|
package/dist/src/components/shared/controls/SCheckbox.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Check as e, Minus as t } from "../../icons/
|
|
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";
|
package/dist/src/components/shared/controls/SComboboxTrigger.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChevronDown as e, ChevronsUpDown as t } from "../../icons/
|
|
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/
|
|
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";
|
package/dist/src/components/shared/controls/SDragHandle.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 =
|
|
34
|
+
let m = s, h = p, g = n({
|
|
35
35
|
component: "SDragHandle",
|
|
36
36
|
owner: "drag handle command"
|
|
37
|
-
}), { t:
|
|
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
|
-
|
|
42
|
+
m.disabled || e.detail > 0 || S(!v.value);
|
|
40
43
|
}
|
|
41
44
|
function w(e) {
|
|
42
|
-
m.disabled ||
|
|
45
|
+
m.disabled || (S(!1), h("drag-start", e));
|
|
43
46
|
}
|
|
44
47
|
function T(e) {
|
|
45
|
-
m.disabled ||
|
|
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(),
|
|
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 &&
|
|
61
|
-
}), (
|
|
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(
|
|
66
|
+
"leading-icon": d(e),
|
|
67
67
|
disabled: s.disabled,
|
|
68
|
-
pressed:
|
|
69
|
-
title:
|
|
70
|
-
"aria-label":
|
|
71
|
-
"aria-keyshortcuts":
|
|
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":
|
|
74
|
-
onClick:
|
|
75
|
-
onPointerdown:
|
|
76
|
-
onKeydown:
|
|
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.
|
|
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-
|
|
6
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-a9c5f1aa"]]);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { n as default };
|