@ximatai/muyun-web-app 0.26.9 → 0.26.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/{MetadataOrchestrationView-CzhAgEdX.js → MetadataOrchestrationView-BhtVwJII.js} +182 -182
  2. package/dist/{ModuleActionManagementView-CM2d8jPO.js → ModuleActionManagementView-DpZS-xAD.js} +70 -70
  3. package/dist/RoleAuthorizationView-8lilhtMB.js +646 -0
  4. package/dist/{RoleDetailWorkspaceView-CzaQ3Dz1.js → RoleDetailWorkspaceView-CFha6JHn.js} +1 -1
  5. package/dist/{RoleManagementView-nY7qu4GF.js → RoleManagementView-0_KDrzgh.js} +511 -514
  6. package/dist/index.css +1 -1
  7. package/dist/index.js +282 -302
  8. package/dist/{platform-components-CIi6GdC9.js → platform-components-oRIsIoxu.js} +2060 -1893
  9. package/dist/types/app/StaticRoutePageHost.vue.d.ts +2 -0
  10. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -2
  11. package/dist/types/consumer/index.d.ts +1 -1
  12. package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +3 -1
  13. package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +2 -1
  14. package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +3 -1
  15. package/dist/types/dynamic-page-runtime/ModulePageListExpansionSurface.vue.d.ts +2 -1
  16. package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +2 -1
  17. package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansions.vue.d.ts +2 -1
  18. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +3 -1
  19. package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +7 -2
  20. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +2 -0
  21. package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +69 -15
  22. package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +3 -2
  23. package/dist/types/dynamic-page-runtime/index.d.ts +2 -1
  24. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +35 -3
  25. package/dist/types/dynamic-page-runtime/navigatorEntrySelection.d.ts +18 -0
  26. package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +8 -0
  27. package/dist/types/dynamic-page-runtime/pageNavigatorItemModel.d.ts +13 -0
  28. package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +9 -8
  29. package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +6 -0
  30. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +4 -0
  31. package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +2 -0
  32. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +5 -3
  33. package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +2 -0
  34. package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
  35. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +2 -0
  36. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +2 -0
  37. package/dist/types/platform-components/RecordPicker.vue.d.ts +2 -0
  38. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +7 -1
  39. package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +2 -0
  40. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +4 -0
  41. package/dist/types/platform-components/index.d.ts +0 -2
  42. package/dist/types/platform-components/recordFormFieldModel.d.ts +16 -2
  43. package/dist/types/platform-components/recordPickerConstraints.d.ts +2 -0
  44. package/dist/types/platform-workbench/Workbench.vue.d.ts +4 -2
  45. package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +4 -2
  46. package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +2 -0
  47. package/dist/types/web-contracts/index.d.ts +72 -2
  48. package/dist/types/web-core/http.d.ts +6 -0
  49. package/dist/types/web-core/module/index.d.ts +1 -1
  50. package/dist/types/web-core/module/moduleContext.d.ts +2 -1
  51. package/dist/types/web-core/module/staticModuleClient.d.ts +6 -0
  52. package/dist/types/web-core/realtime.d.ts +8 -0
  53. package/dist/{workspaceViews-CkERhK0K.js → workspaceViews-D-RiJ64o.js} +3341 -3011
  54. package/package.json +1 -1
  55. package/dist/DictionaryManagementView-CtIQpqVA.js +0 -1035
  56. package/dist/MenuManagementView-DJhkN2sG.js +0 -837
  57. package/dist/RoleAuthorizationView-jn_WUCeg.js +0 -599
  58. package/dist/SystemUserDetailWorkspaceView-CBvqmWvP.js +0 -17
  59. package/dist/SystemUserManagementView-AEomKvK7.js +0 -887
  60. package/dist/currentUserContext-B1lj1WgF.js +0 -11
  61. package/dist/types/platform-components/scopedResourceTreeModuleContext.d.ts +0 -6
  62. package/dist/types/views/DictionaryManagementView.vue.d.ts +0 -3
  63. package/dist/types/views/MenuManagementView.vue.d.ts +0 -3
  64. package/dist/types/views/SystemUserDetailWorkspaceView.vue.d.ts +0 -7
  65. package/dist/types/views/SystemUserManagementView.vue.d.ts +0 -7
  66. package/dist/types/views/dictionaryManagementState.d.ts +0 -215
  67. package/dist/types/views/menuManagementState.d.ts +0 -180
  68. package/dist/types/views/systemUserDetailWorkspaceSession.d.ts +0 -12
  69. package/dist/types/views/systemUserDetailWorkspaceView.d.ts +0 -5
  70. package/dist/workspaceViewSessions-B5g4M0rT.js +0 -51
