@septkit/ui 0.0.62 → 0.0.64
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 +3 -3
- package/dist/external/.pnpm/{@dialecte_core@0.4.16 → @dialecte_core@0.5.2}/node_modules/@dialecte/core/dist/helpers.js +54 -51
- package/dist/external/.pnpm/@dialecte_core@0.5.2/node_modules/@dialecte/core/dist/index.js +3 -0
- package/dist/external/.pnpm/{@dialecte_core@0.4.16/node_modules/@dialecte/core/dist/project-nvZv2ie8.js → @dialecte_core@0.5.2/node_modules/@dialecte/core/dist/project-Bd3fSPam.js} +1792 -1756
- package/dist/external/.pnpm/{@dialecte_core@0.4.16/node_modules/@dialecte/core/dist/utils-BiEx1x59.js → @dialecte_core@0.5.2/node_modules/@dialecte/core/dist/utils-ERge2irW.js} +47 -25
- package/dist/external/.pnpm/@dialecte_scl@0.5.0/node_modules/@dialecte/scl/dist/hooks-2Y_WzKF4.js +33971 -0
- package/dist/external/.pnpm/{@dialecte_scl@0.3.17 → @dialecte_scl@0.5.0}/node_modules/@dialecte/scl/dist/v2019C1/index.js +3 -3
- package/dist/merge/merge-preflight.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/merge/merge.service.js +2 -2
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_core@0.4.16/node_modules/@dialecte/core/dist/index.js +0 -3
- package/dist/external/.pnpm/@dialecte_scl@0.3.17/node_modules/@dialecte/scl/dist/hooks-BBGXNK0x.js +0 -20045
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/@dialecte+core@0.
|
|
1
|
+
//#region node_modules/.pnpm/@dialecte+core@0.5.2/node_modules/@dialecte/core/dist/utils-ERge2irW.js
|
|
2
2
|
var e = {
|
|
3
3
|
UNKNOWN: {
|
|
4
4
|
code: "D0001",
|
|
@@ -159,51 +159,73 @@ function n(e) {
|
|
|
159
159
|
return a ? `${a[1].replace(/\.[^/.]+$/, "")}::${r}` : r;
|
|
160
160
|
}
|
|
161
161
|
function r(e) {
|
|
162
|
-
let { dialecteConfig: t,
|
|
163
|
-
return
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
162
|
+
let { dialecteConfig: t, record: n } = e, r = t.definition[n.tagName];
|
|
163
|
+
if (r === void 0) return;
|
|
164
|
+
let i = n.parent?.tagName;
|
|
165
|
+
if (!i) return r;
|
|
166
|
+
let a = t.definition[i]?.children.details[n.tagName];
|
|
167
|
+
return a?.attributes === void 0 || a.children === void 0 ? r : {
|
|
168
|
+
tag: r.tag,
|
|
169
|
+
namespace: r.namespace,
|
|
170
|
+
documentation: r.documentation,
|
|
171
|
+
parents: r.parents,
|
|
172
|
+
constraints: r.constraints,
|
|
173
|
+
nillable: a.nillable,
|
|
174
|
+
attributes: a.attributes,
|
|
175
|
+
children: a.children,
|
|
176
|
+
contentModel: a.contentModel,
|
|
177
|
+
textContent: a.textContent
|
|
171
178
|
};
|
|
172
179
|
}
|
|
173
180
|
function i(e) {
|
|
174
|
-
let { dialecteConfig: t,
|
|
181
|
+
let { dialecteConfig: t, record: n, attributeName: i } = e, a = t.elements.includes(n.tagName), o = a ? r({
|
|
182
|
+
dialecteConfig: t,
|
|
183
|
+
record: n
|
|
184
|
+
}) : void 0, s = o?.attributes.details[i];
|
|
185
|
+
return {
|
|
186
|
+
isKnownElement: a,
|
|
187
|
+
isDefined: !!s,
|
|
188
|
+
isRequired: !!s?.required,
|
|
189
|
+
isIdentityField: o?.attributes.identityFields?.includes(i) ?? !1,
|
|
190
|
+
fixed: s?.fixed,
|
|
191
|
+
default: s?.default,
|
|
192
|
+
namespace: s?.namespace || void 0
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
function a(e) {
|
|
196
|
+
let { dialecteConfig: t, record: n, attributeName: r, defaults: a } = e;
|
|
175
197
|
if (a === "none") return;
|
|
176
|
-
let o =
|
|
198
|
+
let o = i({
|
|
177
199
|
dialecteConfig: t,
|
|
178
|
-
|
|
179
|
-
attributeName:
|
|
200
|
+
record: n,
|
|
201
|
+
attributeName: r
|
|
180
202
|
});
|
|
181
203
|
if (a === "required") return o.isRequired || o.fixed !== void 0 ? o.fixed ?? o.default ?? "" : void 0;
|
|
182
204
|
if (o.fixed !== void 0) return o.fixed;
|
|
183
205
|
if (o.default) return o.default;
|
|
184
206
|
}
|
|
185
|
-
function
|
|
207
|
+
function o(e) {
|
|
186
208
|
let t = e.lastIndexOf(":");
|
|
187
209
|
return t === -1 ? e : e.slice(t + 1);
|
|
188
210
|
}
|
|
189
|
-
function o(e, t) {
|
|
190
|
-
if (t) return Object.values(e.namespaces).find((e) => e.prefix === t);
|
|
191
|
-
}
|
|
192
211
|
function s(e, t) {
|
|
193
|
-
return e.namespaces
|
|
212
|
+
if (t) return Object.values(e.namespaces).find((e) => e.prefix === t);
|
|
194
213
|
}
|
|
195
214
|
function c(e, t) {
|
|
196
|
-
return e.namespaces[t]
|
|
215
|
+
return e.namespaces[t] ?? s(e, t);
|
|
197
216
|
}
|
|
198
217
|
function l(e, t) {
|
|
218
|
+
return e.namespaces[t]?.prefix ?? t;
|
|
219
|
+
}
|
|
220
|
+
function u(e, t) {
|
|
199
221
|
let n = e.namespace?.uri ?? "", r = t.namespace?.uri ?? "";
|
|
200
222
|
return n === r ? e.name === t.name ? 0 : e.name < t.name ? -1 : 1 : n < r ? -1 : 1;
|
|
201
223
|
}
|
|
202
|
-
function
|
|
203
|
-
let n = t.flatMap((t) => e.filter((e) => e.name === t)), r = e.filter((e) => !t.includes(e.name)).sort(
|
|
224
|
+
function d(e, t) {
|
|
225
|
+
let n = t.flatMap((t) => e.filter((e) => e.name === t)), r = e.filter((e) => !t.includes(e.name)).sort(u);
|
|
204
226
|
return [...n, ...r];
|
|
205
227
|
}
|
|
206
|
-
function
|
|
228
|
+
function f(e, n) {
|
|
207
229
|
if (e) return;
|
|
208
230
|
let { detail: r, key: i = "ASSERTION_FAILED", ref: a } = n;
|
|
209
231
|
t(i, {
|
|
@@ -211,7 +233,7 @@ function d(e, n) {
|
|
|
211
233
|
ref: a
|
|
212
234
|
});
|
|
213
235
|
}
|
|
214
|
-
function
|
|
236
|
+
function p(e) {
|
|
215
237
|
let { parentTagName: t, children: n, childrenConfig: r } = e, i = r[t];
|
|
216
238
|
if (!i || i.length === 0) return n;
|
|
217
239
|
let a = new Set(i), o = /* @__PURE__ */ new Map();
|
|
@@ -229,4 +251,4 @@ function f(e) {
|
|
|
229
251
|
return c.push(...s), c;
|
|
230
252
|
}
|
|
231
253
|
//#endregion
|
|
232
|
-
export {
|
|
254
|
+
export { e as _, i as c, s as d, c as f, t as g, r as h, a as m, p as n, u as o, l as p, f as r, o as s, d as u };
|