base6-ui 2.0.30 → 2.0.32

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 (37) hide show
  1. package/dist/components/platform-header-navigation/src/constant.d.ts +2 -0
  2. package/dist/components/platform-header-navigation/src/interface.d.ts +28 -10
  3. package/dist/components/platform-header-navigation/src/platform-header-navigation.d.ts +21 -20
  4. package/dist/components/platform-header-navigation/src/utils.d.ts +2 -0
  5. package/dist/index.umd.js +8 -8
  6. package/es/components/global-header/index.vue.mjs +1 -1
  7. package/es/components/layout/components/{WrapHeader.vue2.mjs → WrapHeader.vue.mjs} +1 -1
  8. package/es/components/layout/index.vue2.mjs +1 -1
  9. package/es/components/platform-header-navigation/src/constant.d.ts +2 -0
  10. package/es/components/platform-header-navigation/src/constant.mjs +80 -4
  11. package/es/components/platform-header-navigation/src/interface.d.ts +28 -10
  12. package/es/components/platform-header-navigation/src/interface.mjs +5 -3
  13. package/es/components/platform-header-navigation/src/platform-header-navigation.d.ts +21 -20
  14. package/es/components/platform-header-navigation/src/platform-header-navigation.mjs +91 -148
  15. package/es/components/platform-header-navigation/src/styles/index.cssr.mjs +7 -3
  16. package/es/components/platform-header-navigation/src/utils.d.ts +2 -0
  17. package/es/components/platform-header-navigation/src/utils.mjs +6 -0
  18. package/es/config/themes/components/baseComponent/light.mjs +4 -4
  19. package/es/config/themes/components/checkbox/light.mjs +1 -1
  20. package/es/index.mjs +69 -68
  21. package/lib/components/global-header/index.vue.js +1 -1
  22. package/lib/components/layout/components/WrapHeader.vue.js +1 -0
  23. package/lib/components/layout/index.vue2.js +1 -1
  24. package/lib/components/platform-header-navigation/src/constant.d.ts +2 -0
  25. package/lib/components/platform-header-navigation/src/constant.js +1 -1
  26. package/lib/components/platform-header-navigation/src/interface.d.ts +28 -10
  27. package/lib/components/platform-header-navigation/src/interface.js +1 -1
  28. package/lib/components/platform-header-navigation/src/platform-header-navigation.d.ts +21 -20
  29. package/lib/components/platform-header-navigation/src/platform-header-navigation.js +1 -1
  30. package/lib/components/platform-header-navigation/src/styles/index.cssr.js +1 -1
  31. package/lib/components/platform-header-navigation/src/utils.d.ts +2 -0
  32. package/lib/components/platform-header-navigation/src/utils.js +1 -0
  33. package/lib/config/themes/components/baseComponent/light.js +1 -1
  34. package/lib/config/themes/components/checkbox/light.js +1 -1
  35. package/lib/index.js +1 -1
  36. package/package.json +1 -1
  37. package/lib/components/layout/components/WrapHeader.vue2.js +0 -1
