@septkit/ui 0.0.58 → 0.0.59

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.
@@ -1,6 +1,6 @@
1
- import { r as e } from "../external/.pnpm/@dialecte_core@0.4.12/node_modules/@dialecte/core/dist/utils-C5_11hqg.js";
2
- import { pt as t } from "../external/.pnpm/@dialecte_core@0.4.12/node_modules/@dialecte/core/dist/project-DkMkDgld.js";
3
- import "../external/.pnpm/@dialecte_core@0.4.12/node_modules/@dialecte/core/dist/index.js";
1
+ import { r as e } from "../external/.pnpm/@dialecte_core@0.4.16/node_modules/@dialecte/core/dist/utils-BiEx1x59.js";
2
+ import { mt as t } from "../external/.pnpm/@dialecte_core@0.4.16/node_modules/@dialecte/core/dist/project-nvZv2ie8.js";
3
+ import "../external/.pnpm/@dialecte_core@0.4.16/node_modules/@dialecte/core/dist/index.js";
4
4
  import { computed as n, shallowRef as r } from "vue";
5
5
  //#region lib/dialecte/create-document-store.ts
6
6
  function i(i) {
@@ -1,5 +1,5 @@
1
- import { a as e, c as t, l as n, o as r, p as i, r as a, u as o } from "./utils-C5_11hqg.js";
2
- //#region node_modules/.pnpm/@dialecte+core@0.4.12/node_modules/@dialecte/core/dist/helpers.js
1
+ import { c as e, d as t, f as n, h as r, r as i, s as a, u as o } from "./utils-BiEx1x59.js";
2
+ //#region node_modules/.pnpm/@dialecte+core@0.4.16/node_modules/@dialecte/core/dist/helpers.js
3
3
  var s = "db-id", c = {
4
4
  uri: "http://dialecte.dev/XML/DEV",
5
5
  prefix: "dev"
@@ -53,85 +53,85 @@ function m(e) {
53
53
  tagName: n
54
54
  }));
55
55
  }
