@starasia/admin 3.2.3 → 3.2.6
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/HorizontalField/index.d.ts +2 -1
- package/dist/components/RightDrawer/index.d.ts +3 -0
- package/dist/components/TableSection/components/DataTable.d.ts +1 -1
- package/dist/components/TableSection/types.d.ts +1 -0
- package/dist/components/index.d.ts +0 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1884 -2292
- package/dist/index.umd.js +1 -1
- package/package.json +4 -4
- package/dist/components/AdvanceFilter/components/Chip.d.ts +0 -13
- package/dist/components/AdvanceFilter/components/Container.d.ts +0 -13
- package/dist/components/AdvanceFilter/components/Field.d.ts +0 -34
- package/dist/components/AdvanceFilter/components/Form.d.ts +0 -0
- package/dist/components/AdvanceFilter/components/Group.d.ts +0 -0
- package/dist/components/AdvanceFilter/components/Header.d.ts +0 -11
- package/dist/components/AdvanceFilter/components/Toggle.d.ts +0 -7
- package/dist/components/AdvanceFilter/hooks.d.ts +0 -48
- package/dist/components/AdvanceFilter/index.d.ts +0 -7
- package/dist/components/AdvanceFilter/types.d.ts +0 -27
- package/dist/components/AdvanceFilter/utils.d.ts +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@starasia/admin",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.6",
|
|
4
4
|
"description": "Core Admin Dashboard for starasia UI",
|
|
5
5
|
"author": "Rizki Izzul Haq",
|
|
6
6
|
"main": "dist/index.umd.js",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@starasia/accordion": "3.0.0",
|
|
29
29
|
"@starasia/alert": "3.0.0",
|
|
30
|
-
"@starasia/badges": "3.
|
|
30
|
+
"@starasia/badges": "3.1.0",
|
|
31
31
|
"@starasia/box": "3.0.0",
|
|
32
|
-
"@starasia/button": "4.0.
|
|
32
|
+
"@starasia/button": "4.0.1",
|
|
33
33
|
"@starasia/card": "3.0.0",
|
|
34
34
|
"@starasia/checkbox": "3.0.0",
|
|
35
35
|
"@starasia/css": "3.0.3",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@starasia/hooks": "1.0.2",
|
|
42
42
|
"@starasia/http": "1.0.2",
|
|
43
43
|
"@starasia/icon": "3.1.0",
|
|
44
|
-
"@starasia/input": "3.0.
|
|
44
|
+
"@starasia/input": "3.0.1",
|
|
45
45
|
"@starasia/menu": "3.0.0",
|
|
46
46
|
"@starasia/pagination": "3.0.0",
|
|
47
47
|
"@starasia/progress": "3.0.0",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ChipItem } from '../types';
|
|
3
|
-
|
|
4
|
-
export interface FilterChipProps {
|
|
5
|
-
text?: string;
|
|
6
|
-
onClose?: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const Chip: React.MemoExoticComponent<({ text, onClose }: FilterChipProps) => React.JSX.Element>;
|
|
9
|
-
export interface FilterChipsProps {
|
|
10
|
-
items?: ChipItem[];
|
|
11
|
-
onClose?: (field: ChipItem) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const Chips: React.MemoExoticComponent<({ items, onClose }: FilterChipsProps) => React.JSX.Element>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { FieldProps } from './Field';
|
|
3
|
-
|
|
4
|
-
export interface AdvanceFilterProps {
|
|
5
|
-
title?: string;
|
|
6
|
-
show?: boolean;
|
|
7
|
-
fields?: FieldProps[];
|
|
8
|
-
withSearchParam?: boolean;
|
|
9
|
-
onReset?: (reset: boolean) => void;
|
|
10
|
-
onHide?: () => void;
|
|
11
|
-
resetting?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const Container: React.MemoExoticComponent<({ show, title, fields, withSearchParam, onReset, onHide, resetting, }: AdvanceFilterProps) => React.JSX.Element>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { default as React, HTMLInputTypeAttribute } from 'react';
|
|
2
|
-
import { ChangeHandler, InputType, Option } from '../types';
|
|
3
|
-
import { IDateProps } from '@starasia/date';
|
|
4
|
-
|
|
5
|
-
export interface FieldProps {
|
|
6
|
-
name?: string;
|
|
7
|
-
title?: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
parentKey?: string;
|
|
10
|
-
childrenKey?: string[];
|
|
11
|
-
relationWith?: string;
|
|
12
|
-
relationLabel?: string;
|
|
13
|
-
relationLabelChip?: string;
|
|
14
|
-
type?: InputType;
|
|
15
|
-
multiple?: boolean;
|
|
16
|
-
placeholder?: string;
|
|
17
|
-
searchable?: boolean;
|
|
18
|
-
options?: Option[];
|
|
19
|
-
onChange?: ChangeHandler;
|
|
20
|
-
value?: any;
|
|
21
|
-
fields?: FieldProps[];
|
|
22
|
-
onSearch?: (value: string) => void;
|
|
23
|
-
borderBottom?: boolean;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
dateFilter?: IDateProps["filter"];
|
|
26
|
-
enableInputDate?: boolean;
|
|
27
|
-
withSearchParam?: boolean;
|
|
28
|
-
rangedDate?: boolean;
|
|
29
|
-
dateValueFormatText?: "indonesian" | "iso";
|
|
30
|
-
inputTextType?: HTMLInputTypeAttribute;
|
|
31
|
-
min?: number;
|
|
32
|
-
max?: number;
|
|
33
|
-
}
|
|
34
|
-
export declare const FilterField: React.MemoExoticComponent<React.ForwardRefExoticComponent<FieldProps & React.RefAttributes<HTMLDivElement>>>;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface HeaderResetButton {
|
|
4
|
-
label?: string;
|
|
5
|
-
onClick?: () => void;
|
|
6
|
-
}
|
|
7
|
-
export interface HeaderProps {
|
|
8
|
-
title?: string;
|
|
9
|
-
resetButton?: HeaderResetButton;
|
|
10
|
-
}
|
|
11
|
-
export declare const Header: React.MemoExoticComponent<({ title, resetButton }: HeaderProps) => React.JSX.Element>;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { AdvanceFilterProps } from './components/Container';
|
|
2
|
-
import { FieldProps } from './components/Field';
|
|
3
|
-
import { ChipItem } from './types';
|
|
4
|
-
|
|
5
|
-
export interface UseAdvanceFilterConfig {
|
|
6
|
-
withSearchParam?: boolean;
|
|
7
|
-
title?: string;
|
|
8
|
-
fields?: AdvanceFilterProps["fields"];
|
|
9
|
-
}
|
|
10
|
-
export declare const useAdvanceFilter: (config?: UseAdvanceFilterConfig) => {
|
|
11
|
-
value: {
|
|
12
|
-
[name: string]: any;
|
|
13
|
-
} | undefined;
|
|
14
|
-
open: () => void;
|
|
15
|
-
close: () => void;
|
|
16
|
-
toggle: () => void;
|
|
17
|
-
reset: () => void;
|
|
18
|
-
chips: {
|
|
19
|
-
name: string | undefined;
|
|
20
|
-
label: string | undefined;
|
|
21
|
-
value: any;
|
|
22
|
-
valueText: string;
|
|
23
|
-
children: FieldProps[];
|
|
24
|
-
}[];
|
|
25
|
-
toggleConfig: {
|
|
26
|
-
active: boolean;
|
|
27
|
-
onClick: () => void;
|
|
28
|
-
};
|
|
29
|
-
chipsConfig: {
|
|
30
|
-
items: {
|
|
31
|
-
name: string | undefined;
|
|
32
|
-
label: string | undefined;
|
|
33
|
-
value: any;
|
|
34
|
-
valueText: string;
|
|
35
|
-
children: FieldProps[];
|
|
36
|
-
}[];
|
|
37
|
-
onClose: (f: ChipItem) => void;
|
|
38
|
-
};
|
|
39
|
-
config: {
|
|
40
|
-
show: boolean;
|
|
41
|
-
onHide: () => void;
|
|
42
|
-
resetting: boolean;
|
|
43
|
-
onReset: (val: boolean) => void;
|
|
44
|
-
withSearchParam?: boolean;
|
|
45
|
-
title?: string;
|
|
46
|
-
fields?: AdvanceFilterProps["fields"];
|
|
47
|
-
};
|
|
48
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const AdvanceFilter: {
|
|
2
|
-
Container: import('react').MemoExoticComponent<({ show, title, fields, withSearchParam, onReset, onHide, resetting, }: import('./components/Container').AdvanceFilterProps) => import("react").JSX.Element>;
|
|
3
|
-
Toggle: import('react').MemoExoticComponent<({ active, onClick }: import('./components/Toggle').FilterToggleProps) => import("react").JSX.Element>;
|
|
4
|
-
Chips: import('react').MemoExoticComponent<({ items, onClose }: import('./components/Chip').FilterChipsProps) => import("react").JSX.Element>;
|
|
5
|
-
Chip: import('react').MemoExoticComponent<({ text, onClose }: import('./components/Chip').FilterChipProps) => import("react").JSX.Element>;
|
|
6
|
-
};
|
|
7
|
-
export * from './hooks';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IconProps } from '@starasia/icon';
|
|
2
|
-
import { FieldProps } from './components/Field';
|
|
3
|
-
|
|
4
|
-
export interface Option {
|
|
5
|
-
icon?: React.ReactElement<IconProps>;
|
|
6
|
-
label: string;
|
|
7
|
-
value: string;
|
|
8
|
-
}
|
|
9
|
-
export type InputType = "dropdown" | "text" | "date" | "select-button" | "date-range" | "checkbox";
|
|
10
|
-
export type ChangeHandler = (params: {
|
|
11
|
-
value: any;
|
|
12
|
-
name?: string;
|
|
13
|
-
type?: InputType;
|
|
14
|
-
}) => void;
|
|
15
|
-
export interface ChipItem {
|
|
16
|
-
name?: string;
|
|
17
|
-
label?: string;
|
|
18
|
-
value?: any;
|
|
19
|
-
children?: FieldProps[];
|
|
20
|
-
valueText?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface FilterQueryParams<T = Record<string, any>> {
|
|
23
|
-
filter?: T;
|
|
24
|
-
}
|
|
25
|
-
export declare enum FilterContants {
|
|
26
|
-
SearchParamKey = "filter"
|
|
27
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IDropdown } from '@starasia/dropdown';
|
|
2
|
-
import { IDateRange } from '@starasia/date';
|
|
3
|
-
|
|
4
|
-
export declare const resolveDropdownValueToString: (value: IDropdown["defaultValue"]) => string;
|
|
5
|
-
export declare const resolveDateValueToString: (value: Date | IDateRange) => string | undefined;
|
|
6
|
-
export declare const getDropdownValueFromQueryString: (value?: string, options?: IDropdown["dropdownLists"]) => any;
|
|
7
|
-
export declare const getDateValueFromQueryString: (value?: any, rangedDate?: boolean) => Date | {
|
|
8
|
-
from: Date | null;
|
|
9
|
-
to: Date | null;
|
|
10
|
-
} | undefined;
|