@next-bricks/basic-bricks 1.259.0 → 1.259.2
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.
- package/deploy/contract.yaml +91 -91
- package/dist/bricks.json +23 -23
- package/dist/{index.5b6d32e5.js → index.1cf56fba.js} +3 -3
- package/dist/index.1cf56fba.js.map +1 -0
- package/dist/stories.json +5 -0
- package/package.json +3 -3
- package/dist/index.5b6d32e5.js.map +0 -1
- package/dist/types/basic-bricks/src/advance-list-container/AdvanceListContainer.d.ts +0 -20
- package/dist/types/basic-bricks/src/advance-list-container/index.d.ts +0 -141
- package/dist/types/basic-bricks/src/app-bar/AppBar/AppBar.d.ts +0 -10
- package/dist/types/basic-bricks/src/app-bar/AppBarBreadcrumb/AppBarBreadcrumb.d.ts +0 -11
- package/dist/types/basic-bricks/src/app-bar/AppBarTips/AppBarTips.d.ts +0 -15
- package/dist/types/basic-bricks/src/app-bar/AppDocumentLink/AppDocumentLink.d.ts +0 -9
- package/dist/types/basic-bricks/src/app-bar/AppSetting/AppSetting.d.ts +0 -5
- package/dist/types/basic-bricks/src/app-bar/Desktop/Desktop.d.ts +0 -10
- package/dist/types/basic-bricks/src/app-bar/DesktopApp/DesktopApp.d.ts +0 -12
- package/dist/types/basic-bricks/src/app-bar/DesktopCell/DesktopCell.d.ts +0 -13
- package/dist/types/basic-bricks/src/app-bar/DesktopCustom/DesktopCustom.d.ts +0 -13
- package/dist/types/basic-bricks/src/app-bar/DesktopDir/DesktopDir.d.ts +0 -3
- package/dist/types/basic-bricks/src/app-bar/DesktopDirContent/DesktopDirContent.d.ts +0 -7
- package/dist/types/basic-bricks/src/app-bar/DesktopDirContext.d.ts +0 -16
- package/dist/types/basic-bricks/src/app-bar/DesktopSlider/DesktopSlider.d.ts +0 -10
- package/dist/types/basic-bricks/src/app-bar/DesktopSlider/desktopCursor.d.ts +0 -2
- package/dist/types/basic-bricks/src/app-bar/FavoriteDesktopCell/FavoriteDesktopCell.d.ts +0 -8
- package/dist/types/basic-bricks/src/app-bar/Launchpad/Launchpad.d.ts +0 -5
- package/dist/types/basic-bricks/src/app-bar/LaunchpadButton/LaunchpadButton.d.ts +0 -2
- package/dist/types/basic-bricks/src/app-bar/LaunchpadPortal/LaunchpadPortal.d.ts +0 -6
- package/dist/types/basic-bricks/src/app-bar/LaunchpadService.d.ts +0 -65
- package/dist/types/basic-bricks/src/app-bar/LaunchpadSettingsContext.d.ts +0 -7
- package/dist/types/basic-bricks/src/app-bar/LaunchpadWrapper/LaunchpadWrapper.d.ts +0 -6
- package/dist/types/basic-bricks/src/app-bar/License-notification/LicenseNotification.d.ts +0 -6
- package/dist/types/basic-bricks/src/app-bar/MyDesktop/MyDesktop.d.ts +0 -7
- package/dist/types/basic-bricks/src/app-bar/SearchBar/SearchBar.d.ts +0 -5
- package/dist/types/basic-bricks/src/app-bar/index.d.ts +0 -5
- package/dist/types/basic-bricks/src/app-bar/interfaces.d.ts +0 -4
- package/dist/types/basic-bricks/src/app-bar/site-map/SiteMap.d.ts +0 -20
- package/dist/types/basic-bricks/src/app-bar/utils/getImageUrl.d.ts +0 -2
- package/dist/types/basic-bricks/src/app-bar-breadcrumb/AppbarBreadcrumb.d.ts +0 -3
- package/dist/types/basic-bricks/src/app-bar-breadcrumb/index.d.ts +0 -33
- package/dist/types/basic-bricks/src/app-bar-logo/AppBarLogo.d.ts +0 -2
- package/dist/types/basic-bricks/src/app-bar-logo/index.d.ts +0 -19
- package/dist/types/basic-bricks/src/app-bar-setting/AppBarSetting.d.ts +0 -5
- package/dist/types/basic-bricks/src/app-bar-setting/index.d.ts +0 -24
- package/dist/types/basic-bricks/src/app-bar-wrapper/AppBarWrapper.d.ts +0 -6
- package/dist/types/basic-bricks/src/app-bar-wrapper/index.d.ts +0 -28
- package/dist/types/basic-bricks/src/app-document-link/AppDocumentLink.d.ts +0 -6
- package/dist/types/basic-bricks/src/app-document-link/index.d.ts +0 -31
- package/dist/types/basic-bricks/src/brick-error/BrickError.d.ts +0 -8
- package/dist/types/basic-bricks/src/brick-error/index.d.ts +0 -37
- package/dist/types/basic-bricks/src/delete-confirm-modal/DeleteConfirmModal.d.ts +0 -11
- package/dist/types/basic-bricks/src/delete-confirm-modal/index.d.ts +0 -35
- package/dist/types/basic-bricks/src/easy-view/EasyView.d.ts +0 -11
- package/dist/types/basic-bricks/src/easy-view/index.d.ts +0 -56
- package/dist/types/basic-bricks/src/event-agent/index.d.ts +0 -25
- package/dist/types/basic-bricks/src/export-json-file/index.d.ts +0 -51
- package/dist/types/basic-bricks/src/flex-layout/index.d.ts +0 -55
- package/dist/types/basic-bricks/src/fold-brick/FoldBrick.d.ts +0 -10
- package/dist/types/basic-bricks/src/fold-brick/index.d.ts +0 -28
- package/dist/types/basic-bricks/src/fold-brick-v2/FoldBrickV2.d.ts +0 -17
- package/dist/types/basic-bricks/src/fold-brick-v2/index.d.ts +0 -133
- package/dist/types/basic-bricks/src/general-anchor/GeneralAnchor.d.ts +0 -17
- package/dist/types/basic-bricks/src/general-anchor/index.d.ts +0 -91
- package/dist/types/basic-bricks/src/general-button/GeneralButton.d.ts +0 -38
- package/dist/types/basic-bricks/src/general-button/index.d.ts +0 -249
- package/dist/types/basic-bricks/src/general-card/GeneralCard.d.ts +0 -15
- package/dist/types/basic-bricks/src/general-card/index.d.ts +0 -120
- package/dist/types/basic-bricks/src/general-custom-buttons/GeneralCustomButtons.d.ts +0 -31
- package/dist/types/basic-bricks/src/general-custom-buttons/index.d.ts +0 -235
- package/dist/types/basic-bricks/src/general-drawer/GeneralDrawer.d.ts +0 -27
- package/dist/types/basic-bricks/src/general-drawer/index.d.ts +0 -191
- package/dist/types/basic-bricks/src/general-heading/GeneralHeading.d.ts +0 -9
- package/dist/types/basic-bricks/src/general-heading/index.d.ts +0 -43
- package/dist/types/basic-bricks/src/general-hotkeys/index.d.ts +0 -57
- package/dist/types/basic-bricks/src/general-modal/GeneralModal.d.ts +0 -33
- package/dist/types/basic-bricks/src/general-modal/index.d.ts +0 -330
- package/dist/types/basic-bricks/src/general-notification/index.d.ts +0 -131
- package/dist/types/basic-bricks/src/general-popup/GeneralPopup.d.ts +0 -21
- package/dist/types/basic-bricks/src/general-popup/index.d.ts +0 -95
- package/dist/types/basic-bricks/src/general-text/GeneralText.d.ts +0 -13
- package/dist/types/basic-bricks/src/general-text/index.d.ts +0 -81
- package/dist/types/basic-bricks/src/general-timer/index.d.ts +0 -70
- package/dist/types/basic-bricks/src/general-title/GeneralTitle.d.ts +0 -21
- package/dist/types/basic-bricks/src/general-title/index.d.ts +0 -129
- package/dist/types/basic-bricks/src/grid-layout/index.d.ts +0 -134
- package/dist/types/basic-bricks/src/header-bar/HeaderBar.d.ts +0 -6
- package/dist/types/basic-bricks/src/header-bar/index.d.ts +0 -46
- package/dist/types/basic-bricks/src/home-redirect/index.d.ts +0 -45
- package/dist/types/basic-bricks/src/i18n/constants.d.ts +0 -34
- package/dist/types/basic-bricks/src/index-card/IndexCard.d.ts +0 -7
- package/dist/types/basic-bricks/src/index-card/index.d.ts +0 -39
- package/dist/types/basic-bricks/src/interfaces/general-card.d.ts +0 -11
- package/dist/types/basic-bricks/src/interfaces/index.d.ts +0 -1
- package/dist/types/basic-bricks/src/jsx.d.ts +0 -172
- package/dist/types/basic-bricks/src/launchpad-button/index.d.ts +0 -18
- package/dist/types/basic-bricks/src/list-container/ListContainer.d.ts +0 -12
- package/dist/types/basic-bricks/src/list-container/index.d.ts +0 -71
- package/dist/types/basic-bricks/src/loading-bar/LoadingBar.d.ts +0 -2
- package/dist/types/basic-bricks/src/loading-bar/index.d.ts +0 -2
- package/dist/types/basic-bricks/src/magic-brick/MagicBrick.d.ts +0 -7
- package/dist/types/basic-bricks/src/magic-brick/index.d.ts +0 -36
- package/dist/types/basic-bricks/src/menu-bar/AppMenu/AppMenu.d.ts +0 -7
- package/dist/types/basic-bricks/src/menu-bar/AppMenu/MenuTooltip/MenuTooltip.d.ts +0 -7
- package/dist/types/basic-bricks/src/menu-bar/AppSubMenu/AppSubMenu.d.ts +0 -8
- package/dist/types/basic-bricks/src/menu-bar/CollapseBar/CollapseBar.d.ts +0 -6
- package/dist/types/basic-bricks/src/menu-bar/LogoBar/LogoBar.d.ts +0 -2
- package/dist/types/basic-bricks/src/menu-bar/MenuBar/MenuBar.d.ts +0 -7
- package/dist/types/basic-bricks/src/menu-bar/index.d.ts +0 -96
- package/dist/types/basic-bricks/src/micro-app/BtnExitDashboardMode.d.ts +0 -2
- package/dist/types/basic-bricks/src/micro-app/MicroApp.d.ts +0 -13
- package/dist/types/basic-bricks/src/micro-app/index.d.ts +0 -152
- package/dist/types/basic-bricks/src/multiple-columns-card/MultipleColumnsCard.d.ts +0 -7
- package/dist/types/basic-bricks/src/multiple-columns-card/index.d.ts +0 -38
- package/dist/types/basic-bricks/src/page-error/PageError.d.ts +0 -7
- package/dist/types/basic-bricks/src/page-error/index.d.ts +0 -4
- package/dist/types/basic-bricks/src/page-not-found/PageNotFound.d.ts +0 -6
- package/dist/types/basic-bricks/src/page-not-found/index.d.ts +0 -10
- package/dist/types/basic-bricks/src/page-title/PageTitle.d.ts +0 -8
- package/dist/types/basic-bricks/src/page-title/index.d.ts +0 -36
- package/dist/types/basic-bricks/src/popover-container/PopoverContainer.d.ts +0 -39
- package/dist/types/basic-bricks/src/popover-container/index.d.ts +0 -244
- package/dist/types/basic-bricks/src/print-button/PrintButton.d.ts +0 -10
- package/dist/types/basic-bricks/src/print-button/index.d.ts +0 -68
- package/dist/types/basic-bricks/src/quick-visit-menu/FavouriteMenu.d.ts +0 -3
- package/dist/types/basic-bricks/src/quick-visit-menu/MenuTag.d.ts +0 -14
- package/dist/types/basic-bricks/src/quick-visit-menu/QuickVisitMenu.d.ts +0 -34
- package/dist/types/basic-bricks/src/quick-visit-menu/index.d.ts +0 -92
- package/dist/types/basic-bricks/src/redirect-to/index.d.ts +0 -74
- package/dist/types/basic-bricks/src/resizable-box/ResizableBox.d.ts +0 -14
- package/dist/types/basic-bricks/src/resizable-box/index.d.ts +0 -38
- package/dist/types/basic-bricks/src/script-brick/index.d.ts +0 -91
- package/dist/types/basic-bricks/src/shared/DeferredService.d.ts +0 -10
- package/dist/types/basic-bricks/src/sub-menu/SubMenu.d.ts +0 -11
- package/dist/types/basic-bricks/src/sub-menu/index.d.ts +0 -49
- package/dist/types/basic-bricks/src/sub-menu-filter/SubMenuFilter.d.ts +0 -38
- package/dist/types/basic-bricks/src/sub-menu-filter/index.d.ts +0 -204
- package/dist/types/basic-bricks/src/transform-agent/index.d.ts +0 -54
- package/dist/types/basic-bricks/src/utils.d.ts +0 -1
- package/dist/types/basic-bricks/src/virtual-list-container/VirtualListContainer.d.ts +0 -16
- package/dist/types/basic-bricks/src/virtual-list-container/index.d.ts +0 -63
- package/dist/types/presentational-bricks/src/brick-illustration/BrickIllustration.d.ts +0 -14
- package/dist/types/presentational-bricks/src/brick-illustration/index.d.ts +0 -87
- package/dist/types/presentational-bricks/src/brick-result/components/IllustrationWrapper.d.ts +0 -16
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { UseBrickConf } from "@next-core/brick-types";
|
|
3
|
-
export interface AdvanceListContainerProps {
|
|
4
|
-
data: {
|
|
5
|
-
list: Record<string, any>[];
|
|
6
|
-
page_size?: number | string;
|
|
7
|
-
page?: number | string;
|
|
8
|
-
};
|
|
9
|
-
titleBrick: {
|
|
10
|
-
useBrick: UseBrickConf;
|
|
11
|
-
};
|
|
12
|
-
suffixBrick?: {
|
|
13
|
-
useBrick: UseBrickConf;
|
|
14
|
-
};
|
|
15
|
-
itemClick?: (detail: any) => void;
|
|
16
|
-
selectable?: boolean;
|
|
17
|
-
defaultActiveIndex?: number;
|
|
18
|
-
notTriggerClickEventWhenInit?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare function AdvanceListContainer(props: AdvanceListContainerProps): React.ReactElement;
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { UpdatingElement, EventEmitter } from "@next-core/brick-kit";
|
|
3
|
-
import { UseBrickConf } from "@next-core/brick-types";
|
|
4
|
-
export interface AdvanceListContainerElementProps {
|
|
5
|
-
data?: AdvanceListContainerProps["data"];
|
|
6
|
-
titleBrick?: AdvanceListContainerProps["titleBrick"];
|
|
7
|
-
suffixBrick?: AdvanceListContainerProps["suffixBrick"];
|
|
8
|
-
showCard?: boolean;
|
|
9
|
-
defaultActiveIndex?: number;
|
|
10
|
-
}
|
|
11
|
-
export interface AdvancedListContainerElementProps {
|
|
12
|
-
data?: AdvanceListContainerProps["data"];
|
|
13
|
-
titleBrick?: AdvanceListContainerProps["titleBrick"];
|
|
14
|
-
suffixBrick?: AdvanceListContainerProps["suffixBrick"];
|
|
15
|
-
showCard?: boolean;
|
|
16
|
-
defaultActiveIndex?: number;
|
|
17
|
-
}
|
|
18
|
-
export interface itemData {
|
|
19
|
-
list: Record<string, any>[];
|
|
20
|
-
page_size?: number | string;
|
|
21
|
-
page?: number | string;
|
|
22
|
-
}
|
|
23
|
-
export interface AdvanceListContainerProps {
|
|
24
|
-
data: {
|
|
25
|
-
list: Record<string, any>[];
|
|
26
|
-
page_size?: number | string;
|
|
27
|
-
page?: number | string;
|
|
28
|
-
};
|
|
29
|
-
titleBrick: {
|
|
30
|
-
useBrick: UseBrickConf;
|
|
31
|
-
};
|
|
32
|
-
suffixBrick?: {
|
|
33
|
-
useBrick: UseBrickConf;
|
|
34
|
-
};
|
|
35
|
-
itemClick?: () => void;
|
|
36
|
-
selectable?: boolean;
|
|
37
|
-
defaultActiveIndex?: number;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* @id basic-bricks.advanced-list-container
|
|
41
|
-
* @name basic-bricks.advanced-list-container
|
|
42
|
-
* @docKind brick
|
|
43
|
-
* @description 可以指定子项使用特定构件的列表容器,相当于是动态的构件列表
|
|
44
|
-
* @author momo
|
|
45
|
-
* @slots
|
|
46
|
-
* @history
|
|
47
|
-
* 1.55.0:新增构件 `basic-bricks.advanced-list-container`
|
|
48
|
-
* @memo
|
|
49
|
-
* ### interface
|
|
50
|
-
* ```typescript
|
|
51
|
-
* interface ItemData {
|
|
52
|
-
* list: Record<string, any>[];
|
|
53
|
-
* page_size?: number | string;
|
|
54
|
-
* page?: number | string }
|
|
55
|
-
* }
|
|
56
|
-
*
|
|
57
|
-
* interface AdvanceListContainerProps {
|
|
58
|
-
* data: {
|
|
59
|
-
* list: Record<string, any>[];
|
|
60
|
-
* page_size?: number | string;
|
|
61
|
-
* page?: number | string;
|
|
62
|
-
* };
|
|
63
|
-
* titleBrick: { useBrick: UseBrickConf };
|
|
64
|
-
* suffixBrick?: { useBrick: UseBrickConf };
|
|
65
|
-
* itemClick?: () => void;
|
|
66
|
-
* selectable?: boolean;
|
|
67
|
-
* defaultActiveIndex?: number;
|
|
68
|
-
* }
|
|
69
|
-
* ```
|
|
70
|
-
* @noInheritDoc
|
|
71
|
-
*/
|
|
72
|
-
export declare class AdvancedListContainerElement extends UpdatingElement implements AdvancedListContainerElementProps {
|
|
73
|
-
/**
|
|
74
|
-
* @kind ItemData
|
|
75
|
-
* @required true
|
|
76
|
-
* @default -
|
|
77
|
-
* @description 列表数据
|
|
78
|
-
* @group basic
|
|
79
|
-
*/
|
|
80
|
-
data: AdvanceListContainerProps["data"];
|
|
81
|
-
/**
|
|
82
|
-
* @kind {useBrick:UseBrickConf}
|
|
83
|
-
* @required true
|
|
84
|
-
* @default -
|
|
85
|
-
* @description 列表项标题位置,相关类型[UseBrickConf](/next-docs/docs/api-reference/brick-types.usebrickconf)
|
|
86
|
-
* @group basic
|
|
87
|
-
*/
|
|
88
|
-
titleBrick: AdvanceListContainerProps["titleBrick"];
|
|
89
|
-
/**
|
|
90
|
-
* @kind {useBrick:UseBrickConf}
|
|
91
|
-
* @required false
|
|
92
|
-
* @default -
|
|
93
|
-
* @description 列表项 extra 位置(右边),相关类型[UseBrickConf](/next-docs/docs/api-reference/brick-types.usebrickconf)
|
|
94
|
-
* @group basic
|
|
95
|
-
*/
|
|
96
|
-
suffixBrick: AdvanceListContainerProps["suffixBrick"];
|
|
97
|
-
/**
|
|
98
|
-
* @kind boolean
|
|
99
|
-
* @required false
|
|
100
|
-
* @default false
|
|
101
|
-
* @description 是否展示 card
|
|
102
|
-
* @group ui
|
|
103
|
-
*/
|
|
104
|
-
showCard: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* @kind number
|
|
107
|
-
* @required false
|
|
108
|
-
* @default -
|
|
109
|
-
* @description 默认选中项
|
|
110
|
-
* @group basic
|
|
111
|
-
*/
|
|
112
|
-
defaultActiveIndex: number;
|
|
113
|
-
/**
|
|
114
|
-
* @kind boolean
|
|
115
|
-
* @required false
|
|
116
|
-
* @default false
|
|
117
|
-
* @description 设置`defaultActiveIndex`时,构件初始化时会默认触发item.click事件,如果item.click后需要刷新页面,则会造成构件不断render,页面不断重刷,为避免此情况,可将此项设为true
|
|
118
|
-
* @group basic
|
|
119
|
-
*/
|
|
120
|
-
notTriggerClickEventWhenInit: boolean;
|
|
121
|
-
/**
|
|
122
|
-
* @required false
|
|
123
|
-
* @default true
|
|
124
|
-
* @description 选项是否可选
|
|
125
|
-
* @group basic
|
|
126
|
-
*/
|
|
127
|
-
selectable: boolean;
|
|
128
|
-
connectedCallback(): void;
|
|
129
|
-
disconnectedCallback(): void;
|
|
130
|
-
/**
|
|
131
|
-
* @detail `{item: any, index: number}`
|
|
132
|
-
* @description 当前项的所有数据以及当前项的索引
|
|
133
|
-
*/
|
|
134
|
-
clickEvent: EventEmitter<{
|
|
135
|
-
item: any;
|
|
136
|
-
index: number;
|
|
137
|
-
}>;
|
|
138
|
-
private _handleItemClick;
|
|
139
|
-
renderAdvanceListContainer(): React.ReactElement;
|
|
140
|
-
protected _render(): void;
|
|
141
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BreadcrumbItemConf } from "@next-core/brick-types";
|
|
3
|
-
interface AppBarProps {
|
|
4
|
-
pageTitle: string;
|
|
5
|
-
breadcrumb?: BreadcrumbItemConf[];
|
|
6
|
-
documentId?: string;
|
|
7
|
-
noCurrentApp?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export declare function AppBar({ pageTitle, breadcrumb, documentId, noCurrentApp, }: AppBarProps): React.ReactElement;
|
|
10
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BreadcrumbItemConf, SidebarMenu } from "@next-core/brick-types";
|
|
3
|
-
export interface BasicBreadcrumbProps {
|
|
4
|
-
breadcrumb?: BreadcrumbItemConf[];
|
|
5
|
-
className?: string;
|
|
6
|
-
separator?: string;
|
|
7
|
-
noCurrentApp?: boolean;
|
|
8
|
-
showCurrentAppIcon?: boolean;
|
|
9
|
-
menu?: Partial<SidebarMenu>;
|
|
10
|
-
}
|
|
11
|
-
export declare function AppBarBreadcrumb(props: BasicBreadcrumbProps): React.ReactElement;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface AppBarTipsProps {
|
|
3
|
-
text: string;
|
|
4
|
-
tipKey: string;
|
|
5
|
-
info?: {
|
|
6
|
-
label: string;
|
|
7
|
-
url: string;
|
|
8
|
-
};
|
|
9
|
-
isCenter?: boolean;
|
|
10
|
-
backgroundColor?: string;
|
|
11
|
-
closable?: boolean;
|
|
12
|
-
onClose: (targetKey: string) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare function AppBarTips({ text, tipKey, info, isCenter, backgroundColor, closable, onClose, }: AppBarTipsProps): React.ReactElement;
|
|
15
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface AppDocumentLinkProps {
|
|
3
|
-
documentId?: string;
|
|
4
|
-
iconStyle?: React.CSSProperties;
|
|
5
|
-
buttonStyle?: React.CSSProperties;
|
|
6
|
-
isInNavbar?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare function AppDocumentLink({ documentId, iconStyle, isInNavbar, buttonStyle, }: AppDocumentLinkProps): React.ReactElement;
|
|
9
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DesktopData } from "@next-core/brick-types";
|
|
3
|
-
interface DesktopProps {
|
|
4
|
-
desktop: DesktopData;
|
|
5
|
-
desktopCount: number;
|
|
6
|
-
arrowWidthPercent: number;
|
|
7
|
-
activeIndex: number;
|
|
8
|
-
}
|
|
9
|
-
export declare function Desktop(props: DesktopProps): React.ReactElement;
|
|
10
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { MicroApp } from "@next-core/brick-types";
|
|
3
|
-
interface DesktopAppProps {
|
|
4
|
-
app: MicroApp;
|
|
5
|
-
isFavorite?: boolean;
|
|
6
|
-
showAddIcon?: boolean;
|
|
7
|
-
onAddClick?: () => void;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
size?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function DesktopApp({ app, onAddClick, onClick, isFavorite, showAddIcon, size, }: DesktopAppProps): React.ReactElement;
|
|
12
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DesktopItem } from "@next-core/brick-types";
|
|
3
|
-
interface DesktopCellProps {
|
|
4
|
-
item: DesktopItem;
|
|
5
|
-
active?: boolean;
|
|
6
|
-
showAddIcon?: boolean;
|
|
7
|
-
position?: "left" | "center" | "right";
|
|
8
|
-
onSetAsFavorite?: () => void;
|
|
9
|
-
isFavorite?: boolean;
|
|
10
|
-
size?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function DesktopCell(props: DesktopCellProps): React.ReactElement;
|
|
13
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface DesktopCustomProps {
|
|
3
|
-
name: string;
|
|
4
|
-
url: string;
|
|
5
|
-
isFavorite?: boolean;
|
|
6
|
-
showAddIcon?: boolean;
|
|
7
|
-
onAddClick: () => void;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
size?: string;
|
|
10
|
-
responsive?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare function DesktopCustom({ name, url, showAddIcon, isFavorite, onClick, onAddClick, size, responsive, }: DesktopCustomProps): React.ReactElement;
|
|
13
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { DirWithCoordinates } from "../DesktopDirContext";
|
|
3
|
-
interface DesktopDirContentProps extends DirWithCoordinates {
|
|
4
|
-
arrowWidthPercent: number;
|
|
5
|
-
}
|
|
6
|
-
export declare function DesktopDirContent(props: DesktopDirContentProps): React.ReactElement;
|
|
7
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { NormalizedDesktopDir } from "./interfaces";
|
|
3
|
-
export interface DirWithCoordinates {
|
|
4
|
-
dir: NormalizedDesktopDir;
|
|
5
|
-
coordinates: {
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
};
|
|
9
|
-
activeIndex: number;
|
|
10
|
-
}
|
|
11
|
-
export interface ContextOfDesktopDir {
|
|
12
|
-
desktopDir?: DirWithCoordinates;
|
|
13
|
-
setDesktopDir?: React.Dispatch<DirWithCoordinates>;
|
|
14
|
-
}
|
|
15
|
-
export declare const DesktopDirContext: React.Context<ContextOfDesktopDir>;
|
|
16
|
-
export declare const useDesktopDirContext: () => ContextOfDesktopDir;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { MicroApp, DesktopData } from "@next-core/brick-types";
|
|
3
|
-
interface DesktopSliderProps {
|
|
4
|
-
microApps: MicroApp[];
|
|
5
|
-
q?: string;
|
|
6
|
-
desktops?: DesktopData[];
|
|
7
|
-
arrowWidthPercent: number;
|
|
8
|
-
}
|
|
9
|
-
export declare function DesktopSlider(props: DesktopSliderProps): React.ReactElement;
|
|
10
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { LaunchpadApi_ListCollectionResponseItem } from "@next-sdk/user-service-sdk";
|
|
3
|
-
interface FavoriteDesktopCellProps {
|
|
4
|
-
item: LaunchpadApi_ListCollectionResponseItem;
|
|
5
|
-
onDelete?: (item: LaunchpadApi_ListCollectionResponseItem) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare function FavoriteDesktopCell({ item, onDelete, }: FavoriteDesktopCellProps): React.ReactElement;
|
|
8
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { LaunchpadWrapperProps } from "../LaunchpadWrapper/LaunchpadWrapper";
|
|
3
|
-
export interface LaunchpadPortalProps extends LaunchpadWrapperProps {
|
|
4
|
-
visible: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare function LaunchpadPortal(props: LaunchpadPortalProps): React.ReactPortal;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { MicroApp, DesktopItemCustom, DesktopItemApp, DesktopData, SiteMapItem } from "@next-core/brick-types";
|
|
2
|
-
import { LaunchpadApi_ListCollectionResponseItem, LaunchpadApi_CreateCollectionRequestBody } from "@next-sdk/user-service-sdk";
|
|
3
|
-
import { LaunchpadSettings } from "./LaunchpadSettingsContext";
|
|
4
|
-
interface LaunchpadBaseInfo {
|
|
5
|
-
settings: LaunchpadSettings;
|
|
6
|
-
microApps: MicroApp[];
|
|
7
|
-
desktops: DesktopData[];
|
|
8
|
-
siteSort: SiteMapItem[];
|
|
9
|
-
}
|
|
10
|
-
export declare class LaunchpadService {
|
|
11
|
-
readonly storageKey: string;
|
|
12
|
-
private storage;
|
|
13
|
-
private favoriteList;
|
|
14
|
-
private filteredFavoriteList;
|
|
15
|
-
private microApps;
|
|
16
|
-
private customList;
|
|
17
|
-
private maxVisitorLength;
|
|
18
|
-
private initialized;
|
|
19
|
-
private baseInfo;
|
|
20
|
-
loaded: boolean;
|
|
21
|
-
favoritesLoaded: boolean;
|
|
22
|
-
private readonly deferredLaunchpadInfo;
|
|
23
|
-
private readonly deferredFavorites;
|
|
24
|
-
constructor();
|
|
25
|
-
init(): void;
|
|
26
|
-
private initValue;
|
|
27
|
-
setMaxVisitorLength(value: number): void;
|
|
28
|
-
preFetchFavorites(): void;
|
|
29
|
-
fetchFavoriteList(eager?: boolean): Promise<LaunchpadApi_ListCollectionResponseItem[]>;
|
|
30
|
-
private doFetchFavorites;
|
|
31
|
-
preFetchLaunchpadInfo(): void;
|
|
32
|
-
fetchLaunchpadInfo(): Promise<unknown>;
|
|
33
|
-
private doFetchLaunchpadInfo;
|
|
34
|
-
getBaseInfo(): LaunchpadBaseInfo;
|
|
35
|
-
getFavoritesLength(): number;
|
|
36
|
-
typeAdaptor(type: string): string;
|
|
37
|
-
setFavorites(list: LaunchpadApi_ListCollectionResponseItem[]): void;
|
|
38
|
-
setMicroApps(microApps: MicroApp[]): void;
|
|
39
|
-
syncValidRecentlyVisitor(): void;
|
|
40
|
-
setAsFavorite(params: LaunchpadApi_CreateCollectionRequestBody): Promise<void>;
|
|
41
|
-
deleteFavorite(id: string | number): Promise<void>;
|
|
42
|
-
isFavorite(item: DesktopItemApp | DesktopItemCustom): boolean;
|
|
43
|
-
getItem(type: "app" | "custom", id: string): DesktopItemApp | DesktopItemCustom;
|
|
44
|
-
getItemIndex(type: "app" | "custom", id: string): number;
|
|
45
|
-
hasItem(type: "app" | "custom", id: string): boolean;
|
|
46
|
-
getAllVisitors(): (DesktopItemApp | DesktopItemCustom)[];
|
|
47
|
-
setItem(type: "app" | "custom", item: DesktopItemApp | DesktopItemCustom): void;
|
|
48
|
-
setAllVisitors(visitors: (DesktopItemApp | DesktopItemCustom)[]): void;
|
|
49
|
-
processVisitor(type: "app" | "custom", item: MicroApp | DesktopItemCustom): DesktopItemApp | DesktopItemCustom;
|
|
50
|
-
pushVisitor(type: "app" | "custom", item: MicroApp | DesktopItemCustom): void;
|
|
51
|
-
getVisitor(type: "app" | "custom", id: string): DesktopItemApp | DesktopItemCustom | undefined;
|
|
52
|
-
getRealDesktopItem(item: LaunchpadApi_ListCollectionResponseItem): MicroApp | DesktopItemCustom;
|
|
53
|
-
setFavoriteAsVisitor(item: LaunchpadApi_ListCollectionResponseItem): void;
|
|
54
|
-
getSitemapList(): {
|
|
55
|
-
apps: {
|
|
56
|
-
id?: string;
|
|
57
|
-
sort?: string;
|
|
58
|
-
}[];
|
|
59
|
-
id: string;
|
|
60
|
-
name: string;
|
|
61
|
-
order: string;
|
|
62
|
-
}[];
|
|
63
|
-
}
|
|
64
|
-
export declare const launchpadService: LaunchpadService;
|
|
65
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { LaunchpadProps } from "../Launchpad/Launchpad";
|
|
3
|
-
export interface LaunchpadWrapperProps extends LaunchpadProps {
|
|
4
|
-
onClose?: () => void;
|
|
5
|
-
}
|
|
6
|
-
export declare function LaunchpadWrapper(props: LaunchpadWrapperProps): React.ReactElement;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const LICENSE_INFO = "license-info";
|
|
2
|
-
export declare const EXPIRING_DISMISSED_UNTIL = "licenseExpiringDismissedUntil";
|
|
3
|
-
export declare const EXPIRING_DISMISSED = "licenseExpiringDismissed";
|
|
4
|
-
export declare function getUnionKey(key: string): string;
|
|
5
|
-
export declare function notificationFactory(expires: number): void;
|
|
6
|
-
export declare function processLiscenseExpires(expires: number): void;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface SiteCategory {
|
|
3
|
-
name: string;
|
|
4
|
-
id: string;
|
|
5
|
-
order: string;
|
|
6
|
-
apps: {
|
|
7
|
-
id?: string;
|
|
8
|
-
sort?: string;
|
|
9
|
-
name?: string;
|
|
10
|
-
homepage?: string;
|
|
11
|
-
}[];
|
|
12
|
-
}
|
|
13
|
-
export interface SiteMapProps {
|
|
14
|
-
categoryList: SiteCategory[];
|
|
15
|
-
containerStyle?: React.CSSProperties;
|
|
16
|
-
onLoad?: () => void;
|
|
17
|
-
}
|
|
18
|
-
export declare function LeacySiteMap(props: SiteMapProps, ref: any): React.ReactElement;
|
|
19
|
-
export declare const SiteMap: React.ForwardRefExoticComponent<SiteMapProps & React.RefAttributes<unknown>>;
|
|
20
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { UpdatingElement } from "@next-core/brick-kit";
|
|
2
|
-
import { BreadcrumbItemConf, SidebarMenu } from "@next-core/brick-types";
|
|
3
|
-
export interface AppbarBreadcrumbElementProps {
|
|
4
|
-
breadcrumb?: BreadcrumbItemConf[];
|
|
5
|
-
noCurrentApp?: boolean;
|
|
6
|
-
menu?: Partial<SidebarMenu>;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @id basic-bricks.app-bar-breadcrumb
|
|
10
|
-
* @author SailorF
|
|
11
|
-
* @history
|
|
12
|
-
* 1.x.0: 新增构件 `basic-bricks.app-bar-breadcrumb`
|
|
13
|
-
* @docKind brick
|
|
14
|
-
* @deprecated
|
|
15
|
-
* @memo 该构件已迁移至 `nav-legacy` 包中维护,后续版本将不再维护该构件,请使用 `nav-legacy.app-bar-breadcrumb` 构件
|
|
16
|
-
* @noInheritDoc
|
|
17
|
-
*/
|
|
18
|
-
export declare class AppbarBreadcrumbElement extends UpdatingElement implements AppbarBreadcrumbElementProps {
|
|
19
|
-
connectedCallback(): void;
|
|
20
|
-
disconnectedCallback(): void;
|
|
21
|
-
/**
|
|
22
|
-
* @default
|
|
23
|
-
* @description 面包屑配置
|
|
24
|
-
*/
|
|
25
|
-
breadcrumb: BreadcrumbItemConf[];
|
|
26
|
-
/**
|
|
27
|
-
* @default -
|
|
28
|
-
* @description 是否隐藏当前应用名称
|
|
29
|
-
*/
|
|
30
|
-
noCurrentApp: boolean;
|
|
31
|
-
menu: Partial<SidebarMenu>;
|
|
32
|
-
protected _render(): void;
|
|
33
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { UpdatingElement } from "@next-core/brick-kit";
|
|
2
|
-
export interface AppBarLogoElementProps {
|
|
3
|
-
}
|
|
4
|
-
/**
|
|
5
|
-
* @id basic-bricks.app-bar-logo
|
|
6
|
-
* @author SheRunFeng
|
|
7
|
-
* @history
|
|
8
|
-
* 1.x.0: 新增构件 `basic-bricks.app-bar-logo`
|
|
9
|
-
* @docKind brick
|
|
10
|
-
* @deprecated
|
|
11
|
-
* @memo
|
|
12
|
-
* 该构件已迁移至 `nav-legacy` 包中维护,后续版本将不再维护该构件,请使用 `nav-legacy.app-bar-logo` 构件
|
|
13
|
-
* @noInheritDoc
|
|
14
|
-
*/
|
|
15
|
-
export declare class AppBarLogoElement extends UpdatingElement implements AppBarLogoElementProps {
|
|
16
|
-
connectedCallback(): void;
|
|
17
|
-
disconnectedCallback(): void;
|
|
18
|
-
protected _render(): void;
|
|
19
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { UpdatingElement } from "@next-core/brick-kit";
|
|
3
|
-
export interface AppBarSettingElementProps {
|
|
4
|
-
usernameStyle?: React.CSSProperties;
|
|
5
|
-
dropdownIconStyle?: React.CSSProperties;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* @id basic-bricks.app-bar-setting
|
|
9
|
-
* @author SheRunFeng
|
|
10
|
-
* @history
|
|
11
|
-
* 1.x.0: 新增构件 `basic-bricks.app-bar-setting`
|
|
12
|
-
* @docKind brick
|
|
13
|
-
* @deprecated
|
|
14
|
-
* @memo
|
|
15
|
-
* 该构件已迁移至 `nav-legacy` 包中维护,后续版本将不再维护该构件,请使用 `nav-legacy.app-bar-setting` 构件
|
|
16
|
-
* @noInheritDoc
|
|
17
|
-
*/
|
|
18
|
-
export declare class AppBarSettingElement extends UpdatingElement implements AppBarSettingElementProps {
|
|
19
|
-
usernameStyle: React.CSSProperties;
|
|
20
|
-
dropdownIconStyle: React.CSSProperties;
|
|
21
|
-
connectedCallback(): void;
|
|
22
|
-
disconnectedCallback(): void;
|
|
23
|
-
protected _render(): void;
|
|
24
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { UpdatingElement } from "@next-core/brick-kit";
|
|
3
|
-
export interface AppBarWrapperElementProps {
|
|
4
|
-
isFixed?: boolean;
|
|
5
|
-
displayCenter?: boolean;
|
|
6
|
-
extraAppBarContentStyle?: React.CSSProperties;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @id basic-bricks.app-bar-wrapper
|
|
10
|
-
* @author SheRunFeng
|
|
11
|
-
* @history
|
|
12
|
-
* 1.x.0: 新增构件 `basic-bricks.app-bar-wrapper`
|
|
13
|
-
* @docKind brick
|
|
14
|
-
* @deprecated
|
|
15
|
-
* @memo
|
|
16
|
-
* 该构件已迁移至 `nav-legacy` 包中维护,后续版本将不再维护该构件,请使用 `nav-legacy.app-bar-wrapper` 构件
|
|
17
|
-
* @noInheritDoc
|
|
18
|
-
*/
|
|
19
|
-
export declare class AppBarWrapperElement extends UpdatingElement implements AppBarWrapperElementProps {
|
|
20
|
-
private _shadowRoot;
|
|
21
|
-
isFixed: boolean;
|
|
22
|
-
displayCenter: boolean;
|
|
23
|
-
extraAppBarContentStyle: React.CSSProperties;
|
|
24
|
-
constructor();
|
|
25
|
-
connectedCallback(): void;
|
|
26
|
-
disconnectedCallback(): void;
|
|
27
|
-
protected _render(): void;
|
|
28
|
-
}
|