ods-component-lib 1.18.95 → 1.18.97

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 (23) hide show
  1. package/dist/components/antd/fileUpload/OdsFileUpload.d.ts +12 -0
  2. package/dist/components/antd/icon/OdsIcon.d.ts +10 -0
  3. package/dist/components/antd/select/OdsCustomMultiSelect.d.ts +7 -0
  4. package/dist/components/antd/select/OdsMultiSelect.d.ts +9 -0
  5. package/dist/components/custom/OdsLogin.d.ts +8 -0
  6. package/dist/components/devextreme/DxDataPopupForm.d.ts +3 -0
  7. package/dist/components/devextreme/DynamicIcon.d.ts +5 -0
  8. package/dist/components/devextreme/NoContentComponent.d.ts +7 -0
  9. package/dist/components/devextreme/OdsDataGridNew.d.ts +56 -0
  10. package/dist/components/devextreme/OdsProfDataGrid.d.ts +3 -0
  11. package/dist/components/devextreme/OdsTransfer.d.ts +49 -0
  12. package/dist/components/devextreme/treeview/DxTreeView.d.ts +3 -0
  13. package/dist/stories/OdsCustomMultiSelect/OdsCustomMultiSelect.stories.d.ts +9 -0
  14. package/dist/stories/OdsCustomMultiSelect/Samples/Basic.Sample.d.ts +1 -0
  15. package/dist/stories/OdsCustomMultiSelect/Samples/ModeMultiple.Sample.d.ts +1 -0
  16. package/dist/stories/OdsFileUpload/OdsFileUpload.stories.d.ts +45 -0
  17. package/dist/stories/OdsFileUpload/Samples/MultipleFilesOdsFileUpload.Sample.d.ts +1 -0
  18. package/dist/stories/OdsFileUpload/Samples/SingleImageOdsF/304/260leUpload.Sample.d.ts +1 -0
  19. package/package.json +1 -1
  20. package/dist/stories/OdsPivotGrid/OdsPivotGrid.stories.d.ts +0 -15
  21. package/dist/stories/OdsPivotGrid/Samples/BasicPivotGrid/BasicPivotGrid.Constants.d.ts +0 -2
  22. package/dist/stories/OdsPivotGrid/Samples/BasicPivotGrid/BasicPivotGrid.MockData.d.ts +0 -7
  23. package/dist/stories/OdsPivotGrid/Samples/BasicPivotGrid/BasicPivotGrid.Sample.d.ts +0 -1
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ declare type FileUploadProps = {
3
+ image: any | null;
4
+ setFile?: (file: any) => void;
5
+ title: string;
6
+ sendDataToParent: (obj: any) => void;
7
+ allowDocumentUpload?: boolean;
8
+ multipleDoc?: boolean;
9
+ removeFile?: (file: any) => void;
10
+ };
11
+ declare const OdsFileUpload: (props: FileUploadProps) => React.JSX.Element;
12
+ export default OdsFileUpload;
@@ -0,0 +1,10 @@
1
+ import { IconBaseProps } from "@ant-design/icons/lib/components/Icon";
2
+ import React from "react";
3
+ export interface IconProps extends IconBaseProps {
4
+ type: string;
5
+ twoToneColor?: string;
6
+ iconComponent?: string;
7
+ iconSVCName?: string;
8
+ }
9
+ declare function OdsIcon(props: IconProps): React.JSX.Element;
10
+ export default OdsIcon;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { SelectProps } from "antd";
3
+ export interface ISelectProps extends SelectProps {
4
+ buttonLabel: string;
5
+ }
6
+ declare function OdsCustomMultiSelect(props: ISelectProps): React.JSX.Element;
7
+ export default OdsCustomMultiSelect;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { SelectProps } from "antd";
3
+ import { IOdsSelectOption } from "./OdsSelect.styled";
4
+ export interface OdsMultiSelectProps extends SelectProps {
5
+ selectAllText?: string | undefined;
6
+ dataSource: IOdsSelectOption[];
7
+ }
8
+ declare const OdsMultiSelect: (props: OdsMultiSelectProps) => React.JSX.Element;
9
+ export default OdsMultiSelect;
@@ -0,0 +1,8 @@
1
+ import { FormProps } from "antd";
2
+ import React from "react";
3
+ export interface IFormProps extends FormProps {
4
+ items: any[];
5
+ loading: boolean;
6
+ }
7
+ declare function OdsLogin(props: IFormProps): React.JSX.Element;
8
+ export default OdsLogin;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const _default: React.MemoExoticComponent<(props: any) => React.JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare const DynamicIcon: ({ iconName }: {
3
+ iconName: any;
4
+ }) => React.JSX.Element;
5
+ export default DynamicIcon;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface NoListItemsProps {
3
+ mainText: string;
4
+ subText: string;
5
+ }
6
+ declare const NoListItems: React.FC<NoListItemsProps>;
7
+ export default NoListItems;
@@ -0,0 +1,56 @@
1
+ import React from "react";
2
+ import { IDataGridOptions, IEditingProps, ISelectionProps, IButtonProps } from 'devextreme-react/data-grid';
3
+ import { ButtonType } from "antd/es/button/buttonHelpers";
4
+ interface IButtonGroup extends IButtonProps {
5
+ type?: ButtonType;
6
+ label?: string;
7
+ onclick?: React.MouseEventHandler<HTMLElement>;
8
+ actionPermission?: boolean;
9
+ }
10
+ interface IEditingoptions extends IEditingProps {
11
+ formItems?: any[];
12
+ title?: string;
13
+ }
14
+ interface ISelectOptions extends ISelectionProps {
15
+ selectEnable: boolean;
16
+ }
17
+ interface IOdsDataGridProps extends IDataGridOptions {
18
+ actionButtonGroup?: IButtonGroup[];
19
+ toolbarButtonGroup?: IButtonGroup[];
20
+ exportFileName?: string;
21
+ summaryTotalColumnName?: string;
22
+ storeState?: boolean;
23
+ summaryTotalDataCount?: number;
24
+ summaryTotalDataDisplayLabel?: string;
25
+ summaryTotalPagesize?: number;
26
+ editHintLabel?: string;
27
+ editButtonClick?: any;
28
+ deleteButtonClick?: any;
29
+ pageTitle?: string;
30
+ pageSize?: number;
31
+ pagingEnable?: boolean;
32
+ searchEnable?: boolean;
33
+ filterEnable?: boolean;
34
+ headerFilterEnable?: boolean;
35
+ columnChooserPositionDisabled?: boolean;
36
+ editEnable?: boolean;
37
+ popupTitle?: string;
38
+ scroll?: any;
39
+ exportEnable?: boolean;
40
+ customPopup?: boolean;
41
+ onExportingCustom?: any;
42
+ filterEnabledShow?: boolean;
43
+ scrolUseNative?: boolean;
44
+ formItems?: any[];
45
+ hintForDeleteButton?: string;
46
+ hintForEditButton?: string;
47
+ exportFormats?: string[];
48
+ actionPermission?: boolean;
49
+ columns: any[];
50
+ actionColumnEnable?: boolean;
51
+ edit?: IEditingoptions;
52
+ selectOptions?: ISelectOptions;
53
+ actionColumnCaption?: string;
54
+ }
55
+ declare function OdsDataGridNew(props: IOdsDataGridProps): React.JSX.Element;
56
+ export default OdsDataGridNew;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare function OdsProfDataGrid(props: any): React.JSX.Element;
3
+ export default OdsProfDataGrid;
@@ -0,0 +1,49 @@
1
+ import React from "react";
2
+ import type { TransferDirection as AntTransferDirection } from 'antd/es/transfer';
3
+ import 'devextreme/dist/css/dx.light.css';
4
+ import './styles.css';
5
+ export interface Column {
6
+ title: string;
7
+ dataIndex: string;
8
+ key?: string;
9
+ }
10
+ export declare type TransferDirection = AntTransferDirection;
11
+ interface IAxiosProps {
12
+ token: string;
13
+ requestData?: any;
14
+ apiUrl: string;
15
+ environmentUrl: string;
16
+ requestQueryString?: any;
17
+ requestType: string;
18
+ }
19
+ interface ISummaryRowOptions {
20
+ summaryLoadedDataLabel?: string;
21
+ summaryTotalDataLabel?: string;
22
+ summaryFilteredDataLabel?: string;
23
+ summaryTotalCount?: number;
24
+ summaryTotalPageCountLabel?: string;
25
+ summarySumLabel?: string;
26
+ summaryAvgLabel?: string;
27
+ summaryMinLabel?: string;
28
+ summaryMaxLabel?: string;
29
+ summaryCountLabel?: string;
30
+ }
31
+ interface OdsTransferProps<RecordType = any> {
32
+ dataSource?: RecordType[];
33
+ language: string;
34
+ pagingEnable?: boolean;
35
+ pageSize?: number;
36
+ isServerSide: boolean;
37
+ axiosRequest?: IAxiosProps;
38
+ customSummary?: ISummaryRowOptions;
39
+ dataGridPageName?: string;
40
+ columns: any[];
41
+ pageTitle?: string;
42
+ keyExpr: string;
43
+ noDataText: string;
44
+ defaultPageSize: number;
45
+ targetKeys?: string[];
46
+ setTargetKeys?: (keys: string[]) => void;
47
+ }
48
+ declare const OdsTransfer: React.FC<OdsTransferProps>;
49
+ export default OdsTransfer;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const DxTreeView: (props: any) => React.JSX.Element;
3
+ export default DxTreeView;
@@ -0,0 +1,9 @@
1
+ import CustomMultiSelect from "../../components/antd/select/OdsCustomMultiSelect";
2
+ declare const _default: {
3
+ title: string;
4
+ component: typeof CustomMultiSelect;
5
+ tags: string[];
6
+ };
7
+ export default _default;
8
+ export declare const Basic: any;
9
+ export declare const ModeMultiple: any;
@@ -0,0 +1 @@
1
+ export declare const BasicTemplate: any;
@@ -0,0 +1 @@
1
+ export declare const ModeMultipleTemplate: any;
@@ -0,0 +1,45 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ title: string;
4
+ component: (props: {
5
+ image: any;
6
+ setFile?: (file: any) => void;
7
+ title: string;
8
+ sendDataToParent: (obj: any) => void;
9
+ allowDocumentUpload?: boolean;
10
+ multipleDoc?: boolean;
11
+ removeFile?: (file: any) => void;
12
+ }) => import("react").JSX.Element;
13
+ tags: string[];
14
+ argTypes: {
15
+ image: {
16
+ description: string;
17
+ };
18
+ setFile: {
19
+ description: string;
20
+ };
21
+ title: {
22
+ description: string;
23
+ };
24
+ sendDataToParent: {
25
+ description: string;
26
+ };
27
+ allowDocumentUpload: {
28
+ options: string[];
29
+ description: string;
30
+ };
31
+ multipleDoc: {
32
+ options: string[];
33
+ description: string;
34
+ };
35
+ removeFile: {
36
+ description: string;
37
+ };
38
+ };
39
+ parameters: {
40
+ controls: {};
41
+ };
42
+ };
43
+ export default _default;
44
+ export declare const Multiple: any;
45
+ export declare const Single: any;
@@ -0,0 +1 @@
1
+ export declare const MultipleFilesOdsFileUploadTemplate: any;
@@ -0,0 +1 @@
1
+ export declare const SingleImageOdsFileUploadTemplate: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ods-component-lib",
3
- "version": "1.18.95",
3
+ "version": "1.18.97",
4
4
  "description": "Odeon design system component lib",
5
5
  "author": "OdeonTechnology",
6
6
  "license": "MIT",
@@ -1,15 +0,0 @@
1
- import PivotGrid from 'devextreme-react/pivot-grid';
2
- import 'devextreme/dist/css/dx.light.css';
3
- declare const _default: {
4
- title: string;
5
- component: typeof PivotGrid;
6
- tags: string[];
7
- argTypes: {};
8
- parameters: {
9
- controls: {
10
- exclude: any[];
11
- };
12
- };
13
- };
14
- export default _default;
15
- export declare const Basic: any;
@@ -1,2 +0,0 @@
1
- import PivotGridDataSource from "devextreme/ui/pivot_grid/data_source";
2
- export declare const dataSource: PivotGridDataSource;
@@ -1,7 +0,0 @@
1
- export declare const MockData: {
2
- airport: string;
3
- weeklyCapacity: number;
4
- city: string;
5
- availableCapacityRatio: number;
6
- availableCapacity: number;
7
- }[];
@@ -1 +0,0 @@
1
- export declare const BasicPivotGridTemplate: any;