@code0-tech/pictor 0.0.0-mvp.43 → 0.0.0-mvp.45

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 (74) hide show
  1. package/dist/assets/components/avatar/Avatar.style.css +1 -1
  2. package/dist/assets/components/menu/Menu.style.css +1 -1
  3. package/dist/components/avatar/Avatar.d.ts +1 -0
  4. package/dist/components/avatar/Avatar.js +44 -48
  5. package/dist/components/d-application/DApplication.service.js +1 -0
  6. package/dist/components/d-flow/DFlow.edges.hook.js +3 -2
  7. package/dist/components/d-flow/DFlow.nodes.hook.js +16 -15
  8. package/dist/components/d-flow/DFlow.service.js +3 -2
  9. package/dist/components/d-flow-data-type/DFlowDataType.service.js +8 -8
  10. package/dist/components/d-flow-file/DFlowTabDefault.js +1 -1
  11. package/dist/components/d-flow-file/DFlowTabTrigger.js +1 -1
  12. package/dist/components/d-flow-file/DFlowTabs.js +58 -106
  13. package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +1 -1
  14. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +52 -50
  15. package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +43 -38
  16. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +3 -2
  17. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +26 -22
  18. package/dist/components/d-flow-function/DFlowFunction.service.js +3 -2
  19. package/dist/components/d-flow-input/DFlowInputDataType.js +15 -14
  20. package/dist/components/d-flow-input/DFlowInputDataTypeEditDialog.js +3 -2
  21. package/dist/components/d-flow-input/DFlowInputDefault.js +1 -1
  22. package/dist/components/d-flow-input/DFlowInputNodeBadge.js +1 -1
  23. package/dist/components/d-flow-node/DFlowNode.return.hook.js +1 -1
  24. package/dist/components/d-flow-node/DFlowNodeDefaultCard.js +1 -1
  25. package/dist/components/d-flow-panel/DFlowExport.js +1 -1
  26. package/dist/components/d-flow-panel/DFlowPanelControl.js +1 -1
  27. package/dist/components/d-flow-panel/DFlowPanelUpdate.js +1 -1
  28. package/dist/components/d-flow-suggestion/DFlowDataTypeSuggestions.hook.js +1 -1
  29. package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +1 -1
  30. package/dist/components/d-flow-suggestion/DFlowReferenceSuggestions.hook.js +1 -1
  31. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +1 -1
  32. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +6 -5
  33. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +3 -2
  34. package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +1 -1
  35. package/dist/components/d-flow-type/DFlowType.service.d.ts +3 -3
  36. package/dist/components/d-flow-type/DFlowType.service.js +3 -2
  37. package/dist/components/d-flow-type/DFlowType.view.d.ts +4 -1
  38. package/dist/components/d-flow-type/DFlowType.view.js +16 -10
  39. package/dist/components/d-flow-validation/DFlowValidation.hook.js +1 -1
  40. package/dist/components/d-flow-validation/DFlowValidation.js +3 -2
  41. package/dist/components/d-flow-validation/DNodeValidation.hook.js +1 -1
  42. package/dist/components/d-license/DNamespaceLicense.service.js +3 -2
  43. package/dist/components/d-member/DNamespaceMember.service.js +1 -0
  44. package/dist/components/d-member/DNamespaceMemberContent.js +3 -2
  45. package/dist/components/d-member/DNamespaceMemberList.js +5 -4
  46. package/dist/components/d-namespace/DNamespace.service.js +3 -2
  47. package/dist/components/d-organization/DOrganization.service.js +3 -2
  48. package/dist/components/d-organization/DOrganizationList.js +7 -6
  49. package/dist/components/d-organization/DOrganizatonContent.js +3 -2
  50. package/dist/components/d-organization/index.js +9 -8
  51. package/dist/components/d-project/DNamespaceProject.service.js +3 -2
  52. package/dist/components/d-project/DNamespaceProject.view.d.ts +7 -1
  53. package/dist/components/d-project/DNamespaceProject.view.js +7 -1
  54. package/dist/components/d-project/DNamespaceProjectContent.js +3 -2
  55. package/dist/components/d-project/DNamespaceProjectList.js +3 -2
  56. package/dist/components/d-project/index.js +10 -9
  57. package/dist/components/d-role/DNamespaceRole.service.js +3 -2
  58. package/dist/components/d-role/DNamespaceRoleContent.js +3 -2
  59. package/dist/components/d-role/DNamespaceRoleList.js +6 -5
  60. package/dist/components/d-runtime/DRuntimeContent.js +3 -2
  61. package/dist/components/d-runtime/DRuntimeList.js +3 -2
  62. package/dist/components/d-user/DUser.service.js +3 -2
  63. package/dist/components/d-user/DUserContent.js +6 -5
  64. package/dist/components/d-user/DUserInput.js +3 -2
  65. package/dist/components/d-user/DUserList.js +5 -4
  66. package/dist/components/d-user/DUserMenu.js +5 -4
  67. package/dist/components/d-user/index.js +15 -14
  68. package/dist/components/form/index.d.ts +1 -0
  69. package/dist/components/form/index.js +25 -23
  70. package/dist/index.js +178 -181
  71. package/dist/utils/index.js +19 -24
  72. package/dist/utils/utils.d.ts +3 -18
  73. package/dist/utils/utils.js +101 -176
  74. package/package.json +16 -14
