cx 24.6.4 → 24.6.6

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.
Files changed (40) hide show
  1. package/dist/charts.js +27 -29
  2. package/dist/data.js +26 -29
  3. package/dist/manifest.js +808 -802
  4. package/dist/svg.js +59 -56
  5. package/dist/ui.js +51 -52
  6. package/dist/util.js +56 -10
  7. package/dist/widgets.js +74 -74
  8. package/package.json +1 -1
  9. package/src/charts/Legend.js +151 -151
  10. package/src/charts/Marker.d.ts +96 -96
  11. package/src/charts/Marker.js +299 -299
  12. package/src/charts/axis/Axis.d.ts +96 -96
  13. package/src/charts/axis/NumericAxis.js +347 -347
  14. package/src/charts/axis/Stack.js +55 -55
  15. package/src/charts/axis/TimeAxis.js +7 -6
  16. package/src/data/Binding.spec.js +69 -69
  17. package/src/data/StringTemplate.spec.js +105 -105
  18. package/src/data/getAccessor.spec.js +11 -11
  19. package/src/ui/Controller.d.ts +182 -182
  20. package/src/ui/FocusManager.js +171 -171
  21. package/src/ui/Format.js +3 -3
  22. package/src/ui/Instance.d.ts +72 -72
  23. package/src/ui/index.d.ts +42 -42
  24. package/src/util/Format.js +6 -5
  25. package/src/util/date/index.d.ts +10 -9
  26. package/src/util/date/index.js +10 -9
  27. package/src/util/date/parseDateInvariant.d.ts +3 -0
  28. package/src/util/date/parseDateInvariant.js +20 -0
  29. package/src/widgets/drag-drop/DropZone.js +214 -214
  30. package/src/widgets/form/Calendar.js +7 -6
  31. package/src/widgets/form/ColorField.js +3 -3
  32. package/src/widgets/form/DateTimeField.js +9 -6
  33. package/src/widgets/form/DateTimePicker.js +9 -8
  34. package/src/widgets/form/MonthField.js +9 -9
  35. package/src/widgets/form/MonthPicker.js +17 -16
  36. package/src/widgets/form/NumberField.js +1 -1
  37. package/src/widgets/form/TextField.js +290 -289
  38. package/src/widgets/form/UploadButton.d.ts +34 -34
  39. package/src/widgets/grid/variables.scss +88 -88
  40. package/src/widgets/overlay/Dropdown.js +612 -612
