@antscorp/antsomi-ui 1.2.1-beta.0 → 1.2.1-beta.2
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/index.js +1 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +3 -2
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.d.ts +4 -2
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.stories.d.ts +1 -0
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/types.d.ts +4 -1
- package/dist/types/components/organism/Table/Table.d.ts +1 -0
- package/dist/types/components/organism/Table/index.d.ts +1 -0
- package/dist/types/components/organism/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TAdvancedType, TOperatorKey, TOption } from './types';
|
|
2
|
+
import { TAdvancedType, TCalculationType, TOperatorKey, TOption } from './types';
|
|
3
3
|
export interface AdvancedPickerProps {
|
|
4
4
|
label?: string;
|
|
5
5
|
dateTypeKeysShow?: string[];
|
|
6
|
-
calculationTypeKeysShow?:
|
|
6
|
+
calculationTypeKeysShow?: TCalculationType[];
|
|
7
7
|
defaultDateTypeKey?: string;
|
|
8
8
|
valueType?: string;
|
|
9
9
|
option?: TOption;
|
|
@@ -16,6 +16,7 @@ export interface AdvancedPickerProps {
|
|
|
16
16
|
disableAfterDate?: string;
|
|
17
17
|
disableBeforeDate?: string;
|
|
18
18
|
errorMessage?: string;
|
|
19
|
+
showTime?: boolean;
|
|
19
20
|
onUpdatedNewDate?: (newDate: any) => void;
|
|
20
21
|
onApply?: ({ date, option }: {
|
|
21
22
|
date: string;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TOnChangePayload, TTimeRange } from './types';
|
|
2
|
+
import { TDateConfig, TOnChangePayload, TTimeRange } from './types';
|
|
3
3
|
export interface AdvancedRangePickerProps {
|
|
4
|
-
|
|
4
|
+
startDateConfig?: TDateConfig;
|
|
5
|
+
endDateConfig?: TDateConfig;
|
|
5
6
|
timeRange: TTimeRange;
|
|
6
7
|
errorMessage?: string;
|
|
7
8
|
showLabel?: boolean;
|
|
9
|
+
showTime?: boolean;
|
|
8
10
|
onChange?: ({ timeRange, mode }: TOnChangePayload) => void;
|
|
9
11
|
}
|
|
10
12
|
export declare const AdvancedRangePicker: React.FC<AdvancedRangePickerProps>;
|
|
@@ -5,3 +5,4 @@ declare const _default: ComponentMeta<React.FC<import("./AdvancedRangePicker").A
|
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Template: ComponentStory<typeof AdvancedRangePicker>;
|
|
7
7
|
export declare const Basic: ComponentStory<typeof AdvancedRangePicker>;
|
|
8
|
+
export declare const HideTimeLabel: ComponentStory<typeof AdvancedRangePicker>;
|
package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TOption } from '../AdvancedPicker/types';
|
|
1
|
+
import { TCalculationType, TOption } from '../AdvancedPicker/types';
|
|
2
2
|
export type TOnChangeMode = 'system' | 'user';
|
|
3
3
|
export type TTimeRange = {
|
|
4
4
|
startDate: TOption & {
|
|
@@ -12,3 +12,6 @@ export type TOnChangePayload = {
|
|
|
12
12
|
timeRange: TTimeRange;
|
|
13
13
|
mode: 'system' | 'user';
|
|
14
14
|
};
|
|
15
|
+
export type TDateConfig = {
|
|
16
|
+
calculationTypeKeysShow?: TCalculationType[];
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Table } from 'antd';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Table } from './Table';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Table } from './Table';
|