react-asc 25.0.3 → 25.0.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/components/Alert/Alert.d.ts +4 -2
- package/components/AppBar/AppBar.d.ts +4 -2
- package/components/AppBar/AppBarTitle.d.ts +2 -1
- package/components/AutoComplete/AutoComplete.d.ts +2 -2
- package/components/Breadcrumb/Breadcrumb.d.ts +2 -1
- package/components/Button/ButtonContext.d.ts +2 -2
- package/components/Chip/Chip.d.ts +1 -1
- package/components/ConditionalWrapper/ConditionalWrapper.d.ts +2 -2
- package/components/ExpansionPanel/ExpansionPanel.d.ts +2 -1
- package/components/ExpansionPanel/ExpansionPanelContent.d.ts +1 -1
- package/components/ExpansionPanel/ExpansionPanelHeader.d.ts +2 -1
- package/components/Form/Form.d.ts +2 -2
- package/components/Form/FormError.d.ts +2 -2
- package/components/Form/FormGroup.d.ts +1 -1
- package/components/Form/FormInput/FormInput.d.ts +3 -3
- package/components/Form/form.interfaces.d.ts +2 -2
- package/components/Form/form.models.d.ts +5 -5
- package/components/Icon/Icon.d.ts +3 -2
- package/components/List/ListItem.d.ts +1 -1
- package/components/List/ListItemText.d.ts +2 -1
- package/components/List/list.models.d.ts +2 -2
- package/components/Menu/Menu.d.ts +5 -4
- package/components/Menu/MenuBody.d.ts +5 -4
- package/components/Menu/MenuContext.d.ts +2 -2
- package/components/Menu/MenuItem.d.ts +1 -1
- package/components/Menu/MenuToggle.d.ts +2 -2
- package/components/Modal/GlobalModal.d.ts +4 -4
- package/components/Modal/Modal.d.ts +2 -2
- package/components/Modal/ModalBody.d.ts +1 -1
- package/components/Modal/modal.interfaces.d.ts +2 -2
- package/components/Modal/modal.service.d.ts +5 -5
- package/components/Portal/Portal.d.ts +1 -1
- package/components/Select/Select.d.ts +4 -4
- package/components/Sidebar/Sidebar.d.ts +2 -2
- package/components/Sidebar/sidebar.interfaces.d.ts +1 -1
- package/components/Snackbar/Snackbar.d.ts +2 -1
- package/components/SpeedDial/SpeedDialIcon.d.ts +2 -1
- package/components/Stepper/Step/Step.d.ts +2 -1
- package/components/Stepper/StepPanel/StepPanel.d.ts +1 -1
- package/components/Stepper/Stepper.d.ts +3 -3
- package/components/Table/Table.d.ts +2 -2
- package/components/Table/TableContext.d.ts +1 -1
- package/components/Tabs/Tab.d.ts +2 -1
- package/components/Tabs/TabContext.d.ts +1 -1
- package/components/Tabs/Tabs.d.ts +3 -3
- package/hooks/useCssClasses.d.ts +1 -1
- package/hooks/useDebounce.d.ts +1 -1
- package/hooks/useHover.d.ts +1 -1
- package/index.d.ts +1 -0
- package/index.es.js +55 -63
- package/index.js +55 -63
- package/interfaces/index.d.ts +1 -0
- package/interfaces/interfaces.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { VARIANT } from '../component.enums';
|
|
3
|
-
import {
|
|
4
|
+
import type { SIZE } from '../component.enums';
|
|
5
|
+
import { COLOR } from '../component.enums';
|
|
4
6
|
export interface IAlertProps extends React.ComponentProps<'div'> {
|
|
5
7
|
children?: ReactNode;
|
|
6
8
|
className?: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { SIZE } from '../component.enums';
|
|
4
|
+
import { COLOR } from '../component.enums';
|
|
3
5
|
export interface IAppBarProps extends React.ComponentProps<'nav'> {
|
|
4
6
|
children?: ReactNode;
|
|
5
7
|
className?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ISelectOption } from '../component.interfaces';
|
|
2
|
+
import type { ISelectOption } from '../component.interfaces';
|
|
3
3
|
export interface IAutoCompleteProps {
|
|
4
4
|
id?: string;
|
|
5
5
|
name?: string;
|
|
6
6
|
className?: string;
|
|
7
|
-
options?:
|
|
7
|
+
options?: ISelectOption[];
|
|
8
8
|
value?: string;
|
|
9
9
|
openOnFocus?: boolean;
|
|
10
10
|
disabled?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { COLOR } from '../component.enums';
|
|
2
|
+
import type { COLOR } from '../component.enums';
|
|
3
3
|
export interface IButtonContext {
|
|
4
4
|
color: COLOR | null;
|
|
5
5
|
}
|
|
6
|
-
export declare const ButtonContext:
|
|
6
|
+
export declare const ButtonContext: React.Context<IButtonContext>;
|
|
7
7
|
export declare const useButtonContext: () => IButtonContext;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
interface IConditionalWrapperProps {
|
|
3
3
|
condition: boolean;
|
|
4
4
|
wrapper: (children: React.ReactNode) => JSX.Element;
|
|
5
5
|
children: any;
|
|
6
6
|
}
|
|
7
|
-
export declare const ConditionalWrapper: ({ condition, wrapper, children }: IConditionalWrapperProps) =>
|
|
7
|
+
export declare const ConditionalWrapper: ({ condition, wrapper, children }: IConditionalWrapperProps) => JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import { IControls, IFormValues } from './form.interfaces';
|
|
3
|
-
import { FormControl } from './form.models';
|
|
2
|
+
import type { IControls, IFormValues } from './form.interfaces';
|
|
3
|
+
import type { FormControl } from './form.models';
|
|
4
4
|
export interface IFormProps {
|
|
5
5
|
controls: IControls;
|
|
6
6
|
validateOnBlur?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { IFormInputError } from './form.interfaces';
|
|
2
|
+
import type { IFormInputError } from './form.interfaces';
|
|
3
3
|
interface IFormErrorProps {
|
|
4
4
|
className?: string;
|
|
5
|
-
errors?:
|
|
5
|
+
errors?: IFormInputError[];
|
|
6
6
|
}
|
|
7
7
|
export declare const FormError: (props: IFormErrorProps) => JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IFormInputOptions, IFormTextAreaOptions, IFormSelectOptions, IFormAutoCompleteOptions } from '../form.interfaces';
|
|
3
|
-
import { IFormControlType } from '../form.types';
|
|
2
|
+
import type { IFormInputOptions, IFormTextAreaOptions, IFormSelectOptions, IFormAutoCompleteOptions } from '../form.interfaces';
|
|
3
|
+
import type { IFormControlType } from '../form.types';
|
|
4
4
|
export interface IFormInputEvent {
|
|
5
5
|
value: any;
|
|
6
6
|
type?: string;
|
|
@@ -16,7 +16,7 @@ export interface IFormInputProps {
|
|
|
16
16
|
readonly?: boolean;
|
|
17
17
|
isValid?: boolean;
|
|
18
18
|
autoFocus?: boolean;
|
|
19
|
-
options?:
|
|
19
|
+
options?: IFormInputOptions[];
|
|
20
20
|
textareaOptions?: IFormTextAreaOptions;
|
|
21
21
|
selectOptions?: IFormSelectOptions;
|
|
22
22
|
autoCompleteOptions?: IFormAutoCompleteOptions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormControl } from './form.models';
|
|
1
|
+
import type { FormControl } from './form.models';
|
|
2
2
|
export interface IControls {
|
|
3
3
|
[key: string]: FormControl;
|
|
4
4
|
}
|
|
@@ -35,7 +35,7 @@ export interface IFormControlConfig {
|
|
|
35
35
|
hint?: string;
|
|
36
36
|
disabled?: boolean;
|
|
37
37
|
readonly?: boolean;
|
|
38
|
-
options?:
|
|
38
|
+
options?: IFormInputOptions[];
|
|
39
39
|
textareaOptions?: IFormTextAreaOptions;
|
|
40
40
|
selectOptions?: IFormSelectOptions;
|
|
41
41
|
autoCompleteOptions?: IFormAutoCompleteOptions;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IFormControlConfig, IFormInputError } from './form.interfaces';
|
|
2
|
-
import { IFormControlType } from './form.types';
|
|
1
|
+
import type { IFormControlConfig, IFormInputError } from './form.interfaces';
|
|
2
|
+
import type { IFormControlType } from './form.types';
|
|
3
3
|
export declare class FormControl {
|
|
4
4
|
value: any;
|
|
5
|
-
validators:
|
|
5
|
+
validators: string[];
|
|
6
6
|
type: IFormControlType;
|
|
7
7
|
config: IFormControlConfig;
|
|
8
|
-
constructor(value: any, validators:
|
|
9
|
-
errors:
|
|
8
|
+
constructor(value: any, validators: string[], type: IFormControlType, config: IFormControlConfig);
|
|
9
|
+
errors: IFormInputError[];
|
|
10
10
|
isValid: boolean;
|
|
11
11
|
isDirty: boolean;
|
|
12
12
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { COLOR } from '../component.enums';
|
|
3
4
|
export interface IIconProps extends ComponentProps<'div'> {
|
|
4
5
|
iconColor?: COLOR;
|
|
5
6
|
children?: React.ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { IListItemProps } from './ListItem';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { IListItemProps } from './ListItem';
|
|
3
3
|
export declare class ListItemModel {
|
|
4
4
|
constructor(dto: ReactElement<IListItemProps>);
|
|
5
5
|
key: unknown;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { MenuPosition } from './menu.types';
|
|
4
|
+
import type { IListItemProps } from '../List';
|
|
4
5
|
export interface IMenuProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
5
6
|
toggle?: ReactElement;
|
|
6
7
|
open?: boolean;
|
|
7
|
-
children?: ReactElement<IListItemProps> |
|
|
8
|
+
children?: ReactElement<IListItemProps> | ReactElement<IListItemProps>[];
|
|
8
9
|
menuPosition?: MenuPosition;
|
|
9
10
|
onClickBackdrop?: () => void;
|
|
10
11
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { MenuPosition } from './menu.types';
|
|
4
|
+
import type { IListItemProps } from '../List';
|
|
4
5
|
export interface IMenuBodyProps {
|
|
5
|
-
children?: ReactElement<IListItemProps> |
|
|
6
|
+
children?: ReactElement<IListItemProps> | ReactElement<IListItemProps>[];
|
|
6
7
|
className?: string;
|
|
7
8
|
menuPosition?: MenuPosition;
|
|
8
9
|
parentRef: React.RefObject<HTMLDivElement>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Dispatch } from 'react';
|
|
1
|
+
import type { Context, Dispatch } from 'react';
|
|
2
2
|
export interface IMenuContext {
|
|
3
3
|
isShow: boolean;
|
|
4
4
|
setIsShow: Dispatch<boolean>;
|
|
5
5
|
}
|
|
6
|
-
export declare const MenuContext:
|
|
6
|
+
export declare const MenuContext: Context<IMenuContext>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
2
|
interface IMenuToggleProps {
|
|
3
3
|
children?: ReactNode;
|
|
4
4
|
}
|
|
5
|
-
export declare const MenuToggle: ({ children }: IMenuToggleProps) =>
|
|
5
|
+
export declare const MenuToggle: ({ children }: IMenuToggleProps) => ReactNode;
|
|
6
6
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
import { SIZE } from '../component.enums';
|
|
3
|
-
import { IControls, IFormValues } from '../Form';
|
|
3
|
+
import type { IControls, IFormValues } from '../Form';
|
|
4
4
|
import { MODALTYPE } from './modal.enum';
|
|
5
|
-
import { IModalButton } from './modal.interfaces';
|
|
5
|
+
import type { IModalButton } from './modal.interfaces';
|
|
6
6
|
interface IModalProps {
|
|
7
7
|
title?: string;
|
|
8
8
|
description?: string | ReactElement;
|
|
@@ -13,7 +13,7 @@ interface IModalProps {
|
|
|
13
13
|
onCancel?: () => void;
|
|
14
14
|
onBackdropClick?: () => void;
|
|
15
15
|
isDismissable?: boolean;
|
|
16
|
-
buttons?:
|
|
16
|
+
buttons?: IModalButton[];
|
|
17
17
|
fullScreen?: boolean;
|
|
18
18
|
size?: SIZE;
|
|
19
19
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { SIZE } from '../component.enums';
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { SIZE } from '../component.enums';
|
|
3
3
|
export interface IModalProps {
|
|
4
4
|
target?: HTMLElement;
|
|
5
5
|
className?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { COLOR, VARIANT } from '../component.enums';
|
|
2
|
-
import { MODALBUTTONTYPE } from './modal.enum';
|
|
1
|
+
import type { COLOR, VARIANT } from '../component.enums';
|
|
2
|
+
import type { MODALBUTTONTYPE } from './modal.enum';
|
|
3
3
|
export interface IModalButton {
|
|
4
4
|
label: string;
|
|
5
5
|
variant?: VARIANT;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { IControls } from '../Form';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
import { IModalButton } from './modal.interfaces';
|
|
4
|
-
import { SIZE } from '../component.enums';
|
|
1
|
+
import type { IControls } from '../Form';
|
|
2
|
+
import type { ReactElement } from 'react';
|
|
3
|
+
import type { IModalButton } from './modal.interfaces';
|
|
4
|
+
import type { SIZE } from '../component.enums';
|
|
5
5
|
export interface IModalService {
|
|
6
6
|
show(title: string, description: string | ReactElement, options?: IModalOptions): Promise<void>;
|
|
7
7
|
}
|
|
8
8
|
export interface IModalOptions {
|
|
9
9
|
isDismissable?: boolean;
|
|
10
|
-
buttons?:
|
|
10
|
+
buttons?: IModalButton[];
|
|
11
11
|
fullScreen?: boolean;
|
|
12
12
|
size?: SIZE;
|
|
13
13
|
}
|
|
@@ -4,4 +4,4 @@ export interface IPortalProps {
|
|
|
4
4
|
target?: HTMLElement;
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const Portal: ({ children, target, className }: IPortalProps) =>
|
|
7
|
+
export declare const Portal: ({ children, target, className }: IPortalProps) => JSX.Element;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ISelectOption } from '../component.interfaces';
|
|
2
|
+
import type { ISelectOption } from '../component.interfaces';
|
|
3
3
|
export interface ISelectProps {
|
|
4
4
|
id?: string;
|
|
5
5
|
name?: string;
|
|
6
6
|
className?: string;
|
|
7
|
-
options?:
|
|
8
|
-
value?: string |
|
|
7
|
+
options?: ISelectOption[];
|
|
8
|
+
value?: string | string[];
|
|
9
9
|
multiple?: boolean;
|
|
10
10
|
multipleMaxCountItems?: number;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
readOnly?: boolean;
|
|
13
|
-
onChange?: (val: string |
|
|
13
|
+
onChange?: (val: string | string[]) => void;
|
|
14
14
|
onKeyDown?: (event: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
15
15
|
}
|
|
16
16
|
export declare const Select: (props: ISelectProps) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ISidebarItem } from './sidebar.interfaces';
|
|
2
|
+
import type { ISidebarItem } from './sidebar.interfaces';
|
|
3
3
|
interface ISidebarProps extends React.ComponentProps<'nav'> {
|
|
4
|
-
items:
|
|
4
|
+
items: ISidebarItem[];
|
|
5
5
|
currentUrl: string;
|
|
6
6
|
onItemClicked: (path: string) => void;
|
|
7
7
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
export interface ISpeedDialIconProps extends React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLDivElement>, HTMLDivElement> {
|
|
3
4
|
openIcon?: ReactElement;
|
|
4
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { IStepProps } from './Step';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { IStepProps } from './Step';
|
|
3
3
|
export interface IStepperProps {
|
|
4
|
-
children?: ReactElement<IStepProps> |
|
|
4
|
+
children?: ReactElement<IStepProps> | ReactElement<IStepProps>[];
|
|
5
5
|
isLinear?: boolean;
|
|
6
6
|
isDisabled?: boolean;
|
|
7
7
|
showLabel?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
export interface ITableProps {
|
|
3
|
-
children?: ReactElement |
|
|
3
|
+
children?: ReactElement | ReactElement[];
|
|
4
4
|
className?: string;
|
|
5
5
|
striped?: boolean;
|
|
6
6
|
bordered?: boolean;
|
package/components/Tabs/Tab.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
import { COLOR } from '../component.enums';
|
|
3
|
-
import { ITabProps } from './Tab';
|
|
3
|
+
import type { ITabProps } from './Tab';
|
|
4
4
|
export interface ITabsProps {
|
|
5
5
|
color?: COLOR;
|
|
6
6
|
indicatorColor?: COLOR;
|
|
7
|
-
children?: ReactElement<ITabProps> |
|
|
7
|
+
children?: ReactElement<ITabProps> | ReactElement<ITabProps>[];
|
|
8
8
|
className?: string;
|
|
9
9
|
fixed?: boolean;
|
|
10
10
|
onChange?: (value: string) => void;
|
package/hooks/useCssClasses.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function useCssClasses(cssClasses:
|
|
1
|
+
export declare function useCssClasses(cssClasses: string[]): string[];
|
package/hooks/useDebounce.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
export declare function useDebounce(callback: () => void, timeout: number, deps: React.DependencyList): void;
|
package/hooks/useHover.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare function useHover(): (boolean |
|
|
2
|
+
export declare function useHover(): (boolean | React.MutableRefObject<null>)[];
|
package/index.d.ts
CHANGED
package/index.es.js
CHANGED
|
@@ -235,11 +235,9 @@ function useDebounce(callback, timeout, deps) {
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
const useConstructor = (callBack) => {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
callBack();
|
|
242
|
-
setHasBeenCalled(true);
|
|
238
|
+
useEffect(() => {
|
|
239
|
+
callBack();
|
|
240
|
+
}, []);
|
|
243
241
|
};
|
|
244
242
|
|
|
245
243
|
function useCssClasses(cssClasses) {
|
|
@@ -405,7 +403,7 @@ styleInject(css_248z$V);
|
|
|
405
403
|
|
|
406
404
|
const ListItemAction = (_a) => {
|
|
407
405
|
var { children, onClick } = _a, rest = __rest(_a, ["children", "onClick"]);
|
|
408
|
-
return (React.createElement("div", Object.assign({ className: styles$V.listItemAction, onClick: e => onClick && onClick(e) }, rest), children));
|
|
406
|
+
return (React.createElement("div", Object.assign({ className: styles$V.listItemAction, onClick: (e) => onClick && onClick(e) }, rest), children));
|
|
409
407
|
};
|
|
410
408
|
|
|
411
409
|
var css_248z$U = ".ListItemTextIcon-module_listItemText__xCBLW {\n flex: 1;\n}";
|
|
@@ -637,7 +635,7 @@ const BreadcrumbItem = (props) => {
|
|
|
637
635
|
onClick && onClick(event);
|
|
638
636
|
};
|
|
639
637
|
return (React.createElement("li", { className: getCssClasses(), onClick: handleClick },
|
|
640
|
-
React.createElement(ConditionalWrapper, { condition: !isActive, wrapper: label => React.createElement("a", null, label) }, children)));
|
|
638
|
+
React.createElement(ConditionalWrapper, { condition: !isActive, wrapper: (label) => React.createElement("a", null, label) }, children)));
|
|
641
639
|
};
|
|
642
640
|
|
|
643
641
|
var css_248z$N = ".Card-module_card__TQdQq {\n background: var(--white);\n border-radius: var(--borderRadius);\n}\n.Card-module_card__TQdQq.Card-module_shadow__NxDVz {\n box-shadow: var(--shadow);\n}";
|
|
@@ -818,7 +816,7 @@ const Chip = (props) => {
|
|
|
818
816
|
};
|
|
819
817
|
return (React.createElement("div", Object.assign({ className: getCssClass() }, rest, { style: style }),
|
|
820
818
|
React.createElement("span", null, children),
|
|
821
|
-
isDeletable && (React.createElement("div", { className: styles$F.deleteIcon, onClick: e => handleClickOnDelete(e) }, deleteIcon))));
|
|
819
|
+
isDeletable && (React.createElement("div", { className: styles$F.deleteIcon, onClick: (e) => handleClickOnDelete(e) }, deleteIcon))));
|
|
822
820
|
};
|
|
823
821
|
|
|
824
822
|
const CssTransition = (props) => {
|
|
@@ -878,7 +876,7 @@ const CssTransition = (props) => {
|
|
|
878
876
|
};
|
|
879
877
|
useEffect(() => {
|
|
880
878
|
if (isShow !== undefined && (isShow === true || isShow === false)) {
|
|
881
|
-
renderAnimation(isShow);
|
|
879
|
+
void renderAnimation(isShow);
|
|
882
880
|
}
|
|
883
881
|
}, [isShow]);
|
|
884
882
|
const getCssClasses = () => {
|
|
@@ -901,21 +899,9 @@ var styles$E = {"column":"Column-module_column__fcTgl"};
|
|
|
901
899
|
styleInject(css_248z$E);
|
|
902
900
|
|
|
903
901
|
const Column = (props) => {
|
|
904
|
-
const { children, className } = props,
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
// md,
|
|
908
|
-
// lg,
|
|
909
|
-
// xl,
|
|
910
|
-
rest = __rest(props, ["children", "className"]);
|
|
911
|
-
const getCssClasses = () => {
|
|
912
|
-
const cssClasses = [];
|
|
913
|
-
// !xs && !sm && !md && !lg && !xl && cssClasses.push('col');
|
|
914
|
-
// if (xs) cssClasses.push(`col-${xs.toString()}`);
|
|
915
|
-
// if (sm) cssClasses.push(`col-sm-${sm.toString()}`);
|
|
916
|
-
// if (md) cssClasses.push(`col-md-${md.toString()}`);
|
|
917
|
-
// if (lg) cssClasses.push(`col-lg-${lg.toString()}`);
|
|
918
|
-
// if (xl) cssClasses.push(`col-xl-${xl.toString()}`);
|
|
902
|
+
const { children, className } = props, rest = __rest(props, ["children", "className"]);
|
|
903
|
+
const getCssClasses = () => {
|
|
904
|
+
const cssClasses = [];
|
|
919
905
|
cssClasses.push(styles$E.column);
|
|
920
906
|
className && cssClasses.push(className);
|
|
921
907
|
return cssClasses.filter(css => css).join(' ');
|
|
@@ -1116,20 +1102,22 @@ const Select = (props) => {
|
|
|
1116
1102
|
case 'Enter':
|
|
1117
1103
|
if (hoverIndex) {
|
|
1118
1104
|
const option = options[hoverIndex];
|
|
1119
|
-
if (option)
|
|
1105
|
+
if (option) {
|
|
1120
1106
|
handleOnClick(option);
|
|
1107
|
+
}
|
|
1121
1108
|
}
|
|
1122
1109
|
break;
|
|
1123
1110
|
}
|
|
1124
1111
|
}
|
|
1125
1112
|
};
|
|
1126
1113
|
return (React.createElement("div", { ref: selectConainter, className: styles$B.selectContainer },
|
|
1127
|
-
React.createElement("div", { id: id, className: getCssClass(), onClick: () => show(), tabIndex: 0, onKeyDown: e => handleOnKeyDown(e) },
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
React.createElement(
|
|
1114
|
+
React.createElement("div", { id: id, className: getCssClass(), onClick: () => show(), tabIndex: 0, onKeyDown: (e) => handleOnKeyDown(e) },
|
|
1115
|
+
React.createElement(React.Fragment, null,
|
|
1116
|
+
!multiple && renderSingleViewModel(),
|
|
1117
|
+
multiple &&
|
|
1118
|
+
React.createElement("div", { className: styles$B.chipContainer }, renderMultipleViewModel()),
|
|
1119
|
+
React.createElement(Icon, { className: "ml-auto" },
|
|
1120
|
+
React.createElement(ChevronDownSolidIcon, null)))),
|
|
1133
1121
|
isShow &&
|
|
1134
1122
|
React.createElement(Portal, { className: 'backdrop-root' },
|
|
1135
1123
|
React.createElement("div", { className: styles$B.selectMenu, style: { left: (_a = selectConainter.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().x, top: (_b = selectConainter.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().y, width: (_c = selectConainter.current) === null || _c === void 0 ? void 0 : _c.getBoundingClientRect().width } },
|
|
@@ -1187,20 +1175,20 @@ const FormInput = (props) => {
|
|
|
1187
1175
|
type === 'color' ||
|
|
1188
1176
|
type === 'time')
|
|
1189
1177
|
&&
|
|
1190
|
-
React.createElement("input", { id: name, name: name, type: type, className: getCssClasses(), value: value, autoFocus: autoFocus, onInput: e => handleOnInput(e.target.value, type, name), onChange: e => handleOnChange((e === null || e === void 0 ? void 0 : e.target).value, type, name), onBlur: onBlur, placeholder: placeholder, readOnly: readonly, disabled: disabled, onKeyDown: onKeyDown }),
|
|
1178
|
+
React.createElement("input", { id: name, name: name, type: type, className: getCssClasses(), value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange((e === null || e === void 0 ? void 0 : e.target).value, type, name), onBlur: onBlur, placeholder: placeholder, readOnly: readonly, disabled: disabled, onKeyDown: onKeyDown }),
|
|
1191
1179
|
type === 'file' &&
|
|
1192
|
-
React.createElement(FileInput, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, autoFocus: autoFocus, readOnly: readonly, disabled: disabled, onChange: e => handleOnChange(e.target.value, type, name) }, "choose a file"),
|
|
1180
|
+
React.createElement(FileInput, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, autoFocus: autoFocus, readOnly: readonly, disabled: disabled, onChange: (e) => handleOnChange(e.target.value, type, name) }, "choose a file"),
|
|
1193
1181
|
type === 'textarea' &&
|
|
1194
|
-
React.createElement(Textarea, { id: name, name: name, className: className, error: !isValid, value: value, autoFocus: autoFocus, onInput: e => handleOnInput(e.target.value, type, name), onChange: e => handleOnChange(e.target.value, type, name), placeholder: placeholder, rows: textareaOptions === null || textareaOptions === void 0 ? void 0 : textareaOptions.rows, style: (textareaOptions === null || textareaOptions === void 0 ? void 0 : textareaOptions.resize) !== false ? undefined : { resize: 'none' } }),
|
|
1182
|
+
React.createElement(Textarea, { id: name, name: name, className: className, error: !isValid, value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange(e.target.value, type, name), placeholder: placeholder, rows: textareaOptions === null || textareaOptions === void 0 ? void 0 : textareaOptions.rows, style: (textareaOptions === null || textareaOptions === void 0 ? void 0 : textareaOptions.resize) !== false ? undefined : { resize: 'none' } }),
|
|
1195
1183
|
type === 'select' &&
|
|
1196
|
-
React.createElement(Select, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, multiple: selectOptions === null || selectOptions === void 0 ? void 0 : selectOptions.multiple, onChange: e => handleOnChange(e, type, name), options: options }),
|
|
1184
|
+
React.createElement(Select, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, multiple: selectOptions === null || selectOptions === void 0 ? void 0 : selectOptions.multiple, onChange: (e) => handleOnChange(e, type, name), options: options }),
|
|
1197
1185
|
type === 'autocomplete' &&
|
|
1198
|
-
React.createElement(AutoComplete, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, openOnFocus: autoCompleteOptions === null || autoCompleteOptions === void 0 ? void 0 : autoCompleteOptions.openOnFocus, onChange: e => handleOnChange(e, type, name), onSelect: e => handleOnChange(e.value, type, name), options: options }),
|
|
1186
|
+
React.createElement(AutoComplete, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, openOnFocus: autoCompleteOptions === null || autoCompleteOptions === void 0 ? void 0 : autoCompleteOptions.openOnFocus, onChange: (e) => handleOnChange(e, type, name), onSelect: (e) => handleOnChange(e.value, type, name), options: options }),
|
|
1199
1187
|
type === 'checkbox' &&
|
|
1200
|
-
React.createElement(Checkbox, { id: name, name: name, label: label, className: (!isValid ? ' is-invalid' : ''), onChange: e => handleOnChange((e === null || e === void 0 ? void 0 : e.target).checked, type, name), checked: value }),
|
|
1188
|
+
React.createElement(Checkbox, { id: name, name: name, label: label, className: (!isValid ? ' is-invalid' : ''), onChange: (e) => handleOnChange((e === null || e === void 0 ? void 0 : e.target).checked, type, name), checked: value }),
|
|
1201
1189
|
type === 'radio' &&
|
|
1202
1190
|
React.createElement(React.Fragment, null, options.map((option) => React.createElement("div", { className: "form-check", key: option.id },
|
|
1203
|
-
React.createElement("input", { id: option.id ? option.id : option.value, name: name, type: "radio", className: "form-check-input", onChange: e => handleOnChange((e === null || e === void 0 ? void 0 : e.target).value, type, name), value: option.value, checked: value === option.value, onKeyDown: onKeyDown }),
|
|
1191
|
+
React.createElement("input", { id: option.id ? option.id : option.value, name: name, type: "radio", className: "form-check-input", onChange: (e) => handleOnChange((e === null || e === void 0 ? void 0 : e.target).value, type, name), value: option.value, checked: value === option.value, onKeyDown: onKeyDown }),
|
|
1204
1192
|
React.createElement("label", { className: "form-check-label", htmlFor: option.id }, option.label))))));
|
|
1205
1193
|
};
|
|
1206
1194
|
|
|
@@ -1257,8 +1245,10 @@ class Form extends Component {
|
|
|
1257
1245
|
const keys = Object.keys(this.state.controls);
|
|
1258
1246
|
const values = keys.reduce((obj, f) => {
|
|
1259
1247
|
const control = this.getControl(f);
|
|
1260
|
-
//
|
|
1261
|
-
const newValue = ((control.type === 'date' || control.type === 'datetime-local') &&
|
|
1248
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1249
|
+
const newValue = ((control.type === 'date' || control.type === 'datetime-local') &&
|
|
1250
|
+
control.value &&
|
|
1251
|
+
isValidDate((control.value))) ? new Date((control.value)).toISOString() : control.value;
|
|
1262
1252
|
return (Object.assign(Object.assign({}, obj), { [f]: newValue }));
|
|
1263
1253
|
}, {});
|
|
1264
1254
|
if (this.state.isValid && this.state.isSubmitted) {
|
|
@@ -1358,7 +1348,6 @@ class Form extends Component {
|
|
|
1358
1348
|
const cssClasses = [labelClassName, this.isRequired(fieldKey) ? 'required' : undefined];
|
|
1359
1349
|
return React.createElement(FormLabel, { htmlFor: fieldKey, className: cssClasses.join(' ') }, label);
|
|
1360
1350
|
}
|
|
1361
|
-
// trigger via ref
|
|
1362
1351
|
handleFormSubmit() {
|
|
1363
1352
|
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
1364
1353
|
const field = this.getControl(fieldKey);
|
|
@@ -1399,8 +1388,7 @@ class Form extends Component {
|
|
|
1399
1388
|
this.setState({ controls: {}, isValid: false, isChanged: false, isSubmitted: false });
|
|
1400
1389
|
}
|
|
1401
1390
|
getFormGroupCssClass(fieldKey) {
|
|
1402
|
-
|
|
1403
|
-
return result;
|
|
1391
|
+
return this.getControl(fieldKey).config.formGroupClassName;
|
|
1404
1392
|
}
|
|
1405
1393
|
render() {
|
|
1406
1394
|
return (React.createElement("form", { ref: this.myForm }, this.state && this.state.controls && Object.keys(this.state.controls).map((fieldKey) => {
|
|
@@ -1531,13 +1519,13 @@ const DateSelect = (props) => {
|
|
|
1531
1519
|
return (React.createElement(Row, { className: getCssClasses() },
|
|
1532
1520
|
React.createElement(Column, null,
|
|
1533
1521
|
React.createElement(FormLabel, null, "Year"),
|
|
1534
|
-
React.createElement(YearSelect, { value: currDate.getFullYear(), disabled: disabled, from: yearConfig === null || yearConfig === void 0 ? void 0 : yearConfig.from, to: yearConfig === null || yearConfig === void 0 ? void 0 : yearConfig.to, onChange: e => handleOnChange(e, DATEMODE.YEAR) })),
|
|
1522
|
+
React.createElement(YearSelect, { value: currDate.getFullYear(), disabled: disabled, from: yearConfig === null || yearConfig === void 0 ? void 0 : yearConfig.from, to: yearConfig === null || yearConfig === void 0 ? void 0 : yearConfig.to, onChange: (e) => handleOnChange(e, DATEMODE.YEAR) })),
|
|
1535
1523
|
React.createElement(Column, null,
|
|
1536
1524
|
React.createElement(FormLabel, null, "Month"),
|
|
1537
|
-
React.createElement(MonthSelect, { value: currDate.getMonth(), disabled: disabled, onChange: e => handleOnChange(e, DATEMODE.MONTH) })),
|
|
1525
|
+
React.createElement(MonthSelect, { value: currDate.getMonth(), disabled: disabled, onChange: (e) => handleOnChange(e, DATEMODE.MONTH) })),
|
|
1538
1526
|
React.createElement(Column, null,
|
|
1539
1527
|
React.createElement(FormLabel, null, "Day"),
|
|
1540
|
-
React.createElement(DaySelect, { day: currDate.getDate(), month: currDate.getMonth(), year: currDate.getFullYear(), disabled: disabled, onChange: e => handleOnChange(e, DATEMODE.DAY) }))));
|
|
1528
|
+
React.createElement(DaySelect, { day: currDate.getDate(), month: currDate.getMonth(), year: currDate.getFullYear(), disabled: disabled, onChange: (e) => handleOnChange(e, DATEMODE.DAY) }))));
|
|
1541
1529
|
};
|
|
1542
1530
|
/*
|
|
1543
1531
|
* result = { year, month, day, dayOfWeek, weekNumber }
|
|
@@ -1582,7 +1570,7 @@ const DrawerContent = (props) => {
|
|
|
1582
1570
|
};
|
|
1583
1571
|
const positionStyles = {
|
|
1584
1572
|
left: { left: '0px' },
|
|
1585
|
-
right: { right: '0px' }
|
|
1573
|
+
right: { right: '0px' }
|
|
1586
1574
|
};
|
|
1587
1575
|
const getStyles = () => {
|
|
1588
1576
|
return !permanent ? positionStyles[position] : undefined;
|
|
@@ -1669,7 +1657,7 @@ const MenuItem = (props) => {
|
|
|
1669
1657
|
};
|
|
1670
1658
|
|
|
1671
1659
|
const MenuToggle = ({ children }) => {
|
|
1672
|
-
return
|
|
1660
|
+
return children;
|
|
1673
1661
|
};
|
|
1674
1662
|
|
|
1675
1663
|
var css_248z$v = ".MenuDivider-module_menuItemDivider__oRP-j {\n height: 0;\n margin: 0.5rem 0;\n overflow: hidden;\n border-top: 1px solid #e9ecef;\n}";
|
|
@@ -1912,7 +1900,7 @@ const Modal = (props) => {
|
|
|
1912
1900
|
React.createElement(ModalBody, null, children),
|
|
1913
1901
|
footer &&
|
|
1914
1902
|
React.createElement(ModalFooter, null, footer))))),
|
|
1915
|
-
React.createElement(Backdrop, { onClick: handleClickBackdrop })));
|
|
1903
|
+
React.createElement(Backdrop, { onClick: handleClickBackdrop, style: { zIndex: 1040 } })));
|
|
1916
1904
|
};
|
|
1917
1905
|
|
|
1918
1906
|
var MODALTYPE;
|
|
@@ -2195,11 +2183,11 @@ const Sidebar = (props) => {
|
|
|
2195
2183
|
setMenuItems(newMenuItems);
|
|
2196
2184
|
}
|
|
2197
2185
|
else {
|
|
2198
|
-
navigate(e,
|
|
2186
|
+
navigate(e, `${item.path}`);
|
|
2199
2187
|
}
|
|
2200
2188
|
};
|
|
2201
2189
|
const handleClickSubItem = (itemPath, subItemPath, e) => {
|
|
2202
|
-
navigate(e,
|
|
2190
|
+
navigate(e, `${itemPath}/${subItemPath}`);
|
|
2203
2191
|
};
|
|
2204
2192
|
return (React.createElement("nav", Object.assign({ className: getCssClasses() }, rest),
|
|
2205
2193
|
React.createElement(List, null, menuItems.map(item => (React.createElement(React.Fragment, { key: item.id },
|
|
@@ -2300,10 +2288,12 @@ const SpeedDial = (props) => {
|
|
|
2300
2288
|
return cssClasses.filter(css => css).join(' ');
|
|
2301
2289
|
};
|
|
2302
2290
|
const handleClick = (e) => {
|
|
2303
|
-
if (open)
|
|
2291
|
+
if (open) {
|
|
2304
2292
|
onClose && onClose(e);
|
|
2305
|
-
|
|
2293
|
+
}
|
|
2294
|
+
else {
|
|
2306
2295
|
onOpen && onOpen(e);
|
|
2296
|
+
}
|
|
2307
2297
|
};
|
|
2308
2298
|
return (React.createElement("div", Object.assign({ className: getCssClasses() }, rest),
|
|
2309
2299
|
React.createElement("div", { style: { 'transform': open ? 'rotate(45deg)' : undefined } },
|
|
@@ -2413,7 +2403,7 @@ const Stepper = (props) => {
|
|
|
2413
2403
|
});
|
|
2414
2404
|
};
|
|
2415
2405
|
const renderSteps = (child, index) => {
|
|
2416
|
-
return React.isValidElement(child) &&
|
|
2406
|
+
return (React.createElement(React.Fragment, null, React.isValidElement(child) &&
|
|
2417
2407
|
cloneElement(child, {
|
|
2418
2408
|
index: index,
|
|
2419
2409
|
isActive: activeIndex >= index,
|
|
@@ -2422,7 +2412,7 @@ const Stepper = (props) => {
|
|
|
2422
2412
|
showLabel: showLabel,
|
|
2423
2413
|
showProgressCheckIcon: showProgressCheckIcon,
|
|
2424
2414
|
onClick: (e) => handleClickStep(e.event, e.value, index)
|
|
2425
|
-
});
|
|
2415
|
+
})));
|
|
2426
2416
|
};
|
|
2427
2417
|
const isStepOptional = (index) => {
|
|
2428
2418
|
return steps && steps[index].props.isOptional;
|
|
@@ -2632,7 +2622,7 @@ const Table = (props) => {
|
|
|
2632
2622
|
className && cssClasses.push(className);
|
|
2633
2623
|
return cssClasses.filter(css => css).join(' ');
|
|
2634
2624
|
};
|
|
2635
|
-
return (React.createElement(ConditionalWrapper, { condition: responsive, wrapper: children => React.createElement("div", { className: styles$5.tableResponsive }, children) },
|
|
2625
|
+
return (React.createElement(ConditionalWrapper, { condition: responsive, wrapper: (children) => React.createElement("div", { className: styles$5.tableResponsive }, children) },
|
|
2636
2626
|
React.createElement("table", { className: getCssClasses() }, children)));
|
|
2637
2627
|
};
|
|
2638
2628
|
|
|
@@ -2661,7 +2651,7 @@ const TableBody = (props) => {
|
|
|
2661
2651
|
const TableCell = (props) => {
|
|
2662
2652
|
const { variant } = useTableContext();
|
|
2663
2653
|
const { children, component } = props, rest = __rest(props, ["children", "component"]);
|
|
2664
|
-
return (React.createElement(ConditionalWrapper, { condition: true, wrapper: children => ((variant === 'head' || component === 'th') ? (React.createElement("th", Object.assign({}, rest), children)) :
|
|
2654
|
+
return (React.createElement(ConditionalWrapper, { condition: true, wrapper: (children) => ((variant === 'head' || component === 'th') ? (React.createElement("th", Object.assign({}, rest), children)) :
|
|
2665
2655
|
React.createElement("td", Object.assign({}, rest), children)) }, children));
|
|
2666
2656
|
};
|
|
2667
2657
|
|
|
@@ -2879,19 +2869,19 @@ const TimeSelect = (props) => {
|
|
|
2879
2869
|
showHours &&
|
|
2880
2870
|
React.createElement(Column, null,
|
|
2881
2871
|
React.createElement(FormLabel, null, "Hours"),
|
|
2882
|
-
React.createElement(HourSelect, { value: currDate.getHours(), disabled: disabled, onChange: e => handleOnChange(e, TIMEMODE.HOUR) })),
|
|
2872
|
+
React.createElement(HourSelect, { value: currDate.getHours(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.HOUR) })),
|
|
2883
2873
|
showMinutes &&
|
|
2884
2874
|
React.createElement(Column, null,
|
|
2885
2875
|
React.createElement(FormLabel, null, "Minutes"),
|
|
2886
|
-
React.createElement(MinuteSelect, { value: currDate.getMinutes(), disabled: disabled, onChange: e => handleOnChange(e, TIMEMODE.MINUTE) })),
|
|
2876
|
+
React.createElement(MinuteSelect, { value: currDate.getMinutes(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.MINUTE) })),
|
|
2887
2877
|
showSeconds &&
|
|
2888
2878
|
React.createElement(Column, null,
|
|
2889
2879
|
React.createElement(FormLabel, null, "Seconds"),
|
|
2890
|
-
React.createElement(SecondSelect, { value: currDate.getSeconds(), disabled: disabled, onChange: e => handleOnChange(e, TIMEMODE.SECONDS) })),
|
|
2880
|
+
React.createElement(SecondSelect, { value: currDate.getSeconds(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.SECONDS) })),
|
|
2891
2881
|
showMilliSeconds &&
|
|
2892
2882
|
React.createElement(Column, null,
|
|
2893
2883
|
React.createElement(FormLabel, null, "Milliseconds"),
|
|
2894
|
-
React.createElement(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: e => handleOnChange(e, TIMEMODE.MILLISECONDS) }))));
|
|
2884
|
+
React.createElement(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: (e) => handleOnChange(e, TIMEMODE.MILLISECONDS) }))));
|
|
2895
2885
|
};
|
|
2896
2886
|
|
|
2897
2887
|
var css_248z$1 = ".TreeView-module_treeView__VVj-4 {\n list-style-type: none;\n margin-bottom: 0;\n padding-left: 0px !important;\n margin-block-start: 0;\n margin-block-end: 0;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 0px;\n}\n.TreeView-module_treeView__VVj-4 ul {\n padding-left: 48px !important;\n}";
|
|
@@ -2924,12 +2914,14 @@ const TreeItem = (props) => {
|
|
|
2924
2914
|
return cssClasses.filter(css => css).join(' ');
|
|
2925
2915
|
};
|
|
2926
2916
|
useEffect(() => {
|
|
2927
|
-
if (isExpanded !== undefined)
|
|
2917
|
+
if (isExpanded !== undefined) {
|
|
2928
2918
|
setIsExpanded(isExpanded);
|
|
2919
|
+
}
|
|
2929
2920
|
}, [isExpanded]);
|
|
2930
2921
|
useEffect(() => {
|
|
2931
|
-
if (isSelected !== undefined)
|
|
2922
|
+
if (isSelected !== undefined) {
|
|
2932
2923
|
setIsSelected(isSelected);
|
|
2924
|
+
}
|
|
2933
2925
|
}, [isSelected]);
|
|
2934
2926
|
const handleOnToggleExpand = (nodeId) => {
|
|
2935
2927
|
setIsExpanded(!_isExpanded);
|
package/index.js
CHANGED
|
@@ -244,11 +244,9 @@ function useDebounce(callback, timeout, deps) {
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
const useConstructor = (callBack) => {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
callBack();
|
|
251
|
-
setHasBeenCalled(true);
|
|
247
|
+
React.useEffect(() => {
|
|
248
|
+
callBack();
|
|
249
|
+
}, []);
|
|
252
250
|
};
|
|
253
251
|
|
|
254
252
|
function useCssClasses(cssClasses) {
|
|
@@ -414,7 +412,7 @@ styleInject(css_248z$V);
|
|
|
414
412
|
|
|
415
413
|
const ListItemAction = (_a) => {
|
|
416
414
|
var { children, onClick } = _a, rest = __rest(_a, ["children", "onClick"]);
|
|
417
|
-
return (React__default["default"].createElement("div", Object.assign({ className: styles$V.listItemAction, onClick: e => onClick && onClick(e) }, rest), children));
|
|
415
|
+
return (React__default["default"].createElement("div", Object.assign({ className: styles$V.listItemAction, onClick: (e) => onClick && onClick(e) }, rest), children));
|
|
418
416
|
};
|
|
419
417
|
|
|
420
418
|
var css_248z$U = ".ListItemTextIcon-module_listItemText__xCBLW {\n flex: 1;\n}";
|
|
@@ -646,7 +644,7 @@ const BreadcrumbItem = (props) => {
|
|
|
646
644
|
onClick && onClick(event);
|
|
647
645
|
};
|
|
648
646
|
return (React__default["default"].createElement("li", { className: getCssClasses(), onClick: handleClick },
|
|
649
|
-
React__default["default"].createElement(ConditionalWrapper, { condition: !isActive, wrapper: label => React__default["default"].createElement("a", null, label) }, children)));
|
|
647
|
+
React__default["default"].createElement(ConditionalWrapper, { condition: !isActive, wrapper: (label) => React__default["default"].createElement("a", null, label) }, children)));
|
|
650
648
|
};
|
|
651
649
|
|
|
652
650
|
var css_248z$N = ".Card-module_card__TQdQq {\n background: var(--white);\n border-radius: var(--borderRadius);\n}\n.Card-module_card__TQdQq.Card-module_shadow__NxDVz {\n box-shadow: var(--shadow);\n}";
|
|
@@ -827,7 +825,7 @@ const Chip = (props) => {
|
|
|
827
825
|
};
|
|
828
826
|
return (React__default["default"].createElement("div", Object.assign({ className: getCssClass() }, rest, { style: style }),
|
|
829
827
|
React__default["default"].createElement("span", null, children),
|
|
830
|
-
isDeletable && (React__default["default"].createElement("div", { className: styles$F.deleteIcon, onClick: e => handleClickOnDelete(e) }, deleteIcon))));
|
|
828
|
+
isDeletable && (React__default["default"].createElement("div", { className: styles$F.deleteIcon, onClick: (e) => handleClickOnDelete(e) }, deleteIcon))));
|
|
831
829
|
};
|
|
832
830
|
|
|
833
831
|
const CssTransition = (props) => {
|
|
@@ -887,7 +885,7 @@ const CssTransition = (props) => {
|
|
|
887
885
|
};
|
|
888
886
|
React.useEffect(() => {
|
|
889
887
|
if (isShow !== undefined && (isShow === true || isShow === false)) {
|
|
890
|
-
renderAnimation(isShow);
|
|
888
|
+
void renderAnimation(isShow);
|
|
891
889
|
}
|
|
892
890
|
}, [isShow]);
|
|
893
891
|
const getCssClasses = () => {
|
|
@@ -910,21 +908,9 @@ var styles$E = {"column":"Column-module_column__fcTgl"};
|
|
|
910
908
|
styleInject(css_248z$E);
|
|
911
909
|
|
|
912
910
|
const Column = (props) => {
|
|
913
|
-
const { children, className } = props,
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
// md,
|
|
917
|
-
// lg,
|
|
918
|
-
// xl,
|
|
919
|
-
rest = __rest(props, ["children", "className"]);
|
|
920
|
-
const getCssClasses = () => {
|
|
921
|
-
const cssClasses = [];
|
|
922
|
-
// !xs && !sm && !md && !lg && !xl && cssClasses.push('col');
|
|
923
|
-
// if (xs) cssClasses.push(`col-${xs.toString()}`);
|
|
924
|
-
// if (sm) cssClasses.push(`col-sm-${sm.toString()}`);
|
|
925
|
-
// if (md) cssClasses.push(`col-md-${md.toString()}`);
|
|
926
|
-
// if (lg) cssClasses.push(`col-lg-${lg.toString()}`);
|
|
927
|
-
// if (xl) cssClasses.push(`col-xl-${xl.toString()}`);
|
|
911
|
+
const { children, className } = props, rest = __rest(props, ["children", "className"]);
|
|
912
|
+
const getCssClasses = () => {
|
|
913
|
+
const cssClasses = [];
|
|
928
914
|
cssClasses.push(styles$E.column);
|
|
929
915
|
className && cssClasses.push(className);
|
|
930
916
|
return cssClasses.filter(css => css).join(' ');
|
|
@@ -1125,20 +1111,22 @@ const Select = (props) => {
|
|
|
1125
1111
|
case 'Enter':
|
|
1126
1112
|
if (hoverIndex) {
|
|
1127
1113
|
const option = options[hoverIndex];
|
|
1128
|
-
if (option)
|
|
1114
|
+
if (option) {
|
|
1129
1115
|
handleOnClick(option);
|
|
1116
|
+
}
|
|
1130
1117
|
}
|
|
1131
1118
|
break;
|
|
1132
1119
|
}
|
|
1133
1120
|
}
|
|
1134
1121
|
};
|
|
1135
1122
|
return (React__default["default"].createElement("div", { ref: selectConainter, className: styles$B.selectContainer },
|
|
1136
|
-
React__default["default"].createElement("div", { id: id, className: getCssClass(), onClick: () => show(), tabIndex: 0, onKeyDown: e => handleOnKeyDown(e) },
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
React__default["default"].createElement(
|
|
1123
|
+
React__default["default"].createElement("div", { id: id, className: getCssClass(), onClick: () => show(), tabIndex: 0, onKeyDown: (e) => handleOnKeyDown(e) },
|
|
1124
|
+
React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
1125
|
+
!multiple && renderSingleViewModel(),
|
|
1126
|
+
multiple &&
|
|
1127
|
+
React__default["default"].createElement("div", { className: styles$B.chipContainer }, renderMultipleViewModel()),
|
|
1128
|
+
React__default["default"].createElement(Icon, { className: "ml-auto" },
|
|
1129
|
+
React__default["default"].createElement(ChevronDownSolidIcon, null)))),
|
|
1142
1130
|
isShow &&
|
|
1143
1131
|
React__default["default"].createElement(Portal, { className: 'backdrop-root' },
|
|
1144
1132
|
React__default["default"].createElement("div", { className: styles$B.selectMenu, style: { left: (_a = selectConainter.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().x, top: (_b = selectConainter.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().y, width: (_c = selectConainter.current) === null || _c === void 0 ? void 0 : _c.getBoundingClientRect().width } },
|
|
@@ -1196,20 +1184,20 @@ const FormInput = (props) => {
|
|
|
1196
1184
|
type === 'color' ||
|
|
1197
1185
|
type === 'time')
|
|
1198
1186
|
&&
|
|
1199
|
-
React__default["default"].createElement("input", { id: name, name: name, type: type, className: getCssClasses(), value: value, autoFocus: autoFocus, onInput: e => handleOnInput(e.target.value, type, name), onChange: e => handleOnChange((e === null || e === void 0 ? void 0 : e.target).value, type, name), onBlur: onBlur, placeholder: placeholder, readOnly: readonly, disabled: disabled, onKeyDown: onKeyDown }),
|
|
1187
|
+
React__default["default"].createElement("input", { id: name, name: name, type: type, className: getCssClasses(), value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange((e === null || e === void 0 ? void 0 : e.target).value, type, name), onBlur: onBlur, placeholder: placeholder, readOnly: readonly, disabled: disabled, onKeyDown: onKeyDown }),
|
|
1200
1188
|
type === 'file' &&
|
|
1201
|
-
React__default["default"].createElement(FileInput, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, autoFocus: autoFocus, readOnly: readonly, disabled: disabled, onChange: e => handleOnChange(e.target.value, type, name) }, "choose a file"),
|
|
1189
|
+
React__default["default"].createElement(FileInput, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, autoFocus: autoFocus, readOnly: readonly, disabled: disabled, onChange: (e) => handleOnChange(e.target.value, type, name) }, "choose a file"),
|
|
1202
1190
|
type === 'textarea' &&
|
|
1203
|
-
React__default["default"].createElement(Textarea, { id: name, name: name, className: className, error: !isValid, value: value, autoFocus: autoFocus, onInput: e => handleOnInput(e.target.value, type, name), onChange: e => handleOnChange(e.target.value, type, name), placeholder: placeholder, rows: textareaOptions === null || textareaOptions === void 0 ? void 0 : textareaOptions.rows, style: (textareaOptions === null || textareaOptions === void 0 ? void 0 : textareaOptions.resize) !== false ? undefined : { resize: 'none' } }),
|
|
1191
|
+
React__default["default"].createElement(Textarea, { id: name, name: name, className: className, error: !isValid, value: value, autoFocus: autoFocus, onInput: (e) => handleOnInput(e.target.value, type, name), onChange: (e) => handleOnChange(e.target.value, type, name), placeholder: placeholder, rows: textareaOptions === null || textareaOptions === void 0 ? void 0 : textareaOptions.rows, style: (textareaOptions === null || textareaOptions === void 0 ? void 0 : textareaOptions.resize) !== false ? undefined : { resize: 'none' } }),
|
|
1204
1192
|
type === 'select' &&
|
|
1205
|
-
React__default["default"].createElement(Select, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, multiple: selectOptions === null || selectOptions === void 0 ? void 0 : selectOptions.multiple, onChange: e => handleOnChange(e, type, name), options: options }),
|
|
1193
|
+
React__default["default"].createElement(Select, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, multiple: selectOptions === null || selectOptions === void 0 ? void 0 : selectOptions.multiple, onChange: (e) => handleOnChange(e, type, name), options: options }),
|
|
1206
1194
|
type === 'autocomplete' &&
|
|
1207
|
-
React__default["default"].createElement(AutoComplete, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, openOnFocus: autoCompleteOptions === null || autoCompleteOptions === void 0 ? void 0 : autoCompleteOptions.openOnFocus, onChange: e => handleOnChange(e, type, name), onSelect: e => handleOnChange(e.value, type, name), options: options }),
|
|
1195
|
+
React__default["default"].createElement(AutoComplete, { id: name, name: name, className: className + (!isValid ? ' is-invalid' : ''), value: value, openOnFocus: autoCompleteOptions === null || autoCompleteOptions === void 0 ? void 0 : autoCompleteOptions.openOnFocus, onChange: (e) => handleOnChange(e, type, name), onSelect: (e) => handleOnChange(e.value, type, name), options: options }),
|
|
1208
1196
|
type === 'checkbox' &&
|
|
1209
|
-
React__default["default"].createElement(Checkbox, { id: name, name: name, label: label, className: (!isValid ? ' is-invalid' : ''), onChange: e => handleOnChange((e === null || e === void 0 ? void 0 : e.target).checked, type, name), checked: value }),
|
|
1197
|
+
React__default["default"].createElement(Checkbox, { id: name, name: name, label: label, className: (!isValid ? ' is-invalid' : ''), onChange: (e) => handleOnChange((e === null || e === void 0 ? void 0 : e.target).checked, type, name), checked: value }),
|
|
1210
1198
|
type === 'radio' &&
|
|
1211
1199
|
React__default["default"].createElement(React__default["default"].Fragment, null, options.map((option) => React__default["default"].createElement("div", { className: "form-check", key: option.id },
|
|
1212
|
-
React__default["default"].createElement("input", { id: option.id ? option.id : option.value, name: name, type: "radio", className: "form-check-input", onChange: e => handleOnChange((e === null || e === void 0 ? void 0 : e.target).value, type, name), value: option.value, checked: value === option.value, onKeyDown: onKeyDown }),
|
|
1200
|
+
React__default["default"].createElement("input", { id: option.id ? option.id : option.value, name: name, type: "radio", className: "form-check-input", onChange: (e) => handleOnChange((e === null || e === void 0 ? void 0 : e.target).value, type, name), value: option.value, checked: value === option.value, onKeyDown: onKeyDown }),
|
|
1213
1201
|
React__default["default"].createElement("label", { className: "form-check-label", htmlFor: option.id }, option.label))))));
|
|
1214
1202
|
};
|
|
1215
1203
|
|
|
@@ -1266,8 +1254,10 @@ class Form extends React.Component {
|
|
|
1266
1254
|
const keys = Object.keys(this.state.controls);
|
|
1267
1255
|
const values = keys.reduce((obj, f) => {
|
|
1268
1256
|
const control = this.getControl(f);
|
|
1269
|
-
//
|
|
1270
|
-
const newValue = ((control.type === 'date' || control.type === 'datetime-local') &&
|
|
1257
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1258
|
+
const newValue = ((control.type === 'date' || control.type === 'datetime-local') &&
|
|
1259
|
+
control.value &&
|
|
1260
|
+
isValidDate((control.value))) ? new Date((control.value)).toISOString() : control.value;
|
|
1271
1261
|
return (Object.assign(Object.assign({}, obj), { [f]: newValue }));
|
|
1272
1262
|
}, {});
|
|
1273
1263
|
if (this.state.isValid && this.state.isSubmitted) {
|
|
@@ -1367,7 +1357,6 @@ class Form extends React.Component {
|
|
|
1367
1357
|
const cssClasses = [labelClassName, this.isRequired(fieldKey) ? 'required' : undefined];
|
|
1368
1358
|
return React__default["default"].createElement(FormLabel, { htmlFor: fieldKey, className: cssClasses.join(' ') }, label);
|
|
1369
1359
|
}
|
|
1370
|
-
// trigger via ref
|
|
1371
1360
|
handleFormSubmit() {
|
|
1372
1361
|
for (const fieldKey of Object.keys(this.state.controls)) {
|
|
1373
1362
|
const field = this.getControl(fieldKey);
|
|
@@ -1408,8 +1397,7 @@ class Form extends React.Component {
|
|
|
1408
1397
|
this.setState({ controls: {}, isValid: false, isChanged: false, isSubmitted: false });
|
|
1409
1398
|
}
|
|
1410
1399
|
getFormGroupCssClass(fieldKey) {
|
|
1411
|
-
|
|
1412
|
-
return result;
|
|
1400
|
+
return this.getControl(fieldKey).config.formGroupClassName;
|
|
1413
1401
|
}
|
|
1414
1402
|
render() {
|
|
1415
1403
|
return (React__default["default"].createElement("form", { ref: this.myForm }, this.state && this.state.controls && Object.keys(this.state.controls).map((fieldKey) => {
|
|
@@ -1540,13 +1528,13 @@ const DateSelect = (props) => {
|
|
|
1540
1528
|
return (React__default["default"].createElement(Row, { className: getCssClasses() },
|
|
1541
1529
|
React__default["default"].createElement(Column, null,
|
|
1542
1530
|
React__default["default"].createElement(FormLabel, null, "Year"),
|
|
1543
|
-
React__default["default"].createElement(YearSelect, { value: currDate.getFullYear(), disabled: disabled, from: yearConfig === null || yearConfig === void 0 ? void 0 : yearConfig.from, to: yearConfig === null || yearConfig === void 0 ? void 0 : yearConfig.to, onChange: e => handleOnChange(e, exports.DATEMODE.YEAR) })),
|
|
1531
|
+
React__default["default"].createElement(YearSelect, { value: currDate.getFullYear(), disabled: disabled, from: yearConfig === null || yearConfig === void 0 ? void 0 : yearConfig.from, to: yearConfig === null || yearConfig === void 0 ? void 0 : yearConfig.to, onChange: (e) => handleOnChange(e, exports.DATEMODE.YEAR) })),
|
|
1544
1532
|
React__default["default"].createElement(Column, null,
|
|
1545
1533
|
React__default["default"].createElement(FormLabel, null, "Month"),
|
|
1546
|
-
React__default["default"].createElement(MonthSelect, { value: currDate.getMonth(), disabled: disabled, onChange: e => handleOnChange(e, exports.DATEMODE.MONTH) })),
|
|
1534
|
+
React__default["default"].createElement(MonthSelect, { value: currDate.getMonth(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.DATEMODE.MONTH) })),
|
|
1547
1535
|
React__default["default"].createElement(Column, null,
|
|
1548
1536
|
React__default["default"].createElement(FormLabel, null, "Day"),
|
|
1549
|
-
React__default["default"].createElement(DaySelect, { day: currDate.getDate(), month: currDate.getMonth(), year: currDate.getFullYear(), disabled: disabled, onChange: e => handleOnChange(e, exports.DATEMODE.DAY) }))));
|
|
1537
|
+
React__default["default"].createElement(DaySelect, { day: currDate.getDate(), month: currDate.getMonth(), year: currDate.getFullYear(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.DATEMODE.DAY) }))));
|
|
1550
1538
|
};
|
|
1551
1539
|
/*
|
|
1552
1540
|
* result = { year, month, day, dayOfWeek, weekNumber }
|
|
@@ -1591,7 +1579,7 @@ const DrawerContent = (props) => {
|
|
|
1591
1579
|
};
|
|
1592
1580
|
const positionStyles = {
|
|
1593
1581
|
left: { left: '0px' },
|
|
1594
|
-
right: { right: '0px' }
|
|
1582
|
+
right: { right: '0px' }
|
|
1595
1583
|
};
|
|
1596
1584
|
const getStyles = () => {
|
|
1597
1585
|
return !permanent ? positionStyles[position] : undefined;
|
|
@@ -1678,7 +1666,7 @@ const MenuItem = (props) => {
|
|
|
1678
1666
|
};
|
|
1679
1667
|
|
|
1680
1668
|
const MenuToggle = ({ children }) => {
|
|
1681
|
-
return
|
|
1669
|
+
return children;
|
|
1682
1670
|
};
|
|
1683
1671
|
|
|
1684
1672
|
var css_248z$v = ".MenuDivider-module_menuItemDivider__oRP-j {\n height: 0;\n margin: 0.5rem 0;\n overflow: hidden;\n border-top: 1px solid #e9ecef;\n}";
|
|
@@ -1921,7 +1909,7 @@ const Modal = (props) => {
|
|
|
1921
1909
|
React__default["default"].createElement(ModalBody, null, children),
|
|
1922
1910
|
footer &&
|
|
1923
1911
|
React__default["default"].createElement(ModalFooter, null, footer))))),
|
|
1924
|
-
React__default["default"].createElement(Backdrop, { onClick: handleClickBackdrop })));
|
|
1912
|
+
React__default["default"].createElement(Backdrop, { onClick: handleClickBackdrop, style: { zIndex: 1040 } })));
|
|
1925
1913
|
};
|
|
1926
1914
|
|
|
1927
1915
|
exports.MODALTYPE = void 0;
|
|
@@ -2204,11 +2192,11 @@ const Sidebar = (props) => {
|
|
|
2204
2192
|
setMenuItems(newMenuItems);
|
|
2205
2193
|
}
|
|
2206
2194
|
else {
|
|
2207
|
-
navigate(e,
|
|
2195
|
+
navigate(e, `${item.path}`);
|
|
2208
2196
|
}
|
|
2209
2197
|
};
|
|
2210
2198
|
const handleClickSubItem = (itemPath, subItemPath, e) => {
|
|
2211
|
-
navigate(e,
|
|
2199
|
+
navigate(e, `${itemPath}/${subItemPath}`);
|
|
2212
2200
|
};
|
|
2213
2201
|
return (React__default["default"].createElement("nav", Object.assign({ className: getCssClasses() }, rest),
|
|
2214
2202
|
React__default["default"].createElement(List, null, menuItems.map(item => (React__default["default"].createElement(React__default["default"].Fragment, { key: item.id },
|
|
@@ -2309,10 +2297,12 @@ const SpeedDial = (props) => {
|
|
|
2309
2297
|
return cssClasses.filter(css => css).join(' ');
|
|
2310
2298
|
};
|
|
2311
2299
|
const handleClick = (e) => {
|
|
2312
|
-
if (open)
|
|
2300
|
+
if (open) {
|
|
2313
2301
|
onClose && onClose(e);
|
|
2314
|
-
|
|
2302
|
+
}
|
|
2303
|
+
else {
|
|
2315
2304
|
onOpen && onOpen(e);
|
|
2305
|
+
}
|
|
2316
2306
|
};
|
|
2317
2307
|
return (React__default["default"].createElement("div", Object.assign({ className: getCssClasses() }, rest),
|
|
2318
2308
|
React__default["default"].createElement("div", { style: { 'transform': open ? 'rotate(45deg)' : undefined } },
|
|
@@ -2422,7 +2412,7 @@ const Stepper = (props) => {
|
|
|
2422
2412
|
});
|
|
2423
2413
|
};
|
|
2424
2414
|
const renderSteps = (child, index) => {
|
|
2425
|
-
return React__default["default"].isValidElement(child) &&
|
|
2415
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].isValidElement(child) &&
|
|
2426
2416
|
React.cloneElement(child, {
|
|
2427
2417
|
index: index,
|
|
2428
2418
|
isActive: activeIndex >= index,
|
|
@@ -2431,7 +2421,7 @@ const Stepper = (props) => {
|
|
|
2431
2421
|
showLabel: showLabel,
|
|
2432
2422
|
showProgressCheckIcon: showProgressCheckIcon,
|
|
2433
2423
|
onClick: (e) => handleClickStep(e.event, e.value, index)
|
|
2434
|
-
});
|
|
2424
|
+
})));
|
|
2435
2425
|
};
|
|
2436
2426
|
const isStepOptional = (index) => {
|
|
2437
2427
|
return steps && steps[index].props.isOptional;
|
|
@@ -2641,7 +2631,7 @@ const Table = (props) => {
|
|
|
2641
2631
|
className && cssClasses.push(className);
|
|
2642
2632
|
return cssClasses.filter(css => css).join(' ');
|
|
2643
2633
|
};
|
|
2644
|
-
return (React__default["default"].createElement(ConditionalWrapper, { condition: responsive, wrapper: children => React__default["default"].createElement("div", { className: styles$5.tableResponsive }, children) },
|
|
2634
|
+
return (React__default["default"].createElement(ConditionalWrapper, { condition: responsive, wrapper: (children) => React__default["default"].createElement("div", { className: styles$5.tableResponsive }, children) },
|
|
2645
2635
|
React__default["default"].createElement("table", { className: getCssClasses() }, children)));
|
|
2646
2636
|
};
|
|
2647
2637
|
|
|
@@ -2670,7 +2660,7 @@ const TableBody = (props) => {
|
|
|
2670
2660
|
const TableCell = (props) => {
|
|
2671
2661
|
const { variant } = useTableContext();
|
|
2672
2662
|
const { children, component } = props, rest = __rest(props, ["children", "component"]);
|
|
2673
|
-
return (React__default["default"].createElement(ConditionalWrapper, { condition: true, wrapper: children => ((variant === 'head' || component === 'th') ? (React__default["default"].createElement("th", Object.assign({}, rest), children)) :
|
|
2663
|
+
return (React__default["default"].createElement(ConditionalWrapper, { condition: true, wrapper: (children) => ((variant === 'head' || component === 'th') ? (React__default["default"].createElement("th", Object.assign({}, rest), children)) :
|
|
2674
2664
|
React__default["default"].createElement("td", Object.assign({}, rest), children)) }, children));
|
|
2675
2665
|
};
|
|
2676
2666
|
|
|
@@ -2888,19 +2878,19 @@ const TimeSelect = (props) => {
|
|
|
2888
2878
|
showHours &&
|
|
2889
2879
|
React__default["default"].createElement(Column, null,
|
|
2890
2880
|
React__default["default"].createElement(FormLabel, null, "Hours"),
|
|
2891
|
-
React__default["default"].createElement(HourSelect, { value: currDate.getHours(), disabled: disabled, onChange: e => handleOnChange(e, exports.TIMEMODE.HOUR) })),
|
|
2881
|
+
React__default["default"].createElement(HourSelect, { value: currDate.getHours(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.HOUR) })),
|
|
2892
2882
|
showMinutes &&
|
|
2893
2883
|
React__default["default"].createElement(Column, null,
|
|
2894
2884
|
React__default["default"].createElement(FormLabel, null, "Minutes"),
|
|
2895
|
-
React__default["default"].createElement(MinuteSelect, { value: currDate.getMinutes(), disabled: disabled, onChange: e => handleOnChange(e, exports.TIMEMODE.MINUTE) })),
|
|
2885
|
+
React__default["default"].createElement(MinuteSelect, { value: currDate.getMinutes(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.MINUTE) })),
|
|
2896
2886
|
showSeconds &&
|
|
2897
2887
|
React__default["default"].createElement(Column, null,
|
|
2898
2888
|
React__default["default"].createElement(FormLabel, null, "Seconds"),
|
|
2899
|
-
React__default["default"].createElement(SecondSelect, { value: currDate.getSeconds(), disabled: disabled, onChange: e => handleOnChange(e, exports.TIMEMODE.SECONDS) })),
|
|
2889
|
+
React__default["default"].createElement(SecondSelect, { value: currDate.getSeconds(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.SECONDS) })),
|
|
2900
2890
|
showMilliSeconds &&
|
|
2901
2891
|
React__default["default"].createElement(Column, null,
|
|
2902
2892
|
React__default["default"].createElement(FormLabel, null, "Milliseconds"),
|
|
2903
|
-
React__default["default"].createElement(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: e => handleOnChange(e, exports.TIMEMODE.MILLISECONDS) }))));
|
|
2893
|
+
React__default["default"].createElement(MilliSecondSelect, { value: currDate.getMilliseconds(), disabled: disabled, onChange: (e) => handleOnChange(e, exports.TIMEMODE.MILLISECONDS) }))));
|
|
2904
2894
|
};
|
|
2905
2895
|
|
|
2906
2896
|
var css_248z$1 = ".TreeView-module_treeView__VVj-4 {\n list-style-type: none;\n margin-bottom: 0;\n padding-left: 0px !important;\n margin-block-start: 0;\n margin-block-end: 0;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 0px;\n}\n.TreeView-module_treeView__VVj-4 ul {\n padding-left: 48px !important;\n}";
|
|
@@ -2933,12 +2923,14 @@ const TreeItem = (props) => {
|
|
|
2933
2923
|
return cssClasses.filter(css => css).join(' ');
|
|
2934
2924
|
};
|
|
2935
2925
|
React.useEffect(() => {
|
|
2936
|
-
if (isExpanded !== undefined)
|
|
2926
|
+
if (isExpanded !== undefined) {
|
|
2937
2927
|
setIsExpanded(isExpanded);
|
|
2928
|
+
}
|
|
2938
2929
|
}, [isExpanded]);
|
|
2939
2930
|
React.useEffect(() => {
|
|
2940
|
-
if (isSelected !== undefined)
|
|
2931
|
+
if (isSelected !== undefined) {
|
|
2941
2932
|
setIsSelected(isSelected);
|
|
2933
|
+
}
|
|
2942
2934
|
}, [isSelected]);
|
|
2943
2935
|
const handleOnToggleExpand = (nodeId) => {
|
|
2944
2936
|
setIsExpanded(!_isExpanded);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './interfaces';
|