sevago-library 1.2.3 → 1.3.0
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 +101 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +101 -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/column-settings-popover/column-settings-popover.component.d.ts +16 -0
- package/dist/src/components/elements/column-settings-popover/column-settings-popover.component.stories.d.ts +7 -0
- package/dist/src/components/elements/column-settings-popover/index.d.ts +1 -0
- package/dist/src/components/elements/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;
|
package/dist/src/components/elements/column-settings-popover/column-settings-popover.component.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ColumnSettingItem {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ColumnSettingsPopoverProps {
|
|
9
|
+
open: boolean;
|
|
10
|
+
anchorEl?: HTMLElement | null;
|
|
11
|
+
title?: string;
|
|
12
|
+
items: ColumnSettingItem[];
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
onToggle: (key: string, checked: boolean) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const ColumnSettingsPopover: React.FC<ColumnSettingsPopoverProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ColumnSettingsPopover } from './column-settings-popover.component';
|
|
3
|
+
declare const meta: Meta<typeof ColumnSettingsPopover>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ColumnSettingsPopover>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const LongList: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './column-settings-popover.component';
|