@linzjs/lui 21.18.1 → 21.19.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [21.19.0](https://github.com/linz/lui/compare/v21.18.1...v21.19.0) (2024-02-09)
2
+
3
+
4
+ ### Features
5
+
6
+ * add floating window bounds control prop for react-rnd ([#1094](https://github.com/linz/lui/issues/1094)) ([f408981](https://github.com/linz/lui/commit/f4089816f66c2efb2061ad5c73e0eadb17514b6c))
7
+
1
8
  ## [21.18.1](https://github.com/linz/lui/compare/v21.18.0...v21.18.1) (2024-02-07)
2
9
 
3
10
 
@@ -14,6 +14,7 @@ export interface ILuiFloatingWindowProps {
14
14
  children?: ReactNode;
15
15
  initialPosition?: FloatingWindowPosition;
16
16
  minSize?: FloatingWindowSize;
17
+ bounds?: string;
17
18
  }
18
19
  export declare const LUI_WINDOW_NAME = "luiFloatingWindow";
19
20
  declare type FloatingWindowPosition = {
package/dist/index.js CHANGED
@@ -25581,7 +25581,7 @@ var MINI_WIDTH = 400;
25581
25581
  var MINI_HEIGHT = 100;
25582
25582
  var LUI_WINDOW_NAME = 'luiFloatingWindow';
25583
25583
  var LuiFloatingWindow = function (props) {
25584
- var startWidth = props.startWidth, startHeight = props.startHeight, leftSideHeader = props.leftSideHeader, rightSideHeader = props.rightSideHeader, initialPosition = props.initialPosition, startDisplayed = props.startDisplayed, startPoppedOut = props.startPoppedOut;
25584
+ var startWidth = props.startWidth, startHeight = props.startHeight, leftSideHeader = props.leftSideHeader, rightSideHeader = props.rightSideHeader, initialPosition = props.initialPosition, startDisplayed = props.startDisplayed, startPoppedOut = props.startPoppedOut, _a = props.bounds, bounds = _a === void 0 ? 'window' : _a;
25585
25585
  var initialSize = {
25586
25586
  width: startWidth ? startWidth : INITIAL_WIDTH,
25587
25587
  height: startHeight ? startHeight : INITIAL_HEIGHT
@@ -25604,7 +25604,7 @@ var LuiFloatingWindow = function (props) {
25604
25604
  props.callbackOnPopoutFloatingWindow();
25605
25605
  } })));
25606
25606
  };
25607
- return (React__default["default"].createElement(WF, __assign({}, props, { name: LUI_WINDOW_NAME, initialSize: initialSize, initialPosition: initialPosition || INITIAL_POSITION, minSize: { width: MINI_WIDTH, height: MINI_HEIGHT }, bounds: "window", headerProps: generateHeaders, startDisplayed: startDisplayed, startPoppedOut: startPoppedOut })));
25607
+ return (React__default["default"].createElement(WF, __assign({}, props, { name: LUI_WINDOW_NAME, initialSize: initialSize, initialPosition: initialPosition || INITIAL_POSITION, minSize: { width: MINI_WIDTH, height: MINI_HEIGHT }, bounds: bounds, headerProps: generateHeaders, startDisplayed: startDisplayed, startPoppedOut: startPoppedOut })));
25608
25608
  };
25609
25609
 
25610
25610
  var LuiToastMessage = function (_a) {