@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.
- package/dist/assets/components/form/Input.style.css +1 -1
- package/dist/components/d-member/DNamespaceMember.service.js +7 -7
- package/dist/components/d-member/DNamespaceMemberContent.js +140 -92
- package/dist/components/d-namespace/DNamespace.service.js +2 -2
- package/dist/components/d-organization/DOrganization.service.js +5 -5
- package/dist/components/d-organization/DOrganizatonContent.js +23 -23
- 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 +53 -14
- package/dist/components/d-project/index.js +17 -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 +28 -22
- package/dist/components/d-role/DNamespaceRolePermissions.js +31 -37
- package/dist/components/d-runtime/DRuntime.service.js +2 -2
- package/dist/components/d-runtime/DRuntimeContent.js +10 -10
- 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/DUserContent.js +9 -9
- package/dist/components/form/CheckboxInput.js +61 -52
- package/dist/components/form/useForm.js +7 -6
- package/dist/index.js +20 -20
- 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[
|
|
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
|
-
|
|
52
|
-
] }), e[17] = s, e[18] =
|
|
51
|
+
n
|
|
52
|
+
] }), e[17] = s, e[18] = n, e[19] = m) : m = e[19];
|
|
53
53
|
let o;
|
|
54
|
-
e[20] !==
|
|
54
|
+
e[20] !== m || e[21] !== t ? (o = /* @__PURE__ */ p(u, { style: y, align: "center", children: [
|
|
55
55
|
t,
|
|
56
|
-
|
|
57
|
-
] }), e[20] =
|
|
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, {
|
|
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
|
|
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
|
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 {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
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
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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.
|
|
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.
|
|
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",
|