@@ -1,96 +1,96 @@
1
- import * as Cx from "../core";
2
- import { BoundedObject, BoundedObjectProps } from "../svg/BoundedObject";
3
-
4
- interface MarkerProps extends BoundedObjectProps {
5
- /** The `x` value binding or expression. */
6
- x?: Cx.Prop<string | number>;
7
-
8
- /** The `y` value binding or expression. */
9
- y?: Cx.Prop<string | number>;
10
-
11
- /** Used to indicate if the data should affect axis span. */
12
- affectsAxes?: Cx.BooleanProp;
13
-
14
- /** Shape kind. `circle`, `square`, `triangle`, etc. */
15
- shape?: Cx.StringProp;
16
-
17
- disabled?: Cx.BooleanProp;
18
-
19
- /** Index of a color from the standard palette of colors. 0-15. */
20
- colorIndex?: Cx.Prop<string | number>;
21
-
22
- /** Used to automatically assign a color based on the `name` and the contextual `ColorMap` widget. */
23
- colorMap?: Cx.StringProp;
24
-
25
- /** Name used to resolve the color. If not provided, `name` is used instead. */
26
- colorName?: Cx.StringProp;
27
-
28
- legendColorIndex?: Cx.NumberProp;
29
-
30
- /** Name of the item as it will appear in the legend. */
31
- name?: Cx.StringProp;
32
-
33
- /** Used to indicate if an item is active or not. Inactive items are shown only in the legend. */
34
- active?: Cx.BooleanProp;
35
-
36
- xOffset?: number;
37
- yOffset?: number;
38
-
39
- /** Size of the shape in pixels. */
40
- size?: Cx.NumberProp;
41
-
42
- /**
43
- * Name of the horizontal axis. The value should match one of the horizontal axes set
44
- * in the `axes` configuration of the parent `Chart` component. Default value is `x`.
45
- */
46
- xAxis?: string;
47
-
48
- /**
49
- * Name of the vertical axis. The value should match one of the vertical axes set
50
- * in the `axes` configuration if the parent `Chart` component. Default value is `y`.
51
- */
52
- yAxis?: string;
53
-
54
- /** Base CSS class to be applied to the element. Defaults to `marker`. */
55
- baseClass?: string;
56
-
57
- /** Set to `true` to make the shape draggable along the X axis. */
58
- draggableX?: boolean;
59
-
60
- /** Set to `true` to make the shape draggable along the Y axis. */
61
- draggableY?: boolean;
62
-
63
- /** Set to `true` to make the shape draggable along the X and Y axis. */
64
- draggable?: boolean;
65
-
66
- /** Constrain the marker position to min/max values of the X axis during drag operations. */
67
- constrainX?: boolean;
68
-
69
- /** Constrain the marker position to min/max values of the Y axis during drag operations. */
70
- constrainY?: boolean;
71
-
72
- /** When set to `true`, it is equivalent to setting `constrainX` and `constrainY` to true. */
73
- constrain?: boolean;
74
-
75
- /** Name of the legend to be used. Default is `legend`. */
76
- legend?: string;
77
-
78
- legendAction?: string;
79
-
80
- /** Tooltip configuration. For more info see Tooltips. */
81
- tooltip?: Cx.StringProp | Cx.StructuredProp;
82
-
83
- /** Set to true to hide the marker. The marker will still participate in axis range calculations. */
84
- hidden?: boolean;
85
-
86
- /** Indicate that markers should be stacked horizontally. Default value is `false`. */
87
- stackedX?: Cx.BooleanProp;
88
-
89
- /** Indicate that markers should be stacked vertically. Default value is `false`. */
90
- stackedY?: Cx.BooleanProp;
91
-
92
- /** Name of the stack. If multiple stacks are used, each should have a unique name. Default value is `stack`. */
93
- stack?: Cx.StringProp;
94
- }
95
-
96
- export class Marker extends Cx.Widget<MarkerProps> {}
1
+ import * as Cx from "../core";
2
+ import { BoundedObject, BoundedObjectProps } from "../svg/BoundedObject";
3
+
4
+ interface MarkerProps extends BoundedObjectProps {
5
+ /** The `x` value binding or expression. */
6
+ x?: Cx.Prop<string | number>;
7
+
8
+ /** The `y` value binding or expression. */
9
+ y?: Cx.Prop<string | number>;
10
+
11
+ /** Used to indicate if the data should affect axis span. */
12
+ affectsAxes?: Cx.BooleanProp;
13
+
14
+ /** Shape kind. `circle`, `square`, `triangle`, etc. */
15
+ shape?: Cx.StringProp;
16
+
17
+ disabled?: Cx.BooleanProp;
18
+
19
+ /** Index of a color from the standard palette of colors. 0-15. */
20
+ colorIndex?: Cx.Prop<string | number>;
21
+
22
+ /** Used to automatically assign a color based on the `name` and the contextual `ColorMap` widget. */
23
+ colorMap?: Cx.StringProp;
24
+
25
+ /** Name used to resolve the color. If not provided, `name` is used instead. */
26
+ colorName?: Cx.StringProp;
27
+
28
+ legendColorIndex?: Cx.NumberProp;
29
+
30
+ /** Name of the item as it will appear in the legend. */
31
+ name?: Cx.StringProp;
32
+
33
+ /** Used to indicate if an item is active or not. Inactive items are shown only in the legend. */
34
+ active?: Cx.BooleanProp;
35
+
36
+ xOffset?: number;
37
+ yOffset?: number;
38
+
39
+ /** Size of the shape in pixels. */
40
+ size?: Cx.NumberProp;
41
+
42
+ /**
43
+ * Name of the horizontal axis. The value should match one of the horizontal axes set
44
+ * in the `axes` configuration of the parent `Chart` component. Default value is `x`.
45
+ */
46
+ xAxis?: string;
47
+
48
+ /**
49
+ * Name of the vertical axis. The value should match one of the vertical axes set
50
+ * in the `axes` configuration if the parent `Chart` component. Default value is `y`.
51
+ */
52
+ yAxis?: string;
53
+
54
+ /** Base CSS class to be applied to the element. Defaults to `marker`. */
55
+ baseClass?: string;
56
+
57
+ /** Set to `true` to make the shape draggable along the X axis. */
58
+ draggableX?: boolean;
59
+
60
+ /** Set to `true` to make the shape draggable along the Y axis. */
61
+ draggableY?: boolean;
62
+
63
+ /** Set to `true` to make the shape draggable along the X and Y axis. */
64
+ draggable?: boolean;
65
+
66
+ /** Constrain the marker position to min/max values of the X axis during drag operations. */
67
+ constrainX?: boolean;
68
+
69
+ /** Constrain the marker position to min/max values of the Y axis during drag operations. */
70
+ constrainY?: boolean;
71
+
72
+ /** When set to `true`, it is equivalent to setting `constrainX` and `constrainY` to true. */
73
+ constrain?: boolean;
74
+
75
+ /** Name of the legend to be used. Default is `legend`. */
76
+ legend?: string;
77
+
78
+ legendAction?: string;
79
+
80
+ /** Tooltip configuration. For more info see Tooltips. */
81
+ tooltip?: Cx.StringProp | Cx.StructuredProp;
82
+
83
+ /** Set to true to hide the marker. The marker will still participate in axis range calculations. */
84
+ hidden?: boolean;
85
+
86
+ /** Indicate that markers should be stacked horizontally. Default value is `false`. */
87
+ stackedX?: Cx.BooleanProp;
88
+
89
+ /** Indicate that markers should be stacked vertically. Default value is `false`. */
90
+ stackedY?: Cx.BooleanProp;
91
+
92
+ /** Name of the stack. If multiple stacks are used, each should have a unique name. Default value is `stack`. */
93
+ stack?: Cx.StringProp;
94
+ }
95
+
96
+ export class Marker extends Cx.Widget<MarkerProps> {}