@septkit/ui 0.0.61 → 0.0.63

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.
Files changed (29) hide show
  1. package/dist/dialecte/create-document-store.js +3 -3
  2. package/dist/external/.pnpm/{@dialecte_core@0.4.16 → @dialecte_core@0.5.1}/node_modules/@dialecte/core/dist/helpers.js +54 -51
  3. package/dist/external/.pnpm/@dialecte_core@0.5.1/node_modules/@dialecte/core/dist/index.js +3 -0
  4. package/dist/external/.pnpm/{@dialecte_core@0.4.16/node_modules/@dialecte/core/dist/project-nvZv2ie8.js → @dialecte_core@0.5.1/node_modules/@dialecte/core/dist/project-iCKfhRzr.js} +1783 -1747
  5. package/dist/external/.pnpm/{@dialecte_core@0.4.16/node_modules/@dialecte/core/dist/utils-BiEx1x59.js → @dialecte_core@0.5.1/node_modules/@dialecte/core/dist/utils-ERge2irW.js} +47 -25
  6. package/dist/external/.pnpm/@dialecte_scl@0.4.1/node_modules/@dialecte/scl/dist/hooks-CZTZsrpD.js +33955 -0
  7. package/dist/external/.pnpm/{@dialecte_scl@0.3.17 → @dialecte_scl@0.4.1}/node_modules/@dialecte/scl/dist/v2019C1/index.js +3 -3
  8. package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/arrow-up-down.js +22 -0
  9. package/dist/external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/funnel.js +8 -0
  10. package/dist/index.d.ts +154 -29
  11. package/dist/index.js +18 -11
  12. package/dist/merge/merge-preflight.vue_vue_type_script_setup_true_lang.js +1 -1
  13. package/dist/merge/merge.service.js +2 -2
  14. package/dist/table/column-filter-context.js +13 -0
  15. package/dist/table/filterable-column-header.js +7 -0
  16. package/dist/table/filterable-column-header.vue_vue_type_script_setup_true_lang.js +175 -0
  17. package/dist/table/filters/build-filter-options.js +101 -0
  18. package/dist/table/filters/filter-popover.js +7 -0
  19. package/dist/table/filters/filter-popover.vue_vue_type_script_setup_true_lang.js +169 -0
  20. package/dist/table/filters/filter-tree-node.js +7 -0
  21. package/dist/table/filters/filter-tree-node.vue_vue_type_script_setup_true_lang.js +79 -0
  22. package/dist/table/filters/use-column-filters.js +61 -0
  23. package/dist/table/filters/use-row-sort.js +43 -0
  24. package/dist/table/index.js +7 -0
  25. package/dist/table/row-sort-context.js +11 -0
  26. package/dist/ui.css +1 -1
  27. package/package.json +3 -3
  28. package/dist/external/.pnpm/@dialecte_core@0.4.16/node_modules/@dialecte/core/dist/index.js +0 -3
  29. package/dist/external/.pnpm/@dialecte_scl@0.3.17/node_modules/@dialecte/scl/dist/hooks-BBGXNK0x.js +0 -20045
