flexlayout-react 0.7.13 → 0.7.15

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/ChangeLog.txt CHANGED
@@ -1,3 +1,10 @@
1
+ 0.7.15
2
+ Added arrow icon to edge indicators
3
+
4
+ 0.7.14
5
+ Added attribute tabsetClassName to tab nodes, this will add the classname to the parent
6
+ tabset when there is a single stretched tab. Updated mosaic layout in demo to use this to color headers.
7
+
1
8
  0.7.13
2
9
  New attribute on tabset: enableSingleTabStretch will stretch a single tab to take up
3
10
  all the remaining space and change the style to look like a header, combined with enableDrop
package/README.md CHANGED
@@ -272,49 +272,50 @@ for example see the getDocument() callback in agGrid at https://www.ag-grid.com/
272
272
  Attributes allowed in the 'global' element
273
273
 
274
274
 
275
- | Attribute | Default | Description |
276
- | ------------- |:-------------:| -----|
277
- | splitterSize | 8 | width in pixels of all splitters between tabsets/borders |
278
- | splitterExtra | 0 | additional width in pixels of the splitter hit test area |
279
- | legacyOverflowMenu | false | use the legacy text only overflow menu |
280
- | enableEdgeDock | true | |
281
- | enableRotateBorderIcons | true | boolean indicating if tab icons should rotate with the text in the left and right borders |
282
- | tabEnableClose | true | allow user to close all tabs via close button |
283
- | tabCloseType | 1 | see values in ICloseType |
284
- | tabEnableDrag | true | allow user to drag all tabs to new location |
285
- | tabEnableRename | true | allow user to rename all tabs by double clicking |
286
- | tabEnableFloat | false | enable popouts in all tabs (in popout capable browser) |
287
- | tabClassName | null | |
288
- | tabContentClassName | null | |
289
- | tabIcon | null | |
290
- | tabEnableRenderOnDemand | true | whether to avoid rendering component until tab is visible |
291
- | tabDragSpeed | 0.3 | CSS transition speed of drag outlines (in seconds) |
292
- | tabBorderWidth | -1 | width when added to border, -1 will use border size |
293
- | tabBorderHeight | -1 | height when added to border, -1 will use border size |
294
- | tabSetEnableDeleteWhenEmpty | true | |
295
- | tabSetEnableDrop | true | allow user to drag tabs into all tabsets |
296
- | tabSetEnableDrag | true | allow user to drag tabs out of all tabsets |
297
- | tabSetEnableDivide | true | allow user to drag tabs to region of all tabsets, splitting into new tabset |
298
- | tabSetEnableMaximize | true | allow user to maximize all tabsets to fill view via maximize button |
299
- | tabSetEnableClose | false | allow user to close all tabsets via close button |
300
- | tabSetAutoSelectTab | true | whether to select new/moved tabs in all tabsets |
301
- | tabSetClassNameTabStrip | null | height in pixels of tab strips in all tabsets |
302
- | tabSetClassNameHeader | null | |
303
- | tabSetEnableTabStrip | true | enable tab strip and allow multiple tabs in all tabsets |
304
- | tabSetHeaderHeight | 0 | height of tabset header in pixels; if left as 0 then the value will be calculated from the current fontSize |
305
- | tabSetTabStripHeight | 0 | height of tabset tab bar in pixels; if left as 0 then the value will be calculated from the current fontSize |
306
- | borderBarSize | 0 | size of the border bars in pixels; if left as 0 then the value will be calculated from the current fontSize |
307
- | borderEnableAutoHide | false | hide border if it has zero tabs |
308
- | borderEnableDrop | true | allow user to drag tabs into this border |
309
- | borderAutoSelectTabWhenOpen | true | whether to select new/moved tabs in border when the border is already open |
310
- | borderAutoSelectTabWhenClosed | false | whether to select new/moved tabs in border when the border is curently closed |
311
- | borderClassName | null | |
312
- | borderSize | 200 | initial width in pixels for left/right borders, height for top/bottom borders |
313
- | borderMinSize | 0 | minimum width in pixels for left/right borders, height for top/bottom borders |
314
- | tabSetMinHeight | 0 | minimum width (in px) for all tabsets |
315
- | tabSetMinWidth | 0 | minimum height (in px) for all tabsets |
316
- | tabSetTabLocation | top | show tabs in location top or bottom |
317
- | rootOrientationVertical | false | the top level 'row' will layout horizontally by default, set this option true to make it layout vertically |
275
+ | Attribute | Default | Description |
276
+ |-------------------------------|:-------:|--------------------------------------------------------------------------------------------------------------|
277
+ | splitterSize | 8 | width in pixels of all splitters between tabsets/borders |
278
+ | splitterExtra | 0 | additional width in pixels of the splitter hit test area |
279
+ | legacyOverflowMenu | false | use the legacy text only overflow menu |
280
+ | enableEdgeDock | true | |
281
+ | enableRotateBorderIcons | true | boolean indicating if tab icons should rotate with the text in the left and right borders |
282
+ | tabEnableClose | true | allow user to close all tabs via close button |
283
+ | tabCloseType | 1 | see values in ICloseType |
284
+ | tabEnableDrag | true | allow user to drag all tabs to new location |
285
+ | tabEnableRename | true | allow user to rename all tabs by double clicking |
286
+ | tabEnableFloat | false | enable popouts in all tabs (in popout capable browser) |
287
+ | tabClassName | null | |
288
+ | tabContentClassName | null | |
289
+ | tabIcon | null | |
290
+ | tabEnableRenderOnDemand | true | whether to avoid rendering component until tab is visible |
291
+ | tabDragSpeed | 0.3 | CSS transition speed of drag outlines (in seconds) |
292
+ | tabBorderWidth | -1 | width when added to border, -1 will use border size |
293
+ | tabBorderHeight | -1 | height when added to border, -1 will use border size |
294
+ | tabSetEnableDeleteWhenEmpty | true | |
295
+ | tabSetEnableDrop | true | allow user to drag tabs into all tabsets |
296
+ | tabSetEnableDrag | true | allow user to drag tabs out of all tabsets |
297
+ | tabSetEnableDivide | true | allow user to drag tabs to region of all tabsets, splitting into new tabset |
298
+ | tabSetEnableMaximize | true | allow user to maximize all tabsets to fill view via maximize button |
299
+ | tabSetEnableClose | false | allow user to close all tabsets via close button |
300
+ | tabSetAutoSelectTab | true | whether to select new/moved tabs in all tabsets |
301
+ | tabSetClassNameTabStrip | null | height in pixels of tab strips in all tabsets |
302
+ | tabSetEnableSingleTabStretch | false | if a tabset has only a single tab then stretch the single tab to fill area and display in a header style |
303
+ | tabSetClassNameHeader | null | |
304
+ | tabSetEnableTabStrip | true | enable tab strip and allow multiple tabs in all tabsets |
305
+ | tabSetHeaderHeight | 0 | height of tabset header in pixels; if left as 0 then the value will be calculated from the current fontSize |
306
+ | tabSetTabStripHeight | 0 | height of tabset tab bar in pixels; if left as 0 then the value will be calculated from the current fontSize |
307
+ | borderBarSize | 0 | size of the border bars in pixels; if left as 0 then the value will be calculated from the current fontSize |
308
+ | borderEnableAutoHide | false | hide border if it has zero tabs |
309
+ | borderEnableDrop | true | allow user to drag tabs into this border |
310
+ | borderAutoSelectTabWhenOpen | true | whether to select new/moved tabs in border when the border is already open |
311
+ | borderAutoSelectTabWhenClosed | false | whether to select new/moved tabs in border when the border is curently closed |
312
+ | borderClassName | null | |
313
+ | borderSize | 200 | initial width in pixels for left/right borders, height for top/bottom borders |
314
+ | borderMinSize | 0 | minimum width in pixels for left/right borders, height for top/bottom borders |
315
+ | tabSetMinHeight | 0 | minimum width (in px) for all tabsets |
316
+ | tabSetMinWidth | 0 | minimum height (in px) for all tabsets |
317
+ | tabSetTabLocation | top | show tabs in location top or bottom |
318
+ | rootOrientationVertical | false | the top level 'row' will layout horizontally by default, set this option true to make it layout vertically |
318
319
 
