sun-biz 0.0.3-beta.2 → 0.0.3-beta.4

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.
@@ -619,6 +619,7 @@ const DbgridTableConfig_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(Db
619
619
  * 是否为 sass 模式
620
620
  */ MAIN_APP_CONFIG["IS_SASS_MODE"] = "isSassMode";
621
621
  /**用户信息 */ MAIN_APP_CONFIG["USER_INFO"] = "userInfo";
622
+ /** 用户偏好 */ MAIN_APP_CONFIG["PREFERENCE_LIST"] = "preferenceList";
622
623
  return MAIN_APP_CONFIG;
623
624
  }({});
624
625
  function useAppConfigData(name) {
@@ -1,5 +1,6 @@
1
1
  export { default as useRequest } from "./use-request/index.ts";
2
2
  export { default as useAppConfigData, MAIN_APP_CONFIG, } from "./use-app-config/index.ts";
3
+ export type { PreferenceData } from "./use-app-config/index.ts";
3
4
  export { default as useDirectionSelect } from "./use-direction-select/index.ts";
4
5
  export { default as useFetchDataset } from "./use-fetch-dataset/index.ts";
5
6
  export { default as useEditableTable } from './use-editable-table/index.ts';
@@ -357,6 +357,7 @@ function useRequest_useRequest(service, options, plugins) {
357
357
  * 是否为 sass 模式
358
358
  */ MAIN_APP_CONFIG["IS_SASS_MODE"] = "isSassMode";
359
359
  /**用户信息 */ MAIN_APP_CONFIG["USER_INFO"] = "userInfo";
360
+ /** 用户偏好 */ MAIN_APP_CONFIG["PREFERENCE_LIST"] = "preferenceList";
360
361
  return MAIN_APP_CONFIG;
361
362
  }({});
362
363
  function useAppConfigData(name) {
@@ -1,4 +1,5 @@
1
1
  import { AppConfigType } from './types';
2
+ export type { PreferenceData } from './types';
2
3
  /**
3
4
  * 获取主应用配置信息
4
5
  */
@@ -24,7 +25,9 @@ export declare enum MAIN_APP_CONFIG {
24
25
  */
25
26
  IS_SASS_MODE = "isSassMode",
26
27
  /**用户信息 */
27
- USER_INFO = "userInfo"
28
+ USER_INFO = "userInfo",
29
+ /** 用户偏好 */
30
+ PREFERENCE_LIST = "preferenceList"
28
31
  }
29
32
  declare function useAppConfigData<T extends keyof AppConfigType>(name: T): AppConfigType[T] | undefined;
30
33
  declare function useAppConfigData<T extends keyof AppConfigType>(name: T[]): Partial<AppConfigType>;
@@ -16,6 +16,14 @@ export type UserInfo = {
16
16
  userId: string;
17
17
  userName: string;
18
18
  };
19
+ export type PreferenceData = {
20
+ preferId?: string;
21
+ bizId: string;
22
+ bizIdTypeCode: string;
23
+ preferTypeCode: string;
24
+ preferSetting: string;
25
+ displayFlag: number;
26
+ };
19
27
  export interface AppConfigType {
20
28
  /**
21
29
  * 系统菜单ID
@@ -39,4 +47,6 @@ export interface AppConfigType {
39
47
  * 用户信息
40
48
  */
41
49
  userInfo: UserInfo;
50
+ /** 用户偏好 */
51
+ preferenceList: PreferenceData[];
42
52
  }
package/dist/index.d.ts CHANGED
@@ -13,6 +13,7 @@ export { ProForm, FormUnit, convertToWbNo, convertToSpellNo, } from "./component
13
13
  /** hooks ** */
14
14
  export { default as useRequest } from "./hooks/use-request";
15
15
  export { default as useAppConfigData, MAIN_APP_CONFIG, } from "./hooks/use-app-config";
16
+ export type { PreferenceData } from "./hooks/use-app-config";
16
17
  export { default as useDirectionSelect } from "./hooks/use-direction-select";
17
18
  export { default as useFetchDataset } from "./hooks/use-fetch-dataset";
18
19
  export { useEditableTable } from "./hooks/use-editable-table";
package/dist/index.js CHANGED
@@ -620,6 +620,7 @@ const DbgridTableConfig_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(Db
620
620
  * 是否为 sass 模式
621
621
  */ MAIN_APP_CONFIG["IS_SASS_MODE"] = "isSassMode";
622
622
  /**用户信息 */ MAIN_APP_CONFIG["USER_INFO"] = "userInfo";
623
+ /** 用户偏好 */ MAIN_APP_CONFIG["PREFERENCE_LIST"] = "preferenceList";
623
624
  return MAIN_APP_CONFIG;
624
625
  }({});
625
626
  function useAppConfigData(name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sun-biz",
3
- "version": "0.0.3-beta.2",
3
+ "version": "0.0.3-beta.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {