@sparkelf/dsh-dataops-managed 0.3.36 → 0.3.37
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/lib/client.js +545 -224
- package/lib/client.js.map +1 -1
- package/lib/index.js +21 -0
- package/lib/types/client/locales.d.ts +11 -0
- package/lib/types/client/review-client.d.ts +21 -0
- package/package.json +2 -1
- package/skills/admin-workspace-rescue/SKILL.md +95 -0
package/lib/client.js
CHANGED
|
@@ -777,6 +777,51 @@ window.__ModuleLoader__.load({
|
|
|
777
777
|
return { ok: false };
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
|
+
/** Roles the caller may grant or revoke. */
|
|
781
|
+
async function fetchVisibleRoles() {
|
|
782
|
+
return readJson(RBAC_PATH + "?section=visible-roles");
|
|
783
|
+
}
|
|
784
|
+
/** Write one RBAC mutation, surfacing the backend's reason on refusal. */
|
|
785
|
+
async function mutateRbac(section, value) {
|
|
786
|
+
if (reviewDemoMode()) return { ok: true };
|
|
787
|
+
const response = await fetch(RBAC_PATH, {
|
|
788
|
+
method: "PUT",
|
|
789
|
+
headers: {
|
|
790
|
+
"content-type": "application/json",
|
|
791
|
+
accept: "application/json"
|
|
792
|
+
},
|
|
793
|
+
body: JSON.stringify({
|
|
794
|
+
section,
|
|
795
|
+
value
|
|
796
|
+
})
|
|
797
|
+
});
|
|
798
|
+
if (response.ok && response.status !== 503) return { ok: true };
|
|
799
|
+
try {
|
|
800
|
+
const body = await response.json();
|
|
801
|
+
const reason = body.details?.reason ?? body.message ?? body.code;
|
|
802
|
+
return {
|
|
803
|
+
ok: false,
|
|
804
|
+
...typeof reason === "string" ? { reason } : {}
|
|
805
|
+
};
|
|
806
|
+
} catch {
|
|
807
|
+
return { ok: false };
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
/** Grant one role to a member (level/department rules are enforced by the backend). */
|
|
811
|
+
async function grantMemberRole(userId, roleCode, departmentCode) {
|
|
812
|
+
return mutateRbac("member-grant", {
|
|
813
|
+
userId,
|
|
814
|
+
roleCode,
|
|
815
|
+
...departmentCode === void 0 ? {} : { departmentCode }
|
|
816
|
+
});
|
|
817
|
+
}
|
|
818
|
+
/** Revoke one role from a member. */
|
|
819
|
+
async function revokeMemberRole(userId, roleCode) {
|
|
820
|
+
return mutateRbac("member-revoke", {
|
|
821
|
+
userId,
|
|
822
|
+
roleCode
|
|
823
|
+
});
|
|
824
|
+
}
|
|
780
825
|
//#endregion
|
|
781
826
|
//#region \0dsh-css:/root/projects/dsh-plugins-plus/packages/dataops-managed/src/client/ManagedDataOpsSection.module.css.mjs
|
|
782
827
|
const css$5 = "._2dqzjG_section{max-width:720px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:12px;display:flex}._2dqzjG_title{margin:0;font-size:18px;font-weight:600;line-height:28px}._2dqzjG_status{color:var(--dsw-alias-label-secondary);align-items:center;gap:8px;font-size:13px;line-height:22px;display:flex}._2dqzjG_card{border:.5px solid var(--dsw-alias-settings-card-stroke);border-radius:var(--dsw-radius-xl);background:var(--dsw-alias-settings-card-fill);flex-direction:column;gap:12px;padding:12px 16px;display:flex}._2dqzjG_heading{margin:0;font-size:13px;font-weight:600;line-height:22px}._2dqzjG_row{justify-content:space-between;align-items:center;gap:16px;display:flex}._2dqzjG_copy{flex-direction:column;min-width:0;display:flex}._2dqzjG_label{font-size:13px;line-height:22px}._2dqzjG_meta{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}._2dqzjG_fields{grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));gap:0 16px;display:grid}._2dqzjG_fields>div{min-width:0}._2dqzjG_fields input{font-variant-numeric:tabular-nums;min-width:0}._2dqzjG_actions{justify-content:flex-end;align-items:center;gap:12px;display:flex}._2dqzjG_refusal{color:var(--dsw-alias-state-error-primary);align-items:flex-start;gap:6px;margin-right:auto;font-size:12px;line-height:18px;display:flex}._2dqzjG_reviewHint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:11px;line-height:17px}._2dqzjG_reviewRows{flex-direction:column;gap:2px;display:flex}._2dqzjG_reviewRow{justify-content:space-between;align-items:center;gap:12px;min-height:30px;display:flex}._2dqzjG_reviewActions{justify-content:flex-end;display:flex}";
|
|
@@ -789,22 +834,22 @@ window.__ModuleLoader__.load({
|
|
|
789
834
|
document.head.appendChild(tag);
|
|
790
835
|
}
|
|
791
836
|
var ManagedDataOpsSection_module_css_default = {
|
|
792
|
-
"
|
|
837
|
+
"card": "_2dqzjG_card",
|
|
838
|
+
"label": "_2dqzjG_label",
|
|
839
|
+
"row": "_2dqzjG_row",
|
|
840
|
+
"title": "_2dqzjG_title",
|
|
793
841
|
"actions": "_2dqzjG_actions",
|
|
842
|
+
"heading": "_2dqzjG_heading",
|
|
794
843
|
"fields": "_2dqzjG_fields",
|
|
844
|
+
"refusal": "_2dqzjG_refusal",
|
|
795
845
|
"meta": "_2dqzjG_meta",
|
|
796
|
-
"
|
|
846
|
+
"reviewRow": "_2dqzjG_reviewRow",
|
|
847
|
+
"reviewRows": "_2dqzjG_reviewRows",
|
|
848
|
+
"reviewHint": "_2dqzjG_reviewHint",
|
|
797
849
|
"copy": "_2dqzjG_copy",
|
|
798
850
|
"section": "_2dqzjG_section",
|
|
799
|
-
"title": "_2dqzjG_title",
|
|
800
|
-
"reviewActions": "_2dqzjG_reviewActions",
|
|
801
|
-
"refusal": "_2dqzjG_refusal",
|
|
802
851
|
"status": "_2dqzjG_status",
|
|
803
|
-
"
|
|
804
|
-
"reviewRows": "_2dqzjG_reviewRows",
|
|
805
|
-
"reviewHint": "_2dqzjG_reviewHint",
|
|
806
|
-
"card": "_2dqzjG_card",
|
|
807
|
-
"heading": "_2dqzjG_heading"
|
|
852
|
+
"reviewActions": "_2dqzjG_reviewActions"
|
|
808
853
|
};
|
|
809
854
|
//#endregion
|
|
810
855
|
//#region src/client/ReviewSettingsCard.tsx
|
|
@@ -1685,24 +1730,24 @@ window.__ModuleLoader__.load({
|
|
|
1685
1730
|
document.head.appendChild(tag);
|
|
1686
1731
|
}
|
|
1687
1732
|
var NotificationBell_module_css_default = {
|
|
1688
|
-
"rowTitle": "tE0trG_rowTitle",
|
|
1689
|
-
"bell": "tE0trG_bell",
|
|
1690
|
-
"dialog": "tE0trG_dialog",
|
|
1691
|
-
"rowBody": "tE0trG_rowBody",
|
|
1692
|
-
"rowText": "tE0trG_rowText",
|
|
1693
|
-
"linkButton": "tE0trG_linkButton",
|
|
1694
|
-
"list": "tE0trG_list",
|
|
1695
|
-
"button": "tE0trG_button",
|
|
1696
|
-
"badge": "tE0trG_badge",
|
|
1697
1733
|
"rowMeta": "tE0trG_rowMeta",
|
|
1698
|
-
"
|
|
1734
|
+
"linkButton": "tE0trG_linkButton",
|
|
1735
|
+
"actions": "tE0trG_actions",
|
|
1736
|
+
"bell": "tE0trG_bell",
|
|
1737
|
+
"rowTitle": "tE0trG_rowTitle",
|
|
1699
1738
|
"dot": "tE0trG_dot",
|
|
1700
|
-
"
|
|
1739
|
+
"rowTime": "tE0trG_rowTime",
|
|
1740
|
+
"badge": "tE0trG_badge",
|
|
1741
|
+
"list": "tE0trG_list",
|
|
1742
|
+
"rowText": "tE0trG_rowText",
|
|
1701
1743
|
"pager": "tE0trG_pager",
|
|
1702
|
-
"actions": "tE0trG_actions",
|
|
1703
|
-
"demo": "tE0trG_demo",
|
|
1704
1744
|
"row": "tE0trG_row",
|
|
1705
|
-
"
|
|
1745
|
+
"empty": "tE0trG_empty",
|
|
1746
|
+
"dialog": "tE0trG_dialog",
|
|
1747
|
+
"demo": "tE0trG_demo",
|
|
1748
|
+
"rowIcon": "tE0trG_rowIcon",
|
|
1749
|
+
"rowBody": "tE0trG_rowBody",
|
|
1750
|
+
"button": "tE0trG_button"
|
|
1706
1751
|
};
|
|
1707
1752
|
//#endregion
|
|
1708
1753
|
//#region src/client/NotificationBell.tsx
|
|
@@ -1993,62 +2038,62 @@ window.__ModuleLoader__.load({
|
|
|
1993
2038
|
document.head.appendChild(tag);
|
|
1994
2039
|
}
|
|
1995
2040
|
var SkillPlazaSection_module_css_default = {
|
|
2041
|
+
"detailLabel": "_9FdZvq_detailLabel",
|
|
2042
|
+
"demoTag": "_9FdZvq_demoTag",
|
|
2043
|
+
"finding": "_9FdZvq_finding",
|
|
2044
|
+
"emptyText": "_9FdZvq_emptyText",
|
|
2045
|
+
"findingText": "_9FdZvq_findingText",
|
|
2046
|
+
"section": "_9FdZvq_section",
|
|
2047
|
+
"mark": "_9FdZvq_mark",
|
|
2048
|
+
"detail": "_9FdZvq_detail",
|
|
1996
2049
|
"head": "_9FdZvq_head",
|
|
1997
|
-
"
|
|
1998
|
-
"
|
|
2050
|
+
"reviewButton": "_9FdZvq_reviewButton",
|
|
2051
|
+
"findingHint": "_9FdZvq_findingHint",
|
|
2052
|
+
"pendingTag": "_9FdZvq_pendingTag",
|
|
2053
|
+
"noteField": "_9FdZvq_noteField",
|
|
2054
|
+
"cardTop": "_9FdZvq_cardTop",
|
|
2055
|
+
"cardIcon": "_9FdZvq_cardIcon",
|
|
2056
|
+
"auditDialog": "_9FdZvq_auditDialog",
|
|
1999
2057
|
"riskSummary": "_9FdZvq_riskSummary",
|
|
2000
|
-
"cardDesc": "_9FdZvq_cardDesc",
|
|
2001
2058
|
"audit": "_9FdZvq_audit",
|
|
2002
|
-
"cards": "_9FdZvq_cards",
|
|
2003
|
-
"departmentSelect": "_9FdZvq_departmentSelect",
|
|
2004
|
-
"cardTitle": "_9FdZvq_cardTitle",
|
|
2005
|
-
"risk": "_9FdZvq_risk",
|
|
2006
|
-
"riskEmpty": "_9FdZvq_riskEmpty",
|
|
2007
|
-
"notice": "_9FdZvq_notice",
|
|
2008
|
-
"riskScore": "_9FdZvq_riskScore",
|
|
2009
|
-
"findings": "_9FdZvq_findings",
|
|
2010
|
-
"tabs": "_9FdZvq_tabs",
|
|
2011
|
-
"empty": "_9FdZvq_empty",
|
|
2012
|
-
"cardEnd": "_9FdZvq_cardEnd",
|
|
2013
|
-
"emptyIcon": "_9FdZvq_emptyIcon",
|
|
2014
|
-
"headRow": "_9FdZvq_headRow",
|
|
2015
2059
|
"tab": "_9FdZvq_tab",
|
|
2016
|
-
"sharedTag": "_9FdZvq_sharedTag",
|
|
2017
|
-
"section": "_9FdZvq_section",
|
|
2018
|
-
"pendingTag": "_9FdZvq_pendingTag",
|
|
2019
|
-
"reviewButton": "_9FdZvq_reviewButton",
|
|
2020
2060
|
"title": "_9FdZvq_title",
|
|
2021
|
-
"
|
|
2022
|
-
"
|
|
2023
|
-
"reviewError": "_9FdZvq_reviewError",
|
|
2024
|
-
"cardIcon": "_9FdZvq_cardIcon",
|
|
2025
|
-
"detailButton": "_9FdZvq_detailButton",
|
|
2061
|
+
"cards": "_9FdZvq_cards",
|
|
2062
|
+
"severity": "_9FdZvq_severity",
|
|
2026
2063
|
"riskFailed": "_9FdZvq_riskFailed",
|
|
2027
|
-
"
|
|
2028
|
-
"
|
|
2029
|
-
"reviewNote": "_9FdZvq_reviewNote",
|
|
2030
|
-
"demoTag": "_9FdZvq_demoTag",
|
|
2031
|
-
"titleCount": "_9FdZvq_titleCount",
|
|
2032
|
-
"detailRow": "_9FdZvq_detailRow",
|
|
2033
|
-
"tagTop": "_9FdZvq_tagTop",
|
|
2034
|
-
"rejectedTag": "_9FdZvq_rejectedTag",
|
|
2035
|
-
"detailLabel": "_9FdZvq_detailLabel",
|
|
2036
|
-
"departmentBar": "_9FdZvq_departmentBar",
|
|
2064
|
+
"tabActive": "_9FdZvq_tabActive",
|
|
2065
|
+
"mine": "_9FdZvq_mine",
|
|
2037
2066
|
"detailValue": "_9FdZvq_detailValue",
|
|
2067
|
+
"cardEnd": "_9FdZvq_cardEnd",
|
|
2068
|
+
"risk": "_9FdZvq_risk",
|
|
2069
|
+
"detailButton": "_9FdZvq_detailButton",
|
|
2070
|
+
"empty": "_9FdZvq_empty",
|
|
2071
|
+
"findings": "_9FdZvq_findings",
|
|
2072
|
+
"departmentSelect": "_9FdZvq_departmentSelect",
|
|
2073
|
+
"cardDesc": "_9FdZvq_cardDesc",
|
|
2074
|
+
"reviewNote": "_9FdZvq_reviewNote",
|
|
2075
|
+
"reviewError": "_9FdZvq_reviewError",
|
|
2038
2076
|
"status": "_9FdZvq_status",
|
|
2039
|
-
"departmentLabel": "_9FdZvq_departmentLabel",
|
|
2040
|
-
"card": "_9FdZvq_card",
|
|
2041
|
-
"mark": "_9FdZvq_mark",
|
|
2042
|
-
"detail": "_9FdZvq_detail",
|
|
2043
|
-
"emptyText": "_9FdZvq_emptyText",
|
|
2044
|
-
"auditDialog": "_9FdZvq_auditDialog",
|
|
2045
|
-
"severity": "_9FdZvq_severity",
|
|
2046
2077
|
"cardMarks": "_9FdZvq_cardMarks",
|
|
2047
|
-
"
|
|
2078
|
+
"cardTitle": "_9FdZvq_cardTitle",
|
|
2079
|
+
"titleCount": "_9FdZvq_titleCount",
|
|
2080
|
+
"card": "_9FdZvq_card",
|
|
2081
|
+
"sharedTag": "_9FdZvq_sharedTag",
|
|
2082
|
+
"dialog": "_9FdZvq_dialog",
|
|
2083
|
+
"headRow": "_9FdZvq_headRow",
|
|
2048
2084
|
"tabCount": "_9FdZvq_tabCount",
|
|
2049
|
-
"
|
|
2050
|
-
"
|
|
2051
|
-
"
|
|
2085
|
+
"departmentLabel": "_9FdZvq_departmentLabel",
|
|
2086
|
+
"notice": "_9FdZvq_notice",
|
|
2087
|
+
"rejectedTag": "_9FdZvq_rejectedTag",
|
|
2088
|
+
"auditFooter": "_9FdZvq_auditFooter",
|
|
2089
|
+
"detailRow": "_9FdZvq_detailRow",
|
|
2090
|
+
"riskHead": "_9FdZvq_riskHead",
|
|
2091
|
+
"tagTop": "_9FdZvq_tagTop",
|
|
2092
|
+
"tabs": "_9FdZvq_tabs",
|
|
2093
|
+
"riskEmpty": "_9FdZvq_riskEmpty",
|
|
2094
|
+
"riskScore": "_9FdZvq_riskScore",
|
|
2095
|
+
"emptyIcon": "_9FdZvq_emptyIcon",
|
|
2096
|
+
"departmentBar": "_9FdZvq_departmentBar"
|
|
2052
2097
|
};
|
|
2053
2098
|
//#endregion
|
|
2054
2099
|
//#region src/client/SkillPlazaSection.tsx
|
|
@@ -2713,18 +2758,18 @@ window.__ModuleLoader__.load({
|
|
|
2713
2758
|
document.head.appendChild(tag);
|
|
2714
2759
|
}
|
|
2715
2760
|
var WanxiangBrand_module_css_default = {
|
|
2716
|
-
"animatedMark": "s0HPxG_animatedMark",
|
|
2717
2761
|
"unitTop": "s0HPxG_unitTop",
|
|
2718
|
-
"wordmark": "s0HPxG_wordmark",
|
|
2719
|
-
"mark": "s0HPxG_mark",
|
|
2720
|
-
"unit-top": "s0HPxG_unit-top",
|
|
2721
2762
|
"unit-left": "s0HPxG_unit-left",
|
|
2722
2763
|
"unit-right": "s0HPxG_unit-right",
|
|
2723
|
-
"
|
|
2764
|
+
"unit-top": "s0HPxG_unit-top",
|
|
2765
|
+
"animatedMark": "s0HPxG_animatedMark",
|
|
2724
2766
|
"unit-core": "s0HPxG_unit-core",
|
|
2725
|
-
"
|
|
2767
|
+
"sidebarName": "s0HPxG_sidebarName",
|
|
2726
2768
|
"harness": "s0HPxG_harness",
|
|
2769
|
+
"unitLeft": "s0HPxG_unitLeft",
|
|
2727
2770
|
"unitRight": "s0HPxG_unitRight",
|
|
2771
|
+
"mark": "s0HPxG_mark",
|
|
2772
|
+
"wordmark": "s0HPxG_wordmark",
|
|
2728
2773
|
"unitCore": "s0HPxG_unitCore"
|
|
2729
2774
|
};
|
|
2730
2775
|
//#endregion
|
|
@@ -3132,7 +3177,7 @@ window.__ModuleLoader__.load({
|
|
|
3132
3177
|
}
|
|
3133
3178
|
//#endregion
|
|
3134
3179
|
//#region \0dsh-css:/root/projects/dsh-plugins-plus/packages/dataops-managed/src/client/PermissionCenterSection.module.css.mjs
|
|
3135
|
-
const css$1 = ".PNbOqW_page{box-sizing:border-box;flex-direction:column;gap:14px;width:100%;max-width:clamp(1000px,60vw,1200px);min-height:0;margin:0 auto;padding:24px;display:flex}.PNbOqW_head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.PNbOqW_title{color:var(--dsw-alias-label-primary);margin:0;font-size:18px;font-weight:600;line-height:26px}.PNbOqW_subtitle{color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;margin:3px 0 0;font-size:12px;display:flex}.PNbOqW_demo{color:#9a5b00;background:#fff3e0;border-radius:4px;padding:1px 6px;font-size:10px;line-height:16px}.PNbOqW_tabs{border-bottom:1px solid var(--dsw-alias-border-l1);gap:2px;display:flex}.PNbOqW_tab{height:32px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;padding:0 12px;font-size:13px}.PNbOqW_tabActive{color:var(--dsw-alias-state-business-primary);border-bottom-color:var(--dsw-alias-state-business-primary);font-weight:500}.PNbOqW_notice,.PNbOqW_waiting{background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-secondary);border-radius:5px;margin:0;padding:8px 10px;font-size:12px}.PNbOqW_waiting{border:1px dashed var(--dsw-alias-border-l2);color:var(--dsw-alias-label-tertiary)}.PNbOqW_panel{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:8px;flex-direction:column;gap:10px;min-height:0;padding:14px;display:flex}.PNbOqW_sectionTitle{margin:0;font-size:13px;font-weight:600}.PNbOqW_matrixScroll,.PNbOqW_tableScroll{overscroll-behavior:contain;scrollbar-gutter:stable;max-height:clamp(280px,100dvh - 340px,520px);overflow:auto}.PNbOqW_matrix,.PNbOqW_table{border-collapse:collapse;width:100%;font-size:12px}.PNbOqW_matrix th,.PNbOqW_matrix td,.PNbOqW_table th,.PNbOqW_table td{border-bottom:1px solid var(--dsw-alias-border-l1);text-align:left;vertical-align:top;padding:7px 9px}.PNbOqW_matrix th,.PNbOqW_table th{background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary);white-space:nowrap;font-weight:600}.PNbOqW_permission{white-space:nowrap;color:var(--dsw-alias-label-secondary);align-items:center;gap:5px;font-size:11px;line-height:20px;display:flex}.PNbOqW_panelFoot{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;display:flex}.PNbOqW_readOnly{color:var(--dsw-alias-label-tertiary);margin-right:auto;font-size:11px}.PNbOqW_muted{color:var(--dsw-alias-label-tertiary);font-size:11px}.PNbOqW_departments{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.PNbOqW_department{border-bottom:1px solid var(--dsw-alias-border-l1);justify-content:space-between;align-items:center;gap:12px;padding:9px 8px;font-size:12px;display:flex}.PNbOqW_deptAdmins{align-items:center;gap:5px;display:flex}.PNbOqW_adminTag{color:var(--dsw-alias-state-business-primary);background:#ecf1fc;border-radius:4px;padding:1px 6px;font-size:11px}.PNbOqW_empty{text-align:center;color:var(--dsw-alias-label-tertiary);margin:0;padding:40px 0}.PNbOqW_matrixScroll{overscroll-behavior:contain;scrollbar-gutter:stable;max-height:clamp(280px,100dvh - 340px,520px);overflow:auto}.PNbOqW_matrix thead th{z-index:2;position:sticky;top:0}.PNbOqW_matrix thead th:first-child,.PNbOqW_matrix tbody th{background:var(--dsw-alias-bg-layer-2);min-width:132px;position:sticky;left:0}.PNbOqW_matrix thead th:first-child{z-index:3}.PNbOqW_matrix tbody th{z-index:1;background:var(--dsw-alias-bg-layer-1)}.PNbOqW_protected{background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-tertiary);white-space:nowrap;border-radius:3px;margin-left:5px;padding:0 5px;font-size:10px;font-weight:500;line-height:16px;display:inline-block}tr[data-locked=true] td{opacity:.62}.PNbOqW_pager{justify-content:flex-end;align-items:center;gap:8px;padding-top:8px;display:flex}.PNbOqW_dialog{width:min(560px,100vw - 32px)}.PNbOqW_dialogBody{flex-direction:column;gap:10px;display:flex}.PNbOqW_dialogHint{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px;line-height:18px}.PNbOqW_search{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);width:100%;height:30px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);border-radius:5px;padding:0 9px}.PNbOqW_candidates{flex-direction:column;gap:2px;max-height:260px;margin:0;padding:0;list-style:none;display:flex;overflow:auto}.PNbOqW_candidate{cursor:pointer;border-radius:5px;align-items:center;gap:7px;padding:6px 7px;font-size:12px;display:flex}.PNbOqW_candidate:hover{background:var(--dsw-alias-interactive-bg-hover)}.PNbOqW_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:11px;line-height:16px}.PNbOqW_dialogFooter{justify-content:flex-end;gap:6px;display:flex}.PNbOqW_matrixNote{color:var(--dsw-alias-label-tertiary);margin:6px 0 0;font-size:11px;line-height:16px}.PNbOqW_panelHead{justify-content:space-between;align-items:center;gap:10px;display:flex}.PNbOqW_treeRoot,.PNbOqW_treeChildren{margin:0;padding:0;list-style:none}.PNbOqW_treeChildren{border-left:1px solid var(--dsw-alias-border-l1);margin-left:18px}.PNbOqW_treeRow{border-bottom:1px solid var(--dsw-alias-border-l1);align-items:center;gap:7px;min-height:34px;font-size:12px;display:flex}.PNbOqW_treeToggle,.PNbOqW_treeSpacer{flex:none;justify-content:center;align-items:center;width:18px;height:18px;display:inline-flex}.PNbOqW_treeToggle{color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:3px;font-size:11px}.PNbOqW_treeToggle:hover{background:var(--dsw-alias-interactive-bg-hover)}.PNbOqW_treeName{color:var(--dsw-alias-label-primary);white-space:nowrap;font-weight:600}.PNbOqW_treeActions{align-items:center;gap:2px;margin-left:auto;display:flex}.PNbOqW_field{color:var(--dsw-alias-label-secondary);flex-direction:column;gap:5px;font-size:12px;display:flex}.PNbOqW_field input,.PNbOqW_field select{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);width:100%;height:30px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);border-radius:5px;padding:0 9px}.PNbOqW_field input:disabled{opacity:.65}.PNbOqW_matrixModule{vertical-align:top;background:var(--dsw-alias-bg-layer-2);min-width:96px;color:var(--dsw-alias-label-secondary);text-align:left;border-right:1px solid var(--dsw-alias-border-l1);padding:10px 9px;font-size:12px;font-weight:600}.PNbOqW_matrixGroup th{background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary);text-align:left;padding:7px 9px;font-size:12px;font-weight:600}.PNbOqW_matrixPermission{white-space:nowrap;min-width:230px}.PNbOqW_scopeBadge{border-radius:3px;margin-left:6px;padding:0 5px;font-size:10px;font-weight:500;line-height:16px;display:inline-block}.PNbOqW_scopeBadge[data-scope=department]{background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 14%, var(--dsw-alias-bg-layer-1));color:var(--dsw-alias-state-business-primary)}.PNbOqW_scopeBadge[data-scope=global]{background:color-mix(in srgb, var(--dsw-alias-state-warn-primary) 16%, var(--dsw-alias-bg-layer-1));color:var(--dsw-alias-state-warn-primary)}.PNbOqW_onlyAdmin{color:var(--dsw-alias-label-tertiary);white-space:nowrap;margin-left:4px;font-size:10px}.PNbOqW_permCopy{max-width:100%;color:var(--dsw-alias-label-primary);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:2px;padding:0;display:inline-flex}.PNbOqW_permCopy:hover span:first-child{color:var(--dsw-alias-state-business-primary);text-decoration:underline dotted}.PNbOqW_permDescription{color:var(--dsw-alias-label-tertiary);white-space:normal;margin-top:2px;font-size:10px;font-weight:400;line-height:15px;display:block}.PNbOqW_copied{color:var(--dsw-alias-state-success-primary);margin-left:4px;font-size:10px}.PNbOqW_combobox{min-width:132px;position:relative}.PNbOqW_comboboxTrigger{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);width:100%;height:28px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);text-align:left;cursor:pointer;border-radius:5px;justify-content:space-between;align-items:center;gap:8px;padding:0 8px;display:flex}.PNbOqW_comboboxTrigger:hover:not(:disabled){border-color:var(--dsw-alias-state-business-primary)}.PNbOqW_comboboxTrigger:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:1px}.PNbOqW_comboboxTrigger:disabled{opacity:.55;cursor:default}.PNbOqW_comboboxPlaceholder{color:var(--dsw-alias-label-tertiary)}.PNbOqW_comboboxMenu{z-index:30;box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);border-radius:7px;width:max(100%,220px);padding:5px;position:absolute;top:calc(100% + 4px);left:0;box-shadow:0 8px 24px #00000038}.PNbOqW_comboboxSearch{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-base);width:100%;height:28px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);border-radius:4px;padding:0 7px}.PNbOqW_comboboxList{max-height:210px;margin:4px 0 0;padding:0;list-style:none;overflow:auto}.PNbOqW_comboboxOption{width:100%;color:var(--dsw-alias-label-primary);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:4px;align-items:center;gap:5px;padding:6px;font-size:12px;line-height:18px;display:flex}.PNbOqW_comboboxOptionActive,.PNbOqW_comboboxOption:hover{background:var(--dsw-alias-interactive-bg-hover)}.PNbOqW_comboboxCheck{width:13px;color:var(--dsw-alias-state-business-primary);flex:none;font-size:11px}.PNbOqW_comboboxHint{color:var(--dsw-alias-label-tertiary);margin-left:auto;font-size:10px}.PNbOqW_comboboxEmpty{color:var(--dsw-alias-label-tertiary);padding:9px 7px;font-size:11px}.PNbOqW_rowActions{white-space:nowrap;align-items:center;gap:4px;display:flex}.PNbOqW_detailGrid{grid-template-columns:92px minmax(0,1fr);gap:8px 12px;margin:0;font-size:12px;line-height:18px;display:grid}.PNbOqW_detailGrid dt{color:var(--dsw-alias-label-tertiary)}.PNbOqW_detailGrid dd{color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;margin:0}";
|
|
3180
|
+
const css$1 = ".PNbOqW_page{box-sizing:border-box;flex-direction:column;gap:14px;width:100%;max-width:clamp(1000px,60vw,1200px);min-height:0;margin:0 auto;padding:24px;display:flex}.PNbOqW_head{justify-content:space-between;align-items:center;gap:12px;display:flex}.PNbOqW_headText{min-width:0}.PNbOqW_headActions{flex:none;align-items:center;gap:8px;display:flex}.PNbOqW_title{color:var(--dsw-alias-label-primary);margin:0;font-size:20px;font-weight:600;line-height:28px}.PNbOqW_subtitle{color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;margin:3px 0 0;font-size:12px;display:flex}.PNbOqW_demo{color:#9a5b00;background:#fff3e0;border-radius:4px;padding:1px 6px;font-size:10px;line-height:16px}.PNbOqW_tabs{border-bottom:1px solid var(--dsw-alias-border-l1);scrollbar-width:none;flex-wrap:nowrap;align-items:center;gap:0;display:flex;overflow:auto hidden}.PNbOqW_tabs::-webkit-scrollbar{display:none}.PNbOqW_tabGroup{flex:none;align-items:center;gap:4px;display:flex}.PNbOqW_tabDivider{background:#ffffff1f;flex:none;align-self:center;width:1px;height:14px;margin:0 12px}.PNbOqW_tab{height:34px;color:var(--dsw-alias-label-secondary,#8ea6c6);cursor:pointer;white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:4px 4px 0 0;align-items:center;gap:6px;padding:0 10px;font-size:13px;font-weight:400;display:inline-flex}.PNbOqW_tab:hover{background:#ffffff0a}.PNbOqW_tabActive{color:var(--dsw-alias-label-primary,#fff);border-bottom-color:var(--dsw-alias-brand-primary,#2563eb);font-weight:600}.PNbOqW_tabBadge{background:var(--dsw-alias-bg-layer-2);min-width:18px;height:16px;color:var(--dsw-alias-label-caption);font-variant-numeric:tabular-nums;border-radius:999px;justify-content:center;align-items:center;padding:0 5px;font-size:10px;font-weight:500;display:inline-flex}.PNbOqW_notice,.PNbOqW_waiting{background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-secondary);border-radius:5px;margin:0;padding:8px 10px;font-size:12px}.PNbOqW_waiting{border:1px dashed var(--dsw-alias-border-l2);color:var(--dsw-alias-label-tertiary)}.PNbOqW_panel{border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-layer-1);border-radius:8px;flex-direction:column;gap:10px;min-height:0;padding:14px;display:flex}.PNbOqW_sectionTitle{margin:0;font-size:13px;font-weight:600}.PNbOqW_matrixHead{justify-content:space-between;align-items:center;gap:12px;display:flex}.PNbOqW_matrixHeadLeft{align-items:center;gap:8px;display:flex}.PNbOqW_matrixTool{width:24px;height:24px;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;padding:0;font-size:15px;line-height:1;display:inline-grid}.PNbOqW_matrixTool:hover{color:var(--dsw-alias-label-primary);background:#ffffff0f}.PNbOqW_matrixToolActive{color:#2563eb;background:#2563eb26}.PNbOqW_matrixPermHead{text-align:left;white-space:normal;min-width:116px;max-width:140px;font-weight:500}.PNbOqW_matrixRoleHead,.PNbOqW_matrixRoleCell{white-space:nowrap}.PNbOqW_roleSearchWrap{flex:none;width:240px;max-width:100%;display:inline-flex;position:relative}.PNbOqW_roleSearchIcon{color:#8ea6c6;pointer-events:none;width:16px;height:16px;transition:color .12s;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.PNbOqW_roleSearchWrap:focus-within .PNbOqW_roleSearchIcon{color:#2563eb}.PNbOqW_roleSearch{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);width:100%;height:30px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xxs-12);border-radius:6px;outline:none;padding:0 10px 0 34px}.PNbOqW_roleSearch::placeholder{color:var(--dsw-alias-label-caption)}.PNbOqW_roleSearch:focus{border-color:var(--dsw-alias-brand-primary,#2563eb)}.PNbOqW_empty{text-align:center;color:var(--dsw-alias-label-caption);margin:0;padding:28px 12px;font-size:12px}.PNbOqW_matrixScroll,.PNbOqW_tableScroll{overscroll-behavior:contain;scrollbar-gutter:stable;max-height:clamp(280px,100dvh - 340px,520px);overflow:auto}.PNbOqW_matrix,.PNbOqW_table{border-collapse:collapse;width:100%;font-size:12px}.PNbOqW_matrix th,.PNbOqW_matrix td,.PNbOqW_table th,.PNbOqW_table td{border-bottom:1px solid var(--dsw-alias-border-l1);text-align:left;vertical-align:top;padding:7px 9px}.PNbOqW_matrix th,.PNbOqW_table th{background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary);white-space:nowrap;font-weight:600}.PNbOqW_permission{white-space:nowrap;color:var(--dsw-alias-label-secondary);align-items:center;gap:5px;font-size:11px;line-height:20px;display:flex}.PNbOqW_panelFoot{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;display:flex}.PNbOqW_readOnly{color:var(--dsw-alias-label-tertiary);margin-right:auto;font-size:11px}.PNbOqW_muted{color:var(--dsw-alias-label-tertiary);font-size:11px}.PNbOqW_departments{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.PNbOqW_department{border-bottom:1px solid var(--dsw-alias-border-l1);justify-content:space-between;align-items:center;gap:12px;padding:9px 8px;font-size:12px;display:flex}.PNbOqW_deptAdmins{align-items:center;gap:5px;display:flex}.PNbOqW_adminTag{color:var(--dsw-alias-state-business-primary);background:#ecf1fc;border-radius:4px;padding:1px 6px;font-size:11px}.PNbOqW_empty{text-align:center;color:var(--dsw-alias-label-tertiary);margin:0;padding:40px 0}.PNbOqW_matrixScroll{overscroll-behavior:contain;scrollbar-gutter:stable;max-height:clamp(280px,100dvh - 340px,520px);overflow:auto}.PNbOqW_matrix thead th{z-index:2;position:sticky;top:0}.PNbOqW_matrix thead th:first-child,.PNbOqW_matrix tbody th{background:var(--dsw-alias-bg-layer-2);min-width:132px;position:sticky;left:0}.PNbOqW_matrix thead th:first-child{z-index:3}.PNbOqW_matrix tbody th{z-index:1;background:var(--dsw-alias-bg-layer-1)}.PNbOqW_protected{background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-tertiary);white-space:nowrap;border-radius:3px;margin-left:5px;padding:0 5px;font-size:10px;font-weight:500;line-height:16px;display:inline-block}tr[data-locked=true] td{opacity:.62}.PNbOqW_pager{justify-content:flex-end;align-items:center;gap:8px;padding-top:8px;display:flex}.PNbOqW_dialog{width:min(560px,100vw - 32px)}.PNbOqW_dialogBody{flex-direction:column;gap:10px;display:flex}.PNbOqW_dialogHint{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px;line-height:18px}.PNbOqW_search{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);width:100%;height:30px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);border-radius:5px;padding:0 9px}.PNbOqW_candidates{flex-direction:column;gap:2px;max-height:260px;margin:0;padding:0;list-style:none;display:flex;overflow:auto}.PNbOqW_candidate{cursor:pointer;border-radius:5px;align-items:center;gap:7px;padding:6px 7px;font-size:12px;display:flex}.PNbOqW_candidate:hover{background:var(--dsw-alias-interactive-bg-hover)}.PNbOqW_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:11px;line-height:16px}.PNbOqW_dialogFooter{justify-content:flex-end;gap:6px;display:flex}.PNbOqW_matrixNote{color:var(--dsw-alias-label-tertiary);margin:6px 0 0;font-size:11px;line-height:16px}.PNbOqW_panelHead{justify-content:space-between;align-items:center;gap:10px;display:flex}.PNbOqW_treeRoot,.PNbOqW_treeChildren{margin:0;padding:0;list-style:none}.PNbOqW_treeChildren{border-left:1px solid var(--dsw-alias-border-l1);margin-left:18px}.PNbOqW_treeRow{border-bottom:1px solid var(--dsw-alias-border-l1);align-items:center;gap:7px;min-height:34px;font-size:12px;display:flex}.PNbOqW_treeToggle,.PNbOqW_treeSpacer{flex:none;justify-content:center;align-items:center;width:18px;height:18px;display:inline-flex}.PNbOqW_treeToggle{color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:3px;font-size:11px}.PNbOqW_treeToggle:hover{background:var(--dsw-alias-interactive-bg-hover)}.PNbOqW_treeName{color:var(--dsw-alias-label-primary);white-space:nowrap;font-weight:600}.PNbOqW_treeActions{align-items:center;gap:2px;margin-left:auto;display:flex}.PNbOqW_field{color:var(--dsw-alias-label-secondary);flex-direction:column;gap:5px;font-size:12px;display:flex}.PNbOqW_field input,.PNbOqW_field select{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);width:100%;height:30px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);border-radius:5px;padding:0 9px}.PNbOqW_field input:disabled{opacity:.65}.PNbOqW_matrixModule{vertical-align:top;background:var(--dsw-alias-bg-layer-2);min-width:96px;color:var(--dsw-alias-label-secondary);text-align:left;border-right:1px solid var(--dsw-alias-border-l1);padding:10px 9px;font-size:12px;font-weight:600}.PNbOqW_matrixGroup th{background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary);text-align:left;padding:7px 9px;font-size:12px;font-weight:600}.PNbOqW_matrixPermission{white-space:nowrap;min-width:230px}.PNbOqW_scopeBadge{border-radius:3px;margin-left:6px;padding:0 5px;font-size:10px;font-weight:500;line-height:16px;display:inline-block}.PNbOqW_scopeBadge[data-scope=department]{background:color-mix(in srgb, var(--dsw-alias-state-business-primary) 14%, var(--dsw-alias-bg-layer-1));color:var(--dsw-alias-state-business-primary)}.PNbOqW_scopeBadge[data-scope=global]{background:color-mix(in srgb, var(--dsw-alias-state-warn-primary) 16%, var(--dsw-alias-bg-layer-1));color:var(--dsw-alias-state-warn-primary)}.PNbOqW_onlyAdmin{color:var(--dsw-alias-label-tertiary);white-space:nowrap;margin-left:4px;font-size:10px}.PNbOqW_permCopy{max-width:100%;color:var(--dsw-alias-label-primary);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:2px;padding:0;display:inline-flex}.PNbOqW_permCopy:hover span:first-child{color:var(--dsw-alias-state-business-primary);text-decoration:underline dotted}.PNbOqW_permDescription{color:var(--dsw-alias-label-tertiary);white-space:normal;margin-top:2px;font-size:10px;font-weight:400;line-height:15px;display:block}.PNbOqW_copied{color:var(--dsw-alias-state-success-primary);margin-left:4px;font-size:10px}.PNbOqW_combobox{min-width:132px;position:relative}.PNbOqW_comboboxTrigger{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-base);width:100%;height:28px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);text-align:left;cursor:pointer;border-radius:5px;justify-content:space-between;align-items:center;gap:8px;padding:0 8px;display:flex}.PNbOqW_comboboxTrigger:hover:not(:disabled){border-color:var(--dsw-alias-state-business-primary)}.PNbOqW_comboboxTrigger:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:1px}.PNbOqW_comboboxTrigger:disabled{opacity:.55;cursor:default}.PNbOqW_comboboxPlaceholder{color:var(--dsw-alias-label-tertiary)}.PNbOqW_comboboxMenu{z-index:30;box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-1);border-radius:7px;width:max(100%,220px);padding:5px;position:absolute;top:calc(100% + 4px);left:0;box-shadow:0 8px 24px #00000038}.PNbOqW_comboboxSearch{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l1);background:var(--dsw-alias-bg-base);width:100%;height:28px;color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);border-radius:4px;padding:0 7px}.PNbOqW_comboboxList{max-height:210px;margin:4px 0 0;padding:0;list-style:none;overflow:auto}.PNbOqW_comboboxOption{width:100%;color:var(--dsw-alias-label-primary);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:4px;align-items:center;gap:5px;padding:6px;font-size:12px;line-height:18px;display:flex}.PNbOqW_comboboxOptionActive,.PNbOqW_comboboxOption:hover{background:var(--dsw-alias-interactive-bg-hover)}.PNbOqW_comboboxCheck{width:13px;color:var(--dsw-alias-state-business-primary);flex:none;font-size:11px}.PNbOqW_comboboxHint{color:var(--dsw-alias-label-tertiary);margin-left:auto;font-size:10px}.PNbOqW_comboboxEmpty{color:var(--dsw-alias-label-tertiary);padding:9px 7px;font-size:11px}.PNbOqW_rowActions{white-space:nowrap;align-items:center;gap:4px;display:flex}.PNbOqW_detailGrid{grid-template-columns:92px minmax(0,1fr);gap:8px 12px;margin:0;font-size:12px;line-height:18px;display:grid}.PNbOqW_detailGrid dt{color:var(--dsw-alias-label-tertiary)}.PNbOqW_detailGrid dd{color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;margin:0}.PNbOqW_roleCell{flex-direction:column;gap:6px;display:flex}.PNbOqW_roleTags{flex-wrap:wrap;gap:4px;display:flex}.PNbOqW_roleTag{background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary);border-radius:4px;align-items:center;gap:4px;padding:1px 6px;font-size:11px;line-height:18px;display:inline-flex}.PNbOqW_roleRevoke{width:14px;height:14px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:3px;padding:0;font-size:12px;line-height:1}.PNbOqW_roleRevoke:hover{color:var(--dsw-alias-state-danger,#b91c1c);background:#ffffff14}.PNbOqW_roleGrant{align-items:center;gap:6px;display:flex}.PNbOqW_roleGrant select{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-2);height:26px;color:var(--dsw-alias-label-primary);border-radius:5px;padding:0 6px;font-size:11px}";
|
|
3136
3181
|
const tagId$1 = "@sparkelf/dsh-dataops-managed/PermissionCenterSection.module.css";
|
|
3137
3182
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
3138
3183
|
const tag = document.createElement("style");
|
|
@@ -3142,72 +3187,92 @@ window.__ModuleLoader__.load({
|
|
|
3142
3187
|
document.head.appendChild(tag);
|
|
3143
3188
|
}
|
|
3144
3189
|
var PermissionCenterSection_module_css_default = {
|
|
3145
|
-
"
|
|
3146
|
-
"
|
|
3147
|
-
"
|
|
3148
|
-
"treeActions": "PNbOqW_treeActions",
|
|
3149
|
-
"comboboxEmpty": "PNbOqW_comboboxEmpty",
|
|
3150
|
-
"tabActive": "PNbOqW_tabActive",
|
|
3151
|
-
"waiting": "PNbOqW_waiting",
|
|
3152
|
-
"title": "PNbOqW_title",
|
|
3153
|
-
"treeChildren": "PNbOqW_treeChildren",
|
|
3154
|
-
"comboboxTrigger": "PNbOqW_comboboxTrigger",
|
|
3155
|
-
"tabs": "PNbOqW_tabs",
|
|
3156
|
-
"treeRow": "PNbOqW_treeRow",
|
|
3190
|
+
"notice": "PNbOqW_notice",
|
|
3191
|
+
"readOnly": "PNbOqW_readOnly",
|
|
3192
|
+
"treeRoot": "PNbOqW_treeRoot",
|
|
3157
3193
|
"field": "PNbOqW_field",
|
|
3158
|
-
"tab": "PNbOqW_tab",
|
|
3159
3194
|
"tableScroll": "PNbOqW_tableScroll",
|
|
3160
|
-
"
|
|
3161
|
-
"matrixPermission": "PNbOqW_matrixPermission",
|
|
3162
|
-
"dialogFooter": "PNbOqW_dialogFooter",
|
|
3163
|
-
"adminTag": "PNbOqW_adminTag",
|
|
3164
|
-
"subtitle": "PNbOqW_subtitle",
|
|
3165
|
-
"comboboxOption": "PNbOqW_comboboxOption",
|
|
3166
|
-
"copied": "PNbOqW_copied",
|
|
3167
|
-
"sectionTitle": "PNbOqW_sectionTitle",
|
|
3168
|
-
"empty": "PNbOqW_empty",
|
|
3169
|
-
"matrixScroll": "PNbOqW_matrixScroll",
|
|
3170
|
-
"treeToggle": "PNbOqW_treeToggle",
|
|
3171
|
-
"onlyAdmin": "PNbOqW_onlyAdmin",
|
|
3172
|
-
"dialog": "PNbOqW_dialog",
|
|
3173
|
-
"treeSpacer": "PNbOqW_treeSpacer",
|
|
3174
|
-
"dialogBody": "PNbOqW_dialogBody",
|
|
3175
|
-
"notice": "PNbOqW_notice",
|
|
3176
|
-
"comboboxMenu": "PNbOqW_comboboxMenu",
|
|
3177
|
-
"protected": "PNbOqW_protected",
|
|
3195
|
+
"permDescription": "PNbOqW_permDescription",
|
|
3178
3196
|
"combobox": "PNbOqW_combobox",
|
|
3179
|
-
"
|
|
3180
|
-
"treeName": "PNbOqW_treeName",
|
|
3181
|
-
"comboboxHint": "PNbOqW_comboboxHint",
|
|
3182
|
-
"candidate": "PNbOqW_candidate",
|
|
3183
|
-
"detailGrid": "PNbOqW_detailGrid",
|
|
3197
|
+
"comboboxSearch": "PNbOqW_comboboxSearch",
|
|
3184
3198
|
"table": "PNbOqW_table",
|
|
3185
|
-
"matrixNote": "PNbOqW_matrixNote",
|
|
3186
|
-
"scopeBadge": "PNbOqW_scopeBadge",
|
|
3187
|
-
"comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
|
|
3188
|
-
"matrix": "PNbOqW_matrix",
|
|
3189
|
-
"rowActions": "PNbOqW_rowActions",
|
|
3190
|
-
"search": "PNbOqW_search",
|
|
3191
|
-
"panel": "PNbOqW_panel",
|
|
3192
|
-
"panelFoot": "PNbOqW_panelFoot",
|
|
3193
3199
|
"comboboxOptionActive": "PNbOqW_comboboxOptionActive",
|
|
3194
|
-
"
|
|
3195
|
-
"
|
|
3196
|
-
"
|
|
3200
|
+
"tabs": "PNbOqW_tabs",
|
|
3201
|
+
"detailGrid": "PNbOqW_detailGrid",
|
|
3202
|
+
"pager": "PNbOqW_pager",
|
|
3203
|
+
"headActions": "PNbOqW_headActions",
|
|
3204
|
+
"candidate": "PNbOqW_candidate",
|
|
3205
|
+
"comboboxOption": "PNbOqW_comboboxOption",
|
|
3206
|
+
"tabActive": "PNbOqW_tabActive",
|
|
3207
|
+
"headText": "PNbOqW_headText",
|
|
3208
|
+
"roleGrant": "PNbOqW_roleGrant",
|
|
3209
|
+
"matrixHead": "PNbOqW_matrixHead",
|
|
3210
|
+
"dialogHint": "PNbOqW_dialogHint",
|
|
3211
|
+
"tabBadge": "PNbOqW_tabBadge",
|
|
3197
3212
|
"department": "PNbOqW_department",
|
|
3198
|
-
"
|
|
3199
|
-
"
|
|
3213
|
+
"roleSearchWrap": "PNbOqW_roleSearchWrap",
|
|
3214
|
+
"title": "PNbOqW_title",
|
|
3215
|
+
"tab": "PNbOqW_tab",
|
|
3216
|
+
"subtitle": "PNbOqW_subtitle",
|
|
3217
|
+
"departments": "PNbOqW_departments",
|
|
3218
|
+
"dialogFooter": "PNbOqW_dialogFooter",
|
|
3200
3219
|
"head": "PNbOqW_head",
|
|
3220
|
+
"onlyAdmin": "PNbOqW_onlyAdmin",
|
|
3221
|
+
"comboboxEmpty": "PNbOqW_comboboxEmpty",
|
|
3201
3222
|
"panelHead": "PNbOqW_panelHead",
|
|
3202
|
-
"
|
|
3203
|
-
"
|
|
3204
|
-
"
|
|
3223
|
+
"rowActions": "PNbOqW_rowActions",
|
|
3224
|
+
"matrixPermission": "PNbOqW_matrixPermission",
|
|
3225
|
+
"treeToggle": "PNbOqW_treeToggle",
|
|
3226
|
+
"treeActions": "PNbOqW_treeActions",
|
|
3227
|
+
"waiting": "PNbOqW_waiting",
|
|
3228
|
+
"sectionTitle": "PNbOqW_sectionTitle",
|
|
3205
3229
|
"muted": "PNbOqW_muted",
|
|
3206
|
-
"
|
|
3230
|
+
"comboboxHint": "PNbOqW_comboboxHint",
|
|
3231
|
+
"comboboxCheck": "PNbOqW_comboboxCheck",
|
|
3232
|
+
"matrixRoleHead": "PNbOqW_matrixRoleHead",
|
|
3233
|
+
"matrixRoleCell": "PNbOqW_matrixRoleCell",
|
|
3234
|
+
"matrixModule": "PNbOqW_matrixModule",
|
|
3235
|
+
"matrixPermHead": "PNbOqW_matrixPermHead",
|
|
3236
|
+
"protected": "PNbOqW_protected",
|
|
3237
|
+
"roleTag": "PNbOqW_roleTag",
|
|
3238
|
+
"treeChildren": "PNbOqW_treeChildren",
|
|
3239
|
+
"dialogBody": "PNbOqW_dialogBody",
|
|
3240
|
+
"search": "PNbOqW_search",
|
|
3241
|
+
"adminTag": "PNbOqW_adminTag",
|
|
3242
|
+
"roleCell": "PNbOqW_roleCell",
|
|
3243
|
+
"demo": "PNbOqW_demo",
|
|
3244
|
+
"matrixNote": "PNbOqW_matrixNote",
|
|
3245
|
+
"treeSpacer": "PNbOqW_treeSpacer",
|
|
3246
|
+
"matrixHeadLeft": "PNbOqW_matrixHeadLeft",
|
|
3247
|
+
"copied": "PNbOqW_copied",
|
|
3248
|
+
"permCopy": "PNbOqW_permCopy",
|
|
3249
|
+
"comboboxMenu": "PNbOqW_comboboxMenu",
|
|
3207
3250
|
"candidates": "PNbOqW_candidates",
|
|
3251
|
+
"deptAdmins": "PNbOqW_deptAdmins",
|
|
3252
|
+
"roleSearchIcon": "PNbOqW_roleSearchIcon",
|
|
3208
3253
|
"page": "PNbOqW_page",
|
|
3209
|
-
"
|
|
3210
|
-
"
|
|
3254
|
+
"dialog": "PNbOqW_dialog",
|
|
3255
|
+
"roleTags": "PNbOqW_roleTags",
|
|
3256
|
+
"comboboxTrigger": "PNbOqW_comboboxTrigger",
|
|
3257
|
+
"treeRow": "PNbOqW_treeRow",
|
|
3258
|
+
"roleRevoke": "PNbOqW_roleRevoke",
|
|
3259
|
+
"matrixToolActive": "PNbOqW_matrixToolActive",
|
|
3260
|
+
"roleSearch": "PNbOqW_roleSearch",
|
|
3261
|
+
"panel": "PNbOqW_panel",
|
|
3262
|
+
"empty": "PNbOqW_empty",
|
|
3263
|
+
"tabDivider": "PNbOqW_tabDivider",
|
|
3264
|
+
"comboboxList": "PNbOqW_comboboxList",
|
|
3265
|
+
"comboboxPlaceholder": "PNbOqW_comboboxPlaceholder",
|
|
3266
|
+
"tabGroup": "PNbOqW_tabGroup",
|
|
3267
|
+
"panelFoot": "PNbOqW_panelFoot",
|
|
3268
|
+
"treeName": "PNbOqW_treeName",
|
|
3269
|
+
"matrixGroup": "PNbOqW_matrixGroup",
|
|
3270
|
+
"matrix": "PNbOqW_matrix",
|
|
3271
|
+
"permission": "PNbOqW_permission",
|
|
3272
|
+
"scopeBadge": "PNbOqW_scopeBadge",
|
|
3273
|
+
"matrixScroll": "PNbOqW_matrixScroll",
|
|
3274
|
+
"error": "PNbOqW_error",
|
|
3275
|
+
"matrixTool": "PNbOqW_matrixTool"
|
|
3211
3276
|
};
|
|
3212
3277
|
//#endregion
|
|
3213
3278
|
//#region src/client/combobox.ts
|
|
@@ -3247,6 +3312,7 @@ window.__ModuleLoader__.load({
|
|
|
3247
3312
|
function PermissionCenterSection({ t }) {
|
|
3248
3313
|
const [context, setContext] = (0, react.useState)(void 0);
|
|
3249
3314
|
const [overview, setOverview] = (0, react.useState)(void 0);
|
|
3315
|
+
const [visibleRoles, setVisibleRoles] = (0, react.useState)(null);
|
|
3250
3316
|
const [tab, setTab] = (0, react.useState)("roles");
|
|
3251
3317
|
const [notice, setNotice] = (0, react.useState)(null);
|
|
3252
3318
|
const [busy, setBusy] = (0, react.useState)(false);
|
|
@@ -3265,7 +3331,9 @@ window.__ModuleLoader__.load({
|
|
|
3265
3331
|
return;
|
|
3266
3332
|
}
|
|
3267
3333
|
try {
|
|
3268
|
-
|
|
3334
|
+
const [nextOverview, nextVisible] = await Promise.all([demo ? Promise.resolve(demoRbacOverview()) : fetchRbacOverview(), demo ? Promise.resolve(null) : fetchVisibleRoles().catch(() => null)]);
|
|
3335
|
+
setOverview(nextOverview);
|
|
3336
|
+
setVisibleRoles(nextVisible);
|
|
3269
3337
|
} catch {
|
|
3270
3338
|
setOverview(null);
|
|
3271
3339
|
}
|
|
@@ -3290,24 +3358,40 @@ window.__ModuleLoader__.load({
|
|
|
3290
3358
|
const resourceWritable = writable || actorRole === "DEPT_ADMIN";
|
|
3291
3359
|
const superAdmin = context === null ? knownAdmin : context.role === "SUPER_ADMIN" || demo;
|
|
3292
3360
|
const canAssignDepartment = writable && (superAdmin || actorRole === "ADMIN");
|
|
3293
|
-
const
|
|
3361
|
+
const tabGroups = [
|
|
3294
3362
|
{
|
|
3295
3363
|
key: "roles",
|
|
3296
|
-
label: t("permTabRoles")
|
|
3364
|
+
label: t("permTabRoles"),
|
|
3365
|
+
group: t("permGroupRoles"),
|
|
3366
|
+
count: overview?.matrix.roles.length ?? 0
|
|
3297
3367
|
},
|
|
3298
3368
|
{
|
|
3299
3369
|
key: "members",
|
|
3300
|
-
label: t("permTabMembers")
|
|
3370
|
+
label: t("permTabMembers"),
|
|
3371
|
+
group: t("permGroupRoles"),
|
|
3372
|
+
count: overview?.members.length ?? 0
|
|
3301
3373
|
},
|
|
3302
3374
|
{
|
|
3303
3375
|
key: "departments",
|
|
3304
|
-
label: t("permTabDepartments")
|
|
3376
|
+
label: t("permTabDepartments"),
|
|
3377
|
+
group: t("permGroupOrg"),
|
|
3378
|
+
count: overview?.departments.length ?? 0
|
|
3305
3379
|
},
|
|
3306
3380
|
{
|
|
3307
3381
|
key: "resources",
|
|
3308
|
-
label: t("permTabResources")
|
|
3382
|
+
label: t("permTabResources"),
|
|
3383
|
+
group: t("permGroupResources"),
|
|
3384
|
+
count: overview?.resources.length ?? 0
|
|
3309
3385
|
}
|
|
3310
|
-
]
|
|
3386
|
+
].reduce((groups, item) => {
|
|
3387
|
+
const existing = groups.find((group) => group.group === item.group);
|
|
3388
|
+
if (existing === void 0) groups.push({
|
|
3389
|
+
group: item.group,
|
|
3390
|
+
items: [item]
|
|
3391
|
+
});
|
|
3392
|
+
else existing.items.push(item);
|
|
3393
|
+
return groups;
|
|
3394
|
+
}, []);
|
|
3311
3395
|
const save = async (section, value) => {
|
|
3312
3396
|
setBusy(true);
|
|
3313
3397
|
setNotice(null);
|
|
@@ -3354,6 +3438,28 @@ window.__ModuleLoader__.load({
|
|
|
3354
3438
|
setBusy(false);
|
|
3355
3439
|
}
|
|
3356
3440
|
};
|
|
3441
|
+
const grantRole = async (userId, roleCode, departmentCode) => {
|
|
3442
|
+
setBusy(true);
|
|
3443
|
+
setNotice(null);
|
|
3444
|
+
try {
|
|
3445
|
+
const result = await grantMemberRole(userId, roleCode, departmentCode);
|
|
3446
|
+
setNotice(result.ok ? t("permSaved") : result.reason ?? t("permSaveFailed"));
|
|
3447
|
+
if (result.ok) await load();
|
|
3448
|
+
} finally {
|
|
3449
|
+
setBusy(false);
|
|
3450
|
+
}
|
|
3451
|
+
};
|
|
3452
|
+
const revokeRole = async (userId, roleCode) => {
|
|
3453
|
+
setBusy(true);
|
|
3454
|
+
setNotice(null);
|
|
3455
|
+
try {
|
|
3456
|
+
const result = await revokeMemberRole(userId, roleCode);
|
|
3457
|
+
setNotice(result.ok ? t("permSaved") : result.reason ?? t("permSaveFailed"));
|
|
3458
|
+
if (result.ok) await load();
|
|
3459
|
+
} finally {
|
|
3460
|
+
setBusy(false);
|
|
3461
|
+
}
|
|
3462
|
+
};
|
|
3357
3463
|
const openDepartment = (department) => {
|
|
3358
3464
|
setDeptDialog(department);
|
|
3359
3465
|
setDeptSelected(department.deptAdmins?.map((admin) => admin.userId) ?? []);
|
|
@@ -3407,44 +3513,59 @@ window.__ModuleLoader__.load({
|
|
|
3407
3513
|
children: [
|
|
3408
3514
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("header", {
|
|
3409
3515
|
className: PermissionCenterSection_module_css_default.head,
|
|
3410
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3411
|
-
className: PermissionCenterSection_module_css_default.
|
|
3412
|
-
children:
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3516
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3517
|
+
className: PermissionCenterSection_module_css_default.headText,
|
|
3518
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h1", {
|
|
3519
|
+
className: PermissionCenterSection_module_css_default.title,
|
|
3520
|
+
children: t("permTitle")
|
|
3521
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
3522
|
+
className: PermissionCenterSection_module_css_default.subtitle,
|
|
3523
|
+
children: [
|
|
3524
|
+
roleName,
|
|
3525
|
+
" · ",
|
|
3526
|
+
departmentName,
|
|
3527
|
+
demo ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
3528
|
+
className: PermissionCenterSection_module_css_default.demo,
|
|
3529
|
+
children: t("permDemo")
|
|
3530
|
+
}) : null
|
|
3531
|
+
]
|
|
3532
|
+
})]
|
|
3533
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3534
|
+
className: PermissionCenterSection_module_css_default.headActions,
|
|
3535
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
3536
|
+
variant: "outline",
|
|
3537
|
+
size: "sm",
|
|
3538
|
+
icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconRefreshOutlineRegular, { size: 16 }),
|
|
3539
|
+
onClick: () => {
|
|
3540
|
+
load();
|
|
3541
|
+
},
|
|
3542
|
+
children: t("permRefresh")
|
|
3543
|
+
})
|
|
3432
3544
|
})]
|
|
3433
3545
|
}),
|
|
3434
3546
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3435
3547
|
className: PermissionCenterSection_module_css_default.tabs,
|
|
3436
3548
|
role: "tablist",
|
|
3437
3549
|
"aria-label": t("permTitle"),
|
|
3438
|
-
children:
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3550
|
+
children: tabGroups.map((group, groupIndex) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3551
|
+
className: PermissionCenterSection_module_css_default.tabGroup,
|
|
3552
|
+
children: [groupIndex > 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
3553
|
+
className: PermissionCenterSection_module_css_default.tabDivider,
|
|
3554
|
+
"aria-hidden": "true"
|
|
3555
|
+
}) : null, group.items.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
3556
|
+
type: "button",
|
|
3557
|
+
role: "tab",
|
|
3558
|
+
"aria-selected": tab === item.key,
|
|
3559
|
+
className: tab === item.key ? PermissionCenterSection_module_css_default.tab + " " + PermissionCenterSection_module_css_default.tabActive : PermissionCenterSection_module_css_default.tab,
|
|
3560
|
+
onClick: () => {
|
|
3561
|
+
setTab(item.key);
|
|
3562
|
+
},
|
|
3563
|
+
children: [item.label, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
3564
|
+
className: PermissionCenterSection_module_css_default.tabBadge,
|
|
3565
|
+
children: item.count
|
|
3566
|
+
})]
|
|
3567
|
+
}, item.key))]
|
|
3568
|
+
}, group.group))
|
|
3448
3569
|
}),
|
|
3449
3570
|
notice === null ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
3450
3571
|
className: PermissionCenterSection_module_css_default.notice,
|
|
@@ -3469,6 +3590,7 @@ window.__ModuleLoader__.load({
|
|
|
3469
3590
|
actorRole,
|
|
3470
3591
|
actorUserId: context?.userId,
|
|
3471
3592
|
actorDepartmentCode: context?.departmentCode,
|
|
3593
|
+
visibleRoles,
|
|
3472
3594
|
busy,
|
|
3473
3595
|
t,
|
|
3474
3596
|
onSave: (userId, roleCodes) => {
|
|
@@ -3476,6 +3598,12 @@ window.__ModuleLoader__.load({
|
|
|
3476
3598
|
userId,
|
|
3477
3599
|
roleCodes
|
|
3478
3600
|
});
|
|
3601
|
+
},
|
|
3602
|
+
onGrant: (userId, roleCode, departmentCode) => {
|
|
3603
|
+
grantRole(userId, roleCode, departmentCode);
|
|
3604
|
+
},
|
|
3605
|
+
onRevoke: (userId, roleCode) => {
|
|
3606
|
+
revokeRole(userId, roleCode);
|
|
3479
3607
|
}
|
|
3480
3608
|
}) : null,
|
|
3481
3609
|
tab === "departments" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Departments, {
|
|
@@ -3622,10 +3750,30 @@ window.__ModuleLoader__.load({
|
|
|
3622
3750
|
});
|
|
3623
3751
|
}
|
|
3624
3752
|
function RoleMatrix({ roles, permissions, writable, actorRole, busy, t, onSaveAll }) {
|
|
3625
|
-
const visibleRoles = (0, react.useMemo)(() =>
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3753
|
+
const visibleRoles = (0, react.useMemo)(() => {
|
|
3754
|
+
const builtinOrder = [
|
|
3755
|
+
"SUPER_ADMIN",
|
|
3756
|
+
"ADMIN",
|
|
3757
|
+
"DEPT_ADMIN",
|
|
3758
|
+
"APP_USER"
|
|
3759
|
+
];
|
|
3760
|
+
const rank = (role) => {
|
|
3761
|
+
const systemKey = role.systemKey ?? null;
|
|
3762
|
+
if (systemKey === null) return 100;
|
|
3763
|
+
const index = builtinOrder.indexOf(systemKey);
|
|
3764
|
+
return index < 0 ? 50 : index;
|
|
3765
|
+
};
|
|
3766
|
+
return [...roles].map((role) => role.systemKey === "APP_USER" || role.code === "应用人员" || role.code === "普通用户" ? {
|
|
3767
|
+
...role,
|
|
3768
|
+
name: "普通用户"
|
|
3769
|
+
} : role).sort((a, b) => rank(a) - rank(b) || a.name.localeCompare(b.name, "zh-CN"));
|
|
3770
|
+
}, [roles]);
|
|
3771
|
+
const [roleQuery, setRoleQuery] = (0, react.useState)("");
|
|
3772
|
+
const shownRoles = (0, react.useMemo)(() => {
|
|
3773
|
+
const needle = roleQuery.trim().toLowerCase();
|
|
3774
|
+
if (needle === "") return visibleRoles;
|
|
3775
|
+
return visibleRoles.filter((role) => role.name.toLowerCase().includes(needle) || role.code.toLowerCase().includes(needle));
|
|
3776
|
+
}, [visibleRoles, roleQuery]);
|
|
3629
3777
|
const groups = (0, react.useMemo)(() => {
|
|
3630
3778
|
const hasSkill = permissions.some((point) => point.group === "skill" || point.group === "技能中心");
|
|
3631
3779
|
const keyOf = (group) => {
|
|
@@ -3659,7 +3807,7 @@ window.__ModuleLoader__.load({
|
|
|
3659
3807
|
points: permissions.filter((point) => keyOf(point.group) === def.key)
|
|
3660
3808
|
})).filter((group) => group.points.length > 0);
|
|
3661
3809
|
}, [permissions]);
|
|
3662
|
-
(0, react.useMemo)(() => groups.flatMap((group) => group.points), [groups]);
|
|
3810
|
+
const visiblePermissions = (0, react.useMemo)(() => groups.flatMap((group) => group.points), [groups]);
|
|
3663
3811
|
const [draft, setDraft] = (0, react.useState)(() => Object.fromEntries(visibleRoles.map((role) => [role.code, new Set(role.permissions)])));
|
|
3664
3812
|
const [dirty, setDirty] = (0, react.useState)(() => /* @__PURE__ */ new Set());
|
|
3665
3813
|
const [saving, setSaving] = (0, react.useState)(false);
|
|
@@ -3685,21 +3833,113 @@ window.__ModuleLoader__.load({
|
|
|
3685
3833
|
if (!writable || actorRole !== "SUPER_ADMIN") return true;
|
|
3686
3834
|
return globalScope(point) && (isDepartmentRole(roleCode) || isAppRole(roleCode));
|
|
3687
3835
|
};
|
|
3836
|
+
const [transposed, setTransposed] = (0, react.useState)(false);
|
|
3837
|
+
const toggle = (roleCode, pointKey, checked) => {
|
|
3838
|
+
setDraft((current) => {
|
|
3839
|
+
const next = new Set(current[roleCode] ?? []);
|
|
3840
|
+
if (checked) next.add(pointKey);
|
|
3841
|
+
else next.delete(pointKey);
|
|
3842
|
+
return {
|
|
3843
|
+
...current,
|
|
3844
|
+
[roleCode]: next
|
|
3845
|
+
};
|
|
3846
|
+
});
|
|
3847
|
+
setDirty((current) => new Set(current).add(roleCode));
|
|
3848
|
+
};
|
|
3688
3849
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3689
3850
|
className: PermissionCenterSection_module_css_default.panel,
|
|
3690
3851
|
children: [
|
|
3691
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
3692
|
-
className: PermissionCenterSection_module_css_default.
|
|
3693
|
-
children:
|
|
3852
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
3853
|
+
className: PermissionCenterSection_module_css_default.matrixHead,
|
|
3854
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
3855
|
+
className: PermissionCenterSection_module_css_default.matrixHeadLeft,
|
|
3856
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
|
|
3857
|
+
className: PermissionCenterSection_module_css_default.sectionTitle,
|
|
3858
|
+
children: t("permRoleMatrix")
|
|
3859
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
3860
|
+
type: "button",
|
|
3861
|
+
className: transposed ? PermissionCenterSection_module_css_default.matrixTool + " " + PermissionCenterSection_module_css_default.matrixToolActive : PermissionCenterSection_module_css_default.matrixTool,
|
|
3862
|
+
"data-matrix-transpose": "",
|
|
3863
|
+
"aria-pressed": transposed,
|
|
3864
|
+
title: t("permTranspose"),
|
|
3865
|
+
"aria-label": t("permTranspose"),
|
|
3866
|
+
onClick: () => {
|
|
3867
|
+
setTransposed((value) => !value);
|
|
3868
|
+
},
|
|
3869
|
+
children: "⇄"
|
|
3870
|
+
})]
|
|
3871
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
3872
|
+
className: PermissionCenterSection_module_css_default.roleSearchWrap,
|
|
3873
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
3874
|
+
className: PermissionCenterSection_module_css_default.roleSearchIcon,
|
|
3875
|
+
viewBox: "0 0 16 16",
|
|
3876
|
+
"aria-hidden": "true",
|
|
3877
|
+
focusable: "false",
|
|
3878
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("circle", {
|
|
3879
|
+
cx: "7",
|
|
3880
|
+
cy: "7",
|
|
3881
|
+
r: "4.6",
|
|
3882
|
+
fill: "none",
|
|
3883
|
+
stroke: "currentColor",
|
|
3884
|
+
strokeWidth: "1.4"
|
|
3885
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
3886
|
+
d: "m10.5 10.5 3 3",
|
|
3887
|
+
fill: "none",
|
|
3888
|
+
stroke: "currentColor",
|
|
3889
|
+
strokeWidth: "1.4",
|
|
3890
|
+
strokeLinecap: "round"
|
|
3891
|
+
})]
|
|
3892
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
3893
|
+
className: PermissionCenterSection_module_css_default.roleSearch,
|
|
3894
|
+
value: roleQuery,
|
|
3895
|
+
placeholder: t("permRoleSearch"),
|
|
3896
|
+
"aria-label": t("permRoleSearch"),
|
|
3897
|
+
onChange: (event) => {
|
|
3898
|
+
setRoleQuery(event.target.value);
|
|
3899
|
+
}
|
|
3900
|
+
})]
|
|
3901
|
+
})]
|
|
3694
3902
|
}),
|
|
3695
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("
|
|
3903
|
+
shownRoles.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
3904
|
+
className: PermissionCenterSection_module_css_default.empty,
|
|
3905
|
+
children: t("permRoleEmpty")
|
|
3906
|
+
}) : transposed ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3696
3907
|
className: PermissionCenterSection_module_css_default.matrixScroll,
|
|
3697
3908
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("table", {
|
|
3698
3909
|
className: PermissionCenterSection_module_css_default.matrix,
|
|
3910
|
+
"data-matrix-orientation": "transposed",
|
|
3911
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("thead", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
3912
|
+
className: PermissionCenterSection_module_css_default.matrixRoleHead,
|
|
3913
|
+
children: t("permRoleColumn")
|
|
3914
|
+
}), visiblePermissions.map((point) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
3915
|
+
className: PermissionCenterSection_module_css_default.matrixPermHead,
|
|
3916
|
+
title: point.key,
|
|
3917
|
+
children: point.name
|
|
3918
|
+
}, point.key))] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tbody", { children: shownRoles.map((role) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
3919
|
+
scope: "row",
|
|
3920
|
+
className: PermissionCenterSection_module_css_default.matrixRoleCell,
|
|
3921
|
+
children: role.name
|
|
3922
|
+
}), visiblePermissions.map((point) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
3923
|
+
className: PermissionCenterSection_module_css_default.permission,
|
|
3924
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
3925
|
+
type: "checkbox",
|
|
3926
|
+
checked: draft[role.code]?.has(point.key) === true,
|
|
3927
|
+
disabled: locked(role.code, point) || busy,
|
|
3928
|
+
onChange: (event) => {
|
|
3929
|
+
toggle(role.code, point.key, event.target.checked);
|
|
3930
|
+
}
|
|
3931
|
+
})
|
|
3932
|
+
}) }, point.key))] }, role.code)) })]
|
|
3933
|
+
})
|
|
3934
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
3935
|
+
className: PermissionCenterSection_module_css_default.matrixScroll,
|
|
3936
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("table", {
|
|
3937
|
+
className: PermissionCenterSection_module_css_default.matrix,
|
|
3938
|
+
"data-matrix-orientation": "normal",
|
|
3699
3939
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("thead", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [
|
|
3700
3940
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: t("permPermissionModule") }),
|
|
3701
3941
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: t("permPermissionPoint") }),
|
|
3702
|
-
|
|
3942
|
+
shownRoles.map((role) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", { children: role.name }, role.code))
|
|
3703
3943
|
] }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tbody", { children: groups.map((group) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react.Fragment, { children: group.points.map((point, pointIndex) => {
|
|
3704
3944
|
const global = globalScope(point);
|
|
3705
3945
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("tr", { children: [
|
|
@@ -3736,23 +3976,14 @@ window.__ModuleLoader__.load({
|
|
|
3736
3976
|
children: point.description
|
|
3737
3977
|
})]
|
|
3738
3978
|
}),
|
|
3739
|
-
|
|
3979
|
+
shownRoles.map((role) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
3740
3980
|
className: PermissionCenterSection_module_css_default.permission,
|
|
3741
3981
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
3742
3982
|
type: "checkbox",
|
|
3743
3983
|
checked: draft[role.code]?.has(point.key) === true,
|
|
3744
3984
|
disabled: locked(role.code, point) || busy,
|
|
3745
3985
|
onChange: (event) => {
|
|
3746
|
-
|
|
3747
|
-
const next = new Set(current[role.code] ?? []);
|
|
3748
|
-
if (event.target.checked) next.add(point.key);
|
|
3749
|
-
else next.delete(point.key);
|
|
3750
|
-
return {
|
|
3751
|
-
...current,
|
|
3752
|
-
[role.code]: next
|
|
3753
|
-
};
|
|
3754
|
-
});
|
|
3755
|
-
setDirty((current) => new Set(current).add(role.code));
|
|
3986
|
+
toggle(role.code, point.key, event.target.checked);
|
|
3756
3987
|
}
|
|
3757
3988
|
}), global && (isDepartmentRole(role.code) || isAppRole(role.code)) ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
3758
3989
|
className: PermissionCenterSection_module_css_default.onlyAdmin,
|
|
@@ -3800,7 +4031,66 @@ window.__ModuleLoader__.load({
|
|
|
3800
4031
|
]
|
|
3801
4032
|
});
|
|
3802
4033
|
}
|
|
3803
|
-
function
|
|
4034
|
+
function MemberRoleCell({ member, visibleRoles, locked, busy, t, onGrant, onRevoke }) {
|
|
4035
|
+
const [selected, setSelected] = (0, react.useState)("");
|
|
4036
|
+
const roles = visibleRoles?.roles ?? [];
|
|
4037
|
+
const canGrant = (role) => {
|
|
4038
|
+
if (visibleRoles === null || visibleRoles.actorLevel >= role.level) return false;
|
|
4039
|
+
if (!role.departmentScoped) return true;
|
|
4040
|
+
return member.departmentCode !== void 0 && visibleRoles.departmentCodes.includes(member.departmentCode);
|
|
4041
|
+
};
|
|
4042
|
+
const grantable = roles.filter(canGrant);
|
|
4043
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
4044
|
+
className: PermissionCenterSection_module_css_default.roleCell,
|
|
4045
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
4046
|
+
className: PermissionCenterSection_module_css_default.roleTags,
|
|
4047
|
+
children: member.roleCodes.map((code) => {
|
|
4048
|
+
const role = roles.find((item) => item.code === code);
|
|
4049
|
+
const revocable = role !== void 0 && canGrant(role);
|
|
4050
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
4051
|
+
className: PermissionCenterSection_module_css_default.roleTag,
|
|
4052
|
+
children: [role?.name ?? code, revocable && !locked ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
4053
|
+
type: "button",
|
|
4054
|
+
className: PermissionCenterSection_module_css_default.roleRevoke,
|
|
4055
|
+
title: t("permRevoke"),
|
|
4056
|
+
"aria-label": t("permRevoke") + " " + (role?.name ?? code),
|
|
4057
|
+
disabled: busy,
|
|
4058
|
+
onClick: () => {
|
|
4059
|
+
onRevoke(member.userId, code);
|
|
4060
|
+
},
|
|
4061
|
+
children: "×"
|
|
4062
|
+
}) : null]
|
|
4063
|
+
}, code);
|
|
4064
|
+
})
|
|
4065
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
4066
|
+
className: PermissionCenterSection_module_css_default.roleGrant,
|
|
4067
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("select", {
|
|
4068
|
+
value: selected,
|
|
4069
|
+
disabled: locked || busy || grantable.length === 0,
|
|
4070
|
+
onChange: (event) => {
|
|
4071
|
+
setSelected(event.target.value);
|
|
4072
|
+
},
|
|
4073
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
4074
|
+
value: "",
|
|
4075
|
+
children: t("permGrantSelect")
|
|
4076
|
+
}), grantable.map((role) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
4077
|
+
value: role.code,
|
|
4078
|
+
children: role.name
|
|
4079
|
+
}, role.code))]
|
|
4080
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
4081
|
+
size: "sm",
|
|
4082
|
+
variant: "outline",
|
|
4083
|
+
disabled: locked || busy || selected === "",
|
|
4084
|
+
onClick: () => {
|
|
4085
|
+
onGrant(member.userId, selected, member.departmentCode);
|
|
4086
|
+
setSelected("");
|
|
4087
|
+
},
|
|
4088
|
+
children: t("permGrant")
|
|
4089
|
+
})]
|
|
4090
|
+
})]
|
|
4091
|
+
});
|
|
4092
|
+
}
|
|
4093
|
+
function Members({ members, writable, actorRole, actorUserId, actorDepartmentCode, visibleRoles, busy, t, onSave, onGrant, onRevoke }) {
|
|
3804
4094
|
const [page, setPage] = (0, react.useState)(0);
|
|
3805
4095
|
const protectedMember = (member) => member.roleCodes.some((code) => {
|
|
3806
4096
|
if (code === "SUPER_ADMIN" || code === "超级管理员" || code === "ADMIN" || code === "管理员") return true;
|
|
@@ -3853,26 +4143,14 @@ window.__ModuleLoader__.load({
|
|
|
3853
4143
|
}) : null
|
|
3854
4144
|
] }),
|
|
3855
4145
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: member.departmentPath?.map((entry) => entry.name).join(" / ") ?? "—" }),
|
|
3856
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
"管理员",
|
|
3865
|
-
"部门管理员",
|
|
3866
|
-
"运营人员",
|
|
3867
|
-
"应用人员"
|
|
3868
|
-
] : [
|
|
3869
|
-
"部门管理员",
|
|
3870
|
-
"运营人员",
|
|
3871
|
-
"应用人员"
|
|
3872
|
-
]).map((role) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("option", {
|
|
3873
|
-
value: role,
|
|
3874
|
-
children: role
|
|
3875
|
-
}, role))
|
|
4146
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(MemberRoleCell, {
|
|
4147
|
+
member,
|
|
4148
|
+
visibleRoles,
|
|
4149
|
+
locked,
|
|
4150
|
+
busy,
|
|
4151
|
+
t,
|
|
4152
|
+
onGrant,
|
|
4153
|
+
onRevoke
|
|
3876
4154
|
}) })
|
|
3877
4155
|
]
|
|
3878
4156
|
}, member.userId);
|
|
@@ -4645,18 +4923,18 @@ window.__ModuleLoader__.load({
|
|
|
4645
4923
|
document.head.appendChild(tag);
|
|
4646
4924
|
}
|
|
4647
4925
|
var WorkspaceUpgradePrompt_module_css_default = {
|
|
4926
|
+
"dialogText": "razUfG_dialogText",
|
|
4648
4927
|
"sessionTitle": "razUfG_sessionTitle",
|
|
4649
|
-
"title": "razUfG_title",
|
|
4650
|
-
"sessionRow": "razUfG_sessionRow",
|
|
4651
|
-
"sessionList": "razUfG_sessionList",
|
|
4652
|
-
"banner": "razUfG_banner",
|
|
4653
4928
|
"body": "razUfG_body",
|
|
4654
|
-
"sessionPath": "razUfG_sessionPath",
|
|
4655
4929
|
"copy": "razUfG_copy",
|
|
4656
|
-
"
|
|
4930
|
+
"sessionPath": "razUfG_sessionPath",
|
|
4657
4931
|
"dialogBody": "razUfG_dialogBody",
|
|
4932
|
+
"sessionRow": "razUfG_sessionRow",
|
|
4933
|
+
"title": "razUfG_title",
|
|
4658
4934
|
"actions": "razUfG_actions",
|
|
4659
|
-
"error": "razUfG_error"
|
|
4935
|
+
"error": "razUfG_error",
|
|
4936
|
+
"sessionList": "razUfG_sessionList",
|
|
4937
|
+
"banner": "razUfG_banner"
|
|
4660
4938
|
};
|
|
4661
4939
|
//#endregion
|
|
4662
4940
|
//#region src/client/WorkspaceUpgradePrompt.tsx
|
|
@@ -5197,7 +5475,19 @@ window.__ModuleLoader__.load({
|
|
|
5197
5475
|
nonce: typeof record.nonce === "string" ? record.nonce : void 0
|
|
5198
5476
|
};
|
|
5199
5477
|
};
|
|
5200
|
-
|
|
5478
|
+
/**
|
|
5479
|
+
* 读 DSH 当前明暗。不同 DSH 版本/主题实现落点不同,按优先级兜底:
|
|
5480
|
+
* 1. `html.dark`(部分版本只切根节点 class);
|
|
5481
|
+
* 2. `html[data-theme="dark"]`;
|
|
5482
|
+
* 3. `body[data-ds-dark-theme]`(0.2.4 的官方 boot-theme 落点)。
|
|
5483
|
+
* 不能只看 body 属性:版本只切 html class 时 body 会一直保留首屏值。
|
|
5484
|
+
*/
|
|
5485
|
+
const readHostTheme = () => {
|
|
5486
|
+
const root = document.documentElement;
|
|
5487
|
+
if (root.classList.contains("dark")) return "dark";
|
|
5488
|
+
if (root.dataset.theme === "dark") return "dark";
|
|
5489
|
+
return document.body.hasAttribute("data-ds-dark-theme") ? "dark" : "light";
|
|
5490
|
+
};
|
|
5201
5491
|
/**
|
|
5202
5492
|
* 门户 origin 归一化:同源代理部署(DSH 挂在门户路径前缀下,如 `/dsh/`)里,host config
|
|
5203
5493
|
* 可能仍返回本机开发 origin(如 `http://127.0.0.1:3000`)。iframe 必须落在**当前门户
|
|
@@ -5405,17 +5695,26 @@ window.__ModuleLoader__.load({
|
|
|
5405
5695
|
}, []);
|
|
5406
5696
|
(0, react.useEffect)(() => {
|
|
5407
5697
|
let current = readHostTheme();
|
|
5408
|
-
const
|
|
5698
|
+
const check = () => {
|
|
5409
5699
|
const next = readHostTheme();
|
|
5410
5700
|
if (next === current) return;
|
|
5411
5701
|
current = next;
|
|
5412
5702
|
postTheme(next);
|
|
5703
|
+
};
|
|
5704
|
+
const rootObserver = new MutationObserver(check);
|
|
5705
|
+
rootObserver.observe(document.documentElement, {
|
|
5706
|
+
attributes: true,
|
|
5707
|
+
attributeFilter: ["class", "data-theme"]
|
|
5413
5708
|
});
|
|
5414
|
-
|
|
5709
|
+
const bodyObserver = new MutationObserver(check);
|
|
5710
|
+
bodyObserver.observe(document.body, {
|
|
5415
5711
|
attributes: true,
|
|
5416
5712
|
attributeFilter: ["data-ds-dark-theme"]
|
|
5417
5713
|
});
|
|
5418
|
-
return () =>
|
|
5714
|
+
return () => {
|
|
5715
|
+
rootObserver.disconnect();
|
|
5716
|
+
bodyObserver.disconnect();
|
|
5717
|
+
};
|
|
5419
5718
|
}, [postTheme]);
|
|
5420
5719
|
(0, react.useEffect)(() => {
|
|
5421
5720
|
postFilter();
|
|
@@ -5631,6 +5930,17 @@ window.__ModuleLoader__.load({
|
|
|
5631
5930
|
reviewSettingsWaiting: "Review settings API is waiting for the backend (task-39).",
|
|
5632
5931
|
permNav: "Permissions",
|
|
5633
5932
|
permTitle: "Permission centre",
|
|
5933
|
+
permRefresh: "Refresh",
|
|
5934
|
+
permGroupRoles: "Roles",
|
|
5935
|
+
permGroupOrg: "Organisation",
|
|
5936
|
+
permGroupResources: "Resources",
|
|
5937
|
+
permRoleSearch: "Search roles",
|
|
5938
|
+
permGrant: "Grant",
|
|
5939
|
+
permRevoke: "Revoke role",
|
|
5940
|
+
permGrantSelect: "Select a role…",
|
|
5941
|
+
permTranspose: "Transpose matrix",
|
|
5942
|
+
permRoleColumn: "Role",
|
|
5943
|
+
permRoleEmpty: "No matching roles",
|
|
5634
5944
|
permTabRoles: "Role permissions",
|
|
5635
5945
|
permTabMembers: "Member roles",
|
|
5636
5946
|
permTabDepartments: "Departments",
|
|
@@ -5780,6 +6090,17 @@ window.__ModuleLoader__.load({
|
|
|
5780
6090
|
reviewSettingsWaiting: "审核设置 API 待后端联调(task-39)。",
|
|
5781
6091
|
permNav: "权限",
|
|
5782
6092
|
permTitle: "权限中心",
|
|
6093
|
+
permRefresh: "刷新",
|
|
6094
|
+
permGroupRoles: "角色",
|
|
6095
|
+
permGroupOrg: "组织",
|
|
6096
|
+
permGroupResources: "资源",
|
|
6097
|
+
permRoleSearch: "搜索角色",
|
|
6098
|
+
permGrant: "授予",
|
|
6099
|
+
permRevoke: "撤销角色",
|
|
6100
|
+
permGrantSelect: "选择角色…",
|
|
6101
|
+
permTranspose: "转置矩阵",
|
|
6102
|
+
permRoleColumn: "角色",
|
|
6103
|
+
permRoleEmpty: "没有匹配的角色",
|
|
5783
6104
|
permTabRoles: "角色权限",
|
|
5784
6105
|
permTabMembers: "成员角色",
|
|
5785
6106
|
permTabDepartments: "部门",
|