@archbase/data 4.0.26 → 4.0.27
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.
|
Binary file
|
|
@@ -108,4 +108,17 @@ export interface IArchbaseDataSourceBase<T> {
|
|
|
108
108
|
* @param listener Função a ser removida
|
|
109
109
|
*/
|
|
110
110
|
removeListener(listener: DataSourceListener<T>): void;
|
|
111
|
+
/**
|
|
112
|
+
* Adiciona um listener para mudanças em um campo específico.
|
|
113
|
+
* Permite que componentes escutem apenas mudanças no campo que exibem.
|
|
114
|
+
* @param fieldName Nome do campo (suporta notação de ponto)
|
|
115
|
+
* @param listener Função chamada quando o campo mudar
|
|
116
|
+
*/
|
|
117
|
+
addFieldChangeListener(fieldName: string, listener: (fieldName: string, oldValue: any, newValue: any) => void): void;
|
|
118
|
+
/**
|
|
119
|
+
* Remove um listener de mudança de campo previamente registrado.
|
|
120
|
+
* @param fieldName Nome do campo
|
|
121
|
+
* @param listener Função a ser removida
|
|
122
|
+
*/
|
|
123
|
+
removeFieldChangeListener(fieldName: string, listener: (fieldName: string, oldValue: any, newValue: any) => void): void;
|
|
111
124
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archbase/data",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.27",
|
|
4
4
|
"description": "Data management layer for Archbase React v3 - DataSource, hooks, and API services",
|
|
5
5
|
"author": "Edson Martins <edsonmartins2005@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"README.md"
|
|
21
21
|
],
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@mantine/core": "9.2.
|
|
23
|
+
"@mantine/core": "9.2.2",
|
|
24
24
|
"react": "^18.3.0 || ^19.2.0",
|
|
25
25
|
"react-dom": "^18.3.0 || ^19.2.0"
|
|
26
26
|
},
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"reflect-metadata": "^0.2.2",
|
|
39
39
|
"rxjs": "^7.8.2",
|
|
40
40
|
"zustand": "^5.0.6",
|
|
41
|
-
"@archbase/core": "4.0.
|
|
41
|
+
"@archbase/core": "4.0.27"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@mantine/hooks": "9.2.
|
|
44
|
+
"@mantine/hooks": "9.2.2",
|
|
45
45
|
"@testing-library/react": "^16.3.0",
|
|
46
46
|
"@types/react": "^19.0.6",
|
|
47
47
|
"@types/react-dom": "^19.0.2",
|