@linzjs/lui 17.26.1-1 → 17.28.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/lui.esm.js CHANGED
@@ -2800,7 +2800,7 @@ function styleInject(css, ref) {
2800
2800
  }
2801
2801
  }
2802
2802
 
2803
- var css_248z$9 = ".LuiResizableLayout-leftPanel {\n display: flex;\n flex-direction: column;\n /* this overflow and the one below (LuiResizableLayout-leftPanelBody) are need to make only\n the search result div scroll (instead of the whole page) */\n overflow: auto;\n}\n\n.LuiResizableLayout-rightPanel {\n display: flex;\n flex-direction: column;\n /* this overflow and the one below (LuiResizableLayout-leftPanelBody) are need to make only\n the search result div scroll (instead of the whole page) */\n overflow: auto;\n}\n\n.LuiResizableLayout-leftPanelBody {\n overflow-y: auto;\n}\n\n.LuiResizableLayout-gutterParentControl {\n display: flex;\n /* use visibility and opacity instead of display: none as we want to be able to fade in on hover */\n visibility: hidden;\n opacity: 0;\n position: fixed;\n top: 50%;\n z-index: 500;\n margin-left: -30px;\n /*half total control width, minus half the gutter width*/\n transition: 0.3s all 2s ease-in;\n}\n\n.LuiResizableLayout-gutterControlLeft, .LuiResizableLayout-gutterControlRight {\n background-color: #EAEAEA;\n width: 32px;\n height: 80px;\n text-align: center;\n display: flex;\n align-items: center;\n}\n\n.LuiResizableLayout-gutterControlLeft {\n border-radius: 3px 0 0 3px;\n}\n\n.LuiResizableLayout-gutterControlRight {\n border-radius: 0 3px 3px 0;\n}\n\n.LuiResizableLayout-gutterControlLeft > .LuiIcon, .LuiResizableLayout-gutterControlRight > .LuiIcon {\n height: auto;\n}\n\n.LuiResizableLayout-gutterControlLeft:hover, .LuiResizableLayout-gutterControlRight:hover {\n background-color: #73c8e1;\n cursor: pointer;\n}\n\n.LuiResizableLayout-gutterControl-collapsed {\n visibility: hidden;\n}\n\n/* TODO: move the expand gutter button so it doesn't show over the scroll bar */\n.LuiResizableLayout-gutterParentControlVisible {\n visibility: visible;\n opacity: 1;\n}\n\n.LuiResizableLayout-grid {\n display: grid;\n height: 100%;\n}\n\n.LuiResizableLayout-gutterCol {\n grid-row: 1/-1;\n cursor: col-resize;\n width: 16px;\n z-index: 1;\n}\n\n.LuiResizableLayout-gutterCol-collapsed {\n width: 4px;\n}\n\n.LuiResizableLayout-gutterCol1 {\n grid-column: 2;\n}\n\n.LuiResizableLayout-gutterCol:hover > .LuiResizableLayout-gutterParentControl {\n visibility: visible;\n opacity: 1;\n transition: 0s all 0s ease-in;\n}\n\n.LuiResizableLayout-gutterSlider {\n width: 4px;\n height: 100%;\n background-color: #EAEAEA;\n pointer-events: none;\n}\n\n.LuiResizableLayout-gutterCol:hover .LuiResizableLayout-gutterSlider, .LuiResizableLayout-gutterCol:active .LuiResizableLayout-gutterSlider {\n background-color: #73c8e1;\n}";
2803
+ var css_248z$9 = ".LuiResizableLayout-leftPanel {\n display: flex;\n flex-direction: column;\n /* this overflow and the one below (LuiResizableLayout-leftPanelBody) are need to make only\n the search result div scroll (instead of the whole page) */\n overflow: auto;\n}\n\n.LuiResizableLayout-rightPanel {\n display: flex;\n flex-direction: column;\n /* this overflow and the one below (LuiResizableLayout-leftPanelBody) are need to make only\n the search result div scroll (instead of the whole page) */\n overflow: auto;\n}\n\n.LuiResizableLayout-leftPanelBody {\n overflow-y: auto;\n}\n\n.LuiResizableLayout-gutterParentControl {\n display: flex;\n /* use visibility and opacity instead of display: none as we want to be able to fade in on hover */\n visibility: hidden;\n opacity: 0;\n position: fixed;\n top: 50%;\n z-index: 500;\n margin-left: -30px;\n /*half total control width, minus half the gutter width*/\n transition: 0.3s all 2s ease-in;\n}\n\n.LuiResizableLayout-gutterControlLeft, .LuiResizableLayout-gutterControlRight {\n background-color: #eaeaea;\n width: 32px;\n height: 80px;\n text-align: center;\n display: flex;\n align-items: center;\n}\n\n.LuiResizableLayout-gutterControlLeft {\n border-radius: 3px 0 0 3px;\n}\n\n.LuiResizableLayout-gutterControlRight {\n border-radius: 0 3px 3px 0;\n}\n\n.LuiResizableLayout-gutterControlLeft > .LuiIcon, .LuiResizableLayout-gutterControlRight > .LuiIcon {\n height: auto;\n}\n\n.LuiResizableLayout-gutterControlLeft:hover, .LuiResizableLayout-gutterControlRight:hover {\n background-color: #73c8e1;\n cursor: pointer;\n}\n\n.LuiResizableLayout-gutterControl-collapsed {\n visibility: hidden;\n}\n\n/* TODO: move the expand gutter button so it doesn't show over the scroll bar */\n.LuiResizableLayout-gutterParentControlVisible {\n visibility: visible;\n opacity: 1;\n}\n\n.LuiResizableLayout-grid {\n display: grid;\n height: 100%;\n}\n\n.LuiResizableLayout-gutterCol {\n grid-row: 1/-1;\n cursor: col-resize;\n width: 16px;\n z-index: 1;\n}\n\n.LuiResizableLayout-gutterCol-collapsed {\n width: 4px;\n}\n\n.LuiResizableLayout-gutterCol1 {\n grid-column: 2;\n}\n\n.LuiResizableLayout-gutterCol:hover > .LuiResizableLayout-gutterParentControl {\n visibility: visible;\n opacity: 1;\n transition: 0s all 0s ease-in;\n}\n\n.LuiResizableLayout-gutterSlider {\n width: 4px;\n height: 100%;\n background-color: #eaeaea;\n pointer-events: none;\n}\n\n.LuiResizableLayout-gutterCol:hover .LuiResizableLayout-gutterSlider, .LuiResizableLayout-gutterCol:active .LuiResizableLayout-gutterSlider {\n background-color: #73c8e1;\n}";
2804
2804
  styleInject(css_248z$9);
