@interopio/groups-ui-react 2.6.2 → 2.7.1
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/GroupWrapper.d.ts +2 -1
- package/dist/cjs/index.js +272 -177
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/tests/buttons/BaseButton.test.d.ts +1 -0
- package/dist/cjs/tests/buttons/CloneButton.test.d.ts +1 -0
- package/dist/cjs/tests/buttons/CloseButton.test.d.ts +1 -0
- package/dist/cjs/tests/buttons/CustomButton.test.d.ts +1 -0
- package/dist/cjs/tests/buttons/ExtractButton.test.d.ts +1 -0
- package/dist/cjs/tests/buttons/FeedbackButton.test.d.ts +1 -0
- package/dist/cjs/tests/buttons/LockButtons.test.d.ts +1 -0
- package/dist/cjs/tests/buttons/MaximizeButton.test.d.ts +1 -0
- package/dist/cjs/tests/buttons/MinimizeButton.test.d.ts +1 -0
- package/dist/cjs/tests/buttons/OverflowButton.test.d.ts +1 -0
- package/dist/cjs/tests/buttons/RestoreButton.test.d.ts +1 -0
- package/dist/cjs/tests/buttons/StickyButton.test.d.ts +1 -0
- package/dist/cjs/tests/buttons/UnlockButton.test.d.ts +1 -0
- package/dist/cjs/tests/captionEditor/CaptionEditor.test.d.ts +1 -0
- package/dist/cjs/tests/channelSelector/BaseChannelSelector.test.d.ts +1 -0
- package/dist/cjs/tests/flatCaptionBar/FlatCaptionBar.test.d.ts +1 -0
- package/dist/cjs/tests/groupCaptionBar/GroupCaptionBar.test.d.ts +1 -0
- package/dist/cjs/tests/htmlButtonBar/HtmlButtonBar.test.d.ts +1 -0
- package/dist/cjs/tests/popups/TabOverflowPopup.test.d.ts +1 -0
- package/dist/cjs/tests/tabs/Tab.test.d.ts +1 -0
- package/dist/cjs/types/api.d.ts +10 -1
- package/dist/cjs/types/defaultComponents.d.ts +0 -1
- package/dist/cjs/types/internal.d.ts +21 -0
- package/dist/cjs/webGroupsManager.d.ts +4 -1
- package/dist/esm/GroupWrapper.d.ts +2 -1
- package/dist/esm/index.js +285 -190
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/tests/buttons/BaseButton.test.d.ts +1 -0
- package/dist/esm/tests/buttons/CloneButton.test.d.ts +1 -0
- package/dist/esm/tests/buttons/CloseButton.test.d.ts +1 -0
- package/dist/esm/tests/buttons/CustomButton.test.d.ts +1 -0
- package/dist/esm/tests/buttons/ExtractButton.test.d.ts +1 -0
- package/dist/esm/tests/buttons/FeedbackButton.test.d.ts +1 -0
- package/dist/esm/tests/buttons/LockButtons.test.d.ts +1 -0
- package/dist/esm/tests/buttons/MaximizeButton.test.d.ts +1 -0
- package/dist/esm/tests/buttons/MinimizeButton.test.d.ts +1 -0
- package/dist/esm/tests/buttons/OverflowButton.test.d.ts +1 -0
- package/dist/esm/tests/buttons/RestoreButton.test.d.ts +1 -0
- package/dist/esm/tests/buttons/StickyButton.test.d.ts +1 -0
- package/dist/esm/tests/buttons/UnlockButton.test.d.ts +1 -0
- package/dist/esm/tests/captionEditor/CaptionEditor.test.d.ts +1 -0
- package/dist/esm/tests/channelSelector/BaseChannelSelector.test.d.ts +1 -0
- package/dist/esm/tests/flatCaptionBar/FlatCaptionBar.test.d.ts +1 -0
- package/dist/esm/tests/groupCaptionBar/GroupCaptionBar.test.d.ts +1 -0
- package/dist/esm/tests/htmlButtonBar/HtmlButtonBar.test.d.ts +1 -0
- package/dist/esm/tests/popups/TabOverflowPopup.test.d.ts +1 -0
- package/dist/esm/tests/tabs/Tab.test.d.ts +1 -0
- package/dist/esm/types/api.d.ts +10 -1
- package/dist/esm/types/defaultComponents.d.ts +0 -1
- package/dist/esm/types/internal.d.ts +21 -0
- package/dist/esm/webGroupsManager.d.ts +4 -1
- package/dist/styles/groups.css +6 -36
- package/dist/styles/vars.css +2 -1
- package/package.json +36 -28
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/cjs/types/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Bounds, ButtonProps, Location, OverflowedTabInfo, ToggleButtonProps } from "./internal";
|
|
2
|
+
import { Bounds, ButtonProps, Location, OverflowedTabInfo, StylesOptions, ToggleButtonProps } from "./internal";
|
|
3
3
|
import { CustomButtonProps } from "./defaultComponents";
|
|
4
4
|
export interface ChannelProps {
|
|
5
5
|
visible: boolean;
|
|
@@ -171,6 +171,15 @@ export interface GroupProps {
|
|
|
171
171
|
Buttons?: React.ComponentType<HtmlButtonsProps>;
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
|
+
styles?: {
|
|
175
|
+
tabs?: {
|
|
176
|
+
header?: StylesOptions;
|
|
177
|
+
moveArea?: StylesOptions;
|
|
178
|
+
};
|
|
179
|
+
frame?: {
|
|
180
|
+
element?: StylesOptions;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
174
183
|
}
|
|
175
184
|
export interface MoveAreaProps {
|
|
176
185
|
elementId: string;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
declare type NonMethodKeys<T> = ({
|
|
3
|
+
[P in keyof T]: T[P] extends Function ? never : P;
|
|
4
|
+
})[keyof T];
|
|
5
|
+
declare type NonMethods<T> = Pick<T, NonMethodKeys<T>>;
|
|
2
6
|
export interface PortalProps {
|
|
3
7
|
parentElement: HTMLElement;
|
|
4
8
|
children?: React.ReactNode;
|
|
@@ -58,6 +62,15 @@ export interface GroupWrapperProps {
|
|
|
58
62
|
onHideCaptionEditorRequested?: (targetType: TargetType, targetId: string) => void;
|
|
59
63
|
onShowLoadingAnimationRequested?: (targetType: TargetType, targetId: string) => void;
|
|
60
64
|
onHideLoadingAnimationRequested?: (targetType: TargetType, targetId: string) => void;
|
|
65
|
+
styles?: {
|
|
66
|
+
tabs?: {
|
|
67
|
+
header?: StylesOptions;
|
|
68
|
+
moveArea?: StylesOptions;
|
|
69
|
+
};
|
|
70
|
+
frame?: {
|
|
71
|
+
element?: StylesOptions;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
61
74
|
}
|
|
62
75
|
export interface CreateGroupCaptionBarRequestOptions extends CreateElementRequestOptions {
|
|
63
76
|
moveAreaId: string;
|
|
@@ -310,6 +323,9 @@ export interface ExternalLibraryFactory {
|
|
|
310
323
|
onCaptionEditorVisibleChanged(targetType: TargetType, targetId: string, visible: boolean): void;
|
|
311
324
|
onCaptionEditorBoundsChanged(targetType: TargetType, targetId: string, bounds: Bounds): void;
|
|
312
325
|
commitCaptionEditing(targetType: TargetType, targetId: string, text: string): void;
|
|
326
|
+
updateTabHeaderStyles(styles: StylesOptions): void;
|
|
327
|
+
updateTabMoveAreaStyles(styles: StylesOptions): void;
|
|
328
|
+
updateFrameStyles(styles: StylesOptions): void;
|
|
313
329
|
selectTab(windowId: string): void;
|
|
314
330
|
openTabOverflowPopup(frameId: string, location: Location): void;
|
|
315
331
|
addTabContainerClass(windowId: string, className: string): void;
|
|
@@ -333,5 +349,10 @@ export interface Location {
|
|
|
333
349
|
left: number;
|
|
334
350
|
top: number;
|
|
335
351
|
}
|
|
352
|
+
export interface StylesOptions {
|
|
353
|
+
css?: Partial<NonMethods<CSSStyleDeclaration>>;
|
|
354
|
+
classes?: string[];
|
|
355
|
+
}
|
|
336
356
|
export interface Bounds extends Size, Location {
|
|
337
357
|
}
|
|
358
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bounds, Location, TargetType } from "./types/internal";
|
|
1
|
+
import { Bounds, Location, StylesOptions, TargetType } from "./types/internal";
|
|
2
2
|
declare class WebGroupsManagerDecorator {
|
|
3
3
|
private readonly registry;
|
|
4
4
|
readonly skipFocusStyle = "t42-skip-focus";
|
|
@@ -35,6 +35,9 @@ declare class WebGroupsManagerDecorator {
|
|
|
35
35
|
commitCaptionEditing(targetType: TargetType, targetId: string, text: string): void;
|
|
36
36
|
onCommitCaptionEditingRequested(targetType: TargetType, targetId: string, callback: () => void): () => void;
|
|
37
37
|
requestCommitCaptionEditing(targetType: TargetType, targetId: string): void;
|
|
38
|
+
updateTabHeaderStyles(styles: StylesOptions): void;
|
|
39
|
+
updateTabMoveAreaStyles(styles: StylesOptions): void;
|
|
40
|
+
updateFrameStyles(styles: StylesOptions): void;
|
|
38
41
|
selectTab(windowId: string): void;
|
|
39
42
|
addTabContainerClass(windowId: string, className: string): void;
|
|
40
43
|
removeTabContainerClass(windowId: string, className: string): void;
|
|
@@ -3,7 +3,8 @@ import { GroupWrapperProps } from "./types/internal";
|
|
|
3
3
|
declare class GroupWrapper extends React.Component<GroupWrapperProps> {
|
|
4
4
|
containerRef: HTMLElement | null;
|
|
5
5
|
componentDidMount(): void;
|
|
6
|
+
componentDidUpdate(prevProps: Readonly<GroupWrapperProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
6
7
|
componentWillUnmount(): void;
|
|
7
|
-
render(): JSX.Element;
|
|
8
|
+
render(): React.JSX.Element;
|
|
8
9
|
}
|
|
9
10
|
export default GroupWrapper;
|