@code0-tech/pictor 0.0.0-mvp.24 → 0.0.0-mvp.26

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 (25) hide show
  1. package/dist/assets/components/form/Input.style.css +1 -1
  2. package/dist/components/d-member/DNamespaceMember.service.js +7 -7
  3. package/dist/components/d-member/DNamespaceMemberContent.js +140 -92
  4. package/dist/components/d-namespace/DNamespace.service.js +2 -2
  5. package/dist/components/d-organization/DOrganization.service.js +5 -5
  6. package/dist/components/d-organization/DOrganizatonContent.js +23 -23
  7. package/dist/components/d-project/DNamespaceProject.service.js +5 -5
  8. package/dist/components/d-project/DNamespaceProjectContent.d.ts +1 -0
  9. package/dist/components/d-project/DNamespaceProjectContent.js +42 -35
  10. package/dist/components/d-project/DNamespaceProjectMenu.d.ts +7 -3
  11. package/dist/components/d-project/DNamespaceProjectMenu.js +53 -14
  12. package/dist/components/d-project/index.js +17 -9
  13. package/dist/components/d-role/DNamespaceRole.service.js +2 -2
  14. package/dist/components/d-role/DNamespaceRole.view.js +2 -1
  15. package/dist/components/d-role/DNamespaceRoleContent.js +28 -22
  16. package/dist/components/d-role/DNamespaceRolePermissions.js +31 -37
  17. package/dist/components/d-runtime/DRuntime.service.js +2 -2
  18. package/dist/components/d-runtime/DRuntimeContent.js +10 -10
  19. package/dist/components/d-user/DUser.service.d.ts +1 -1
  20. package/dist/components/d-user/DUser.service.js +9 -6
  21. package/dist/components/d-user/DUserContent.js +9 -9
  22. package/dist/components/form/CheckboxInput.js +61 -52
  23. package/dist/components/form/useForm.js +7 -6
  24. package/dist/index.js +20 -20
  25. package/package.json +2 -2
@@ -43,24 +43,24 @@ const Z = (D) => {
43
43
  i,
44
44
  l
45
45
  ] }), e[12] = i, e[13] = l, e[14] = s) : s = e[14];
46
- let m;
47
- e[15] !== r.email ? (m = /* @__PURE__ */ d(R, { size: "sm", hierarchy: "tertiary", children: r.email }), e[15] = r.email, e[16] = m) : m = e[16];
48
46
  let n;
49
- e[17] !== s || e[18] !== m ? (n = /* @__PURE__ */ p(u, { style: g, children: [
47
+ e[15] !== r.email ? (n = /* @__PURE__ */ d(R, { size: "sm", hierarchy: "tertiary", children: r.email }), e[15] = r.email, e[16] = n) : n = e[16];
48
+ let m;
49
+ e[17] !== s || e[18] !== n ? (m = /* @__PURE__ */ p(u, { style: g, children: [
50
50
  s,
51
- m
52
- ] }), e[17] = s, e[18] = m, e[19] = n) : n = e[19];
51
+ n
52
+ ] }), e[17] = s, e[18] = n, e[19] = m) : m = e[19];
53
53
  let o;
54
- e[20] !== n || e[21] !== t ? (o = /* @__PURE__ */ p(u, { style: y, align: "center", children: [
54
+ e[20] !== m || e[21] !== t ? (o = /* @__PURE__ */ p(u, { style: y, align: "center", children: [
55
55
  t,
56
- n
57
- ] }), e[20] = n, e[21] = t, e[22] = o) : o = e[22];
56
+ m
57
+ ] }), e[20] = m, e[21] = t, e[22] = o) : o = e[22];
58
58
  let S;
59
59
  e[23] === Symbol.for("react.memo_cache_sentinel") ? (S = {
60
60
  gap: "1.3rem"
61
61
  }, e[23] = S) : S = e[23];
62
62
  let c;
