@das-fed/web 7.1.0-seres.2 → 7.1.0-seres.21

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 (31) hide show
  1. package/{packages/main-app-framework/index-BLOwaLgb.js → index-B-pz3kYQ.js} +1 -1
  2. package/{packages/main-app-framework/index-CwPhZ7VL.js → index-BZSbvZk_.js} +1 -1
  3. package/index-BZSbvZk_.js.gz +0 -0
  4. package/{index-BJDVxFOS.js → index-Bs326NNA.js} +5073 -4987
  5. package/index-Bs326NNA.js.gz +0 -0
  6. package/index.js +1 -1
  7. package/package.json +6 -6
  8. package/packages/create-das-web-app/index.js.gz +0 -0
  9. package/packages/i18n/index.js +40 -42
  10. package/packages/i18n/index.js.gz +0 -0
  11. package/packages/layout/index.js.gz +0 -0
  12. package/packages/layout/style.css.gz +0 -0
  13. package/{index-C2e_Is65.js → packages/main-app-framework/index-BJZEWtDp.js} +1 -1
  14. package/{index-Dad2ayuK.js → packages/main-app-framework/index-BZdR_WGn.js} +1 -1
  15. package/packages/main-app-framework/index-BZdR_WGn.js.gz +0 -0
  16. package/packages/main-app-framework/{index-CuDzwEwX.js → index-Cvx6unKV.js} +5575 -5487
  17. package/packages/main-app-framework/index-Cvx6unKV.js.gz +0 -0
  18. package/packages/main-app-framework/index.js +1 -1
  19. package/packages/main-app-framework/style.css.gz +0 -0
  20. package/packages/micro-frontend/index.js.gz +0 -0
  21. package/packages/style/style.css.gz +0 -0
  22. package/packages/theme/index.js.gz +0 -0
  23. package/style.css.gz +0 -0
  24. package/types/i18n/index.d.ts +4 -0
  25. package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -0
  26. package/types/main-app-framework/init-config/get-project-config/index.d.ts +5 -0
  27. package/types/main-app-framework/init-config/get-project-config/station-reserve-entry.d.ts +66 -0
  28. package/index-BJDVxFOS.js.gz +0 -0
  29. package/index-Dad2ayuK.js.gz +0 -0
  30. package/packages/main-app-framework/index-CuDzwEwX.js.gz +0 -0
  31. package/packages/main-app-framework/index-CwPhZ7VL.js.gz +0 -0
@@ -1,6 +1,6 @@
1
1
  import '@das-fed/web/packages/main-app-framework/style.css';
2
2
  import "vue";
3
- import { m as a } from "./index-CuDzwEwX.js";
3
+ import { m as a } from "./index-Cvx6unKV.js";
4
4
  import "@das-fed/web/packages/i18n/index";
