@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.
- package/dist/assets/components/aurora/Aurora.style.css +1 -0
- package/dist/assets/components/form/Input.style.css +1 -1
- package/dist/components/aurora/Aurora.d.ts +5 -0
- package/dist/components/aurora/Aurora.js +23 -0
- package/dist/components/d-flow/DFlow.view.d.ts +6 -2
- package/dist/components/d-flow/DFlow.view.js +52 -17
- package/dist/components/d-flow/control/DFlowControl.js +38 -38
- package/dist/components/d-flow/data-type/DFlowDataType.service.js +1 -1
- package/dist/components/d-flow/export/DFlowExport.d.ts +6 -0
- package/dist/components/d-flow/export/DFlowExport.js +24 -0
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +1 -1
- package/dist/components/d-flow/type/DFlowType.view.d.ts +1 -1
- package/dist/components/d-member/DNamespaceMember.service.js +7 -7
- package/dist/components/d-namespace/DNamespace.service.js +2 -2
- package/dist/components/d-organization/DOrganization.service.js +5 -5
- package/dist/components/d-project/DNamespaceProject.service.js +5 -5
- package/dist/components/d-project/DNamespaceProjectContent.d.ts +1 -0
- package/dist/components/d-project/DNamespaceProjectContent.js +42 -35
- package/dist/components/d-project/DNamespaceProjectMenu.d.ts +7 -3
- package/dist/components/d-project/DNamespaceProjectMenu.js +23 -13
- package/dist/components/d-project/index.js +16 -9
- package/dist/components/d-role/DNamespaceRole.service.js +2 -2
- package/dist/components/d-role/DNamespaceRole.view.js +2 -1
- package/dist/components/d-role/DNamespaceRoleContent.js +30 -24
- package/dist/components/d-role/DNamespaceRolePermissions.js +31 -37
- package/dist/components/d-runtime/DRuntime.service.js +2 -2
- package/dist/components/d-user/DUser.service.d.ts +1 -1
- package/dist/components/d-user/DUser.service.js +9 -6
- package/dist/components/d-user/DUserInput.d.ts +2 -0
- package/dist/components/d-user/DUserInput.js +21 -20
- package/dist/components/form/CheckboxInput.js +61 -52
- package/dist/components/form/useForm.js +7 -6
- package/dist/index.d.ts +1 -0
- package/dist/index.js +256 -254
- package/dist/utils/generics.js +1 -1
- package/package.json +4 -4
|
@@ -1,67 +1,76 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
import { Checkbox as
|
|
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
|
|
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
|
|
11
|
-
const
|
|
12
|
-
const e =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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[
|
|
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[
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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[
|
|
46
|
-
let
|
|
47
|
-
e[
|
|
48
|
-
let
|
|
49
|
-
e[29] !==
|
|
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
|
-
|
|
52
|
-
] }), e[29] =
|
|
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[
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
] }), e[35] =
|
|
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
|
|
69
|
+
function w(l) {
|
|
70
|
+
}
|
|
71
|
+
function A(l) {
|
|
72
|
+
return !l;
|
|
64
73
|
}
|
|
65
74
|
export {
|
|
66
|
-
|
|
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
|
|
80
|
-
t[10] !== s || t[11] !== a || t[12] !== n ? (
|
|
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] =
|
|
85
|
-
const p =
|
|
86
|
-
let
|
|
87
|
-
return t[14] !== p || t[15] !== 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
|