@code0-tech/pictor 0.0.0-mvp.23 → 0.0.0-mvp.25

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 (36) hide show
  1. package/dist/assets/components/aurora/Aurora.style.css +1 -0
  2. package/dist/assets/components/form/Input.style.css +1 -1
  3. package/dist/components/aurora/Aurora.d.ts +5 -0
  4. package/dist/components/aurora/Aurora.js +23 -0
  5. package/dist/components/d-flow/DFlow.view.d.ts +6 -2
  6. package/dist/components/d-flow/DFlow.view.js +52 -17
  7. package/dist/components/d-flow/control/DFlowControl.js +38 -38
  8. package/dist/components/d-flow/data-type/DFlowDataType.service.js +1 -1
  9. package/dist/components/d-flow/export/DFlowExport.d.ts +6 -0
  10. package/dist/components/d-flow/export/DFlowExport.js +24 -0
  11. package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +1 -1
  12. package/dist/components/d-flow/type/DFlowType.view.d.ts +1 -1
  13. package/dist/components/d-member/DNamespaceMember.service.js +7 -7
  14. package/dist/components/d-namespace/DNamespace.service.js +2 -2
  15. package/dist/components/d-organization/DOrganization.service.js +5 -5
  16. package/dist/components/d-project/DNamespaceProject.service.js +5 -5
  17. package/dist/components/d-project/DNamespaceProjectContent.d.ts +1 -0
  18. package/dist/components/d-project/DNamespaceProjectContent.js +42 -35
  19. package/dist/components/d-project/DNamespaceProjectMenu.d.ts +7 -3
  20. package/dist/components/d-project/DNamespaceProjectMenu.js +23 -13
  21. package/dist/components/d-project/index.js +16 -9
  22. package/dist/components/d-role/DNamespaceRole.service.js +2 -2
  23. package/dist/components/d-role/DNamespaceRole.view.js +2 -1
  24. package/dist/components/d-role/DNamespaceRoleContent.js +30 -24
  25. package/dist/components/d-role/DNamespaceRolePermissions.js +31 -37
  26. package/dist/components/d-runtime/DRuntime.service.js +2 -2
  27. package/dist/components/d-user/DUser.service.d.ts +1 -1
  28. package/dist/components/d-user/DUser.service.js +9 -6
  29. package/dist/components/d-user/DUserInput.d.ts +2 -0
  30. package/dist/components/d-user/DUserInput.js +21 -20
  31. package/dist/components/form/CheckboxInput.js +61 -52
  32. package/dist/components/form/useForm.js +7 -6
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.js +256 -254
  35. package/dist/utils/generics.js +1 -1
  36. package/package.json +4 -4
@@ -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.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './components/alert/Alert';
2
+ export * from './components/aurora/Aurora';
2
3
  export * from './components/avatar/Avatar';
3
4
  export * from './components/badge/Badge';
4
5
  export * from './components/breadcrumb/Breadcrumb';