@ximatai/muyun-web-app 0.26.9 → 0.26.11

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 (99) hide show
  1. package/dist/{MetadataOrchestrationView-CzhAgEdX.js → MetadataOrchestrationView-F_Bmfn9K.js} +188 -188
  2. package/dist/{ModuleActionManagementView-CM2d8jPO.js → ModuleActionManagementView-Db_3Twom.js} +70 -70
  3. package/dist/RoleDetailWorkspaceView-UOm1ejGH.js +1369 -0
  4. package/dist/index.css +1 -1
  5. package/dist/index.js +274 -299
  6. package/dist/{platform-components-CIi6GdC9.js → platform-components-59b4qzUL.js} +2738 -2453
  7. package/dist/types/app/StaticRoutePageHost.vue.d.ts +2 -0
  8. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -2
  9. package/dist/types/consumer/index.d.ts +1 -1
  10. package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +3 -1
  11. package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +2 -1
  12. package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +3 -1
  13. package/dist/types/dynamic-page-runtime/ModulePageListExpansionSurface.vue.d.ts +2 -1
  14. package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansion.vue.d.ts +2 -1
  15. package/dist/types/dynamic-page-runtime/ModulePageListRelationExpansions.vue.d.ts +2 -1
  16. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +3 -1
  17. package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +7 -2
  18. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +5 -1
  19. package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +5 -3
  20. package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +95 -41
  21. package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +3 -2
  22. package/dist/types/dynamic-page-runtime/index.d.ts +2 -2
  23. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +103 -3
  24. package/dist/types/dynamic-page-runtime/navigatorEntrySelection.d.ts +18 -0
  25. package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +8 -0
  26. package/dist/types/dynamic-page-runtime/pageNavigatorItemModel.d.ts +13 -0
  27. package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +9 -8
  28. package/dist/types/formula/FormulaRuntime.d.ts +3 -0
  29. package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +6 -0
  30. package/dist/types/{views/SystemUserManagementView.vue.d.ts → platform-admin-runtime/role/RoleAccountGrantDrawerSurface.vue.d.ts} +2 -2
  31. package/dist/types/{views/UserDetailRouteView.vue.d.ts → platform-admin-runtime/role/RoleAuthorizationDrawerSurface.vue.d.ts} +2 -3
  32. package/dist/types/{views/SystemUserDetailWorkspaceView.vue.d.ts → platform-admin-runtime/role/RoleEmploymentGrantDrawerSurface.vue.d.ts} +2 -2
  33. package/dist/types/platform-admin-runtime/role/RoleEnumTitleCell.vue.d.ts +8 -0
  34. package/dist/types/{dynamic-page-runtime/DynamicModuleHost.vue.d.ts → platform-admin-runtime/role/RoleGroupMemberFormField.vue.d.ts} +2 -2
  35. package/dist/types/platform-admin-runtime/role/RoleScopeTree.vue.d.ts +7 -0
  36. package/dist/types/platform-admin-runtime/roleModulePageEnhancement.d.ts +7 -0
  37. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +5 -1
  38. package/dist/types/platform-components/DrawerOperationBar.vue.d.ts +4 -2
  39. package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +2 -0
  40. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +6 -3
  41. package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +4 -2
  42. package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +2 -0
  43. package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
  44. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +2 -0
  45. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +1 -1
  46. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +2 -0
  47. package/dist/types/platform-components/RecordPicker.vue.d.ts +3 -1
  48. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +13 -4
  49. package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +2 -0
  50. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +5 -1
  51. package/dist/types/platform-components/index.d.ts +1 -3
  52. package/dist/types/platform-components/recordFormFieldModel.d.ts +16 -2
  53. package/dist/types/platform-components/recordPickerConstraints.d.ts +2 -0
  54. package/dist/types/platform-components/scopedTreeModuleContext.d.ts +2 -2
  55. package/dist/types/platform-components/staticTreeResourceModuleContext.d.ts +3 -3
  56. package/dist/types/platform-workbench/Workbench.vue.d.ts +4 -2
  57. package/dist/types/views/EmployeeEmploymentTable.vue.d.ts +5 -0
  58. package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +6 -2
  59. package/dist/types/views/RoleAuthorizationView.vue.d.ts +7 -0
  60. package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +5 -1
  61. package/dist/types/views/roleGrantClient.d.ts +8 -5
  62. package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +4 -2
  63. package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +2 -0
  64. package/dist/types/vue-ui-antdv/components/UiTable.vue.d.ts +1 -0
  65. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +20 -1
  66. package/dist/types/vue-ui-antdv/types.d.ts +6 -0
  67. package/dist/types/web-contracts/index.d.ts +81 -4
  68. package/dist/types/web-core/http.d.ts +6 -0
  69. package/dist/types/web-core/module/index.d.ts +1 -1
  70. package/dist/types/web-core/module/moduleContext.d.ts +2 -1
  71. package/dist/types/web-core/module/staticModuleClient.d.ts +10 -4
  72. package/dist/types/web-core/realtime.d.ts +8 -0
  73. package/dist/workspaceViews-BvV8mpML.js +11149 -0
  74. package/package.json +1 -1
  75. package/dist/DictionaryManagementView-CtIQpqVA.js +0 -1035
  76. package/dist/MenuManagementView-DJhkN2sG.js +0 -837
  77. package/dist/RoleAuthorizationView-jn_WUCeg.js +0 -599
  78. package/dist/RoleDetailWorkspaceView-CzaQ3Dz1.js +0 -26
  79. package/dist/RoleManagementView-nY7qu4GF.js +0 -1951
  80. package/dist/SystemUserDetailWorkspaceView-CBvqmWvP.js +0 -17
  81. package/dist/SystemUserManagementView-AEomKvK7.js +0 -887
  82. package/dist/currentUserContext-B1lj1WgF.js +0 -11
  83. package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +0 -39
  84. package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +0 -5
  85. package/dist/types/platform-components/scopedResourceTreeModuleContext.d.ts +0 -6
  86. package/dist/types/views/DictionaryManagementView.vue.d.ts +0 -3
  87. package/dist/types/views/MenuManagementView.vue.d.ts +0 -3
  88. package/dist/types/views/UserDetailContent.vue.d.ts +0 -32
  89. package/dist/types/views/UserManagementListView.vue.d.ts +0 -3
  90. package/dist/types/views/UserManagementView.vue.d.ts +0 -3
  91. package/dist/types/views/dictionaryManagementState.d.ts +0 -215
  92. package/dist/types/views/menuManagementState.d.ts +0 -180
  93. package/dist/types/views/systemUserDetailWorkspaceSession.d.ts +0 -12
  94. package/dist/types/views/systemUserDetailWorkspaceView.d.ts +0 -5
  95. package/dist/types/views/useUserSessionRows.d.ts +0 -28
  96. package/dist/types/views/userDetailStateModel.d.ts +0 -9
  97. package/dist/types/views/userManagementRouteState.d.ts +0 -11
  98. package/dist/workspaceViewSessions-B5g4M0rT.js +0 -51
  99. package/dist/workspaceViews-CkERhK0K.js +0 -8748