319
320
 
320
321
  ## Row Attributes
@@ -353,6 +354,7 @@ Inherited defaults will take their value from the associated global attributes (
353
354
  | floating | false | |
354
355
  | className | *inherited* | class applied to tab button |
355
356
  | contentClassName | *inherited* | class applied to tab content |
357
+ | tabsetClassName | undefined | class applied to parent tabset when this is the only tab and it is stretched to fill the tabset |
356
358
  | icon | *inherited* | |
357
359
  | enableRenderOnDemand | *inherited* | whether to avoid rendering component until tab is visible |
358
360
  | borderWidth | *inherited* | width when added to border, -1 will use border size |
@@ -370,34 +372,35 @@ Inherited defaults will take their value from the associated global attributes (
370
372
 
371
373
  Note: tabsets can be dynamically created as tabs are moved and deleted when all their tabs are removed (unless enableDeleteWhenEmpty is false).
372
374
 
373
- | Attribute | Default | Description |
374
- | ------------- |:-------------:| -----|
375
- | type | tabset | |
376
- | weight | 100 | relative weight for sizing of this tabset in parent row |
377
- | width | null | preferred pixel width |
378
- | height | null | preferred pixel height |
379
- | name | null | named tabsets will show a header bar above the tabs |
380
- | config | null | a place to hold json config used in your own code |
381
- | selected | 0 | index of selected/visible tab in tabset |
382
- | active | false | whether tabset is currently active; this attribute can only be used in the initial configuration, to change the active tabset you should use the `setActiveTabset` action on the model |
383
- | maximized | false | whether tabset is currently maximized to fill view |
384
- | enableClose | false | allow user to close tabset via a close button |
385
- | id | auto generated | |
386
- | children | *required* | a list of tab nodes |
387
- | enableDeleteWhenEmpty | *inherited* | |
388
- | enableDrop | *inherited* | allow user to drag tabs into this tabset |
389
- | enableDrag | *inherited* | allow user to drag tabs out this tabset |
390
- | enableDivide | *inherited* | allow user to drag tabs to region of this tabset, splitting into new tabset |
391
- | enableMaximize | *inherited* | allow user to maximize tabset to fill view via maximize button |
392
- | autoSelectTab | *inherited* | whether to select new/moved tabs in tabset |
393
- | classNameTabStrip | *inherited* | |
394
- | classNameHeader | *inherited* | |
395
- | enableTabStrip | *inherited* | enable tab strip and allow multiple tabs in this tabset |
396
- | headerHeight | *inherited* | |
397
- | tabStripHeight | *inherited* | height in pixels of tab strip |
398
- | tabLocation | *inherited* | show tabs in location top or bottom |
399
- | minHeight | *inherited* | minimum height (in px) for this tabset |
400
- | minWidth | *inherited* | minimum width (in px) for this tabset |
375
+ | Attribute | Default | Description |
376
+ |-------------------------|:-------------:|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
377
+ | type | tabset | |
378
+ | weight | 100 | relative weight for sizing of this tabset in parent row |
379
+ | width | null | preferred pixel width |
380
+ | height | null | preferred pixel height |
381
+ | name | null | named tabsets will show a header bar above the tabs |
382
+ | config | null | a place to hold json config used in your own code |
383
+ | selected | 0 | index of selected/visible tab in tabset |
384
+ | active | false | whether tabset is currently active; this attribute can only be used in the initial configuration, to change the active tabset you should use the `setActiveTabset` action on the model |
385
+ | maximized | false | whether tabset is currently maximized to fill view |
386
+ | enableClose | false | allow user to close tabset via a close button |
387
+ | id | auto generated | |
388
+ | children | *required* | a list of tab nodes |
389
+ | enableDeleteWhenEmpty | *inherited* | |
390
+ | enableDrop | *inherited* | allow user to drag tabs into this tabset |
391
+ | enableDrag | *inherited* | allow user to drag tabs out this tabset |
392
+ | enableDivide | *inherited* | allow user to drag tabs to region of this tabset, splitting into new tabset |
393
+ | enableMaximize | *inherited* | allow user to maximize tabset to fill view via maximize button |
394
+ | enableSingleTabStretch | *inherited* | if the tabset has only a single tab then stretch the single tab to fill area and display in a header style |
395
+ | autoSelectTab | *inherited* | whether to select new/moved tabs in tabset |
396
+ | classNameTabStrip | *inherited* | |
397
+ | classNameHeader | *inherited* | |
398
+ | enableTabStrip | *inherited* | enable tab strip and allow multiple tabs in this tabset |
399
+ | headerHeight | *inherited* | |
400
+ | tabStripHeight | *inherited* | height in pixels of tab strip |
401
+ | tabLocation | *inherited* | show tabs in location top or bottom |
402
+ | minHeight | *inherited* | minimum height (in px) for this tabset |
403
+ | minWidth | *inherited* | minimum width (in px) for this tabset |
401
404
 
402
405
  ## Border Attributes
403
406
 
@@ -120,6 +120,7 @@ export interface ITabAttributes {
120
120
  component?: string;
121
121
  config?: any;
122
122
  contentClassName?: string;
123
+ tabsetClassName?: string;
123
124
  enableClose?: boolean;
124
125
  enableDrag?: boolean;
125
126
  enableFloat?: boolean;
@@ -31,6 +31,7 @@ export declare class TabNode extends Node implements IDraggable {
31
31
  isEnableRename(): boolean;
32
32
  getClassName(): string | undefined;
33
33
  getContentClassName(): string | undefined;
34
+ getTabSetClassName(): string | undefined;
34
35
  isEnableRenderOnDemand(): boolean;
35
36
  toJson(): IJsonTabNode;
36
37
  }
@@ -2,5 +2,6 @@
2
2
  export declare const CloseIcon: () => JSX.Element;
3
3
  export declare const MaximizeIcon: () => JSX.Element;
4
4
  export declare const OverflowIcon: () => JSX.Element;
5
+ export declare const EdgeIcon: () => JSX.Element;
5
6
  export declare const PopoutIcon: () => JSX.Element;
6
7
  export declare const RestoreIcon: () => JSX.Element;
@@ -105,6 +105,7 @@ export interface IIcons {
105
105
  node: TabNode;
106
106
  index: number;
107
107
  }[]) => React.ReactNode));
108
+ edgeArrow?: React.ReactNode;
108
109
  }
109
110
  export interface ICustomDropDestination {
110
111
  rect: Rect;