ods-component-lib 1.18.19 → 1.18.28

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.
Files changed (29) hide show
  1. package/README.md +30 -30
  2. package/dist/components/antd/button/OdsButton.d.ts +6 -4
  3. package/dist/components/antd/timepicker/OdsTimepicker.styled.d.ts +1 -1
  4. package/dist/components/devextreme/OdsDataGridNew.d.ts +2 -1
  5. package/dist/components/devextreme/OdsRemoteDataGrid.d.ts +4 -2
  6. package/dist/components/devextreme/index.d.ts +2 -0
  7. package/dist/index.d.ts +2 -2
  8. package/dist/index.js +26 -9
  9. package/dist/index.js.map +1 -1
  10. package/dist/index.modern.js +26 -9
  11. package/dist/index.modern.js.map +1 -1
  12. package/dist/stories/Commons/DateColumnCell.d.ts +4 -0
  13. package/dist/stories/Commons/Tag.d.ts +2 -0
  14. package/dist/stories/OdsButton/OdsButton.stories.d.ts +36 -0
  15. package/dist/stories/OdsButton/Samples/LinkButton.Sample.d.ts +1 -0
  16. package/dist/stories/OdsButton/Samples/PrimaryButton.Sample.d.ts +1 -0
  17. package/dist/stories/OdsButton/Samples/RoundButton.Sample.d.ts +1 -0
  18. package/dist/stories/OdsRemoteDataGrid/OdsRemoteDataGrid.stories.d.ts +68 -0
  19. package/dist/stories/OdsRemoteDataGrid/Samples/BasicDataGrid/BasicDataGrid.Constants.d.ts +17 -0
  20. package/dist/stories/OdsRemoteDataGrid/Samples/BasicDataGrid/BasicDataGrid.MockData.d.ts +5 -0
  21. package/dist/stories/OdsRemoteDataGrid/Samples/BasicDataGrid/BasicDataGrid.Sample.d.ts +1 -0
  22. package/dist/stories/OdsRemoteDataGrid/Samples/DataGridWithActionColumns/DataGridWithActionColumns.Constants.d.ts +17 -0
  23. package/dist/stories/OdsRemoteDataGrid/Samples/DataGridWithActionColumns/DataGridWithActionColumns.MockData.d.ts +5 -0
  24. package/dist/stories/OdsRemoteDataGrid/Samples/DataGridWithActionColumns/DataGridWithActionColumns.Sample.d.ts +1 -0
  25. package/dist/stories/OdsTextArea/OdsTextArea.stories.d.ts +23 -0
  26. package/dist/stories/OdsTextArea/Samples/FilledTextArea.Sample.d.ts +1 -0
  27. package/dist/stories/OdsTextArea/Samples/OutlinedTextArea.Sample.d.ts +1 -0
  28. package/package.json +26 -43
  29. /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
