synos-helena 24.0.3 → 24.0.4-beta.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/lib/dark.css.map +1 -1
- package/lib/dark.css.map.gz +0 -0
- package/lib/index.css.map +1 -1
- package/lib/index.css.map.gz +0 -0
- package/lib/index.js +1 -1
- package/lib/index.js.gz +0 -0
- package/lib/index.js.map +1 -1
- package/lib/index.js.map.gz +0 -0
- package/lib/src/HLAlert/HLAlert.d.ts +4 -0
- package/lib/src/HLArticle/HLArticle.d.ts +4 -0
- package/lib/src/HLBadge/HLBadge.d.ts +4 -0
- package/lib/src/HLButton/HLButton.d.ts +4 -0
- package/lib/src/HLCard/HLCard.d.ts +7 -0
- package/lib/src/HLCheckbox/HLCheckbox.d.ts +5 -0
- package/lib/src/HLCode/HLCode.d.ts +4 -0
- package/lib/src/HLCollapse/HLCollapse.d.ts +7 -0
- package/lib/src/HLCollapse/Panel/Panel.d.ts +4 -0
- package/lib/src/HLCollapseInfoPanel/HLCollapseInfoPanel.d.ts +4 -0
- package/lib/src/HLContext/HLContext.d.ts +4 -0
- package/lib/src/HLCpfCnpj/HLCpfCnpj.d.ts +4 -0
- package/lib/src/HLDatePicker/DatePicker.d.ts +8 -0
- package/lib/src/HLDatePicker/HLDatePicker.d.ts +6 -0
- package/lib/src/HLDatePicker/MonthPicker/MonthPicker.d.ts +6 -0
- package/lib/src/HLDatePicker/RangePicker/RangePicker.d.ts +6 -0
- package/lib/src/HLDatePicker/utils.d.ts +5 -0
- package/lib/src/HLDeferredRender/HLDeferredRender.d.ts +4 -0
- package/lib/src/HLDescriptions/HLDescriptions.d.ts +4 -0
- package/lib/src/HLDiffViewer/HLDiffViewer.d.ts +4 -0
- package/lib/src/HLDivider/HLDivider.d.ts +4 -0
- package/lib/src/HLDrawer/HLDrawer.d.ts +4 -0
- package/lib/src/HLDropdown/HLDropdown.d.ts +4 -0
- package/lib/src/HLDropdownButton/HLDropdownButton.d.ts +4 -0
- package/lib/src/HLEditTable/HLEditTable.d.ts +4 -0
- package/lib/src/HLEnvironmentText/HLEnvironmentText.d.ts +6 -0
- package/lib/src/HLEnvironmentText/HLEnvironmentTypes.d.ts +13 -0
- package/lib/src/HLErrorBoundary/HLErrorBoundary.d.ts +13 -0
- package/lib/src/HLException/Error/Error.d.ts +4 -0
- package/lib/src/HLException/HLException.d.ts +5 -0
- package/lib/src/HLException/Page500/Page500.d.ts +4 -0
- package/lib/src/HLException/PageError/PageError.d.ts +4 -0
- package/lib/src/HLForm/HLForm.d.ts +7 -0
- package/lib/src/HLFromTo/HLFromTo.d.ts +6 -0
- package/lib/src/HLHeader/HLHeader.d.ts +6 -0
- package/lib/src/HLHeaderButton/HLHeaderButton.d.ts +4 -0
- package/lib/src/HLHeaderSearch/HLHeaderSearch.d.ts +4 -0
- package/lib/src/HLHelpContext/HLHelpContext.d.ts +8 -0
- package/lib/src/HLInput/HLInput.d.ts +5 -0
- package/lib/src/HLInput/Password/Password.d.ts +5 -0
- package/lib/src/HLInputMonetary/HLInputMonetary.d.ts +5 -0
- package/lib/src/HLInputMonetaryFormatOnBlur/HLInputMonetaryFormatOnBlur.d.ts +5 -0
- package/lib/src/HLMain/HLMain.d.ts +4 -0
- package/lib/src/HLMarkdown/HLMarkdown.d.ts +4 -0
- package/lib/src/HLModulesMenu/HLModulesMenu.d.ts +4 -0
- package/lib/src/HLNotification/HLNotification.d.ts +6 -0
- package/lib/src/HLNotification/notificationList/NotificationList.d.ts +6 -0
- package/lib/src/HLPageHeader/HLPageHeader.d.ts +4 -0
- package/lib/src/HLPopover/HLPopover.d.ts +4 -0
- package/lib/src/HLPowerSearch/lib/SelectStoreInterface.d.ts +11 -0
- package/lib/src/HLProgress/HLProgress.d.ts +4 -0
- package/lib/src/HLRadio/HLRadio.d.ts +5 -0
- package/lib/src/HLSelect/HLSelect.d.ts +5 -0
- package/lib/src/HLSideMenu/HLSideMenu.d.ts +4 -0
- package/lib/src/HLSpin/HLSpin.d.ts +4 -0
- package/lib/src/HLSwitch/HLSwitch.d.ts +4 -0
- package/lib/src/HLTable/HLTable.d.ts +75 -0
- package/lib/src/HLTextArea/HLTextArea.d.ts +5 -0
- package/lib/src/HLTooltip/HLTootip.d.ts +4 -0
- package/lib/src/HLTotalizer/HLTotalizer.d.ts +4 -0
- package/lib/src/HLUserBox/HLUserBox.d.ts +4 -0
- package/lib/src/index.d.ts +75 -0
- package/lib/src/util/CustomHooks.d.ts +2 -0
- package/lib/src/util/Permissions.d.ts +19 -0
- package/lib/src/util/constants.d.ts +15 -0
- package/package.json +1 -1
- package/CHANGELOG.md +0 -1120
package/lib/index.js.map.gz
CHANGED
|
Binary file
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '@ant-design/compatible/assets/index.css';
|
|
3
|
+
import 'antd/es/date-picker/style/index';
|
|
4
|
+
import { DatePickerProps } from './index';
|
|
5
|
+
import { RangeDatePickerProps } from './RangePicker/index';
|
|
6
|
+
export declare const DatePicker: React.FC<DatePickerProps>;
|
|
7
|
+
export declare const MonthPicker: React.FC<DatePickerProps>;
|
|
8
|
+
export declare const RangePicker: React.FC<RangeDatePickerProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '@ant-design/compatible/assets/index.css';
|
|
3
|
+
import { HLDatePickerChildren, HLDatePickerPropTypes } from './index';
|
|
4
|
+
import 'moment/locale/pt-br';
|
|
5
|
+
declare const HLDatePicker: React.FC<HLDatePickerPropTypes> & HLDatePickerChildren;
|
|
6
|
+
export default HLDatePicker;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import moment, { Moment } from 'moment';
|
|
2
|
+
import dayjs, { Dayjs } from 'dayjs';
|
|
3
|
+
export declare const getData: (date: Moment | Dayjs | string | number | undefined, format: string | undefined, useDayjs?: boolean) => Moment | Dayjs | undefined | null;
|
|
4
|
+
export declare const toGMTFormat: (miliseconds: any, useDayjs?: boolean) => dayjs.Dayjs | moment.Moment;
|
|
5
|
+
export declare const toGMTTime: (miliseconds: any) => number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare type EnvironmentsType = 'DEV' | 'QA' | 'UAT' | 'PROD';
|
|
2
|
+
declare type LocationsType = 'header' | 'footer';
|
|
3
|
+
declare enum LocationsEnum {
|
|
4
|
+
Header = "header",
|
|
5
|
+
Footer = "footer"
|
|
6
|
+
}
|
|
7
|
+
declare enum EnvironmentsEnum {
|
|
8
|
+
DEV = "Desenvolvimento",
|
|
9
|
+
QA = "Qualidade",
|
|
10
|
+
UAT = "Homologa\u00E7\u00E3o",
|
|
11
|
+
PROD = "Produ\u00E7\u00E3o"
|
|
12
|
+
}
|
|
13
|
+
export { EnvironmentsType, LocationsType, EnvironmentsEnum, LocationsEnum };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HLErrorBoundaryPropTypes, HLErrorBoundaryStateType } from './index';
|
|
3
|
+
declare class HLErrorBoundary extends React.Component<HLErrorBoundaryPropTypes, HLErrorBoundaryStateType> {
|
|
4
|
+
constructor(props: any);
|
|
5
|
+
static getDerivedStateFromError(error: any): {
|
|
6
|
+
errorCatch: boolean;
|
|
7
|
+
};
|
|
8
|
+
pageRefresh: () => void;
|
|
9
|
+
getErrorContent(serviceDescription: any): JSX.Element;
|
|
10
|
+
componentDidCatch(): void;
|
|
11
|
+
render(): JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
export default HLErrorBoundary;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HLHelpContextProps, HLHelpContextState } from '.';
|
|
3
|
+
declare class HLHelpContext extends React.Component<HLHelpContextProps, HLHelpContextState> {
|
|
4
|
+
constructor(props: HLHelpContextProps);
|
|
5
|
+
_onCancel: () => void;
|
|
6
|
+
render(): JSX.Element;
|
|
7
|
+
}
|
|
8
|
+
export default HLHelpContext;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SelectStorePropTypes } from '..';
|
|
2
|
+
declare class SelectStoreInterface implements SelectStorePropTypes {
|
|
3
|
+
lista: never[];
|
|
4
|
+
loading: boolean;
|
|
5
|
+
query: string;
|
|
6
|
+
loadAllValues: boolean;
|
|
7
|
+
constructor();
|
|
8
|
+
initialize(): void;
|
|
9
|
+
_onPowerSearch(query: string, key: string, label: any): void;
|
|
10
|
+
}
|
|
11
|
+
export default SelectStoreInterface;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
import { Table, Input } from 'antd';
|
|
3
|
+
import { IColumnsType, IProps, IState, PaginationProps } from './index';
|
|
4
|
+
import { FilterValue, SorterResult, TableCurrentDataSource } from 'antd/lib/table/interface';
|
|
5
|
+
import { CheckboxChangeEvent } from 'antd/lib/checkbox';
|
|
6
|
+
declare class HLTable extends React.Component<IProps, IState> {
|
|
7
|
+
static displayName: string;
|
|
8
|
+
static defaultProps: {
|
|
9
|
+
enableSelectVisualization: boolean;
|
|
10
|
+
size: string;
|
|
11
|
+
enableDownload: boolean;
|
|
12
|
+
showSorterTooltip: boolean;
|
|
13
|
+
autosaveOptions: boolean;
|
|
14
|
+
hideActionBar: boolean;
|
|
15
|
+
moveColumn: boolean;
|
|
16
|
+
infoModal: {
|
|
17
|
+
tooltip: undefined;
|
|
18
|
+
title: undefined;
|
|
19
|
+
text: undefined;
|
|
20
|
+
};
|
|
21
|
+
renderWithEllipsisAndWhiteSpace: boolean;
|
|
22
|
+
};
|
|
23
|
+
searchText: Record<string, string>;
|
|
24
|
+
searchInput?: Input | null;
|
|
25
|
+
static Summary: typeof Table.Summary;
|
|
26
|
+
constructor(props: IProps);
|
|
27
|
+
UNSAFE_componentWillReceiveProps(nextProps: IProps): void;
|
|
28
|
+
componentDidMount(): void;
|
|
29
|
+
_getFromLocalStorage(context: string): Record<string, IColumnsType[]> | string;
|
|
30
|
+
_putOnLocalStorage(context: string, value: Record<string, unknown[]>): void;
|
|
31
|
+
handleVisibleChange(value: boolean): void;
|
|
32
|
+
handleCheckBoxAllChange(e: CheckboxChangeEvent): void;
|
|
33
|
+
handleCheckBoxChange(e: CheckboxChangeEvent): void;
|
|
34
|
+
contarColunasFixasAntesDaColuna(colunas: any, indice: any): number;
|
|
35
|
+
/**
|
|
36
|
+
* move a coluna para o primeiro id, caso exista colunas fixadas, ele move para o próximo ID disponível.
|
|
37
|
+
*
|
|
38
|
+
* @param column coluna a ser movida
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
moveColunaParaPrimeira: (column: any) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Função criada para mover a coluna para o próximo ID, caso seja permitido, quando é uma coluna com fixed, ele não move.
|
|
44
|
+
*
|
|
45
|
+
* @param column Coluna a ser movida
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
moveColunaProximoIndex: (column: any) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Função criada para mover a coluna para o ID anterior, caso seja permitido, quando é uma coluna com fixed, ele não move.
|
|
51
|
+
*
|
|
52
|
+
* @param column coluna a ser movida
|
|
53
|
+
* @returns return caso seja uma coluna fixed
|
|
54
|
+
*/
|
|
55
|
+
moveColunaIndexAnterior: (column: any) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Filtra os novos valores de coluna baseadas nas colunas visíveis, definidas pela funcionalidade de
|
|
58
|
+
* visualização de colunas, onde é possível editar as colunas a serem visualizadas na tabela.
|
|
59
|
+
*
|
|
60
|
+
* @param {IColumnsType[]} colunas a serem filtradas.
|
|
61
|
+
* @returns {IColumnsType[]} as colunas filtradas, baseada nas colunas visíveis.
|
|
62
|
+
*/
|
|
63
|
+
_getNewVisibleColumns(columns: IColumnsType[]): IColumnsType[];
|
|
64
|
+
/**
|
|
65
|
+
* Retorna as colunas associadas à tabela formatadas, caso necessário, com valores default.
|
|
66
|
+
*
|
|
67
|
+
* @returns a columns formatada.
|
|
68
|
+
*/
|
|
69
|
+
getColumns(): IColumnsType[];
|
|
70
|
+
_itemRenderPagination(current: number, type: string, originalElement: ReactElement): ReactElement;
|
|
71
|
+
_onChange(pagination: PaginationProps, filters: Record<string, FilterValue | null>, sorter: SorterResult<any> | SorterResult<any>[], extra: TableCurrentDataSource<any>): void;
|
|
72
|
+
_filterColumns(e: any): void;
|
|
73
|
+
render(): ReactElement;
|
|
74
|
+
}
|
|
75
|
+
export default HLTable;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import AdvancedPowerSelectStoreInterface from './HLAdvancedPowerSelect/lib/AdvancedPowerSelectStoreInterface';
|
|
2
|
+
import HLAdvancedPowerSelect from './HLAdvancedPowerSelect/HLAdvancedPowerSelect';
|
|
3
|
+
import HLAlert from './HLAlert/HLAlert';
|
|
4
|
+
import HLArticle from './HLArticle/HLArticle';
|
|
5
|
+
import HLAssociateDisassociate from './HLAssociateDisassociate/HLAssociateDisassociate';
|
|
6
|
+
import HLAssociationManager from './HLAssociationManager/HLAssociationManager';
|
|
7
|
+
import HLBigDecimalInputNumber from './HLBigDecimalInputNumber/HLBigDecimalInputNumber';
|
|
8
|
+
import HLBreadcrumb from './HLBreadcrumb/HLBreadcrumb';
|
|
9
|
+
import HLButton from './HLButton/HLButton';
|
|
10
|
+
import HLCard from './HLCard/HLCard';
|
|
11
|
+
import HLCheckbox from './HLCheckbox/HLCheckbox';
|
|
12
|
+
import HLCode from './HLCode/HLCode';
|
|
13
|
+
import HLCollapse from './HLCollapse/HLCollapse';
|
|
14
|
+
import HLCollapseInfoPanel from './HLCollapseInfoPanel/HLCollapseInfoPanel';
|
|
15
|
+
import HLContext from './HLContext/HLContext';
|
|
16
|
+
import HLCpfCnpj from './HLCpfCnpj/HLCpfCnpj';
|
|
17
|
+
import HLDatePicker from './HLDatePicker/HLDatePicker';
|
|
18
|
+
import HLDeferredRender from './HLDeferredRender/HLDeferredRender';
|
|
19
|
+
import HLDescriptions from './HLDescriptions/HLDescriptions';
|
|
20
|
+
import HLDiffViewer from './HLDiffViewer/HLDiffViewer';
|
|
21
|
+
import HLDivider from './HLDivider/HLDivider';
|
|
22
|
+
import HLDrawer from './HLDrawer/HLDrawer';
|
|
23
|
+
import HLDropdown from './HLDropdown/HLDropdown';
|
|
24
|
+
import HLDropdownButton from './HLDropdownButton/HLDropdownButton';
|
|
25
|
+
import HLEditTable from './HLEditTable/HLEditTable';
|
|
26
|
+
import HLErrorBoundary from './HLErrorBoundary/HLErrorBoundary';
|
|
27
|
+
import HLException from './HLException/HLException';
|
|
28
|
+
import HLForm from './HLForm/HLForm';
|
|
29
|
+
import HLFormAction from './HLFormAction/HLFormAction';
|
|
30
|
+
import HLFormGroup from './HLFormGroup/HLFormGroup';
|
|
31
|
+
import HLFromTo from './HLFromTo/HLFromTo';
|
|
32
|
+
import HLHeader from './HLHeader/HLHeader';
|
|
33
|
+
import HLIcon from './HLIcon/HLIcon';
|
|
34
|
+
import HLInput from './HLInput/HLInput';
|
|
35
|
+
import HLInputMonetary from './HLInputMonetary/HLInputMonetary';
|
|
36
|
+
import HLInputMonetaryFormatOnBlur from './HLInputMonetaryFormatOnBlur/HLInputMonetaryFormatOnBlur';
|
|
37
|
+
import HLInputNumber from './HLInputNumber/HLInputNumber';
|
|
38
|
+
import HLLayout from './HLLayout/HLLayout';
|
|
39
|
+
import HLMain from './HLMain/HLMain';
|
|
40
|
+
import HLMarkdown from './HLMarkdown/HLMarkdown';
|
|
41
|
+
import HLMenu from './HLMenu/HLMenu';
|
|
42
|
+
import HLModal from './HLModal/HLModal';
|
|
43
|
+
import HLPageHeader from './HLPageHeader/HLPageHeader';
|
|
44
|
+
import HLPopover from './HLPopover/HLPopover';
|
|
45
|
+
import HLPowerSearch from './HLPowerSearch/HLPowerSearch';
|
|
46
|
+
import HLPowerSelect from './HLPowerSelect/HLPowerSelect';
|
|
47
|
+
import HLProgress from './HLProgress/HLProgress';
|
|
48
|
+
import HLRadio from './HLRadio/HLRadio';
|
|
49
|
+
import HLSelect from './HLSelect/HLSelect';
|
|
50
|
+
import HLSelectMultiple from './HLSelectMultiple/HLSelectMultiple';
|
|
51
|
+
import HLSideMenu from './HLSideMenu/HLSideMenu';
|
|
52
|
+
import HLSpin from './HLSpin/HLSpin';
|
|
53
|
+
import HLSwitch from './HLSwitch/HLSwitch';
|
|
54
|
+
import HLTable from './HLTable/HLTable';
|
|
55
|
+
import HLTableDataLimitAlert from './HLTableDataLimitAlert/HLTableDataLimitAlert';
|
|
56
|
+
import HLTabs from './HLTabs/HLTabs';
|
|
57
|
+
import HLTag from './HLTag/HLTag';
|
|
58
|
+
import HLTagRounded from './HLTagRounded/HLTagRounded';
|
|
59
|
+
import HLTextArea from './HLTextArea/HLTextArea';
|
|
60
|
+
import HLTooltip from './HLTooltip/HLTootip';
|
|
61
|
+
import HLTotalizer from './HLTotalizer/HLTotalizer';
|
|
62
|
+
import HLTree from './HLTree/HLTree';
|
|
63
|
+
import HLUserBox from './HLUserBox/HLUserBox';
|
|
64
|
+
import HLNotification from './HLNotification/HLNotification';
|
|
65
|
+
import HLHealthCheck from './HLHealthCheck/HLHealthCheck';
|
|
66
|
+
import HLModulesMenu from './HLModulesMenu/HLModulesMenu';
|
|
67
|
+
import PowerSearchOperators from './HLPowerSearch/lib/Operators';
|
|
68
|
+
import PowerSelectStoreInterface from './HLPowerSelect/lib/PowerSelectStoreInterface';
|
|
69
|
+
import SearchObject from './HLPowerSearch/lib/SearchObject';
|
|
70
|
+
import SearchType from './HLPowerSearch/lib/SearchType';
|
|
71
|
+
import SelectStoreInterface from './HLPowerSearch/lib/SelectStoreInterface';
|
|
72
|
+
import HLBadge from './HLBadge/HLBadge';
|
|
73
|
+
import HLHelpContext from './HLHelpContext/HLHelpContext';
|
|
74
|
+
import HLEnvironmentText from './HLEnvironmentText/HLEnvironmentText';
|
|
75
|
+
export { AdvancedPowerSelectStoreInterface, HLAdvancedPowerSelect, HLAlert, HLArticle, HLAssociateDisassociate, HLAssociationManager, HLBigDecimalInputNumber, HLBreadcrumb, HLButton, HLCard, HLCheckbox, HLBadge, HLCode, HLCollapse, HLCollapseInfoPanel, HLContext, HLCpfCnpj, HLDatePicker, HLDeferredRender, HLDescriptions, HLDiffViewer, HLDivider, HLDrawer, HLDropdown, HLDropdownButton, HLEditTable, HLErrorBoundary, HLException, HLForm, HLFormAction, HLFormGroup, HLFromTo, HLHeader, HLHelpContext, HLIcon, HLInput, HLInputMonetary, HLInputMonetaryFormatOnBlur, HLInputNumber, HLLayout, HLMain, HLMarkdown, HLMenu, HLModal, HLPageHeader, HLPopover, HLPowerSearch, HLPowerSelect, HLProgress, HLRadio, HLSelect, HLSelectMultiple, HLSideMenu, HLSpin, HLSwitch, HLTable, HLTableDataLimitAlert, HLTabs, HLTag, HLTagRounded, HLTextArea, HLTooltip, HLTotalizer, HLTree, HLUserBox, HLNotification, HLHealthCheck, HLModulesMenu, PowerSearchOperators, PowerSelectStoreInterface, SearchObject, SearchType, SelectStoreInterface, HLEnvironmentText, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type PermissionsType = {
|
|
3
|
+
resourceId: string;
|
|
4
|
+
components?: {
|
|
5
|
+
readOnlyAccess: (props: any) => React.ReactElement<any, any>;
|
|
6
|
+
fullAccess: (props: any) => React.ReactElement<any, any>;
|
|
7
|
+
};
|
|
8
|
+
authFunctions?: {
|
|
9
|
+
readOnlyAccess: (props: any) => boolean;
|
|
10
|
+
fullAccess: (props: any) => boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
declare class DefaultPermissions implements PermissionsType {
|
|
14
|
+
resourceId: string;
|
|
15
|
+
components: any;
|
|
16
|
+
authFunctions: any;
|
|
17
|
+
constructor(p?: PermissionsType);
|
|
18
|
+
}
|
|
19
|
+
export default DefaultPermissions;
|