cx 24.0.3 → 24.2.0
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/data.js +15 -26
- package/dist/manifest.js +738 -738
- package/dist/ui.js +1 -1
- package/dist/widgets.js +64 -40
- package/package.json +1 -1
- package/src/charts/ColorMap.js +4 -6
- package/src/charts/axis/Axis.d.ts +96 -96
- package/src/charts/axis/Axis.js +252 -252
- package/src/data/Expression.js +212 -212
- package/src/data/Expression.spec.js +174 -174
- package/src/data/StringTemplate.spec.js +105 -105
- package/src/ui/Controller.d.ts +182 -182
- package/src/ui/FocusManager.js +171 -171
- package/src/ui/Format.js +87 -87
- package/src/ui/Instance.d.ts +72 -72
- package/src/ui/keyboardShortcuts.js +4 -5
- package/src/ui/selection/KeySelection.d.ts +1 -1
- package/src/ui/selection/PropertySelection.d.ts +1 -1
- package/src/ui/selection/PropertySelection.js +2 -4
- package/src/ui/selection/Selection.d.ts +1 -1
- package/src/widgets/form/ColorField.js +14 -9
- package/src/widgets/form/ColorPicker.scss +275 -275
- package/src/widgets/form/ColorPicker.variables.scss +22 -22
- package/src/widgets/form/DateTimeField.js +10 -6
- package/src/widgets/form/Label.js +88 -88
- package/src/widgets/form/LookupField.d.ts +8 -9
- package/src/widgets/form/MonthField.js +10 -6
- package/src/widgets/form/NumberField.js +8 -4
- package/src/widgets/form/TextArea.js +10 -6
- package/src/widgets/form/TextField.js +11 -9
- package/src/widgets/form/UploadButton.d.ts +34 -34
- package/src/widgets/form/index.js +1 -2
- package/src/widgets/grid/Grid.d.ts +11 -8
- package/src/widgets/grid/Grid.js +3277 -3277
|
@@ -54,11 +54,11 @@ interface GridColumnDropEvent extends DragEvent {
|
|
|
54
54
|
|
|
55
55
|
interface GridGroupingKey {
|
|
56
56
|
[key: string]:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
| Prop<any>
|
|
58
|
+
| {
|
|
59
|
+
value: Prop<any>;
|
|
60
|
+
direction: SortDirection;
|
|
61
|
+
};
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
type GridColumnAlignment = "left" | "right" | "center";
|
|
@@ -298,6 +298,9 @@ interface GridProps<T = unknown> extends StyledContainerProps {
|
|
|
298
298
|
/** Parameters that affect filtering. */
|
|
299
299
|
filterParams?: StructuredProp;
|
|
300
300
|
|
|
301
|
+
/** Callback function to be executed when a row is right-clicked. */
|
|
302
|
+
onRowContextMenu?: string | ((e: React.SyntheticEvent<any>, instance: Instance) => void);
|
|
303
|
+
|
|
301
304
|
/** Callback to create a filter function for given filter params. */
|
|
302
305
|
onCreateFilter?: (filterParams: any, instance?: Instance) => (record: T) => boolean;
|
|
303
306
|
|
|
@@ -316,7 +319,7 @@ interface GridProps<T = unknown> extends StyledContainerProps {
|
|
|
316
319
|
sortField?: string;
|
|
317
320
|
sortDirection?: string;
|
|
318
321
|
},
|
|
319
|
-
instance?: Instance
|
|
322
|
+
instance?: Instance,
|
|
320
323
|
) => FetchRecordsResult | Promise<FetchRecordsResult>;
|
|
321
324
|
|
|
322
325
|
/** Callback function to be executed when a row is double-clicked. */
|
|
@@ -349,7 +352,7 @@ interface GridProps<T = unknown> extends StyledContainerProps {
|
|
|
349
352
|
/** Callback to create a function that can be used to check whether a record is selectable. */
|
|
350
353
|
onCreateIsRecordSelectable?: (
|
|
351
354
|
params: any,
|
|
352
|
-
instance: Instance
|
|
355
|
+
instance: Instance,
|
|
353
356
|
) => (record: T, options?: { range?: boolean; toggle?: boolean }) => boolean;
|
|
354
357
|
|
|
355
358
|
/** Parameters whose change will cause scroll to be reset. */
|
|
@@ -404,4 +407,4 @@ interface GridCellEditInfo<T> extends GridCellInfo {
|
|
|
404
407
|
newData: T;
|
|
405
408
|
}
|
|
406
409
|
|
|
407
|
-
export class Grid<T = unknown> extends Widget<GridProps<T>> {
|
|
410
|
+
export class Grid<T = unknown> extends Widget<GridProps<T>> {}
|