- [![NPM](https://img.shields.io/npm/v/odeon-component-library.svg)](https://www.npmjs.com/package/odeon-component-library) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](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
+ [![NPM](https://img.shields.io/npm/v/odeon-component-library.svg)](https://www.npmjs.com/package/odeon-component-library) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](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 'antd/es/button/button';
2
- import React from 'react';
1
+ import { BaseButtonProps } from "antd/es/button/button";
2
+ import React, { CSSProperties } from "react";
3
3
  /**
4
4
  *
5
5
  * @param props
@@ -17,8 +17,10 @@ import React from 'react';
17
17
  * @returns antd styled button
18
18
  */
19
19
  export interface IButtonProps extends BaseButtonProps {
20
- onClick?: React.MouseEventHandler<HTMLElement>;
20
+ onClick?: any;
21
21
  htmlType?: string;
22
+ style?: CSSProperties | undefined;
23
+ size?: any;
22
24
  }
23
- declare function OdsButton(props: any): React.JSX.Element;
25
+ declare const OdsButton: (props: IButtonProps) => React.JSX.Element;
24
26
  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" | "onSelect" | "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>> & {
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?: string;
5
+ type?: ButtonType;
5
6
  label?: string;
6
7
  onclick?: React.MouseEventHandler<HTMLElement>;
7
8
  actionPermission?: boolean;
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  import { IDataGridOptions, IButtonProps, ISelectionProps, IEditingProps, ISummaryProps } from 'devextreme-react/data-grid';
3
- interface IOdsDataGridProps extends IDataGridOptions {
3
+ import { ButtonType } from 'antd/es/button/buttonHelpers';
4
+ export interface IOdsDataGridProps extends IDataGridOptions {
5
+ ref?: any;
4
6
  dataGridPageName: string;
5
7
  language: string;
6
8
  exportFileName: string;
@@ -42,7 +44,7 @@ interface ISelectOptions extends ISelectionProps {
42
44
  selectEnable: boolean;
43
45
  }
44
46
  interface IButtonGroup extends IButtonProps {
45
- type?: string;
47
+ type?: ButtonType;
46
48
  label?: string;
47
49
  onclick?: React.MouseEventHandler<HTMLElement>;
48
50
  actionPermission?: boolean;
@@ -0,0 +1,2 @@
1
+ import OdsRemoteDataGrid from "./OdsRemoteDataGrid";
2
+ export { OdsRemoteDataGrid };
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/OdsDateRangePicker";
11
- import OdsDatepicker from "./components/antd/datepicker/OdsDateRangePicker";
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 OdsButton(props) {
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
 
@@ -17161,6 +17174,11 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
17161
17174
  fetchData();
17162
17175
  }
17163
17176
  }, [(_props$axiosRequest2 = props.axiosRequest) === null || _props$axiosRequest2 === void 0 ? void 0 : _props$axiosRequest2.requestData]);
17177
+ React.useEffect(function () {
17178
+ if (props.ref !== undefined) {
17179
+ gridRef = props.ref;
17180
+ }
17181
+ }, [props.ref]);
17164
17182
  React.useEffect(function () {
17165
17183
  if (columns !== undefined && columns.length > 0) {
17166
17184
  var newColumns = columns.map(function (colItem) {
@@ -17438,14 +17456,13 @@ var OdsRemoteDataGrid = function OdsRemoteDataGrid(props) {
17438
17456
  run(e);
17439
17457
  };
17440
17458
  React.useEffect(function () {
17441
- var scrollable = document.querySelector('.dx-scrollable-container');
17442
- if (scrollable) {
17443
- scrollable.addEventListener('scrollend', handleScroll);
17444
- }
17459
+ document.querySelectorAll('.dx-scrollable-container').forEach(function (container) {
17460
+ container.addEventListener('scrollend', handleScroll);
17461
+ });
17445
17462
  return function () {
17446
- if (scrollable) {
17447
- scrollable.removeEventListener('scrollend', handleScroll);
17448
- }
17463
+ document.querySelectorAll('.dx-scrollable-container').forEach(function (container) {
17464
+ container.removeEventListener('scrollend', handleScroll);
17465
+ });
17449
17466
  };
17450
17467
  }, [data.length]);
17451
17468
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(DataGrid__default, {
@@ -17666,7 +17683,7 @@ exports.OdsCustomMultiSelect = OdsCustomMultiSelect;
17666
17683
  exports.OdsDataGrid = OdsDataGrid;
17667
17684
  exports.OdsDataGridNew = OdsDataGridNew;
17668
17685
  exports.OdsDateRangePicker = OdsDateRangePicker;
17669
- exports.OdsDatepicker = OdsDateRangePicker;
17686
+ exports.OdsDatepicker = OdsDatepicker;
17670
17687
  exports.OdsDisplayGrid = OdsDisplayGrid;
17671
17688
  exports.OdsDivider = OdsDivider;
17672
17689
  exports.OdsDropdown = OdsCollapse;