sevago-library 1.2.2 → 1.2.4
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/CHANGELOG.md +12 -0
- package/dist/index.cjs.js +215 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +215 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/src/common/utils/time.util.d.ts +7 -7
- package/dist/src/components/elements/filters/advanced-filter-dialog.component/advanced-filter-dialog.component.d.ts +24 -0
- package/dist/src/components/elements/filters/advanced-filter-dialog.component/advanced-filter-dialog.component.stories.d.ts +7 -0
- package/dist/src/components/elements/filters/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { default as dayjs, Dayjs } from 'dayjs';
|
|
2
|
-
export declare const getTimeAgo: (time: Date | string | number) => string;
|
|
3
|
-
export declare const getDateTime: (time?: Date | string | number, isGetDay?: boolean) => string;
|
|
4
|
-
export declare const getDate: (time?: Date | string | number) => string;
|
|
2
|
+
export declare const getTimeAgo: (time: Date | string | number | any) => string;
|
|
3
|
+
export declare const getDateTime: (time?: Date | string | number | any, isGetDay?: boolean) => string;
|
|
4
|
+
export declare const getDate: (time?: Date | string | number | any) => string;
|
|
5
5
|
export declare const checkNowYear: (date?: Date, year?: number) => boolean;
|
|
6
6
|
export declare const getMonthRangeForYear: (startDate: Date, endDate: Date, year: number) => {
|
|
7
7
|
start: number;
|
|
8
8
|
end: number;
|
|
9
9
|
};
|
|
10
10
|
export declare function getDayOffsetPx(date: dayjs.Dayjs, monthWidths: number[], dayWidth: number): number;
|
|
11
|
-
export declare const isSameDateTime: (createdAt: Date | string | number, updatedAt: Date | string | number) => boolean;
|
|
12
|
-
export declare const getTimeDate: (time?: Date | string | number) => string;
|
|
11
|
+
export declare const isSameDateTime: (createdAt: Date | string | number | any, updatedAt: Date | string | number | any) => boolean;
|
|
12
|
+
export declare const getTimeDate: (time?: Date | string | number | any) => string;
|
|
13
13
|
export declare const isDateString: (value: any) => boolean;
|
|
14
|
-
export declare const getDateISO: (date?: Date | string | number | null) => string | undefined;
|
|
15
|
-
export declare const formatActivityDateLabel: (time: Date | string | number) => string;
|
|
14
|
+
export declare const getDateISO: (date?: Date | string | number | any | null) => string | undefined;
|
|
15
|
+
export declare const formatActivityDateLabel: (time: Date | string | number | any) => string;
|
|
16
16
|
export declare const formatRange: (range: [Dayjs | null, Dayjs | null]) => string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AdvancedFilterOption } from '../filter.interface';
|
|
3
|
+
export type AdvancedFilterValue = string;
|
|
4
|
+
export interface AdvancedFilterField {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
options: AdvancedFilterOption[];
|
|
8
|
+
defaultValue: AdvancedFilterValue;
|
|
9
|
+
}
|
|
10
|
+
export type AdvancedFilterState = Record<string, AdvancedFilterValue>;
|
|
11
|
+
export interface AdvancedFilterDialogProps {
|
|
12
|
+
open: boolean;
|
|
13
|
+
title?: string;
|
|
14
|
+
fields: AdvancedFilterField[];
|
|
15
|
+
value: AdvancedFilterState;
|
|
16
|
+
anchorEl?: HTMLElement | null;
|
|
17
|
+
offset?: {
|
|
18
|
+
x?: number;
|
|
19
|
+
y?: number;
|
|
20
|
+
};
|
|
21
|
+
onClose: () => void;
|
|
22
|
+
onApply: (nextValue: AdvancedFilterState) => void;
|
|
23
|
+
}
|
|
24
|
+
export declare const AdvancedFilterDialog: React.FC<AdvancedFilterDialogProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { AdvancedFilterDialog } from './advanced-filter-dialog.component';
|
|
3
|
+
declare const meta: Meta<typeof AdvancedFilterDialog>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof AdvancedFilterDialog>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithPresetValue: Story;
|