@archbase/components 3.0.0 → 3.0.2
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/buttons/ArchbaseActionButtons.d.ts +1 -1
- package/dist/charts/vis-timeline/ArchbaseVisTimeline.d.ts +1 -1
- package/dist/charts/vis-timeline/ArchbaseVisTimeline.types.d.ts +1 -1
- package/dist/charts/vis-timeline/utils/timelineOptions.d.ts +1 -1
- package/dist/datagrid/components/index.d.ts +2 -2
- package/dist/datagrid/components/pagination/grid-pagination.d.ts +1 -1
- package/dist/datagrid/components/toolbar/global-search-input.d.ts +1 -1
- package/dist/datagrid/components/toolbar/grid-toolbar.d.ts +1 -1
- package/dist/datagrid/hooks/use-grid-details-panel.d.ts +2 -2
- package/dist/datagrid/main/archbase-data-grid-pagination.d.ts +1 -1
- package/dist/datagrid/main/archbase-data-grid-toolbar.d.ts +1 -1
- package/dist/datagrid/main/archbase-data-grid-types.d.ts +7 -3
- package/dist/datagrid/main/archbase-data-grid-utils.d.ts +1 -1
- package/dist/datagrid/main/archbase-detail-panel-component.d.ts +1 -1
- package/dist/datagrid/main/archbase-expand-button.d.ts +1 -1
- package/dist/datagrid/main/archbase-grid-popover.d.ts +1 -1
- package/dist/datagrid/modals/print-data.d.ts +0 -1
- package/dist/editors/ArchbaseAsyncMultiSelect.d.ts +1 -1
- package/dist/editors/ArchbaseAsyncSelect.context.d.ts +1 -1
- package/dist/editors/ArchbaseAsyncSelect.d.ts +1 -5
- package/dist/editors/ArchbaseAvatarEdit.d.ts +2 -2
- package/dist/editors/ArchbaseCheckbox.d.ts +2 -3
- package/dist/editors/ArchbaseChip.d.ts +2 -3
- package/dist/editors/ArchbaseChipGroup.d.ts +1 -1
- package/dist/editors/ArchbaseDatePickerEdit.d.ts +3 -3
- package/dist/editors/ArchbaseDatePickerRange.d.ts +1 -2
- package/dist/editors/ArchbaseDateTimePickerEdit.d.ts +2 -3
- package/dist/editors/ArchbaseDateTimePickerRange.d.ts +2 -3
- package/dist/editors/ArchbaseEdit.d.ts +2 -7
- package/dist/editors/ArchbaseFileAttachment.d.ts +1 -1
- package/dist/editors/ArchbaseImageEdit.d.ts +2 -2
- package/dist/editors/ArchbaseJsonEdit.d.ts +2 -3
- package/dist/editors/ArchbaseLookupEdit.d.ts +2 -3
- package/dist/editors/ArchbaseLookupNumber.d.ts +2 -3
- package/dist/editors/ArchbaseMarkdownEdit.d.ts +1 -1
- package/dist/editors/ArchbaseMaskEdit.d.ts +3 -8
- package/dist/editors/ArchbaseNumberEdit.d.ts +1 -2
- package/dist/editors/ArchbasePasswordEdit.d.ts +2 -3
- package/dist/editors/ArchbaseRadioGroup.d.ts +2 -3
- package/dist/editors/ArchbaseRating.d.ts +1 -1
- package/dist/editors/ArchbaseRichTextEdit.d.ts +3 -3
- package/dist/editors/ArchbaseSelect.context.d.ts +1 -1
- package/dist/editors/ArchbaseSelect.d.ts +1 -1
- package/dist/editors/ArchbaseSwitch.d.ts +2 -3
- package/dist/editors/ArchbaseTextArea.d.ts +2 -3
- package/dist/editors/ArchbaseTimeEdit.d.ts +2 -3
- package/dist/editors/ArchbaseTimeRangeSelector.d.ts +1 -1
- package/dist/editors/ArchbaseTreeSelect.d.ts +1 -1
- package/dist/editors/index.d.ts +5 -5
- package/dist/filters/ArchbaseCompositeFilters.d.ts +1 -1
- package/dist/filters/ArchbaseCompositeFilters.types.d.ts +1 -1
- package/dist/filters/ArchbaseCompositeFilters.utils.d.ts +1 -1
- package/dist/filters/components/FilterPill.d.ts +1 -1
- package/dist/filters/hooks/useArchbaseFilterHistory.d.ts +1 -1
- package/dist/filters/hooks/useArchbaseFilterPresets.d.ts +1 -1
- package/dist/filters/hooks/useArchbaseFilters.d.ts +1 -1
- package/dist/filters/hooks/useArchbaseQuickFilters.d.ts +1 -1
- package/dist/hooks/useArchbaseListContext.d.ts +1 -1
- package/dist/hooks/useArchbaseNavigateParams.d.ts +2 -2
- package/dist/hooks/useArchbaseVisible.d.ts +1 -1
- package/dist/image/ArchbaseImage.d.ts +1 -1
- package/dist/image/editor/components/BasicFilters/BasicFilter.d.ts +1 -1
- package/dist/image/editor/components/CropprWrapper/ArchbaseCropperWrapper.d.ts +1 -2
- package/dist/image/editor/components/EditImage/ArchbaseEditImage.d.ts +1 -2
- package/dist/image/editor/components/Input/Input.d.ts +1 -1
- package/dist/image/editor/components/Tab/Tab.d.ts +1 -2
- package/dist/image/editor/functions/croppr/core.d.ts +1 -5
- package/dist/image/editor/functions/croppr/croppr.d.ts +1 -10
- package/dist/image/editor/functions/croppr/index.d.ts +1 -1
- package/dist/image/editor/index.d.ts +1 -2
- package/dist/index.d.ts +0 -3
- package/dist/index.js +4468 -4590
- package/dist/jsonschema/JsonSchemaEditor/ArchbaseJsonSchemaEditor.context.d.ts +1 -1
- package/dist/list/ArchbaseList.context.d.ts +1 -1
- package/dist/list/ArchbaseList.d.ts +1 -1
- package/dist/list/index.d.ts +1 -1
- package/dist/list/treeview/ArchbaseTreeView.d.ts +1 -1
- package/dist/list/treeview/ArchbaseTreeViewItem.d.ts +1 -1
- package/dist/list-view/ArchbaseListViewTable.d.ts +1 -1
- package/dist/markdown/ArchbaseMarkdown.d.ts +1 -1
- package/dist/markdown/ArchbaseMarkdown.types.d.ts +2 -2
- package/dist/markdown/components/CodeBlock.d.ts +2 -2
- package/dist/markdown/components/LinkRenderer.d.ts +1 -1
- package/dist/masonry/ArchbaseMasonry.context.d.ts +1 -1
- package/dist/masonry/ArchbaseMasonry.d.ts +1 -5
- package/dist/masonry/index.d.ts +1 -1
- package/dist/notification/ArchbaseAlert.d.ts +1 -5
- package/dist/onboarding/ArchbaseOnboardingTour.d.ts +1 -1
- package/dist/printer/ArchbaseThermalPrinter.d.ts +1 -1
- package/dist/printer/ArchbaseThermalPrinter.types.d.ts +1 -1
- package/dist/printer/utils/escpos.d.ts +1 -1
- package/dist/theme-editor/ArchbaseThemeEditor.d.ts +1 -1
- package/dist/theme-editor/ArchbaseThemeEditor.types.d.ts +2 -2
- package/dist/theme-editor/utils/themeExport.d.ts +2 -2
- package/dist/themes/ArchbaseThemeEditor.d.ts +2 -3
- package/dist/video/ArchbaseVideoPlayer.d.ts +1 -1
- package/dist/video/ArchbaseVideoPlayer.types.d.ts +1 -1
- package/dist/video/hooks/useVideoPlayer.d.ts +5 -5
- package/dist/viewers/ArchbasePDFViewer.annotations.d.ts +1 -1
- package/dist/viewers/ArchbasePDFViewer.d.ts +1 -1
- package/dist/viewers/ArchbasePDFViewer.toolbar.d.ts +1 -1
- package/dist/viewers/ArchbasePDFViewer.types.d.ts +2 -2
- package/dist/viewers/file-preview/ArchbaseFilePreviewer.d.ts +1 -1
- package/dist/viewers/file-preview/ArchbaseFilePreviewer.types.d.ts +1 -1
- package/dist/viewers/file-preview/utils/fileTypeDetector.d.ts +1 -1
- package/package.json +21 -21
- package/src/datagrid/main/archbase-data-grid-types.tsx +5 -0
- package/src/datagrid/main/archbase-data-grid.tsx +10 -3
- package/src/index.ts +0 -1
- package/dist/archbase-components-3.0.0.tgz +0 -0
- package/dist/debug/index.d.ts +0 -4
- package/dist/debug/jsonpathpicker/ArchbaseJsonPathPicker.d.ts +0 -37
- package/dist/debug/jsonpathpicker/index.d.ts +0 -1
- package/dist/debug/jsonview/ArchbaseJsonViewDataRenderer.d.ts +0 -34
- package/dist/debug/jsonview/ArchbaseJsonViewDataTypeDetection.d.ts +0 -8
- package/dist/debug/jsonview/index.d.ts +0 -11
- package/dist/debug/objectinspector/ArchbaseDebugInspector.d.ts +0 -23
- package/dist/debug/objectinspector/ArchbaseFloatingWindow.d.ts +0 -24
- package/dist/debug/objectinspector/ArchbaseObjectInspector.d.ts +0 -6
- package/dist/debug/objectinspector/index.d.ts +0 -3
- package/dist/spreadsheet/ArchbaseSpreadsheetImport.d.ts +0 -4
- package/dist/spreadsheet/ArchbaseSpreadsheetImport.types.d.ts +0 -65
- package/dist/spreadsheet/index.d.ts +0 -2
- package/src/debug/jsonview/styles.module.css.d.ts +0 -4
- package/src/spreadsheet/ArchbaseSpreadsheetImport.tsx +0 -223
- package/src/spreadsheet/ArchbaseSpreadsheetImport.types.ts +0 -66
- package/src/spreadsheet/index.ts +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ArchbaseVisTimelineProps, TimelineItem } from './ArchbaseVisTimeline.types';
|
|
2
2
|
/**
|
|
3
3
|
* Componente wrapper para vis-timeline
|
|
4
4
|
* Implementação leve usando vis-timeline diretamente
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { default as GlobalSearchInput } from './toolbar/global-search-input';
|
|
2
2
|
export { default as GridToolbar } from './toolbar/grid-toolbar';
|
|
3
3
|
export { default as GridPagination } from './pagination/grid-pagination';
|
|
4
|
-
export { ArchbaseItemRender } from
|
|
5
|
-
export type { ArchbaseItemRenderProps, ArchbaseItemRenderType } from
|
|
4
|
+
export { ArchbaseItemRender } from './render/archbase-data-grid-item-renderer';
|
|
5
|
+
export type { ArchbaseItemRenderProps, ArchbaseItemRenderType } from './render/archbase-data-grid-item-renderer.tsx';
|
|
6
6
|
export * from '../types';
|
|
@@ -9,12 +9,12 @@ export declare function useDetailPanels<T extends object = any>({ allowMultipleD
|
|
|
9
9
|
}): {
|
|
10
10
|
expandedRowIds: Set<GridRowId>;
|
|
11
11
|
detailPanelHeight: number;
|
|
12
|
-
detailPanelRefs: import(
|
|
12
|
+
detailPanelRefs: import('react').RefObject<Map<GridRowId, HTMLDivElement>>;
|
|
13
13
|
toggleExpand: (rowId: GridRowId) => void;
|
|
14
14
|
closeDetailPanel: (rowId: GridRowId) => void;
|
|
15
15
|
closeAllDetailPanels: () => void;
|
|
16
16
|
expandDetailPanel: (rowId: GridRowId) => void;
|
|
17
|
-
setExpandedRowIds: import(
|
|
17
|
+
setExpandedRowIds: import('react').Dispatch<import('react').SetStateAction<Set<GridRowId>>>;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
20
|
* Hook para detectar cliques fora e scroll para fechar os painéis de detalhes
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MutableRefObject, ReactNode, RefObject } from 'react';
|
|
1
|
+
import { default as React, MutableRefObject, ReactNode, RefObject } from 'react';
|
|
3
2
|
import { GridRowId, GridFilterModel, GridPaginationModel } from '@mui/x-data-grid';
|
|
4
3
|
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
|
-
import
|
|
4
|
+
import { ArchbaseFilterDefinition, ArchbaseActiveFilter } from '../../filters/ArchbaseCompositeFilters.types';
|
|
6
5
|
/**
|
|
7
6
|
* DataGrid Types - V1/V2 Compatible
|
|
8
7
|
*
|
|
@@ -35,6 +34,10 @@ export interface ArchbaseDataGridRef<T = any> {
|
|
|
35
34
|
collapseRow: (rowId: GridRowId) => void;
|
|
36
35
|
collapseAllRows: () => void;
|
|
37
36
|
getExpandedRows: () => GridRowId[];
|
|
37
|
+
/**
|
|
38
|
+
* Obtém o modelo de filtro atual
|
|
39
|
+
*/
|
|
40
|
+
getFilterModel: () => GridFilterModel;
|
|
38
41
|
}
|
|
39
42
|
export interface GridToolBarActionsProps {
|
|
40
43
|
children: ReactNode;
|
|
@@ -207,6 +210,7 @@ export interface ArchbaseDataGridProps<T extends object = any, ID = any> {
|
|
|
207
210
|
}) => void;
|
|
208
211
|
onExport?: (callback: () => void) => void;
|
|
209
212
|
onPrint?: (callback: () => void) => void;
|
|
213
|
+
onFilterModelChange?: (filterModel: any) => void;
|
|
210
214
|
gridRef?: RefObject<ArchbaseDataGridRef<T>> | MutableRefObject<ArchbaseDataGridRef<T> | null>;
|
|
211
215
|
}
|
|
212
216
|
export interface CellClickEvent {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GridFilterModel, GridRowId, GridSortModel, GridColDef } from '@mui/x-data-grid';
|
|
2
|
-
import
|
|
2
|
+
import { ArchbaseFilterDefinition, ArchbaseActiveFilter } from '../../filters/ArchbaseCompositeFilters.types';
|
|
3
3
|
/**
|
|
4
4
|
* Obtém o ID de uma linha de forma segura
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FloatingPosition, MantineSize, OptionsFilter, ScrollAreaProps } from '@mantine/core';
|
|
2
|
-
import React,
|
|
2
|
+
import { default as React, CSSProperties, ReactNode } from 'react';
|
|
3
3
|
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
4
4
|
export type OptionsResult<O> = {
|
|
5
5
|
options: O[];
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ArchbaseAsyncSelect — select assíncrono com dataSource opcional, suporta paginação/scroll e loading.
|
|
3
|
-
* @status stable
|
|
4
|
-
*/
|
|
5
1
|
import { FloatingPosition, MantineSize, OptionsFilter, ScrollAreaProps } from '@mantine/core';
|
|
6
|
-
import React,
|
|
2
|
+
import { default as React, CSSProperties, ReactNode } from 'react';
|
|
7
3
|
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
8
4
|
export type OptionsResult<O> = {
|
|
9
5
|
options: O[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ActionIconVariant } from '@mantine/core';
|
|
2
|
-
import
|
|
3
|
-
import React,
|
|
2
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
3
|
+
import { default as React, CSSProperties } from 'react';
|
|
4
4
|
export interface ArchbaseAvatarEditProps<T, ID> {
|
|
5
5
|
/** Fonte de dados onde será atribuido o valor do avatar (V1 ou V2) */
|
|
6
6
|
dataSource?: IArchbaseDataSourceBase<T>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MantineSize } from '@mantine/core';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
2
|
+
import { CSSProperties, default as React, ReactNode } from 'react';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
4
|
export interface ArchbaseCheckboxProps<T, ID> {
|
|
6
5
|
/** Fonte de dados onde será atribuido o valor do checkbox (V1 ou V2) */
|
|
7
6
|
dataSource?: IArchbaseDataSourceBase<T>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MantineSize } from '@mantine/core';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
2
|
+
import { CSSProperties, default as React } from 'react';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
4
|
export interface ArchbaseChipProps<T, ID> {
|
|
6
5
|
/** Fonte de dados onde será atribuido o valor do chip (V1 ou V2) */
|
|
7
6
|
dataSource?: IArchbaseDataSourceBase<T>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChipVariant } from '@mantine/core';
|
|
2
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
4
4
|
export interface ArchbaseChipGroupProps<T, ID, O> {
|
|
5
5
|
/** Fonte de dados onde será atribuido o valor do ChipGroup (V1 ou V2) */
|
|
6
6
|
dataSource?: IArchbaseDataSourceBase<T>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ___InputProps, CloseButtonProps, InputStylesNames, InputVariant, InputWrapperStylesNames, MantineSize, PolymorphicFactory, PopoverProps, StylesApiProps } from '@mantine/core';
|
|
2
2
|
import { CalendarBaseProps, CalendarLevel, CalendarStylesNames, DecadeLevelSettings, MonthLevelSettings, YearLevelSettings } from '@mantine/dates';
|
|
3
|
+
import { default as React, CSSProperties } from 'react';
|
|
4
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
3
5
|
type DateValue = Date | null;
|
|
4
|
-
import React, { CSSProperties } from 'react';
|
|
5
|
-
import { type IArchbaseDataSourceBase } from '@archbase/data';
|
|
6
6
|
export declare function assignTime(originalDate: DateValue, resultDate: DateValue): Date;
|
|
7
7
|
export type ArchbaseDatePickerEditStylesNames = CalendarStylesNames | InputStylesNames | InputWrapperStylesNames;
|
|
8
8
|
export interface ArchbaseDatePickerEditProps<T, ID> extends StylesApiProps<ArchbaseDatePickerEditFactory>, __InputProps, CalendarBaseProps, DecadeLevelSettings, YearLevelSettings, MonthLevelSettings, Omit<React.ComponentPropsWithoutRef<'input'>, 'size' | 'value' | 'defaultValue' | 'onChange'> {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MantineSize } from '@mantine/core';
|
|
2
2
|
import { DateValue } from '@mantine/dates';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
+
import { default as React, CSSProperties, ReactNode } from 'react';
|
|
5
4
|
export interface ArchbaseDatePickerRangeProps {
|
|
6
5
|
/** Indicador se o date picker range está desabilitado */
|
|
7
6
|
disabled?: boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DateTimePickerProps } from '@mantine/dates';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
2
|
+
import { CSSProperties, ForwardedRef, default as React } from 'react';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
4
|
type OmittedDateTimePickerProps = Omit<DateTimePickerProps, 'value' | 'onChange'>;
|
|
6
5
|
export interface ArchbaseDateTimePickerEditProps<T, ID> extends OmittedDateTimePickerProps {
|
|
7
6
|
/** Data source where the edit value will be assigned (V1 ou V2) */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MantineSize } from '@mantine/core';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
2
|
+
import { default as React, CSSProperties, ReactNode } from 'react';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
4
|
export interface ArchbaseDateTimePickerRangeProps<T, ID> {
|
|
6
5
|
/** Data source where the range values will be assigned (V1 ou V2) */
|
|
7
6
|
dataSource?: IArchbaseDataSourceBase<T>;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ArchbaseEdit — input texto integrado ao DataSource (v1/v2) com suporte a validação e estado controlado.
|
|
3
|
-
* @status stable
|
|
4
|
-
*/
|
|
5
1
|
import { ActionIconVariant, MantineSize } from '@mantine/core';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
2
|
+
import { CSSProperties, FocusEventHandler, ReactNode, default as React } from 'react';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
9
4
|
export interface ArchbaseEditProps<T, ID> {
|
|
10
5
|
/** Fonte de dados onde será atribuido o valor do edit (V1 ou V2) */
|
|
11
6
|
dataSource?: IArchbaseDataSourceBase<T>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ActionIconVariant, ImageProps } from '@mantine/core';
|
|
2
|
-
import React,
|
|
3
|
-
import
|
|
2
|
+
import { default as React, CSSProperties } from 'react';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
4
4
|
export interface ArchbaseImageEditProps<T, ID> extends ImageProps {
|
|
5
5
|
/** Fonte de dados onde será atribuido o valor do rich edit (V1 ou V2) */
|
|
6
6
|
dataSource?: IArchbaseDataSourceBase<T>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MantineSize } from '@mantine/core';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
2
|
+
import { CSSProperties, default as React } from 'react';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
4
|
export interface ArchbaseJsonEditProps<T, ID> {
|
|
6
5
|
/** Fonte de dados onde será atribuido o valor do json input (V1 ou V2) */
|
|
7
6
|
dataSource?: IArchbaseDataSourceBase<T>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MantineSize } from '@mantine/core';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
2
|
+
import { CSSProperties, ReactNode, default as React } from 'react';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
4
|
export interface ArchbaseLookupEditProps<T, ID, O> {
|
|
6
5
|
/** Fonte de dados onde será atribuido o valor do lookup edit (V1 ou V2) */
|
|
7
6
|
dataSource?: IArchbaseDataSourceBase<T>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MantineSize } from '@mantine/core';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
2
|
+
import { CSSProperties, ReactNode, default as React } from 'react';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
4
|
export interface ArchbaseLookupNumberProps<T, ID, O> {
|
|
6
5
|
/** Fonte de dados onde será atribuido o valor do lookup edit (V1 ou V2) */
|
|
7
6
|
dataSource?: IArchbaseDataSourceBase<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
3
3
|
export interface ArchbaseMarkdownEditProps<T, ID> {
|
|
4
4
|
/** Indicador se o editor recebe o foco automaticamente */
|
|
5
5
|
autoFocus?: boolean;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
import { __InputProps, InputStylesNames, InputVariant, InputWrapperStylesNames, MantineSize, PolymorphicFactory, StylesApiProps } from '@mantine/core';
|
|
6
|
-
import type { CSSProperties } from 'react';
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
1
|
+
import { ___InputProps, InputStylesNames, InputVariant, InputWrapperStylesNames, MantineSize, PolymorphicFactory, StylesApiProps } from '@mantine/core';
|
|
2
|
+
import { CSSProperties, default as React } from 'react';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
9
4
|
export declare enum MaskPattern {
|
|
10
5
|
CNPJ = "00.000.000/0000-00",
|
|
11
6
|
CEP = "00.000-000",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CloseButtonProps, MantineSize, TextInputProps } from '@mantine/core';
|
|
2
2
|
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
3
|
-
import
|
|
4
|
-
import React from 'react';
|
|
3
|
+
import { CSSProperties, default as React } from 'react';
|
|
5
4
|
export interface ArchbaseNumberEditProps<T, ID> extends TextInputProps, Omit<React.ComponentPropsWithoutRef<'input'>, 'size' | 'value' | 'defaultValue' | 'onChange'>, React.RefAttributes<HTMLInputElement> {
|
|
6
5
|
clearable?: boolean;
|
|
7
6
|
clearButtonProps?: CloseButtonProps;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { InputVariant, MantineSize } from '@mantine/core';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
2
|
+
import { CSSProperties, default as React } from 'react';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
4
|
export interface ArchbasePasswordEditProps<T, ID> {
|
|
6
5
|
/** Fonte de dados onde será atribuido o valor do edit (V1 ou V2) */
|
|
7
6
|
dataSource?: IArchbaseDataSourceBase<T>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MantineSize } from '@mantine/core';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
2
|
+
import { CSSProperties, default as React, ReactNode } from 'react';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
4
|
export interface ArchbaseRadioGroupProps<T, ID, O> {
|
|
6
5
|
/** Fonte de dados onde será atribuido o valor do RadioGroup (V1 ou V2) */
|
|
7
6
|
dataSource?: IArchbaseDataSourceBase<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MantineSize } from '@mantine/core';
|
|
2
|
-
import React,
|
|
2
|
+
import { default as React, CSSProperties } from 'react';
|
|
3
3
|
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
4
4
|
export interface ArchbaseRatingProps<T, ID> {
|
|
5
5
|
/** Fonte de dados onde será atribuido o valor do rating (V1 ou V2) */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { default as React, CSSProperties } from 'react';
|
|
2
|
+
import { UploadBeforeHandler, UploadBeforeReturn, UploadInfo } from 'suneditor-react/dist/types/upload';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
4
4
|
export interface ArchbaseRichTextEditProps<T, ID> {
|
|
5
5
|
/** Indicador se o rich editor recebe o foco automaticamente */
|
|
6
6
|
autoFocus?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComboboxItem, CSSProperties, MantineSize, MantineStyleProp, MantineTheme, SelectProps, SelectStylesNames } from '@mantine/core';
|
|
2
|
-
import React,
|
|
2
|
+
import { default as React, ReactNode } from 'react';
|
|
3
3
|
import { ArchbaseDataSource, IArchbaseDataSourceBase } from '@archbase/data';
|
|
4
4
|
export interface SelectItem extends ComboboxItem {
|
|
5
5
|
selected?: boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MantineColor, MantineSize } from '@mantine/core';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
2
|
+
import { CSSProperties, default as React } from 'react';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
4
|
export interface ArchbaseSwitchProps<T, ID> {
|
|
6
5
|
/** Fonte de dados onde será atribuido o valor do switch (V1 ou V2) */
|
|
7
6
|
dataSource?: IArchbaseDataSourceBase<T>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MantineSize } from '@mantine/core';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
2
|
+
import { CSSProperties, default as React } from 'react';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
4
|
export interface ArchbaseTextAreaProps<T, ID> {
|
|
6
5
|
/** Fonte de dados onde será atribuido o valor do textarea (V1 ou V2) */
|
|
7
6
|
dataSource?: IArchbaseDataSourceBase<T>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ActionIconVariant, MantineSize } from '@mantine/core';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import type { IArchbaseDataSourceBase } from '@archbase/data';
|
|
2
|
+
import { CSSProperties, ReactNode, default as React } from 'react';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
5
4
|
export interface ArchbaseTimeEditProps<T, ID> {
|
|
6
5
|
/** Fonte de dados onde será atribuido o valor do edit (V1 ou V2) */
|
|
7
6
|
dataSource?: IArchbaseDataSourceBase<T>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MantineSize } from '@mantine/core';
|
|
2
2
|
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
3
3
|
import { ArchbaseTreeNode } from '../list';
|
|
4
|
-
import React,
|
|
4
|
+
import { default as React, ReactNode } from 'react';
|
|
5
5
|
export interface ArchbaseTreeSelectProps<T, ID> {
|
|
6
6
|
/** Fonte de dados onde será atribuido o valor selecionado (V1 ou V2) */
|
|
7
7
|
dataSource?: IArchbaseDataSourceBase<T>;
|
package/dist/editors/index.d.ts
CHANGED
|
@@ -70,11 +70,11 @@ export { ArchbaseTreeSelect } from './ArchbaseTreeSelect';
|
|
|
70
70
|
export type { ArchbaseTreeSelectProps } from './ArchbaseTreeSelect';
|
|
71
71
|
export { ArchbaseOperatingHoursEditor } from './ArchbaseOperationHoursEditor';
|
|
72
72
|
export type { ArchbaseOperatingHoursEditorProps } from './ArchbaseOperationHoursEditor';
|
|
73
|
-
export { ArchbaseCountdownProgress } from
|
|
74
|
-
export type { ArchbaseCountdownProgressProps } from
|
|
75
|
-
export { ArchbaseFileAttachment } from
|
|
76
|
-
export { ArchbaseCronExpressionEdit } from
|
|
77
|
-
export type { ArchbaseFileAttachmentProps, Attachment } from
|
|
73
|
+
export { ArchbaseCountdownProgress } from './ArchbaseCountdownProgress';
|
|
74
|
+
export type { ArchbaseCountdownProgressProps } from './ArchbaseCountdownProgress';
|
|
75
|
+
export { ArchbaseFileAttachment } from './ArchbaseFileAttachment';
|
|
76
|
+
export { ArchbaseCronExpressionEdit } from './ArchbaseCronExpressionEdit';
|
|
77
|
+
export type { ArchbaseFileAttachmentProps, Attachment } from './ArchbaseFileAttachment';
|
|
78
78
|
export { ArchbaseTimeEdit } from './ArchbaseTimeEdit';
|
|
79
79
|
export type { ArchbaseTimeEditProps } from './ArchbaseTimeEdit';
|
|
80
80
|
export { ArchbaseAvatarEdit } from './ArchbaseAvatarEdit';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ArchbaseActiveFilter, ArchbaseFilterOperator, FilterValue, ApiFilterFormat } from './ArchbaseCompositeFilters.types';
|
|
2
2
|
/**
|
|
3
3
|
* Converte um filtro ativo para o formato RSQL
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ArchbaseActiveFilter, UseArchbaseFilterHistoryOptions, UseArchbaseFilterHistoryReturn } from '../ArchbaseCompositeFilters.types';
|
|
2
2
|
/**
|
|
3
3
|
* Hook para gerenciar histórico de filtros aplicados
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { UseArchbaseFilterPresetsOptions, UseArchbaseFilterPresetsReturn } from '../ArchbaseCompositeFilters.types';
|
|
2
2
|
/**
|
|
3
3
|
* Hook para gerenciar presets de filtros salvos no localStorage
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ArchbaseActiveFilter, ArchbaseFilterDefinition, UseArchbaseFiltersOptions, UseArchbaseFiltersReturn } from '../ArchbaseCompositeFilters.types';
|
|
2
2
|
/**
|
|
3
3
|
* Hook principal para gerenciamento de filtros com conversão RSQL
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ArchbaseActiveFilter, QuickFilterPreset, UseArchbaseQuickFiltersReturn } from '../ArchbaseCompositeFilters.types';
|
|
2
2
|
/**
|
|
3
3
|
* Hook para gerenciar filtros rápidos predefinidos
|
|
4
4
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ArchbaseListContextValue } from
|
|
1
|
+
import { ArchbaseListContextValue } from '../list';
|
|
2
2
|
export declare function useArchbaseListContext<T, ID>(): ArchbaseListContextValue<T, ID>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { NavigateOptions } from
|
|
2
|
-
import { URLSearchParamsInit } from
|
|
1
|
+
import { NavigateOptions } from 'react-router';
|
|
2
|
+
import { URLSearchParamsInit } from 'react-router-dom';
|
|
3
3
|
export declare const useArchbaseNavigateParams: () => (pathname: string, options?: NavigateOptions, params?: URLSearchParamsInit) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
2
|
export declare const useArchbaseVisible: <T extends Element, V = number>(cb?: (vi: number) => V, option?: Partial<IntersectionObserverInit>) => [MutableRefObject<T | null>, V];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,
|
|
1
|
+
import { default as React, CSSProperties, FocusEventHandler } from 'react';
|
|
2
2
|
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
3
3
|
export interface ArchbaseImageProps<T, ID> {
|
|
4
4
|
/** Fonte de dados onde será atribuido o valor do rating (V1 ou V2) */
|