react-declarative 2.7.108 → 2.7.110
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/index.d.ts +35 -49
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -3
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
// ../@mui/material/Stack
|
|
14
14
|
// ../@mui/material/Paper
|
|
15
15
|
// ../@mui/material/styles
|
|
16
|
+
// ../mapbox-gl
|
|
16
17
|
|
|
17
18
|
declare module "react-declarative" {
|
|
18
19
|
import "./polyfills";
|
|
@@ -399,11 +400,8 @@ declare module "react-declarative" {
|
|
|
399
400
|
> = IFeatureInternal<Data, Payload>;
|
|
400
401
|
export { FeatureType } from "react-declarative/components/FeatureView";
|
|
401
402
|
export { IVisibilityGroup } from "react-declarative/components/VisibilityView";
|
|
402
|
-
import {
|
|
403
|
-
|
|
404
|
-
RECORD_NEVER_VALUE,
|
|
405
|
-
} from "react-declarative/components/RecordView";
|
|
406
|
-
export { recordToExcelExport, RECORD_NEVER_VALUE };
|
|
403
|
+
import { RECORD_NEVER_VALUE } from "react-declarative/components/RecordView";
|
|
404
|
+
export { RECORD_NEVER_VALUE };
|
|
407
405
|
export { ErrorBoundary } from "react-declarative/components";
|
|
408
406
|
export { AutoSizer } from "react-declarative/components";
|
|
409
407
|
export { ActionStopIcon } from "react-declarative/components";
|
|
@@ -7262,7 +7260,6 @@ declare module "react-declarative/components/VisibilityView" {
|
|
|
7262
7260
|
declare module "react-declarative/components/RecordView" {
|
|
7263
7261
|
export * from "react-declarative/components/RecordView/RecordView";
|
|
7264
7262
|
export { RECORD_NEVER_VALUE } from "react-declarative/components/RecordView/constant/RECORD_NEVER_VALUE";
|
|
7265
|
-
export { excelExport as recordToExcelExport } from "react-declarative/components/RecordView/helpers/excelExport";
|
|
7266
7263
|
export { default } from "react-declarative/components/RecordView/RecordView";
|
|
7267
7264
|
}
|
|
7268
7265
|
|
|
@@ -20223,6 +20220,7 @@ declare module "react-declarative/components/VisibilityView/hooks/useVisibilityV
|
|
|
20223
20220
|
declare module "react-declarative/components/RecordView/RecordView" {
|
|
20224
20221
|
import IData from "react-declarative/components/RecordView/model/IData";
|
|
20225
20222
|
import IRecordViewProps from "react-declarative/components/RecordView/model/IRecordViewProps";
|
|
20223
|
+
import IAnything from "react-declarative/model/IAnything";
|
|
20226
20224
|
/**
|
|
20227
20225
|
* Renders a view to display record data with search capabilities.
|
|
20228
20226
|
*
|
|
@@ -20250,36 +20248,33 @@ declare module "react-declarative/components/RecordView/RecordView" {
|
|
|
20250
20248
|
*
|
|
20251
20249
|
* @returns The rendered component.
|
|
20252
20250
|
*/
|
|
20253
|
-
export const RecordView: {
|
|
20254
|
-
|
|
20255
|
-
|
|
20256
|
-
|
|
20257
|
-
|
|
20258
|
-
|
|
20259
|
-
|
|
20260
|
-
|
|
20261
|
-
|
|
20262
|
-
|
|
20263
|
-
|
|
20264
|
-
|
|
20265
|
-
|
|
20266
|
-
|
|
20267
|
-
|
|
20268
|
-
|
|
20269
|
-
|
|
20270
|
-
|
|
20271
|
-
|
|
20272
|
-
|
|
20273
|
-
|
|
20274
|
-
|
|
20275
|
-
|
|
20276
|
-
|
|
20277
|
-
|
|
20278
|
-
|
|
20279
|
-
|
|
20280
|
-
}: IRecordViewProps<Data, Payload>): JSX.Element;
|
|
20281
|
-
excelExport: (data: IData, sheetName?: string) => void;
|
|
20282
|
-
};
|
|
20251
|
+
export const RecordView: <Data extends any = IData, Payload = IAnything>({
|
|
20252
|
+
data: upperData,
|
|
20253
|
+
search,
|
|
20254
|
+
onSearchChanged,
|
|
20255
|
+
formatValue,
|
|
20256
|
+
formatKey,
|
|
20257
|
+
formatSearch,
|
|
20258
|
+
withExpandAll,
|
|
20259
|
+
withExpandRoot,
|
|
20260
|
+
withExpandLevel,
|
|
20261
|
+
expandList,
|
|
20262
|
+
keyWidth,
|
|
20263
|
+
valueWidth,
|
|
20264
|
+
totalWidth,
|
|
20265
|
+
background,
|
|
20266
|
+
BeforeSearch,
|
|
20267
|
+
AfterSearch,
|
|
20268
|
+
BeforeCollapseLabel,
|
|
20269
|
+
AfterCollapseLabel,
|
|
20270
|
+
payload,
|
|
20271
|
+
className,
|
|
20272
|
+
style,
|
|
20273
|
+
sx,
|
|
20274
|
+
EmptyItem,
|
|
20275
|
+
CustomItem,
|
|
20276
|
+
...otherProps
|
|
20277
|
+
}: IRecordViewProps<Data, Payload>) => JSX.Element;
|
|
20283
20278
|
export default RecordView;
|
|
20284
20279
|
}
|
|
20285
20280
|
|
|
@@ -20287,18 +20282,6 @@ declare module "react-declarative/components/RecordView/constant/RECORD_NEVER_VA
|
|
|
20287
20282
|
export const RECORD_NEVER_VALUE = "react-declarative__recordView_never_value";
|
|
20288
20283
|
}
|
|
20289
20284
|
|
|
20290
|
-
declare module "react-declarative/components/RecordView/helpers/excelExport" {
|
|
20291
|
-
import IData from "react-declarative/components/RecordView/model/IData";
|
|
20292
|
-
/**
|
|
20293
|
-
* Export data to Excel.
|
|
20294
|
-
*
|
|
20295
|
-
* @param data - The data to export to Excel.
|
|
20296
|
-
* @param [sheetName="Records"] - The name of the sheet in the Excel file. Default is "Records".
|
|
20297
|
-
*/
|
|
20298
|
-
export const excelExport: (data: IData, sheetName?: string) => void;
|
|
20299
|
-
export default excelExport;
|
|
20300
|
-
}
|
|
20301
|
-
|
|
20302
20285
|
declare module "react-declarative/components/Scaffold2/Scaffold2" {
|
|
20303
20286
|
import IScaffold2Props from "react-declarative/components/Scaffold2/model/IScaffold2Props";
|
|
20304
20287
|
import Payload from "react-declarative/components/Scaffold2/model/Payload";
|
|
@@ -28633,8 +28616,11 @@ declare module "react-declarative/components/If/If" {
|
|
|
28633
28616
|
}
|
|
28634
28617
|
|
|
28635
28618
|
declare module "react-declarative/components/Map/Map" {
|
|
28619
|
+
import type mapboxglInternal from "mapbox-gl";
|
|
28636
28620
|
import { BoxProps } from "@mui/material/Box";
|
|
28637
|
-
global {
|
|
28621
|
+
global {
|
|
28622
|
+
var mapboxgl: typeof mapboxglInternal;
|
|
28623
|
+
}
|
|
28638
28624
|
interface IPosition {
|
|
28639
28625
|
lng: number;
|
|
28640
28626
|
lat: number;
|