@@ -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,39 +0,0 @@
1
- import type { QueryListRecord, RecordActionItem } from '../platform-components/index';
2
- import type { ModuleContext } from '../web-core/index';
3
- import type { ModulePageRecordActionContribution } from './modulePageEnhancements';
4
- type __VLS_Props = {
5
- context: ModuleContext<QueryListRecord>;
6
- record?: QueryListRecord;
7
- mode: 'create' | 'edit' | 'view';
8
- saving?: boolean;
9
- detailLoading?: boolean;
10
- detailLoadFailed?: boolean;
11
- recycleBinActive?: boolean;
12
- actions?: ModulePageRecordActionContribution[];
13
- configuredActions?: RecordActionItem[];
14
- showStandardViewActions?: boolean;
15
- };
16
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
- delete: () => any;
18
- edit: () => any;
19
- save: () => any;
20
- cancel: () => any;
21
- detailAction: (action: RecordActionItem) => any;
22
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
- onDelete?: (() => any) | undefined;
24
- onEdit?: (() => any) | undefined;
25
- onSave?: (() => any) | undefined;
26
- onCancel?: (() => any) | undefined;
27
- onDetailAction?: ((action: RecordActionItem) => any) | undefined;
28
- }>, {
29
- record: QueryListRecord;
30
- actions: ModulePageRecordActionContribution[];
31
- saving: boolean;
32
- detailLoading: boolean;
33
- detailLoadFailed: boolean;
34
- recycleBinActive: boolean;
35
- configuredActions: RecordActionItem[];
36
- showStandardViewActions: boolean;
37
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
- declare const _default: typeof __VLS_export;
39
- export default _default;
@@ -1,5 +0,0 @@
1
- /**
2
- * @deprecated Standard module pages use `moduleDetailStateModel`. Remove after
3
- * extensions built before the rename have migrated their state-model imports.
4
- */
5
- export { canMutateModuleDetail as canMutateDynamicModuleDetail, shouldCommitModuleDetailRequest as shouldCommitDynamicModuleDetailRequest, type ModuleDetailMutationState as DynamicModuleDetailMutationState, type ModuleDetailRequestState as DynamicModuleDetailRequestState, } from './moduleDetailStateModel';
@@ -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,32 +0,0 @@
1
- import { type RecordDetailDisplayResolver, type RecordFormFieldDescriptor, type RecordFormFieldFallback, type RecordFormFieldValue } from '../platform-components/index';
2
- import type { ResetPasswordResponse, UserAccount } from '../web-contracts/index';
3
- import type { UserDetailMode } from './userDetailStateModel';
4
- type __VLS_Props = {
5
- mode: UserDetailMode;
6
- draft: Partial<UserAccount>;
7
- selectedUser?: UserAccount;
8
- loading: boolean;
9
- loadFailed: boolean;
10
- saving: boolean;
11
- tenantTitle: string;
12
- fields: Map<string, RecordFormFieldDescriptor>;
13
- fallback: Record<string, RecordFormFieldFallback>;
14
- fieldNames: string[];
15
- password: string;
16
- resetPasswordResult?: ResetPasswordResponse;
17
- displayOf?: RecordDetailDisplayResolver;
18
- disabledOf?: (fieldName: string) => boolean;
19
- };
20
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
- save: () => any;
22
- retry: () => any;
23
- "update:field": (fieldName: string, value: RecordFormFieldValue) => any;
24
- "update:password": (value: string) => any;
25
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
26
- onSave?: (() => any) | undefined;
27
- onRetry?: (() => any) | undefined;
28
- "onUpdate:field"?: ((fieldName: string, value: RecordFormFieldValue) => any) | undefined;
29
- "onUpdate:password"?: ((value: string) => any) | undefined;
30
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
31
- declare const _default: typeof __VLS_export;
32
- 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,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,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,28 +0,0 @@
1
- export { userSessionPresenceTitle } from '../platform-components/index';
2
- import type { UserAccount, UserSessionView, WebBusinessRealtimeEvent } from '../web-contracts/index';
3
- import type { ModuleContext } from '../web-core/index';
4
- export interface UserSessionState {
5
- records: UserSessionView[];
6
- loading: boolean;
7
- error?: string;
8
- }
9
- export interface UserSessionRowsOptions {
10
- context: ModuleContext<UserAccount>;
11
- source: string;
12
- }
13
- export declare function useUserSessionRows(options: UserSessionRowsOptions): {
14
- expandedUserKeys: import("vue").Ref<string[], string[]>;
15
- handleUserListLoaded: (records: Array<{
16
- id?: string;
17
- }>) => void;
18
- handleUserRowExpand: (record: {
19
- id?: string;
20
- }, expanded: boolean) => void;
21
- handleUserSessionBusinessEvent: (event: WebBusinessRealtimeEvent) => void;
22
- loadUserSessions: (userId: string | undefined) => void;
23
- resetUserSessionRows: () => void;
24
- userOnlineStatusTitle: (record: {
25
- id?: string;
26
- }) => string;
27
- userSessionState: (userId: string | undefined) => UserSessionState;
28
- };
@@ -1,9 +0,0 @@
1
- export type UserDetailMode = 'view' | 'create' | 'edit' | 'resetPassword';
2
- export interface UserDetailRequestState {
3
- activeRequestSeq: number;
4
- requestSeq: number;
5
- selectedUserKey?: string;
6
- recordId: string;
7
- }
8
- /** 只有仍属于当前用户和当前请求的结果才能写入页面。 */
9
- export declare function shouldCommitUserDetailRequest(state: UserDetailRequestState): boolean;
@@ -1,11 +0,0 @@
1
- import type { LocationQuery } from 'vue-router';
2
- export type UserRouteAction = 'add' | 'view' | 'edit';
3
- export interface UserManagementRouteState {
4
- action?: UserRouteAction;
5
- userId?: string;
6
- error?: string;
7
- }
8
- /** 用户地址只表达业务页面状态;页签实例由工作台内部状态管理。 */
9
- export declare function userManagementRouteStateOf(routePath: string | undefined, userId: string | undefined, query: LocationQuery): UserManagementRouteState;
10
- /** 给每个地址操作提供页面标题的通用文字。 */
11
- export declare function userActionTitle(action: UserRouteAction): string;
@@ -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 };