5
5
  export {
6
6
  a as mainAppFramework
Binary file
Binary file
Binary file
package/style.css.gz CHANGED
Binary file
@@ -2,6 +2,10 @@ declare const customLangeData: any;
2
2
  declare const currentLang: import('vue').Ref<any, any>;
3
3
  declare const setLangRule: (data?: any, type?: "global" | "custom") => void;
4
4
  declare const setI18nRule: (data?: any, type?: "global" | "custom") => void;
5
+ /**
6
+ * 初始化主应用及所有微应用的国际化配置。
7
+ * @param opt 应用初始化配置,包含当前应用和微应用的语言模块
8
+ */
5
9
  declare const initI18n: (opt?: any) => any;
6
10
  /**
7
11
  * 获取国际化键名对应的文本
@@ -2,4 +2,7 @@
2
2
  export declare const queryproject: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
3
3
  /** 获取C端用户所能切换的项目列表(平铺数组结构) */
4
4
  export declare const customerList: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
5
+ /** 获取全量项目列表。 */
6
+ export declare const getProjectList: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
7
+ /** 获取项目详细信息。 */
5
8
  export declare const getProjectMessage: (payload?: any, payloadConfig?: import('@das-fed/utils/curring-http/type').CurringConfig) => import('@das-fed/utils/curring-http/type').CurringRes;
@@ -1 +1,6 @@
1
+ export * from './station-reserve-entry';
2
+ /**
3
+ * 获取当前用户的项目配置,并处理第三方工位预定入口的城市项目匹配。
4
+ * @returns 项目树、当前项目及工位预定入口处理结果
5
+ */
1
6
  export declare const getProjectConfig: () => unknown;
@@ -0,0 +1,66 @@
1
+ /** 工位预定入口的会话参数存储键。 */
2
+ export declare const IWM_STATION_RESERVE_PARAMS_KEY = "iwmStationReserveParams";
3
+ /** 工位预定页手动切换项目后的单次刷新标记。 */
4
+ export declare const IWM_STATION_RESERVE_PROJECT_SWITCH_KEY = "iwmStationReserveProjectSwitchReload";
5
+ /** 工位预定页在微应用中的固定路由。 */
6
+ export declare const IWM_STATION_RESERVE_PATH = "/iwm/stationReserve";
7
+ /** 工位预定页固定应用编码。 */
8
+ export declare const IWM_APPLICATION_CODE = "iwm";
9
+ /** 工位预定页固定菜单编码。 */
10
+ export declare const IWM_STATION_RESERVE_MENU_CODE = "iwm.reservation.stationReserve";
11
+ /** 工位预定入口失败原因。 */
12
+ export type StationReserveFailureReason = 'project-not-found' | 'project-no-permission' | 'menu-no-permission' | 'request-error';
13
+ /** 第三方工位预定入口参数。 */
14
+ export interface StationReserveEntryParams {
15
+ cityCode: string;
16
+ reservationTime: string;
17
+ /** 是否为项目树手动切换触发的单次刷新。 */
18
+ isProjectSwitchReload: boolean;
19
+ }
20
+ /** 第三方工位预定入口处理结果。 */
21
+ export interface StationReserveEntryResult {
22
+ isTarget: boolean;
23
+ failureReason?: StationReserveFailureReason;
24
+ }
25
+ /** 城市项目匹配结果。 */
26
+ export interface CityProjectMatchResult {
27
+ currentProject: any | null;
28
+ failureReason?: Extract<StationReserveFailureReason, 'project-not-found' | 'project-no-permission'>;
29
+ }
30
+ /**
31
+ * 判断当前地址是否为第三方工位预定入口,并读取业务参数。
32
+ * 部署环境可能带有 enterpriseadmin 前缀,因此使用固定路由后缀进行识别。
33
+ * @returns 非目标入口或城市编码为空时返回 null
34
+ */
35
+ export declare const getStationReserveEntryParams: () => StationReserveEntryParams | null;
36
+ /**
37
+ * 标记工位预定页由用户手动切换项目触发的下一次刷新。
38
+ * 外部重新打开同一地址时不会携带该标记,因此仍会按最新 cityCode 重新选择项目。
39
+ */
40
+ export declare const markStationReserveProjectSwitchReload: () => void;
41
+ /** 静默移除工位预定入口的城市和预约时间参数,避免项目切换刷新后再次城市匹配。 */
42
+ export declare const clearStationReserveEntryQueryParams: () => void;
43
+ /**
44
+ * 保存第三方工位预定入口参数,供 IWM 后续业务读取。
45
+ * 保留原始城市编码是为了避免下游业务丢失完整的行政区划路径。
46
+ * @param params 第三方入口参数
47
+ */
48
+ export declare const saveStationReserveEntryParams: (params: StationReserveEntryParams) => void;
49
+ /** 清除第三方工位预定入口参数。 */
50
+ export declare const clearStationReserveEntryParams: () => void;
51
+ /**
52
+ * 从全量项目接口响应中提取项目数组。
53
+ * 兼容直接数组以及常见的 records、list、content 分页结构,避免接口包装差异影响匹配。
54
+ * @param data 全量项目接口响应
55
+ * @returns 项目数组
56
+ */
57
+ export declare const extractProjectList: (data: any) => any[];
58
+ /**
59
+ * 根据城市全量项目与员工权限项目树确定可访问项目。
60
+ * 城市仅用于计算本次入口的候选项目,不修改用于项目选择器展示的权限项目树。
61
+ * @param cityCode 第三方传入的城市编码
62
+ * @param allProjects 全量项目列表
63
+ * @param authorizedProjectTree 已经过员工权限过滤的项目树
64
+ * @returns 城市项目匹配结果
65
+ */
66
+ export declare const matchAuthorizedCityProjects: (cityCode: string, allProjects: any[], authorizedProjectTree: any[]) => CityProjectMatchResult;
Binary file
Binary file