@@ -1,6 +1,6 @@
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";
1
+ import { r as e } from "../external/.pnpm/@dialecte_core@0.5.1/node_modules/@dialecte/core/dist/utils-ERge2irW.js";
2
+ import { ht as t } from "../external/.pnpm/@dialecte_core@0.5.1/node_modules/@dialecte/core/dist/project-iCKfhRzr.js";
3
+ import "../external/.pnpm/@dialecte_core@0.5.1/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,19 +1,19 @@
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
- var s = "db-id", c = {
1
+ import { c as e, d as t, f as n, g as r, h as i, r as a, s as o, u as s } from "./utils-ERge2irW.js";
2
+ //#region node_modules/.pnpm/@dialecte+core@0.5.1/node_modules/@dialecte/core/dist/helpers.js
3
+ var c = "db-id", l = {
4
4
  uri: "http://dialecte.dev/XML/DEV",
5
5
  prefix: "dev"
6
6
  };
7
- `${c.prefix}${s}`;
8
- var l = {
7
+ `${l.prefix}${c}`;
8
+ var u = {
9
9
  uri: "http://www.w3.org/2001/XMLSchema-instance",
10
10
  prefix: "xsi"
11
11
  };
12
- `${l.prefix}${l.uri}`;
13
- function u(e, t) {
12
+ `${u.prefix}${u.uri}`;
13
+ function d(e, t) {
14
14
  return e.tagName === t;
15
15
  }
16
- function d(e) {
16
+ function f(e) {
17
17
  return {
18
18
  id: e.id,
19
19
  tagName: e.tagName,
@@ -24,116 +24,119 @@ function d(e) {
24
24
  children: e.children
25
25
  };
26
26
  }
27
- function f(e) {
27
+ function p(e) {
28
28
  let { record: t, status: n } = e, r = n ?? ("status" in t ? t.status : "unchanged");
29
29
  return {
30
- ...d(t),
30
+ ...f(t),
31
31
  status: r
32
32
  };
33
33
  }
34
- function p(e) {
34
+ function m(e) {
35
35
  let { record: t, status: n, tree: r } = e, i = r ?? ("tree" in t ? t.tree : []);
36
36
  return {
37
- ...f({
37
+ ...p({
38
38
  record: t,
39
39
  status: n
40
40
  }),
41
41
  tree: i
42
42
  };
43
43
  }
44
- function m(e) {
44
+ function h(e) {
45
45
  let { dialecteConfig: t, tagName: n, attributes: r } = e;
46
46
  return (Array.isArray(r) ? r : Object.entries(r).map(([e, r]) => ({
47
47
  name: e,
48
48
  value: r,
49
49
  namespace: t.definition[n]?.attributes.details[e]?.namespace || void 0
50
- }))).map((e) => h({
50
+ }))).map((e) => g({
51
51
  attribute: e,
52
52
  dialecteConfig: t,
53
53
  tagName: n
54
54
  }));
55
55
  }
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", {
56
+ function g(e) {
57
+ let { attribute: i, dialecteConfig: a, tagName: s } = e, c;
58
+ typeof i.namespace == "string" ? (c = n(a, i.namespace), c || r("UNKNOWN_NAMESPACE_PREFIX", {
59
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
61
  })) : c = i.namespace;
62
62
  let l = i.name.indexOf(":");
63
63
  if (!c && l !== -1) {
64
64
  let e = i.name.slice(0, l);
65
- e !== "xmlns" && (c = t(o, e), c || r("UNKNOWN_NAMESPACE_PREFIX", {
65
+ e !== "xmlns" && (c = t(a, e), c || r("UNKNOWN_NAMESPACE_PREFIX", {
66
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
71
  ...i,
72
- name: `${c.prefix}:${a(i.name)}`,
72
+ name: `${c.prefix}:${o(i.name)}`,
73
73
  namespace: c
74
74
  } : (i.namespace, {
75
75
  ...i,
76
76
  namespace: c
77
77
  });
78
78
  }
79
- function g(e) {
80
- return i(e, { detail: "The record or ref is undefined" }), {
79
+ function _(e) {
80
+ return a(e, { detail: "The record or ref is undefined" }), {
81
81
  id: e.id,
82
82
  tagName: e.tagName
83
83
  };
84
84
  }
85
- function _(e) {
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
- attributes: s,
85
+ function v(e) {
86
+ let { dialecteConfig: t, hooks: n, record: r } = e, { id: a, tagName: o, attributes: c, namespace: l, value: u } = r, d = r.parent?.tagName, f = a ?? crypto.randomUUID(), p = c ? h({
87
+ tagName: o,
88
+ attributes: c,
89
89
  dialecteConfig: t
90
- }) : [], f = {
91
- id: u,
92
- tagName: a,
93
- attributes: d,
94
- namespace: c ?? {
90
+ }) : [], m = {
91
+ id: f,
92
+ tagName: o,
93
+ attributes: p,
94
+ namespace: l ?? {
95
95
  prefix: "prefixNeededForNotSupportedNamespace",
96
96
  uri: "uriNeededForNotSupportedNamespace"
97
97
  },
98
- value: l ?? "",
98
+ value: u ?? "",
99
99
  parent: r.parent ?? null,
100
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
- let t = g.includes(e.name), n = "namespace" in e && e.namespace != null;
101
+ }, g = Object.values(t.namespaces).map(({ uri: e }) => e), _ = l?.uri != null && !g.includes(l.uri);
102
+ if (!(t.elements.includes(o) && !_)) return m;
103
+ let v = i({
104
+ dialecteConfig: t,
105
+ record: m
106
+ })?.attributes.sequence ?? [], y = p.filter((e) => {
107
+ let t = v.includes(e.name), n = "namespace" in e && e.namespace != null;
105
108
  if (!t && !n) return !1;
106
109
  let r = e.value === void 0 || e.value === null || e.value === "";
107
110
  return !(t && r);
108
- }), v = t.namespaces.default.uri, y = _.map((e) => {
109
- if ("namespace" in e && e.namespace?.uri === v) {
111
+ }), b = t.namespaces.default.uri, x = y.map((e) => {
112
+ if ("namespace" in e && e.namespace?.uri === b) {
110
113
  let { namespace: t, ...n } = e;
111
114
  return n;
112
115
  }
113
116
  return e;
114
- }), b = r.parent?.tagName, x = b ? t.definition[b]?.children?.details?.[a]?.namespace : void 0, S = {
115
- ...f,
116
- namespace: x ?? t.definition[a].namespace,
117
- attributes: o(y, g)
117
+ }), S = d ? t.definition[d]?.children?.details?.[o]?.namespace : void 0, C = {
118
+ ...m,
119
+ namespace: S ?? t.definition[o].namespace,
120
+ attributes: s(x, v)
118
121
  };
119
- return n?.afterStandardizedRecord && (S = n.afterStandardizedRecord({ record: S }), S = {
120
- ...S,
121
- attributes: o(S.attributes, g)
122
- }), S;
122
+ return n?.afterStandardizedRecord && (C = n.afterStandardizedRecord({ record: C }), C = {
123
+ ...C,
124
+ attributes: s(C.attributes, v)
125
+ }), C;
123
126
  }
124
- function v(t) {
125
- let { dialecteConfig: n, tagName: i, attributes: a } = t;
127
+ function y(t) {
128
+ let { dialecteConfig: n, record: i, attributes: a } = t;
126
129
  for (let t of a) {
127
130
  let a = e({
128
131
  dialecteConfig: n,
129
- tagName: i,
132
+ record: i,
130
133
  attributeName: t.name
131
134
  });
132
135
  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 }
136
+ detail: `Attribute '${t.name}' on '${i.tagName}' is fixed to '${a.fixed}' but was set to '${String(t.value)}'.`,
137
+ ref: { tagName: i.tagName }
135
138
  });
136
139
  }
137
140
  }
138
141
  //#endregion
139
- export { s as CUSTOM_RECORD_ID_ATTRIBUTE_NAME, c as DIALECTE_DEV_NAMESPACE, l as XSI_NAMESPACE, v as assertNoFixedViolation, u as isRecordOf, _ as standardizeRecord, m as toFullAttributeArray, d as toRawRecord, g as toRef, f as toTrackedRecord, p as toTreeRecord };
142
+ export { c as CUSTOM_RECORD_ID_ATTRIBUTE_NAME, l as DIALECTE_DEV_NAMESPACE, u as XSI_NAMESPACE, y as assertNoFixedViolation, d as isRecordOf, v as standardizeRecord, h as toFullAttributeArray, f as toRawRecord, _ as toRef, p as toTrackedRecord, m as toTreeRecord };
@@ -0,0 +1,3 @@
1
+ import "./utils-ERge2irW.js";
2
+ import { ht as e } from "./project-iCKfhRzr.js";
3
+ export { e as bindExtensions };