ods-component-lib 1.18.18 → 1.18.27
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/README.md +30 -30
- package/dist/components/antd/button/OdsButton.d.ts +4 -3
- package/dist/components/antd/timepicker/OdsTimepicker.styled.d.ts +1 -1
- package/dist/components/devextreme/OdsDataGridNew.d.ts +2 -1
- package/dist/components/devextreme/OdsRemoteDataGrid.d.ts +5 -4
- package/dist/components/devextreme/index.d.ts +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +32 -13
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +32 -13
- package/dist/index.modern.js.map +1 -1
- package/dist/stories/Commons/DateColumnCell.d.ts +4 -0
- package/dist/stories/Commons/Tag.d.ts +2 -0
- package/dist/stories/OdsButton/OdsButton.stories.d.ts +36 -0
- package/dist/stories/OdsButton/Samples/LinkButton.Sample.d.ts +1 -0
- package/dist/stories/OdsButton/Samples/PrimaryButton.Sample.d.ts +1 -0
- package/dist/stories/OdsButton/Samples/RoundButton.Sample.d.ts +1 -0
- package/dist/stories/OdsRemoteDataGrid/OdsRemoteDataGrid.stories.d.ts +68 -0
- package/dist/stories/OdsRemoteDataGrid/Samples/BasicDataGrid/BasicDataGrid.Constants.d.ts +17 -0
- package/dist/stories/OdsRemoteDataGrid/Samples/BasicDataGrid/BasicDataGrid.MockData.d.ts +5 -0
- package/dist/stories/OdsRemoteDataGrid/Samples/BasicDataGrid/BasicDataGrid.Sample.d.ts +1 -0
- package/dist/stories/OdsRemoteDataGrid/Samples/DataGridWithActionColumns/DataGridWithActionColumns.Constants.d.ts +17 -0
- package/dist/stories/OdsRemoteDataGrid/Samples/DataGridWithActionColumns/DataGridWithActionColumns.MockData.d.ts +5 -0
- package/dist/stories/OdsRemoteDataGrid/Samples/DataGridWithActionColumns/DataGridWithActionColumns.Sample.d.ts +1 -0
- package/dist/stories/OdsTextArea/OdsTextArea.stories.d.ts +23 -0
- package/dist/stories/OdsTextArea/Samples/FilledTextArea.Sample.d.ts +1 -0
- package/dist/stories/OdsTextArea/Samples/OutlinedTextArea.Sample.d.ts +1 -0
- package/package.json +26 -43
- /package/dist/components/antd/datepicker/{OdsDateRangePicker.d.ts → OdsDateRangepicker.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
# odeon-component-library
|
|
2
|
-
|
|
3
|
-
> Odeon desgin system component library
|
|
4
|
-
|
|
5
|
-
[](https://www.npmjs.com/package/odeon-component-library) [](https://standardjs.com)
|
|
6
|
-
|
|
7
|
-
## Install
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm install --save odeon-component-library
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```tsx
|
|
16
|
-
import React, { Component } from 'react'
|
|
17
|
-
|
|
18
|
-
import MyComponent from 'odeon-component-library'
|
|
19
|
-
import 'odeon-component-library/dist/index.css'
|
|
20
|
-
|
|
21
|
-
class Example extends Component {
|
|
22
|
-
render() {
|
|
23
|
-
return <MyComponent />
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## License
|
|
29
|
-
|
|
30
|
-
MIT © [OdeonTechnology](https://github.com/OdeonTechnology)
|
|
1
|
+
# odeon-component-library
|
|
2
|
+
|
|
3
|
+
> Odeon desgin system component library
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/odeon-component-library) [](https://standardjs.com)
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install --save odeon-component-library
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import React, { Component } from 'react'
|
|
17
|
+
|
|
18
|
+
import MyComponent from 'odeon-component-library'
|
|
19
|
+
import 'odeon-component-library/dist/index.css'
|
|
20
|
+
|
|
21
|
+
class Example extends Component {
|
|
22
|
+
render() {
|
|
23
|
+
return <MyComponent />
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## License
|
|
29
|
+
|
|
30
|
+
MIT © [OdeonTechnology](https://github.com/OdeonTechnology)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseButtonProps } from
|
|
2
|
-
import React from
|
|
1
|
+
import { BaseButtonProps } from "antd/es/button/button";
|
|
2
|
+
import React, { CSSProperties } from "react";
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
* @param props
|
|
@@ -19,6 +19,7 @@ import React from 'react';
|
|
|
19
19
|
export interface IButtonProps extends BaseButtonProps {
|
|
20
20
|
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
21
21
|
htmlType?: string;
|
|
22
|
+
style?: CSSProperties | undefined;
|
|
22
23
|
}
|
|
23
|
-
declare
|
|
24
|
+
declare const OdsButton: (props: IButtonProps) => React.JSX.Element;
|
|
24
25
|
export default OdsButton;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledTimepicker: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("antd").TimePickerProps, "form" | "slot" | "style" | "title" | "pattern" | "type" | "name" | "role" | "prefixCls" | "className" | "rootClassName" | "onMouseEnter" | "onMouseLeave" | "onClick" | "children" | "mode" | "id" | "direction" | "maxLength" | "tabIndex" | "autoFocus" | "placeholder" | "disabled" | "open" | "defaultOpen" | "maxTagCount" | "allowClear" | "suffixIcon" | "clearIcon" | "removeIcon" | "transitionName" | "dropdownClassName" | "placement" | "builtinPlacements" | "getPopupContainer" | "onBlur" | "onFocus" | "onKeyUp" | "onKeyDown" | "onMouseDown" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "
|
|
2
|
+
export declare const StyledTimepicker: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("antd").TimePickerProps, "form" | "slot" | "style" | "title" | "pattern" | "type" | "name" | "role" | "prefixCls" | "className" | "rootClassName" | "onMouseEnter" | "onMouseLeave" | "onClick" | "children" | "mode" | "id" | "direction" | "maxLength" | "tabIndex" | "autoFocus" | "placeholder" | "disabled" | "open" | "defaultOpen" | "maxTagCount" | "allowClear" | "suffixIcon" | "clearIcon" | "removeIcon" | "transitionName" | "dropdownClassName" | "placement" | "builtinPlacements" | "getPopupContainer" | "onBlur" | "onFocus" | "onKeyUp" | "onKeyDown" | "onMouseDown" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "value" | "defaultValue" | "onChange" | "size" | "bordered" | "variant" | "list" | "step" | "status" | "popupClassName" | "key" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "multiple" | "onOpenChange" | "locale" | "disabledDate" | "monthCellRender" | "cellRender" | "onPanelChange" | "classNames" | "styles" | "checked" | "required" | "accept" | "alt" | "autoComplete" | "capture" | "height" | "minLength" | "readOnly" | "src" | "width" | "prevIcon" | "nextIcon" | "superPrevIcon" | "superNextIcon" | "showWeek" | "format" | "inputReadOnly" | "order" | "minDate" | "maxDate" | "defaultOpenValue" | "popupAlign" | "needConfirm" | "changeOnBlur" | "preserveInvalidOnBlur" | "components" | "inputRender" | "dateRender" | "showNow" | "showToday" | "panelRender" | "renderExtraFooter" | "showHour" | "showMinute" | "showSecond" | "showMillisecond" | "use12Hours" | "hourStep" | "minuteStep" | "secondStep" | "millisecondStep" | "hideDisabledOptions" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "disabledTime" | "changeOnScroll" | "onCalendarChange" | "onOk" | "defaultPickerValue" | "pickerValue" | "onPickerValueChange" | "presets" | "popupStyle" | "addon"> & import("react").RefAttributes<any>> & {
|
|
3
3
|
RangePicker: import("react").ForwardRefExoticComponent<import("antd").TimeRangePickerProps & import("react").RefAttributes<any>>;
|
|
4
4
|
_InternalPanelDoNotUseOrYouWillBeFired: (props: Record<string | number | symbol, any>) => import("react").JSX.Element;
|
|
5
5
|
}, any, {}, never>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IDataGridOptions, IEditingProps, ISelectionProps, IButtonProps } from 'devextreme-react/data-grid';
|
|
3
|
+
import { ButtonType } from "antd/es/button/buttonHelpers";
|
|
3
4
|
interface IButtonGroup extends IButtonProps {
|
|
4
|
-
type?:
|
|
5
|
+
type?: ButtonType;
|
|
5
6
|
label?: string;
|
|
6
7
|
onclick?: React.MouseEventHandler<HTMLElement>;
|
|
7
8
|
actionPermission?: boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { IDataGridOptions, IButtonProps, ISelectionProps, IEditingProps, ISummaryProps } from 'devextreme-react/data-grid';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { ButtonType } from 'antd/es/button/buttonHelpers';
|
|
4
|
+
export interface IOdsDataGridProps extends IDataGridOptions {
|
|
5
|
+
dataGridPageName: string;
|
|
5
6
|
language: string;
|
|
6
7
|
exportFileName: string;
|
|
7
8
|
filterEnabledShow: boolean;
|
|
@@ -42,7 +43,7 @@ interface ISelectOptions extends ISelectionProps {
|
|
|
42
43
|
selectEnable: boolean;
|
|
43
44
|
}
|
|
44
45
|
interface IButtonGroup extends IButtonProps {
|
|
45
|
-
type?:
|
|
46
|
+
type?: ButtonType;
|
|
46
47
|
label?: string;
|
|
47
48
|
onclick?: React.MouseEventHandler<HTMLElement>;
|
|
48
49
|
actionPermission?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ import OdsCalendar from "./components/antd/calendar/OdsCalendar";
|
|
|
7
7
|
import OdsCard from "./components/antd/card/OdsCard";
|
|
8
8
|
import OdsCheckbox from "./components/antd/checkbox/OdsCheckbox";
|
|
9
9
|
import OdsCheckboxGroup from "./components/antd/checkbox/OdsCheckboxGroup";
|
|
10
|
-
import OdsDateRangePicker from "./components/antd/datepicker/
|
|
11
|
-
import OdsDatepicker from "./components/antd/datepicker/
|
|
10
|
+
import OdsDateRangePicker from "./components/antd/datepicker/OdsDateRangepicker";
|
|
11
|
+
import OdsDatepicker from "./components/antd/datepicker/OdsDatepicker";
|
|
12
12
|
import OdsDivider from "./components/antd/divider/OdsDivider";
|
|
13
13
|
import OdsCollapse from "./components/antd/dropdown/OdsDropdown";
|
|
14
14
|
import OdsDropdown from "./components/antd/dropdown/OdsDropdown";
|
package/dist/index.js
CHANGED
|
@@ -415,11 +415,14 @@ function OdsAutoComplete(props) {
|
|
|
415
415
|
var _templateObject$2;
|
|
416
416
|
var StyledButton = styled__default(antd.Button)(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteralLoose(["\n box-shadow: none;\n"])));
|
|
417
417
|
|
|
418
|
-
function
|
|
418
|
+
function StyledOdsButton(props) {
|
|
419
419
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(styled.ThemeProvider, {
|
|
420
420
|
theme: lightTheme
|
|
421
421
|
}, React__default.createElement(StyledButton, Object.assign({}, props), props.children)));
|
|
422
422
|
}
|
|
423
|
+
var OdsButton = function OdsButton(props) {
|
|
424
|
+
return React__default.createElement(StyledOdsButton, Object.assign({}, props));
|
|
425
|
+
};
|
|
423
426
|
|
|
424
427
|
var onMenuClick = function onMenuClick(e) {
|
|
425
428
|
console.log('click', e);
|
|
@@ -497,6 +500,16 @@ function OdsDateRangePicker(props) {
|
|
|
497
500
|
}))));
|
|
498
501
|
}
|
|
499
502
|
|
|
503
|
+
function OdsDatepicker(props) {
|
|
504
|
+
var _useState = React.useState('middle'),
|
|
505
|
+
size = _useState[0];
|
|
506
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(styled.ThemeProvider, {
|
|
507
|
+
theme: lightTheme
|
|
508
|
+
}, React__default.createElement(StyledDatepicker, Object.assign({}, props, {
|
|
509
|
+
size: size
|
|
510
|
+
}))));
|
|
511
|
+
}
|
|
512
|
+
|
|
500
513
|
var _templateObject$7;
|
|
501
514
|
var StyledDivider = styled__default(antd.Divider)(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteralLoose(["\n //\n"])));
|
|
502
515
|
|
|
@@ -17134,6 +17147,7 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
17134
17147
|
var _useState4 = React.useState(props.columns),
|
|
17135
17148
|
columns = _useState4[0],
|
|
17136
17149
|
setColumns = _useState4[1];
|
|
17150
|
+
var gridRef = React.useRef(null);
|
|
17137
17151
|
var onCancelEditEvent = new CustomEvent('cancelEdit', {
|
|
17138
17152
|
bubbles: true,
|
|
17139
17153
|
detail: {
|
|
@@ -17149,7 +17163,7 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
17149
17163
|
totalPageCount = 1;
|
|
17150
17164
|
loadedPageCount = 1;
|
|
17151
17165
|
totalRecordCount = 0;
|
|
17152
|
-
}, [props.
|
|
17166
|
+
}, [props.dataGridPageName]);
|
|
17153
17167
|
React.useEffect(function () {
|
|
17154
17168
|
var _props$axiosRequest;
|
|
17155
17169
|
if (props.axiosRequest !== undefined && Object.keys((_props$axiosRequest = props.axiosRequest) === null || _props$axiosRequest === void 0 ? void 0 : _props$axiosRequest.requestData).length > 0) {
|
|
@@ -17188,6 +17202,9 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
17188
17202
|
React.useEffect(function () {
|
|
17189
17203
|
localization.locale(localStorage.getItem("locale"));
|
|
17190
17204
|
localization.loadMessages(JSON.parse(localStorage.getItem("localTranslation")));
|
|
17205
|
+
if (gridRef.current) {
|
|
17206
|
+
gridRef.current.instance.updateDimensions();
|
|
17207
|
+
}
|
|
17191
17208
|
}, []);
|
|
17192
17209
|
var actionButtons = React.useMemo(function () {
|
|
17193
17210
|
if (props.actionButtonGroup) {
|
|
@@ -17265,10 +17282,10 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
17265
17282
|
if (e.row !== undefined && e.parentType === 'dataRow') {
|
|
17266
17283
|
if (props.isServerSide) {
|
|
17267
17284
|
var disableScrolling = function disableScrolling() {
|
|
17268
|
-
|
|
17285
|
+
gridRef.current.instance.option('scrolling.mode', 'none');
|
|
17269
17286
|
};
|
|
17270
17287
|
var enableScrolling = function enableScrolling() {
|
|
17271
|
-
|
|
17288
|
+
gridRef.current.instance.option('scrolling.mode', 'virtual');
|
|
17272
17289
|
};
|
|
17273
17290
|
e.editorOptions.onFocusIn = disableScrolling;
|
|
17274
17291
|
e.editorOptions.onFocusOut = enableScrolling;
|
|
@@ -17418,6 +17435,9 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
17418
17435
|
var height = (_scrollable$clientHei = scrollable === null || scrollable === void 0 ? void 0 : scrollable.clientHeight) != null ? _scrollable$clientHei : 0;
|
|
17419
17436
|
var scrollHeight = (_scrollable$scrollHei = scrollable === null || scrollable === void 0 ? void 0 : scrollable.scrollHeight) != null ? _scrollable$scrollHei : 0;
|
|
17420
17437
|
var maxHeight = Math.max(top, height, scrollHeight) - 1;
|
|
17438
|
+
if (scrollHeight <= height) {
|
|
17439
|
+
return;
|
|
17440
|
+
}
|
|
17421
17441
|
var reachedBottom = Math.ceil(top + height) >= maxHeight;
|
|
17422
17442
|
var lastScrollTop = 0;
|
|
17423
17443
|
if (top < lastScrollTop) {
|
|
@@ -17431,14 +17451,13 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
17431
17451
|
run(e);
|
|
17432
17452
|
};
|
|
17433
17453
|
React.useEffect(function () {
|
|
17434
|
-
|
|
17435
|
-
|
|
17436
|
-
|
|
17437
|
-
}
|
|
17454
|
+
document.querySelectorAll('.dx-scrollable-container').forEach(function (container) {
|
|
17455
|
+
container.addEventListener('scrollend', handleScroll);
|
|
17456
|
+
});
|
|
17438
17457
|
return function () {
|
|
17439
|
-
|
|
17440
|
-
|
|
17441
|
-
}
|
|
17458
|
+
document.querySelectorAll('.dx-scrollable-container').forEach(function (container) {
|
|
17459
|
+
container.removeEventListener('scrollend', handleScroll);
|
|
17460
|
+
});
|
|
17442
17461
|
};
|
|
17443
17462
|
}, [data.length]);
|
|
17444
17463
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement(DataGrid__default, {
|
|
@@ -17447,7 +17466,7 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
|
|
|
17447
17466
|
showBorders: true,
|
|
17448
17467
|
columnAutoWidth: false,
|
|
17449
17468
|
onEditorPreparing: onEditorPreparing,
|
|
17450
|
-
ref:
|
|
17469
|
+
ref: gridRef,
|
|
17451
17470
|
onExporting: onExporting,
|
|
17452
17471
|
height: props.height == undefined ? window.innerHeight - 164 : props.height,
|
|
17453
17472
|
allowColumnResizing: true,
|
|
@@ -17659,7 +17678,7 @@ exports.OdsCustomMultiSelect = OdsCustomMultiSelect;
|
|
|
17659
17678
|
exports.OdsDataGrid = OdsDataGrid;
|
|
17660
17679
|
exports.OdsDataGridNew = OdsDataGridNew;
|
|
17661
17680
|
exports.OdsDateRangePicker = OdsDateRangePicker;
|
|
17662
|
-
exports.OdsDatepicker =
|
|
17681
|
+
exports.OdsDatepicker = OdsDatepicker;
|
|
17663
17682
|
exports.OdsDisplayGrid = OdsDisplayGrid;
|
|
17664
17683
|
exports.OdsDivider = OdsDivider;
|
|
17665
17684
|
exports.OdsDropdown = OdsCollapse;
|