2805
2805
 
2806
2806
  var GutterComponent = function (props) {
@@ -2829,7 +2829,7 @@ var SplitPanelState;
2829
2829
  SplitPanelState[SplitPanelState["CLOSED_RIGHT"] = 2] = "CLOSED_RIGHT";
2830
2830
  })(SplitPanelState || (SplitPanelState = {}));
2831
2831
  var LuiResizableLayout = function (props) {
2832
- var givenLeftRef = props.givenLeftRef, givenRightRef = props.givenRightRef, givenGridTemplateColumns = props.givenGridTemplateColumns, givenColumnMinSizes = props.givenColumnMinSizes, givenColumnSnapOffset = props.givenColumnSnapOffset, callbackOnClickLeftArrowButton = props.callbackOnClickLeftArrowButton, callbackOnClickRightArrowButton = props.callbackOnClickRightArrowButton;
2832
+ var givenLeftRef = props.givenLeftRef, givenRightRef = props.givenRightRef, givenGridTemplateColumns = props.givenGridTemplateColumns, givenColumnMinSizes = props.givenColumnMinSizes, givenColumnSnapOffset = props.givenColumnSnapOffset, callbackOnClickLeftArrowButton = props.callbackOnClickLeftArrowButton, callbackOnClickRightArrowButton = props.callbackOnClickRightArrowButton, callbackOnDraging = props.callbackOnDraging;
2833
2833
  var _a = useState(givenGridTemplateColumns ? givenGridTemplateColumns : '1fr 4px 1fr'), gridTemplateColumns = _a[0], setGridTemplateColumns = _a[1];
2834
2834
  var _b = useState(0), leftWidth = _b[0], setLeftWidth = _b[1];
2835
2835
  var _c = useState(0), rightWidth = _c[0], setRightWidth = _c[1];
@@ -2838,10 +2838,10 @@ var LuiResizableLayout = function (props) {
2838
2838
  var defaultRightRef = useRef(null);
2839
2839
  var leftRef = givenLeftRef ? givenLeftRef : defaultLeftRef;
2840
2840
  var rightRef = givenRightRef ? givenRightRef : defaultRightRef;
2841
- var updateSplitStateAndNotifyParent = function (newSplitState, leftWidth, rightWidth, currentGridTemplateColumns) {
2841
+ var updateSplitStateAndNotifyParent = function (newSplitState, leftWidth, rightWidth) {
2842
2842
  setSplitState(newSplitState);
2843
2843
  props.callbackOnSplitStateChange &&
2844
- props.callbackOnSplitStateChange(newSplitState, leftWidth, rightWidth, currentGridTemplateColumns);
2844
+ props.callbackOnSplitStateChange(newSplitState, leftWidth, rightWidth);
2845
2845
  };
2846
2846
  var defaultSplitStateChecker = function (leftWidth, rightWidth) {
2847
2847
  if (leftWidth <= 0) {
@@ -2878,8 +2878,8 @@ var LuiResizableLayout = function (props) {
2878
2878
  var rightWidth = observerRight.contentRect.width;
2879
2879
  // Update split state
2880
2880
  props.splitStateChecker
2881
- ? updateSplitStateAndNotifyParent(props.splitStateChecker(leftWidth, rightWidth), leftWidth, rightWidth, gridTemplateColumns)
2882
- : updateSplitStateAndNotifyParent(defaultSplitStateChecker(leftWidth, rightWidth), leftWidth, rightWidth, gridTemplateColumns);
2881
+ ? updateSplitStateAndNotifyParent(props.splitStateChecker(leftWidth, rightWidth), leftWidth, rightWidth)
2882
+ : updateSplitStateAndNotifyParent(defaultSplitStateChecker(leftWidth, rightWidth), leftWidth, rightWidth);
2883
2883
  // update the panel widths, which will be used to passed to the leftArrow/rightArrow button call back
2884
2884
  setLeftWidth(leftWidth);
2885
2885
  setRightWidth(rightWidth);
@@ -2894,9 +2894,9 @@ var LuiResizableLayout = function (props) {
2894
2894
  return function () { return obs === null || obs === void 0 ? void 0 : obs.disconnect(); };
2895
2895
  }, [leftRef.current, rightRef.current]);
2896
2896
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2897
+ // @ts-ignore
2897
2898
  var handleDrag = function (direction, track, style) {
2898
- console.log("direction is ".concat(direction, ", track ").concat(track));
2899
- setGridTemplateColumns(style);
2899
+ callbackOnDraging && callbackOnDraging(style);
2900
2900
  };
2901
2901
  var onLeftClickArrowButton = function (leftWidth, rightWidth) {
2902
2902
  callbackOnClickLeftArrowButton