@septkit/ui 0.0.79 → 0.0.80
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/dist/dialecte/create-document-store.js +4 -4
- package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/dialecte-gIPrRzni.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/project-key-Ch34EtFa.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/running-operations-vnijBvn7.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/same-json-value-C6kUaoyt.js +1 -1
- package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/utils-USNkj4sT.js +1 -1
- package/dist/external/.pnpm/{@dialecte_scl@0.13.2_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-DpI8_nD9.js → @dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js} +234 -262
- package/dist/external/.pnpm/@dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +22 -0
- package/dist/index.d.ts +25 -6
- package/dist/index.js +13 -13
- package/dist/merge/check-files/identity-warning.js +1 -2
- package/dist/merge/confirm/outcome.js +4 -4
- package/dist/merge/done/applied-focus.js +1 -1
- package/dist/merge/match/match.js +4 -4
- package/dist/merge/session/components/merge-review.vue_vue_type_script_setup_true_lang.js +0 -1
- package/dist/merge/session/merge.service.js +19 -25
- package/dist/merge/session/use-merge-session.js +1 -11
- package/dist/merge/wording.js +4 -4
- package/dist/selector-input/index.js +3 -0
- package/dist/selector-input/selector-input.js +90 -0
- package/dist/selector-input/selector-input.vue_vue_type_script_setup_true_lang.js +180 -0
- package/dist/selector-input/selector-input2.js +5 -0
- package/dist/ui.css +1 -1
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_scl@0.13.2_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/v2019C1/index.js +0 -3
- package/dist/xpath-input/index.js +0 -3
- package/dist/xpath-input/xpath-input.js +0 -28
- package/dist/xpath-input/xpath-input.vue_vue_type_script_setup_true_lang.js +0 -101
- package/dist/xpath-input/xpath-input2.js +0 -5
- /package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/helpers-DVShv41E.js +0 -0
- /package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/helpers.js +0 -0
- /package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/index.js +0 -0
- /package/dist/external/.pnpm/{@dialecte_core@0.8.1 → @dialecte_core@0.8.0}/node_modules/@dialecte/core/dist/utils.js +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@septkit/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.80",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"source": "lib/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"./uicss": "./dist/ui.css"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dialecte/core": "0.8.
|
|
20
|
-
"@dialecte/scl": "0.
|
|
19
|
+
"@dialecte/core": "0.8.0",
|
|
20
|
+
"@dialecte/scl": "0.11.0",
|
|
21
21
|
"@lucide/vue": "^1.16.0",
|
|
22
22
|
"@tailwindcss/vite": "4.2.2",
|
|
23
23
|
"@vueuse/components": "^13.9.0",
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import "../../../../../../@dialecte_core@0.8.1/node_modules/@dialecte/core/dist/index.js";
|
|
2
|
-
import { h as e, i as t, o as n, rt as r, v as i } from "../hooks-DpI8_nD9.js";
|
|
3
|
-
export { e as SCL_ERRORS, r as TEMPLATE_NAME, n as TEMPLATE_UUID_WARNING_INFO, i as getPathSegment, t as presentationScope };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
//#region lib/xpath-input/xpath-input.ts
|
|
2
|
-
var e = "[\\w.-]+", t = RegExp(`^${e}$`), n = `ancestor::\\*\\[local-name\\(\\)='(${e})'\\]\\[1\\]`, r = `local-name\\(\\)='${e}'`, i = RegExp(`^(?:${n})?//\\*(?:\\[(${r}(?: or ${r})*)\\])?$`);
|
|
3
|
-
function a({ anchor: e, targets: t }) {
|
|
4
|
-
return c(e, { optional: !0 }), t.forEach((e) => c(e)), !e && t.length === 0 ? "" : `${e ? `ancestor::*[local-name()='${e}'][1]` : ""}//*${t.length > 0 ? `[${t.map((e) => `local-name()='${e}'`).join(" or ")}]` : ""}`;
|
|
5
|
-
}
|
|
6
|
-
function o(e) {
|
|
7
|
-
let t = i.exec(e);
|
|
8
|
-
if (!t || !t[1] && !t[2]) return;
|
|
9
|
-
let n = [...(t[2] ?? "").matchAll(/local-name\(\)='([^']+)'/g)].map((e) => e[1]);
|
|
10
|
-
return {
|
|
11
|
-
anchor: t[1] ?? "",
|
|
12
|
-
targets: n
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
function s(e) {
|
|
16
|
-
if (e.trim() !== "") try {
|
|
17
|
-
let t = document.implementation.createDocument(null, "root");
|
|
18
|
-
t.evaluate(e, t, null, XPathResult.ANY_TYPE, null);
|
|
19
|
-
return;
|
|
20
|
-
} catch (e) {
|
|
21
|
-
return e instanceof Error && e.message || "Invalid XPath";
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function c(e, { optional: n = !1 } = {}) {
|
|
25
|
-
if (!(n && e === "") && !t.test(e)) throw Error(`Invalid element name "${e}"`);
|
|
26
|
-
}
|
|
27
|
-
//#endregion
|
|
28
|
-
export { a as buildXpath, o as parseXpath, s as validateXpath };
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { buildXpath as e, parseXpath as t, validateXpath as n } from "./xpath-input.js";
|
|
2
|
-
import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, mergeModels as l, normalizeClass as u, openBlock as d, ref as f, renderList as p, renderSlot as m, toDisplayString as h, useModel as g, vModelText as _, watch as v, withDirectives as y } from "vue";
|
|
3
|
-
//#region lib/xpath-input/xpath-input.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var b = {
|
|
5
|
-
class: "flex flex-col gap-2",
|
|
6
|
-
"data-testid": "xpath-input"
|
|
7
|
-
}, x = { class: "tabs tabs-box w-fit tabs-sm" }, S = ["disabled", "title"], C = { class: "fieldset" }, w = { class: "flex flex-wrap gap-2" }, T = [
|
|
8
|
-
"aria-pressed",
|
|
9
|
-
"data-testid",
|
|
10
|
-
"onClick"
|
|
11
|
-
], E = { class: "fieldset" }, D = { class: "flex flex-wrap gap-2" }, O = [
|
|
12
|
-
"aria-pressed",
|
|
13
|
-
"data-testid",
|
|
14
|
-
"onClick"
|
|
15
|
-
], k = {
|
|
16
|
-
key: 1,
|
|
17
|
-
class: "fieldset"
|
|
18
|
-
}, A = {
|
|
19
|
-
key: 0,
|
|
20
|
-
class: "label text-error",
|
|
21
|
-
role: "alert",
|
|
22
|
-
"data-testid": "xpath-input-error"
|
|
23
|
-
}, j = /*@__PURE__*/ c({
|
|
24
|
-
__name: "xpath-input",
|
|
25
|
-
props: /*@__PURE__*/ l({
|
|
26
|
-
anchors: {},
|
|
27
|
-
targets: {},
|
|
28
|
-
anywhereLabel: { default: "Anywhere" }
|
|
29
|
-
}, {
|
|
30
|
-
modelValue: { default: "" },
|
|
31
|
-
modelModifiers: {}
|
|
32
|
-
}),
|
|
33
|
-
emits: ["update:modelValue"],
|
|
34
|
-
setup(c) {
|
|
35
|
-
let l = c, j = g(c, "modelValue"), M = i(() => t(j.value)), N = f(M.value?.anchor ?? ""), P = f(M.value?.targets ?? []), F = f(M.value || j.value === "" ? "builder" : "xpath"), I = i(() => j.value === "" || M.value !== void 0), L = i(() => n(j.value)), R = i(() => [{
|
|
36
|
-
value: "",
|
|
37
|
-
label: l.anywhereLabel
|
|
38
|
-
}, ...l.anchors]);
|
|
39
|
-
v(j, (e) => {
|
|
40
|
-
let n = e === "" ? {
|
|
41
|
-
anchor: "",
|
|
42
|
-
targets: []
|
|
43
|
-
} : t(e);
|
|
44
|
-
n && (N.value = n.anchor, P.value = n.targets);
|
|
45
|
-
});
|
|
46
|
-
function z(e) {
|
|
47
|
-
N.value = e, V();
|
|
48
|
-
}
|
|
49
|
-
function B(e) {
|
|
50
|
-
P.value = P.value.includes(e) ? P.value.filter((t) => t !== e) : [...P.value, e], V();
|
|
51
|
-
}
|
|
52
|
-
function V() {
|
|
53
|
-
j.value = e({
|
|
54
|
-
anchor: N.value,
|
|
55
|
-
targets: P.value
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
return (e, t) => (d(), o("div", b, [
|
|
59
|
-
s("div", x, [s("button", {
|
|
60
|
-
type: "button",
|
|
61
|
-
class: u(["tab", { "tab-active": F.value === "builder" }]),
|
|
62
|
-
disabled: !I.value,
|
|
63
|
-
title: I.value ? void 0 : "This XPath cannot be shown in the builder",
|
|
64
|
-
"data-testid": "xpath-input-mode-builder",
|
|
65
|
-
onClick: t[0] ||= (e) => F.value = "builder"
|
|
66
|
-
}, " Builder ", 10, S), s("button", {
|
|
67
|
-
type: "button",
|
|
68
|
-
class: u(["tab", { "tab-active": F.value === "xpath" }]),
|
|
69
|
-
"data-testid": "xpath-input-mode-xpath",
|
|
70
|
-
onClick: t[1] ||= (e) => F.value = "xpath"
|
|
71
|
-
}, " XPath ", 2)]),
|
|
72
|
-
F.value === "builder" ? (d(), o(r, { key: 0 }, [s("fieldset", C, [t[3] ||= s("legend", { class: "fieldset-legend text-sm font-medium" }, "Scope", -1), s("div", w, [(d(!0), o(r, null, p(R.value, (e) => (d(), o("button", {
|
|
73
|
-
key: e.value,
|
|
74
|
-
type: "button",
|
|
75
|
-
class: u(["badge badge-sm cursor-pointer", N.value === e.value ? "badge-primary" : "badge-soft"]),
|
|
76
|
-
"aria-pressed": N.value === e.value,
|
|
77
|
-
"data-testid": `xpath-input-anchor-${e.value || "none"}`,
|
|
78
|
-
onClick: (t) => z(e.value)
|
|
79
|
-
}, h(e.label), 11, T))), 128))])]), s("fieldset", E, [t[4] ||= s("legend", { class: "fieldset-legend text-sm font-medium" }, "Select", -1), s("div", D, [(d(!0), o(r, null, p(l.targets, (e) => (d(), o("button", {
|
|
80
|
-
key: e.value,
|
|
81
|
-
type: "button",
|
|
82
|
-
class: u(["badge badge-sm cursor-pointer", P.value.includes(e.value) ? "badge-primary" : "badge-soft"]),
|
|
83
|
-
"aria-pressed": P.value.includes(e.value),
|
|
84
|
-
"data-testid": `xpath-input-target-${e.value}`,
|
|
85
|
-
onClick: (t) => B(e.value)
|
|
86
|
-
}, h(e.label), 11, O))), 128))])])], 64)) : (d(), o("fieldset", k, [
|
|
87
|
-
t[5] ||= s("legend", { class: "fieldset-legend" }, "XPath", -1),
|
|
88
|
-
y(s("input", {
|
|
89
|
-
"onUpdate:modelValue": t[2] ||= (e) => j.value = e,
|
|
90
|
-
type: "text",
|
|
91
|
-
class: u(["input w-full font-mono", { "input-error": L.value }]),
|
|
92
|
-
"data-testid": "xpath-input-raw"
|
|
93
|
-
}, null, 2), [[_, j.value]]),
|
|
94
|
-
L.value ? (d(), o("p", A, h(L.value), 1)) : a("", !0)
|
|
95
|
-
])),
|
|
96
|
-
m(e.$slots, "footer")
|
|
97
|
-
]));
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
//#endregion
|
|
101
|
-
export { j as default };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|