@pgcorp/ui-kit 0.10.1 → 0.10.2
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 +40 -0
- package/dist/assets/src/components/shared/containers/SDrawer.css_vue_type_style_index_0_src_d0cace23_scoped_d0cace23_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_dc3c799e_scoped_dc3c799e_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/{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/_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_vue_type_script_setup_true_lang.js +1 -1
- 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/containers/SCloudChromeRow.vue_vue_type_script_setup_true_lang.js +44 -44
- package/dist/src/components/shared/containers/SDrawer.vue.d.ts +2 -0
- 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 +3 -2
- package/dist/src/components/shared/containers/SModal.vue.d.ts +2 -0
- 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 +3 -2
- 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/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/versioning.md +38 -10
- package/package.json +1 -1
- package/dist/assets/src/components/shared/containers/SDrawer.css_vue_type_style_index_0_src_1226da98_scoped_1226da98_lang.css +0 -2
- package/dist/assets/src/components/shared/data-display/SCodeBlock.css_vue_type_style_index_0_src_aad45526_scoped_aad45526_lang.css +0 -2
- package/dist/assets/src/components/shared/data-display/SCodeWorkspaceEditor.css_vue_type_style_index_0_src_864bce1d_scoped_864bce1d_lang.css +0 -2
- package/dist/assets/src/components/shared/data-display/_internal/SRichBlockNode.css_vue_type_style_index_0_src_63180598_scoped_63180598_lang.css +0 -2
- package/dist/assets/src/components/shared/persona/_internal/SPersonaRunConsole.css_vue_type_style_index_0_src_c71f59d4_scoped_c71f59d4_lang.css +0 -2
package/dist/src/components/shared/data-display/SCodeEditor.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -9,12 +9,12 @@ import { getCodeMirrorLanguageExtension as s } from "../codeLanguages.js";
|
|
|
9
9
|
import { validateCodeEditorDiagnostics as c, validateCodeEditorRange as l, validateCodeEditorViewState as u } from "./codeEditor.js";
|
|
10
10
|
import { Fragment as d, computed as f, createCommentVNode as oe, createElementBlock as p, createElementVNode as m, createVNode as se, defineComponent as h, mergeProps as ce, onBeforeUnmount as le, openBlock as g, ref as ue, renderList as de, shallowRef as fe, toDisplayString as _, unref as v, useId as y, watch as b } from "vue";
|
|
11
11
|
import { Codemirror as x } from "vue-codemirror";
|
|
12
|
-
import { oneDark as
|
|
13
|
-
import { EditorSelection as
|
|
14
|
-
import { lintGutter as
|
|
15
|
-
import { EditorView as
|
|
12
|
+
import { oneDark as S } from "@codemirror/theme-one-dark";
|
|
13
|
+
import { EditorSelection as C, EditorState as pe } from "@codemirror/state";
|
|
14
|
+
import { lintGutter as me, setDiagnostics as he } from "@codemirror/lint";
|
|
15
|
+
import { EditorView as w, lineNumbers as ge, placeholder as _e } from "@codemirror/view";
|
|
16
16
|
//#region src/components/shared/data-display/SCodeEditor.vue?vue&type=script&setup=true&lang.ts
|
|
17
|
-
var
|
|
17
|
+
var T = /*@__PURE__*/ h({
|
|
18
18
|
inheritAttrs: !1,
|
|
19
19
|
__name: "SCodeEditor",
|
|
20
20
|
props: {
|
|
@@ -35,12 +35,12 @@ var w = /*@__PURE__*/ h({
|
|
|
35
35
|
type: Boolean,
|
|
36
36
|
default: !1
|
|
37
37
|
},
|
|
38
|
-
placeholder: {
|
|
38
|
+
placeholder: {},
|
|
39
39
|
viewport: { default: "content" },
|
|
40
40
|
variant: { default: "code" },
|
|
41
41
|
nextSelectionPos: { default: null },
|
|
42
42
|
diagnostics: { default: () => [] },
|
|
43
|
-
ariaDescribedby: {
|
|
43
|
+
ariaDescribedby: {},
|
|
44
44
|
invalid: {
|
|
45
45
|
type: Boolean,
|
|
46
46
|
default: !1
|
|
@@ -54,34 +54,34 @@ var w = /*@__PURE__*/ h({
|
|
|
54
54
|
"selection-applied",
|
|
55
55
|
"ready"
|
|
56
56
|
],
|
|
57
|
-
setup(h, { expose:
|
|
58
|
-
let
|
|
57
|
+
setup(h, { expose: T, emit: ve }) {
|
|
58
|
+
let E = ve, D = e({
|
|
59
59
|
component: "SCodeEditor",
|
|
60
60
|
owner: "CodeMirror root adapter"
|
|
61
61
|
});
|
|
62
62
|
a({ owner: "SCodeEditor" });
|
|
63
63
|
let O = ae(), k = o(), A = fe(null), j = ue(null), M = `s-code-editor-diagnostics-${y()}`, N = null, P = null, F = null, I = f(() => {
|
|
64
|
-
if (typeof
|
|
64
|
+
if (typeof h.modelValue == "string") return h.modelValue;
|
|
65
65
|
throw TypeError("SCodeEditor: modelValue должен быть строкой. / SCodeEditor: modelValue must be a string.");
|
|
66
|
-
}), L = f(() => re("SCodeEditor",
|
|
67
|
-
let e = te("SCodeEditor",
|
|
66
|
+
}), L = f(() => re("SCodeEditor", h.viewport)), R = f(() => ne("SCodeEditor", h.variant)), ye = f(() => t("SCodeEditor", "autofocus", h.autofocus)), z = f(() => t("SCodeEditor", "readOnly", h.readOnly)), B = f(() => t("SCodeEditor", "disabled", h.disabled)), be = f(() => t("SCodeEditor", "invalid", h.invalid)), V = f(() => z.value || B.value), H = f(() => c("SCodeEditor", h.diagnostics, I.value.length)), xe = f(() => {
|
|
67
|
+
let e = te("SCodeEditor", h.language), t = s(e), n = ie(e);
|
|
68
68
|
if (!t && n !== "plaintext" && n !== "text") {
|
|
69
69
|
let t = e.mode === "explicit" ? `language.id ${JSON.stringify(e.id)}` : `language.filePath ${JSON.stringify(e.filePath)}`;
|
|
70
70
|
throw RangeError(`SCodeEditor: ${t} не поддерживается. / SCodeEditor: ${t} is not supported.`);
|
|
71
71
|
}
|
|
72
72
|
return e;
|
|
73
|
-
}), U = f(() => ee("SCodeEditor",
|
|
74
|
-
if (
|
|
73
|
+
}), U = f(() => ee("SCodeEditor", h.capabilities)), Se = f(() => {
|
|
74
|
+
if (h.ariaLabel !== void 0 && h.ariaLabelledby !== void 0) throw TypeError("SCodeEditor: задайте только ariaLabel или ariaLabelledby. / SCodeEditor: provide only ariaLabel or ariaLabelledby.");
|
|
75
75
|
let e = {};
|
|
76
|
-
if (
|
|
77
|
-
else if (
|
|
76
|
+
if (h.ariaLabel !== void 0) e["aria-label"] = i("SCodeEditor", "ariaLabel", h.ariaLabel);
|
|
77
|
+
else if (h.ariaLabelledby !== void 0) e["aria-labelledby"] = r("SCodeEditor", "ariaLabelledby", h.ariaLabelledby);
|
|
78
78
|
else throw TypeError("SCodeEditor: требуется ariaLabel или ariaLabelledby. / SCodeEditor: ariaLabel or ariaLabelledby is required.");
|
|
79
79
|
e.tabindex = B.value ? "-1" : "0";
|
|
80
|
-
let t =
|
|
81
|
-
return H.value.length > 0 && t.push(M), t.length > 0 && (e["aria-describedby"] = t.join(" ")),
|
|
82
|
-
}),
|
|
83
|
-
let e = U.value, n =
|
|
84
|
-
L.value === "document" && (r.push(
|
|
80
|
+
let t = h.ariaDescribedby === void 0 ? [] : [r("SCodeEditor", "ariaDescribedby", h.ariaDescribedby)];
|
|
81
|
+
return H.value.length > 0 && t.push(M), t.length > 0 && (e["aria-describedby"] = t.join(" ")), be.value && (e["aria-invalid"] = "true"), z.value && (e["aria-readonly"] = "true"), B.value && (e["aria-disabled"] = "true"), e;
|
|
82
|
+
}), Ce = f(() => {
|
|
83
|
+
let e = U.value, n = xe.value, r = [...k?.extensions.value ?? []];
|
|
84
|
+
L.value === "document" && (r.push(w.theme({
|
|
85
85
|
"&.cm-editor": {
|
|
86
86
|
height: "auto",
|
|
87
87
|
maxHeight: "none",
|
|
@@ -91,12 +91,12 @@ var w = /*@__PURE__*/ h({
|
|
|
91
91
|
height: "auto",
|
|
92
92
|
overflow: "visible"
|
|
93
93
|
}
|
|
94
|
-
})), r.push(
|
|
94
|
+
})), r.push(w.lineWrapping));
|
|
95
95
|
let a = s(n);
|
|
96
|
-
return a && r.push(a), O.value.mode === "dark" && r.push(
|
|
96
|
+
return a && r.push(a), O.value.mode === "dark" && r.push(S), e.lineNumbers && r.push(ge()), H.value.length > 0 && r.push(me()), h.placeholder !== void 0 && r.push(_e(i("SCodeEditor", "placeholder", h.placeholder))), r.push(pe.readOnly.of(V.value)), r.push(w.editable.of(!V.value)), r.push(w.contentAttributes.of(Se.value)), e.keyInterceptor && !V.value && r.push(w.domEventHandlers({ keydown: (n) => {
|
|
97
97
|
let r = e.keyInterceptor?.(n);
|
|
98
98
|
return t("SCodeEditor", "capabilities.keyInterceptor return value", r) ? (n.preventDefault(), !0) : !1;
|
|
99
|
-
} })), r.push(
|
|
99
|
+
} })), r.push(w.updateListener.of((t) => {
|
|
100
100
|
if (A.value = t.view, (t.selectionSet || t.docChanged) && X(t.view), V.value && e.cursorActivity !== "always" || !t.selectionSet && !t.docChanged) return;
|
|
101
101
|
let n = t.state.selection.main.head, r = t.state.doc.lineAt(n);
|
|
102
102
|
E("cursor-activity", {
|
|
@@ -108,15 +108,15 @@ var w = /*@__PURE__*/ h({
|
|
|
108
108
|
lineText: t.state.doc.sliceString(r.from, r.to)
|
|
109
109
|
});
|
|
110
110
|
})), r;
|
|
111
|
-
}),
|
|
111
|
+
}), we = (e, t, r) => n("SCodeEditor", r, e, {
|
|
112
112
|
minimum: 0,
|
|
113
113
|
maximum: t
|
|
114
114
|
}), W = (e, t) => {
|
|
115
115
|
let n = A.value;
|
|
116
116
|
if (!n) throw Error("SCodeEditor: editor не готов; дождитесь ready. / SCodeEditor: editor is not ready; wait for ready.");
|
|
117
|
-
let r =
|
|
117
|
+
let r = we(e, n.state.doc.length, `${t} selection position`);
|
|
118
118
|
n.dispatch({
|
|
119
|
-
selection:
|
|
119
|
+
selection: C.single(r),
|
|
120
120
|
scrollIntoView: !0
|
|
121
121
|
}), n.focus(), E("selection-applied", {
|
|
122
122
|
position: r,
|
|
@@ -151,23 +151,23 @@ var w = /*@__PURE__*/ h({
|
|
|
151
151
|
Y(F, t) || (F = t, E("view-state-change", t));
|
|
152
152
|
}, Q = () => {
|
|
153
153
|
N?.removeEventListener("scroll", Z), N = null;
|
|
154
|
-
},
|
|
154
|
+
}, Te = (e) => {
|
|
155
155
|
Q(), N = e.scrollDOM, N.addEventListener("scroll", Z, { passive: !0 });
|
|
156
|
-
},
|
|
156
|
+
}, Ee = (e) => e.map((e) => ({
|
|
157
157
|
from: e.from,
|
|
158
158
|
to: e.to,
|
|
159
159
|
severity: e.severity,
|
|
160
160
|
message: e.message,
|
|
161
161
|
...e.source === void 0 ? {} : { source: e.source }
|
|
162
162
|
})), $ = (e) => {
|
|
163
|
-
let t = c("SCodeEditor",
|
|
164
|
-
e.dispatch(
|
|
165
|
-
},
|
|
163
|
+
let t = c("SCodeEditor", h.diagnostics, e.state.doc.length);
|
|
164
|
+
e.dispatch(he(e.state, Ee(t)));
|
|
165
|
+
}, De = (e) => {
|
|
166
166
|
if (typeof e != "string") throw TypeError("SCodeEditor: CodeMirror update payload должен быть строкой. / SCodeEditor: CodeMirror update payload must be a string.");
|
|
167
167
|
V.value || E("update:modelValue", e);
|
|
168
|
-
},
|
|
169
|
-
if (typeof e != "object" || !e || !("view" in e) || !(e.view instanceof
|
|
170
|
-
A.value = e.view,
|
|
168
|
+
}, Oe = (e) => {
|
|
169
|
+
if (typeof e != "object" || !e || !("view" in e) || !(e.view instanceof w)) throw TypeError("SCodeEditor: CodeMirror ready payload должен содержать EditorView. / SCodeEditor: CodeMirror ready payload must contain EditorView.");
|
|
170
|
+
A.value = e.view, Te(A.value), $(A.value);
|
|
171
171
|
let t = {
|
|
172
172
|
documentLength: A.value.state.doc.length,
|
|
173
173
|
viewport: L.value,
|
|
@@ -179,7 +179,7 @@ var w = /*@__PURE__*/ h({
|
|
|
179
179
|
j.value = null, W(e, "controlled");
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
|
-
return b(() =>
|
|
182
|
+
return b(() => h.nextSelectionPos, (e) => {
|
|
183
183
|
if (e != null) {
|
|
184
184
|
if (!Number.isInteger(e)) throw TypeError(`SCodeEditor: nextSelectionPos должен быть целым числом; получено ${String(e)}. / SCodeEditor: nextSelectionPos must be an integer; received ${String(e)}.`);
|
|
185
185
|
if (!A.value) {
|
|
@@ -192,10 +192,10 @@ var w = /*@__PURE__*/ h({
|
|
|
192
192
|
A.value && $(A.value);
|
|
193
193
|
}), le(() => {
|
|
194
194
|
Q(), A.value = null, P = null, F = null;
|
|
195
|
-
}),
|
|
195
|
+
}), T({
|
|
196
196
|
applySelection: (e) => W(e, "imperative"),
|
|
197
197
|
revealRange: (e) => {
|
|
198
|
-
let t = G(), n = l("SCodeEditor", "revealRange", e, t.state.doc.length), r =
|
|
198
|
+
let t = G(), n = l("SCodeEditor", "revealRange", e, t.state.doc.length), r = w.scrollIntoView(C.range(n.from, n.to), { y: "nearest" });
|
|
199
199
|
t.dispatch({ effects: r });
|
|
200
200
|
},
|
|
201
201
|
getSelection: () => {
|
|
@@ -208,7 +208,7 @@ var w = /*@__PURE__*/ h({
|
|
|
208
208
|
captureViewState: () => q(G()),
|
|
209
209
|
applyViewState: (e) => {
|
|
210
210
|
let t = G(), n = u("SCodeEditor", e, t.state.doc.length);
|
|
211
|
-
t.dispatch({ selection:
|
|
211
|
+
t.dispatch({ selection: C.range(n.selection.anchor, n.selection.head) }), t.scrollDOM.scrollTop = n.scrollTop, t.scrollDOM.scrollLeft = n.scrollLeft, X(t);
|
|
212
212
|
},
|
|
213
213
|
focus: () => {
|
|
214
214
|
G().focus();
|
|
@@ -219,12 +219,12 @@ var w = /*@__PURE__*/ h({
|
|
|
219
219
|
"data-viewport": L.value,
|
|
220
220
|
"data-line-numbers": U.value.lineNumbers ? "visible" : "hidden",
|
|
221
221
|
"model-value": I.value,
|
|
222
|
-
autofocus:
|
|
222
|
+
autofocus: ye.value,
|
|
223
223
|
"indent-with-tab": U.value.indentation.keyBehavior === "indent",
|
|
224
224
|
"tab-size": U.value.indentation.tabSize,
|
|
225
|
-
extensions:
|
|
226
|
-
onReady:
|
|
227
|
-
"onUpdate:modelValue":
|
|
225
|
+
extensions: Ce.value,
|
|
226
|
+
onReady: Oe,
|
|
227
|
+
"onUpdate:modelValue": De
|
|
228
228
|
}), null, 16, [
|
|
229
229
|
"data-variant",
|
|
230
230
|
"data-viewport",
|
|
@@ -245,4 +245,4 @@ var w = /*@__PURE__*/ h({
|
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
247
|
//#endregion
|
|
248
|
-
export {
|
|
248
|
+
export { T as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CaseSensitive as e, ChevronDown as t, ChevronUp as n, Regex as r, Replace as i, ReplaceAll as a, ScanSearch as o, WholeWord as s, X as c } from "../../icons/
|
|
1
|
+
import { CaseSensitive as e, ChevronDown as t, ChevronUp as n, Regex as r, Replace as i, ReplaceAll as a, ScanSearch as o, WholeWord as s, X as c } from "../../icons/_internal/generatedSputnigUiIconComponents.js";
|
|
2
2
|
import { useUiKitLocale as l } from "../../../composables/useUiKitLocale.js";
|
|
3
3
|
import { useOwnedAttrs as u } from "../../../internal/ownedAttrs.js";
|
|
4
4
|
import { validateNonEmptyString as d } from "../../../internal/runtimeContract.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../../../assets/src/components/shared/data-display/SCodeWorkspaceEditor.
|
|
1
|
+
import "../../../../assets/src/components/shared/data-display/SCodeWorkspaceEditor.css_vue_type_style_index_0_src_b200dc8e_scoped_b200dc8e_lang.css";
|
|
2
2
|
import e from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
import t from "./SCodeWorkspaceEditor.vue_vue_type_script_setup_true_lang.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
//#region src/components/shared/data-display/SCodeWorkspaceEditor.vue
|
|
6
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-
|
|
6
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-b200dc8e"]]);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { n as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { X as e } from "../../icons/
|
|
1
|
+
import { X 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";
|
|
@@ -183,7 +183,7 @@ var k = ["data-empty"], A = /*@__PURE__*/ y({
|
|
|
183
183
|
invalid: e.document.invalid,
|
|
184
184
|
placeholder: e.document.placeholder,
|
|
185
185
|
variant: e.document.variant,
|
|
186
|
-
|
|
186
|
+
ariaLabel: e.document.label,
|
|
187
187
|
viewport: "fill",
|
|
188
188
|
"onUpdate:modelValue": (t) => te(e, t),
|
|
189
189
|
onSelectionChange: (t) => ne(e, t),
|
|
@@ -198,7 +198,7 @@ var k = ["data-empty"], A = /*@__PURE__*/ y({
|
|
|
198
198
|
"invalid",
|
|
199
199
|
"placeholder",
|
|
200
200
|
"variant",
|
|
201
|
-
"
|
|
201
|
+
"ariaLabel",
|
|
202
202
|
"onUpdate:modelValue",
|
|
203
203
|
"onSelectionChange",
|
|
204
204
|
"onViewStateChange"
|
package/dist/src/components/shared/data-display/SCopyField.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Copy as e } from "../../icons/
|
|
1
|
+
import { Copy as e } from "../../icons/_internal/generatedSputnigUiIconComponents.js";
|
|
2
2
|
import { useClipboard as t } from "../../../composables/useClipboard.js";
|
|
3
3
|
import { useUiKitLocale as n } from "../../../composables/useUiKitLocale.js";
|
|
4
4
|
import { useNotifier as r } from "../../../composables/useNotifier.js";
|
package/dist/src/components/shared/data-display/SDocBlock.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Copy as e } from "../../icons/
|
|
1
|
+
import { Copy as e } from "../../icons/_internal/generatedSputnigUiIconComponents.js";
|
|
2
2
|
import { useClipboard as t } from "../../../composables/useClipboard.js";
|
|
3
3
|
import { useUiKitLocale as n } from "../../../composables/useUiKitLocale.js";
|
|
4
4
|
import { useNotifier as r } from "../../../composables/useNotifier.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Copy as e } from "../../icons/
|
|
1
|
+
import { Copy as e } from "../../icons/_internal/generatedSputnigUiIconComponents.js";
|
|
2
2
|
import { useClipboard as t } from "../../../composables/useClipboard.js";
|
|
3
3
|
import { useUiKitLocale as n } from "../../../composables/useUiKitLocale.js";
|
|
4
4
|
import { useNotifier as r } from "../../../composables/useNotifier.js";
|
package/dist/src/components/shared/data-display/SMessage.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { X as e } from "../../icons/
|
|
1
|
+
import { X 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 { validateBoolean as r, validateExactString as i, validateNonEmptyString as a } from "../../../internal/runtimeContract.js";
|
package/dist/src/components/shared/data-display/STable.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { hasOwn as e } from "../../../internal/es2020.js";
|
|
2
|
-
import { ChevronDown as t, ChevronUp as n, ChevronsUpDown as r } from "../../icons/
|
|
2
|
+
import { ChevronDown as t, ChevronUp as n, ChevronsUpDown as r } from "../../icons/_internal/generatedSputnigUiIconComponents.js";
|
|
3
3
|
import { useUiKitLocale as i } from "../../../composables/useUiKitLocale.js";
|
|
4
4
|
import { useOwnedAttrs as a } from "../../../internal/ownedAttrs.js";
|
|
5
5
|
import { validateBoolean as o, validateDomId as s, validateExactString as c, validateNonEmptyString as l } from "../../../internal/runtimeContract.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../../../../assets/src/components/shared/data-display/_internal/SRichBlockNode.
|
|
1
|
+
import "../../../../../assets/src/components/shared/data-display/_internal/SRichBlockNode.css_vue_type_style_index_0_src_195d5c06_scoped_195d5c06_lang.css";
|
|
2
2
|
import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
import t from "./SRichBlockNode.vue_vue_type_script_setup_true_lang.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
//#region src/components/shared/data-display/_internal/SRichBlockNode.vue
|
|
6
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-
|
|
6
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-195d5c06"]]);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { n as default };
|
|
@@ -269,13 +269,13 @@ var T = {
|
|
|
269
269
|
"show-line-numbers": g.node.showLineNumbers ?? !0,
|
|
270
270
|
"read-only": "",
|
|
271
271
|
viewport: "document",
|
|
272
|
-
|
|
272
|
+
ariaLabel: g.node.label ?? C(B)("editor.codeBlock")
|
|
273
273
|
}, null, 8, [
|
|
274
274
|
"code",
|
|
275
275
|
"language",
|
|
276
276
|
"show-header",
|
|
277
277
|
"show-line-numbers",
|
|
278
|
-
"
|
|
278
|
+
"ariaLabel"
|
|
279
279
|
])) : g.node.type === "mathBlock" ? (v(), u(C(H), {
|
|
280
280
|
key: 10,
|
|
281
281
|
source: g.node.source,
|
package/dist/src/components/shared/database/SSqlEditor.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -7,7 +7,7 @@ import l from "../data-display/SStatus.vue.js";
|
|
|
7
7
|
import { validateCodeEditorViewport as u } from "../../../internal/codeEditorContract.js";
|
|
8
8
|
import { provideTrustedCodeEditorExtensions as d } from "../../../internal/codeEditorExtensions.js";
|
|
9
9
|
import f from "../data-display/SCodeEditor.vue.js";
|
|
10
|
-
import { computed as p, createBlock as m, createSlots as h, createVNode as g, defineComponent as _, mergeProps as
|
|
10
|
+
import { computed as p, createBlock as m, createSlots as h, createVNode as g, defineComponent as _, mergeProps as v, openBlock as ee, ref as te, renderSlot as y, unref as b, useId as x, useSlots as S, withCtx as C } from "vue";
|
|
11
11
|
import { autocompletion as w } from "@codemirror/autocomplete";
|
|
12
12
|
//#region src/components/shared/database/SSqlEditor.vue?vue&type=script&setup=true&lang.ts
|
|
13
13
|
var T = /*@__PURE__*/ _({
|
|
@@ -56,7 +56,7 @@ var T = /*@__PURE__*/ _({
|
|
|
56
56
|
let E = _, { t: D } = t(), re = p(() => E.placeholder ?? D("editor.sqlPlaceholder")), O = n({
|
|
57
57
|
component: "SSqlEditor",
|
|
58
58
|
owner: "SQL editor adapter root"
|
|
59
|
-
}), k = S(), A = ne, j =
|
|
59
|
+
}), k = S(), A = ne, j = te(null), M = p(() => r("SSqlEditor", "readOnly", E.readOnly)), N = p(() => r("SSqlEditor", "disabled", E.disabled)), P = p(() => r("SSqlEditor", "loading", E.loading)), F = p(() => r("SSqlEditor", "autofocus", E.autofocus)), I = p(() => r("SSqlEditor", "showLineNumbers", E.showLineNumbers)), L = p(() => u("SSqlEditor", E.viewport)), R = p(() => E.title === void 0 ? "" : s("SSqlEditor", "title", E.title)), z = p(() => s("SSqlEditor", "placeholder", re.value)), B = p(() => {
|
|
60
60
|
if (typeof E.errorMessage != "string") throw TypeError("SSqlEditor: errorMessage должен быть строкой. / SSqlEditor: errorMessage must be a string.");
|
|
61
61
|
return E.errorMessage === "" ? "" : s("SSqlEditor", "errorMessage", E.errorMessage);
|
|
62
62
|
}), V = p(() => {
|
|
@@ -242,7 +242,7 @@ var T = /*@__PURE__*/ _({
|
|
|
242
242
|
if (!e) throw Error("SSqlEditor: editor не готов; дождитесь ready. / SSqlEditor: editor is not ready; wait for ready.");
|
|
243
243
|
e.focus();
|
|
244
244
|
}
|
|
245
|
-
}), (e, t) => (
|
|
245
|
+
}), (e, t) => (ee(), m(c, v(b(O).bindings(), {
|
|
246
246
|
title: R.value || void 0,
|
|
247
247
|
"title-id": R.value ? H : void 0,
|
|
248
248
|
"footer-id": Z.value ? U : void 0,
|
|
@@ -254,7 +254,7 @@ var T = /*@__PURE__*/ _({
|
|
|
254
254
|
"surface-radius": "md",
|
|
255
255
|
"surface-overflow": "clip"
|
|
256
256
|
}), h({
|
|
257
|
-
default: C(() => [g(f, {
|
|
257
|
+
default: C(() => [g(f, v({
|
|
258
258
|
ref_key: "codeEditor",
|
|
259
259
|
ref: j,
|
|
260
260
|
"model-value": _.modelValue,
|
|
@@ -265,9 +265,8 @@ var T = /*@__PURE__*/ _({
|
|
|
265
265
|
autofocus: F.value,
|
|
266
266
|
placeholder: z.value,
|
|
267
267
|
"read-only": M.value,
|
|
268
|
-
disabled: N.value
|
|
269
|
-
|
|
270
|
-
"aria-labelledby": V.value.ariaLabelledby,
|
|
268
|
+
disabled: N.value
|
|
269
|
+
}, V.value, {
|
|
271
270
|
"aria-describedby": Z.value ? U : void 0,
|
|
272
271
|
invalid: Q.value,
|
|
273
272
|
"next-selection-pos": _.nextSelectionPos,
|
|
@@ -276,7 +275,7 @@ var T = /*@__PURE__*/ _({
|
|
|
276
275
|
onCursorActivity: ue,
|
|
277
276
|
onSelectionApplied: t[0] ||= (e) => A("selection-applied", e),
|
|
278
277
|
onReady: t[1] ||= (e) => A("ready", e)
|
|
279
|
-
}, null,
|
|
278
|
+
}), null, 16, [
|
|
280
279
|
"model-value",
|
|
281
280
|
"capabilities",
|
|
282
281
|
"viewport",
|
|
@@ -284,8 +283,6 @@ var T = /*@__PURE__*/ _({
|
|
|
284
283
|
"placeholder",
|
|
285
284
|
"read-only",
|
|
286
285
|
"disabled",
|
|
287
|
-
"aria-label",
|
|
288
|
-
"aria-labelledby",
|
|
289
286
|
"aria-describedby",
|
|
290
287
|
"invalid",
|
|
291
288
|
"next-selection-pos",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../../../assets/src/components/shared/navigation/SBottomNav.
|
|
1
|
+
import "../../../../assets/src/components/shared/navigation/SBottomNav.vue_vue_type_style_index_0_scoped_b3963080_lang.css";
|
|
2
2
|
import e from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
import t from "./SBottomNav.vue_vue_type_script_setup_true_lang.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
//#region src/components/shared/navigation/SBottomNav.vue
|
|
6
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-
|
|
6
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-b3963080"]]);
|
|
7
7
|
//#endregion
|
|
8
8
|
export { n as default };
|