@neo4j-ndl/react-graph 2.1.23 → 2.2.5
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/lib/cjs/_generated/style-rules/color-utils.js.map +1 -1
- package/lib/cjs/_generated/style-rules/date-utils.js +1 -1
- package/lib/cjs/_generated/style-rules/date-utils.js.map +1 -1
- package/lib/cjs/_generated/style-rules/index.js +1 -1
- package/lib/cjs/_generated/style-rules/index.js.map +1 -1
- package/lib/cjs/_generated/style-rules/literal-schemas.js +1 -1
- package/lib/cjs/_generated/style-rules/literal-schemas.js.map +1 -1
- package/lib/cjs/_generated/style-rules/numeric-utils.js.map +1 -1
- package/lib/cjs/_generated/style-rules/range-utils.js +1 -1
- package/lib/cjs/_generated/style-rules/range-utils.js.map +1 -1
- package/lib/cjs/graph-visualization-buttons.js +1 -1
- package/lib/cjs/graph-visualization-buttons.js.map +1 -1
- package/lib/cjs/graph-visualization-context.js +1 -1
- package/lib/cjs/graph-visualization-context.js.map +1 -1
- package/lib/cjs/graph-visualization-sidepanel.js +1 -1
- package/lib/cjs/graph-visualization-sidepanel.js.map +1 -1
- package/lib/cjs/graph-visualization.js +1 -1
- package/lib/cjs/graph-visualization.js.map +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/sidepanel-components/button-group.js +1 -1
- package/lib/cjs/sidepanel-components/button-group.js.map +1 -1
- package/lib/cjs/sidepanel-components/clickable-urls.js +1 -1
- package/lib/cjs/sidepanel-components/clickable-urls.js.map +1 -1
- package/lib/cjs/sidepanel-components/details-panel.js +1 -1
- package/lib/cjs/sidepanel-components/details-panel.js.map +1 -1
- package/lib/cjs/sidepanel-components/graph-label-wrapper.js +1 -1
- package/lib/cjs/sidepanel-components/graph-label-wrapper.js.map +1 -1
- package/lib/cjs/sidepanel-components/overview-panel.js +1 -1
- package/lib/cjs/sidepanel-components/overview-panel.js.map +1 -1
- package/lib/cjs/sidepanel-components/properties-table.js +1 -1
- package/lib/cjs/sidepanel-components/properties-table.js.map +1 -1
- package/lib/cjs/sidepanel-components/show-all.js +1 -1
- package/lib/cjs/sidepanel-components/show-all.js.map +1 -1
- package/lib/cjs/sidepanel-components/single-selection-sidepanel-contents.js +1 -1
- package/lib/cjs/sidepanel-components/single-selection-sidepanel-contents.js.map +1 -1
- package/lib/cjs/styling/compile-graph-styles.js +134 -61
- package/lib/cjs/styling/compile-graph-styles.js.map +1 -1
- package/lib/cjs/styling/create-vis-data-structures.js +16 -9
- package/lib/cjs/styling/create-vis-data-structures.js.map +1 -1
- package/lib/cjs/styling/parse-style-rules.js +1 -1
- package/lib/cjs/styling/parse-style-rules.js.map +1 -1
- package/lib/cjs/styling/style-types.js +30 -30
- package/lib/cjs/styling/style-types.js.map +1 -1
- package/lib/cjs/styling/use-graph-data.js +1 -1
- package/lib/cjs/styling/use-graph-data.js.map +1 -1
- package/lib/cjs/use-managed-node-state.js +1 -1
- package/lib/cjs/use-managed-node-state.js.map +1 -1
- package/lib/cjs/use-semi-controlled-state.js +1 -1
- package/lib/cjs/use-semi-controlled-state.js.map +1 -1
- package/lib/cjs/utils.js +1 -1
- package/lib/cjs/utils.js.map +1 -1
- package/lib/esm/_generated/style-rules/color-utils.js.map +1 -1
- package/lib/esm/_generated/style-rules/date-utils.js +1 -1
- package/lib/esm/_generated/style-rules/date-utils.js.map +1 -1
- package/lib/esm/_generated/style-rules/index.js +1 -1
- package/lib/esm/_generated/style-rules/index.js.map +1 -1
- package/lib/esm/_generated/style-rules/literal-schemas.js +1 -1
- package/lib/esm/_generated/style-rules/literal-schemas.js.map +1 -1
- package/lib/esm/_generated/style-rules/numeric-utils.js.map +1 -1
- package/lib/esm/_generated/style-rules/range-utils.js +1 -1
- package/lib/esm/_generated/style-rules/range-utils.js.map +1 -1
- package/lib/esm/graph-visualization-buttons.js +1 -1
- package/lib/esm/graph-visualization-buttons.js.map +1 -1
- package/lib/esm/graph-visualization-context.js +1 -1
- package/lib/esm/graph-visualization-context.js.map +1 -1
- package/lib/esm/graph-visualization-sidepanel.js +1 -1
- package/lib/esm/graph-visualization-sidepanel.js.map +1 -1
- package/lib/esm/graph-visualization.js +1 -1
- package/lib/esm/graph-visualization.js.map +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/sidepanel-components/button-group.js +1 -1
- package/lib/esm/sidepanel-components/button-group.js.map +1 -1
- package/lib/esm/sidepanel-components/clickable-urls.js +1 -1
- package/lib/esm/sidepanel-components/clickable-urls.js.map +1 -1
- package/lib/esm/sidepanel-components/details-panel.js +1 -1
- package/lib/esm/sidepanel-components/details-panel.js.map +1 -1
- package/lib/esm/sidepanel-components/graph-label-wrapper.js +1 -1
- package/lib/esm/sidepanel-components/graph-label-wrapper.js.map +1 -1
- package/lib/esm/sidepanel-components/overview-panel.js +1 -1
- package/lib/esm/sidepanel-components/overview-panel.js.map +1 -1
- package/lib/esm/sidepanel-components/properties-table.js +1 -1
- package/lib/esm/sidepanel-components/properties-table.js.map +1 -1
- package/lib/esm/sidepanel-components/show-all.js +1 -1
- package/lib/esm/sidepanel-components/show-all.js.map +1 -1
- package/lib/esm/sidepanel-components/single-selection-sidepanel-contents.js +1 -1
- package/lib/esm/sidepanel-components/single-selection-sidepanel-contents.js.map +1 -1
- package/lib/esm/styling/compile-graph-styles.js +132 -61
- package/lib/esm/styling/compile-graph-styles.js.map +1 -1
- package/lib/esm/styling/create-vis-data-structures.js +16 -9
- package/lib/esm/styling/create-vis-data-structures.js.map +1 -1
- package/lib/esm/styling/parse-style-rules.js +1 -1
- package/lib/esm/styling/parse-style-rules.js.map +1 -1
- package/lib/esm/styling/style-types.js +30 -30
- package/lib/esm/styling/style-types.js.map +1 -1
- package/lib/esm/styling/use-graph-data.js +1 -1
- package/lib/esm/styling/use-graph-data.js.map +1 -1
- package/lib/esm/use-managed-node-state.js +1 -1
- package/lib/esm/use-managed-node-state.js.map +1 -1
- package/lib/esm/use-semi-controlled-state.js +1 -1
- package/lib/esm/use-semi-controlled-state.js.map +1 -1
- package/lib/esm/utils.js +1 -1
- package/lib/esm/utils.js.map +1 -1
- package/lib/types/_generated/style-rules/color-utils.d.ts +1 -1
- package/lib/types/_generated/style-rules/index.d.ts +1 -1
- package/lib/types/_generated/style-rules/literal-schemas.d.ts +1 -1
- package/lib/types/_generated/style-rules/numeric-utils.d.ts +1 -1
- package/lib/types/graph-visualization-buttons.d.ts +1 -1
- package/lib/types/graph-visualization-context.d.ts +1 -1
- package/lib/types/graph-visualization-sidepanel.d.ts +1 -1
- package/lib/types/graph-visualization.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/sidepanel-components/button-group.d.ts +1 -1
- package/lib/types/sidepanel-components/clickable-urls.d.ts +1 -1
- package/lib/types/sidepanel-components/details-panel.d.ts +1 -1
- package/lib/types/sidepanel-components/graph-label-wrapper.d.ts +1 -1
- package/lib/types/sidepanel-components/overview-panel.d.ts +1 -1
- package/lib/types/sidepanel-components/properties-table.d.ts +1 -1
- package/lib/types/sidepanel-components/show-all.d.ts +1 -1
- package/lib/types/sidepanel-components/single-selection-sidepanel-contents.d.ts +1 -1
- package/lib/types/styling/compile-graph-styles.d.ts +29 -2
- package/lib/types/styling/compile-graph-styles.d.ts.map +1 -1
- package/lib/types/styling/create-vis-data-structures.d.ts +2 -2
- package/lib/types/styling/create-vis-data-structures.d.ts.map +1 -1
- package/lib/types/styling/parse-style-rules.d.ts +1 -1
- package/lib/types/styling/style-types.d.ts +121 -121
- package/lib/types/styling/use-graph-data.d.ts +1 -1
- package/lib/types/use-managed-node-state.d.ts +1 -1
- package/lib/types/use-semi-controlled-state.d.ts +1 -1
- package/lib/types/utils.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/*!
|
|
2
2
|
*
|
|
3
3
|
* Copyright (c) "Neo4j"
|
|
4
4
|
* Neo4j Sweden AB [http://neo4j.com]
|
|
@@ -127,13 +127,13 @@ export declare const CaptionVariationSchema: z.ZodEnum<{
|
|
|
127
127
|
}>;
|
|
128
128
|
export type CaptionVariation = z.infer<typeof CaptionVariationSchema>;
|
|
129
129
|
export declare const NvlCaptionSchema: z.ZodObject<{
|
|
130
|
+
key: z.ZodOptional<z.ZodString>;
|
|
130
131
|
styles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
131
132
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
132
133
|
property: z.ZodString;
|
|
133
134
|
}, z.core.$strip>, z.ZodObject<{
|
|
134
135
|
useType: z.ZodLiteral<true>;
|
|
135
136
|
}, z.core.$strip>]>>;
|
|
136
|
-
key: z.ZodOptional<z.ZodString>;
|
|
137
137
|
}, z.core.$strip>;
|
|
138
138
|
export type Caption = z.infer<typeof NvlCaptionSchema>;
|
|
139
139
|
/**
|
|
@@ -144,8 +144,9 @@ export type Caption = z.infer<typeof NvlCaptionSchema>;
|
|
|
144
144
|
* colorRange is silently ignored — other style properties still apply.
|
|
145
145
|
*/
|
|
146
146
|
export declare const ColorRangeSchema: z.ZodObject<{
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
maxColor: z.ZodString;
|
|
149
|
+
maxValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
149
150
|
bigint: z.ZodString;
|
|
150
151
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
151
152
|
datetime: z.ZodString;
|
|
@@ -154,8 +155,8 @@ export declare const ColorRangeSchema: z.ZodObject<{
|
|
|
154
155
|
}, z.core.$strip>, z.ZodObject<{
|
|
155
156
|
time: z.ZodString;
|
|
156
157
|
}, z.core.$strip>]>;
|
|
157
|
-
|
|
158
|
-
|
|
158
|
+
midColor: z.ZodOptional<z.ZodString>;
|
|
159
|
+
midValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
159
160
|
bigint: z.ZodString;
|
|
160
161
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
161
162
|
datetime: z.ZodString;
|
|
@@ -163,9 +164,9 @@ export declare const ColorRangeSchema: z.ZodObject<{
|
|
|
163
164
|
localdatetime: z.ZodString;
|
|
164
165
|
}, z.core.$strip>, z.ZodObject<{
|
|
165
166
|
time: z.ZodString;
|
|
166
|
-
}, z.core.$strip>]
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
}, z.core.$strip>]>>;
|
|
168
|
+
minColor: z.ZodString;
|
|
169
|
+
minValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
169
170
|
bigint: z.ZodString;
|
|
170
171
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
171
172
|
datetime: z.ZodString;
|
|
@@ -173,9 +174,8 @@ export declare const ColorRangeSchema: z.ZodObject<{
|
|
|
173
174
|
localdatetime: z.ZodString;
|
|
174
175
|
}, z.core.$strip>, z.ZodObject<{
|
|
175
176
|
time: z.ZodString;
|
|
176
|
-
}, z.core.$strip>]
|
|
177
|
-
|
|
178
|
-
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
+
}, z.core.$strip>]>;
|
|
178
|
+
onProperty: z.ZodString;
|
|
179
179
|
}, z.core.$strip>;
|
|
180
180
|
export type ColorRange = z.infer<typeof ColorRangeSchema>;
|
|
181
181
|
/**
|
|
@@ -186,8 +186,9 @@ export type ColorRange = z.infer<typeof ColorRangeSchema>;
|
|
|
186
186
|
* other style properties still apply.
|
|
187
187
|
*/
|
|
188
188
|
export declare const SizeRangeSchema: z.ZodObject<{
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
190
|
+
maxSize: z.ZodNumber;
|
|
191
|
+
maxValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
191
192
|
bigint: z.ZodString;
|
|
192
193
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
193
194
|
datetime: z.ZodString;
|
|
@@ -196,7 +197,8 @@ export declare const SizeRangeSchema: z.ZodObject<{
|
|
|
196
197
|
}, z.core.$strip>, z.ZodObject<{
|
|
197
198
|
time: z.ZodString;
|
|
198
199
|
}, z.core.$strip>]>;
|
|
199
|
-
|
|
200
|
+
minSize: z.ZodNumber;
|
|
201
|
+
minValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
200
202
|
bigint: z.ZodString;
|
|
201
203
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
202
204
|
datetime: z.ZodString;
|
|
@@ -205,9 +207,7 @@ export declare const SizeRangeSchema: z.ZodObject<{
|
|
|
205
207
|
}, z.core.$strip>, z.ZodObject<{
|
|
206
208
|
time: z.ZodString;
|
|
207
209
|
}, z.core.$strip>]>;
|
|
208
|
-
|
|
209
|
-
maxSize: z.ZodNumber;
|
|
210
|
-
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
210
|
+
onProperty: z.ZodString;
|
|
211
211
|
}, z.core.$strip>;
|
|
212
212
|
export type SizeRange = z.infer<typeof SizeRangeSchema>;
|
|
213
213
|
/**
|
|
@@ -218,8 +218,8 @@ export type SizeRange = z.infer<typeof SizeRangeSchema>;
|
|
|
218
218
|
* other style properties still apply.
|
|
219
219
|
*/
|
|
220
220
|
export declare const WidthRangeSchema: z.ZodObject<{
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
222
|
+
maxValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
223
223
|
bigint: z.ZodString;
|
|
224
224
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
225
225
|
datetime: z.ZodString;
|
|
@@ -228,7 +228,8 @@ export declare const WidthRangeSchema: z.ZodObject<{
|
|
|
228
228
|
}, z.core.$strip>, z.ZodObject<{
|
|
229
229
|
time: z.ZodString;
|
|
230
230
|
}, z.core.$strip>]>;
|
|
231
|
-
|
|
231
|
+
maxWidth: z.ZodNumber;
|
|
232
|
+
minValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
232
233
|
bigint: z.ZodString;
|
|
233
234
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
234
235
|
datetime: z.ZodString;
|
|
@@ -238,8 +239,7 @@ export declare const WidthRangeSchema: z.ZodObject<{
|
|
|
238
239
|
time: z.ZodString;
|
|
239
240
|
}, z.core.$strip>]>;
|
|
240
241
|
minWidth: z.ZodNumber;
|
|
241
|
-
|
|
242
|
-
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
+
onProperty: z.ZodString;
|
|
243
243
|
}, z.core.$strip>;
|
|
244
244
|
export type WidthRange = z.infer<typeof WidthRangeSchema>;
|
|
245
245
|
/**
|
|
@@ -249,36 +249,37 @@ export type WidthRange = z.infer<typeof WidthRangeSchema>;
|
|
|
249
249
|
* other style properties still apply.
|
|
250
250
|
*/
|
|
251
251
|
export declare const UniqueColorsSchema: z.ZodObject<{
|
|
252
|
-
onProperty: z.ZodString;
|
|
253
252
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
253
|
+
onProperty: z.ZodString;
|
|
254
254
|
}, z.core.$strip>;
|
|
255
255
|
export type UniqueColors = z.infer<typeof UniqueColorsSchema>;
|
|
256
256
|
export declare const StyleSchema: z.ZodObject<{
|
|
257
257
|
captions: z.ZodOptional<z.ZodObject<{
|
|
258
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
259
|
+
top: "top";
|
|
260
|
+
bottom: "bottom";
|
|
261
|
+
center: "center";
|
|
262
|
+
}>>;
|
|
263
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
264
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
258
265
|
text: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
266
|
+
key: z.ZodOptional<z.ZodString>;
|
|
259
267
|
styles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
260
268
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
261
269
|
property: z.ZodString;
|
|
262
270
|
}, z.core.$strip>, z.ZodObject<{
|
|
263
271
|
useType: z.ZodLiteral<true>;
|
|
264
272
|
}, z.core.$strip>]>>;
|
|
265
|
-
key: z.ZodOptional<z.ZodString>;
|
|
266
273
|
}, z.core.$strip>>>;
|
|
267
|
-
align: z.ZodOptional<z.ZodEnum<{
|
|
268
|
-
top: "top";
|
|
269
|
-
bottom: "bottom";
|
|
270
|
-
center: "center";
|
|
271
|
-
}>>;
|
|
272
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
273
|
-
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
274
274
|
}, z.core.$strip>>;
|
|
275
275
|
color: z.ZodOptional<z.ZodObject<{
|
|
276
|
-
value: z.ZodString;
|
|
277
276
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
277
|
+
value: z.ZodString;
|
|
278
278
|
}, z.core.$strip>>;
|
|
279
279
|
colorRange: z.ZodOptional<z.ZodObject<{
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
281
|
+
maxColor: z.ZodString;
|
|
282
|
+
maxValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
282
283
|
bigint: z.ZodString;
|
|
283
284
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
284
285
|
datetime: z.ZodString;
|
|
@@ -287,8 +288,8 @@ export declare const StyleSchema: z.ZodObject<{
|
|
|
287
288
|
}, z.core.$strip>, z.ZodObject<{
|
|
288
289
|
time: z.ZodString;
|
|
289
290
|
}, z.core.$strip>]>;
|
|
290
|
-
|
|
291
|
-
|
|
291
|
+
midColor: z.ZodOptional<z.ZodString>;
|
|
292
|
+
midValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
292
293
|
bigint: z.ZodString;
|
|
293
294
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
294
295
|
datetime: z.ZodString;
|
|
@@ -296,9 +297,9 @@ export declare const StyleSchema: z.ZodObject<{
|
|
|
296
297
|
localdatetime: z.ZodString;
|
|
297
298
|
}, z.core.$strip>, z.ZodObject<{
|
|
298
299
|
time: z.ZodString;
|
|
299
|
-
}, z.core.$strip>]
|
|
300
|
-
|
|
301
|
-
|
|
300
|
+
}, z.core.$strip>]>>;
|
|
301
|
+
minColor: z.ZodString;
|
|
302
|
+
minValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
302
303
|
bigint: z.ZodString;
|
|
303
304
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
304
305
|
datetime: z.ZodString;
|
|
@@ -306,17 +307,27 @@ export declare const StyleSchema: z.ZodObject<{
|
|
|
306
307
|
localdatetime: z.ZodString;
|
|
307
308
|
}, z.core.$strip>, z.ZodObject<{
|
|
308
309
|
time: z.ZodString;
|
|
309
|
-
}, z.core.$strip>]
|
|
310
|
-
|
|
311
|
-
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
310
|
+
}, z.core.$strip>]>;
|
|
311
|
+
onProperty: z.ZodString;
|
|
312
312
|
}, z.core.$strip>>;
|
|
313
313
|
icon: z.ZodOptional<z.ZodObject<{
|
|
314
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
314
315
|
value: z.ZodString;
|
|
316
|
+
}, z.core.$strip>>;
|
|
317
|
+
overlayIcon: z.ZodOptional<z.ZodObject<{
|
|
318
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
319
|
+
position: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
320
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
321
|
+
url: z.ZodString;
|
|
322
|
+
}, z.core.$strip>>;
|
|
323
|
+
size: z.ZodOptional<z.ZodObject<{
|
|
315
324
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
325
|
+
value: z.ZodNumber;
|
|
316
326
|
}, z.core.$strip>>;
|
|
317
327
|
sizeRange: z.ZodOptional<z.ZodObject<{
|
|
318
|
-
|
|
319
|
-
|
|
328
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
329
|
+
maxSize: z.ZodNumber;
|
|
330
|
+
maxValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
320
331
|
bigint: z.ZodString;
|
|
321
332
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
322
333
|
datetime: z.ZodString;
|
|
@@ -325,7 +336,8 @@ export declare const StyleSchema: z.ZodObject<{
|
|
|
325
336
|
}, z.core.$strip>, z.ZodObject<{
|
|
326
337
|
time: z.ZodString;
|
|
327
338
|
}, z.core.$strip>]>;
|
|
328
|
-
|
|
339
|
+
minSize: z.ZodNumber;
|
|
340
|
+
minValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
329
341
|
bigint: z.ZodString;
|
|
330
342
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
331
343
|
datetime: z.ZodString;
|
|
@@ -334,19 +346,19 @@ export declare const StyleSchema: z.ZodObject<{
|
|
|
334
346
|
}, z.core.$strip>, z.ZodObject<{
|
|
335
347
|
time: z.ZodString;
|
|
336
348
|
}, z.core.$strip>]>;
|
|
337
|
-
|
|
338
|
-
|
|
349
|
+
onProperty: z.ZodString;
|
|
350
|
+
}, z.core.$strip>>;
|
|
351
|
+
uniqueColors: z.ZodOptional<z.ZodObject<{
|
|
339
352
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
353
|
+
onProperty: z.ZodString;
|
|
340
354
|
}, z.core.$strip>>;
|
|
341
|
-
|
|
342
|
-
url: z.ZodString;
|
|
343
|
-
position: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
344
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
355
|
+
width: z.ZodOptional<z.ZodObject<{
|
|
345
356
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
357
|
+
value: z.ZodNumber;
|
|
346
358
|
}, z.core.$strip>>;
|
|
347
359
|
widthRange: z.ZodOptional<z.ZodObject<{
|
|
348
|
-
|
|
349
|
-
|
|
360
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
361
|
+
maxValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
350
362
|
bigint: z.ZodString;
|
|
351
363
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
352
364
|
datetime: z.ZodString;
|
|
@@ -355,7 +367,8 @@ export declare const StyleSchema: z.ZodObject<{
|
|
|
355
367
|
}, z.core.$strip>, z.ZodObject<{
|
|
356
368
|
time: z.ZodString;
|
|
357
369
|
}, z.core.$strip>]>;
|
|
358
|
-
|
|
370
|
+
maxWidth: z.ZodNumber;
|
|
371
|
+
minValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
359
372
|
bigint: z.ZodString;
|
|
360
373
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
361
374
|
datetime: z.ZodString;
|
|
@@ -365,58 +378,38 @@ export declare const StyleSchema: z.ZodObject<{
|
|
|
365
378
|
time: z.ZodString;
|
|
366
379
|
}, z.core.$strip>]>;
|
|
367
380
|
minWidth: z.ZodNumber;
|
|
368
|
-
maxWidth: z.ZodNumber;
|
|
369
|
-
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
370
|
-
}, z.core.$strip>>;
|
|
371
|
-
size: z.ZodOptional<z.ZodObject<{
|
|
372
|
-
value: z.ZodNumber;
|
|
373
|
-
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
374
|
-
}, z.core.$strip>>;
|
|
375
|
-
uniqueColors: z.ZodOptional<z.ZodObject<{
|
|
376
381
|
onProperty: z.ZodString;
|
|
377
|
-
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
378
|
-
}, z.core.$strip>>;
|
|
379
|
-
width: z.ZodOptional<z.ZodObject<{
|
|
380
|
-
value: z.ZodNumber;
|
|
381
|
-
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
382
382
|
}, z.core.$strip>>;
|
|
383
383
|
}, z.core.$strip>;
|
|
384
384
|
export type Style = z.infer<typeof StyleSchema>;
|
|
385
385
|
export declare const GraphStyleRuleSchema: z.ZodObject<{
|
|
386
|
-
match: z.ZodUnion<readonly [z.ZodObject<{
|
|
387
|
-
label: z.ZodNullable<z.ZodString>;
|
|
388
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
389
|
-
reltype: z.ZodNullable<z.ZodString>;
|
|
390
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
391
|
-
property: z.ZodString;
|
|
392
|
-
}, z.core.$strip>]>;
|
|
393
|
-
where: z.ZodOptional<z.ZodType<Where, unknown, z.core.$ZodTypeInternals<Where, unknown>>>;
|
|
394
386
|
apply: z.ZodObject<{
|
|
395
387
|
captions: z.ZodOptional<z.ZodObject<{
|
|
388
|
+
align: z.ZodOptional<z.ZodEnum<{
|
|
389
|
+
top: "top";
|
|
390
|
+
bottom: "bottom";
|
|
391
|
+
center: "center";
|
|
392
|
+
}>>;
|
|
393
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
394
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
396
395
|
text: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
396
|
+
key: z.ZodOptional<z.ZodString>;
|
|
397
397
|
styles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
398
398
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
399
399
|
property: z.ZodString;
|
|
400
400
|
}, z.core.$strip>, z.ZodObject<{
|
|
401
401
|
useType: z.ZodLiteral<true>;
|
|
402
402
|
}, z.core.$strip>]>>;
|
|
403
|
-
key: z.ZodOptional<z.ZodString>;
|
|
404
403
|
}, z.core.$strip>>>;
|
|
405
|
-
align: z.ZodOptional<z.ZodEnum<{
|
|
406
|
-
top: "top";
|
|
407
|
-
bottom: "bottom";
|
|
408
|
-
center: "center";
|
|
409
|
-
}>>;
|
|
410
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
411
|
-
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
412
404
|
}, z.core.$strip>>;
|
|
413
405
|
color: z.ZodOptional<z.ZodObject<{
|
|
414
|
-
value: z.ZodString;
|
|
415
406
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
407
|
+
value: z.ZodString;
|
|
416
408
|
}, z.core.$strip>>;
|
|
417
409
|
colorRange: z.ZodOptional<z.ZodObject<{
|
|
418
|
-
|
|
419
|
-
|
|
410
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
411
|
+
maxColor: z.ZodString;
|
|
412
|
+
maxValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
420
413
|
bigint: z.ZodString;
|
|
421
414
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
422
415
|
datetime: z.ZodString;
|
|
@@ -425,8 +418,8 @@ export declare const GraphStyleRuleSchema: z.ZodObject<{
|
|
|
425
418
|
}, z.core.$strip>, z.ZodObject<{
|
|
426
419
|
time: z.ZodString;
|
|
427
420
|
}, z.core.$strip>]>;
|
|
428
|
-
|
|
429
|
-
|
|
421
|
+
midColor: z.ZodOptional<z.ZodString>;
|
|
422
|
+
midValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
430
423
|
bigint: z.ZodString;
|
|
431
424
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
432
425
|
datetime: z.ZodString;
|
|
@@ -434,9 +427,9 @@ export declare const GraphStyleRuleSchema: z.ZodObject<{
|
|
|
434
427
|
localdatetime: z.ZodString;
|
|
435
428
|
}, z.core.$strip>, z.ZodObject<{
|
|
436
429
|
time: z.ZodString;
|
|
437
|
-
}, z.core.$strip>]
|
|
438
|
-
|
|
439
|
-
|
|
430
|
+
}, z.core.$strip>]>>;
|
|
431
|
+
minColor: z.ZodString;
|
|
432
|
+
minValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
440
433
|
bigint: z.ZodString;
|
|
441
434
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
442
435
|
datetime: z.ZodString;
|
|
@@ -444,17 +437,27 @@ export declare const GraphStyleRuleSchema: z.ZodObject<{
|
|
|
444
437
|
localdatetime: z.ZodString;
|
|
445
438
|
}, z.core.$strip>, z.ZodObject<{
|
|
446
439
|
time: z.ZodString;
|
|
447
|
-
}, z.core.$strip>]
|
|
448
|
-
|
|
449
|
-
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
440
|
+
}, z.core.$strip>]>;
|
|
441
|
+
onProperty: z.ZodString;
|
|
450
442
|
}, z.core.$strip>>;
|
|
451
443
|
icon: z.ZodOptional<z.ZodObject<{
|
|
444
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
452
445
|
value: z.ZodString;
|
|
446
|
+
}, z.core.$strip>>;
|
|
447
|
+
overlayIcon: z.ZodOptional<z.ZodObject<{
|
|
453
448
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
449
|
+
position: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
450
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
451
|
+
url: z.ZodString;
|
|
452
|
+
}, z.core.$strip>>;
|
|
453
|
+
size: z.ZodOptional<z.ZodObject<{
|
|
454
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
455
|
+
value: z.ZodNumber;
|
|
454
456
|
}, z.core.$strip>>;
|
|
455
457
|
sizeRange: z.ZodOptional<z.ZodObject<{
|
|
456
|
-
|
|
457
|
-
|
|
458
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
459
|
+
maxSize: z.ZodNumber;
|
|
460
|
+
maxValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
458
461
|
bigint: z.ZodString;
|
|
459
462
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
460
463
|
datetime: z.ZodString;
|
|
@@ -463,7 +466,8 @@ export declare const GraphStyleRuleSchema: z.ZodObject<{
|
|
|
463
466
|
}, z.core.$strip>, z.ZodObject<{
|
|
464
467
|
time: z.ZodString;
|
|
465
468
|
}, z.core.$strip>]>;
|
|
466
|
-
|
|
469
|
+
minSize: z.ZodNumber;
|
|
470
|
+
minValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
467
471
|
bigint: z.ZodString;
|
|
468
472
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
469
473
|
datetime: z.ZodString;
|
|
@@ -472,19 +476,19 @@ export declare const GraphStyleRuleSchema: z.ZodObject<{
|
|
|
472
476
|
}, z.core.$strip>, z.ZodObject<{
|
|
473
477
|
time: z.ZodString;
|
|
474
478
|
}, z.core.$strip>]>;
|
|
475
|
-
|
|
476
|
-
|
|
479
|
+
onProperty: z.ZodString;
|
|
480
|
+
}, z.core.$strip>>;
|
|
481
|
+
uniqueColors: z.ZodOptional<z.ZodObject<{
|
|
477
482
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
483
|
+
onProperty: z.ZodString;
|
|
478
484
|
}, z.core.$strip>>;
|
|
479
|
-
|
|
480
|
-
url: z.ZodString;
|
|
481
|
-
position: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
482
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
485
|
+
width: z.ZodOptional<z.ZodObject<{
|
|
483
486
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
487
|
+
value: z.ZodNumber;
|
|
484
488
|
}, z.core.$strip>>;
|
|
485
489
|
widthRange: z.ZodOptional<z.ZodObject<{
|
|
486
|
-
|
|
487
|
-
|
|
490
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
491
|
+
maxValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
488
492
|
bigint: z.ZodString;
|
|
489
493
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
490
494
|
datetime: z.ZodString;
|
|
@@ -493,7 +497,8 @@ export declare const GraphStyleRuleSchema: z.ZodObject<{
|
|
|
493
497
|
}, z.core.$strip>, z.ZodObject<{
|
|
494
498
|
time: z.ZodString;
|
|
495
499
|
}, z.core.$strip>]>;
|
|
496
|
-
|
|
500
|
+
maxWidth: z.ZodNumber;
|
|
501
|
+
minValue: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodBigInt, z.ZodObject<{
|
|
497
502
|
bigint: z.ZodString;
|
|
498
503
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
499
504
|
datetime: z.ZodString;
|
|
@@ -503,25 +508,20 @@ export declare const GraphStyleRuleSchema: z.ZodObject<{
|
|
|
503
508
|
time: z.ZodString;
|
|
504
509
|
}, z.core.$strip>]>;
|
|
505
510
|
minWidth: z.ZodNumber;
|
|
506
|
-
maxWidth: z.ZodNumber;
|
|
507
|
-
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
508
|
-
}, z.core.$strip>>;
|
|
509
|
-
size: z.ZodOptional<z.ZodObject<{
|
|
510
|
-
value: z.ZodNumber;
|
|
511
|
-
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
512
|
-
}, z.core.$strip>>;
|
|
513
|
-
uniqueColors: z.ZodOptional<z.ZodObject<{
|
|
514
511
|
onProperty: z.ZodString;
|
|
515
|
-
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
516
|
-
}, z.core.$strip>>;
|
|
517
|
-
width: z.ZodOptional<z.ZodObject<{
|
|
518
|
-
value: z.ZodNumber;
|
|
519
|
-
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
520
512
|
}, z.core.$strip>>;
|
|
521
513
|
}, z.core.$strip>;
|
|
522
514
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
523
|
-
|
|
515
|
+
match: z.ZodUnion<readonly [z.ZodObject<{
|
|
516
|
+
label: z.ZodNullable<z.ZodString>;
|
|
517
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
518
|
+
reltype: z.ZodNullable<z.ZodString>;
|
|
519
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
520
|
+
property: z.ZodString;
|
|
521
|
+
}, z.core.$strip>]>;
|
|
524
522
|
metaData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
523
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
524
|
+
where: z.ZodOptional<z.ZodType<Where, unknown, z.core.$ZodTypeInternals<Where, unknown>>>;
|
|
525
525
|
}, z.core.$strip>;
|
|
526
526
|
export type GraphStyleRule = z.infer<typeof GraphStyleRuleSchema>;
|
|
527
527
|
/**
|
package/lib/types/utils.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react-graph",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of the graph visualization from Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"@neo4j-nvl/base": "^1.2.0",
|
|
58
58
|
"@neo4j-nvl/interaction-handlers": "^1.2.0",
|
|
59
59
|
"@neo4j-nvl/react": "^1.2.0",
|
|
60
|
-
"@neo4j-ndl/
|
|
61
|
-
"@neo4j-ndl/
|
|
60
|
+
"@neo4j-ndl/base": "^4.22.3",
|
|
61
|
+
"@neo4j-ndl/react": "^4.23.4"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"classnames": "2.5.1",
|