@code0-tech/pictor 0.0.0-mvp.30 → 0.0.0-mvp.32
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/components/avatar/Avatar.js +7 -7
- package/dist/components/breadcrumb/Breadcrumb.js +4 -4
- package/dist/components/button/Button.js +8 -8
- package/dist/components/context-menu/ContextMenu.js +131 -131
- package/dist/components/d-flow/DFlow.edges.hook.js +22 -22
- package/dist/components/d-flow/DFlow.js +32 -32
- package/dist/components/d-flow/DFlow.nodes.hook.js +8 -8
- package/dist/components/d-flow-file/DFlowTabDefault.js +16 -16
- package/dist/components/d-flow-folder/DFlowFolder.js +13 -13
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +5 -5
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +13 -13
- package/dist/components/d-flow-folder/DFlowFolderDeleteDialog.js +5 -5
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +11 -11
- package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +7 -7
- package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +9 -9
- package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +12 -12
- package/dist/components/d-flow-input/DFlowInputDataType.js +16 -16
- package/dist/components/d-flow-input/DFlowInputNodeBadge.js +8 -8
- package/dist/components/d-flow-input/DFlowInputReferenceBadge.js +4 -4
- package/dist/components/d-flow-panel/DFlowExport.js +5 -5
- package/dist/components/d-flow-panel/DFlowPanelControl.js +4 -4
- package/dist/components/d-flow-suggestion/DFlowFunctionSuggestions.hook.js +4 -4
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +7 -7
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +12 -12
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +5 -5
- package/dist/components/d-flow-suggestion/DFlowValueSuggestions.hook.js +4 -4
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +3 -3
- package/dist/components/d-fullscreen/DFullScreen.js +2 -2
- package/dist/components/d-member/DNamespaceMemberList.js +5 -5
- package/dist/components/d-organization/DOrganizationList.js +7 -7
- package/dist/components/d-organization/DOrganizationMenu.js +5 -5
- package/dist/components/d-organization/DOrganizatonContent.js +22 -22
- package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
- package/dist/components/d-project/DNamespaceProjectList.js +5 -5
- package/dist/components/d-project/DNamespaceProjectMenu.js +2 -2
- package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
- package/dist/components/d-runtime/DRuntimeList.js +7 -7
- package/dist/components/d-user/DUser.session.hook.js +2 -2
- package/dist/components/d-user/DUserContent.js +13 -13
- package/dist/components/d-user/DUserList.js +9 -9
- package/dist/components/form/CheckboxInput.js +4 -4
- package/dist/components/form/EmailInput.js +9 -9
- package/dist/components/form/Input.js +311 -230
- package/dist/components/form/Input.utils.js +1 -1
- package/dist/components/form/InputContentEditable.hook.d.ts +14 -2
- package/dist/components/form/InputContentEditable.hook.js +296 -317
- package/dist/components/form/NumberInput.js +9 -9
- package/dist/components/form/PasswordInput.js +2 -2
- package/dist/components/form/SwitchInput.js +7 -7
- package/dist/components/form/TextInput.js +6 -6
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
- package/dist/utils/objectStore.js +15 -15
- package/dist/utils/reactiveArrayService.js +10 -10
- package/package.json +19 -19
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/index.js +0 -4
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/react-contenteditable.js +0 -7
- package/dist/_virtual/react-contenteditable2.js +0 -4
- package/dist/_virtual/react-dom-server-legacy.browser.development.js +0 -4
- package/dist/_virtual/react-dom-server-legacy.browser.production.js +0 -4
- package/dist/_virtual/react-dom-server.browser.development.js +0 -4
- package/dist/_virtual/react-dom-server.browser.production.js +0 -4
- package/dist/_virtual/react-is.development.js +0 -4
- package/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/_virtual/server.browser.js +0 -5
- package/dist/_virtual/server.browser2.js +0 -4
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -48
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -53
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +0 -222
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -10
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +0 -636
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -183
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
- package/dist/node_modules/fast-deep-equal/index.js +0 -31
- package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
- package/dist/node_modules/object-assign/index.js +0 -49
- package/dist/node_modules/prop-types/checkPropTypes.js +0 -54
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
- package/dist/node_modules/prop-types/index.js +0 -17
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
- package/dist/node_modules/prop-types/lib/has.js +0 -7
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -87
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -70
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -10
- package/dist/node_modules/react-contenteditable/lib/react-contenteditable.js +0 -132
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +0 -6235
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +0 -4096
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -6753
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.js +0 -4645
- package/dist/node_modules/react-dom/server.browser.js +0 -15
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -112
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
- package/dist/node_modules/tslib/tslib.es6.js +0 -27
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import n from "react";
|
|
3
3
|
import { useStore as c, useService as s } from "../../utils/contextStore.js";
|
|
4
4
|
import "merge-props";
|
|
5
|
-
import { Text as
|
|
5
|
+
import { Text as m } from "../text/Text.js";
|
|
6
6
|
import { DOrganizationReactiveService as v } from "./DOrganization.service.js";
|
|
7
7
|
import { IconFolders as k, IconUsers as L, IconServer as N, IconEdit as w, IconLogout as F } from "@tabler/icons-react";
|
|
8
|
-
import { Flex as
|
|
8
|
+
import { Flex as t } from "../flex/Flex.js";
|
|
9
9
|
import { Button as S } from "../button/Button.js";
|
|
10
10
|
import { Spacing as P } from "../spacing/Spacing.js";
|
|
11
|
-
import { Avatar as
|
|
11
|
+
import { Avatar as E } from "../avatar/Avatar.js";
|
|
12
12
|
import { DUserReactiveService as b } from "../d-user/DUser.service.js";
|
|
13
13
|
import "../../_virtual/compiler-runtime.js";
|
|
14
14
|
import '../../assets/components/dialog/Dialog.style.css';import '../../assets/components/tooltip/Tooltip.style.css';import '../../assets/components/form/Input.style.css';import '../../assets/components/card/Card.style.css';import '../../assets/components/menu/Menu.style.css';/* empty css */
|
|
15
15
|
import "@radix-ui/react-dropdown-menu";
|
|
16
16
|
/* empty css */
|
|
17
|
-
import { useUserSession as
|
|
17
|
+
import { useUserSession as T } from "../d-user/DUser.session.hook.js";
|
|
18
18
|
import { Badge as d } from "../badge/Badge.js";
|
|
19
19
|
import "@radix-ui/react-checkbox";
|
|
20
20
|
/* empty css */
|
|
@@ -35,59 +35,59 @@ import "@radix-ui/react-dialog";
|
|
|
35
35
|
/* empty css */
|
|
36
36
|
const Ie = (I) => {
|
|
37
37
|
const {
|
|
38
|
-
organizationId:
|
|
38
|
+
organizationId: a,
|
|
39
39
|
onLeave: M = () => {
|
|
40
40
|
},
|
|
41
41
|
onSetting: j = () => {
|
|
42
42
|
}
|
|
43
|
-
} = I, B = c(v), C = s(v), D = c(z), $ = s(z), A = c(x), R = s(x), U = s(b), O = c(b), u =
|
|
44
|
-
return /* @__PURE__ */ t
|
|
43
|
+
} = I, B = c(v), C = s(v), D = c(z), $ = s(z), A = c(x), R = s(x), U = s(b), O = c(b), u = T(), p = n.useMemo(() => U.getById(u?.user?.id), [O, u]), r = n.useMemo(() => a ? C.getById(a) : null, [B, a]), o = n.useMemo(() => r ? $.getById(r.namespace?.id) : null, [D, r]), g = n.useMemo(() => o && p ? R.getByNamespaceIdAndUserId(o.id, p.id) : null, [A, o, p]), h = o?.projects?.count, y = o?.members?.count, f = o?.runtimes?.count;
|
|
44
|
+
return /* @__PURE__ */ i(t, { align: "center", style: {
|
|
45
45
|
gap: "1.3rem"
|
|
46
46
|
}, justify: "space-between", children: [
|
|
47
|
-
/* @__PURE__ */ t
|
|
47
|
+
/* @__PURE__ */ i(t, { align: "center", style: {
|
|
48
48
|
gap: "1.3rem"
|
|
49
49
|
}, children: [
|
|
50
|
-
/* @__PURE__ */ e(
|
|
51
|
-
/* @__PURE__ */ t
|
|
50
|
+
/* @__PURE__ */ e(E, { bg: "transparent", identifier: r?.name ?? "" }),
|
|
51
|
+
/* @__PURE__ */ i(t, { style: {
|
|
52
52
|
flexDirection: "column"
|
|
53
53
|
}, children: [
|
|
54
|
-
/* @__PURE__ */ e(
|
|
54
|
+
/* @__PURE__ */ e(m, { size: "lg", hierarchy: "primary", display: "block", children: r?.name }),
|
|
55
55
|
/* @__PURE__ */ e(P, { spacing: "xxs" }),
|
|
56
|
-
/* @__PURE__ */ t
|
|
56
|
+
/* @__PURE__ */ i(t, { align: "center", style: {
|
|
57
57
|
gap: "0.35rem",
|
|
58
58
|
flexWrap: "wrap"
|
|
59
59
|
}, children: [
|
|
60
|
-
/* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ t
|
|
60
|
+
/* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ i(t, { align: "center", style: {
|
|
61
61
|
gap: "0.35rem"
|
|
62
62
|
}, children: [
|
|
63
63
|
/* @__PURE__ */ e(k, { size: 16 }),
|
|
64
|
-
/* @__PURE__ */ e(
|
|
64
|
+
/* @__PURE__ */ e(m, { size: "xs", hierarchy: "tertiary", children: `${h ?? 0} project${(h ?? 0) !== 1 ? "s" : ""}` })
|
|
65
65
|
] }) }),
|
|
66
|
-
/* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ t
|
|
66
|
+
/* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ i(t, { align: "center", style: {
|
|
67
67
|
gap: "0.35rem"
|
|
68
68
|
}, children: [
|
|
69
69
|
/* @__PURE__ */ e(L, { size: 16 }),
|
|
70
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ i(m, { size: "xs", hierarchy: "tertiary", children: [
|
|
71
71
|
" ",
|
|
72
|
-
`${
|
|
72
|
+
`${y ?? 0} member${(y ?? 0) !== 1 ? "s" : ""}`
|
|
73
73
|
] })
|
|
74
74
|
] }) }),
|
|
75
|
-
/* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ t
|
|
75
|
+
/* @__PURE__ */ e(d, { border: !0, children: /* @__PURE__ */ i(t, { align: "center", style: {
|
|
76
76
|
gap: "0.35rem"
|
|
77
77
|
}, children: [
|
|
78
78
|
/* @__PURE__ */ e(N, { size: 16 }),
|
|
79
|
-
/* @__PURE__ */ e(
|
|
79
|
+
/* @__PURE__ */ e(m, { size: "xs", hierarchy: "tertiary", children: `${f ?? 0} runtime${(f ?? 0) !== 1 ? "s" : ""}` })
|
|
80
80
|
] }) })
|
|
81
81
|
] })
|
|
82
82
|
] })
|
|
83
83
|
] }),
|
|
84
|
-
/* @__PURE__ */ t
|
|
84
|
+
/* @__PURE__ */ i(t, { align: "center", style: {
|
|
85
85
|
gap: "0.7rem"
|
|
86
86
|
}, children: [
|
|
87
87
|
r?.userAbilities?.deleteOrganization || r?.userAbilities?.updateOrganization ? /* @__PURE__ */ e(S, { variant: "filled", color: "secondary", onClick: (l) => {
|
|
88
88
|
l.stopPropagation(), j(r);
|
|
89
89
|
}, children: /* @__PURE__ */ e(w, { size: 16 }) }) : null,
|
|
90
|
-
g && g.userAbilities?.deleteMember ? /* @__PURE__ */
|
|
90
|
+
g && g.userAbilities?.deleteMember ? /* @__PURE__ */ i(S, { variant: "filled", color: "error", onClick: (l) => {
|
|
91
91
|
l.stopPropagation(), r && M(r);
|
|
92
92
|
}, children: [
|
|
93
93
|
/* @__PURE__ */ e(F, { size: 16 }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useService as
|
|
2
|
+
import { useService as a } from "../../utils/contextStore.js";
|
|
3
3
|
import p from "react";
|
|
4
4
|
import "merge-props";
|
|
5
5
|
import { Flex as t } from "../flex/Flex.js";
|
|
@@ -12,13 +12,13 @@ import { DRuntimeReactiveService as b } from "../d-runtime/DRuntime.service.js";
|
|
|
12
12
|
import "../../_virtual/compiler-runtime.js";
|
|
13
13
|
import '../../assets/components/card/Card.style.css';/* empty css */
|
|
14
14
|
import { Button as S } from "../button/Button.js";
|
|
15
|
-
const
|
|
15
|
+
const T = (d) => {
|
|
16
16
|
const {
|
|
17
17
|
projectId: s,
|
|
18
18
|
onSetting: u = () => {
|
|
19
19
|
},
|
|
20
20
|
minimized: o = !1
|
|
21
|
-
} = d, l =
|
|
21
|
+
} = d, l = a(y), h = o ? null : a(b), r = p.useMemo(() => l.getById(s), [l, s]), m = o ? null : p.useMemo(() => r ? h.getById(r.primaryRuntime?.id) : null, [r]);
|
|
22
22
|
return /* @__PURE__ */ i(t, { align: "center", style: {
|
|
23
23
|
gap: "1.3rem"
|
|
24
24
|
}, justify: "space-between", children: [
|
|
@@ -54,9 +54,9 @@ const G = (d) => {
|
|
|
54
54
|
/* @__PURE__ */ e(v, { size: 16 }),
|
|
55
55
|
/* @__PURE__ */ e(n, { size: "xs", children: r?.runtimes?.count ?? 0 })
|
|
56
56
|
] }),
|
|
57
|
-
|
|
57
|
+
m && /* @__PURE__ */ i(c, { border: !0, children: [
|
|
58
58
|
/* @__PURE__ */ e(z, { size: 16 }),
|
|
59
|
-
/* @__PURE__ */ e(n, { size: "xs", children:
|
|
59
|
+
/* @__PURE__ */ e(n, { size: "xs", children: m.name })
|
|
60
60
|
] })
|
|
61
61
|
] })
|
|
62
62
|
] }),
|
|
@@ -67,5 +67,5 @@ const G = (d) => {
|
|
|
67
67
|
] });
|
|
68
68
|
};
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
T as DNamespaceProjectContent
|
|
71
71
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import f from "react";
|
|
3
3
|
import { Card as u } from "../card/Card.js";
|
|
4
|
-
import { useService as
|
|
4
|
+
import { useService as S, useStore as l } from "../../utils/contextStore.js";
|
|
5
5
|
import "merge-props";
|
|
6
6
|
import { DNamespaceProjectReactiveService as i } from "./DNamespaceProject.service.js";
|
|
7
7
|
import v from "../card/CardSection.js";
|
|
8
8
|
import { DNamespaceProjectContent as j } from "./DNamespaceProjectContent.js";
|
|
9
|
-
const
|
|
9
|
+
const b = (c) => {
|
|
10
10
|
const {
|
|
11
11
|
namespaceId: t,
|
|
12
12
|
filter: m = () => !0,
|
|
13
13
|
onSetting: s,
|
|
14
14
|
onSelect: o,
|
|
15
15
|
...n
|
|
16
|
-
} = c,
|
|
16
|
+
} = c, p = S(i), a = l(i), d = f.useMemo(() => p.values({
|
|
17
17
|
namespaceId: t
|
|
18
|
-
}), [
|
|
18
|
+
}), [a, t]);
|
|
19
19
|
return /* @__PURE__ */ r(u, { ...n, children: d.filter(m).map((e) => e.id && /* @__PURE__ */ r(v, { border: !0, hover: !0, onClick: () => {
|
|
20
20
|
o && o(e);
|
|
21
21
|
}, children: /* @__PURE__ */ r(j, { onSetting: s, projectId: e?.id }) }, e.id)) });
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
b as DNamespaceProjectList
|
|
25
25
|
};
|
|
@@ -10,7 +10,7 @@ import { Flex as t } from "../flex/Flex.js";
|
|
|
10
10
|
import { Badge as n } from "../badge/Badge.js";
|
|
11
11
|
import { IconArrowUp as B, IconArrowDown as N, IconCornerDownLeft as A } from "@tabler/icons-react";
|
|
12
12
|
import { Spacing as F } from "../spacing/Spacing.js";
|
|
13
|
-
const
|
|
13
|
+
const K = (i) => {
|
|
14
14
|
const {
|
|
15
15
|
onProjectSelect: h,
|
|
16
16
|
namespaceId: c,
|
|
@@ -53,5 +53,5 @@ const J = (i) => {
|
|
|
53
53
|
] }), [a]);
|
|
54
54
|
};
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
K as default
|
|
57
57
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as i, jsxs as s, Fragment as l } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import m from "react";
|
|
3
3
|
import { Flex as A } from "../flex/Flex.js";
|
|
4
4
|
import { Text as c } from "../text/Text.js";
|
|
5
|
-
import { Badge as
|
|
5
|
+
import { Badge as a } from "../badge/Badge.js";
|
|
6
6
|
import { IconCheck as T } from "@tabler/icons-react";
|
|
7
7
|
import { Tooltip as _, TooltipTrigger as u, TooltipPortal as C, TooltipContent as R, TooltipArrow as f } from "../tooltip/Tooltip.js";
|
|
8
8
|
const h = {
|
|
@@ -73,7 +73,7 @@ function g(e) {
|
|
|
73
73
|
t.action,
|
|
74
74
|
" ",
|
|
75
75
|
/* @__PURE__ */ s(_, { children: [
|
|
76
|
-
/* @__PURE__ */ i(u, { asChild: !0, children: /* @__PURE__ */ i(
|
|
76
|
+
/* @__PURE__ */ i(u, { asChild: !0, children: /* @__PURE__ */ i(a, { color: "info", style: {
|
|
77
77
|
verticalAlign: "middle"
|
|
78
78
|
}, children: /* @__PURE__ */ i(c, { style: {
|
|
79
79
|
color: "inherit"
|
|
@@ -103,7 +103,7 @@ function g(e) {
|
|
|
103
103
|
return /* @__PURE__ */ s(l, { children: [
|
|
104
104
|
"Can",
|
|
105
105
|
" ",
|
|
106
|
-
n.map((t, E) => /* @__PURE__ */ s(
|
|
106
|
+
n.map((t, E) => /* @__PURE__ */ s(m.Fragment, { children: [
|
|
107
107
|
E > 0 && ", ",
|
|
108
108
|
r(t)
|
|
109
109
|
] }, t.category)),
|
|
@@ -115,7 +115,7 @@ function g(e) {
|
|
|
115
115
|
const b = (e) => {
|
|
116
116
|
const {
|
|
117
117
|
abilities: r
|
|
118
|
-
} = e, n =
|
|
118
|
+
} = e, n = m.useMemo(() => S(r), [r]);
|
|
119
119
|
return /* @__PURE__ */ i(c, { size: "sm", hierarchy: "secondary", children: g(n) });
|
|
120
120
|
};
|
|
121
121
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Card as a } from "../card/Card.js";
|
|
3
|
-
import
|
|
4
|
-
import { useService as
|
|
3
|
+
import S from "react";
|
|
4
|
+
import { useService as l, useStore as v } from "../../utils/contextStore.js";
|
|
5
5
|
import "merge-props";
|
|
6
6
|
import { DRuntimeReactiveService as m } from "./DRuntime.service.js";
|
|
7
7
|
import R from "../card/CardSection.js";
|
|
8
8
|
import { DRuntimeContent as C } from "./DRuntimeContent.js";
|
|
9
|
-
const
|
|
9
|
+
const k = (n) => {
|
|
10
10
|
const {
|
|
11
11
|
namespaceId: t,
|
|
12
12
|
minimized: i = !1,
|
|
@@ -14,15 +14,15 @@ const j = (n) => {
|
|
|
14
14
|
onSetting: s,
|
|
15
15
|
onSelect: o,
|
|
16
16
|
...d
|
|
17
|
-
} = n,
|
|
17
|
+
} = n, p = l(m), u = v(m), f = S.useMemo(() => p.values({
|
|
18
18
|
namespaceId: t
|
|
19
|
-
}), [
|
|
19
|
+
}), [u, t]);
|
|
20
20
|
return /* @__PURE__ */ r(a, { ...d, ...i ? {
|
|
21
21
|
paddingSize: "sm"
|
|
22
|
-
} : {}, children:
|
|
22
|
+
} : {}, children: f.filter(c).map((e) => e.id && /* @__PURE__ */ r(R, { border: !0, hover: !0, onClick: () => {
|
|
23
23
|
o && o(e);
|
|
24
24
|
}, children: /* @__PURE__ */ r(C, { minimized: i, onSetting: s, runtimeId: e?.id }) }, e.id)) });
|
|
25
25
|
};
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
k as DRuntimeList
|
|
28
28
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c } from "../../_virtual/compiler-runtime.js";
|
|
2
2
|
import i from "react";
|
|
3
|
-
const
|
|
3
|
+
const a = () => {
|
|
4
4
|
const e = c.c(2), [n, r] = i.useState(void 0);
|
|
5
5
|
let s, o;
|
|
6
6
|
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (s = () => {
|
|
@@ -12,5 +12,5 @@ const m = () => {
|
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
14
14
|
S as setUserSession,
|
|
15
|
-
|
|
15
|
+
a as useUserSession
|
|
16
16
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as d, jsxs as
|
|
1
|
+
import { jsx as d, jsxs as p } from "react/jsx-runtime";
|
|
2
2
|
import { c as V } from "../../_virtual/compiler-runtime.js";
|
|
3
3
|
import w from "react";
|
|
4
|
-
import { Flex as
|
|
4
|
+
import { Flex as u } from "../flex/Flex.js";
|
|
5
5
|
import { Avatar as B } from "../avatar/Avatar.js";
|
|
6
6
|
import { useUserSession as E } from "./DUser.session.hook.js";
|
|
7
7
|
import { useService as k } from "../../utils/contextStore.js";
|
|
@@ -39,43 +39,43 @@ const Z = (D) => {
|
|
|
39
39
|
let l;
|
|
40
40
|
e[10] !== r.admin ? (l = r.admin ? /* @__PURE__ */ d(C, { color: "secondary", children: "Owner" }) : null, e[10] = r.admin, e[11] = l) : l = e[11];
|
|
41
41
|
let s;
|
|
42
|
-
e[12] !== i || e[13] !== l ? (s = /* @__PURE__ */ u
|
|
42
|
+
e[12] !== i || e[13] !== l ? (s = /* @__PURE__ */ p(u, { align: "center", style: v, children: [
|
|
43
43
|
i,
|
|
44
44
|
l
|
|
45
45
|
] }), e[12] = i, e[13] = l, e[14] = s) : s = e[14];
|
|
46
46
|
let n;
|
|
47
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
48
|
let m;
|
|
49
|
-
e[17] !== s || e[18] !== n ? (m = /* @__PURE__ */ u
|
|
49
|
+
e[17] !== s || e[18] !== n ? (m = /* @__PURE__ */ p(u, { style: g, children: [
|
|
50
50
|
s,
|
|
51
51
|
n
|
|
52
52
|
] }), e[17] = s, e[18] = n, e[19] = m) : m = e[19];
|
|
53
53
|
let o;
|
|
54
|
-
e[20] !== m || e[21] !== t ? (o = /* @__PURE__ */ u
|
|
54
|
+
e[20] !== m || e[21] !== t ? (o = /* @__PURE__ */ p(u, { style: y, align: "center", children: [
|
|
55
55
|
t,
|
|
56
56
|
m
|
|
57
57
|
] }), e[20] = m, e[21] = t, e[22] = o) : o = e[22];
|
|
58
|
-
let
|
|
59
|
-
e[23] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
58
|
+
let S;
|
|
59
|
+
e[23] === Symbol.for("react.memo_cache_sentinel") ? (S = {
|
|
60
60
|
gap: "1.3rem"
|
|
61
|
-
}, e[23] =
|
|
61
|
+
}, e[23] = S) : S = e[23];
|
|
62
62
|
let c;
|
|
63
|
-
e[24] !== r.emailVerifiedAt ? (c = r?.emailVerifiedAt ? /* @__PURE__ */
|
|
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];
|
|
67
67
|
let a;
|
|
68
68
|
e[26] !== j || e[27] !== A || e[28] !== U || e[29] !== r ? (a = null, e[26] = j, e[27] = A, e[28] = U, e[29] = r, e[30] = a) : a = e[30];
|
|
69
69
|
let f;
|
|
70
|
-
e[31] !== c || e[32] !== a ? (f = /* @__PURE__ */ u
|
|
70
|
+
e[31] !== c || e[32] !== a ? (f = /* @__PURE__ */ p(u, { style: S, align: "center", children: [
|
|
71
71
|
c,
|
|
72
72
|
a
|
|
73
73
|
] }), e[31] = c, e[32] = a, e[33] = f) : f = e[33];
|
|
74
|
-
let
|
|
75
|
-
return e[34] !== o || e[35] !== f ? (
|
|
74
|
+
let _;
|
|
75
|
+
return e[34] !== o || e[35] !== f ? (_ = /* @__PURE__ */ p(u, { justify: "space-between", align: "center", children: [
|
|
76
76
|
o,
|
|
77
77
|
f
|
|
78
|
-
] }), e[34] = o, e[35] = f, e[36] =
|
|
78
|
+
] }), e[34] = o, e[35] = f, e[36] = _) : _ = e[36], _;
|
|
79
79
|
};
|
|
80
80
|
function O() {
|
|
81
81
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import d from "react";
|
|
3
3
|
import { useService as u, useStore as l } from "../../utils/contextStore.js";
|
|
4
4
|
import "merge-props";
|
|
5
5
|
import { DUserReactiveService as t } from "./DUser.service.js";
|
|
6
|
-
import { Card as
|
|
7
|
-
import
|
|
8
|
-
import { DUserContent as
|
|
9
|
-
const
|
|
6
|
+
import { Card as v } from "../card/Card.js";
|
|
7
|
+
import S from "../card/CardSection.js";
|
|
8
|
+
import { DUserContent as a } from "./DUserContent.js";
|
|
9
|
+
const k = (i) => {
|
|
10
10
|
const {
|
|
11
11
|
filter: m = () => !0,
|
|
12
12
|
onRemove: s,
|
|
13
13
|
onSelect: o,
|
|
14
14
|
...c
|
|
15
|
-
} = i, n = u(t), f = l(t),
|
|
16
|
-
return /* @__PURE__ */ e(
|
|
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: () => {
|
|
17
17
|
o && o(r);
|
|
18
|
-
}, children: /* @__PURE__ */ e(
|
|
18
|
+
}, children: /* @__PURE__ */ e(a, { onRemove: s, userId: r?.id }) }, r.id)) });
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
k as DUserList
|
|
22
22
|
};
|
|
@@ -10,8 +10,8 @@ import '../../assets/components/form/Input.style.css';/* empty css
|
|
|
10
10
|
import { IconMinus as T, IconCheck as q } from "@tabler/icons-react";
|
|
11
11
|
const Y = (l) => {
|
|
12
12
|
const e = $.c(40), {
|
|
13
|
-
title:
|
|
14
|
-
description:
|
|
13
|
+
title: b,
|
|
14
|
+
description: _,
|
|
15
15
|
formValidation: k,
|
|
16
16
|
...N
|
|
17
17
|
} = l;
|
|
@@ -29,9 +29,9 @@ const Y = (l) => {
|
|
|
29
29
|
let v;
|
|
30
30
|
e[5] !== t ? (v = [t], e[5] = t, e[6] = v) : v = e[6], z.useEffect(g, v);
|
|
31
31
|
let o;
|
|
32
|
-
e[7] !==
|
|
32
|
+
e[7] !== b ? (o = b ? /* @__PURE__ */ n(F, { children: b }) : null, e[7] = b, e[8] = o) : o = e[8];
|
|
33
33
|
let c;
|
|
34
|
-
e[9] !==
|
|
34
|
+
e[9] !== _ ? (c = _ ? /* @__PURE__ */ n(L, { children: _ }) : null, e[9] = _, e[10] = c) : c = e[10];
|
|
35
35
|
const V = `input ${i?.valid ? "" : "input--not-valid"} checkbox-input`;
|
|
36
36
|
let s;
|
|
37
37
|
e[11] !== V ? (s = E(V, {}), e[11] = V, e[12] = s) : s = e[12];
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { Input as
|
|
4
|
-
import { IconX as
|
|
2
|
+
import r from "react";
|
|
3
|
+
import { Input as m } from "./Input.js";
|
|
4
|
+
import { IconX as l } from "@tabler/icons-react";
|
|
5
5
|
import { Button as f } from "../button/Button.js";
|
|
6
6
|
import { clearInputElement as s } from "./Input.utils.js";
|
|
7
|
-
const p = /(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/,
|
|
8
|
-
x = x ||
|
|
7
|
+
const p = /(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/, d = (t) => p.test(t), R = r.forwardRef((t, x) => {
|
|
8
|
+
x = x || r.useRef(null);
|
|
9
9
|
const {
|
|
10
|
-
clearable:
|
|
10
|
+
clearable: e = !1,
|
|
11
11
|
right: n,
|
|
12
12
|
...c
|
|
13
13
|
} = t, i = () => {
|
|
14
14
|
s(x.current);
|
|
15
15
|
}, a = [n];
|
|
16
|
-
return
|
|
16
|
+
return e && a.push(/* @__PURE__ */ o(f, { onClick: i, children: /* @__PURE__ */ o(l, { size: 13 }) })), /* @__PURE__ */ o(m, { right: a, type: "email", ref: x, ...c });
|
|
17
17
|
});
|
|
18
18
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
R as EmailInput,
|
|
20
|
+
d as emailValidation
|
|
21
21
|
};
|