@interopio/groups-ui-react 3.0.1 → 4.2.8-next.0
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/dist/cjs/GroupElementCreationWrapper.d.ts +4 -4
- package/dist/cjs/GroupWrapper.d.ts +10 -10
- package/dist/cjs/Portal.d.ts +6 -6
- package/dist/cjs/defaultComponents/buttons/BaseButton.d.ts +4 -4
- package/dist/cjs/defaultComponents/buttons/CloneButton.d.ts +4 -4
- package/dist/cjs/defaultComponents/buttons/CloseButton.d.ts +4 -4
- package/dist/cjs/defaultComponents/buttons/CustomButton.d.ts +4 -4
- package/dist/cjs/defaultComponents/buttons/DownloadsButton.d.ts +4 -0
- package/dist/cjs/defaultComponents/buttons/ExtractButton.d.ts +4 -4
- package/dist/cjs/defaultComponents/buttons/FeedbackButton.d.ts +4 -4
- package/dist/cjs/defaultComponents/buttons/LockButtons.d.ts +4 -4
- package/dist/cjs/defaultComponents/buttons/MaximizeButton.d.ts +4 -4
- package/dist/cjs/defaultComponents/buttons/MinimizeButton.d.ts +4 -4
- package/dist/cjs/defaultComponents/buttons/OverflowButton.d.ts +4 -4
- package/dist/cjs/defaultComponents/buttons/RestoreButton.d.ts +4 -4
- package/dist/cjs/defaultComponents/buttons/StandardButton.d.ts +4 -4
- package/dist/cjs/defaultComponents/buttons/StickyButton.d.ts +4 -4
- package/dist/cjs/defaultComponents/buttons/UnlockButton.d.ts +4 -4
- package/dist/cjs/defaultComponents/captionEditor/CaptionEditor.d.ts +4 -4
- package/dist/cjs/defaultComponents/captionEditor/useCaptionEditor.d.ts +4 -4
- package/dist/cjs/defaultComponents/captionEditor/useCommitEditingRequested.d.ts +3 -3
- package/dist/cjs/defaultComponents/captionEditor/useEditableCaption.d.ts +4 -4
- package/dist/cjs/defaultComponents/channelSelector/BaseChannelSelector.d.ts +4 -4
- package/dist/cjs/defaultComponents/channelSelector/FlatChannelSelector.d.ts +4 -4
- package/dist/cjs/defaultComponents/channelSelector/TabChannelSelector.d.ts +4 -4
- package/dist/cjs/defaultComponents/channelSelector/multi/BaseMultiChannelSelector.d.ts +4 -4
- package/dist/cjs/defaultComponents/channelSelector/multi/FlatMultiChannelSelector.d.ts +4 -4
- package/dist/cjs/defaultComponents/channelSelector/multi/TabMultiChannelSelector.d.ts +4 -4
- package/dist/cjs/defaultComponents/channelSelector/utils.d.ts +5 -5
- package/dist/cjs/defaultComponents/flatCaptionBar/FlatButtons.d.ts +4 -4
- package/dist/cjs/defaultComponents/flatCaptionBar/FlatCaption.d.ts +4 -4
- package/dist/cjs/defaultComponents/flatCaptionBar/FlatCaptionBar.d.ts +4 -4
- package/dist/cjs/defaultComponents/flatCaptionBar/FlatCaptionEditor.d.ts +4 -4
- package/dist/cjs/defaultComponents/flatCaptionBar/FlatMoveArea.d.ts +4 -4
- package/dist/cjs/defaultComponents/flatCaptionBar/useCommitFlatCaptionEditingRequested.d.ts +2 -2
- package/dist/cjs/defaultComponents/groupCaptionBar/GroupButtons.d.ts +4 -4
- package/dist/cjs/defaultComponents/groupCaptionBar/GroupCaption.d.ts +4 -4
- package/dist/cjs/defaultComponents/groupCaptionBar/GroupCaptionBar.d.ts +4 -4
- package/dist/cjs/defaultComponents/groupCaptionBar/GroupCaptionEditor.d.ts +4 -4
- package/dist/cjs/defaultComponents/groupCaptionBar/GroupMoveArea.d.ts +4 -4
- package/dist/cjs/defaultComponents/groupCaptionBar/useCommitGroupCaptionEditingRequested.d.ts +2 -2
- package/dist/cjs/defaultComponents/hooks/useExternalWindowPopup.d.ts +2 -2
- package/dist/cjs/defaultComponents/hooks/useExternalWindowPopupClosed.d.ts +1 -1
- package/dist/cjs/defaultComponents/hooks/useExternalWindowPopupHidden.d.ts +1 -1
- package/dist/cjs/defaultComponents/hooks/useMoveResizeWindow.d.ts +2 -2
- package/dist/cjs/defaultComponents/hooks/useShowPopupWindow.d.ts +2 -2
- package/dist/cjs/defaultComponents/htmlButtonsBar/buttons.d.ts +4 -4
- package/dist/cjs/defaultComponents/loadingAnimation/FrameLoadingAnimation.d.ts +4 -4
- package/dist/cjs/defaultComponents/popups/TabOverflowPopup.d.ts +4 -4
- package/dist/cjs/defaultComponents/tabs/Tab.d.ts +4 -4
- package/dist/cjs/defaultComponents/tabs/TabCaption.d.ts +4 -4
- package/dist/cjs/defaultComponents/tabs/TabCaptionEditor.d.ts +4 -4
- package/dist/cjs/defaultComponents/tabs/TabCloseButton.d.ts +4 -4
- package/dist/cjs/defaultComponents/tabs/TabHeaderButtons.d.ts +4 -4
- package/dist/cjs/defaultComponents/tabs/useCommitTabCaptionEditingRequested.d.ts +2 -2
- package/dist/cjs/defaultComponents/utils/common.d.ts +5 -3
- package/dist/cjs/defaultComponents/utils/useDragMove.d.ts +6 -6
- package/dist/cjs/index.d.ts +59 -58
- package/dist/cjs/index.js +8388 -3395
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/api.d.ts +233 -231
- package/dist/cjs/types/defaultComponents.d.ts +198 -193
- package/dist/cjs/types/internal.d.ts +363 -352
- package/dist/cjs/useGroupComponentVisibility.d.ts +3 -3
- package/dist/cjs/useIOConnectWindow.d.ts +2 -2
- package/dist/cjs/utils.d.ts +3 -3
- package/dist/cjs/webGroupsManager.d.ts +51 -50
- package/dist/cjs/webGroupsStore.d.ts +69 -69
- package/dist/esm/GroupElementCreationWrapper.d.ts +4 -4
- package/dist/esm/GroupWrapper.d.ts +10 -10
- package/dist/esm/Portal.d.ts +6 -6
- package/dist/esm/defaultComponents/buttons/BaseButton.d.ts +4 -4
- package/dist/esm/defaultComponents/buttons/CloneButton.d.ts +4 -4
- package/dist/esm/defaultComponents/buttons/CloseButton.d.ts +4 -4
- package/dist/esm/defaultComponents/buttons/CustomButton.d.ts +4 -4
- package/dist/esm/defaultComponents/buttons/DownloadsButton.d.ts +4 -0
- package/dist/esm/defaultComponents/buttons/ExtractButton.d.ts +4 -4
- package/dist/esm/defaultComponents/buttons/FeedbackButton.d.ts +4 -4
- package/dist/esm/defaultComponents/buttons/LockButtons.d.ts +4 -4
- package/dist/esm/defaultComponents/buttons/MaximizeButton.d.ts +4 -4
- package/dist/esm/defaultComponents/buttons/MinimizeButton.d.ts +4 -4
- package/dist/esm/defaultComponents/buttons/OverflowButton.d.ts +4 -4
- package/dist/esm/defaultComponents/buttons/RestoreButton.d.ts +4 -4
- package/dist/esm/defaultComponents/buttons/StandardButton.d.ts +4 -4
- package/dist/esm/defaultComponents/buttons/StickyButton.d.ts +4 -4
- package/dist/esm/defaultComponents/buttons/UnlockButton.d.ts +4 -4
- package/dist/esm/defaultComponents/captionEditor/CaptionEditor.d.ts +4 -4
- package/dist/esm/defaultComponents/captionEditor/useCaptionEditor.d.ts +4 -4
- package/dist/esm/defaultComponents/captionEditor/useCommitEditingRequested.d.ts +3 -3
- package/dist/esm/defaultComponents/captionEditor/useEditableCaption.d.ts +4 -4
- package/dist/esm/defaultComponents/channelSelector/BaseChannelSelector.d.ts +4 -4
- package/dist/esm/defaultComponents/channelSelector/FlatChannelSelector.d.ts +4 -4
- package/dist/esm/defaultComponents/channelSelector/TabChannelSelector.d.ts +4 -4
- package/dist/esm/defaultComponents/channelSelector/multi/BaseMultiChannelSelector.d.ts +4 -4
- package/dist/esm/defaultComponents/channelSelector/multi/FlatMultiChannelSelector.d.ts +4 -4
- package/dist/esm/defaultComponents/channelSelector/multi/TabMultiChannelSelector.d.ts +4 -4
- package/dist/esm/defaultComponents/channelSelector/utils.d.ts +5 -5
- package/dist/esm/defaultComponents/flatCaptionBar/FlatButtons.d.ts +4 -4
- package/dist/esm/defaultComponents/flatCaptionBar/FlatCaption.d.ts +4 -4
- package/dist/esm/defaultComponents/flatCaptionBar/FlatCaptionBar.d.ts +4 -4
- package/dist/esm/defaultComponents/flatCaptionBar/FlatCaptionEditor.d.ts +4 -4
- package/dist/esm/defaultComponents/flatCaptionBar/FlatMoveArea.d.ts +4 -4
- package/dist/esm/defaultComponents/flatCaptionBar/useCommitFlatCaptionEditingRequested.d.ts +2 -2
- package/dist/esm/defaultComponents/groupCaptionBar/GroupButtons.d.ts +4 -4
- package/dist/esm/defaultComponents/groupCaptionBar/GroupCaption.d.ts +4 -4
- package/dist/esm/defaultComponents/groupCaptionBar/GroupCaptionBar.d.ts +4 -4
- package/dist/esm/defaultComponents/groupCaptionBar/GroupCaptionEditor.d.ts +4 -4
- package/dist/esm/defaultComponents/groupCaptionBar/GroupMoveArea.d.ts +4 -4
- package/dist/esm/defaultComponents/groupCaptionBar/useCommitGroupCaptionEditingRequested.d.ts +2 -2
- package/dist/esm/defaultComponents/hooks/useExternalWindowPopup.d.ts +2 -2
- package/dist/esm/defaultComponents/hooks/useExternalWindowPopupClosed.d.ts +1 -1
- package/dist/esm/defaultComponents/hooks/useExternalWindowPopupHidden.d.ts +1 -1
- package/dist/esm/defaultComponents/hooks/useMoveResizeWindow.d.ts +2 -2
- package/dist/esm/defaultComponents/hooks/useShowPopupWindow.d.ts +2 -2
- package/dist/esm/defaultComponents/htmlButtonsBar/buttons.d.ts +4 -4
- package/dist/esm/defaultComponents/loadingAnimation/FrameLoadingAnimation.d.ts +4 -4
- package/dist/esm/defaultComponents/popups/TabOverflowPopup.d.ts +4 -4
- package/dist/esm/defaultComponents/tabs/Tab.d.ts +4 -4
- package/dist/esm/defaultComponents/tabs/TabCaption.d.ts +4 -4
- package/dist/esm/defaultComponents/tabs/TabCaptionEditor.d.ts +4 -4
- package/dist/esm/defaultComponents/tabs/TabCloseButton.d.ts +4 -4
- package/dist/esm/defaultComponents/tabs/TabHeaderButtons.d.ts +4 -4
- package/dist/esm/defaultComponents/tabs/useCommitTabCaptionEditingRequested.d.ts +2 -2
- package/dist/esm/defaultComponents/utils/common.d.ts +5 -3
- package/dist/esm/defaultComponents/utils/useDragMove.d.ts +6 -6
- package/dist/esm/index.d.ts +59 -58
- package/dist/esm/index.js +8296 -3239
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/api.d.ts +233 -231
- package/dist/esm/types/defaultComponents.d.ts +198 -193
- package/dist/esm/types/internal.d.ts +363 -352
- package/dist/esm/useGroupComponentVisibility.d.ts +3 -3
- package/dist/esm/useIOConnectWindow.d.ts +2 -2
- package/dist/esm/utils.d.ts +3 -3
- package/dist/esm/webGroupsManager.d.ts +51 -50
- package/dist/esm/webGroupsStore.d.ts +69 -69
- package/dist/styles/groups.css +49 -0
- package/dist/styles/vars.css +57 -43
- package/package.json +14 -18
- package/dist/cjs/tests/buttons/BaseButton.test.d.ts +0 -1
- package/dist/cjs/tests/buttons/CloneButton.test.d.ts +0 -1
- package/dist/cjs/tests/buttons/CloseButton.test.d.ts +0 -1
- package/dist/cjs/tests/buttons/CustomButton.test.d.ts +0 -1
- package/dist/cjs/tests/buttons/ExtractButton.test.d.ts +0 -1
- package/dist/cjs/tests/buttons/FeedbackButton.test.d.ts +0 -1
- package/dist/cjs/tests/buttons/LockButtons.test.d.ts +0 -1
- package/dist/cjs/tests/buttons/MaximizeButton.test.d.ts +0 -1
- package/dist/cjs/tests/buttons/MinimizeButton.test.d.ts +0 -1
- package/dist/cjs/tests/buttons/OverflowButton.test.d.ts +0 -1
- package/dist/cjs/tests/buttons/RestoreButton.test.d.ts +0 -1
- package/dist/cjs/tests/buttons/StickyButton.test.d.ts +0 -1
- package/dist/cjs/tests/buttons/UnlockButton.test.d.ts +0 -1
- package/dist/cjs/tests/captionEditor/CaptionEditor.test.d.ts +0 -1
- package/dist/cjs/tests/channelSelector/BaseChannelSelector.test.d.ts +0 -1
- package/dist/cjs/tests/flatCaptionBar/FlatCaptionBar.test.d.ts +0 -1
- package/dist/cjs/tests/groupCaptionBar/GroupCaptionBar.test.d.ts +0 -1
- package/dist/cjs/tests/htmlButtonBar/HtmlButtonBar.test.d.ts +0 -1
- package/dist/cjs/tests/popups/TabOverflowPopup.test.d.ts +0 -1
- package/dist/cjs/tests/tabs/Tab.test.d.ts +0 -1
- package/dist/esm/tests/buttons/BaseButton.test.d.ts +0 -1
- package/dist/esm/tests/buttons/CloneButton.test.d.ts +0 -1
- package/dist/esm/tests/buttons/CloseButton.test.d.ts +0 -1
- package/dist/esm/tests/buttons/CustomButton.test.d.ts +0 -1
- package/dist/esm/tests/buttons/ExtractButton.test.d.ts +0 -1
- package/dist/esm/tests/buttons/FeedbackButton.test.d.ts +0 -1
- package/dist/esm/tests/buttons/LockButtons.test.d.ts +0 -1
- package/dist/esm/tests/buttons/MaximizeButton.test.d.ts +0 -1
- package/dist/esm/tests/buttons/MinimizeButton.test.d.ts +0 -1
- package/dist/esm/tests/buttons/OverflowButton.test.d.ts +0 -1
- package/dist/esm/tests/buttons/RestoreButton.test.d.ts +0 -1
- package/dist/esm/tests/buttons/StickyButton.test.d.ts +0 -1
- package/dist/esm/tests/buttons/UnlockButton.test.d.ts +0 -1
- package/dist/esm/tests/captionEditor/CaptionEditor.test.d.ts +0 -1
- package/dist/esm/tests/channelSelector/BaseChannelSelector.test.d.ts +0 -1
- package/dist/esm/tests/flatCaptionBar/FlatCaptionBar.test.d.ts +0 -1
- package/dist/esm/tests/groupCaptionBar/GroupCaptionBar.test.d.ts +0 -1
- package/dist/esm/tests/htmlButtonBar/HtmlButtonBar.test.d.ts +0 -1
- package/dist/esm/tests/popups/TabOverflowPopup.test.d.ts +0 -1
- package/dist/esm/tests/tabs/Tab.test.d.ts +0 -1
package/dist/cjs/types/api.d.ts
CHANGED
|
@@ -1,231 +1,233 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { Bounds, ButtonProps, Location, OverflowedTabInfo, PopupTargetLocation, Size, StylesOptions, ToggleButtonProps } from
|
|
3
|
-
import { CustomButtonProps } from
|
|
4
|
-
export interface ChannelProps {
|
|
5
|
-
visible: boolean;
|
|
6
|
-
selectedChannel: string;
|
|
7
|
-
showSelector: (bounds: Bounds) => void;
|
|
8
|
-
selectedChannelColor: string;
|
|
9
|
-
channelsMode: "single" | "multi";
|
|
10
|
-
selectedChannels: {
|
|
11
|
-
name: string;
|
|
12
|
-
color: string;
|
|
13
|
-
}[];
|
|
14
|
-
channelRestrictions: {
|
|
15
|
-
read: boolean;
|
|
16
|
-
write: boolean;
|
|
17
|
-
};
|
|
18
|
-
channelLabel: string;
|
|
19
|
-
}
|
|
20
|
-
export interface FrameWindowOverlayProps {
|
|
21
|
-
frameId: string;
|
|
22
|
-
selectedWindow: string;
|
|
23
|
-
}
|
|
24
|
-
export interface AboveWindowProps {
|
|
25
|
-
frameId: string;
|
|
26
|
-
selectedWindow: string;
|
|
27
|
-
}
|
|
28
|
-
export interface WindowContentOverlayProps {
|
|
29
|
-
frameId: string;
|
|
30
|
-
selectedWindow: string;
|
|
31
|
-
}
|
|
32
|
-
export interface FrameLoadingAnimationProps {
|
|
33
|
-
frameId: string;
|
|
34
|
-
selectedWindow: string;
|
|
35
|
-
show: boolean;
|
|
36
|
-
}
|
|
37
|
-
export interface BelowWindowProps {
|
|
38
|
-
frameId: string;
|
|
39
|
-
selectedWindow: string;
|
|
40
|
-
}
|
|
41
|
-
export interface AboveTabsProps {
|
|
42
|
-
frameId: string;
|
|
43
|
-
selectedWindow: string;
|
|
44
|
-
}
|
|
45
|
-
export interface BeforeTabsProps {
|
|
46
|
-
frameId: string;
|
|
47
|
-
selectedWindow: string;
|
|
48
|
-
}
|
|
49
|
-
export interface BelowTabsProps {
|
|
50
|
-
frameId: string;
|
|
51
|
-
selectedWindow: string;
|
|
52
|
-
}
|
|
53
|
-
export interface TabOverflowPopupProps {
|
|
54
|
-
frameId: string;
|
|
55
|
-
select: (windowId: string) => void;
|
|
56
|
-
close: (windowId: string) => void;
|
|
57
|
-
resize?: (size: Size) => void;
|
|
58
|
-
hiddenTabsToTheLeft: OverflowedTabInfo[];
|
|
59
|
-
hiddenTabsToTheRight: OverflowedTabInfo[];
|
|
60
|
-
}
|
|
61
|
-
export interface CaptionEditorProps {
|
|
62
|
-
show: boolean;
|
|
63
|
-
text?: string;
|
|
64
|
-
commitChanges: (text: string) => void;
|
|
65
|
-
hideEditor: () => void;
|
|
66
|
-
notifyBoundsChanged: (bounds: Bounds) => void;
|
|
67
|
-
notifyEditorVisibilityChanged: (visible: boolean) => void;
|
|
68
|
-
}
|
|
69
|
-
export interface GroupCaptionBarProps {
|
|
70
|
-
moveAreaId: string;
|
|
71
|
-
targetType: string;
|
|
72
|
-
targetId: string;
|
|
73
|
-
caption: string;
|
|
74
|
-
captionEditor?: CaptionEditorProps;
|
|
75
|
-
visible: boolean;
|
|
76
|
-
showCaptionEditor: (text: string) => void;
|
|
77
|
-
notifyCaptionBoundsChanged: (bounds: Bounds) => void;
|
|
78
|
-
minimize: ButtonProps;
|
|
79
|
-
maximize: ButtonProps;
|
|
80
|
-
restore: ButtonProps;
|
|
81
|
-
close: ButtonProps;
|
|
82
|
-
}
|
|
83
|
-
export interface GroupOverlayProps {
|
|
84
|
-
}
|
|
85
|
-
export interface FlatCaptionBarProps {
|
|
86
|
-
showCaptionEditor: (text: string) => void;
|
|
87
|
-
frameId: string;
|
|
88
|
-
moveAreaId: string;
|
|
89
|
-
caption: string;
|
|
90
|
-
feedback?: ButtonProps;
|
|
91
|
-
clone?: ButtonProps;
|
|
92
|
-
sticky?: ToggleButtonProps;
|
|
93
|
-
extract?: ButtonProps;
|
|
94
|
-
lock?: ButtonProps;
|
|
95
|
-
unlock?: ButtonProps;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
export interface
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Bounds, ButtonProps, Location, OverflowedTabInfo, PopupTargetLocation, Size, StylesOptions, ToggleButtonProps } from './internal';
|
|
3
|
+
import { CustomButtonProps } from './defaultComponents';
|
|
4
|
+
export interface ChannelProps {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
selectedChannel: string;
|
|
7
|
+
showSelector: (bounds: Bounds) => void;
|
|
8
|
+
selectedChannelColor: string;
|
|
9
|
+
channelsMode: "single" | "multi";
|
|
10
|
+
selectedChannels: {
|
|
11
|
+
name: string;
|
|
12
|
+
color: string;
|
|
13
|
+
}[];
|
|
14
|
+
channelRestrictions: {
|
|
15
|
+
read: boolean;
|
|
16
|
+
write: boolean;
|
|
17
|
+
};
|
|
18
|
+
channelLabel: string;
|
|
19
|
+
}
|
|
20
|
+
export interface FrameWindowOverlayProps {
|
|
21
|
+
frameId: string;
|
|
22
|
+
selectedWindow: string;
|
|
23
|
+
}
|
|
24
|
+
export interface AboveWindowProps {
|
|
25
|
+
frameId: string;
|
|
26
|
+
selectedWindow: string;
|
|
27
|
+
}
|
|
28
|
+
export interface WindowContentOverlayProps {
|
|
29
|
+
frameId: string;
|
|
30
|
+
selectedWindow: string;
|
|
31
|
+
}
|
|
32
|
+
export interface FrameLoadingAnimationProps {
|
|
33
|
+
frameId: string;
|
|
34
|
+
selectedWindow: string;
|
|
35
|
+
show: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface BelowWindowProps {
|
|
38
|
+
frameId: string;
|
|
39
|
+
selectedWindow: string;
|
|
40
|
+
}
|
|
41
|
+
export interface AboveTabsProps {
|
|
42
|
+
frameId: string;
|
|
43
|
+
selectedWindow: string;
|
|
44
|
+
}
|
|
45
|
+
export interface BeforeTabsProps {
|
|
46
|
+
frameId: string;
|
|
47
|
+
selectedWindow: string;
|
|
48
|
+
}
|
|
49
|
+
export interface BelowTabsProps {
|
|
50
|
+
frameId: string;
|
|
51
|
+
selectedWindow: string;
|
|
52
|
+
}
|
|
53
|
+
export interface TabOverflowPopupProps {
|
|
54
|
+
frameId: string;
|
|
55
|
+
select: (windowId: string) => void;
|
|
56
|
+
close: (windowId: string) => void;
|
|
57
|
+
resize?: (size: Size) => void;
|
|
58
|
+
hiddenTabsToTheLeft: OverflowedTabInfo[];
|
|
59
|
+
hiddenTabsToTheRight: OverflowedTabInfo[];
|
|
60
|
+
}
|
|
61
|
+
export interface CaptionEditorProps {
|
|
62
|
+
show: boolean;
|
|
63
|
+
text?: string;
|
|
64
|
+
commitChanges: (text: string) => void;
|
|
65
|
+
hideEditor: () => void;
|
|
66
|
+
notifyBoundsChanged: (bounds: Bounds) => void;
|
|
67
|
+
notifyEditorVisibilityChanged: (visible: boolean) => void;
|
|
68
|
+
}
|
|
69
|
+
export interface GroupCaptionBarProps {
|
|
70
|
+
moveAreaId: string;
|
|
71
|
+
targetType: string;
|
|
72
|
+
targetId: string;
|
|
73
|
+
caption: string;
|
|
74
|
+
captionEditor?: CaptionEditorProps;
|
|
75
|
+
visible: boolean;
|
|
76
|
+
showCaptionEditor: (text: string) => void;
|
|
77
|
+
notifyCaptionBoundsChanged: (bounds: Bounds) => void;
|
|
78
|
+
minimize: ButtonProps;
|
|
79
|
+
maximize: ButtonProps;
|
|
80
|
+
restore: ButtonProps;
|
|
81
|
+
close: ButtonProps;
|
|
82
|
+
}
|
|
83
|
+
export interface GroupOverlayProps {
|
|
84
|
+
}
|
|
85
|
+
export interface FlatCaptionBarProps {
|
|
86
|
+
showCaptionEditor: (text: string) => void;
|
|
87
|
+
frameId: string;
|
|
88
|
+
moveAreaId: string;
|
|
89
|
+
caption: string;
|
|
90
|
+
feedback?: ButtonProps;
|
|
91
|
+
clone?: ButtonProps;
|
|
92
|
+
sticky?: ToggleButtonProps;
|
|
93
|
+
extract?: ButtonProps;
|
|
94
|
+
lock?: ButtonProps;
|
|
95
|
+
unlock?: ButtonProps;
|
|
96
|
+
downloads?: ButtonProps;
|
|
97
|
+
minimize?: ButtonProps;
|
|
98
|
+
maximize?: ButtonProps;
|
|
99
|
+
restore?: ButtonProps;
|
|
100
|
+
close?: ButtonProps;
|
|
101
|
+
channels: ChannelProps;
|
|
102
|
+
customButtons: CustomButtonProps[];
|
|
103
|
+
selectedWindow: string;
|
|
104
|
+
notifyCaptionBoundsChanged: (bounds: Bounds) => void;
|
|
105
|
+
captionEditor: CaptionEditorProps;
|
|
106
|
+
}
|
|
107
|
+
export interface TabElementProps {
|
|
108
|
+
targetId: string;
|
|
109
|
+
windowId: string;
|
|
110
|
+
caption: string;
|
|
111
|
+
selected: boolean;
|
|
112
|
+
flashing: boolean;
|
|
113
|
+
pinned: boolean;
|
|
114
|
+
close: () => void;
|
|
115
|
+
channels: ChannelProps;
|
|
116
|
+
notifyCaptionBoundsChanged: (bounds: Bounds) => void;
|
|
117
|
+
captionEditor: CaptionEditorProps;
|
|
118
|
+
addContainerClass: (className: string) => void;
|
|
119
|
+
removeContainerClass: (className: string) => void;
|
|
120
|
+
}
|
|
121
|
+
export interface AfterTabsProps {
|
|
122
|
+
frameId: string;
|
|
123
|
+
selectedWindow: string;
|
|
124
|
+
hiddenTabsToTheLeft?: OverflowedTabInfo[];
|
|
125
|
+
hiddenTabsToTheRight?: OverflowedTabInfo[];
|
|
126
|
+
}
|
|
127
|
+
interface FrameButtonsProps {
|
|
128
|
+
overflow?: ButtonProps;
|
|
129
|
+
feedback?: ButtonProps;
|
|
130
|
+
clone?: ButtonProps;
|
|
131
|
+
sticky?: ToggleButtonProps;
|
|
132
|
+
extract?: ButtonProps;
|
|
133
|
+
lock?: ButtonProps;
|
|
134
|
+
unlock?: ButtonProps;
|
|
135
|
+
downloads?: ButtonProps;
|
|
136
|
+
minimize?: ButtonProps;
|
|
137
|
+
maximize?: ButtonProps;
|
|
138
|
+
restore?: ButtonProps;
|
|
139
|
+
close?: ButtonProps;
|
|
140
|
+
customButtons: CustomButtonProps[];
|
|
141
|
+
frameId: string;
|
|
142
|
+
selectedWindow: string;
|
|
143
|
+
}
|
|
144
|
+
export interface TabHeaderButtonsProps extends FrameButtonsProps {
|
|
145
|
+
hiddenTabsToTheLeft: OverflowedTabInfo[];
|
|
146
|
+
hiddenTabsToTheRight: OverflowedTabInfo[];
|
|
147
|
+
}
|
|
148
|
+
export interface HtmlButtonsProps extends FrameButtonsProps {
|
|
149
|
+
}
|
|
150
|
+
export interface GroupProps {
|
|
151
|
+
components?: {
|
|
152
|
+
group?: {
|
|
153
|
+
CaptionBar?: React.ComponentType<GroupCaptionBarProps>;
|
|
154
|
+
Overlay?: React.ComponentType<GroupOverlayProps>;
|
|
155
|
+
};
|
|
156
|
+
frame?: {
|
|
157
|
+
Overlay?: React.ComponentType<FrameWindowOverlayProps>;
|
|
158
|
+
AboveWindow?: React.ComponentType<AboveWindowProps>;
|
|
159
|
+
WindowContentOverlay?: React.ComponentType<WindowContentOverlayProps>;
|
|
160
|
+
BelowWindow?: React.ComponentType<BelowWindowProps>;
|
|
161
|
+
LoadingAnimation?: React.ComponentType<FrameLoadingAnimationProps>;
|
|
162
|
+
};
|
|
163
|
+
flat?: {
|
|
164
|
+
CaptionBar?: React.ComponentType<FlatCaptionBarProps>;
|
|
165
|
+
};
|
|
166
|
+
tabs?: {
|
|
167
|
+
Above?: React.ComponentType<AboveTabsProps>;
|
|
168
|
+
Before?: React.ComponentType<BeforeTabsProps>;
|
|
169
|
+
Element?: React.ComponentType<TabElementProps>;
|
|
170
|
+
After?: React.ComponentType<AfterTabsProps>;
|
|
171
|
+
Buttons?: React.ComponentType<TabHeaderButtonsProps>;
|
|
172
|
+
Below?: React.ComponentType<BelowTabsProps>;
|
|
173
|
+
OverflowPopup?: React.ComponentType<TabOverflowPopupProps>;
|
|
174
|
+
};
|
|
175
|
+
html?: {
|
|
176
|
+
Buttons?: React.ComponentType<HtmlButtonsProps>;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
styles?: {
|
|
180
|
+
tabs?: {
|
|
181
|
+
header?: StylesOptions;
|
|
182
|
+
moveArea?: StylesOptions;
|
|
183
|
+
};
|
|
184
|
+
frame?: {
|
|
185
|
+
element?: StylesOptions;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
export interface MoveAreaProps {
|
|
190
|
+
elementId: string;
|
|
191
|
+
}
|
|
192
|
+
export interface GroupComponentVisibilityState {
|
|
193
|
+
groupCaptionBarVisible?: boolean;
|
|
194
|
+
}
|
|
195
|
+
export interface OpenTabOverflowPopupOptions {
|
|
196
|
+
frameId: string;
|
|
197
|
+
location: Location;
|
|
198
|
+
}
|
|
199
|
+
export interface CreatePopupOptions {
|
|
200
|
+
left?: number;
|
|
201
|
+
top?: number;
|
|
202
|
+
width?: number;
|
|
203
|
+
height?: number;
|
|
204
|
+
roundedCorners?: boolean;
|
|
205
|
+
hasSizeAreas?: boolean;
|
|
206
|
+
hasMoveAreas?: boolean;
|
|
207
|
+
transparent?: boolean;
|
|
208
|
+
copyStyles?: boolean;
|
|
209
|
+
}
|
|
210
|
+
export interface PopupShowOptions {
|
|
211
|
+
targetBounds?: Bounds;
|
|
212
|
+
size?: Size;
|
|
213
|
+
targetLocation?: PopupTargetLocation;
|
|
214
|
+
focus?: boolean;
|
|
215
|
+
horizontalOffset?: number;
|
|
216
|
+
verticalOffset?: number;
|
|
217
|
+
}
|
|
218
|
+
export interface PopupWindow {
|
|
219
|
+
ioConnectWindow: any;
|
|
220
|
+
browserWindow: Window;
|
|
221
|
+
}
|
|
222
|
+
export interface ExternalWindowPopupResult {
|
|
223
|
+
getContainer: () => HTMLElement | null;
|
|
224
|
+
createPopup: (options?: CreatePopupOptions) => Promise<PopupWindow | null>;
|
|
225
|
+
showPopup: (options?: PopupShowOptions) => Promise<void>;
|
|
226
|
+
resizePopup: (size: Size) => Promise<void>;
|
|
227
|
+
hidePopup: () => Promise<void>;
|
|
228
|
+
closePopup: () => Promise<void>;
|
|
229
|
+
isOpen: boolean;
|
|
230
|
+
isVisible: boolean;
|
|
231
|
+
popup: PopupWindow | null;
|
|
232
|
+
}
|
|
233
|
+
export {};
|