@@ -1,11 +0,0 @@
1
- import { inject as e, provide as t } from "vue";
2
- //#region src/platform-admin-runtime/currentUserContext.ts
3
- var n = Symbol("muyun.current-user");
4
- function r(e) {
5
- t(n, e);
6
- }
7
- function i() {
8
- return e(n, void 0);
9
- }
10
- //#endregion
11
- export { i as n, r as t };
@@ -1,6 +0,0 @@
1
- import type { ModuleContext } from '../web-core/index';
2
- export interface ScopedResourceTreeModuleContextOptions {
3
- resourcePath?: string;
4
- emptyQueryScopeName?: string;
5
- }
6
- export declare function createScopedResourceTreeModuleContext<TRecord, TContextRecord = unknown>(context: ModuleContext<TContextRecord>, options: ScopedResourceTreeModuleContextOptions): ModuleContext<TRecord>;
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,7 +0,0 @@
1
- type __VLS_Props = {
2
- recordId: string;
3
- title?: string;
4
- };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
- declare const _default: typeof __VLS_export;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- type __VLS_Props = {
2
- recordId?: string;
3
- mode?: 'view' | 'edit';
4
- };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
- declare const _default: typeof __VLS_export;
7
- export default _default;
@@ -1,215 +0,0 @@
1
- import type { DictionaryCategory, DictionaryCategoryKind, DictionaryItem } from '../web-contracts/index';
2
- import { type ModuleContext, type StaticModuleTreeClient } from '../web-core/index';
3
- import type { UiConfirmOptions } from '../vue-ui-antdv/index';
4
- import { type PlatformActionResultReactionHandler } from '../platform-components/index';
5
- export type DictionaryCategoryMode = 'view' | 'edit' | 'create-root' | 'create-child';
6
- export type DictionaryItemMode = 'view' | 'edit' | 'create';
7
- type ConfirmAction = (options: UiConfirmOptions) => Promise<boolean>;
8
- export interface DictionaryManagementStateOptions {
9
- categoryActionResultReactionHandlers?: Record<string, PlatformActionResultReactionHandler | undefined>;
10
- itemActionResultReactionHandlers?: Record<string, PlatformActionResultReactionHandler | undefined>;
11
- }
12
- export declare function createDictionaryManagementState(categoryContext: ModuleContext<DictionaryCategory>, categoryClientOf: () => StaticModuleTreeClient<DictionaryCategory>, itemClientOf: (categoryId: string) => StaticModuleTreeClient<DictionaryItem>, currentApplicationAlias: () => string | undefined, confirmAction: ConfirmAction, options?: DictionaryManagementStateOptions): {
13
- categoryReloadKey: import("vue").Ref<number, number>;
14
- itemReloadKey: import("vue").Ref<number, number>;
15
- categories: import("vue").Ref<{
16
- applicationAlias?: string | undefined;
17
- alias?: string | undefined;
18
- categoryKind?: DictionaryCategoryKind | undefined;
19
- enabled?: boolean | undefined;
20
- parentId?: string | undefined;
21
- sortOrder?: number | undefined;
22
- title?: string | undefined;
23
- id?: string | undefined;
24
- tenantId?: string | undefined;
25
- version?: number | undefined;
26
- deleted?: boolean | undefined;
27
- deletedAt?: string | undefined;
28
- createdBy?: string | undefined;
29
- createdAt?: string | undefined;
30
- updatedBy?: string | undefined;
31
- updatedAt?: string | undefined;
32
- }[], DictionaryCategory[] | {
33
- applicationAlias?: string | undefined;
34
- alias?: string | undefined;
35
- categoryKind?: DictionaryCategoryKind | undefined;
36
- enabled?: boolean | undefined;
37
- parentId?: string | undefined;
38
- sortOrder?: number | undefined;
39
- title?: string | undefined;
40
- id?: string | undefined;
41
- tenantId?: string | undefined;
42
- version?: number | undefined;
43
- deleted?: boolean | undefined;
44
- deletedAt?: string | undefined;
45
- createdBy?: string | undefined;
46
- createdAt?: string | undefined;
47
- updatedBy?: string | undefined;
48
- updatedAt?: string | undefined;
49
- }[]>;
50
- selectedCategory: import("vue").Ref<DictionaryCategory | undefined, DictionaryCategory | undefined>;
51
- categoryDraft: import("vue").Ref<{
52
- applicationAlias?: string | undefined;
53
- alias?: string | undefined;
54
- categoryKind?: DictionaryCategoryKind | undefined;
55
- enabled?: boolean | undefined;
56
- parentId?: string | undefined;
57
- sortOrder?: number | undefined;
58
- title?: string | undefined;
59
- id?: string | undefined;
60
- tenantId?: string | undefined;
61
- version?: number | undefined;
62
- deleted?: boolean | undefined;
63
- deletedAt?: string | undefined;
64
- createdBy?: string | undefined;
65
- createdAt?: string | undefined;
66
- updatedBy?: string | undefined;
67
- updatedAt?: string | undefined;
68
- }, DictionaryCategory | {
69
- applicationAlias?: string | undefined;
70
- alias?: string | undefined;
71
- categoryKind?: DictionaryCategoryKind | undefined;
72
- enabled?: boolean | undefined;
73
- parentId?: string | undefined;
74
- sortOrder?: number | undefined;
75
- title?: string | undefined;
76
- id?: string | undefined;
77
- tenantId?: string | undefined;
78
- version?: number | undefined;
79
- deleted?: boolean | undefined;
80
- deletedAt?: string | undefined;
81
- createdBy?: string | undefined;
82
- createdAt?: string | undefined;
83
- updatedBy?: string | undefined;
84
- updatedAt?: string | undefined;
85
- }>;
86
- categoryMode: import("vue").Ref<DictionaryCategoryMode, DictionaryCategoryMode>;
87
- categorySaving: import("vue").Ref<boolean, boolean>;
88
- categoryError: import("vue").Ref<string | undefined, string | undefined>;
89
- items: import("vue").Ref<{
90
- categoryId?: string | undefined;
91
- categoryAlias?: string | undefined;
92
- code?: string | undefined;
93
- enabled?: boolean | undefined;
94
- parentId?: string | undefined;
95
- sortOrder?: number | undefined;
96
- title?: string | undefined;
97
- id?: string | undefined;
98
- tenantId?: string | undefined;
99
- version?: number | undefined;
100
- deleted?: boolean | undefined;
101
- deletedAt?: string | undefined;
102
- createdBy?: string | undefined;
103
- createdAt?: string | undefined;
104
- updatedBy?: string | undefined;
105
- updatedAt?: string | undefined;
106
- }[], DictionaryItem[] | {
107
- categoryId?: string | undefined;
108
- categoryAlias?: string | undefined;
109
- code?: string | undefined;
110
- enabled?: boolean | undefined;
111
- parentId?: string | undefined;
112
- sortOrder?: number | undefined;
113
- title?: string | undefined;
114
- id?: string | undefined;
115
- tenantId?: string | undefined;
116
- version?: number | undefined;
117
- deleted?: boolean | undefined;
118
- deletedAt?: string | undefined;
119
- createdBy?: string | undefined;
120
- createdAt?: string | undefined;
121
- updatedBy?: string | undefined;
122
- updatedAt?: string | undefined;
123
- }[]>;
124
- selectedItem: import("vue").Ref<DictionaryItem | undefined, DictionaryItem | undefined>;
125
- itemDraft: import("vue").Ref<{
126
- categoryId?: string | undefined;
127
- categoryAlias?: string | undefined;
128
- code?: string | undefined;
129
- enabled?: boolean | undefined;
130
- parentId?: string | undefined;
131
- sortOrder?: number | undefined;
132
- title?: string | undefined;
133
- id?: string | undefined;
134
- tenantId?: string | undefined;
135
- version?: number | undefined;
136
- deleted?: boolean | undefined;
137
- deletedAt?: string | undefined;
138
- createdBy?: string | undefined;
139
- createdAt?: string | undefined;
140
- updatedBy?: string | undefined;
141
- updatedAt?: string | undefined;
142
- }, DictionaryItem | {
143
- categoryId?: string | undefined;
144
- categoryAlias?: string | undefined;
145
- code?: string | undefined;
146
- enabled?: boolean | undefined;
147
- parentId?: string | undefined;
148
- sortOrder?: number | undefined;
149
- title?: string | undefined;
150
- id?: string | undefined;
151
- tenantId?: string | undefined;
152
- version?: number | undefined;
153
- deleted?: boolean | undefined;
154
- deletedAt?: string | undefined;
155
- createdBy?: string | undefined;
156
- createdAt?: string | undefined;
157
- updatedBy?: string | undefined;
158
- updatedAt?: string | undefined;
159
- }>;
160
- itemMode: import("vue").Ref<DictionaryItemMode, DictionaryItemMode>;
161
- itemLoading: import("vue").Ref<boolean, boolean>;
162
- itemSaving: import("vue").Ref<boolean, boolean>;
163
- itemError: import("vue").Ref<string | undefined, string | undefined>;
164
- selectedCategoryId: import("vue").ComputedRef<string | undefined>;
165
- selectedCategoryTitle: import("vue").ComputedRef<string>;
166
- selectedCategoryIsDictionary: import("vue").ComputedRef<boolean>;
167
- canCreateCategory: import("vue").ComputedRef<boolean>;
168
- canUpdateCategory: import("vue").ComputedRef<boolean>;
169
- canDeleteCategory: import("vue").ComputedRef<boolean>;
170
- canToggleCategory: import("vue").ComputedRef<boolean>;
171
- canQueryItem: import("vue").ComputedRef<boolean>;
172
- canTreeItem: import("vue").ComputedRef<boolean>;
173
- canCreateItem: import("vue").ComputedRef<boolean>;
174
- canUpdateItem: import("vue").ComputedRef<boolean>;
175
- canDeleteItem: import("vue").ComputedRef<boolean>;
176
- canToggleItem: import("vue").ComputedRef<boolean>;
177
- categoryReadonly: import("vue").ComputedRef<boolean>;
178
- itemReadonly: import("vue").ComputedRef<boolean>;
179
- categoryEditorTitle: import("vue").ComputedRef<string>;
180
- itemCardTitle: import("vue").ComputedRef<string>;
181
- handleCategoriesLoaded: (records: DictionaryCategory[]) => void;
182
- handleSelectCategory: (record: DictionaryCategory) => void;
183
- startCreateRootCategory: () => void;
184
- startCreateChildCategory: () => void;
185
- startEditCategory: () => void;
186
- cancelCategoryEdit: () => void;
187
- saveCategory: () => Promise<void>;
188
- toggleCategory: () => Promise<void>;
189
- deleteCategory: () => Promise<void>;
190
- handleItemsLoaded: (records: DictionaryItem[]) => void;
191
- loadItems: () => Promise<void>;
192
- selectItem: (record: DictionaryItem) => void;
193
- startCreateItem: () => void;
194
- startCreateChildItem: (parent: DictionaryItem) => void;
195
- startEditItem: () => void;
196
- cancelItemEdit: () => void;
197
- saveItem: () => Promise<void>;
198
- toggleItem: () => Promise<void>;
199
- deleteItem: () => Promise<void>;
200
- resetForApplication: () => void;
201
- };
202
- export declare function dictionaryCategoryTitleOf(record: DictionaryCategory | undefined): string;
203
- export declare function dictionaryItemTitleOf(record: DictionaryItem | undefined): string;
204
- export declare function dictionaryCategoryKindTitle(record: DictionaryCategory | undefined): "目录" | "字典";
205
- export declare function isDictionaryCategory(record: DictionaryCategory | undefined): boolean;
206
- export declare function isFolderCategory(record: DictionaryCategory | undefined): boolean;
207
- export declare function emptyDictionaryCategoryDraft(parentId?: string, applicationAlias?: string): DictionaryCategory;
208
- export declare function copyDictionaryCategory(record: DictionaryCategory): DictionaryCategory;
209
- export declare function normalizeDictionaryCategoryDraft(record: DictionaryCategory, applicationAlias?: string | undefined): DictionaryCategory;
210
- export declare function isValidDictionaryCategory(record: DictionaryCategory): boolean;
211
- export declare function emptyDictionaryItemDraft(category?: DictionaryCategory): DictionaryItem;
212
- export declare function copyDictionaryItem(record: DictionaryItem): DictionaryItem;
213
- export declare function normalizeDictionaryItemDraft(record: DictionaryItem, category: DictionaryCategory | undefined): DictionaryItem;
214
- export declare function isValidDictionaryItem(record: DictionaryItem): boolean;
215
- export {};
@@ -1,180 +0,0 @@
1
- import type { CurrentUser, MenuOpenMode, MenuPageMode, MenuRecord, MenuScheme } from '../web-contracts/index';
2
- import type { ModuleContext } from '../web-core/index';
3
- import type { UiConfirmOptions } from '../vue-ui-antdv/index';
4
- export type MenuSchemeMode = 'view' | 'edit' | 'create';
5
- export type MenuNodeMode = 'view' | 'edit' | 'create-root' | 'create-child';
6
- type ConfirmAction = (options: UiConfirmOptions) => Promise<boolean>;
7
- type MenuContextProvider = () => ModuleContext<MenuRecord>;
8
- type CurrentUserProvider = () => CurrentUser | undefined;
9
- export interface MenuManagementStateOptions {
10
- currentUser?: CurrentUserProvider;
11
- }
12
- export declare function createMenuManagementState(schemeContext: ModuleContext<MenuScheme>, menuContextProvider: MenuContextProvider, confirmAction: ConfirmAction, options?: MenuManagementStateOptions): {
13
- schemeReloadKey: import("vue").Ref<number, number>;
14
- menuReloadKey: import("vue").Ref<number, number>;
15
- schemes: import("vue").Ref<{
16
- alias?: string | undefined;
17
- scopeType?: import("../web-contracts/index").MenuScopeType | undefined;
18
- scopeId?: string | undefined;
19
- enabled?: boolean | undefined;
20
- sortOrder?: number | undefined;
21
- title?: string | undefined;
22
- id?: string | undefined;
23
- tenantId?: string | undefined;
24
- version?: number | undefined;
25
- deleted?: boolean | undefined;
26
- deletedAt?: string | undefined;
27
- createdBy?: string | undefined;
28
- createdAt?: string | undefined;
29
- updatedBy?: string | undefined;
30
- updatedAt?: string | undefined;
31
- }[], MenuScheme[] | {
32
- alias?: string | undefined;
33
- scopeType?: import("../web-contracts/index").MenuScopeType | undefined;
34
- scopeId?: string | undefined;
35
- enabled?: boolean | undefined;
36
- sortOrder?: number | undefined;
37
- title?: string | undefined;
38
- id?: string | undefined;
39
- tenantId?: string | undefined;
40
- version?: number | undefined;
41
- deleted?: boolean | undefined;
42
- deletedAt?: string | undefined;
43
- createdBy?: string | undefined;
44
- createdAt?: string | undefined;
45
- updatedBy?: string | undefined;
46
- updatedAt?: string | undefined;
47
- }[]>;
48
- selectedScheme: import("vue").Ref<MenuScheme | undefined, MenuScheme | undefined>;
49
- selectedMenu: import("vue").Ref<MenuRecord | undefined, MenuRecord | undefined>;
50
- schemeDraft: import("vue").Ref<{
51
- alias?: string | undefined;
52
- scopeType?: import("../web-contracts/index").MenuScopeType | undefined;
53
- scopeId?: string | undefined;
54
- enabled?: boolean | undefined;
55
- sortOrder?: number | undefined;
56
- title?: string | undefined;
57
- id?: string | undefined;
58
- tenantId?: string | undefined;
59
- version?: number | undefined;
60
- deleted?: boolean | undefined;
61
- deletedAt?: string | undefined;
62
- createdBy?: string | undefined;
63
- createdAt?: string | undefined;
64
- updatedBy?: string | undefined;
65
- updatedAt?: string | undefined;
66
- }, MenuScheme | {
67
- alias?: string | undefined;
68
- scopeType?: import("../web-contracts/index").MenuScopeType | undefined;
69
- scopeId?: string | undefined;
70
- enabled?: boolean | undefined;
71
- sortOrder?: number | undefined;
72
- title?: string | undefined;
73
- id?: string | undefined;
74
- tenantId?: string | undefined;
75
- version?: number | undefined;
76
- deleted?: boolean | undefined;
77
- deletedAt?: string | undefined;
78
- createdBy?: string | undefined;
79
- createdAt?: string | undefined;
80
- updatedBy?: string | undefined;
81
- updatedAt?: string | undefined;
82
- }>;
83
- menuDraft: import("vue").Ref<{
84
- id: string;
85
- title: string;
86
- schemeId: string;
87
- entryType?: import("../web-contracts/index").MenuEntryType | undefined;
88
- openMode?: MenuOpenMode | undefined;
89
- moduleAlias?: string | undefined;
90
- route?: string | undefined;
91
- externalUrl?: string | undefined;
92
- pageMode?: MenuPageMode | undefined;
93
- defaultUiConfigId?: string | undefined;
94
- defaultQueryTemplateId?: string | undefined;
95
- entryParamsJson?: string | undefined;
96
- enabled?: boolean | undefined;
97
- parentId?: string | undefined;
98
- sortOrder?: number | undefined;
99
- tenantId?: string | undefined;
100
- version?: number | undefined;
101
- deleted?: boolean | undefined;
102
- deletedAt?: string | undefined;
103
- createdBy?: string | undefined;
104
- createdAt?: string | undefined;
105
- updatedBy?: string | undefined;
106
- updatedAt?: string | undefined;
107
- }, MenuRecord | {
108
- id: string;
109
- title: string;
110
- schemeId: string;
111
- entryType?: import("../web-contracts/index").MenuEntryType | undefined;
112
- openMode?: MenuOpenMode | undefined;
113
- moduleAlias?: string | undefined;
114
- route?: string | undefined;
115
- externalUrl?: string | undefined;
116
- pageMode?: MenuPageMode | undefined;
117
- defaultUiConfigId?: string | undefined;
118
- defaultQueryTemplateId?: string | undefined;
119
- entryParamsJson?: string | undefined;
120
- enabled?: boolean | undefined;
121
- parentId?: string | undefined;
122
- sortOrder?: number | undefined;
123
- tenantId?: string | undefined;
124
- version?: number | undefined;
125
- deleted?: boolean | undefined;
126
- deletedAt?: string | undefined;
127
- createdBy?: string | undefined;
128
- createdAt?: string | undefined;
129
- updatedBy?: string | undefined;
130
- updatedAt?: string | undefined;
131
- }>;
132
- schemeMode: import("vue").Ref<MenuSchemeMode, MenuSchemeMode>;
133
- menuMode: import("vue").Ref<MenuNodeMode, MenuNodeMode>;
134
- savingScheme: import("vue").Ref<boolean, boolean>;
135
- savingMenu: import("vue").Ref<boolean, boolean>;
136
- selectedSchemeId: import("vue").ComputedRef<string | undefined>;
137
- selectedSchemeTitle: import("vue").ComputedRef<string>;
138
- selectedMenuTitle: import("vue").ComputedRef<string>;
139
- schemeReadonly: import("vue").ComputedRef<boolean>;
140
- menuReadonly: import("vue").ComputedRef<boolean>;
141
- canCreateScheme: import("vue").ComputedRef<boolean>;
142
- canUpdateScheme: import("vue").ComputedRef<boolean>;
143
- canDeleteScheme: import("vue").ComputedRef<boolean>;
144
- canToggleScheme: import("vue").ComputedRef<boolean>;
145
- canCreateMenu: import("vue").ComputedRef<boolean>;
146
- canUpdateMenu: import("vue").ComputedRef<boolean>;
147
- canDeleteMenu: import("vue").ComputedRef<boolean>;
148
- canToggleMenu: import("vue").ComputedRef<boolean>;
149
- schemeCardTitle: import("vue").ComputedRef<string>;
150
- menuCardTitle: import("vue").ComputedRef<string>;
151
- handleSchemesLoaded: (records: MenuScheme[]) => void;
152
- selectScheme: (record: MenuScheme) => void;
153
- handleMenusLoaded: (records: MenuRecord[]) => void;
154
- selectMenu: (record: MenuRecord) => void;
155
- startCreateScheme: () => void;
156
- startEditScheme: () => void;
157
- cancelSchemeEdit: () => void;
158
- startCreateRootMenu: () => void;
159
- startCreateChildMenu: (parent?: MenuRecord) => void;
160
- startEditMenu: () => void;
161
- cancelMenuEdit: () => void;
162
- saveScheme: () => Promise<void>;
163
- saveMenu: () => Promise<void>;
164
- toggleSchemeEnabled: () => Promise<void>;
165
- toggleMenuEnabled: () => Promise<void>;
166
- removeSelectedScheme: () => Promise<void>;
167
- removeSelectedMenu: () => Promise<void>;
168
- };
169
- export declare function schemeTitleOf(record: MenuScheme | undefined): string;
170
- export declare function menuTitleOf(record: MenuRecord | undefined): string;
171
- export declare function emptySchemeDraft(currentUser?: CurrentUser): MenuScheme;
172
- export declare function defaultMenuSchemeScope(currentUser?: CurrentUser): Pick<MenuScheme, 'tenantId' | 'scopeType' | 'scopeId'>;
173
- export declare function emptyMenuDraft(schemeId?: string): MenuRecord;
174
- export declare function copyScheme(record: MenuScheme): MenuScheme;
175
- export declare function copyMenu(record: MenuRecord): MenuRecord;
176
- export declare function normalizeSchemeDraft(record: MenuScheme, selected: MenuScheme | undefined, mode: MenuSchemeMode): MenuScheme;
177
- export declare function normalizeMenuDraft(record: MenuRecord, schemeId: string | undefined): MenuRecord;
178
- export declare function isValidScheme(record: MenuScheme): boolean;
179
- export declare function validateMenu(record: MenuRecord): "所属方案和菜单名称不能为空" | "入口菜单必须选择打开方式" | undefined;
180
- export {};
@@ -1,12 +0,0 @@
1
- import type { ResetPasswordResponse, UserAccount } from '../web-contracts/index';
2
- import { type SystemUserDetailWorkspaceViewInput } from './systemUserDetailWorkspaceView';
3
- export interface SystemUserDetailWorkspaceSession {
4
- selectedUser: UserAccount;
5
- draft: Partial<UserAccount>;
6
- mode: 'view' | 'edit';
7
- password: string;
8
- resetPasswordResult?: ResetPasswordResponse;
9
- }
10
- export declare function handOffSystemUserDetailWorkspaceSession(input: SystemUserDetailWorkspaceViewInput, session: SystemUserDetailWorkspaceSession): Promise<"accepted" | "rejected">;
11
- export declare function registerSystemUserDetailWorkspaceHandoffRecipient(input: SystemUserDetailWorkspaceViewInput, recipient: (session: SystemUserDetailWorkspaceSession) => boolean): () => void;
12
- export declare function takeSystemUserDetailWorkspaceSession(input: SystemUserDetailWorkspaceViewInput): SystemUserDetailWorkspaceSession | undefined;
@@ -1,5 +0,0 @@
1
- export interface SystemUserDetailWorkspaceViewInput {
2
- recordId: string;
3
- }
4
- /** A system account detail has a stable identity and can be resumed independently. */
5
- export declare const systemUserDetailWorkspaceView: import("../platform-workbench/workspaceViewContract.ts").WorkspaceViewDefinition<SystemUserDetailWorkspaceViewInput>;
@@ -1,51 +0,0 @@
1
- import { L as e, O as t } from "./workspaceViews-CkERhK0K.js";
2
- import { computed as n, toValue as r } from "vue";
3
- //#region src/platform-admin-runtime/useWorkspaceViewPromotion.ts
4
- function i(e) {
5
- return e.hasStableIdentity && e.busy !== !0 && e.canChangeHost !== !1;
6
- }
7
- function a(a) {
8
- let o = e();
9
- return n(() => {
10
- let e = r(a.input);
11
- if (!(!e || !i(r(a.eligibility)) || !o)) return {
12
- title: "固定为页签",
13
- promote: async () => {
14
- if (await a.beforePromote?.(e) === !1) {
15
- a.onPromotionRejected?.();
16
- return;
17
- }
18
- let n = o.openPage(t(a.view, e, "tab", r(a.title)));
19
- a.onPromoted?.(n);
20
- }
21
- };
22
- });
23
- }
24
- //#endregion
25
- //#region src/platform-admin-runtime/workspaceViewSessions.ts
26
- var o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
27
- function c(e, t) {
28
- return `${e.type}:${f(t)}`;
29
- }
30
- async function l(e, t, n) {
31
- let r = c(e, t), i = s.get(r), a = i && [...i].at(-1);
32
- return a ? await a(p(n)) ? "accepted" : "rejected" : (o.set(r, p(n)), "accepted");
33
- }
34
- function u(e, t, n) {
35
- let r = c(e, t), i = s.get(r) ?? /* @__PURE__ */ new Set();
36
- return i.add(n), s.set(r, i), () => {
37
- i.delete(n), i.size === 0 && s.delete(r);
38
- };
39
- }
40
- function d(e, t) {
41
- let n = c(e, t), r = o.get(n);
42
- return o.delete(n), r;
43
- }
44
- function f(e) {
45
- return Array.isArray(e) ? `[${e.map(f).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([e], [t]) => e.localeCompare(t)).map(([e, t]) => `${JSON.stringify(e)}:${f(t)}`).join(",")}}` : JSON.stringify(e);
46
- }
47
- function p(e) {
48
- return JSON.parse(JSON.stringify(e));
49
- }
50
- //#endregion
51
- export { a as i, u as n, d as r, l as t };