56
- function h(t) {
57
- let { attribute: r, dialecteConfig: a, tagName: s } = t, c;
58
- typeof r.namespace == "string" ? (c = o(a, r.namespace), c || i("UNKNOWN_NAMESPACE_PREFIX", {
59
- detail: `Unknown namespace '${r.namespace}' on attribute '${r.name}' — use a registered namespace key or pass a full { name, namespace: { prefix, uri } }.`,
56
+ function h(e) {
57
+ let { attribute: i, dialecteConfig: o, tagName: s } = e, c;
58
+ typeof i.namespace == "string" ? (c = n(o, i.namespace), c || r("UNKNOWN_NAMESPACE_PREFIX", {
59
+ detail: `Unknown namespace '${i.namespace}' on attribute '${i.name}' — use a registered namespace key or pass a full { name, namespace: { prefix, uri } }.`,
60
60
  ref: { tagName: s }
61
- })) : c = r.namespace;
62
- let l = r.name.indexOf(":");
61
+ })) : c = i.namespace;
62
+ let l = i.name.indexOf(":");
63
63
  if (!c && l !== -1) {
64
- let e = r.name.slice(0, l);
65
- e !== "xmlns" && (c = n(a, e), c || i("UNKNOWN_NAMESPACE_PREFIX", {
66
- detail: `Unknown namespace prefix '${e}' on attribute '${r.name}' — pass it explicitly as { name, namespace: { prefix, uri } }.`,
64
+ let e = i.name.slice(0, l);
65
+ e !== "xmlns" && (c = t(o, e), c || r("UNKNOWN_NAMESPACE_PREFIX", {
66
+ detail: `Unknown namespace prefix '${e}' on attribute '${i.name}' — pass it explicitly as { name, namespace: { prefix, uri } }.`,
67
67
  ref: { tagName: s }
68
68
  }));
69
69
  }
70
70
  return c && c.prefix && c.prefix !== "xmlns" ? {
71
- ...r,
72
- name: `${c.prefix}:${e(r.name)}`,
71
+ ...i,
72
+ name: `${c.prefix}:${a(i.name)}`,
73
73
  namespace: c
74
- } : (r.namespace, {
75
- ...r,
74
+ } : (i.namespace, {
75
+ ...i,
76
76
  namespace: c
77
77
  });
78
78
  }
79
79
  function g(e) {
80
- return a(e, { detail: "The record or ref is undefined" }), {
80
+ return i(e, { detail: "The record or ref is undefined" }), {
81
81
  id: e.id,
82
82
  tagName: e.tagName
83
83
  };
84
84
  }
85
85
  function _(e) {
86
- let { dialecteConfig: n, hooks: r, record: i } = e, { id: a, tagName: o, attributes: s, namespace: c, value: l } = i, u = a ?? crypto.randomUUID(), d = s ? m({
87
- tagName: o,
86
+ let { dialecteConfig: t, hooks: n, record: r } = e, { id: i, tagName: a, attributes: s, namespace: c, value: l } = r, u = i ?? crypto.randomUUID(), d = s ? m({
87
+ tagName: a,
88
88
  attributes: s,
89
- dialecteConfig: n
89
+ dialecteConfig: t
90
90
  }) : [], f = {
91
91
  id: u,
92
- tagName: o,
92
+ tagName: a,
93
93
  attributes: d,
94
94
  namespace: c ?? {
95
95
  prefix: "prefixNeededForNotSupportedNamespace",
96
96
  uri: "uriNeededForNotSupportedNamespace"
97
97
  },
98
98
  value: l ?? "",
99
- parent: i.parent ?? null,
100
- children: i.children ?? []
101
- }, p = Object.values(n.namespaces).map(({ uri: e }) => e), h = c?.uri != null && !p.includes(c.uri);
102
- if (!(n.elements.includes(o) && !h)) return f;
103
- let g = n.definition[o].attributes.sequence, _ = d.filter((e) => {
99
+ parent: r.parent ?? null,
100
+ children: r.children ?? []
101
+ }, p = Object.values(t.namespaces).map(({ uri: e }) => e), h = c?.uri != null && !p.includes(c.uri);
102
+ if (!(t.elements.includes(a) && !h)) return f;
103
+ let g = t.definition[a].attributes.sequence, _ = d.filter((e) => {
104
104
  let t = g.includes(e.name), n = "namespace" in e && e.namespace != null;
105
105
  if (!t && !n) return !1;
106
106
  let r = e.value === void 0 || e.value === null || e.value === "";
107
107
  return !(t && r);
108
- }), v = n.namespaces.default.uri, y = _.map((e) => {
108
+ }), v = t.namespaces.default.uri, y = _.map((e) => {
109
109
  if ("namespace" in e && e.namespace?.uri === v) {
110
110
  let { namespace: t, ...n } = e;
111
111
  return n;
112
112
  }
113
113
  return e;
114
- }), b = i.parent?.tagName, x = b ? n.definition[b]?.children?.details?.[o]?.namespace : void 0, S = {
114
+ }), b = r.parent?.tagName, x = b ? t.definition[b]?.children?.details?.[a]?.namespace : void 0, S = {
115
115
  ...f,
116
- namespace: x ?? n.definition[o].namespace,
117
- attributes: t(y, g)
116
+ namespace: x ?? t.definition[a].namespace,
117
+ attributes: o(y, g)
118
118
  };
119
- return r?.afterStandardizedRecord && (S = r.afterStandardizedRecord({ record: S }), S = {
119
+ return n?.afterStandardizedRecord && (S = n.afterStandardizedRecord({ record: S }), S = {
120
120
  ...S,
121
- attributes: t(S.attributes, g)
121
+ attributes: o(S.attributes, g)
122
122
  }), S;
123
123
  }
124
- function v(e) {
125
- let { dialecteConfig: t, tagName: n, attributes: a } = e;
126
- for (let e of a) {
127
- let a = r({
128
- dialecteConfig: t,
129
- tagName: n,
130
- attributeName: e.name
124
+ function v(t) {
125
+ let { dialecteConfig: n, tagName: i, attributes: a } = t;
126
+ for (let t of a) {
127
+ let a = e({
128
+ dialecteConfig: n,
129
+ tagName: i,
130
+ attributeName: t.name
131
131
  });
132
- a.fixed !== void 0 && e.value !== a.fixed && i("FIXED_VALUE_VIOLATION", {
133
- detail: `Attribute '${e.name}' on '${n}' is fixed to '${a.fixed}' but was set to '${String(e.value)}'.`,
134
- ref: { tagName: n }
132
+ a.fixed !== void 0 && t.value !== a.fixed && r("FIXED_VALUE_VIOLATION", {
133
+ detail: `Attribute '${t.name}' on '${i}' is fixed to '${a.fixed}' but was set to '${String(t.value)}'.`,
134
+ ref: { tagName: i }
135
135
  });
136
136
  }
137
137
  }
@@ -0,0 +1,3 @@
1
+ import "./utils-BiEx1x59.js";
2
+ import { mt as e } from "./project-nvZv2ie8.js";
3
+ export { e as bindExtensions };