@pgcorp/ui-kit 0.11.0 → 0.12.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 +136 -11
- package/dist/assets/src/components/shared/controls/SButton.css_vue_type_style_index_0_src_a5d8f7e0_scoped_a5d8f7e0_lang.css +2 -0
- package/dist/assets/src/components/shared/controls/SChoiceCards.css_vue_type_style_index_0_src_af9fa9d1_scoped_af9fa9d1_lang.css +2 -0
- package/dist/assets/src/components/shared/data-display/{SCodeEditor.css_vue_type_style_index_0_src_124ca461_scoped_124ca461_lang.css → SCodeEditor.css_vue_type_style_index_0_src_3ad533d9_scoped_3ad533d9_lang.css} +1 -1
- package/dist/assets/src/components/shared/data-display/SStatus.css_vue_type_style_index_0_src_3ce41a12_scoped_3ce41a12_lang.css +2 -0
- package/dist/assets/src/components/shared/data-display/SVirtualList.css_vue_type_style_index_0_src_cee8c247_scoped_cee8c247_lang.css +2 -0
- package/dist/src/components/layout/SSideMenuButton.vue.d.ts +1 -1
- package/dist/src/components/shared/controls/SButton.vue.d.ts +3 -0
- 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 +103 -99
- package/dist/src/components/shared/controls/SChoiceCards.vue.d.ts +1 -0
- package/dist/src/components/shared/controls/SChoiceCards.vue.js +2 -2
- package/dist/src/components/shared/controls/SChoiceCards.vue_vue_type_script_setup_true_lang.js +53 -49
- package/dist/src/components/shared/controls/SMenuSurface.vue.d.ts +2 -2
- package/dist/src/components/shared/controls/STextarea.vue.d.ts +4 -0
- package/dist/src/components/shared/controls/STextarea.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/src/components/shared/data-display/SCodeEditor.vue.d.ts +90 -7
- package/dist/src/components/shared/data-display/SCodeEditor.vue.js +2 -2
- package/dist/src/components/shared/data-display/SStatus.vue.d.ts +7 -0
- package/dist/src/components/shared/data-display/SStatus.vue.js +2 -2
- package/dist/src/components/shared/data-display/SStatus.vue_vue_type_script_setup_true_lang.js +28 -21
- package/dist/src/components/shared/data-display/SVirtualList.vue.d.ts +2 -0
- package/dist/src/components/shared/data-display/SVirtualList.vue.js +2 -2
- package/dist/src/components/shared/data-display/SVirtualList.vue_vue_type_script_setup_true_lang.js +317 -210
- package/dist/src/internal/useBinaryInput.js +3 -2
- package/package.json +1 -1
- package/src/components/shared/controls/SButton.css +28 -0
- package/src/components/shared/controls/SChoiceCards.css +10 -3
- package/src/components/shared/data-display/SStatus.css +4 -0
- package/src/components/shared/data-display/SVirtualList.css +12 -0
- package/dist/assets/src/components/shared/controls/SButton.css_vue_type_style_index_0_src_52ad38b1_scoped_52ad38b1_lang.css +0 -2
- package/dist/assets/src/components/shared/controls/SChoiceCards.css_vue_type_style_index_0_src_627a8628_scoped_627a8628_lang.css +0 -2
- package/dist/assets/src/components/shared/data-display/SStatus.css_vue_type_style_index_0_src_c76fa058_scoped_c76fa058_lang.css +0 -2
- package/dist/assets/src/components/shared/data-display/SVirtualList.css_vue_type_style_index_0_src_1717877d_scoped_1717877d_lang.css +0 -2
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import { ChevronRight as e } from "../../icons/_internal/generatedSputnigUiIconComponents.js";
|
|
2
2
|
import { useOwnedAttrs as t } from "../../../internal/ownedAttrs.js";
|
|
3
|
-
import {
|
|
4
|
-
import r from "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import c from "../
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
3
|
+
import { validateExactString as n } from "../../../internal/runtimeContract.js";
|
|
4
|
+
import { resolveSemanticToneBinding as r } from "../../../internal/semanticTone.js";
|
|
5
|
+
import i from "../data-display/SBadge.vue.js";
|
|
6
|
+
import { PassiveContentBoundary as a, useInteractiveLeafRegistration as o } from "../../../internal/passiveContentContract.js";
|
|
7
|
+
import { resolveLinkTarget as s } from "../../../internal/linkTarget.js";
|
|
8
|
+
import { useTreeActionRegistration as c } from "../_internal/treeRuntime.js";
|
|
9
|
+
import l from "../data-display/SProgressIndicator.vue.js";
|
|
10
|
+
import { computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, mergeProps as v, openBlock as y, ref as b, resolveDynamicComponent as x, toDisplayString as S, unref as C, useSlots as ee, watchEffect as w, withCtx as T } from "vue";
|
|
11
|
+
import { RouterLink as E } from "vue-router";
|
|
11
12
|
//#region src/components/shared/controls/SButton.vue?vue&type=script&setup=true&lang.ts
|
|
12
|
-
var
|
|
13
|
+
var D = {
|
|
13
14
|
key: 0,
|
|
14
15
|
class: "s-button__loader",
|
|
15
16
|
"aria-hidden": "true"
|
|
16
|
-
},
|
|
17
|
+
}, O = { class: "s-button__content" }, k = ["data-expanded"], A = {
|
|
17
18
|
key: 2,
|
|
18
19
|
class: "s-button__label"
|
|
19
|
-
},
|
|
20
|
+
}, j = {
|
|
20
21
|
key: 4,
|
|
21
22
|
class: "s-button__badge-slot"
|
|
22
|
-
},
|
|
23
|
+
}, M = {
|
|
23
24
|
key: 5,
|
|
24
25
|
class: "s-button__shortcut",
|
|
25
26
|
"aria-hidden": "true"
|
|
26
|
-
},
|
|
27
|
+
}, N = ["data-expanded"], P = /*@__PURE__*/ _({
|
|
27
28
|
inheritAttrs: !1,
|
|
28
29
|
__name: "SButton",
|
|
29
30
|
props: {
|
|
@@ -56,6 +57,7 @@ var E = {
|
|
|
56
57
|
contentAlign: { default: "center" },
|
|
57
58
|
appearance: { default: "solid" },
|
|
58
59
|
shape: { default: "default" },
|
|
60
|
+
labelOverflow: { default: "truncate" },
|
|
59
61
|
pressed: {
|
|
60
62
|
type: [Boolean, String],
|
|
61
63
|
default: () => void 0
|
|
@@ -72,8 +74,8 @@ var E = {
|
|
|
72
74
|
type: {}
|
|
73
75
|
},
|
|
74
76
|
emits: ["click"],
|
|
75
|
-
setup(
|
|
76
|
-
let
|
|
77
|
+
setup(_, { expose: P, emit: F }) {
|
|
78
|
+
let I = [
|
|
77
79
|
"primary",
|
|
78
80
|
"secondary",
|
|
79
81
|
"success",
|
|
@@ -81,43 +83,43 @@ var E = {
|
|
|
81
83
|
"warn",
|
|
82
84
|
"danger",
|
|
83
85
|
"contrast"
|
|
84
|
-
],
|
|
86
|
+
], L = F, R = ee(), z = () => R.default?.() ?? [], B = b(null), V = t({
|
|
85
87
|
component: "SButton",
|
|
86
88
|
owner: "native button"
|
|
87
|
-
}),
|
|
89
|
+
}), H = u(() => r("SButton", "severity", _.severity, I)), U = u(() => n("SButton", "labelOverflow", _.labelOverflow, ["truncate", "wrap"])), W = c({
|
|
88
90
|
owner: "SButton",
|
|
89
|
-
element:
|
|
90
|
-
disabled: () =>
|
|
91
|
+
element: B,
|
|
92
|
+
disabled: () => _.disabled || _.loading
|
|
91
93
|
});
|
|
92
|
-
|
|
93
|
-
let
|
|
94
|
-
let e =
|
|
94
|
+
o({ owner: "SButton" });
|
|
95
|
+
let G = u(() => {
|
|
96
|
+
let e = _.href !== void 0, t = _.to !== void 0;
|
|
95
97
|
if (e && t) throw TypeError("SButton: передайте не более одного navigation target — href или to");
|
|
96
98
|
if (!e && !t) return null;
|
|
97
|
-
if (
|
|
98
|
-
return
|
|
99
|
-
href:
|
|
100
|
-
to:
|
|
101
|
-
target:
|
|
102
|
-
rel:
|
|
99
|
+
if (_.type !== void 0) throw TypeError("SButton: navigation target несовместим с native button type");
|
|
100
|
+
return s({
|
|
101
|
+
href: _.href,
|
|
102
|
+
to: _.to,
|
|
103
|
+
target: _.target,
|
|
104
|
+
rel: _.rel,
|
|
103
105
|
owner: "SButton"
|
|
104
106
|
});
|
|
105
|
-
}),
|
|
106
|
-
let e =
|
|
107
|
-
return !e ||
|
|
108
|
-
}),
|
|
109
|
-
let e =
|
|
107
|
+
}), K = u(() => _.disabled || _.loading), q = u(() => {
|
|
108
|
+
let e = G.value;
|
|
109
|
+
return !e || K.value ? e ? "a" : "button" : e.kind === "router" ? E : "a";
|
|
110
|
+
}), J = u(() => {
|
|
111
|
+
let e = V.bindings(), t = W ? {
|
|
110
112
|
...e,
|
|
111
113
|
tabindex: -1
|
|
112
|
-
} : e, n =
|
|
114
|
+
} : e, n = _.disclosure ? {
|
|
113
115
|
...t,
|
|
114
|
-
"aria-expanded":
|
|
115
|
-
"aria-controls":
|
|
116
|
-
} : t, r =
|
|
116
|
+
"aria-expanded": _.disclosure.expanded,
|
|
117
|
+
"aria-controls": _.disclosure.controls
|
|
118
|
+
} : t, r = G.value, i = r === null ? {
|
|
117
119
|
...n,
|
|
118
|
-
disabled:
|
|
119
|
-
type:
|
|
120
|
-
} :
|
|
120
|
+
disabled: _.disabled || _.loading || void 0,
|
|
121
|
+
type: _.type ?? "button"
|
|
122
|
+
} : K.value ? {
|
|
121
123
|
...n,
|
|
122
124
|
"aria-disabled": !0,
|
|
123
125
|
tabindex: -1
|
|
@@ -125,119 +127,120 @@ var E = {
|
|
|
125
127
|
...n,
|
|
126
128
|
...r.bindings
|
|
127
129
|
};
|
|
128
|
-
if (!
|
|
130
|
+
if (!_.loading) return i;
|
|
129
131
|
let a = i["aria-label"], o = [
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
_.loadingLabel,
|
|
133
|
+
_.label,
|
|
132
134
|
a
|
|
133
135
|
].find((e) => typeof e == "string" && e.trim().length > 0);
|
|
134
|
-
if (!o && !
|
|
136
|
+
if (!o && !R.default) throw Error("SButton: loading action requires label, loadingLabel, or aria-label");
|
|
135
137
|
return o ? {
|
|
136
138
|
...i,
|
|
137
139
|
"aria-label": o
|
|
138
140
|
} : i;
|
|
139
|
-
}),
|
|
141
|
+
}), Y = {
|
|
140
142
|
owner: "SButton",
|
|
141
143
|
region: "passive default content",
|
|
142
144
|
guidance: "Вынесите независимое действие в соседний SButton. / Move the independent action to a sibling SButton."
|
|
143
145
|
};
|
|
144
|
-
|
|
145
|
-
let e =
|
|
146
|
-
if (e &&
|
|
147
|
-
if (e &&
|
|
148
|
-
if (
|
|
149
|
-
let t =
|
|
150
|
-
if (
|
|
146
|
+
w(() => {
|
|
147
|
+
let e = G.value;
|
|
148
|
+
if (e && _.pressed !== void 0) throw Error("SButton: navigation target несовместим с pressed toggle semantics");
|
|
149
|
+
if (e && _.disclosure !== void 0) throw Error("SButton: navigation target несовместим с disclosure trigger semantics");
|
|
150
|
+
if (_.disclosure && _.disclosure.controls.trim().length === 0) throw Error("SButton: disclosure.controls must be a non-empty id");
|
|
151
|
+
let t = _.disclosure?.iconPlacement ?? "trailing";
|
|
152
|
+
if (_.disclosure && (t === "leading" && _.leadingIcon || t === "trailing" && _.trailingIcon)) throw Error(`SButton: disclosure ${t} icon conflicts with the matching icon prop`);
|
|
151
153
|
});
|
|
152
|
-
let
|
|
153
|
-
function
|
|
154
|
+
let X = u(() => _.iconOnly || _.label === "" && !!(_.leadingIcon || _.trailingIcon || R.default)), Z = u(() => _.label === void 0 || _.label === "" && !_.leadingIcon && !_.trailingIcon), Q = u(() => _.size === "lg" ? "sm" : "xs");
|
|
155
|
+
function te(e) {
|
|
154
156
|
if (e === null) {
|
|
155
|
-
|
|
157
|
+
B.value = null;
|
|
156
158
|
return;
|
|
157
159
|
}
|
|
158
160
|
if (e instanceof HTMLButtonElement || e instanceof HTMLAnchorElement) {
|
|
159
|
-
|
|
161
|
+
B.value = e;
|
|
160
162
|
return;
|
|
161
163
|
}
|
|
162
164
|
let t = Reflect.get(e, "$el");
|
|
163
165
|
if (!(t instanceof HTMLAnchorElement)) throw TypeError("SButton: RouterLink root must resolve to an HTMLAnchorElement");
|
|
164
|
-
|
|
166
|
+
B.value = t;
|
|
165
167
|
}
|
|
166
|
-
function
|
|
167
|
-
if (
|
|
168
|
+
function ne(e) {
|
|
169
|
+
if (G.value && K.value) {
|
|
168
170
|
e.preventDefault(), e.stopImmediatePropagation();
|
|
169
171
|
return;
|
|
170
172
|
}
|
|
171
|
-
|
|
173
|
+
L("click", e);
|
|
172
174
|
}
|
|
173
175
|
let $ = () => {
|
|
174
|
-
let e =
|
|
176
|
+
let e = B.value;
|
|
175
177
|
if (!e) throw Error("SButton: interactive element is unavailable");
|
|
176
178
|
return e;
|
|
177
179
|
};
|
|
178
|
-
return
|
|
180
|
+
return P({
|
|
179
181
|
getElement: $,
|
|
180
182
|
focus: (e) => $().focus(e)
|
|
181
|
-
}), (t, n) => (
|
|
182
|
-
"data-s-tone":
|
|
183
|
+
}), (t, n) => (y(), d(x(q.value), v({ ref: te }, J.value, {
|
|
184
|
+
"data-s-tone": H.value["data-s-tone"],
|
|
183
185
|
class: "s-button",
|
|
184
|
-
"data-size":
|
|
185
|
-
"data-width":
|
|
186
|
-
"data-content-align":
|
|
187
|
-
"data-density":
|
|
188
|
-
"data-spacing":
|
|
189
|
-
"data-hover-surface":
|
|
190
|
-
"data-icon-only":
|
|
191
|
-
"data-icon-size":
|
|
192
|
-
"data-appearance":
|
|
193
|
-
"data-shape":
|
|
194
|
-
"data-
|
|
195
|
-
"
|
|
196
|
-
"aria-
|
|
197
|
-
|
|
186
|
+
"data-size": _.size,
|
|
187
|
+
"data-width": _.width,
|
|
188
|
+
"data-content-align": _.contentAlign,
|
|
189
|
+
"data-density": _.density,
|
|
190
|
+
"data-spacing": _.spacing,
|
|
191
|
+
"data-hover-surface": _.hoverSurface,
|
|
192
|
+
"data-icon-only": X.value,
|
|
193
|
+
"data-icon-size": _.iconSize,
|
|
194
|
+
"data-appearance": _.appearance,
|
|
195
|
+
"data-shape": _.shape,
|
|
196
|
+
"data-label-overflow": U.value,
|
|
197
|
+
"data-loading": _.loading || void 0,
|
|
198
|
+
"aria-pressed": _.pressed,
|
|
199
|
+
"aria-busy": _.busy || _.loading || void 0,
|
|
200
|
+
onClick: ne
|
|
198
201
|
}), {
|
|
199
|
-
default:
|
|
202
|
+
default: T(() => [_.loading ? (y(), p("span", D, [g(l, {
|
|
200
203
|
accessibility: { mode: "decorative" },
|
|
201
|
-
size:
|
|
202
|
-
}, null, 8, ["size"])])) :
|
|
203
|
-
|
|
204
|
+
size: Q.value
|
|
205
|
+
}, null, 8, ["size"])])) : f("", !0), m("span", O, [
|
|
206
|
+
_.disclosure?.iconPlacement === "leading" ? (y(), p("span", {
|
|
204
207
|
key: 0,
|
|
205
208
|
class: "s-button__disclosure-icon s-button__icon s-button__icon--leading",
|
|
206
|
-
"data-expanded":
|
|
209
|
+
"data-expanded": _.disclosure.expanded,
|
|
207
210
|
"data-disclosure-icon": "",
|
|
208
211
|
"aria-hidden": "true"
|
|
209
|
-
}, [
|
|
212
|
+
}, [g(C(e))], 8, k)) : _.leadingIcon ? (y(), d(x(_.leadingIcon), {
|
|
210
213
|
key: 1,
|
|
211
214
|
class: "s-button__icon s-button__icon--leading",
|
|
212
215
|
"aria-hidden": "true"
|
|
213
|
-
})) :
|
|
214
|
-
|
|
215
|
-
|
|
216
|
+
})) : f("", !0),
|
|
217
|
+
_.label ? (y(), p("span", A, S(_.label), 1)) : f("", !0),
|
|
218
|
+
Z.value ? (y(), d(C(a), {
|
|
216
219
|
key: 3,
|
|
217
|
-
contract:
|
|
220
|
+
contract: Y
|
|
218
221
|
}, {
|
|
219
|
-
default:
|
|
222
|
+
default: T(() => [(y(), d(x(z)))]),
|
|
220
223
|
_: 1
|
|
221
|
-
})) :
|
|
222
|
-
|
|
223
|
-
severity:
|
|
224
|
+
})) : f("", !0),
|
|
225
|
+
_.badge === void 0 ? f("", !0) : (y(), p("span", j, [g(i, {
|
|
226
|
+
severity: _.badgeSeverity,
|
|
224
227
|
size: "xs"
|
|
225
228
|
}, {
|
|
226
|
-
default:
|
|
229
|
+
default: T(() => [h(S(_.badge), 1)]),
|
|
227
230
|
_: 1
|
|
228
231
|
}, 8, ["severity"])])),
|
|
229
|
-
|
|
230
|
-
|
|
232
|
+
_.shortcut ? (y(), p("span", M, S(_.shortcut), 1)) : f("", !0),
|
|
233
|
+
_.disclosure && _.disclosure.iconPlacement !== "leading" && _.disclosure.iconPlacement !== "none" ? (y(), p("span", {
|
|
231
234
|
key: 6,
|
|
232
235
|
class: "s-button__disclosure-icon s-button__icon s-button__icon--trailing",
|
|
233
|
-
"data-expanded":
|
|
236
|
+
"data-expanded": _.disclosure.expanded,
|
|
234
237
|
"data-disclosure-icon": "",
|
|
235
238
|
"aria-hidden": "true"
|
|
236
|
-
}, [
|
|
239
|
+
}, [g(C(e))], 8, N)) : _.trailingIcon ? (y(), d(x(_.trailingIcon), {
|
|
237
240
|
key: 7,
|
|
238
241
|
class: "s-button__icon s-button__icon--trailing",
|
|
239
242
|
"aria-hidden": "true"
|
|
240
|
-
})) :
|
|
243
|
+
})) : f("", !0)
|
|
241
244
|
])]),
|
|
242
245
|
_: 1
|
|
243
246
|
}, 16, [
|
|
@@ -252,6 +255,7 @@ var E = {
|
|
|
252
255
|
"data-icon-size",
|
|
253
256
|
"data-appearance",
|
|
254
257
|
"data-shape",
|
|
258
|
+
"data-label-overflow",
|
|
255
259
|
"data-loading",
|
|
256
260
|
"aria-pressed",
|
|
257
261
|
"aria-busy"
|
|
@@ -259,4 +263,4 @@ var E = {
|
|
|
259
263
|
}
|
|
260
264
|
});
|
|
261
265
|
//#endregion
|
|
262
|
-
export {
|
|
266
|
+
export { P as default };
|
|
@@ -21,6 +21,7 @@ export interface Props<T extends PublicSelectionKey = string> {
|
|
|
21
21
|
invalid?: boolean;
|
|
22
22
|
disabled?: boolean;
|
|
23
23
|
readonly?: boolean;
|
|
24
|
+
appearance?: 'cards' | 'rows';
|
|
24
25
|
columns?: 'auto' | '2' | '3';
|
|
25
26
|
density?: 'default' | 'compact';
|
|
26
27
|
selectionIndicator?: 'mark' | 'none';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../../../assets/src/components/shared/controls/SChoiceCards.
|
|
1
|
+
import "../../../../assets/src/components/shared/controls/SChoiceCards.css_vue_type_style_index_0_src_af9fa9d1_scoped_af9fa9d1_lang.css";
|
|
2
2
|
import e from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
import t from "./SChoiceCards.vue_vue_type_script_setup_true_lang.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
//#region src/components/shared/controls/SChoiceCards.vue
|
|
6
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-
|
|
6
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-af9fa9d1"]]);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { n as default };
|
package/dist/src/components/shared/controls/SChoiceCards.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
import { useOwnedAttrs as e } from "../../../internal/ownedAttrs.js";
|
|
2
|
-
import {
|
|
3
|
-
import n from "
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
2
|
+
import { validateExactString as t } from "../../../internal/runtimeContract.js";
|
|
3
|
+
import { useInteractiveLeafRegistration as n } from "../../../internal/passiveContentContract.js";
|
|
4
|
+
import r from "./SFieldGroup.vue.js";
|
|
5
|
+
import { useRadioGroup as i } from "../_internal/useRadioGroup.js";
|
|
6
|
+
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as d, defineComponent as f, mergeProps as p, openBlock as m, renderList as h, renderSlot as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
|
|
6
7
|
//#region src/components/shared/controls/SChoiceCards.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var
|
|
8
|
+
var b = [
|
|
9
|
+
"data-appearance",
|
|
8
10
|
"data-columns",
|
|
9
11
|
"data-density",
|
|
10
12
|
"data-selection-indicator"
|
|
11
|
-
],
|
|
13
|
+
], x = {
|
|
12
14
|
key: 0,
|
|
13
15
|
class: "s-choice-card__kicker"
|
|
14
|
-
},
|
|
16
|
+
}, S = { class: "s-choice-card__title" }, C = {
|
|
15
17
|
key: 1,
|
|
16
18
|
class: "s-choice-card__description"
|
|
17
|
-
},
|
|
19
|
+
}, w = {
|
|
18
20
|
key: 2,
|
|
19
21
|
class: "s-choice-card__meta"
|
|
20
|
-
},
|
|
22
|
+
}, T = {
|
|
21
23
|
key: 3,
|
|
22
24
|
class: "s-choice-card__mark",
|
|
23
25
|
"aria-hidden": "true"
|
|
24
|
-
},
|
|
26
|
+
}, E = /*@__PURE__*/ f({
|
|
25
27
|
inheritAttrs: !1,
|
|
26
28
|
__name: "SChoiceCards",
|
|
27
29
|
props: {
|
|
@@ -47,65 +49,67 @@ var y = [
|
|
|
47
49
|
type: Boolean,
|
|
48
50
|
default: !1
|
|
49
51
|
},
|
|
52
|
+
appearance: { default: "cards" },
|
|
50
53
|
columns: { default: "auto" },
|
|
51
54
|
density: { default: "default" },
|
|
52
55
|
selectionIndicator: { default: "mark" }
|
|
53
56
|
},
|
|
54
57
|
emits: ["update:modelValue"],
|
|
55
|
-
setup(
|
|
56
|
-
let
|
|
58
|
+
setup(f, { emit: E }) {
|
|
59
|
+
let D = f, O = E, k = e({
|
|
57
60
|
component: "SChoiceCards",
|
|
58
61
|
owner: "field group"
|
|
59
62
|
});
|
|
60
|
-
|
|
61
|
-
let
|
|
62
|
-
options:
|
|
63
|
-
selectedValue:
|
|
64
|
-
disabled:
|
|
65
|
-
readonly:
|
|
66
|
-
update: (e) =>
|
|
63
|
+
n({ owner: "SChoiceCards" });
|
|
64
|
+
let A = o(() => t("SChoiceCards", "appearance", D.appearance, ["cards", "rows"])), j = i({
|
|
65
|
+
options: o(() => D.options),
|
|
66
|
+
selectedValue: o(() => D.modelValue),
|
|
67
|
+
disabled: o(() => D.disabled),
|
|
68
|
+
readonly: o(() => D.readonly),
|
|
69
|
+
update: (e) => O("update:modelValue", e),
|
|
67
70
|
component: "SChoiceCards"
|
|
68
71
|
});
|
|
69
|
-
return (e, t) => (
|
|
70
|
-
id:
|
|
71
|
-
label:
|
|
72
|
-
"help-text":
|
|
73
|
-
"error-message":
|
|
74
|
-
required:
|
|
75
|
-
invalid:
|
|
76
|
-
disabled:
|
|
77
|
-
readonly:
|
|
78
|
-
}),
|
|
79
|
-
default:
|
|
72
|
+
return (e, t) => (m(), s(r, p(v(k).bindings(), {
|
|
73
|
+
id: f.id,
|
|
74
|
+
label: f.label,
|
|
75
|
+
"help-text": f.helpText,
|
|
76
|
+
"error-message": f.errorMessage,
|
|
77
|
+
required: f.required,
|
|
78
|
+
invalid: f.invalid,
|
|
79
|
+
disabled: f.disabled,
|
|
80
|
+
readonly: f.readonly
|
|
81
|
+
}), d({
|
|
82
|
+
default: y(({ describedBy: e, labelId: t }) => [u("div", p({
|
|
80
83
|
class: "s-choice-cards",
|
|
81
|
-
"data-
|
|
82
|
-
"data-
|
|
83
|
-
"data-
|
|
84
|
-
|
|
84
|
+
"data-appearance": A.value,
|
|
85
|
+
"data-columns": f.columns,
|
|
86
|
+
"data-density": f.density,
|
|
87
|
+
"data-selection-indicator": f.selectionIndicator
|
|
88
|
+
}, v(j).groupBindings({
|
|
85
89
|
labelledBy: t,
|
|
86
90
|
describedBy: e,
|
|
87
|
-
required:
|
|
88
|
-
invalid:
|
|
89
|
-
})), [(
|
|
90
|
-
key:
|
|
91
|
+
required: f.required,
|
|
92
|
+
invalid: f.invalid
|
|
93
|
+
})), [(m(!0), l(a, null, h(f.options, (e) => (m(), l("button", p({
|
|
94
|
+
key: v(j).optionToken(e.value),
|
|
91
95
|
ref_for: !0,
|
|
92
|
-
ref:
|
|
96
|
+
ref: v(j).optionRef(e.value),
|
|
93
97
|
class: "s-choice-card"
|
|
94
|
-
}, { ref_for: !0 },
|
|
95
|
-
e.kicker ? (
|
|
96
|
-
|
|
97
|
-
e.description ? (
|
|
98
|
-
e.meta ? (
|
|
99
|
-
|
|
100
|
-
], 16))), 128))], 16,
|
|
98
|
+
}, { ref_for: !0 }, v(j).optionBindings(e)), [
|
|
99
|
+
e.kicker ? (m(), l("span", x, _(e.kicker), 1)) : c("", !0),
|
|
100
|
+
u("span", S, _(e.title), 1),
|
|
101
|
+
e.description ? (m(), l("span", C, _(e.description), 1)) : c("", !0),
|
|
102
|
+
e.meta ? (m(), l("span", w, _(e.meta), 1)) : c("", !0),
|
|
103
|
+
f.selectionIndicator === "mark" && e.value === f.modelValue ? (m(), l("span", T, "✓")) : c("", !0)
|
|
104
|
+
], 16))), 128))], 16, b)]),
|
|
101
105
|
_: 2
|
|
102
106
|
}, [e.$slots.help ? {
|
|
103
107
|
name: "help",
|
|
104
|
-
fn:
|
|
108
|
+
fn: y(() => [g(e.$slots, "help", {}, void 0, !0)]),
|
|
105
109
|
key: "0"
|
|
106
110
|
} : void 0, e.$slots.error ? {
|
|
107
111
|
name: "error",
|
|
108
|
-
fn:
|
|
112
|
+
fn: y(() => [g(e.$slots, "error", {}, void 0, !0)]),
|
|
109
113
|
key: "1"
|
|
110
114
|
} : void 0]), 1040, [
|
|
111
115
|
"id",
|
|
@@ -120,4 +124,4 @@ var y = [
|
|
|
120
124
|
}
|
|
121
125
|
});
|
|
122
126
|
//#endregion
|
|
123
|
-
export {
|
|
127
|
+
export { E as default };
|
|
@@ -17,15 +17,15 @@ export interface SMenuSurfaceApi {
|
|
|
17
17
|
declare const __VLS_export: import('vue').DefineComponent<Props, SMenuSurfaceApi, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
18
|
select: (item: SMenuSelectableEntry, event: SMenuActivationEvent) => any;
|
|
19
19
|
escape: () => any;
|
|
20
|
-
tab: (event: KeyboardEvent) => any;
|
|
21
20
|
"focus-exit": (event: FocusEvent) => any;
|
|
21
|
+
tab: (event: KeyboardEvent) => any;
|
|
22
22
|
"submenu-back": () => any;
|
|
23
23
|
"dismiss-tree": () => any;
|
|
24
24
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
25
25
|
onSelect?: ((item: SMenuSelectableEntry, event: SMenuActivationEvent) => any) | undefined;
|
|
26
26
|
onEscape?: (() => any) | undefined;
|
|
27
|
-
onTab?: ((event: KeyboardEvent) => any) | undefined;
|
|
28
27
|
"onFocus-exit"?: ((event: FocusEvent) => any) | undefined;
|
|
28
|
+
onTab?: ((event: KeyboardEvent) => any) | undefined;
|
|
29
29
|
"onSubmenu-back"?: (() => any) | undefined;
|
|
30
30
|
"onDismiss-tree"?: (() => any) | undefined;
|
|
31
31
|
}>, {
|
|
@@ -75,10 +75,12 @@ export interface Props {
|
|
|
75
75
|
monospace?: boolean;
|
|
76
76
|
}
|
|
77
77
|
declare const __VLS_export: import('vue').DefineComponent<Props, STextareaApi, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
78
|
+
blur: (focusEvent: FocusEvent) => any;
|
|
78
79
|
click: (mouseEvent: MouseEvent) => any;
|
|
79
80
|
compositionend: (compositionEvent: CompositionEvent) => any;
|
|
80
81
|
compositionstart: (compositionEvent: CompositionEvent) => any;
|
|
81
82
|
compositionupdate: (compositionEvent: CompositionEvent) => any;
|
|
83
|
+
focus: (focusEvent: FocusEvent) => any;
|
|
82
84
|
keydown: (keyboardEvent: KeyboardEvent) => any;
|
|
83
85
|
keyup: (keyboardEvent: KeyboardEvent) => any;
|
|
84
86
|
paste: (clipboardEvent: ClipboardEvent) => any;
|
|
@@ -86,10 +88,12 @@ declare const __VLS_export: import('vue').DefineComponent<Props, STextareaApi, {
|
|
|
86
88
|
"selection-change": (selection: STextareaSelection) => any;
|
|
87
89
|
"state-change": (state: STextareaState) => any;
|
|
88
90
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
91
|
+
onBlur?: ((focusEvent: FocusEvent) => any) | undefined;
|
|
89
92
|
onClick?: ((mouseEvent: MouseEvent) => any) | undefined;
|
|
90
93
|
onCompositionend?: ((compositionEvent: CompositionEvent) => any) | undefined;
|
|
91
94
|
onCompositionstart?: ((compositionEvent: CompositionEvent) => any) | undefined;
|
|
92
95
|
onCompositionupdate?: ((compositionEvent: CompositionEvent) => any) | undefined;
|
|
96
|
+
onFocus?: ((focusEvent: FocusEvent) => any) | undefined;
|
|
93
97
|
onKeydown?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
|
|
94
98
|
onKeyup?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
|
|
95
99
|
onPaste?: ((clipboardEvent: ClipboardEvent) => any) | undefined;
|
package/dist/src/components/shared/controls/STextarea.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -76,6 +76,8 @@ var se = [
|
|
|
76
76
|
"keydown",
|
|
77
77
|
"keyup",
|
|
78
78
|
"click",
|
|
79
|
+
"focus",
|
|
80
|
+
"blur",
|
|
79
81
|
"paste",
|
|
80
82
|
"compositionstart",
|
|
81
83
|
"compositionupdate",
|
|
@@ -390,8 +392,10 @@ var se = [
|
|
|
390
392
|
onKeydown: ye,
|
|
391
393
|
onKeyup: be,
|
|
392
394
|
onClick: xe,
|
|
395
|
+
onFocus: n[0] ||= (e) => w("focus", e),
|
|
396
|
+
onBlur: n[1] ||= (e) => w("blur", e),
|
|
393
397
|
onSelect: Se,
|
|
394
|
-
onPaste: n[
|
|
398
|
+
onPaste: n[2] ||= (e) => w("paste", e),
|
|
395
399
|
onCompositionstart: Ce,
|
|
396
400
|
onCompositionupdate: we,
|
|
397
401
|
onCompositionend: Te
|