@archbase/components 4.0.26 → 4.0.28

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.
@@ -1,13 +1,13 @@
1
1
  import { FloatingPosition, MantineSize, MantineStyleProp, OptionsFilter } from '@mantine/core';
2
2
  import { default as React, FocusEventHandler, ReactNode } from 'react';
3
- import { ArchbaseDataSource } from '@archbase/data';
3
+ import { ArchbaseDataSource, IArchbaseDataSourceBase } from '@archbase/data';
4
4
  export interface ArchbaseMultiSelectProps<T, ID, O> {
5
5
  /** Permite ou não desselecionar um item */
6
6
  allowDeselect?: boolean;
7
7
  /** Indicador se permite limpar o select */
8
8
  clearable?: boolean;
9
- /** Fonte de dados onde será atribuido o item selecionado */
10
- dataSource?: ArchbaseDataSource<T, ID>;
9
+ /** Fonte de dados onde será atribuido o item selecionado (V1 ou V2) */
10
+ dataSource?: IArchbaseDataSourceBase<T>;
11
11
  /** Campo onde deverá ser atribuido o item selecionado na fonte de dados */
12
12
  dataField?: string;
13
13
  /** Indicador se o select está desabilitado */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archbase/components",
3
- "version": "4.0.26",
3
+ "version": "4.0.28",
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",
@@ -23,16 +23,16 @@
23
23
  "src"
24
24
  ],
25
25
  "peerDependencies": {
26
- "@mantine/carousel": "9.2.1",
27
- "@mantine/charts": "9.2.1",
28
- "@mantine/code-highlight": "9.2.1",
29
- "@mantine/core": "9.2.1",
30
- "@mantine/dates": "9.2.1",
31
- "@mantine/dropzone": "9.2.1",
32
- "@mantine/form": "9.2.1",
33
- "@mantine/hooks": "9.2.1",
34
- "@mantine/modals": "9.2.1",
35
- "@mantine/notifications": "9.2.1",
26
+ "@mantine/carousel": "9.3.0",
27
+ "@mantine/charts": "9.3.0",
28
+ "@mantine/code-highlight": "9.3.0",
29
+ "@mantine/core": "9.3.0",
30
+ "@mantine/dates": "9.3.0",
31
+ "@mantine/dropzone": "9.3.0",
32
+ "@mantine/form": "9.3.0",
33
+ "@mantine/hooks": "9.3.0",
34
+ "@mantine/modals": "9.3.0",
35
+ "@mantine/notifications": "9.3.0",
36
36
  "@tabler/icons-react": "^3.26.0",
37
37
  "react": "^18.3.0 || ^19.2.0",
38
38
  "react-dom": "^18.3.0 || ^19.2.0"
@@ -118,9 +118,9 @@
118
118
  "vis-timeline": "^7.7.3",
119
119
  "xlsx": "^0.18.5",
120
120
  "yet-another-react-lightbox": "^3.21.0",
121
- "@archbase/core": "4.0.26",
122
- "@archbase/data": "4.0.26",
123
- "@archbase/layout": "4.0.26"
121
+ "@archbase/core": "4.0.28",
122
+ "@archbase/data": "4.0.28",
123
+ "@archbase/layout": "4.0.28"
124
124
  },
125
125
  "devDependencies": {
126
126
  "@types/d3": "^7.4.3",
@@ -87,7 +87,10 @@ import { AgGridReact } from 'ag-grid-react';
87
87
  // Memoize AgGridReact — recommended by AG-Grid's official performance demo. This
88
88
  // is by far the biggest scroll-perf win: it skips the full AG-Grid re-render when
89
89
  // the parent re-renders but every prop reference is the same.
90
- const AgGridReactMemo = React.memo(AgGridReact);
90
+ // React.memo apaga o parâmetro genérico de AgGridReact<TData> (TData vira unknown),
91
+ // fazendo columnDefs/getRowId tipados com <T> não baterem. O cast preserva a
92
+ // assinatura genérica original para que TData seja inferido de rowData={rows} (T[]).
93
+ const AgGridReactMemo = React.memo(AgGridReact) as unknown as typeof AgGridReact;
91
94
  import {
92
95
  AllCommunityModule,
93
96
  ModuleRegistry,
@@ -28,7 +28,7 @@ import React, {
28
28
  useRef,
29
29
  useState
30
30
  } from 'react';
31
- import { ArchbaseDataSource, DataSourceEvent, DataSourceEventNames } from '@archbase/data';
31
+ import { ArchbaseDataSource, DataSourceEvent, DataSourceEventNames, IArchbaseDataSourceBase } from '@archbase/data';
32
32
  import { useArchbaseDidMount, useArchbaseDidUpdate, useArchbaseWillUnmount } from '@archbase/core';
33
33
 
34
34
  export interface ArchbaseMultiSelectProps<T, ID, O> {
@@ -36,8 +36,8 @@ export interface ArchbaseMultiSelectProps<T, ID, O> {
36
36
  allowDeselect?: boolean;
37
37
  /** Indicador se permite limpar o select */
38
38
  clearable?: boolean;
39
- /** Fonte de dados onde será atribuido o item selecionado */
40
- dataSource?: ArchbaseDataSource<T, ID>;
39
+ /** Fonte de dados onde será atribuido o item selecionado (V1 ou V2) */
40
+ dataSource?: IArchbaseDataSourceBase<T>;
41
41
  /** Campo onde deverá ser atribuido o item selecionado na fonte de dados */
42
42
  dataField?: string;
43
43
  /** Indicador se o select está desabilitado */
Binary file