ods-component-lib 1.18.209 → 1.18.211
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/antd/currencyInput/CurrencySelect.d.ts +3 -0
- package/dist/components/antd/currencyInput/OdsCurrencyInput.d.ts +1 -21
- package/dist/components/antd/currencyInput/OdsCurrencyInput.stories.d.ts +10 -18
- package/dist/components/antd/currencyInput/types.d.ts +26 -0
- package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.Types.d.ts +6 -1
- package/dist/index.js +320 -290
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +321 -291
- package/dist/index.modern.js.map +1 -1
- package/dist/stories/OdsMasterDetailDataGrid/OdsMasterDetailDataGrid.stories.d.ts +3 -0
- package/dist/stories/OdsMasterDetailDataGrid/Samples/OdsMasterDetailDataGrid/OdsMasterDetailDataGrid.Constants.d.ts +22 -0
- package/dist/stories/OdsMasterDetailDataGrid/Samples/OdsMasterDetailDataGrid/OdsMasterDetailDataGrid.MockData.d.ts +44 -0
- package/package.json +1 -1
|
@@ -1,27 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
declare type OdsCurrencyInputResultType = {
|
|
4
|
-
value?: number;
|
|
5
|
-
currencyId: number;
|
|
6
|
-
currencyLabel: string;
|
|
7
|
-
};
|
|
8
|
-
declare type OdsCurrencyInputProps = InputNumberProps & Omit<CurrencySelectProps, 'onSelect'> & {
|
|
9
|
-
onChange?: (result: OdsCurrencyInputResultType) => void;
|
|
10
|
-
locale?: string;
|
|
11
|
-
};
|
|
2
|
+
import { OdsCurrencyInputProps } from "./types";
|
|
12
3
|
export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
|
|
13
4
|
Wrapper: import("antd-style").SerializedStyles;
|
|
14
5
|
}>;
|
|
15
6
|
declare const OdsCurrencyInput: React.FC<OdsCurrencyInputProps>;
|
|
16
7
|
export default OdsCurrencyInput;
|
|
17
|
-
declare type CurrencySelectProps = {
|
|
18
|
-
currencyOptions: {
|
|
19
|
-
value: number;
|
|
20
|
-
label: string;
|
|
21
|
-
}[];
|
|
22
|
-
onSelect: (currencyId: number, selectedObject?: {
|
|
23
|
-
value: number;
|
|
24
|
-
label: string;
|
|
25
|
-
}) => void;
|
|
26
|
-
defaultCurrencyId: number;
|
|
27
|
-
};
|
|
@@ -1,24 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { OdsCurrencyInputProps } from './types';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
|
-
component: React.FC<
|
|
5
|
-
currencyOptions: {
|
|
6
|
-
value: number;
|
|
7
|
-
label: string;
|
|
8
|
-
}[];
|
|
9
|
-
onSelect: (currencyId: number, selectedObject?: {
|
|
10
|
-
value: number;
|
|
11
|
-
label: string;
|
|
12
|
-
}) => void;
|
|
13
|
-
defaultCurrencyId: number;
|
|
14
|
-
}, "currencyOptions" | "defaultCurrencyId"> & {
|
|
15
|
-
onChange?: (result: {
|
|
16
|
-
value?: number;
|
|
17
|
-
currencyId: number;
|
|
18
|
-
currencyLabel: string;
|
|
19
|
-
}) => void;
|
|
20
|
-
locale?: string;
|
|
21
|
-
}>;
|
|
5
|
+
component: React.FC<OdsCurrencyInputProps>;
|
|
22
6
|
argTypes: {
|
|
23
7
|
placeholder: {
|
|
24
8
|
control: string;
|
|
@@ -27,4 +11,12 @@ declare const _default: {
|
|
|
27
11
|
};
|
|
28
12
|
export default _default;
|
|
29
13
|
export declare const Default: any;
|
|
14
|
+
export declare const DefaultByCode: any;
|
|
30
15
|
export declare const EnLocale: any;
|
|
16
|
+
export declare const FixedCurrencyWithDefaultCurrencyId: any;
|
|
17
|
+
export declare const FixedCurrencyDefaultCurrencyCode: any;
|
|
18
|
+
export declare const DontFormatValue: any;
|
|
19
|
+
export declare const DefaultValue: any;
|
|
20
|
+
export declare const DisableNegative: any;
|
|
21
|
+
export declare const DisableZero: any;
|
|
22
|
+
export declare const StyleCurrencySelect: any;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { InputNumberProps, SelectProps } from "antd";
|
|
2
|
+
export declare type OdsCurrencyInputProps = InputNumberProps & {
|
|
3
|
+
onChange?: (result: OdsCurrencyInputResultType) => void;
|
|
4
|
+
locale?: string;
|
|
5
|
+
dontFormatValue?: boolean;
|
|
6
|
+
disableNegative?: boolean;
|
|
7
|
+
defaultValue?: number;
|
|
8
|
+
currencySelectProps: Omit<CurrencySelectProps, 'onSelect'>;
|
|
9
|
+
};
|
|
10
|
+
export declare type OdsCurrencyInputResultType = {
|
|
11
|
+
value?: number | string;
|
|
12
|
+
currency: CurrencyOptionType;
|
|
13
|
+
};
|
|
14
|
+
export declare type CurrencyOptionType = {
|
|
15
|
+
id: number;
|
|
16
|
+
symbol: string;
|
|
17
|
+
name: string;
|
|
18
|
+
code: string;
|
|
19
|
+
};
|
|
20
|
+
export declare type CurrencySelectProps = SelectProps & {
|
|
21
|
+
currencyOptions: CurrencyOptionType[];
|
|
22
|
+
onSelect: (selectedObject?: CurrencyOptionType) => void;
|
|
23
|
+
defaultCurrencyId?: number;
|
|
24
|
+
defaultCurrencyCode?: string;
|
|
25
|
+
fixedCurrency?: boolean;
|
|
26
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { MouseEventHandler } from "react";
|
|
2
2
|
import { ButtonType } from "antd/es/button/buttonHelpers";
|
|
3
3
|
import { IButtonProps, IDataGridOptions, IEditingProps, ISelectionProps, ISummaryProps } from "devextreme-react/data-grid";
|
|
4
|
+
import { IColumnOptions, IMasterDetailDatas, IMasterDetailFeatures } from "../OdsMasterDetailDataGrid/types";
|
|
4
5
|
export declare type SummaryTypes = "avg" | "count" | "custom" | "max" | "min" | "sum";
|
|
5
6
|
export interface IMultiCellEditableDataGridProps {
|
|
6
7
|
hasFastUpdate?: boolean;
|
|
@@ -48,10 +49,14 @@ export interface IOdsDataGridProps extends IDataGridOptions, IMultiCellEditableD
|
|
|
48
49
|
isFilterRow?: boolean;
|
|
49
50
|
filterData?: any[];
|
|
50
51
|
detailGridColums?: any[];
|
|
51
|
-
showMasterDetail?: boolean;
|
|
52
52
|
detailData?: any;
|
|
53
53
|
actionButtonsTooltipType?: ITooltipType;
|
|
54
54
|
isColumnWidthFixed?: boolean;
|
|
55
|
+
showMasterDetail?: boolean;
|
|
56
|
+
detailGridColumns?: IColumnOptions[];
|
|
57
|
+
masterDetailDatas?: IMasterDetailDatas;
|
|
58
|
+
masterDetailFeatures?: IMasterDetailFeatures;
|
|
59
|
+
DetailGridComponent?: React.FC<any>;
|
|
55
60
|
}
|
|
56
61
|
export interface ISummaryRowOptions {
|
|
57
62
|
summaryLoadedDataLabel?: string;
|