@interopio/groups-ui-react 2.2.4 → 2.2.6

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.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Bounds, ButtonProps, OverflowedTabInfo, ToggleButtonProps } from "./internal";
2
+ import { Bounds, ButtonProps, Location, OverflowedTabInfo, ToggleButtonProps } from "./internal";
3
3
  import { CustomButtonProps } from "./defaultComponents";
4
4
  export interface ChannelProps {
5
5
  visible: boolean;
@@ -106,8 +106,10 @@ export interface TabElementProps {
106
106
  export interface AfterTabsProps {
107
107
  frameId: string;
108
108
  selectedWindow: string;
109
+ hiddenTabsToTheLeft?: OverflowedTabInfo[];
110
+ hiddenTabsToTheRight?: OverflowedTabInfo[];
109
111
  }
110
- export interface TabHeaderButtonsProps {
112
+ interface FrameButtonsProps {
111
113
  overflow?: ButtonProps;
112
114
  feedback?: ButtonProps;
113
115
  clone?: ButtonProps;
@@ -123,7 +125,11 @@ export interface TabHeaderButtonsProps {
123
125
  frameId: string;
124
126
  selectedWindow: string;
125
127
  }
126
- export interface HtmlButtonsProps extends TabHeaderButtonsProps {
128
+ export interface TabHeaderButtonsProps extends FrameButtonsProps {
129
+ hiddenTabsToTheLeft: OverflowedTabInfo[];
130
+ hiddenTabsToTheRight: OverflowedTabInfo[];
131
+ }
132
+ export interface HtmlButtonsProps extends FrameButtonsProps {
127
133
  }
128
134
  export interface GroupProps {
129
135
  components?: {
@@ -161,3 +167,8 @@ export interface MoveAreaProps {
161
167
  export interface GroupComponentVisibilityState {
162
168
  groupCaptionBarVisible?: boolean;
163
169
  }
170
+ export interface OpenTabOverflowPopupOptions {
171
+ frameId: string;
172
+ location: Location;
173
+ }
174
+ export {};
@@ -202,7 +202,10 @@ export interface CreateTabOverflowPopupRequestOptions extends CreateElementReque
202
202
  export interface CreateFrameLoadingAnimationRequestOptions extends CreateFrameElementRequestOptions {
203
203
  show: boolean;
204
204
  }
205
- export declare type UpdateFrameRequestOptions = CreateFrameElementRequestOptions;
205
+ export interface UpdateFrameRequestOptions extends CreateFrameElementRequestOptions {
206
+ hiddenTabsToTheLeft: OverflowedTabInfo[];
207
+ hiddenTabsToTheRight: OverflowedTabInfo[];
208
+ }
206
209
  export declare enum TargetType {
207
210
  Group = "group",
208
211
  Frame = "frame",
@@ -285,6 +288,7 @@ export interface ExternalLibraryFactory {
285
288
  onCaptionEditorBoundsChanged(targetType: TargetType, targetId: string, bounds: Bounds): void;
286
289
  commitCaptionEditing(targetType: TargetType, targetId: string, text: string): void;
287
290
  selectTab(windowId: string): void;
291
+ openTabOverflowPopup(frameId: string, location: Location): void;
288
292
  addTabContainerClass(windowId: string, className: string): void;
289
293
  removeTabContainerClass(windowId: string, className: string): void;
290
294
  }
@@ -302,7 +306,9 @@ export interface Size {
302
306
  width: number;
303
307
  height: number;
304
308
  }
305
- export interface Bounds extends Size {
309
+ export interface Location {
306
310
  left: number;
307
311
  top: number;
308
312
  }
313
+ export interface Bounds extends Size, Location {
314
+ }
@@ -1,4 +1,4 @@
1
- import { Bounds, TargetType } from "./types/internal";
1
+ import { Bounds, Location, TargetType } from "./types/internal";
2
2
  declare class WebGroupsManagerDecorator {
3
3
  private readonly registry;
4
4
  readonly skipFocusStyle = "t42-skip-focus";
@@ -38,6 +38,7 @@ declare class WebGroupsManagerDecorator {
38
38
  selectTab(windowId: string): void;
39
39
  addTabContainerClass(windowId: string, className: string): void;
40
40
  removeTabContainerClass(windowId: string, className: string): void;
41
+ openTabOverflowPopup(frameId: string, location: Location): void;
41
42
  }
42
43
  declare const _default: WebGroupsManagerDecorator;
43
44
  export default _default;
@@ -814,6 +814,40 @@ input {
814
814
  overflow: auto;
815
815
  }
816
816
 
817
+ .t42-tabs-overflow.t42-tabs-fade-right {
818
+ -webkit-mask-image: linear-gradient(
819
+ -90deg,
820
+ rgba(0, 0, 0, 0) 0,
821
+ rgba(0, 0, 0, 0.3) calc(var(--t42-tab-bar-fade-size) / 100 * 30),
822
+ rgba(0, 0, 0, 0.8) calc(var(--t42-tab-bar-fade-size) / 100 * 80),
823
+ rgba(0, 0, 0, 1) var(--t42-tab-bar-fade-size)
824
+ );
825
+ }
826
+
827
+ .t42-tabs-overflow.t42-tabs-fade-left {
828
+ -webkit-mask-image: linear-gradient(
829
+ 90deg,
830
+ rgba(0, 0, 0, 0) 0,
831
+ rgba(0, 0, 0, 0.3) calc(var(--t42-tab-bar-fade-size) / 100 * 30),
832
+ rgba(0, 0, 0, 0.8) calc(var(--t42-tab-bar-fade-size) / 100 * 80),
833
+ rgba(0, 0, 0, 1) var(--t42-tab-bar-fade-size)
834
+ );
835
+ }
836
+
837
+ .t42-tabs-overflow.t42-tabs-fade-both {
838
+ -webkit-mask-image: linear-gradient(
839
+ 90deg,
840
+ rgba(0, 0, 0, 0) 0%,
841
+ rgba(0, 0, 0, 0.3) calc(var(--t42-tab-bar-fade-size) / 100 * 30),
842
+ rgba(0, 0, 0, 0.8) calc(var(--t42-tab-bar-fade-size) / 100 * 80),
843
+ rgba(0, 0, 0, 1) var(--t42-tab-bar-fade-size),
844
+ rgba(0, 0, 0, 1) calc(100% - var(--t42-tab-bar-fade-size)),
845
+ rgba(0, 0, 0, 0.8) calc(100% - (var(--t42-tab-bar-fade-size) / 100 * 80)),
846
+ rgba(0, 0, 0, 0.3) calc(100% - (var(--t42-tab-bar-fade-size) / 100 * 30)),
847
+ rgba(0, 0, 0, 0) 100%
848
+ );
849
+ }
850
+
817
851
  .t42-page-popup {
818
852
  position: absolute;
819
853
  z-index: 999;
@@ -838,8 +872,8 @@ input {
838
872
  align-items: center;
839
873
  height: var(--t42-wg-tab-over-item-height);
840
874
  padding: var(--t42-wg-tab-over-item-padding);
841
- transition-property: background-color;
842
875
  transition-duration: 80ms;
876
+ transition-property: background-color;
843
877
  }
844
878
 
845
879
  .t42-tab-overflow-popup li span {
@@ -47,6 +47,7 @@
47
47
  --t42-tab-bar-selected-tab-hover-text: var(--tabs-color-hover);
48
48
  --t42-tab-bar-selected-tab-background: var(--window-tabs-background-active);
49
49
  --t42-tab-bar-selected-tab-hover-background: var(--window-tabs-background-active);
50
+ --t42-tab-bar-fade-size: 24px;
50
51
 
51
52
  --t42-tab-bar-tab-height: 28px; /* for 10.0 - var(--spacing-24); */
52
53
  --t42-tab-bar-tab-min-width: 48px;
@@ -103,6 +104,7 @@
103
104
  --t42-hover-sizing-border-group-color: hsl(var(--io-highlight-Interactive));
104
105
  --t42-active-sizing-border-group-color: hsl(var(--io-interactive-primary));
105
106
 
107
+
106
108
  --t42-wg-tab-over-max-height: 100vh;
107
109
  --t42-wg-tab-over-max-width: 200px;
108
110
  --t42-wg-tab-over-min-width: 200px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interopio/groups-ui-react",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "description": "React library for building a Web Group App for io.Connect Desktop.",
5
5
  "author": {
6
6
  "name": "interop.io",