@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.
Files changed (127) hide show
  1. package/dist/buttons/ArchbaseActionButtons.d.ts +1 -1
  2. package/dist/charts/vis-timeline/ArchbaseVisTimeline.d.ts +1 -1
  3. package/dist/charts/vis-timeline/ArchbaseVisTimeline.types.d.ts +1 -1
  4. package/dist/charts/vis-timeline/utils/timelineOptions.d.ts +1 -1
  5. package/dist/datagrid/components/index.d.ts +2 -2
  6. package/dist/datagrid/components/pagination/grid-pagination.d.ts +1 -1
  7. package/dist/datagrid/components/toolbar/global-search-input.d.ts +1 -1
  8. package/dist/datagrid/components/toolbar/grid-toolbar.d.ts +1 -1
  9. package/dist/datagrid/hooks/use-grid-details-panel.d.ts +2 -2
  10. package/dist/datagrid/main/archbase-data-grid-pagination.d.ts +1 -1
  11. package/dist/datagrid/main/archbase-data-grid-toolbar.d.ts +1 -1
  12. package/dist/datagrid/main/archbase-data-grid-types.d.ts +7 -3
  13. package/dist/datagrid/main/archbase-data-grid-utils.d.ts +1 -1
  14. package/dist/datagrid/main/archbase-detail-panel-component.d.ts +1 -1
  15. package/dist/datagrid/main/archbase-expand-button.d.ts +1 -1
  16. package/dist/datagrid/main/archbase-grid-popover.d.ts +1 -1
  17. package/dist/datagrid/modals/print-data.d.ts +0 -1
  18. package/dist/editors/ArchbaseAsyncMultiSelect.d.ts +1 -1
  19. package/dist/editors/ArchbaseAsyncSelect.context.d.ts +1 -1
  20. package/dist/editors/ArchbaseAsyncSelect.d.ts +1 -5
  21. package/dist/editors/ArchbaseAvatarEdit.d.ts +2 -2
  22. package/dist/editors/ArchbaseCheckbox.d.ts +2 -3
  23. package/dist/editors/ArchbaseChip.d.ts +2 -3
  24. package/dist/editors/ArchbaseChipGroup.d.ts +1 -1
  25. package/dist/editors/ArchbaseDatePickerEdit.d.ts +3 -3
  26. package/dist/editors/ArchbaseDatePickerRange.d.ts +1 -2
  27. package/dist/editors/ArchbaseDateTimePickerEdit.d.ts +2 -3
  28. package/dist/editors/ArchbaseDateTimePickerRange.d.ts +2 -3
  29. package/dist/editors/ArchbaseEdit.d.ts +2 -7
  30. package/dist/editors/ArchbaseFileAttachment.d.ts +1 -1
  31. package/dist/editors/ArchbaseImageEdit.d.ts +2 -2
  32. package/dist/editors/ArchbaseJsonEdit.d.ts +2 -3
  33. package/dist/editors/ArchbaseLookupEdit.d.ts +2 -3
  34. package/dist/editors/ArchbaseLookupNumber.d.ts +2 -3
  35. package/dist/editors/ArchbaseMarkdownEdit.d.ts +1 -1
  36. package/dist/editors/ArchbaseMaskEdit.d.ts +3 -8
  37. package/dist/editors/ArchbaseNumberEdit.d.ts +1 -2
  38. package/dist/editors/ArchbasePasswordEdit.d.ts +2 -3
  39. package/dist/editors/ArchbaseRadioGroup.d.ts +2 -3
  40. package/dist/editors/ArchbaseRating.d.ts +1 -1
  41. package/dist/editors/ArchbaseRichTextEdit.d.ts +3 -3
  42. package/dist/editors/ArchbaseSelect.context.d.ts +1 -1
  43. package/dist/editors/ArchbaseSelect.d.ts +1 -1
  44. package/dist/editors/ArchbaseSwitch.d.ts +2 -3
  45. package/dist/editors/ArchbaseTextArea.d.ts +2 -3
  46. package/dist/editors/ArchbaseTimeEdit.d.ts +2 -3
  47. package/dist/editors/ArchbaseTimeRangeSelector.d.ts +1 -1
  48. package/dist/editors/ArchbaseTreeSelect.d.ts +1 -1
  49. package/dist/editors/index.d.ts +5 -5
  50. package/dist/filters/ArchbaseCompositeFilters.d.ts +1 -1
  51. package/dist/filters/ArchbaseCompositeFilters.types.d.ts +1 -1
  52. package/dist/filters/ArchbaseCompositeFilters.utils.d.ts +1 -1
  53. package/dist/filters/components/FilterPill.d.ts +1 -1
  54. package/dist/filters/hooks/useArchbaseFilterHistory.d.ts +1 -1
  55. package/dist/filters/hooks/useArchbaseFilterPresets.d.ts +1 -1
  56. package/dist/filters/hooks/useArchbaseFilters.d.ts +1 -1
  57. package/dist/filters/hooks/useArchbaseQuickFilters.d.ts +1 -1
  58. package/dist/hooks/useArchbaseListContext.d.ts +1 -1
  59. package/dist/hooks/useArchbaseNavigateParams.d.ts +2 -2
  60. package/dist/hooks/useArchbaseVisible.d.ts +1 -1
  61. package/dist/image/ArchbaseImage.d.ts +1 -1
  62. package/dist/image/editor/components/BasicFilters/BasicFilter.d.ts +1 -1
  63. package/dist/image/editor/components/CropprWrapper/ArchbaseCropperWrapper.d.ts +1 -2
  64. package/dist/image/editor/components/EditImage/ArchbaseEditImage.d.ts +1 -2
  65. package/dist/image/editor/components/Input/Input.d.ts +1 -1
  66. package/dist/image/editor/components/Tab/Tab.d.ts +1 -2
  67. package/dist/image/editor/functions/croppr/core.d.ts +1 -5
  68. package/dist/image/editor/functions/croppr/croppr.d.ts +1 -10
  69. package/dist/image/editor/functions/croppr/index.d.ts +1 -1
  70. package/dist/image/editor/index.d.ts +1 -2
  71. package/dist/index.d.ts +0 -3
  72. package/dist/index.js +4468 -4590
  73. package/dist/jsonschema/JsonSchemaEditor/ArchbaseJsonSchemaEditor.context.d.ts +1 -1
  74. package/dist/list/ArchbaseList.context.d.ts +1 -1
  75. package/dist/list/ArchbaseList.d.ts +1 -1
  76. package/dist/list/index.d.ts +1 -1
  77. package/dist/list/treeview/ArchbaseTreeView.d.ts +1 -1
  78. package/dist/list/treeview/ArchbaseTreeViewItem.d.ts +1 -1
  79. package/dist/list-view/ArchbaseListViewTable.d.ts +1 -1
  80. package/dist/markdown/ArchbaseMarkdown.d.ts +1 -1
  81. package/dist/markdown/ArchbaseMarkdown.types.d.ts +2 -2
  82. package/dist/markdown/components/CodeBlock.d.ts +2 -2
  83. package/dist/markdown/components/LinkRenderer.d.ts +1 -1
  84. package/dist/masonry/ArchbaseMasonry.context.d.ts +1 -1
  85. package/dist/masonry/ArchbaseMasonry.d.ts +1 -5
  86. package/dist/masonry/index.d.ts +1 -1
  87. package/dist/notification/ArchbaseAlert.d.ts +1 -5
  88. package/dist/onboarding/ArchbaseOnboardingTour.d.ts +1 -1
  89. package/dist/printer/ArchbaseThermalPrinter.d.ts +1 -1
  90. package/dist/printer/ArchbaseThermalPrinter.types.d.ts +1 -1
  91. package/dist/printer/utils/escpos.d.ts +1 -1
  92. package/dist/theme-editor/ArchbaseThemeEditor.d.ts +1 -1
  93. package/dist/theme-editor/ArchbaseThemeEditor.types.d.ts +2 -2
  94. package/dist/theme-editor/utils/themeExport.d.ts +2 -2
  95. package/dist/themes/ArchbaseThemeEditor.d.ts +2 -3
  96. package/dist/video/ArchbaseVideoPlayer.d.ts +1 -1
  97. package/dist/video/ArchbaseVideoPlayer.types.d.ts +1 -1
  98. package/dist/video/hooks/useVideoPlayer.d.ts +5 -5
  99. package/dist/viewers/ArchbasePDFViewer.annotations.d.ts +1 -1
  100. package/dist/viewers/ArchbasePDFViewer.d.ts +1 -1
  101. package/dist/viewers/ArchbasePDFViewer.toolbar.d.ts +1 -1
  102. package/dist/viewers/ArchbasePDFViewer.types.d.ts +2 -2
  103. package/dist/viewers/file-preview/ArchbaseFilePreviewer.d.ts +1 -1
  104. package/dist/viewers/file-preview/ArchbaseFilePreviewer.types.d.ts +1 -1
  105. package/dist/viewers/file-preview/utils/fileTypeDetector.d.ts +1 -1
  106. package/package.json +21 -21
  107. package/src/datagrid/main/archbase-data-grid-types.tsx +5 -0
  108. package/src/datagrid/main/archbase-data-grid.tsx +10 -3
  109. package/src/index.ts +0 -1
  110. package/dist/archbase-components-3.0.0.tgz +0 -0
  111. package/dist/debug/index.d.ts +0 -4
  112. package/dist/debug/jsonpathpicker/ArchbaseJsonPathPicker.d.ts +0 -37
  113. package/dist/debug/jsonpathpicker/index.d.ts +0 -1
  114. package/dist/debug/jsonview/ArchbaseJsonViewDataRenderer.d.ts +0 -34
  115. package/dist/debug/jsonview/ArchbaseJsonViewDataTypeDetection.d.ts +0 -8
  116. package/dist/debug/jsonview/index.d.ts +0 -11
  117. package/dist/debug/objectinspector/ArchbaseDebugInspector.d.ts +0 -23
  118. package/dist/debug/objectinspector/ArchbaseFloatingWindow.d.ts +0 -24
  119. package/dist/debug/objectinspector/ArchbaseObjectInspector.d.ts +0 -6
  120. package/dist/debug/objectinspector/index.d.ts +0 -3
  121. package/dist/spreadsheet/ArchbaseSpreadsheetImport.d.ts +0 -4
  122. package/dist/spreadsheet/ArchbaseSpreadsheetImport.types.d.ts +0 -65
  123. package/dist/spreadsheet/index.d.ts +0 -2
  124. package/src/debug/jsonview/styles.module.css.d.ts +0 -4
  125. package/src/spreadsheet/ArchbaseSpreadsheetImport.tsx +0 -223
  126. package/src/spreadsheet/ArchbaseSpreadsheetImport.types.ts +0 -66
  127. package/src/spreadsheet/index.ts +0 -10
