ods-component-lib 1.19.7 → 1.19.8

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 (32) hide show
  1. package/README.md +39 -39
  2. package/dist/components/antd/button/OdsButton.styled.d.ts +1 -1
  3. package/dist/components/antd/input/OdsInput..d.ts +4 -0
  4. package/dist/components/antd/timepicker/OdsTimepicker.styled.d.ts +1 -1
  5. package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.Types.d.ts +1 -0
  6. package/dist/components/devextreme/OdsCabinDataGrid/OdsCabinGrid.Constants.d.ts +3 -0
  7. package/dist/components/devextreme/OdsCabinDataGrid/OdsCabinGrid.Functions.d.ts +4 -0
  8. package/dist/components/devextreme/OdsCabinDataGrid/OdsCabinGrid.Helpers.d.ts +12 -0
  9. package/dist/components/devextreme/OdsCabinDataGrid/OdsCabinGrid.Style.d.ts +94 -0
  10. package/dist/components/devextreme/OdsCabinDataGrid/OdsCabinGrid.Types.d.ts +46 -0
  11. package/dist/components/devextreme/OdsCabinDataGrid/OdsCabinGrid.d.ts +4 -0
  12. package/dist/components/devextreme/OdsDataGrid.d.ts +4 -0
  13. package/dist/components/devextreme/treeview/DxTreeList.d.ts +4 -0
  14. package/dist/index.css +267 -267
  15. package/dist/index.js +51 -50
  16. package/dist/index.js.map +1 -1
  17. package/dist/index.modern.js +51 -50
  18. package/dist/index.modern.js.map +1 -1
  19. package/dist/stories/OdsDatepicker/OdsDatepicker.stories.d.ts +1 -3
  20. package/dist/stories/OdsMasterDetailDataGrid/OdsMasterDetailDataGrid.stories.d.ts +3 -0
  21. package/dist/stories/OdsMasterDetailDataGrid/Samples/OdsMasterDetailDataGrid/OdsMasterDetailDataGrid.Constants.d.ts +22 -0
  22. package/dist/stories/OdsMasterDetailDataGrid/Samples/OdsMasterDetailDataGrid/OdsMasterDetailDataGrid.MockData.d.ts +44 -0
  23. package/dist/stories/OdsSwitch/OdsSwitch.stories copy.d.ts +16 -0
  24. package/dist/stories/OdsTreeList/OdsTreeList.stories.d.ts +165 -0
  25. package/dist/stories/OdsTreeList/Samples/BasicTreeListTemplate.Constants.d.ts +15 -0
  26. package/dist/stories/OdsTreeList/Samples/BasicTreeListTemplate.MockData.d.ts +24 -0
  27. package/dist/stories/OdsTreeList/Samples/BasicTreeListTemplate.Sample.d.ts +1 -0
  28. package/dist/stories/OdsTreeList/Samples/EmployeeCell.d.ts +4 -0
  29. package/package.json +101 -101
  30. /package/dist/components/antd/{datePicker/OdsDateRangePicker.d.ts → datepicker/OdsDateRangepicker.d.ts} +0 -0
  31. /package/dist/components/antd/{datePicker/OdsDatePicker.d.ts → datepicker/OdsDatepicker.d.ts} +0 -0
  32. /package/dist/components/antd/{datePicker/OdsDatePicker.Styled.d.ts → datepicker/OdsDatepicker.styled.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
3
  title: string;
4
- component: (props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<import("dayjs").Dayjs, Pick<import("rc-picker").PickerProps<import("dayjs").Dayjs>, "defaultValue" | "value" | "onChange" | "onOk" | "placeholder" | "id" | "disabled" | "onFocus" | "onBlur" | "onKeyDown" | "prefix" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "maxLength" | "minLength" | "multiple" | "name" | "pattern" | "readOnly" | "required" | "src" | "step" | "type" | "width" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "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" | "children" | "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" | "onKeyUp" | "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" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "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" | "prevIcon" | "nextIcon" | "superPrevIcon" | "superNextIcon" | "format" | "showNow" | "showHour" | "showMinute" | "showSecond" | "showMillisecond" | "use12Hours" | "hourStep" | "minuteStep" | "secondStep" | "millisecondStep" | "hideDisabledOptions" | "defaultOpenValue" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "disabledTime" | "changeOnScroll" | "removeIcon" | "maxTagCount" | "onCalendarChange" | "defaultPickerValue" | "pickerValue" | "onPickerValueChange" | "presets" | "mode" | "onPanelChange" | "direction" | "prefixCls" | "picker" | "showTime" | "showWeek" | "suffixIcon" | "allowClear" | "clearIcon" | "inputReadOnly" | "order" | "disabledDate" | "minDate" | "maxDate" | "defaultOpen" | "open" | "onOpenChange" | "popupAlign" | "getPopupContainer" | "placement" | "builtinPlacements" | "needConfirm" | "changeOnBlur" | "preserveInvalidOnBlur" | "transitionName" | "components" | "inputRender" | "cellRender" | "dateRender" | "monthCellRender" | "showToday" | "panelRender" | "renderExtraFooter"> & {
4
+ component: (props: import("antd/es/date-picker/generatePicker/interface").PickerPropsWithMultiple<import("dayjs").Dayjs, Pick<import("rc-picker").PickerProps<import("dayjs").Dayjs>, "defaultValue" | "value" | "onChange" | "onOk" | "placeholder" | "id" | "disabled" | "onFocus" | "onBlur" | "onKeyDown" | "prefix" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "maxLength" | "minLength" | "multiple" | "name" | "pattern" | "readOnly" | "required" | "src" | "step" | "type" | "width" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "children" | "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" | "onKeyUp" | "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" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "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" | "prevIcon" | "nextIcon" | "superPrevIcon" | "superNextIcon" | "format" | "showNow" | "showHour" | "showMinute" | "showSecond" | "showMillisecond" | "use12Hours" | "hourStep" | "minuteStep" | "secondStep" | "millisecondStep" | "hideDisabledOptions" | "defaultOpenValue" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "disabledTime" | "changeOnScroll" | "removeIcon" | "maxTagCount" | "onCalendarChange" | "defaultPickerValue" | "pickerValue" | "onPickerValueChange" | "presets" | "mode" | "onPanelChange" | "direction" | "prefixCls" | "styles" | "classNames" | "picker" | "showTime" | "showWeek" | "suffixIcon" | "allowClear" | "clearIcon" | "inputReadOnly" | "order" | "disabledDate" | "minDate" | "maxDate" | "defaultOpen" | "open" | "onOpenChange" | "popupAlign" | "getPopupContainer" | "placement" | "builtinPlacements" | "needConfirm" | "changeOnBlur" | "preserveInvalidOnBlur" | "transitionName" | "components" | "inputRender" | "cellRender" | "dateRender" | "monthCellRender" | "showToday" | "panelRender" | "renderExtraFooter"> & {
5
5
  locale?: import("antd/es/date-picker/generatePicker").PickerLocale;
6
6
  size?: import("antd/es/button").ButtonSize;
7
7
  placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
@@ -12,8 +12,6 @@ declare const _default: {
12
12
  popupClassName?: string;
13
13
  rootClassName?: string;
14
14
  popupStyle?: import("react").CSSProperties;
15
- styles?: import("antd/es/date-picker/generatePicker/interface").PickerStyles;
16
- classNames?: import("antd/es/date-picker/generatePicker/interface").PickerClassNames;
17
15
  }, import("dayjs").Dayjs>) => import("react").JSX.Element;
18
16
  tags: string[];
19
17
  argTypes: any;
@@ -0,0 +1,3 @@
1
+ declare const _default: import("@storybook/core/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
2
+ export default _default;
3
+ export declare const DefaultMasterDetail: any;
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ export declare const DataGridColumns: ({
3
+ dataField: string;
4
+ dataType: string;
5
+ caption: string;
6
+ cellRender?: undefined;
7
+ dataSource?: undefined;
8
+ } | {
9
+ dataField: string;
10
+ caption: string;
11
+ cellRender: (value: any) => import("react").JSX.Element;
12
+ dataSource: {
13
+ label: string;
14
+ value: boolean;
15
+ }[];
16
+ dataType?: undefined;
17
+ })[];
18
+ export declare const DetailGridColumns: {
19
+ dataField: string;
20
+ dataType: string;
21
+ caption: string;
22
+ }[];
@@ -0,0 +1,44 @@
1
+ export declare const MockData: {
2
+ ID: number;
3
+ Name: string;
4
+ Currency: string;
5
+ IsActive: boolean;
6
+ }[];
7
+ export declare const DetailMockData: {
8
+ 15007: {
9
+ Name: string;
10
+ Currency: string;
11
+ IsActive: boolean;
12
+ SubName: string;
13
+ }[];
14
+ 15020: {
15
+ Name: string;
16
+ Currency: string;
17
+ IsActive: boolean;
18
+ SubName: string;
19
+ }[];
20
+ 15021: {
21
+ Name: string;
22
+ Currency: string;
23
+ IsActive: boolean;
24
+ SubName: string;
25
+ }[];
26
+ 15022: {
27
+ Name: string;
28
+ Currency: string;
29
+ IsActive: boolean;
30
+ SubName: string;
31
+ }[];
32
+ 15023: {
33
+ Name: string;
34
+ Currency: string;
35
+ IsActive: boolean;
36
+ SubName: string;
37
+ }[];
38
+ 15024: {
39
+ Name: string;
40
+ Currency: string;
41
+ IsActive: boolean;
42
+ SubName: string;
43
+ }[];
44
+ };
@@ -0,0 +1,16 @@
1
+ import OdsSwitch from "../../components/antd/switch/OdsSwitch";
2
+ declare const _default: {
3
+ title: string;
4
+ component: typeof OdsSwitch;
5
+ tags: string[];
6
+ argTypes: any;
7
+ parameters: {
8
+ controls: {};
9
+ };
10
+ };
11
+ export default _default;
12
+ export declare const BasicDisabled: any;
13
+ export declare const Checked: any;
14
+ export declare const CheckedLoading: any;
15
+ export declare const CheckedChildrenDisplayText: any;
16
+ export declare const CheckedChildrenDisplayIcon: any;
@@ -0,0 +1,165 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ title: string;
4
+ component: (props: import("react").PropsWithChildren<{
5
+ disabled?: boolean;
6
+ onKeyDown?: (e: import("devextreme/ui/tree_list").KeyDownEvent<any, any>) => void;
7
+ height?: string | number | (() => import("react").ReactText);
8
+ width?: string | number | (() => import("react").ReactText);
9
+ accessKey?: string;
10
+ tabIndex?: number;
11
+ activeStateEnabled?: boolean;
12
+ hint?: string;
13
+ hoverStateEnabled?: boolean;
14
+ onContentReady?: (e: import("devextreme/ui/tree_list").ContentReadyEvent<any, any>) => void;
15
+ visible?: boolean;
16
+ bindingOptions?: {
17
+ [key: string]: any;
18
+ };
19
+ elementAttr?: {
20
+ [key: string]: any;
21
+ };
22
+ onDisposing?: (e: import("devextreme/ui/tree_list").DisposingEvent<any, any>) => void;
23
+ onOptionChanged?: (e: import("devextreme/core/dom_component").OptionChangedEventInfo<import("devextreme/ui/tree_list").default<any, any>>) => void;
24
+ rtlEnabled?: boolean;
25
+ onInitialized?: (e: import("devextreme/ui/tree_list").InitializedEvent<any, any>) => void;
26
+ allowColumnReordering?: boolean;
27
+ allowColumnResizing?: boolean;
28
+ autoNavigateToFocusedRow?: boolean;
29
+ cacheEnabled?: boolean;
30
+ cellHintEnabled?: boolean;
31
+ columnAutoWidth?: boolean;
32
+ columnChooser?: import("devextreme/common/grids").ColumnChooser;
33
+ columnFixing?: import("devextreme/common/grids").ColumnFixing;
34
+ columnHidingEnabled?: boolean;
35
+ columnMinWidth?: number;
36
+ columnResizingMode?: import("devextreme/common/grids").ColumnResizeMode;
37
+ columnWidth?: number | "auto";
38
+ dataSource?: import("devextreme/data/data_source").DataSourceLike<any, any>;
39
+ dateSerializationFormat?: string;
40
+ errorRowEnabled?: boolean;
41
+ filterBuilder?: import("devextreme/ui/filter_builder").dxFilterBuilderOptions;
42
+ filterBuilderPopup?: import("devextreme/ui/popup").Properties;
43
+ filterPanel?: import("devextreme/common/grids").FilterPanel<import("devextreme/ui/tree_list").default<any, any>, any, any>;
44
+ filterRow?: import("devextreme/common/grids").FilterRow;
45
+ filterSyncEnabled?: boolean | "auto";
46
+ filterValue?: string | Function | any[];
47
+ focusedColumnIndex?: number;
48
+ focusedRowEnabled?: boolean;
49
+ focusedRowIndex?: number;
50
+ focusedRowKey?: any;
51
+ headerFilter?: import("devextreme/common/grids").HeaderFilter;
52
+ highlightChanges?: boolean;
53
+ keyboardNavigation?: import("devextreme/common/grids").KeyboardNavigation;
54
+ loadPanel?: import("devextreme/common/grids").LoadPanel;
55
+ noDataText?: string;
56
+ onAdaptiveDetailRowPreparing?: (e: import("devextreme/ui/tree_list").AdaptiveDetailRowPreparingEvent<any, any>) => void;
57
+ onDataErrorOccurred?: (e: import("devextreme/ui/tree_list").DataErrorOccurredEvent<any, any>) => void;
58
+ onEditCanceled?: (e: import("devextreme/ui/tree_list").EditCanceledEvent<any, any>) => void;
59
+ onEditCanceling?: (e: import("devextreme/ui/tree_list").EditCancelingEvent<any, any>) => void;
60
+ onInitNewRow?: (e: import("devextreme/ui/tree_list").InitNewRowEvent<any, any>) => void;
61
+ onRowCollapsed?: (e: import("devextreme/ui/tree_list").RowCollapsedEvent<any, any>) => void;
62
+ onRowCollapsing?: (e: import("devextreme/ui/tree_list").RowCollapsingEvent<any, any>) => void;
63
+ onRowExpanded?: (e: import("devextreme/ui/tree_list").RowCollapsedEvent<any, any>) => void;
64
+ onRowExpanding?: (e: import("devextreme/ui/tree_list").RowCollapsingEvent<any, any>) => void;
65
+ onRowInserted?: (e: import("devextreme/ui/tree_list").RowInsertedEvent<any, any>) => void;
66
+ onRowInserting?: (e: import("devextreme/ui/tree_list").RowInsertingEvent<any, any>) => void;
67
+ onRowRemoved?: (e: import("devextreme/ui/tree_list").RowRemovedEvent<any, any>) => void;
68
+ onRowRemoving?: (e: import("devextreme/ui/tree_list").RowRemovingEvent<any, any>) => void;
69
+ onRowUpdated?: (e: import("devextreme/ui/tree_list").RowUpdatedEvent<any, any>) => void;
70
+ onRowUpdating?: (e: import("devextreme/ui/tree_list").RowUpdatingEvent<any, any>) => void;
71
+ onRowValidating?: (e: import("devextreme/ui/tree_list").RowValidatingEvent<any, any>) => void;
72
+ onSaved?: (e: import("devextreme/ui/tree_list").EditCanceledEvent<any, any>) => void;
73
+ onSaving?: (e: import("devextreme/ui/tree_list").SavingEvent<any, any>) => void;
74
+ onSelectionChanged?: (e: import("devextreme/events").EventInfo<import("devextreme/ui/tree_list").default<any, any>> & import("devextreme/common/grids").SelectionChangedInfo<any, any>) => void;
75
+ onToolbarPreparing?: (e: import("devextreme/ui/tree_list").ToolbarPreparingEvent<any, any>) => void;
76
+ pager?: import("devextreme/common/grids").Pager;
77
+ renderAsync?: boolean;
78
+ repaintChangesOnly?: boolean;
79
+ rowAlternationEnabled?: boolean;
80
+ rowDragging?: import("devextreme/common/grids").RowDragging<import("devextreme/ui/tree_list").default<any, any>, any, any>;
81
+ searchPanel?: import("devextreme/common/grids").SearchPanel;
82
+ selectedRowKeys?: any[];
83
+ showBorders?: boolean;
84
+ showColumnHeaders?: boolean;
85
+ showColumnLines?: boolean;
86
+ showRowLines?: boolean;
87
+ sorting?: import("devextreme/common/grids").Sorting;
88
+ stateStoring?: import("devextreme/common/grids").StateStoring;
89
+ twoWayBindingEnabled?: boolean;
90
+ wordWrapEnabled?: boolean;
91
+ syncLookupFilterValues?: boolean;
92
+ autoExpandAll?: boolean;
93
+ columns?: (string | import("devextreme/ui/tree_list").Column<any, any>)[];
94
+ customizeColumns?: (columns: import("devextreme/ui/tree_list").Column<any, any>[]) => void;
95
+ dataStructure?: import("devextreme/common").DataStructure;
96
+ editing?: import("devextreme/ui/tree_list").Editing<any, any>;
97
+ expandNodesOnFiltering?: boolean;
98
+ expandedRowKeys?: any[];
99
+ filterMode?: import("devextreme/ui/tree_list").TreeListFilterMode;
100
+ hasItemsExpr?: string | Function;
101
+ itemsExpr?: string | Function;
102
+ keyExpr?: string | Function;
103
+ onCellClick?: (e: import("devextreme/ui/tree_list").CellClickEvent<any, any>) => void;
104
+ onCellDblClick?: (e: import("devextreme/ui/tree_list").CellClickEvent<any, any>) => void;
105
+ onCellHoverChanged?: (e: import("devextreme/ui/tree_list").CellHoverChangedEvent<any, any>) => void;
106
+ onCellPrepared?: (e: import("devextreme/ui/tree_list").CellPreparedEvent<any, any>) => void;
107
+ onContextMenuPreparing?: (e: import("devextreme/ui/tree_list").ContextMenuPreparingEvent<any, any>) => void;
108
+ onEditingStart?: (e: import("devextreme/ui/tree_list").EditingStartEvent<any, any>) => void;
109
+ onEditorPrepared?: (e: import("devextreme/ui/tree_list").EditorPreparedEvent<any, any>) => void;
110
+ onEditorPreparing?: (e: import("devextreme/ui/tree_list").EditorPreparingEvent<any, any>) => void;
111
+ onFocusedCellChanged?: (e: import("devextreme/ui/tree_list").FocusedCellChangedEvent<any, any>) => void;
112
+ onFocusedCellChanging?: (e: import("devextreme/ui/tree_list").FocusedCellChangingEvent<any, any>) => void;
113
+ onFocusedRowChanged?: (e: import("devextreme/ui/tree_list").FocusedRowChangedEvent<any, any>) => void;
114
+ onFocusedRowChanging?: (e: import("devextreme/ui/tree_list").FocusedRowChangingEvent<any, any>) => void;
115
+ onNodesInitialized?: (e: import("devextreme/ui/tree_list").NodesInitializedEvent<any, any>) => void;
116
+ onRowClick?: (e: import("devextreme/ui/tree_list").RowClickEvent<any, any>) => void;
117
+ onRowDblClick?: (e: import("devextreme/ui/tree_list").RowDblClickEvent<any, any>) => void;
118
+ onRowPrepared?: (e: import("devextreme/ui/tree_list").RowPreparedEvent<any, any>) => void;
119
+ paging?: import("devextreme/ui/tree_list").Paging;
120
+ parentIdExpr?: string | Function;
121
+ remoteOperations?: "auto" | {
122
+ filtering?: boolean;
123
+ grouping?: boolean;
124
+ sorting?: boolean;
125
+ };
126
+ rootValue?: any;
127
+ scrolling?: import("devextreme/ui/tree_list").Scrolling;
128
+ selection?: import("devextreme/ui/tree_list").Selection;
129
+ toolbar?: import("devextreme/ui/tree_list").Toolbar;
130
+ } & import("devextreme-react/core/component-base").IHtmlOptions & {
131
+ dataSource?: import("devextreme/data/data_source").DataSourceLike<any, any>;
132
+ defaultColumns?: (string | import("devextreme/ui/tree_list").dxTreeListColumn<any, any>)[];
133
+ defaultEditing?: Record<string, any>;
134
+ defaultExpandedRowKeys?: any[];
135
+ defaultFilterPanel?: Record<string, any>;
136
+ defaultFilterValue?: string | any[] | (() => any);
137
+ defaultFocusedColumnIndex?: number;
138
+ defaultFocusedRowIndex?: number;
139
+ defaultFocusedRowKey?: any;
140
+ defaultPaging?: Record<string, any>;
141
+ defaultSearchPanel?: Record<string, any>;
142
+ defaultSelectedRowKeys?: any[];
143
+ onColumnsChange?: (value: (string | import("devextreme/ui/tree_list").dxTreeListColumn<any, any>)[]) => void;
144
+ onEditingChange?: (value: Record<string, any>) => void;
145
+ onExpandedRowKeysChange?: (value: any[]) => void;
146
+ onFilterPanelChange?: (value: Record<string, any>) => void;
147
+ onFilterValueChange?: (value: string | any[] | (() => any)) => void;
148
+ onFocusedColumnIndexChange?: (value: number) => void;
149
+ onFocusedRowIndexChange?: (value: number) => void;
150
+ onFocusedRowKeyChange?: (value: any) => void;
151
+ onPagingChange?: (value: Record<string, any>) => void;
152
+ onSearchPanelChange?: (value: Record<string, any>) => void;
153
+ onSelectedRowKeysChange?: (value: any[]) => void;
154
+ }>) => import("react").JSX.Element;
155
+ tags: string[];
156
+ argTypes: {};
157
+ parameters: {
158
+ controls: {
159
+ sort: string;
160
+ exclude: string[];
161
+ };
162
+ };
163
+ };
164
+ export default _default;
165
+ export declare const BasicTreeList: any;
@@ -0,0 +1,15 @@
1
+ import { TableProps } from "antd/es/table/InternalTable";
2
+ export interface DataType {
3
+ Task_Subject: string;
4
+ Task_Start_Date: string;
5
+ Task_Due_Date: number;
6
+ Task_Status: string;
7
+ Task_Priority: number;
8
+ Task_Completion: number;
9
+ Task_Parent_ID: number;
10
+ }
11
+ export declare const columns: TableProps<DataType>["columns"];
12
+ export declare const priorities: {
13
+ id: number;
14
+ value: string;
15
+ }[];
@@ -0,0 +1,24 @@
1
+ export interface Employee {
2
+ ID: number;
3
+ Name: string;
4
+ Picture?: string;
5
+ }
6
+ interface Task {
7
+ Task_ID: number;
8
+ Task_Assigned_Employee_ID: number;
9
+ Task_Subject: string;
10
+ Task_Start_Date: string;
11
+ Task_Due_Date: string;
12
+ Task_Status: string;
13
+ Task_Priority: number;
14
+ Task_Completion: number;
15
+ Task_Parent_ID: number;
16
+ Task_Assigned_Employee?: Employee;
17
+ }
18
+ export declare const tasks: Task[];
19
+ export declare const employees: Employee[];
20
+ export declare const priorities: {
21
+ id: number;
22
+ value: string;
23
+ }[];
24
+ export {};
@@ -0,0 +1 @@
1
+ export declare const BasicTreeListTemplate: any;
@@ -0,0 +1,4 @@
1
+ import { TreeListTypes } from 'devextreme-react/tree-list';
2
+ import React from 'react';
3
+ declare const EmployeeCell: (props: TreeListTypes.ColumnCellTemplateData) => React.JSX.Element;
4
+ export default EmployeeCell;
package/package.json CHANGED
@@ -1,101 +1,101 @@
1
- {
2
- "name": "ods-component-lib",
3
- "version": "1.19.7",
4
- "description": "Odeon design system component lib",
5
- "author": "OdeonTechnology",
6
- "license": "MIT",
7
- "repository": "OdeonTechnology/ods-component-lib",
8
- "main": "dist/index.js",
9
- "module": "dist/index.modern.js",
10
- "source": "src/index.tsx",
11
- "engines": {
12
- "node": ">=10"
13
- },
14
- "scripts": {
15
- "build": "microbundle-crl --no-compress --format modern,cjs",
16
- "start": "microbundle-crl watch --no-compress --format modern,cjs",
17
- "prepare": "run-s build",
18
- "test": "run-s test:unit test:lint test:build",
19
- "test:build": "run-s build",
20
- "test:lint": "eslint .",
21
- "test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
22
- "test:watch": "react-scripts test --env=jsdom",
23
- "predeploy": "cd example && npm install && npm run build",
24
- "deploy": "gh-pages -d example/build",
25
- "storybook": "storybook dev -p 3010",
26
- "build-storybook": "storybook build",
27
- "build-storybook-docs": "storybook build --docs",
28
- "plop": "plop",
29
- "patch": "npm version patch"
30
- },
31
- "peerDependencies": {
32
- "react": "^18.2.0"
33
- },
34
- "dependencies": {
35
- "@ant-design/icons": "^5.1.4",
36
- "@types/file-saver-es": "^2.0.1",
37
- "@types/react": "^18.2.9",
38
- "@types/react-dom": "^18.2.4",
39
- "@types/styled-components": "^5.1.26",
40
- "antd": "^5.19.2",
41
- "antd-style": "^3.6.2",
42
- "devextreme": "^23.1.4",
43
- "devextreme-react": "23.1.3",
44
- "exceljs": "^4.3.0",
45
- "file-saver": "^2.0.5",
46
- "file-saver-es": "^2.0.5",
47
- "html-react-parser": "^4.0.0",
48
- "jspdf": "^2.5.1",
49
- "jspdf-autotable": "^3.8.4",
50
- "microbundle-crl": "^0.13.11",
51
- "moment": "^2.29.4",
52
- "ods-icon": "^1.0.17",
53
- "react": "^18.2.0",
54
- "react-fast-marquee": "^1.6.0",
55
- "react-loading-overlay-ts": "^2.0.2",
56
- "react-phone-input-2": "^2.15.1",
57
- "react-spinners": "^0.13.8",
58
- "styled-components": "^5.3.11"
59
- },
60
- "devDependencies": {
61
- "@chromatic-com/storybook": "^1.2.25",
62
- "@storybook/addon-essentials": "^8.0.2",
63
- "@storybook/addon-interactions": "^8.0.2",
64
- "@storybook/addon-links": "^8.0.2",
65
- "@storybook/addon-onboarding": "^8.0.2",
66
- "@storybook/addon-webpack5-compiler-swc": "^1.0.2",
67
- "@storybook/blocks": "^8.0.2",
68
- "@storybook/react": "^8.0.2",
69
- "@storybook/react-webpack5": "^8.0.2",
70
- "@storybook/test": "^8.0.2",
71
- "@types/react": "^16.9.27",
72
- "@types/react-dom": "^16.9.7",
73
- "antd": "^5.5.2",
74
- "cross-env": "^7.0.2",
75
- "eslint": "^6.8.0",
76
- "eslint-plugin-storybook": "^0.8.0",
77
- "gh-pages": "^2.2.0",
78
- "npm-run-all": "^4.1.5",
79
- "plop": "^4.0.1",
80
- "prop-types": "^15.8.1",
81
- "react": "^18.2.0",
82
- "react-dom": "^18.2.0",
83
- "storybook": "^8.0.2"
84
- },
85
- "files": [
86
- "dist"
87
- ],
88
- "eslintConfig": {
89
- "extends": [
90
- "react-app",
91
- "react-app/jest",
92
- "plugin:storybook/recommended",
93
- "plugin:storybook/recommended"
94
- ],
95
- "rules": {
96
- "eqeqeq": "off",
97
- "@typescript-eslint/no-unused-vars": "off",
98
- "react-hooks/exhaustive-deps": "off"
99
- }
100
- }
101
- }
1
+ {
2
+ "name": "ods-component-lib",
3
+ "version": "1.19.8",
4
+ "description": "Odeon design system component lib",
5
+ "author": "OdeonTechnology",
6
+ "license": "MIT",
7
+ "repository": "OdeonTechnology/ods-component-lib",
8
+ "main": "dist/index.js",
9
+ "module": "dist/index.modern.js",
10
+ "source": "src/index.tsx",
11
+ "engines": {
12
+ "node": ">=10"
13
+ },
14
+ "scripts": {
15
+ "build": "microbundle-crl --no-compress --format modern,cjs",
16
+ "start": "microbundle-crl watch --no-compress --format modern,cjs",
17
+ "prepare": "run-s build",
18
+ "test": "run-s test:unit test:lint test:build",
19
+ "test:build": "run-s build",
20
+ "test:lint": "eslint .",
21
+ "test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
22
+ "test:watch": "react-scripts test --env=jsdom",
23
+ "predeploy": "cd example && npm install && npm run build",
24
+ "deploy": "gh-pages -d example/build",
25
+ "storybook": "storybook dev -p 3010",
26
+ "build-storybook": "storybook build",
27
+ "build-storybook-docs": "storybook build --docs",
28
+ "plop": "plop",
29
+ "patch": "npm version patch"
30
+ },
31
+ "peerDependencies": {
32
+ "react": "^18.2.0"
33
+ },
34
+ "dependencies": {
35
+ "@ant-design/icons": "^5.1.4",
36
+ "@types/file-saver-es": "^2.0.1",
37
+ "@types/react": "^18.2.9",
38
+ "@types/react-dom": "^18.2.4",
39
+ "@types/styled-components": "^5.1.26",
40
+ "antd": "^5.19.2",
41
+ "antd-style": "^3.6.2",
42
+ "devextreme": "^23.1.4",
43
+ "devextreme-react": "23.1.3",
44
+ "exceljs": "^4.3.0",
45
+ "file-saver": "^2.0.5",
46
+ "file-saver-es": "^2.0.5",
47
+ "html-react-parser": "^4.0.0",
48
+ "jspdf": "^2.5.1",
49
+ "jspdf-autotable": "^3.8.4",
50
+ "microbundle-crl": "^0.13.11",
51
+ "moment": "^2.29.4",
52
+ "ods-icon": "^1.0.17",
53
+ "react": "^18.2.0",
54
+ "react-fast-marquee": "^1.6.0",
55
+ "react-loading-overlay-ts": "^2.0.2",
56
+ "react-phone-input-2": "^2.15.1",
57
+ "react-spinners": "^0.13.8",
58
+ "styled-components": "^5.3.11"
59
+ },
60
+ "devDependencies": {
61
+ "@chromatic-com/storybook": "^1.2.25",
62
+ "@storybook/addon-essentials": "^8.0.2",
63
+ "@storybook/addon-interactions": "^8.0.2",
64
+ "@storybook/addon-links": "^8.0.2",
65
+ "@storybook/addon-onboarding": "^8.0.2",
66
+ "@storybook/addon-webpack5-compiler-swc": "^1.0.2",
67
+ "@storybook/blocks": "^8.0.2",
68
+ "@storybook/react": "^8.0.2",
69
+ "@storybook/react-webpack5": "^8.0.2",
70
+ "@storybook/test": "^8.0.2",
71
+ "@types/react": "^16.9.27",
72
+ "@types/react-dom": "^16.9.7",
73
+ "antd": "^5.5.2",
74
+ "cross-env": "^7.0.2",
75
+ "eslint": "^6.8.0",
76
+ "eslint-plugin-storybook": "^0.8.0",
77
+ "gh-pages": "^2.2.0",
78
+ "npm-run-all": "^4.1.5",
79
+ "plop": "^4.0.1",
80
+ "prop-types": "^15.8.1",
81
+ "react": "^18.2.0",
82
+ "react-dom": "^18.2.0",
83
+ "storybook": "^8.0.2"
84
+ },
85
+ "files": [
86
+ "dist"
87
+ ],
88
+ "eslintConfig": {
89
+ "extends": [
90
+ "react-app",
91
+ "react-app/jest",
92
+ "plugin:storybook/recommended",
93
+ "plugin:storybook/recommended"
94
+ ],
95
+ "rules": {
96
+ "eqeqeq": "off",
97
+ "@typescript-eslint/no-unused-vars": "off",
98
+ "react-hooks/exhaustive-deps": "off"
99
+ }
100
+ }
101
+ }