@abdellatifui/react 3.1.39 → 3.1.40
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/nextgen.d.ts +72 -23
- package/dist/nextgen.js +5218 -5197
- package/dist/style.css +1 -1
- package/dist/types/components/Legends/NgFailedLegend.d.ts.map +1 -1
- package/dist/types/components/Legends/NgSuccessLegend.d.ts.map +1 -1
- package/dist/types/components/NetworkMap/Map.d.ts.map +1 -1
- package/dist/types/components/NetworkMap/useCreatePath.d.ts +0 -1
- package/dist/types/components/NetworkMap/useCreatePath.d.ts.map +1 -1
- package/dist/types/components/NetworkMap/utils.d.ts +64 -19
- package/dist/types/components/NetworkMap/utils.d.ts.map +1 -1
- package/dist/types/components/Tables/NextGen/main/hooks/useGenerateHeaders.d.ts +3 -2
- package/dist/types/components/Tables/NextGen/main/hooks/useGenerateHeaders.d.ts.map +1 -1
- package/dist/types/components/Tables/NextGen/main/plugins/ExpandableRow/ExpandableRow.d.ts +3 -2
- package/dist/types/components/Tables/NextGen/main/plugins/ExpandableRow/ExpandableRow.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/stories/Map/map.stories.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/nextgen.d.ts
CHANGED
|
@@ -159,6 +159,36 @@ export declare interface CommonProps {
|
|
|
159
159
|
style?: default_2.CSSProperties;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
+
export declare interface ConnectionParams {
|
|
163
|
+
name: string;
|
|
164
|
+
id: string;
|
|
165
|
+
sourceId: string;
|
|
166
|
+
destinationId: string;
|
|
167
|
+
details?: Record<string, any>;
|
|
168
|
+
linkColor?: string | null;
|
|
169
|
+
linkAnimationColor?: string | null;
|
|
170
|
+
layer?: number;
|
|
171
|
+
group?: number;
|
|
172
|
+
bidir?: boolean;
|
|
173
|
+
sourcePort: string | null;
|
|
174
|
+
destinationPort: string | null;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export declare interface ConnectionTemplate {
|
|
178
|
+
name: string;
|
|
179
|
+
id: string;
|
|
180
|
+
details: Record<string, any>;
|
|
181
|
+
sourceId: string;
|
|
182
|
+
destinationId: string;
|
|
183
|
+
linkColor: string | null;
|
|
184
|
+
linkAnimationColor: string | null;
|
|
185
|
+
layer: number;
|
|
186
|
+
group: number;
|
|
187
|
+
bidir: boolean;
|
|
188
|
+
sourcePort: string | null;
|
|
189
|
+
destinationPort: string | null;
|
|
190
|
+
}
|
|
191
|
+
|
|
162
192
|
export declare const Container: default_2.MemoExoticComponent<default_2.ForwardRefExoticComponent<default_2.RefAttributes<unknown>>>;
|
|
163
193
|
|
|
164
194
|
export declare interface ContainerProps extends default_2.HTMLAttributes<HTMLDivElement> {
|
|
@@ -211,29 +241,19 @@ export declare interface CopyButtonProps extends ButtonProps {
|
|
|
211
241
|
onCopy?: (text: string) => void;
|
|
212
242
|
}
|
|
213
243
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
linkColor: any;
|
|
221
|
-
linkAnimationColor: any;
|
|
222
|
-
layer: number;
|
|
223
|
-
group: number;
|
|
224
|
-
bidir: boolean;
|
|
225
|
-
};
|
|
244
|
+
/**
|
|
245
|
+
* Creates a default connection template from parameters
|
|
246
|
+
* @param params - Connection creation parameters
|
|
247
|
+
* @returns Formatted connection template object
|
|
248
|
+
*/
|
|
249
|
+
export declare const createDefaultConnTemplate: (params: ConnectionParams) => ConnectionTemplate;
|
|
226
250
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
lng: any;
|
|
234
|
-
lat: any;
|
|
235
|
-
};
|
|
236
|
-
};
|
|
251
|
+
/**
|
|
252
|
+
* Creates a default node template from parameters
|
|
253
|
+
* @param params - Node creation parameters
|
|
254
|
+
* @returns Formatted node template object
|
|
255
|
+
*/
|
|
256
|
+
export declare const createDefaultNodeTempate: (params: NodeParams) => NodeTemplate;
|
|
237
257
|
|
|
238
258
|
export { cva }
|
|
239
259
|
|
|
@@ -297,6 +317,10 @@ export declare interface FrequencyProps {
|
|
|
297
317
|
unit?: string;
|
|
298
318
|
}
|
|
299
319
|
|
|
320
|
+
/**
|
|
321
|
+
* Generates a random hex color string
|
|
322
|
+
* @returns Random hex color string starting with #
|
|
323
|
+
*/
|
|
300
324
|
export declare function getRandomColor(): string;
|
|
301
325
|
|
|
302
326
|
export declare const GetRandomStr: (length?: number, str?: boolean) => string;
|
|
@@ -322,7 +346,12 @@ export declare interface HelpPopoverProps {
|
|
|
322
346
|
className?: string;
|
|
323
347
|
}
|
|
324
348
|
|
|
325
|
-
|
|
349
|
+
/**
|
|
350
|
+
* Converts a hex color string to RGB values
|
|
351
|
+
* @param hex - Hex color string (with or without #)
|
|
352
|
+
* @returns Array of [r, g, b] values (0-255)
|
|
353
|
+
*/
|
|
354
|
+
export declare const hex2rgb: (hex: string) => [number, number, number];
|
|
326
355
|
|
|
327
356
|
export declare const HorizontalDiv: (props: any) => JSX_2.Element;
|
|
328
357
|
|
|
@@ -632,6 +661,26 @@ export declare interface NgSuccessLegendProps {
|
|
|
632
661
|
className?: string;
|
|
633
662
|
}
|
|
634
663
|
|
|
664
|
+
export declare interface NodeParams {
|
|
665
|
+
name: string;
|
|
666
|
+
id: string;
|
|
667
|
+
color: string;
|
|
668
|
+
lng: number;
|
|
669
|
+
lat: number;
|
|
670
|
+
details?: Record<string, any>;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
export declare interface NodeTemplate {
|
|
674
|
+
name: string;
|
|
675
|
+
color: string;
|
|
676
|
+
elementId: string;
|
|
677
|
+
details: Record<string, any>;
|
|
678
|
+
location: {
|
|
679
|
+
lng: number;
|
|
680
|
+
lat: number;
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
|
|
635
684
|
export declare const Panel: default_2.ForwardRefExoticComponent<default_2.RefAttributes<PanelProps_2>>;
|
|
636
685
|
|
|
637
686
|
export declare interface PanelProps extends ContainerProps {
|