@@ -1,5 +1,5 @@
1
1
  import { SetNestedObjectValueOperation } from '@archbase/core';
2
- import React from 'react';
2
+ import { default as React } from 'react';
3
3
  export interface ArchbaseJsonSchemaEditorContextValue {
4
4
  handleChange?: (path: string, value: any, operation?: SetNestedObjectValueOperation) => void;
5
5
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { IArchbaseDataSourceBase } from '@archbase/data';
3
3
  export interface ArchbaseListContextValue<T, ID> {
4
4
  /** Indica se a lista esta desabilitada */
@@ -1,4 +1,4 @@
1
- import React, { FocusEventHandler } from 'react';
1
+ import { default as React, FocusEventHandler } from 'react';
2
2
  import { IArchbaseDataSourceBase } from '@archbase/data';
3
3
  export interface ArchbaseListCustomItemProps<T, _ID> {
4
4
  /** Chave */
@@ -1,4 +1,4 @@
1
- import ArchbaseListContext from './ArchbaseList.context';
1
+ import { default as ArchbaseListContext } from './ArchbaseList.context';
2
2
  export { ArchbaseList } from './ArchbaseList';
3
3
  export type { ArchbaseListProps, ArchbaseListCustomItemProps } from './ArchbaseList';
4
4
  export { ArchbaseListItem } from './ArchbaseListItem';
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  import { ArchbaseTreeNode } from './ArchbaseTreeView.types';
3
3
  export interface ArchbaseTreeViewProps {
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  import { ArchbaseTreeNode, ArchbaseTreeViewOptions } from './ArchbaseTreeView.types';
3
3
  export interface ArchbaseTreeViewItemProps {
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  export interface ArchbaseListViewColumn<T = any> {
3
3
  /**
4
4
  * Identificador único da coluna (key)
@@ -1,4 +1,4 @@
1
- import type { ArchbaseMarkdownProps } from './ArchbaseMarkdown.types';
1
+ import { ArchbaseMarkdownProps } from './ArchbaseMarkdown.types';
2
2
  /**
3
3
  * Componente ArchbaseMarkdown - Renderização de Markdown em React
4
4
  *
@@ -1,5 +1,5 @@
1
- import type { CSSProperties, ReactNode, ElementType } from 'react';
2
- import type { PluggableList } from 'unified';
1
+ import { CSSProperties, ReactNode, ElementType } from 'react';
2
+ import { PluggableList } from 'unified';
3
3
  /**
4
4
  * Estilo de syntax highlighting para blocos de código
5
5
  */
@@ -1,5 +1,5 @@
1
- import type { ReactNode } from 'react';
2
- import type { CodeBlockProps } from '../ArchbaseMarkdown.types';
1
+ import { ReactNode } from 'react';
2
+ import { CodeBlockProps } from '../ArchbaseMarkdown.types';
3
3
  /**
4
4
  * Componente para renderização de blocos de código
5
5
  *
@@ -1,4 +1,4 @@
1
- import type { LinkRendererProps } from '../ArchbaseMarkdown.types';
1
+ import { LinkRendererProps } from '../ArchbaseMarkdown.types';
2
2
  /**
3
3
  * Renderizador de links para Markdown
4
4
  *
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { IArchbaseDataSourceBase } from '@archbase/data';
3
3
  export interface ArchbaseMasonryContextValue<T, ID> {
4
4
  /** Fonte de dados do masonry (V1 ou V2) */
@@ -1,8 +1,4 @@
1
- /**
2
- * ArchbaseMasonry — layout masonry responsivo com provider de contexto.
3
- * @status stable
4
- */
5
- import React, { ReactNode } from 'react';
1
+ import { default as React, ReactNode } from 'react';
6
2
  export interface ArchbaseMasonryCustomItemProps<T, _ID> {
7
3
  /** Chave */
8
4
  key: string;
@@ -1,4 +1,4 @@
1
- import ArchbaseMasonryContext, { ArchbaseMasonryProvider } from './ArchbaseMasonry.context';
1
+ import { default as ArchbaseMasonryContext, ArchbaseMasonryProvider } from './ArchbaseMasonry.context';
2
2
  export { ArchbaseMasonry, ArchbaseMasonryResponsive } from './ArchbaseMasonry';
3
3
  export type { ArchbaseMasonryCustomItemProps } from './ArchbaseMasonry';
4
4
  export type { ArchbaseMasonryContextValue } from './ArchbaseMasonry.context';
@@ -1,9 +1,5 @@
1
- /**
2
- * ArchbaseAlert — wrapper de alerta (Mantine Alert) para feedback rápido.
3
- * @status stable
4
- */
5
1
  import { AlertProps, AlertVariant, MantineColor } from '@mantine/core';
6
- import React from 'react';
2
+ import { default as React } from 'react';
7
3
  export interface ArchbaseAlertProps extends AlertProps {
8
4
  title?: React.ReactNode;
9
5
  variant?: AlertVariant | string;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import type { OnboardingTourStep } from '@gfazioli/mantine-onboarding-tour';
2
+ import { OnboardingTourStep } from '@gfazioli/mantine-onboarding-tour';
3
3
  export interface ArchbaseOnboardingTourStep {
4
4
  /**
5
5
  * ID único do step
@@ -1,4 +1,4 @@
1
- import type { ArchbaseThermalPrinterProps, ReceiptData } from './ArchbaseThermalPrinter.types';
1
+ import { ArchbaseThermalPrinterProps, ReceiptData } from './ArchbaseThermalPrinter.types';
2
2
  /**
3
3
  * Componente ArchbaseThermalPrinter - Impressão térmica ESC/POS
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CSSProperties, ReactNode } from 'react';
1
+ import { CSSProperties, ReactNode } from 'react';
2
2
  /**
3
3
  * Larguras de papel em mm
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { PaperWidth, PrintDensity, CutMode, TextAlign, FontSize, BarStyle } from '../ArchbaseThermalPrinter.types';
1
+ import { PaperWidth, PrintDensity, CutMode, TextAlign, FontSize, BarStyle } from '../ArchbaseThermalPrinter.types';
2
2
  /**
3
3
  * Comandos ESC/POS básicos
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { ArchbaseThemeEditorProps } from './ArchbaseThemeEditor.types';
1
+ import { ArchbaseThemeEditorProps } from './ArchbaseThemeEditor.types';
2
2
  /**
3
3
  * Componente ArchbaseThemeEditor - Editor de temas Mantine
4
4
  *
@@ -1,5 +1,5 @@
1
- import type { CSSProperties, ReactNode } from 'react';
2
- import type { MantineTheme } from '@mantine/core';
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ import { MantineTheme } from '@mantine/core';
3
3
  /**
4
4
  * Formato de exportação do tema
5
5
  */
@@ -1,5 +1,5 @@
1
- import type { MantineTheme } from '@mantine/core';
2
- import type { ThemeExportFormat } from '../ArchbaseThemeEditor.types';
1
+ import { MantineTheme } from '@mantine/core';
2
+ import { ThemeExportFormat } from '../ArchbaseThemeEditor.types';
3
3
  /**
4
4
  * Presets de cores
5
5
  */
@@ -1,7 +1,6 @@
1
1
  import { MantineSize } from '@mantine/core';
2
- import type { CSSProperties, FocusEventHandler, ReactNode } from 'react';
3
- import React from 'react';
4
- import type { IArchbaseDataSourceBase } from '@archbase/data';
2
+ import { CSSProperties, FocusEventHandler, ReactNode, default as React } from 'react';
3
+ import { IArchbaseDataSourceBase } from '@archbase/data';
5
4
  export interface ArchbaseThemeEditorProps<T, ID> {
6
5
  /** Fonte de dados onde será atribuido o valor do edit (V1 ou V2) */
7
6
  dataSource?: IArchbaseDataSourceBase<T>;
@@ -1,4 +1,4 @@
1
- import type { ArchbaseVideoPlayerProps } from './ArchbaseVideoPlayer.types';
1
+ import { ArchbaseVideoPlayerProps } from './ArchbaseVideoPlayer.types';
2
2
  /**
3
3
  * Componente ArchbaseVideoPlayer - Player de vídeo completo
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CSSProperties, ReactNode } from 'react';
1
+ import { CSSProperties, ReactNode } from 'react';
2
2
  /**
3
3
  * Formatos de vídeo suportados
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { VideoSource, PlayerState, BufferState, VideoQuality, TextTrack, AutoplayBehavior } from '../ArchbaseVideoPlayer.types';
1
+ import { VideoSource, PlayerState, BufferState, VideoQuality, TextTrack, AutoplayBehavior } from '../ArchbaseVideoPlayer.types';
2
2
  interface UseVideoPlayerOptions {
3
3
  src: VideoSource | VideoSource[];
4
4
  autoplay?: AutoplayBehavior;
@@ -15,8 +15,8 @@ interface UseVideoPlayerOptions {
15
15
  * Hook customizado para gerenciar estado e lógica do player de vídeo
16
16
  */
17
17
  export declare function useVideoPlayer({ src, autoplay, loop, muted, volume, startTime, qualities, textTracks, defaultSubtitles, preload, }: UseVideoPlayerOptions): {
18
- videoRef: import("react").RefObject<HTMLVideoElement>;
19
- containerRef: import("react").RefObject<HTMLDivElement>;
18
+ videoRef: import('react').RefObject<HTMLVideoElement>;
19
+ containerRef: import('react').RefObject<HTMLDivElement>;
20
20
  playerState: PlayerState;
21
21
  isPlaying: boolean;
22
22
  currentTime: number;
@@ -42,8 +42,8 @@ export declare function useVideoPlayer({ src, autoplay, loop, muted, volume, sta
42
42
  setPlaybackRate: (rate: number) => void;
43
43
  toggleFullscreen: () => void;
44
44
  togglePiP: () => void;
45
- setSelectedQuality: import("react").Dispatch<import("react").SetStateAction<string>>;
46
- setSubtitlesEnabled: import("react").Dispatch<import("react").SetStateAction<boolean>>;
45
+ setSelectedQuality: import('react').Dispatch<import('react').SetStateAction<string>>;
46
+ setSubtitlesEnabled: import('react').Dispatch<import('react').SetStateAction<boolean>>;
47
47
  handleLoadStart: () => void;
48
48
  handleLoadedMetadata: () => void;
49
49
  handleCanPlay: () => void;
@@ -1,4 +1,4 @@
1
- import type { PDFAnnotation } from './ArchbasePDFViewer.types';
1
+ import { PDFAnnotation } from './ArchbasePDFViewer.types';
2
2
  interface ArchbasePDFAnnotationsProps {
3
3
  annotations: PDFAnnotation[];
4
4
  onAnnotationAdd?: (annotation: PDFAnnotation) => void;
@@ -1,2 +1,2 @@
1
- import type { ArchbasePDFViewerProps } from './ArchbasePDFViewer.types';
1
+ import { ArchbasePDFViewerProps } from './ArchbasePDFViewer.types';
2
2
  export declare function ArchbasePDFViewer<T, ID>({ dataSource, dataField, file: fileProp, width, height, page: initialPage, scale: initialScale, rotation: initialRotation, toolbar, textLayer, renderMode, toolbarPosition, onPageChange, onZoomChange, onLoadSuccess, onLoadError, annotations, onAnnotationAdd, onAnnotationRemove, onAnnotationUpdate, enableAnnotations, showAnnotationsList, disabled, loading, error, style, className, }: ArchbasePDFViewerProps<T, ID>): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { PDFToolbarActions } from './ArchbasePDFViewer.types';
1
+ import { PDFToolbarActions } from './ArchbasePDFViewer.types';
2
2
  interface ArchbasePDFViewerToolbarProps {
3
3
  currentPage: number;
4
4
  totalPages: number;
@@ -1,5 +1,5 @@
1
- import type { CSSProperties, ReactNode } from 'react';
2
- import type { IArchbaseDataSourceBase } from '@archbase/data';
1
+ import { CSSProperties, ReactNode } from 'react';
2
+ import { IArchbaseDataSourceBase } from '@archbase/data';
3
3
  export type PDFSource = string | Uint8Array | {
4
4
  url: string;
5
5
  } | {
@@ -1,4 +1,4 @@
1
- import type { ArchbaseFilePreviewerProps } from './ArchbaseFilePreviewer.types';
1
+ import { ArchbaseFilePreviewerProps } from './ArchbaseFilePreviewer.types';
2
2
  /**
3
3
  * Componente ArchbaseFilePreviewer - Preview de múltiplos tipos de arquivo
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CSSProperties, ReactNode } from 'react';
1
+ import { CSSProperties, ReactNode } from 'react';
2
2
  /**
3
3
  * Tipos de arquivo suportados para preview
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { FileType, FileSource } from '../ArchbaseFilePreviewer.types';
1
+ import { FileType, FileSource } from '../ArchbaseFilePreviewer.types';
2
2
  /**
3
3
  * Detecta o tipo de arquivo baseado na extensão
4
4
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archbase/components",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "UI Components for Archbase React v3 - Form editors, data visualization, and business components",
5
5
  "author": "Edson Martins <edsonmartins2005@gmail.com>",
6
6
  "license": "MIT",
@@ -34,10 +34,14 @@
34
34
  "@mantine/modals": "8.3.12",
35
35
  "@mantine/notifications": "8.3.12",
36
36
  "@tabler/icons-react": "^3.26.0",
37
- "react": "^18.3.0 || ^19.0.0",
38
- "react-dom": "^18.3.0 || ^19.0.0"
37
+ "react": "^18.3.0 || ^19.2.0",
38
+ "react-dom": "^18.3.0 || ^19.2.0"
39
39
  },
40
40
  "dependencies": {
41
+ "@archbase/core": "3.0.2",
42
+ "@archbase/data": "3.0.2",
43
+ "@archbase/layout": "3.0.2",
44
+ "@datou/react-vis-timeline": "^1.4.0",
41
45
  "@gfazioli/mantine-list-view-table": "^1.1.9",
42
46
  "@gfazioli/mantine-onboarding-tour": "^2.6.5",
43
47
  "@mui/x-data-grid": "^7.28.3",
@@ -71,6 +75,7 @@
71
75
  "jwt-decode": "^3.1.2",
72
76
  "libphonenumber-js": "^1.11.3",
73
77
  "lodash": "^4.17.21",
78
+ "markdown-it": "^14.1.0",
74
79
  "outlayer": "^2.1.1",
75
80
  "overlayscrollbars": "^2.8.3",
76
81
  "pdfjs-dist": "^4.0.379",
@@ -83,6 +88,7 @@
83
88
  "react-color": "^2.19.3",
84
89
  "react-date-object": "^2.1.8",
85
90
  "react-easy-crop": "^4.7.4",
91
+ "react-file-previewer": "^0.4.2",
86
92
  "react-final-form": "^6.5.9",
87
93
  "react-frame-component": "^5.2.7",
88
94
  "react-grid-system": "^8.2.0",
@@ -92,6 +98,8 @@
92
98
  "react-inspector": "^6.0.2",
93
99
  "react-intersection-observer": "^9.10.3",
94
100
  "react-konva": "^18.2.10",
101
+ "react-markdown": "^9.0.1",
102
+ "react-markdown-editor-lite": "^1.3.5",
95
103
  "react-masonry-component": "^6.3.0",
96
104
  "react-modal": "^3.16.1",
97
105
  "react-multi-date-picker": "4.1.2",
@@ -99,20 +107,13 @@
99
107
  "react-router": "^6.22.0",
100
108
  "react-router-dom": "^6.22.0",
101
109
  "react-speech-recognition": "^3.10.0",
102
- "react-spreadsheet-import": "^4.7.1",
110
+ "react-thermal-printer": "^0.22.0",
103
111
  "react-to-print": "^2.15.1",
104
112
  "react-use-audio-player": "^2.2.0",
105
113
  "react-video-js-player": "^1.1.1",
106
- "react-markdown": "^9.0.1",
107
- "remark-gfm": "^4.0.0",
108
- "rehype-raw": "^7.0.0",
109
114
  "rehype-external-links": "^3.0.0",
110
- "react-thermal-printer": "^0.22.0",
111
- "react-file-previewer": "^0.4.2",
112
- "react-markdown-editor-lite": "^1.3.5",
113
- "markdown-it": "^14.1.0",
114
- "@datou/react-vis-timeline": "^1.4.0",
115
- "vis-timeline": "^7.7.3",
115
+ "rehype-raw": "^7.0.0",
116
+ "remark-gfm": "^4.0.0",
116
117
  "suneditor": "^2.46.3",
117
118
  "suneditor-react": "^3.6.1",
118
119
  "use-debounce": "^10.0.1",
@@ -120,23 +121,22 @@
120
121
  "uuid": "^9.0.1",
121
122
  "validator": "^13.12.0",
122
123
  "video.js": "^8.10.0",
123
- "xlsx": "^0.18.5",
124
- "@archbase/core": "3.0.0",
125
- "@archbase/data": "3.0.0",
126
- "@archbase/layout": "3.0.0"
124
+ "vis-timeline": "^7.7.3",
125
+ "xlsx": "^0.18.5"
127
126
  },
128
127
  "devDependencies": {
129
128
  "@types/d3": "^7.4.3",
130
129
  "@types/lodash": "^4.17.13",
131
130
  "@types/node": "^22.16.1",
132
- "@types/react": "^19.0.4",
131
+ "@types/react": "^19.0.6",
133
132
  "@types/react-dom": "^19.0.2",
134
133
  "@vitejs/plugin-react": "^4.3.4",
135
- "react": "^19.0.0",
136
- "react-dom": "^19.0.0",
134
+ "react": "^19.2.3",
135
+ "react-dom": "^19.2.3",
137
136
  "sass-embedded": "^1.80.7",
138
137
  "typescript": "~5.7.2",
139
138
  "vite": "^6.0.3",
139
+ "vite-plugin-dts": "^4.5.4",
140
140
  "vitest": "^2.1.8"
141
141
  },
142
142
  "publishConfig": {
@@ -144,7 +144,7 @@
144
144
  },
145
145
  "scripts": {
146
146
  "dev": "NODE_OPTIONS=\"--max-old-space-size=16384\" vite build --watch",
147
- "build": "NODE_OPTIONS=\"--max-old-space-size=16384\" vite build && NODE_OPTIONS=\"--max-old-space-size=16384\" tsc --emitDeclarationOnly || true",
147
+ "build": "NODE_OPTIONS=\"--max-old-space-size=16384\" vite build",
148
148
  "test": "vitest run",
149
149
  "test:watch": "vitest",
150
150
  "test:coverage": "vitest run --coverage",
@@ -42,6 +42,10 @@ export interface ArchbaseDataGridRef<T = any> {
42
42
  collapseRow: (rowId: GridRowId) => void;
43
43
  collapseAllRows: () => void;
44
44
  getExpandedRows: () => GridRowId[];
45
+ /**
46
+ * Obtém o modelo de filtro atual
47
+ */
48
+ getFilterModel: () => GridFilterModel;
45
49
  }
46
50
 
47
51
  // Props para o Toolbar
@@ -263,6 +267,7 @@ export interface ArchbaseDataGridProps<T extends object = any, ID = any> {
263
267
  onCellDoubleClick?: (params: { id: any; columnName: string; rowData: T }) => void;
264
268
  onExport?: (callback: () => void) => void;
265
269
  onPrint?: (callback: () => void) => void;
270
+ onFilterModelChange?: (filterModel: any) => void;
266
271
 
267
272
  // Referência para o grid
268
273
  gridRef?: RefObject<ArchbaseDataGridRef<T>> | MutableRefObject<ArchbaseDataGridRef<T> | null>;
@@ -162,6 +162,7 @@ function ArchbaseDataGrid<T extends object = any, ID = any>(props: ArchbaseDataG
162
162
  paginationLabels,
163
163
  onExport,
164
164
  onPrint,
165
+ onFilterModelChange,
165
166
  showProgressBars = true,
166
167
  variant = 'filled',
167
168
  fontSize,
@@ -567,6 +568,11 @@ function ArchbaseDataGrid<T extends object = any, ID = any>(props: ArchbaseDataG
567
568
  // Atualizar o estado do filtro primeiro
568
569
  setFilterModel(newFilterModel)
569
570
 
571
+ // Notificar callback externo (parent component) se fornecido
572
+ if (onFilterModelChange) {
573
+ onFilterModelChange(newFilterModel)
574
+ }
575
+
570
576
  // Certificar que estamos usando o valor mais recente
571
577
  console.log('[FILTER] Aplicando filtro:', newFilterModel)
572
578
 
@@ -727,9 +733,10 @@ function ArchbaseDataGrid<T extends object = any, ID = any>(props: ArchbaseDataG
727
733
  expandRow: (rowId: GridRowId) => expandDetailPanel(rowId),
728
734
  collapseRow: (rowId: GridRowId) => closeDetailPanel(rowId),
729
735
  collapseAllRows: closeAllDetailPanels,
730
- getExpandedRows: () => Array.from(expandedRowIds)
736
+ getExpandedRows: () => Array.from(expandedRowIds),
737
+ getFilterModel: () => filterModel
731
738
  }),
732
- [selectedRows, expandedRowIds, expandDetailPanel, closeDetailPanel, closeAllDetailPanels]
739
+ [selectedRows, expandedRowIds, expandDetailPanel, closeDetailPanel, closeAllDetailPanels, filterModel]
733
740
  )
734
741
 
735
742
  // Configurar estilos personalizados para o grid
@@ -868,7 +875,7 @@ function ArchbaseDataGrid<T extends object = any, ID = any>(props: ArchbaseDataG
868
875
  type: 'string' as const,
869
876
  sortable: false,
870
877
  filterable: false,
871
- width: 120,
878
+ width: 60,
872
879
  renderCell: (params) => renderRowActions(params.row as T)
873
880
  }
874
881
 
package/src/index.ts CHANGED
@@ -15,7 +15,6 @@ export * from './masonry';
15
15
  export * from './notification';
16
16
  export * from './onboarding';
17
17
  export * from './viewers';
18
- export * from './spreadsheet';
19
18
  export * from './filters';
20
19
 
21
20
  // New Components
Binary file
@@ -1,4 +0,0 @@
1
- export { ArchbaseJsonView } from './jsonview/index';
2
- export { ArchbaseJsonPathPicker } from './jsonpathpicker';
3
- export { ArchbaseObjectInspector, ArchbaseDebugInspector } from './objectinspector';
4
- export type { ArchbaseObjectToInspect } from './objectinspector';
@@ -1,37 +0,0 @@
1
- import { Component } from 'react';
2
- import './ArchbaseJsonPathPicker.css';
3
- export interface ArchbaseJsonPathPickerOptions {
4
- outputCollapsed: boolean;
5
- outputWithQuotes: boolean;
6
- pathNotation: string;
7
- pathQuotesType: string;
8
- processKeys: boolean;
9
- keyReplaceRegexPattern: string | undefined;
10
- keyReplaceRegexFlags: string | undefined;
11
- keyReplacementText: string;
12
- pickerIcon: string;
13
- withoutPicker: boolean;
14
- }
15
- export interface ArchbaseJsonPathPickerProps {
16
- data: any;
17
- onSelect: (path: string) => void;
18
- options?: ArchbaseJsonPathPickerOptions;
19
- }
20
- export declare class ArchbaseJsonPathPicker extends Component<ArchbaseJsonPathPickerProps> {
21
- static defaultProps: {
22
- options: ArchbaseJsonPathPickerOptions;
23
- };
24
- private pickerRef;
25
- private destRef;
26
- private jsonPathPickerInstance;
27
- constructor(props: ArchbaseJsonPathPickerProps);
28
- json2jsx: (json: any, options: any) => import("react/jsx-runtime").JSX.Element | "[]" | "{}";
29
- handlerEventToggle: (elm: any, event: any) => void;
30
- toggleEventListener: (event: any) => void;
31
- simulateClickHandler: (elm: any, event: any) => void;
32
- simulateClickEventListener: (event: any) => void;
33
- pickPathHandler: (elm: any) => void;
34
- pickEventListener: (event: any) => void;
35
- componentDidMount(): void;
36
- render(): import("react/jsx-runtime").JSX.Element;
37
- }
@@ -1 +0,0 @@
1
- export { ArchbaseJsonPathPicker } from './ArchbaseJsonPathPicker';
@@ -1,34 +0,0 @@
1
- export interface StyleProps {
2
- container: string;
3
- basicChildStyle: string;
4
- expander: string;
5
- label: string;
6
- nullValue: string;
7
- undefinedValue: string;
8
- numberValue: string;
9
- stringValue: string;
10
- booleanValue: string;
11
- otherValue: string;
12
- punctuation: string;
13
- pointer: string;
14
- }
15
- export interface JsonRenderProps<T> {
16
- field?: string;
17
- value: T;
18
- lastElement: boolean;
19
- level: number;
20
- style: StyleProps;
21
- shouldInitiallyExpand: (level: number, value: any, field?: string) => boolean;
22
- }
23
- export interface ExpandableRenderProps {
24
- field?: string;
25
- value: Array<any> | object;
26
- data: Array<[string | undefined, any]>;
27
- openBracket: string;
28
- closeBracket: string;
29
- lastElement: boolean;
30
- level: number;
31
- style: StyleProps;
32
- shouldInitiallyExpand: (level: number, value: any, field?: string) => boolean;
33
- }
34
- export default function ArchbaseJsonViewDataRender(props: JsonRenderProps<any>): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- export declare const isBoolean: (data: any) => data is boolean | Boolean;
2
- export declare const isNumber: (data: any) => data is number | Number;
3
- export declare const isBigInt: (data: any) => data is bigint | BigInt;
4
- export declare const isString: (data: any) => data is string | String;
5
- export declare const isArray: (data: any) => data is any[];
6
- export declare const isObject: (data: any) => boolean;
7
- export declare const isNull: (data: any) => boolean;
8
- export declare const isUndefined: (data: any) => boolean;
@@ -1,11 +0,0 @@
1
- import { StyleProps } from './ArchbaseJsonViewDataRenderer';
2
- export interface ArchbaseJsonViewProps {
3
- data: NonNullable<unknown> | Array<any>;
4
- style?: StyleProps;
5
- shouldInitiallyExpand?: (level: number, value: any, field?: string) => boolean;
6
- }
7
- export declare const defaultStyles: StyleProps;
8
- export declare const darkStyles: StyleProps;
9
- export declare const allExpanded: () => boolean;
10
- export declare const collapseAllNested: (level: number) => boolean;
11
- export declare const ArchbaseJsonView: ({ data, style, shouldInitiallyExpand, }: ArchbaseJsonViewProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,23 +0,0 @@
1
- export interface ArchbaseDebugInspectorProps {
2
- /** Título a ser exibido */
3
- title?: string;
4
- /** Título a ser exibido*/
5
- icon?: string | HTMLImageElement;
6
- /** Comando para abrir e fechar o Object Inspector */
7
- debugObjectInspectorHotKey?: string;
8
- /** Lista de objetos a serem inspecionados */
9
- objectsToInspect?: ArchbaseObjectToInspect[];
10
- /** Indica se o Object Inspector será visível inicialmente ou não */
11
- visible?: boolean;
12
- /** Altura inicial do Object Inspector */
13
- height?: number;
14
- /** Largura inicial do Object Inspector */
15
- width?: number;
16
- }
17
- export interface ArchbaseObjectToInspect {
18
- /**Nome do objeto a ser inspecionado*/
19
- name: string;
20
- /**Objeto a ser inspecionado*/
21
- object: NonNullable<unknown>;
22
- }
23
- export declare function ArchbaseDebugInspector({ title, icon, debugObjectInspectorHotKey, objectsToInspect, visible, height, width, }: ArchbaseDebugInspectorProps): import("react/jsx-runtime").JSX.Element;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import './ArchbaseFloatingWindow.css';
3
- export interface ArchbaseFloatingWindowProps {
4
- id: string;
5
- children?: any;
6
- height: number;
7
- width: number;
8
- top?: number;
9
- left?: number;
10
- resizable?: boolean;
11
- titleBar?: {
12
- icon?: string | HTMLImageElement;
13
- title?: string;
14
- buttons?: {
15
- minimize?: boolean;
16
- maximize?: boolean;
17
- close?: () => void;
18
- };
19
- };
20
- style?: React.CSSProperties;
21
- /** Referência para o container que envolve o componente filho */
22
- innerRef?: React.RefObject<HTMLInputElement> | undefined;
23
- }
24
- export declare const ArchbaseFloatingWindow: React.FC<ArchbaseFloatingWindowProps>;
@@ -1,6 +0,0 @@
1
- export interface ArchbaseObjectInspectorProps {
2
- /** Objeto a ser exibido */
3
- data: any;
4
- expandLevel?: number;
5
- }
6
- export declare function ArchbaseObjectInspector({ data, expandLevel }: ArchbaseObjectInspectorProps): import("react/jsx-runtime").JSX.Element;