@@ -2,11 +2,12 @@ import "../../utils/contextStore.js";
2
2
  import "react";
3
3
  import { ReactiveArrayService as t } from "../../utils/reactiveArrayService.js";
4
4
  import "merge-props";
5
- class s extends t {
5
+ import "js-md5";
6
+ class v extends t {
6
7
  getById(i, r) {
7
8
  return this.values(r).find((e) => e && e.id === i);
8
9
  }
9
10
  }
10
11
  export {
11
- s as DNamespaceRoleReactiveService
12
+ v as DNamespaceRoleReactiveService
12
13
  };
@@ -3,6 +3,7 @@ import g from "react";
3
3
  import { Flex as o } from "../flex/Flex.js";
4
4
  import { useService as a, useStore as d } from "../../utils/contextStore.js";
5
5
  import "merge-props";
6
+ import "js-md5";
6
7
  import { DNamespaceRoleReactiveService as x } from "./DNamespaceRole.service.js";
7
8
  import { Text as n } from "../text/Text.js";
8
9
  import { Button as u } from "../button/Button.js";
@@ -33,7 +34,7 @@ import { Tooltip as R, TooltipTrigger as A, TooltipPortal as j, TooltipContent a
33
34
  import "@radix-ui/react-dialog";
34
35
  /* empty css */
35
36
  import { DNamespaceProjectReactiveService as P } from "../d-project/DNamespaceProject.service.js";
36
- const Ce = (w) => {
37
+ const Pe = (w) => {
37
38
  const {
38
39
  roleId: h,
39
40
  onSetting: I = () => {
@@ -158,5 +159,5 @@ const Ce = (w) => {
158
159
  ] });
159
160
  };
160
161
  export {
161
- Ce as DNamespaceRoleContent
162
+ Pe as DNamespaceRoleContent
162
163
  };
@@ -4,21 +4,22 @@ import u from "react";
4
4
  import { Card as S } from "../card/Card.js";
5
5
  import { useService as v, useStore as R } from "../../utils/contextStore.js";
6
6
  import "merge-props";
7
+ import "js-md5";
7
8
  import { DNamespaceRoleReactiveService as t } from "./DNamespaceRole.service.js";
8
9
  import M from "../card/CardSection.js";
9
- const I = (i) => {
10
+ const V = (i) => {
10
11
  const {
11
12
  namespaceId: o,
12
13
  filter: m = () => !0,
13
14
  onSetting: s,
14
15
  onProjectsViewMore: c,
15
16
  onMembersViewMore: n,
16
- ...a
17
- } = i, p = v(t), d = R(t), l = u.useMemo(() => p.values({
17
+ ...p
18
+ } = i, a = v(t), d = R(t), l = u.useMemo(() => a.values({
18
19
  namespaceId: o
19
20
  }), [d, o]);
20
- return /* @__PURE__ */ r(S, { ...a, children: l.filter(m).map((e) => e.id && /* @__PURE__ */ r(M, { border: !0, children: /* @__PURE__ */ r(f, { onSetting: s, onProjectsViewMore: c, onMembersViewMore: n, roleId: e?.id }) }, e.id)) });
21
+ return /* @__PURE__ */ r(S, { ...p, children: l.filter(m).map((e) => e.id && /* @__PURE__ */ r(M, { border: !0, children: /* @__PURE__ */ r(f, { onSetting: s, onProjectsViewMore: c, onMembersViewMore: n, roleId: e?.id }) }, e.id)) });
21
22
  };
22
23
  export {
23
- I as DNamespaceRoleList
24
+ V as DNamespaceRoleList
24
25
  };
@@ -6,9 +6,10 @@ import { IconEdit as y } from "@tabler/icons-react";
6
6
  import { Button as f } from "../button/Button.js";
7
7
  import { useService as g, useStore as C } from "../../utils/contextStore.js";
8
8
  import "merge-props";
9
+ import "js-md5";
9
10
  import { DRuntimeReactiveService as l } from "./DRuntime.service.js";
10
11
  import { Badge as s } from "../badge/Badge.js";
11
- const T = (m) => {
12
+ const I = (m) => {
12
13
  const {
13
14
  runtimeId: o,
14
15
  minimized: c = !1,
@@ -41,5 +42,5 @@ const T = (m) => {
41
42
  ] });
42
43
  };
43
44
  export {
44
- T as DRuntimeContent
45
+ I as DRuntimeContent
45
46
  };
@@ -3,10 +3,11 @@ import { Card as a } from "../card/Card.js";
3
3
  import S from "react";
4
4
  import { useService as l, useStore as v } from "../../utils/contextStore.js";
5
5
  import "merge-props";
6
+ import "js-md5";
6
7
  import { DRuntimeReactiveService as m } from "./DRuntime.service.js";
7
8
  import R from "../card/CardSection.js";
8
9
  import { DRuntimeContent as C } from "./DRuntimeContent.js";
9
- const k = (n) => {
10
+ const L = (n) => {
10
11
  const {
11
12
  namespaceId: t,
12
13
  minimized: i = !1,
@@ -24,5 +25,5 @@ const k = (n) => {
24
25
  }, children: /* @__PURE__ */ r(C, { minimized: i, onSetting: s, runtimeId: e?.id }) }, e.id)) });
25
26
  };
26
27
  export {
27
- k as DRuntimeList
28
+ L as DRuntimeList
28
29
  };
@@ -2,7 +2,8 @@ import "../../utils/contextStore.js";
2
2
  import "react";
3
3
  import { ReactiveArrayService as t } from "../../utils/reactiveArrayService.js";
4
4
  import "merge-props";
5
- class o extends t {
5
+ import "js-md5";
6
+ class p extends t {
6
7
  //TODO: inject UI error handler for toasts
7
8
  //no id's need to be injected here because the root query has a users field
8
9
  getById(r) {
@@ -13,5 +14,5 @@ class o extends t {
13
14
  }
14
15
  }
15
16
  export {
16
- o as DUserReactiveService
17
+ p as DUserReactiveService
17
18
  };
@@ -1,27 +1,28 @@
1
1
  import { jsxs as r, jsx as i } from "react/jsx-runtime";
2
2
  import o from "react";
3
3
  import { Flex as t } from "../flex/Flex.js";
4
- import { Avatar as p } from "../avatar/Avatar.js";
4
+ import { Avatar as u } from "../avatar/Avatar.js";
5
5
  import { useUserSession as h } from "./DUser.session.hook.js";
6
6
  import { useService as f, useStore as y } from "../../utils/contextStore.js";
7
7
  import "merge-props";
8
+ import "js-md5";
8
9
  import { DUserReactiveService as c } from "./DUser.service.js";
9
10
  import { Text as n } from "../text/Text.js";
10
11
  import { Badge as l } from "../badge/Badge.js";
11
12
  import { IconMailCheck as g } from "@tabler/icons-react";
12
13
  import "../button/Button.js";
13
- const E = (a) => {
14
+ const F = (a) => {
14
15
  const {
15
16
  userId: s,
16
17
  onRemove: v = () => {
17
18
  },
18
19
  ...S
19
- } = a, d = f(c), u = y(c), m = h(), [x, z] = o.useState(!1), e = o.useMemo(() => d.getById(s), [u, s]);
20
+ } = a, d = f(c), p = y(c), m = h(), [x, z] = o.useState(!1), e = o.useMemo(() => d.getById(s), [p, s]);
20
21
  return o.useMemo(() => m?.user?.id === e?.id, [m, e]), /* @__PURE__ */ r(t, { justify: "space-between", align: "center", children: [
21
22
  /* @__PURE__ */ r(t, { style: {
22
23
  gap: ".7rem"
23
24
  }, align: "center", children: [
24
- /* @__PURE__ */ i(p, { identifier: e?.username, bg: "transparent" }),
25
+ /* @__PURE__ */ i(u, { identifier: e?.username, bg: "transparent" }),
25
26
  /* @__PURE__ */ r(t, { style: {
26
27
  gap: ".35rem",
27
28
  flexDirection: "column"
@@ -47,5 +48,5 @@ const E = (a) => {
47
48
  ] });
48
49
  };
49
50
  export {
50
- E as DUserContent
51
+ F as DUserContent
51
52
  };
@@ -3,6 +3,7 @@ import x from "react";
3
3
  import "../../_virtual/compiler-runtime.js";
4
4
  import "@radix-ui/react-checkbox";
5
5
  import "merge-props";
6
+ import "js-md5";
6
7
  import { IconArrowUp as S, IconArrowDown as b, IconCornerDownLeft as D } from "@tabler/icons-react";
7
8
  import '../../assets/components/form/Input.style.css';/* empty css */
8
9
  import "../form/EmailInput.js";
@@ -21,7 +22,7 @@ import { DUserReactiveService as g } from "./DUser.service.js";
21
22
  import { MenuLabel as w, MenuItem as z } from "../menu/Menu.js";
22
23
  import { Flex as s } from "../flex/Flex.js";
23
24
  import { Spacing as B } from "../spacing/Spacing.js";
24
- const P = (p) => {
25
+ const ee = (p) => {
25
26
  const {
26
27
  filter: h = () => !0,
27
28
  ...d
@@ -96,5 +97,5 @@ const P = (p) => {
96
97
  }, ...d, suggestions: v });
97
98
  };
98
99
  export {
99
- P as DUserInput
100
+ ee as DUserInput
100
101
  };
@@ -2,21 +2,22 @@ import { jsx as e } from "react/jsx-runtime";
2
2
  import d from "react";
3
3
  import { useService as u, useStore as l } from "../../utils/contextStore.js";
4
4
  import "merge-props";
5
+ import "js-md5";
5
6
  import { DUserReactiveService as t } from "./DUser.service.js";
6
7
  import { Card as v } from "../card/Card.js";
7
8
  import S from "../card/CardSection.js";
8
9
  import { DUserContent as a } from "./DUserContent.js";
9
- const k = (i) => {
10
+ const I = (i) => {
10
11
  const {
11
12
  filter: m = () => !0,
12
13
  onRemove: s,
13
14
  onSelect: o,
14
15
  ...c
15
- } = i, n = u(t), f = l(t), p = d.useMemo(() => n.values(), [f]);
16
- return /* @__PURE__ */ e(v, { ...c, children: p.filter(m).map((r) => r && r.id && /* @__PURE__ */ e(S, { border: !0, hover: !0, onClick: () => {
16
+ } = i, n = u(t), p = l(t), f = d.useMemo(() => n.values(), [p]);
17
+ return /* @__PURE__ */ e(v, { ...c, children: f.filter(m).map((r) => r && r.id && /* @__PURE__ */ e(S, { border: !0, hover: !0, onClick: () => {
17
18
  o && o(r);
18
19
  }, children: /* @__PURE__ */ e(a, { onRemove: s, userId: r?.id }) }, r.id)) });
19
20
  };
20
21
  export {
21
- k as DUserList
22
+ I as DUserList
22
23
  };
@@ -4,16 +4,17 @@ import { Menu as l, MenuTrigger as u, MenuPortal as d, MenuContent as h } from "
4
4
  import { DUserReactiveService as s } from "./DUser.service.js";
5
5
  import { useService as f, useStore as p } from "../../utils/contextStore.js";
6
6
  import "merge-props";
7
- import { Avatar as x } from "../avatar/Avatar.js";
7
+ import "js-md5";
8
+ import { Avatar as y } from "../avatar/Avatar.js";
8
9
  import { Text as c } from "../text/Text.js";
9
10
  import { Flex as m } from "../flex/Flex.js";
10
- const C = (t) => {
11
+ const I = (t) => {
11
12
  const n = f(s), a = p(s), r = o.useMemo(() => n.getById(t.userId), [a, n]);
12
13
  return o.useMemo(() => /* @__PURE__ */ i(l, { ...t, children: [
13
14
  /* @__PURE__ */ e(u, { asChild: !0, children: /* @__PURE__ */ i(m, { align: "center", style: {
14
15
  gap: ".5rem"
15
16
  }, children: [
16
- /* @__PURE__ */ e(x, { src: r?.avatarPath ?? "", identifier: r?.username ?? "" }),
17
+ /* @__PURE__ */ e(y, { src: r?.avatarPath ?? "", type: "character", identifier: r?.username ?? "" }),
17
18
  /* @__PURE__ */ i(m, { style: {
18
19
  flexDirection: "column"
19
20
  }, children: [
@@ -25,5 +26,5 @@ const C = (t) => {
25
26
  ] }), [r]);
26
27
  };
27
28
  export {
28
- C as default
29
+ I as default
29
30
  };
@@ -1,26 +1,27 @@
1
- import { DUserReactiveService as S } from "./DUser.service.js";
2
- import { DUserView as c } from "./DUser.view.js";
1
+ import { DUserReactiveService as a } from "./DUser.service.js";
2
+ import { DUserView as u } from "./DUser.view.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
5
  import "../../_virtual/compiler-runtime.js";
6
6
  import '../../assets/components/flex/Flex.style.css';import '../../assets/components/text/Text.style.css';import '../../assets/components/avatar/Avatar.style.css';import '../../assets/components/menu/Menu.style.css';/* empty css */
7
7
  import "merge-props";
8
+ import "js-md5";
8
9
  import "@radix-ui/react-dropdown-menu";
9
10
  import "../../utils/contextStore.js";
10
- import "js-md5";
11
11
  /* empty css */
12
+ import "avvvatars-react";
12
13
  /* empty css */
13
14
  /* empty css */
14
- import { DUserCard as v } from "./DUserCard.js";
15
- import { DUserList as w } from "./DUserList.js";
16
- import { DUserInput as I } from "./DUserInput.js";
17
- import { setUserSession as R, useUserSession as V } from "./DUser.session.hook.js";
15
+ import { DUserCard as d } from "./DUserCard.js";
16
+ import { DUserList as C } from "./DUserList.js";
17
+ import { DUserInput as L } from "./DUserInput.js";
18
+ import { setUserSession as V, useUserSession as b } from "./DUser.session.hook.js";
18
19
  export {
19
- v as DUserCard,
20
- I as DUserInput,
21
- w as DUserList,
22
- S as DUserReactiveService,
23
- c as DUserView,
24
- R as setUserSession,
25
- V as useUserSession
20
+ d as DUserCard,
21
+ L as DUserInput,
22
+ C as DUserList,
23
+ a as DUserReactiveService,
24
+ u as DUserView,
25
+ V as setUserSession,
26
+ b as useUserSession
26
27
  };
@@ -13,3 +13,4 @@ export * from './RadioInput';
13
13
  export * from './SwitchInput';
14
14
  export * from './TextInput';
15
15
  export * from './useForm';
16
+ export * from './Input.syntax.hook';
@@ -1,36 +1,38 @@
1
1
  import { CheckboxInput as r } from "./CheckboxInput.js";
2
2
  import { EmailInput as p, emailValidation as n } from "./EmailInput.js";
3
3
  import { Input as m } from "./Input.js";
4
- import { InputDescription as x } from "./InputDescription.js";
5
- import { InputLabel as f } from "./InputLabel.js";
6
- import { InputMessage as s } from "./InputMessage.js";
4
+ import { InputDescription as i } from "./InputDescription.js";
5
+ import { InputLabel as I } from "./InputLabel.js";
6
+ import { InputMessage as d } from "./InputMessage.js";
7
7
  import { InputSuggestionMenuContent as l, InputSuggestionMenuContentItems as g } from "./InputSuggestion.js";
8
- import { NumberInput as b } from "./NumberInput.js";
9
- import { PasswordInput as C } from "./PasswordInput.js";
10
- import { PinInput as M, PinInputField as S, PinInputHiddenField as h } from "./PinInput.js";
11
- import { RadioGroup as R } from "./RadioGroup.js";
12
- import { RadioInput as D } from "./RadioInput.js";
13
- import { SwitchInput as G } from "./SwitchInput.js";
14
- import { TextInput as L } from "./TextInput.js";
15
- import { useForm as T } from "./useForm.js";
8
+ import { NumberInput as P } from "./NumberInput.js";
9
+ import { PasswordInput as c } from "./PasswordInput.js";
10
+ import { PinInput as F, PinInputField as M, PinInputHiddenField as h } from "./PinInput.js";
11
+ import { RadioGroup as D } from "./RadioGroup.js";
12
+ import { RadioInput as k } from "./RadioInput.js";
13
+ import { SwitchInput as E } from "./SwitchInput.js";
14
+ import { TextInput as H } from "./TextInput.js";
15
+ import { useForm as N } from "./useForm.js";
16
+ import { buildDefaultSyntax as V } from "./Input.syntax.hook.js";
16
17
  export {
17
18
  r as CheckboxInput,
18
19
  p as EmailInput,
19
20
  m as Input,
20
- x as InputDescription,
21
- f as InputLabel,
22
- s as InputMessage,
21
+ i as InputDescription,
22
+ I as InputLabel,
23
+ d as InputMessage,
23
24
  l as InputSuggestionMenuContent,
24
25
  g as InputSuggestionMenuContentItems,
25
- b as NumberInput,
26
- C as PasswordInput,
27
- M as PinInput,
28
- S as PinInputField,
26
+ P as NumberInput,
27
+ c as PasswordInput,
28
+ F as PinInput,
29
+ M as PinInputField,
29
30
  h as PinInputHiddenField,
30
- R as RadioGroup,
31
- D as RadioInput,
32
- G as SwitchInput,
33
- L as TextInput,
31
+ D as RadioGroup,
32
+ k as RadioInput,
33
+ E as SwitchInput,
34
+ H as TextInput,
35
+ V as buildDefaultSyntax,
34
36
  n as emailValidation,
35
- T as useForm
37
+ N as useForm
36
38
  };