@ws-ui/roles-editor 1.8.5 → 1.9.1
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/Standalone/style.css +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +41 -40
- package/dist/index.es.js.map +1 -1
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -14762,13 +14762,7 @@ const _J = ({ item: e, depth: t }) => {
|
|
|
14762
14762
|
children: r.privilege
|
|
14763
14763
|
},
|
|
14764
14764
|
r.id
|
|
14765
|
-
)), Gt = () => document.querySelector(`.${X4}`) || document.body, Sl = ({ container: e, ...t }) => /* @__PURE__ */ I(
|
|
14766
|
-
k4,
|
|
14767
|
-
{
|
|
14768
|
-
...t,
|
|
14769
|
-
container: e || Gt()
|
|
14770
|
-
}
|
|
14771
|
-
), PP = __, TP = x_, AP = ({
|
|
14765
|
+
)), Gt = () => document.querySelector(`.${X4}`) || document.body, Sl = ({ container: e, ...t }) => /* @__PURE__ */ I(k4, { ...t, container: e || Gt() }), PP = __, TP = x_, AP = ({
|
|
14772
14766
|
privilege: e,
|
|
14773
14767
|
selectedPrivilege: t,
|
|
14774
14768
|
onSelect: r,
|
|
@@ -25367,9 +25361,7 @@ const nte = ({ selectedPrivilege: e, onSelect: t, showIncluded: r, privileges: n
|
|
|
25367
25361
|
if (y.key === "Enter") {
|
|
25368
25362
|
f(null);
|
|
25369
25363
|
try {
|
|
25370
|
-
const b = gE(u, t), w = r(
|
|
25371
|
-
Ar(b)
|
|
25372
|
-
), _ = Object.values(w.payload).find(
|
|
25364
|
+
const b = gE(u, t), w = r(Ar(b)), _ = Object.values(w.payload).find(
|
|
25373
25365
|
(S) => S.privilege === u
|
|
25374
25366
|
);
|
|
25375
25367
|
_ && (e(_), m());
|
|
@@ -26835,22 +26827,30 @@ const xte = ({ role: e }) => {
|
|
|
26835
26827
|
/* @__PURE__ */ ce("table", { className: "relative h-full w-full", children: [
|
|
26836
26828
|
/* @__PURE__ */ I("thead", { className: "sticky top-0 z-20 bg-grey-800", children: /* @__PURE__ */ ce("tr", { className: "border-b border-grey-100", children: [
|
|
26837
26829
|
/* @__PURE__ */ I("td", { className: "py-2", children: /* @__PURE__ */ ce("div", { className: "flex items-center space-x-2", children: [
|
|
26838
|
-
/* @__PURE__ */ I(
|
|
26839
|
-
|
|
26830
|
+
/* @__PURE__ */ I(
|
|
26831
|
+
YD,
|
|
26840
26832
|
{
|
|
26841
|
-
|
|
26842
|
-
|
|
26843
|
-
|
|
26844
|
-
|
|
26845
|
-
"
|
|
26833
|
+
label: "Collapse All",
|
|
26834
|
+
placement: "top",
|
|
26835
|
+
container: Gt(),
|
|
26836
|
+
children: /* @__PURE__ */ I(
|
|
26837
|
+
"button",
|
|
26846
26838
|
{
|
|
26847
|
-
|
|
26848
|
-
|
|
26839
|
+
onClick: () => {
|
|
26840
|
+
k ? (M.setAllCollapsed(!0), C(!0)) : M.setChildCollapsed(!0);
|
|
26841
|
+
},
|
|
26842
|
+
className: Ye(
|
|
26843
|
+
"cursor-pointer rounded-md p-1 hover:bg-primary-hover focus:outline-none",
|
|
26844
|
+
{
|
|
26845
|
+
"pointer-events-none text-grey-200": $,
|
|
26846
|
+
"text-white": !$
|
|
26847
|
+
}
|
|
26848
|
+
),
|
|
26849
|
+
children: /* @__PURE__ */ I(Y4, { className: "h-4 w-4" })
|
|
26849
26850
|
}
|
|
26850
|
-
)
|
|
26851
|
-
children: /* @__PURE__ */ I(Y4, { className: "h-4 w-4" })
|
|
26851
|
+
)
|
|
26852
26852
|
}
|
|
26853
|
-
)
|
|
26853
|
+
),
|
|
26854
26854
|
/* @__PURE__ */ ce("div", { className: "relative w-56 text-white", children: [
|
|
26855
26855
|
/* @__PURE__ */ I("div", { className: "absolute inset-y-0 left-0 flex items-center px-1", children: /* @__PURE__ */ I(rq, { className: "h-4 w-4 text-gray-400" }) }),
|
|
26856
26856
|
/* @__PURE__ */ I("div", { className: "absolute inset-y-0 right-0 flex items-center px-2", children: /* @__PURE__ */ I(Mr, { className: "flex items-center", children: ({ open: B }) => /* @__PURE__ */ ce(Lt, { children: [
|
|
@@ -26869,9 +26869,7 @@ const xte = ({ role: e }) => {
|
|
|
26869
26869
|
/* @__PURE__ */ I("div", { className: "flex items-center", children: /* @__PURE__ */ I(
|
|
26870
26870
|
Nr,
|
|
26871
26871
|
{
|
|
26872
|
-
isChecked: d.includes(
|
|
26873
|
-
"datastore"
|
|
26874
|
-
),
|
|
26872
|
+
isChecked: d.includes("datastore"),
|
|
26875
26873
|
onChange: () => {
|
|
26876
26874
|
R(["datastore"]);
|
|
26877
26875
|
},
|
|
@@ -26881,9 +26879,7 @@ const xte = ({ role: e }) => {
|
|
|
26881
26879
|
/* @__PURE__ */ I("div", { className: "flex items-center", children: /* @__PURE__ */ I(
|
|
26882
26880
|
Nr,
|
|
26883
26881
|
{
|
|
26884
|
-
isChecked: d.includes(
|
|
26885
|
-
"dataclass"
|
|
26886
|
-
),
|
|
26882
|
+
isChecked: d.includes("dataclass"),
|
|
26887
26883
|
onChange: () => {
|
|
26888
26884
|
R(["dataclass"]);
|
|
26889
26885
|
},
|
|
@@ -26893,9 +26889,7 @@ const xte = ({ role: e }) => {
|
|
|
26893
26889
|
/* @__PURE__ */ I("div", { className: "flex items-center", children: /* @__PURE__ */ I(
|
|
26894
26890
|
Nr,
|
|
26895
26891
|
{
|
|
26896
|
-
isChecked: d.includes(
|
|
26897
|
-
"singleton"
|
|
26898
|
-
),
|
|
26892
|
+
isChecked: d.includes("singleton"),
|
|
26899
26893
|
onChange: () => {
|
|
26900
26894
|
R(["singleton"]);
|
|
26901
26895
|
},
|
|
@@ -26931,9 +26925,7 @@ const xte = ({ role: e }) => {
|
|
|
26931
26925
|
/* @__PURE__ */ I("div", { className: "flex items-center", children: /* @__PURE__ */ I(
|
|
26932
26926
|
Nr,
|
|
26933
26927
|
{
|
|
26934
|
-
isChecked: d.includes(
|
|
26935
|
-
"attribute"
|
|
26936
|
-
),
|
|
26928
|
+
isChecked: d.includes("attribute"),
|
|
26937
26929
|
onChange: () => {
|
|
26938
26930
|
R(["attribute"]);
|
|
26939
26931
|
},
|
|
@@ -27172,12 +27164,21 @@ const xte = ({ role: e }) => {
|
|
|
27172
27164
|
] }),
|
|
27173
27165
|
/* @__PURE__ */ I("div", { className: "flex-1 space-y-4 overflow-auto p-4 pb-10 pt-1", children: Object.values(e).map((r, n) => /* @__PURE__ */ I(xte, { role: r }, n)) })
|
|
27174
27166
|
] }),
|
|
27175
|
-
/* @__PURE__ */ I(
|
|
27176
|
-
"
|
|
27177
|
-
|
|
27178
|
-
|
|
27179
|
-
|
|
27180
|
-
|
|
27167
|
+
/* @__PURE__ */ I(
|
|
27168
|
+
"div",
|
|
27169
|
+
{
|
|
27170
|
+
className: Ye(
|
|
27171
|
+
"relative flex h-full w-full flex-1 flex-col items-stretch overflow-x-auto bg-grey-800",
|
|
27172
|
+
{
|
|
27173
|
+
"border-l-[0.5px] border-grey-900": t
|
|
27174
|
+
}
|
|
27175
|
+
),
|
|
27176
|
+
children: /* @__PURE__ */ I("div", { className: "flex h-full w-full select-none flex-col bg-grey-800", children: t ? /* @__PURE__ */ ce(Lt, { children: [
|
|
27177
|
+
/* @__PURE__ */ I(Ete, {}),
|
|
27178
|
+
/* @__PURE__ */ I(Cte, { selectedRole: t })
|
|
27179
|
+
] }) : /* @__PURE__ */ I(Sq, { tab: "Role" }) })
|
|
27180
|
+
}
|
|
27181
|
+
)
|
|
27181
27182
|
]
|
|
27182
27183
|
}
|
|
27183
27184
|
);
|