@@ -1,3 +1,4 @@
1
+ import { PlatformNavigationItem } from './interface';
1
2
  export declare const enum BODEN_PLATFORM_ENUM {
2
3
  BASE = 1,// 标注
3
4
  BLINK = 2,// Blink
@@ -19,3 +20,4 @@ export declare const enum BODEN_PLATFORM_FEATURE {
19
20
  Data_Annotation = 2,
20
21
  Data_Management = 3
21
22
  }
23
+ export declare const bodenPlatformNavigation: PlatformNavigationItem[];
@@ -1,18 +1,32 @@
1
- import { Component, ExtractPublicPropTypes, PropType } from 'vue';
2
- import { BODEN_PLATFORM_ENUM, BODEN_PLATFORM_NAME_ENUM, BODEN_PLATFORM_FEATURE } from './constant';
3
- export type PlatformItem = {
4
- id: string | number;
5
- featureType: BODEN_PLATFORM_FEATURE;
1
+ import { ExtractPublicPropTypes, PropType, VNode, VNodeChild } from 'vue';
2
+ import { BODEN_PLATFORM_ENUM, BODEN_PLATFORM_NAME_ENUM } from './constant';
3
+ export type PlatformRenderOption = {
4
+ key: string | number;
5
+ type: 'render';
6
+ render: () => VNodeChild;
7
+ [key: string]: unknown;
8
+ };
9
+ export type PlatformOption = {
10
+ key: string | number;
6
11
  platformId: BODEN_PLATFORM_ENUM;
7
12
  moduleName: BODEN_PLATFORM_NAME_ENUM;
8
13
  title: string;
9
14
  description: string;
10
- svgIcon: Component | undefined;
15
+ disabled?: boolean;
16
+ svgIcon?: () => VNode;
17
+ [key: string]: unknown;
18
+ };
19
+ export type PlatformNavigationItem = {
20
+ key: string | number;
21
+ label: string;
22
+ i18nKey?: string;
23
+ option?: Array<PlatformMixedOption>;
11
24
  };
25
+ export type PlatformMixedOption = PlatformOption | PlatformRenderOption;
12
26
  export declare const bodenPlatformHeaderNavigationProps: {
13
- readonly platformUrlMap: {
14
- readonly type: PropType<Partial<Record<BODEN_PLATFORM_ENUM, string>>>;
15
- readonly default: undefined;
27
+ readonly platformNavigation: {
28
+ readonly type: PropType<PlatformNavigationItem[]>;
29
+ readonly default: () => PlatformNavigationItem[];
16
30
  };
17
31
  readonly popoverX: {
18
32
  readonly type: NumberConstructor;
@@ -22,6 +36,10 @@ export declare const bodenPlatformHeaderNavigationProps: {
22
36
  readonly type: NumberConstructor;
23
37
  readonly default: 0;
24
38
  };
25
- readonly onTogglePlatform: PropType<(code: BODEN_PLATFORM_ENUM, name: BODEN_PLATFORM_NAME_ENUM) => void>;
39
+ readonly renderOption: PropType<(params: {
40
+ node: VNode;
41
+ option: PlatformOption;
42
+ }) => VNodeChild>;
43
+ readonly onTogglePlatform: PropType<(code: BODEN_PLATFORM_ENUM, name: BODEN_PLATFORM_NAME_ENUM, option: PlatformOption) => void>;
26
44
  };
27
45
  export type BodenPlatformHeaderNavigationProps = ExtractPublicPropTypes<typeof bodenPlatformHeaderNavigationProps>;
@@ -1,9 +1,8 @@
1
- import { BODEN_PLATFORM_ENUM, BODEN_PLATFORM_NAME_ENUM, BODEN_PLATFORM_FEATURE } from './constant';
2
- import { PlatformItem } from './interface';
1
+ import { PlatformOption } from './interface';
3
2
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
- readonly platformUrlMap: {
5
- readonly type: import('vue').PropType<Partial<Record<BODEN_PLATFORM_ENUM, string>>>;
6
- readonly default: undefined;
3
+ readonly platformNavigation: {
4
+ readonly type: import('vue').PropType<import('./interface').PlatformNavigationItem[]>;
5
+ readonly default: () => import('./interface').PlatformNavigationItem[];
7
6
  };
8
7
  readonly popoverX: {
9
8
  readonly type: NumberConstructor;
@@ -13,9 +12,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
13
12
  readonly type: NumberConstructor;
14
13
  readonly default: 0;
15
14
  };
16
- readonly onTogglePlatform: import('vue').PropType<(code: BODEN_PLATFORM_ENUM, name: BODEN_PLATFORM_NAME_ENUM) => void>;
15
+ readonly renderOption: import('vue').PropType<(params: {
16
+ node: import('vue').VNode;
17
+ option: PlatformOption;
18
+ }) => import('vue').VNodeChild>;
19
+ readonly onTogglePlatform: import('vue').PropType<(code: import('./constant').BODEN_PLATFORM_ENUM, name: import('./constant').BODEN_PLATFORM_NAME_ENUM, option: PlatformOption) => void>;
17
20
  }>, {
18
- tabValue: import('vue').Ref<"" | BODEN_PLATFORM_FEATURE, "" | BODEN_PLATFORM_FEATURE>;
21
+ tabValue: import('vue').Ref<string | number, string | number>;
19
22
  dropDownVisible: import('vue').ComputedRef<boolean>;
20
23
  navStyleCssVar: import('vue').ComputedRef<{
21
24
  '--boden-platform-navigation-option-title-color': string;
@@ -27,11 +30,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
27
30
  '--boden-platform-navigation-option-icon-hover': string;
28
31
  '--boden-platform-navigation-option-icon-disabled-opacity': number;
29
32
  }>;
30
- platformFeatures: {
31
- value: BODEN_PLATFORM_FEATURE;
32
- label: string;
33
- }[];
34
- platformNav: PlatformItem[];
35
33
  tabThemeOverrides: import('vue').ComputedRef<import('naive-ui/es/_mixins/use-theme').ExtractThemeOverrides<import('naive-ui/es/_mixins').Theme<"Tabs", {
36
34
  colorSegment: string;
37
35
  tabFontSizeCard: string;
@@ -123,16 +121,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
123
121
  closeSize: string;
124
122
  closeIconSize: string;
125
123
  }, any>> | undefined>;
126
- isDisabled: (platformCode: BODEN_PLATFORM_ENUM) => boolean;
127
- onClick: (platform: PlatformItem) => void;
124
+ onClick: (platform: PlatformOption) => void;
128
125
  onMouseLeave: () => void;
129
126
  onPopoverMouseenter: () => void;
130
127
  onBeforeLeave: () => boolean;
131
- setTabValue: (value: BODEN_PLATFORM_FEATURE) => void;
128
+ setTabValue: (value: string | number) => void;
132
129
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
133
- readonly platformUrlMap: {
134
- readonly type: import('vue').PropType<Partial<Record<BODEN_PLATFORM_ENUM, string>>>;
135
- readonly default: undefined;
130
+ readonly platformNavigation: {
131
+ readonly type: import('vue').PropType<import('./interface').PlatformNavigationItem[]>;
132
+ readonly default: () => import('./interface').PlatformNavigationItem[];
136
133
  };
137
134
  readonly popoverX: {
138
135
  readonly type: NumberConstructor;
@@ -142,9 +139,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
142
139
  readonly type: NumberConstructor;
143
140
  readonly default: 0;
144
141
  };
145
- readonly onTogglePlatform: import('vue').PropType<(code: BODEN_PLATFORM_ENUM, name: BODEN_PLATFORM_NAME_ENUM) => void>;
142
+ readonly renderOption: import('vue').PropType<(params: {
143
+ node: import('vue').VNode;
144
+ option: PlatformOption;
145
+ }) => import('vue').VNodeChild>;
146
+ readonly onTogglePlatform: import('vue').PropType<(code: import('./constant').BODEN_PLATFORM_ENUM, name: import('./constant').BODEN_PLATFORM_NAME_ENUM, option: PlatformOption) => void>;
146
147
  }>> & Readonly<{}>, {
147
- readonly platformUrlMap: Partial<Record<BODEN_PLATFORM_ENUM, string>>;
148
+ readonly platformNavigation: import('./interface').PlatformNavigationItem[];
148
149
  readonly popoverX: number;
149
150
  readonly popoverY: number;
150
151
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,2 @@
1
+ import { PlatformRenderOption, PlatformMixedOption } from './interface';
2
+ export declare function isRenderNode(rawNode: PlatformMixedOption): rawNode is PlatformRenderOption;