63
- e[24] !== r.emailVerifiedAt ? (c = r?.emailVerifiedAt ? /* @__PURE__ */ p(C, { color: "primary", children: [
63
+ e[24] !== r.emailVerifiedAt ? (c = r?.emailVerifiedAt ? /* @__PURE__ */ p(C, { border: !0, children: [
64
64
  /* @__PURE__ */ d(M, { size: 16 }),
65
65
  /* @__PURE__ */ d(R, { size: "xs", hierarchy: "tertiary", children: "Email verified" })
66
66
  ] }) : null, e[24] = r.emailVerifiedAt, e[25] = c) : c = e[25];
@@ -1,67 +1,76 @@
1
- import { jsx as r, jsxs as v, Fragment as N } from "react/jsx-runtime";
2
- import { c as R } from "../../_virtual/compiler-runtime.js";
3
- import $ from "react";
4
- import { Checkbox as D, CheckboxIndicator as E } from "@radix-ui/react-checkbox";
1
+ import { jsx as n, jsxs as j, Fragment as S } from "react/jsx-runtime";
2
+ import { c as $ } from "../../_virtual/compiler-runtime.js";
3
+ import z from "react";
4
+ import { Checkbox as y, CheckboxIndicator as D } from "@radix-ui/react-checkbox";
5
5
  import { InputLabel as F } from "./InputLabel.js";
6
6
  import { InputDescription as L } from "./InputDescription.js";
7
- import { mergeCode0Props as j } from "../../utils/utils.js";
7
+ import { mergeCode0Props as E } from "../../utils/utils.js";
8
8
  import { InputMessage as P } from "./InputMessage.js";
9
9
  import '../../assets/components/form/Input.style.css';/* empty css */
10
- import { IconMinus as S, IconCheck as T } from "@tabler/icons-react";
11
- const U = (l) => {
12
- const e = R.c(40), [i, z] = $.useState(l.initialValue ?? "indeterminate");
13
- let a, t, s, d, n, o, c;
14
- if (e[0] !== i || e[1] !== l) {
15
- const {
16
- title: g,
17
- description: x,
18
- formValidation: M,
19
- ...V
20
- } = l;
21
- t = M === void 0 ? {
22
- valid: !0,
23
- notValidMessage: null,
24
- setValue: q
25
- } : M, e[9] !== g ? (o = g ? /* @__PURE__ */ r(F, { children: g }) : null, e[9] = g, e[10] = o) : o = e[10], e[11] !== x ? (c = x ? /* @__PURE__ */ r(L, { children: x }) : null, e[11] = x, e[12] = c) : c = e[12];
26
- const I = `input ${t?.valid ? "" : "input--not-valid"} checkbox-input`;
27
- e[13] !== I ? (n = j(I, {}), e[13] = I, e[14] = n) : n = e[14], a = D, s = i, d = j("checkbox-input__button", {
28
- ...V,
29
- onCheckedChange: (_) => {
30
- V.onCheckedChange && V.onCheckedChange(_), z(_), t.setValue(_);
31
- }
32
- }), e[0] = i, e[1] = l, e[2] = a, e[3] = t, e[4] = s, e[5] = d, e[6] = n, e[7] = o, e[8] = c;
33
- } else
34
- a = e[2], t = e[3], s = e[4], d = e[5], n = e[6], o = e[7], c = e[8];
10
+ import { IconMinus as T, IconCheck as q } from "@tabler/icons-react";
11
+ const Y = (l) => {
12
+ const e = $.c(40), {
13
+ title: b,
14
+ description: _,
15
+ formValidation: k,
16
+ ...N
17
+ } = l;
18
+ let x;
19
+ e[0] !== k ? (x = k === void 0 ? {
20
+ valid: !0,
21
+ notValidMessage: null,
22
+ setValue: w
23
+ } : k, e[0] = k, e[1] = x) : x = e[1];
24
+ const i = x, [t, R] = z.useState(l.initialValue ?? "indeterminate");
25
+ let g;
26
+ e[2] !== t || e[3] !== i ? (g = () => {
27
+ i.setValue(t);
28
+ }, e[2] = t, e[3] = i, e[4] = g) : g = e[4];
29
+ let v;
30
+ e[5] !== t ? (v = [t], e[5] = t, e[6] = v) : v = e[6], z.useEffect(g, v);
31
+ let o;
32
+ e[7] !== b ? (o = b ? /* @__PURE__ */ n(F, { children: b }) : null, e[7] = b, e[8] = o) : o = e[8];
33
+ let c;
34
+ e[9] !== _ ? (c = _ ? /* @__PURE__ */ n(L, { children: _ }) : null, e[9] = _, e[10] = c) : c = e[10];
35
+ const V = `input ${i?.valid ? "" : "input--not-valid"} checkbox-input`;
36
+ let s;
37
+ e[11] !== V ? (s = E(V, {}), e[11] = V, e[12] = s) : s = e[12];
38
+ let r;
39
+ e[13] === Symbol.for("react.memo_cache_sentinel") ? (r = () => R(A), e[13] = r) : r = e[13];
40
+ const I = y, M = E("checkbox-input__button", N);
41
+ let a;
42
+ e[14] !== t ? (a = t === "indeterminate" && /* @__PURE__ */ n(T, { size: 16 }), e[14] = t, e[15] = a) : a = e[15];
35
43
  let m;
36
- e[15] !== i ? (m = i === "indeterminate" && /* @__PURE__ */ r(S, { size: 10 }), e[15] = i, e[16] = m) : m = e[16];
44
+ e[16] !== t ? (m = t === !0 && /* @__PURE__ */ n(q, { size: 16 }), e[16] = t, e[17] = m) : m = e[17];
37
45
  let f;
38
- e[17] !== i ? (f = i === !0 && /* @__PURE__ */ r(T, { size: 10 }), e[17] = i, e[18] = f) : f = e[18];
39
- let h;
40
- e[19] !== m || e[20] !== f ? (h = /* @__PURE__ */ v(E, { className: "checkbox-input__indicator", children: [
41
- m,
42
- f
43
- ] }), e[19] = m, e[20] = f, e[21] = h) : h = e[21];
46
+ e[18] !== a || e[19] !== m ? (f = /* @__PURE__ */ j(D, { className: "checkbox-input__indicator", children: [
47
+ a,
48
+ m
49
+ ] }), e[18] = a, e[19] = m, e[20] = f) : f = e[20];
44
50
  let u;
45
- e[22] !== a || e[23] !== s || e[24] !== d || e[25] !== h ? (u = /* @__PURE__ */ r(a, { defaultChecked: s, ...d, children: h }), e[22] = a, e[23] = s, e[24] = d, e[25] = h, e[26] = u) : u = e[26];
46
- let p;
47
- e[27] !== l.label ? (p = /* @__PURE__ */ r("div", { className: "input__right input__right--action}", children: l.label }), e[27] = l.label, e[28] = p) : p = e[28];
48
- let k;
49
- e[29] !== n || e[30] !== u || e[31] !== p ? (k = /* @__PURE__ */ v("div", { ...n, children: [
51
+ e[21] !== I || e[22] !== t || e[23] !== f || e[24] !== M ? (u = /* @__PURE__ */ n(I, { checked: t, defaultChecked: t, ...M, children: f }), e[21] = I, e[22] = t, e[23] = f, e[24] = M, e[25] = u) : u = e[25];
52
+ let d;
53
+ e[26] !== l.label ? (d = /* @__PURE__ */ n("div", { className: "input__right input__right--action}", children: l.label }), e[26] = l.label, e[27] = d) : d = e[27];
54
+ let h;
55
+ e[28] !== u || e[29] !== d || e[30] !== s || e[31] !== r ? (h = /* @__PURE__ */ j("div", { ...s, onClick: r, children: [
50
56
  u,
51
- p
52
- ] }), e[29] = n, e[30] = u, e[31] = p, e[32] = k) : k = e[32];
57
+ d
58
+ ] }), e[28] = u, e[29] = d, e[30] = s, e[31] = r, e[32] = h) : h = e[32];
59
+ let p;
60
+ e[33] !== i ? (p = !i?.valid && i?.notValidMessage ? /* @__PURE__ */ n(P, { children: i.notValidMessage }) : null, e[33] = i, e[34] = p) : p = e[34];
53
61
  let C;
54
- e[33] !== t ? (C = !t?.valid && t?.notValidMessage ? /* @__PURE__ */ r(P, { children: t.notValidMessage }) : null, e[33] = t, e[34] = C) : C = e[34];
55
- let b;
56
- return e[35] !== k || e[36] !== C || e[37] !== o || e[38] !== c ? (b = /* @__PURE__ */ v(N, { children: [
62
+ return e[35] !== h || e[36] !== p || e[37] !== o || e[38] !== c ? (C = /* @__PURE__ */ j(S, { children: [
57
63
  o,
58
64
  c,
59
- k,
60
- C
61
- ] }), e[35] = k, e[36] = C, e[37] = o, e[38] = c, e[39] = b) : b = e[39], b;
65
+ h,
66
+ p
67
+ ] }), e[35] = h, e[36] = p, e[37] = o, e[38] = c, e[39] = C) : C = e[39], C;
62
68
  };
63
- function q(l) {
69
+ function w(l) {
70
+ }
71
+ function A(l) {
72
+ return !l;
64
73
  }
65
74
  export {
66
- U as CheckboxInput
75
+ Y as CheckboxInput
67
76
  };
@@ -35,6 +35,7 @@ class _ {
35
35
  return {
36
36
  // @ts-ignore – z.B. wenn dein Input `defaultValue` kennt
37
37
  defaultValue: r,
38
+ initialValue: r,
38
39
  formValidation: {
39
40
  setValue: (n) => {
40
41
  this.changeValue(s, n);
@@ -76,15 +77,15 @@ const I = (i) => {
76
77
  let d;
77
78
  t[6] !== m || t[7] !== a || t[8] !== n ? (d = new _(P, n, a, m), t[6] = m, t[7] = a, t[8] = n, t[9] = d) : d = t[9];
78
79
  const v = d;
79
- let f;
80
- t[10] !== s || t[11] !== a || t[12] !== n ? (f = () => {
80
+ let V;
81
+ t[10] !== s || t[11] !== a || t[12] !== n ? (V = () => {
81
82
  y(!0);
82
83
  const g = new _(P, n, a, !1);
83
84
  s && g.isValid() && s(n);
84
- }, t[10] = s, t[11] = a, t[12] = n, t[13] = f) : f = t[13];
85
- const p = f;
86
- let V;
87
- return t[14] !== p || t[15] !== v ? (V = [v, p], t[14] = p, t[15] = v, t[16] = V) : V = t[16], V;
85
+ }, t[10] = s, t[11] = a, t[12] = n, t[13] = V) : V = t[13];
86
+ const p = V;
87
+ let f;
88
+ return t[14] !== p || t[15] !== v ? (f = [v, p], t[14] = p, t[15] = v, t[16] = f) : f = t[16], f;
88
89
  };
89
90
  export {
90
91
  I as useForm
package/dist/index.js CHANGED
@@ -65,15 +65,15 @@ import { DNamespaceProjectReactiveService as tr } from "./components/d-project/D
65
65
  import { DNamespaceProjectView as ir } from "./components/d-project/DNamespaceProject.view.js";
66
66
  import { DNamespaceProjectCard as ar } from "./components/d-project/DNamespaceProjectCard.js";
67
67
  import { DNamespaceProjectList as xr } from "./components/d-project/DNamespaceProjectList.js";
68
- import { DResizableHandle as lr, DResizablePanel as cr, DResizablePanelGroup as sr } from "./components/d-resizable/DResizable.js";
69
- import { DNamespaceRoleReactiveService as Dr } from "./components/d-role/DNamespaceRole.service.js";
70
- import { DNamespaceRoleView as Sr } from "./components/d-role/DNamespaceRole.view.js";
71
- import { DNamespaceRoleList as wr } from "./components/d-role/DNamespaceRoleList.js";
72
- import { DNamespaceRoleCard as Cr } from "./components/d-role/DNamespaceRoleCard.js";
73
- import { DRuntimeReactiveService as Rr } from "./components/d-runtime/DRuntime.service.js";
74
- import { DRuntimeView as Tr } from "./components/d-runtime/DRuntime.view.js";
75
- import { DRuntimeCard as Nr } from "./components/d-runtime/DRuntimeCard.js";
76
- import { DRuntimeList as Pr } from "./components/d-runtime/DRuntimeList.js";
68
+ import { DRuntimeReactiveService as lr } from "./components/d-runtime/DRuntime.service.js";
69
+ import { DRuntimeView as sr } from "./components/d-runtime/DRuntime.view.js";
70
+ import { DRuntimeCard as Dr } from "./components/d-runtime/DRuntimeCard.js";
71
+ import { DRuntimeList as Sr } from "./components/d-runtime/DRuntimeList.js";
72
+ import { DResizableHandle as wr, DResizablePanel as vr, DResizablePanelGroup as Cr } from "./components/d-resizable/DResizable.js";
73
+ import { DNamespaceRoleReactiveService as Rr } from "./components/d-role/DNamespaceRole.service.js";
74
+ import { DNamespaceRoleView as Tr } from "./components/d-role/DNamespaceRole.view.js";
75
+ import { DNamespaceRoleList as Nr } from "./components/d-role/DNamespaceRoleList.js";
76
+ import { DNamespaceRoleCard as Pr } from "./components/d-role/DNamespaceRoleCard.js";
77
77
  import { Dialog as Ar, DialogClose as Lr, DialogContent as yr, DialogDescription as Or, DialogFooter as Ur, DialogHeader as Gr, DialogOverlay as jr, DialogPortal as zr, DialogTitle as Br, DialogTrigger as hr } from "./components/dialog/Dialog.js";
78
78
  import { CheckboxInput as Hr } from "./components/form/CheckboxInput.js";
79
79
  import { EmailInput as kr, emailValidation as _r } from "./components/form/EmailInput.js";
@@ -148,21 +148,21 @@ export {
148
148
  tr as DNamespaceProjectReactiveService,
149
149
  ir as DNamespaceProjectView,
150
150
  He as DNamespaceReactiveService,
151
- Cr as DNamespaceRoleCard,
152
- wr as DNamespaceRoleList,
153
- Dr as DNamespaceRoleReactiveService,
154
- Sr as DNamespaceRoleView,
151
+ Pr as DNamespaceRoleCard,
152
+ Nr as DNamespaceRoleList,
153
+ Rr as DNamespaceRoleReactiveService,
154
+ Tr as DNamespaceRoleView,
155
155
  ke as DNamespaceView,
156
156
  or as DOrganizationList,
157
157
  Qe as DOrganizationReactiveService,
158
158
  Je as DOrganizationView,
159
- lr as DResizableHandle,
160
- cr as DResizablePanel,
161
- sr as DResizablePanelGroup,
162
- Nr as DRuntimeCard,
163
- Pr as DRuntimeList,
164
- Rr as DRuntimeReactiveService,
165
- Tr as DRuntimeView,
159
+ wr as DResizableHandle,
160
+ vr as DResizablePanel,
161
+ Cr as DResizablePanelGroup,
162
+ Dr as DRuntimeCard,
163
+ Sr as DRuntimeList,
164
+ lr as DRuntimeReactiveService,
165
+ sr as DRuntimeView,
166
166
  Qo as DUserCard,
167
167
  Xo as DUserInput,
168
168
  Jo as DUserList,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code0-tech/pictor",
3
- "version": "0.0.0-mvp.24",
3
+ "version": "0.0.0-mvp.26",
4
4
  "type": "module",
5
5
  "description": "A simple template for a custom React component library",
6
6
  "scripts": {
@@ -51,7 +51,7 @@
51
51
  "@vitejs/plugin-react": "^5.1.1",
52
52
  "@vitest/browser-playwright": "^4.0.14",
53
53
  "@vitest/coverage-v8": "^4.0.14",
54
- "@xyflow/react": "^12.9.3",
54
+ "@xyflow/react": "^12.10.0",
55
55
  "axe-playwright": "^2.2.2",
56
56
  "babel-loader": "^10.0.0",
57
57
  "babel-plugin-react-compiler": "^19.1.0-rc.3",