cx 25.10.1 → 25.11.1

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 (141) hide show
  1. package/LICENSE-THIRD-PARTY.md +91 -91
  2. package/LICENSE.md +7 -7
  3. package/README.md +46 -46
  4. package/dist/manifest.js +705 -705
  5. package/dist/ui.js +4 -2
  6. package/dist/widgets.js +2 -0
  7. package/package.json +1 -1
  8. package/src/charts/Bar.d.ts +27 -27
  9. package/src/charts/BarGraph.d.ts +15 -15
  10. package/src/charts/Chart.d.ts +12 -12
  11. package/src/charts/ColorMap.d.ts +21 -21
  12. package/src/charts/Column.d.ts +29 -29
  13. package/src/charts/ColumnBarBase.d.ts +64 -64
  14. package/src/charts/ColumnBarGraphBase.d.ts +73 -73
  15. package/src/charts/ColumnGraph.d.ts +18 -18
  16. package/src/charts/Gridlines.d.ts +24 -24
  17. package/src/charts/Legend.d.ts +45 -45
  18. package/src/charts/LegendEntry.d.ts +54 -54
  19. package/src/charts/LineGraph.d.ts +101 -101
  20. package/src/charts/Marker.d.ts +110 -110
  21. package/src/charts/MarkerLine.d.ts +56 -56
  22. package/src/charts/MouseTracker.d.ts +16 -16
  23. package/src/charts/PieChart.d.ts +92 -92
  24. package/src/charts/PieLabel.d.ts +26 -26
  25. package/src/charts/PieLabelsContainer.d.ts +6 -6
  26. package/src/charts/Range.d.ts +74 -74
  27. package/src/charts/RangeMarker.d.ts +35 -35
  28. package/src/charts/ScatterGraph.d.ts +64 -64
  29. package/src/charts/Swimlane.d.ts +24 -24
  30. package/src/charts/Swimlanes.d.ts +41 -41
  31. package/src/charts/axis/Axis.d.ts +113 -113
  32. package/src/charts/axis/Axis.scss +22 -22
  33. package/src/charts/axis/CategoryAxis.d.ts +30 -30
  34. package/src/charts/axis/NumericAxis.d.ts +46 -46
  35. package/src/charts/axis/Stack.d.ts +10 -10
  36. package/src/charts/axis/TimeAxis.d.ts +31 -31
  37. package/src/charts/axis/index.d.ts +3 -3
  38. package/src/charts/axis/index.scss +5 -5
  39. package/src/charts/axis/variables.scss +2 -2
  40. package/src/charts/helpers/MinMaxFinder.d.ts +22 -22
  41. package/src/charts/helpers/PointReducer.d.ts +24 -24
  42. package/src/charts/helpers/SnapPointFinder.d.ts +30 -30
  43. package/src/charts/helpers/ValueAtFinder.d.ts +16 -16
  44. package/src/charts/helpers/index.d.ts +4 -4
  45. package/src/charts/index.d.ts +27 -27
  46. package/src/charts/index.scss +22 -22
  47. package/src/charts/shapes.d.ts +22 -22
  48. package/src/data/Grouper.spec.js +57 -57
  49. package/src/global.scss +13 -13
  50. package/src/index.scss +6 -6
  51. package/src/svg/index.scss +8 -8
  52. package/src/ui/adapter/ArrayAdapter.js +152 -152
  53. package/src/ui/adapter/GroupAdapter.js +143 -140
  54. package/src/ui/index.scss +2 -2
  55. package/src/ui/layout/index.scss +3 -3
  56. package/src/ui/layout/variables.scss +2 -2
  57. package/src/ui/variables.scss +1 -1
  58. package/src/util/call-once.scss +6 -6
  59. package/src/util/index.scss +10 -10
  60. package/src/util/scss/divide.scss +3 -3
  61. package/src/util/scss/index.scss +9 -9
  62. package/src/variables.scss +217 -217
  63. package/src/widgets/AccessorBindings.spec.tsx +66 -66
  64. package/src/widgets/Button.d.ts +58 -58
  65. package/src/widgets/CxCredit.d.ts +12 -12
  66. package/src/widgets/DocumentTitle.d.ts +11 -11
  67. package/src/widgets/FlexBox.d.ts +69 -69
  68. package/src/widgets/Heading.d.ts +16 -16
  69. package/src/widgets/HighlightedSearchText.d.ts +9 -9
  70. package/src/widgets/HtmlElement.d.ts +30 -30
  71. package/src/widgets/Icon.d.ts +34 -34
  72. package/src/widgets/ProgressBar.d.ts +17 -17
  73. package/src/widgets/Resizer.d.ts +27 -27
  74. package/src/widgets/Sandbox.d.ts +18 -18
  75. package/src/widgets/Section.d.ts +52 -52
  76. package/src/widgets/animations.scss +10 -10
  77. package/src/widgets/autoFocus.d.ts +1 -1
  78. package/src/widgets/cx.d.ts +1 -1
  79. package/src/widgets/drag-drop/DragSource.d.ts +45 -45
  80. package/src/widgets/drag-drop/DropZone.d.ts +98 -98
  81. package/src/widgets/drag-drop/index.d.ts +4 -4
  82. package/src/widgets/drag-drop/index.scss +3 -3
  83. package/src/widgets/drag-drop/ops.d.ts +56 -56
  84. package/src/widgets/enableAllInternalDependencies.d.ts +1 -1
  85. package/src/widgets/form/Calendar.variables.scss +63 -63
  86. package/src/widgets/form/Checkbox.variables.scss +39 -39
  87. package/src/widgets/form/ColorPicker.variables.scss +22 -22
  88. package/src/widgets/form/Radio.variables.scss +45 -45
  89. package/src/widgets/form/index.scss +24 -24
  90. package/src/widgets/grid/Grid.d.ts +3 -0
  91. package/src/widgets/grid/Grid.js +3431 -3429
  92. package/src/widgets/grid/GridCell.d.ts +38 -38
  93. package/src/widgets/grid/Pagination.d.ts +14 -14
  94. package/src/widgets/grid/TreeNode.d.ts +23 -23
  95. package/src/widgets/grid/index.d.ts +3 -3
  96. package/src/widgets/grid/index.scss +3 -3
  97. package/src/widgets/icons/arrow-down.svg +3 -3
  98. package/src/widgets/icons/arrow-right.svg +2 -2
  99. package/src/widgets/icons/base.svg +104 -104
  100. package/src/widgets/icons/calendar-old.svg +169 -169
  101. package/src/widgets/icons/calendar.svg +187 -187
  102. package/src/widgets/icons/clear.svg +74 -74
  103. package/src/widgets/icons/close.svg +74 -74
  104. package/src/widgets/icons/dropdown-arrow.svg +61 -61
  105. package/src/widgets/icons/file.svg +4 -4
  106. package/src/widgets/icons/folder-open.svg +5 -5
  107. package/src/widgets/icons/folder.svg +58 -58
  108. package/src/widgets/icons/forward.svg +67 -67
  109. package/src/widgets/icons/loading.svg +4 -4
  110. package/src/widgets/icons/search.svg +107 -107
  111. package/src/widgets/icons/sort-asc.svg +3 -3
  112. package/src/widgets/index.d.ts +55 -55
  113. package/src/widgets/index.scss +16 -16
  114. package/src/widgets/nav/Link.d.ts +26 -26
  115. package/src/widgets/nav/LinkButton.d.ts +34 -34
  116. package/src/widgets/nav/Menu.d.ts +27 -27
  117. package/src/widgets/nav/MenuItem.d.ts +31 -31
  118. package/src/widgets/nav/MenuSpacer.d.ts +5 -5
  119. package/src/widgets/nav/RedirectRoute.d.ts +9 -9
  120. package/src/widgets/nav/Route.d.ts +21 -21
  121. package/src/widgets/nav/Scroller.d.ts +17 -17
  122. package/src/widgets/nav/Submenu.d.ts +6 -6
  123. package/src/widgets/nav/Tab.d.ts +33 -33
  124. package/src/widgets/nav/Tab.variables.scss +84 -84
  125. package/src/widgets/nav/index.d.ts +10 -10
  126. package/src/widgets/nav/index.scss +5 -5
  127. package/src/widgets/overlay/ContextMenu.d.ts +10 -10
  128. package/src/widgets/overlay/Dropdown.d.ts +32 -32
  129. package/src/widgets/overlay/FlyweightTooltipTracker.d.ts +8 -8
  130. package/src/widgets/overlay/MsgBox.d.ts +16 -16
  131. package/src/widgets/overlay/Overlay.d.ts +73 -73
  132. package/src/widgets/overlay/Toast.d.ts +30 -30
  133. package/src/widgets/overlay/Tooltip.d.ts +50 -50
  134. package/src/widgets/overlay/Window.d.ts +42 -42
  135. package/src/widgets/overlay/Window.variables.scss +62 -62
  136. package/src/widgets/overlay/alerts.d.ts +7 -7
  137. package/src/widgets/overlay/captureMouse.d.ts +53 -53
  138. package/src/widgets/overlay/captureMouse.scss +13 -13
  139. package/src/widgets/overlay/createHotPromiseWindowFactory.d.ts +18 -18
  140. package/src/widgets/overlay/index.d.ts +11 -11
  141. package/src/widgets/overlay/index.scss +15 -15
package/dist/ui.js CHANGED
@@ -979,7 +979,7 @@ var ArrayAdapter = /*#__PURE__*/ (function (_DataAdapter) {
979
979
  var record = _this.mapRecord(context, instance, data, parentStore, recordsAccessor, index);
980
980
  result.push(record);
981
981
  });
982
- if (this.sorter) result = this.sorter(result);
982
+ if (this.sorter && !this.preserveOrder) result = this.sorter(result);
983
983
  return result;
984
984
  };
985
985
  _proto.mapRecord = function mapRecord(context, instance, data, parentStore, recordsAccessor, index) {
@@ -4286,6 +4286,7 @@ var GroupAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
4286
4286
  var level = keys.length;
4287
4287
  var inverseLevel = this.groupings.length - level;
4288
4288
  if (inverseLevel == 0) {
4289
+ if (this.preserveOrder && this.sorter) records = this.sorter(records);
4289
4290
  for (var i = 0; i < records.length; i++) {
4290
4291
  records[i].store.setStore(parentStore);
4291
4292
  result.push(records[i]);
@@ -4297,7 +4298,7 @@ var GroupAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
4297
4298
  grouper.reset();
4298
4299
  grouper.processAll(records);
4299
4300
  var results = grouper.getResults();
4300
- if (grouping.comparer) results.sort(grouping.comparer);
4301
+ if (grouping.comparer && !this.preserveOrder) results.sort(grouping.comparer);
4301
4302
  results.forEach(function (gr) {
4302
4303
  var _data;
4303
4304
  keys.push(gr.key);
@@ -4386,6 +4387,7 @@ var GroupAdapter = /*#__PURE__*/ (function (_ArrayAdapter) {
4386
4387
  return GroupAdapter;
4387
4388
  })(ArrayAdapter);
4388
4389
  GroupAdapter.prototype.groupName = "$group";
4390
+ GroupAdapter.prototype.preserveOrder = false;
4389
4391
  function serializeKey(data) {
4390
4392
  var _data$toString;
4391
4393
  if (isObject(data))
package/dist/widgets.js CHANGED
@@ -15826,6 +15826,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
15826
15826
  indexName: this.indexName,
15827
15827
  sortOptions: this.sortOptions,
15828
15828
  groupings: grouping,
15829
+ preserveOrder: this.preserveGroupOrder,
15829
15830
  },
15830
15831
  this.dataAdapter,
15831
15832
  );
@@ -16860,6 +16861,7 @@ Grid.prototype.preciseMeasurements = false;
16860
16861
  Grid.prototype.hoverChannel = "default";
16861
16862
  Grid.prototype.focusable = null; // automatically resolved
16862
16863
  Grid.prototype.allowsFileDrops = false;
16864
+ Grid.prototype.preserveGroupOrder = false;
16863
16865
  Widget.alias("grid", Grid);
16864
16866
  Localization.registerPrototype("cx/widgets/Grid", Grid);
16865
16867
  var GridComponent = /*#__PURE__*/ (function (_VDOM$Component) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cx",
3
- "version": "25.10.1",
3
+ "version": "25.11.1",
4
4
  "description": "Advanced JavaScript UI framework for admin and dashboard applications with ready to use grid, form and chart components.",
5
5
  "main": "index.js",
6
6
  "jsnext:main": "src/index.js",
@@ -1,28 +1,28 @@
1
- import * as Cx from '../core';
2
- import { ColumnBarBaseProps } from './ColumnBarBase';
3
-
4
- interface BarProps extends ColumnBarBaseProps {
5
-
6
- /** Base value. Default value is `0`. */
7
- x0?: Cx.NumberProp,
8
-
9
- /** Size (width) of the column in axis units. */
10
- size?: Cx.NumberProp,
11
-
12
- /** Set to true to auto calculate size and offset. Available only if the x axis is a category axis. */
13
- autoSize?: Cx.BooleanProp,
14
-
15
- height?: Cx.NumberProp,
16
-
17
- /** Base CSS class to be applied to the element. Defaults to `bar`. */
18
- baseClass?: string,
19
-
20
- /** Tooltip configuration. For more info see Tooltips. */
21
- tooltip?: Cx.StringProp | Cx.StructuredProp,
22
-
23
- /** Selection configuration. */
24
- selection?: Cx.Config
25
-
26
- }
27
-
1
+ import * as Cx from '../core';
2
+ import { ColumnBarBaseProps } from './ColumnBarBase';
3
+
4
+ interface BarProps extends ColumnBarBaseProps {
5
+
6
+ /** Base value. Default value is `0`. */
7
+ x0?: Cx.NumberProp,
8
+
9
+ /** Size (width) of the column in axis units. */
10
+ size?: Cx.NumberProp,
11
+
12
+ /** Set to true to auto calculate size and offset. Available only if the x axis is a category axis. */
13
+ autoSize?: Cx.BooleanProp,
14
+
15
+ height?: Cx.NumberProp,
16
+
17
+ /** Base CSS class to be applied to the element. Defaults to `bar`. */
18
+ baseClass?: string,
19
+
20
+ /** Tooltip configuration. For more info see Tooltips. */
21
+ tooltip?: Cx.StringProp | Cx.StructuredProp,
22
+
23
+ /** Selection configuration. */
24
+ selection?: Cx.Config
25
+
26
+ }
27
+
28
28
  export class Bar extends Cx.Widget<BarProps> {}
@@ -1,15 +1,15 @@
1
- import * as Cx from "../core";
2
- import { ColumnBarGraphBaseProps } from "./ColumnBarGraphBase";
3
-
4
- interface BarGraphProps extends ColumnBarGraphBaseProps {
5
- /** Base CSS class to be applied to the element. Defaults to `bargraph`. */
6
- baseClass?: string;
7
-
8
- /**
9
- * Name of the property which holds the base value.
10
- * Default value is `false`, which means x0 value is not read from the data array.
11
- */
12
- x0Field?: string | false;
13
- }
14
-
15
- export class BarGraph extends Cx.Widget<BarGraphProps> {}
1
+ import * as Cx from "../core";
2
+ import { ColumnBarGraphBaseProps } from "./ColumnBarGraphBase";
3
+
4
+ interface BarGraphProps extends ColumnBarGraphBaseProps {
5
+ /** Base CSS class to be applied to the element. Defaults to `bargraph`. */
6
+ baseClass?: string;
7
+
8
+ /**
9
+ * Name of the property which holds the base value.
10
+ * Default value is `false`, which means x0 value is not read from the data array.
11
+ */
12
+ x0Field?: string | false;
13
+ }
14
+
15
+ export class BarGraph extends Cx.Widget<BarGraphProps> {}
@@ -1,12 +1,12 @@
1
- import * as Cx from "../core";
2
- import { BoundedObject, BoundedObjectProps } from "../svg/BoundedObject";
3
-
4
- interface ChartProps extends BoundedObjectProps {
5
- /** Axis definition. Each key represent an axis, and each value hold axis configuration. */
6
- axes?: Cx.Config;
7
-
8
- /** Put axes over data series. */
9
- axesOnTop?: boolean;
10
- }
11
-
12
- export class Chart extends Cx.Widget<ChartProps> {}
1
+ import * as Cx from "../core";
2
+ import { BoundedObject, BoundedObjectProps } from "../svg/BoundedObject";
3
+
4
+ interface ChartProps extends BoundedObjectProps {
5
+ /** Axis definition. Each key represent an axis, and each value hold axis configuration. */
6
+ axes?: Cx.Config;
7
+
8
+ /** Put axes over data series. */
9
+ axesOnTop?: boolean;
10
+ }
11
+
12
+ export class Chart extends Cx.Widget<ChartProps> {}
@@ -1,21 +1,21 @@
1
- import * as Cx from "../core";
2
- import { PureContainer } from "../ui/PureContainer";
3
-
4
- interface ColorMapProps extends Cx.WidgetProps {
5
- onGetCache?: string | (() => Cx.Record);
6
- names?: Cx.Prop<string[]>;
7
- step?: Cx.NumberProp;
8
- offset?: Cx.NumberProp;
9
- size?: Cx.NumberProp;
10
- }
11
-
12
- export class ColorMap extends Cx.Widget<ColorMapProps> {
13
- static Scope: ColorMapScope;
14
- }
15
-
16
- export class ColorMapScope extends PureContainer {}
17
-
18
- export class ColorIndex {
19
- acknowledge(name: string);
20
- map(name: string): number;
21
- }
1
+ import * as Cx from "../core";
2
+ import { PureContainer } from "../ui/PureContainer";
3
+
4
+ interface ColorMapProps extends Cx.WidgetProps {
5
+ onGetCache?: string | (() => Cx.Record);
6
+ names?: Cx.Prop<string[]>;
7
+ step?: Cx.NumberProp;
8
+ offset?: Cx.NumberProp;
9
+ size?: Cx.NumberProp;
10
+ }
11
+
12
+ export class ColorMap extends Cx.Widget<ColorMapProps> {
13
+ static Scope: ColorMapScope;
14
+ }
15
+
16
+ export class ColorMapScope extends PureContainer {}
17
+
18
+ export class ColorIndex {
19
+ acknowledge(name: string);
20
+ map(name: string): number;
21
+ }
@@ -1,29 +1,29 @@
1
- import * as Cx from "../core";
2
- import { ColumnBarBaseProps } from "./ColumnBarBase";
3
-
4
- interface ColumnProps extends ColumnBarBaseProps {
5
- /** Column base value. Default value is `0`. */
6
- y0?: Cx.NumberProp;
7
-
8
- /** Size (width) of the column in axis units. */
9
- size?: Cx.NumberProp;
10
-
11
- /** Set to true to auto calculate size and offset. Available only if the x axis is a category axis. */
12
- autoSize?: Cx.BooleanProp;
13
-
14
- /** Base CSS class to be applied to the element. Defaults to `column`. */
15
- baseClass?: boolean;
16
-
17
- width?: number;
18
-
19
- /** Selection configuration. */
20
- selection?: Config;
21
-
22
- /** Tooltip configuration. For more info see Tooltips. */
23
- tooltip?: Cx.StringProp | Cx.StructuredProp;
24
-
25
- /** Minimum column size in pixels. Useful for indicating very small values. Default value is 0.5. */
26
- minPixelHeight?: number;
27
- }
28
-
29
- export class Column extends Cx.Widget<ColumnProps> {}
1
+ import * as Cx from "../core";
2
+ import { ColumnBarBaseProps } from "./ColumnBarBase";
3
+
4
+ interface ColumnProps extends ColumnBarBaseProps {
5
+ /** Column base value. Default value is `0`. */
6
+ y0?: Cx.NumberProp;
7
+
8
+ /** Size (width) of the column in axis units. */
9
+ size?: Cx.NumberProp;
10
+
11
+ /** Set to true to auto calculate size and offset. Available only if the x axis is a category axis. */
12
+ autoSize?: Cx.BooleanProp;
13
+
14
+ /** Base CSS class to be applied to the element. Defaults to `column`. */
15
+ baseClass?: boolean;
16
+
17
+ width?: number;
18
+
19
+ /** Selection configuration. */
20
+ selection?: Config;
21
+
22
+ /** Tooltip configuration. For more info see Tooltips. */
23
+ tooltip?: Cx.StringProp | Cx.StructuredProp;
24
+
25
+ /** Minimum column size in pixels. Useful for indicating very small values. Default value is 0.5. */
26
+ minPixelHeight?: number;
27
+ }
28
+
29
+ export class Column extends Cx.Widget<ColumnProps> {}
@@ -1,64 +1,64 @@
1
- import * as Cx from "../core";
2
-
3
- interface ColumnBarBaseProps extends Cx.StyledContainerProps {
4
- /** The `x` value binding or expression. */
5
- x?: Cx.Prop<string | number>;
6
-
7
- /** The `y` value binding or expression. */
8
- y?: Cx.Prop<string | number>;
9
-
10
- disabled?: Cx.BooleanProp;
11
-
12
- /** Index of a color from the standard palette of colors. 0-15. */
13
- colorIndex?: Cx.NumberProp;
14
-
15
- /** Used to automatically assign a color based on the `name` and the contextual `ColorMap` widget. */
16
- colorMap?: Cx.StringProp;
17
-
18
- /** Name used to resolve the color. If not provided, `name` is used instead. */
19
- colorName?: Cx.StringProp;
20
-
21
- /** Name of the item as it will appear in the legend. */
22
- name?: Cx.StringProp;
23
-
24
- /** Used to indicate if an item is active or not. Inactive items are shown only in the legend. */
25
- active?: Cx.BooleanProp;
26
-
27
- /** Indicate that columns should be stacked on top of the other columns. Default value is `false`. */
28
- stacked?: Cx.BooleanProp;
29
-
30
- /** Name of the stack. If multiple stacks are used, each should have a unique name. Default value is `stack`. */
31
- stack?: Cx.StringProp;
32
-
33
- /** Of center offset of the column. Use this in combination with `size` to align multiple series on the same chart. */
34
- offset?: Cx.NumberProp;
35
-
36
- /** Border radius of the column/bar. */
37
- borderRadius?: Cx.NumberProp;
38
-
39
- /**
40
- * Name of the horizontal axis. The value should match one of the horizontal axes set
41
- * in the `axes` configuration of the parent `Chart` component. Default value is `x`.
42
- */
43
- xAxis?: string;
44
-
45
- /**
46
- * Name of the vertical axis. The value should match one of the vertical axes set
47
- * in the `axes` configuration if the parent `Chart` component. Default value is `y`.
48
- */
49
- yAxis?: string;
50
-
51
- /** Name of the legend to be used. Default is `legend`. Set to `false` to hide the legend entry. */
52
- legend?: string | false;
53
-
54
- legendAction?: string;
55
- legendShape?: string;
56
-
57
- /** A value used to identify the group of components participating in hover effect synchronization. */
58
- hoverChannel?: string;
59
-
60
- /** A value used to uniquely identify the record within the hover sync group. */
61
- hoverId?: Cx.StringProp;
62
- }
63
-
64
- export class ColumnBarBase extends Cx.Widget<ColumnBarBaseProps> {}
1
+ import * as Cx from "../core";
2
+
3
+ interface ColumnBarBaseProps extends Cx.StyledContainerProps {
4
+ /** The `x` value binding or expression. */
5
+ x?: Cx.Prop<string | number>;
6
+
7
+ /** The `y` value binding or expression. */
8
+ y?: Cx.Prop<string | number>;
9
+
10
+ disabled?: Cx.BooleanProp;
11
+
12
+ /** Index of a color from the standard palette of colors. 0-15. */
13
+ colorIndex?: Cx.NumberProp;
14
+
15
+ /** Used to automatically assign a color based on the `name` and the contextual `ColorMap` widget. */
16
+ colorMap?: Cx.StringProp;
17
+
18
+ /** Name used to resolve the color. If not provided, `name` is used instead. */
19
+ colorName?: Cx.StringProp;
20
+
21
+ /** Name of the item as it will appear in the legend. */
22
+ name?: Cx.StringProp;
23
+
24
+ /** Used to indicate if an item is active or not. Inactive items are shown only in the legend. */
25
+ active?: Cx.BooleanProp;
26
+
27
+ /** Indicate that columns should be stacked on top of the other columns. Default value is `false`. */
28
+ stacked?: Cx.BooleanProp;
29
+
30
+ /** Name of the stack. If multiple stacks are used, each should have a unique name. Default value is `stack`. */
31
+ stack?: Cx.StringProp;
32
+
33
+ /** Of center offset of the column. Use this in combination with `size` to align multiple series on the same chart. */
34
+ offset?: Cx.NumberProp;
35
+
36
+ /** Border radius of the column/bar. */
37
+ borderRadius?: Cx.NumberProp;
38
+
39
+ /**
40
+ * Name of the horizontal axis. The value should match one of the horizontal axes set
41
+ * in the `axes` configuration of the parent `Chart` component. Default value is `x`.
42
+ */
43
+ xAxis?: string;
44
+
45
+ /**
46
+ * Name of the vertical axis. The value should match one of the vertical axes set
47
+ * in the `axes` configuration if the parent `Chart` component. Default value is `y`.
48
+ */
49
+ yAxis?: string;
50
+
51
+ /** Name of the legend to be used. Default is `legend`. Set to `false` to hide the legend entry. */
52
+ legend?: string | false;
53
+
54
+ legendAction?: string;
55
+ legendShape?: string;
56
+
57
+ /** A value used to identify the group of components participating in hover effect synchronization. */
58
+ hoverChannel?: string;
59
+
60
+ /** A value used to uniquely identify the record within the hover sync group. */
61
+ hoverId?: Cx.StringProp;
62
+ }
63
+
64
+ export class ColumnBarBase extends Cx.Widget<ColumnBarBaseProps> {}
@@ -1,73 +1,73 @@
1
- import * as Cx from "../core";
2
- import { KeySelection, PropertySelection } from "../ui/selection";
3
-
4
- interface ColumnBarGraphBaseProps extends Cx.WidgetProps {
5
- /**
6
- * Data for the graph. Each entry should be an object with at least two properties
7
- * whose names should match the `xField` and `yField` values.
8
- */
9
- data?: Cx.RecordsProp;
10
-
11
- /** Index of a color from the standard palette of colors. 0-15. */
12
- colorIndex?: Cx.NumberProp;
13
-
14
- /** Used to automatically assign a color based on the `name` and the contextual `ColorMap` widget. */
15
- colorMap?: Cx.StringProp;
16
-
17
- /** Name used to resolve the color. If not provided, `name` is used instead. */
18
- colorName?: Cx.StringProp;
19
-
20
- /** Name of the item as it will appear in the legend. */
21
- name?: Cx.StringProp;
22
-
23
- /** Size (width) of the column in axis units. */
24
- size?: Cx.NumberProp;
25
-
26
- /** Of center offset of the column. Use this in combination with `size` to align multiple series on the same chart. */
27
- offset?: Cx.NumberProp;
28
-
29
- /** Set to true to auto-calculate size and offset. Available only if the x axis is a category axis. */
30
- autoSize?: Cx.BooleanProp;
31
-
32
- /** Used to indicate if an item is active or not. Inactive items are shown only in the legend. */
33
- active?: Cx.BooleanProp;
34
-
35
- /** Indicate that columns should be stacked on top of the other columns. Default value is `false`. */
36
- stacked?: Cx.BooleanProp;
37
-
38
- /** Border radius of the column/bar. */
39
- borderRadius?: Cx.NumberProp;
40
-
41
- /** Name of the stack. If multiple stacks are used, each should have a unique name. Default value is `stack`. */
42
- stack?: Cx.StringProp;
43
-
44
- /** Name of the horizontal axis. The value should match one of the horizontal axes set
45
- * in the `axes` configuration of the parent `Chart` component. Default value is `x`.
46
- */
47
- xAxis?: string;
48
-
49
- /**
50
- * Name of the vertical axis. The value should match one of the vertical axes set
51
- * in the `axes` configuration if the parent `Chart` component. Default value is `y`.
52
- */
53
- yAxis?: string;
54
-
55
- /** Name of the property which holds the x value. Default value is `x`. */
56
- xField?: string;
57
-
58
- /** Name of the property which holds the y value. Default value is `y`. */
59
- yField?: string;
60
-
61
- colorIndexField?: boolean;
62
-
63
- /** Name of the legend to be used. Default is `legend`. Set to `false` to hide the legend entry. */
64
- legend?: string | false;
65
-
66
- legendAction?: string;
67
- legendShape?: string;
68
-
69
- /** Selection configuration. */
70
- selection?: { type: typeof PropertySelection | typeof KeySelection; [prop: string]: any };
71
- }
72
-
73
- export class ColumnBarGraphBase extends Cx.Widget<ColumnBarGraphBaseProps> {}
1
+ import * as Cx from "../core";
2
+ import { KeySelection, PropertySelection } from "../ui/selection";
3
+
4
+ interface ColumnBarGraphBaseProps extends Cx.WidgetProps {
5
+ /**
6
+ * Data for the graph. Each entry should be an object with at least two properties
7
+ * whose names should match the `xField` and `yField` values.
8
+ */
9
+ data?: Cx.RecordsProp;
10
+
11
+ /** Index of a color from the standard palette of colors. 0-15. */
12
+ colorIndex?: Cx.NumberProp;
13
+
14
+ /** Used to automatically assign a color based on the `name` and the contextual `ColorMap` widget. */
15
+ colorMap?: Cx.StringProp;
16
+
17
+ /** Name used to resolve the color. If not provided, `name` is used instead. */
18
+ colorName?: Cx.StringProp;
19
+
20
+ /** Name of the item as it will appear in the legend. */
21
+ name?: Cx.StringProp;
22
+
23
+ /** Size (width) of the column in axis units. */
24
+ size?: Cx.NumberProp;
25
+
26
+ /** Of center offset of the column. Use this in combination with `size` to align multiple series on the same chart. */
27
+ offset?: Cx.NumberProp;
28
+
29
+ /** Set to true to auto-calculate size and offset. Available only if the x axis is a category axis. */
30
+ autoSize?: Cx.BooleanProp;
31
+
32
+ /** Used to indicate if an item is active or not. Inactive items are shown only in the legend. */
33
+ active?: Cx.BooleanProp;
34
+
35
+ /** Indicate that columns should be stacked on top of the other columns. Default value is `false`. */
36
+ stacked?: Cx.BooleanProp;
37
+
38
+ /** Border radius of the column/bar. */
39
+ borderRadius?: Cx.NumberProp;
40
+
41
+ /** Name of the stack. If multiple stacks are used, each should have a unique name. Default value is `stack`. */
42
+ stack?: Cx.StringProp;
43
+
44
+ /** Name of the horizontal axis. The value should match one of the horizontal axes set
45
+ * in the `axes` configuration of the parent `Chart` component. Default value is `x`.
46
+ */
47
+ xAxis?: string;
48
+
49
+ /**
50
+ * Name of the vertical axis. The value should match one of the vertical axes set
51
+ * in the `axes` configuration if the parent `Chart` component. Default value is `y`.
52
+ */
53
+ yAxis?: string;
54
+
55
+ /** Name of the property which holds the x value. Default value is `x`. */
56
+ xField?: string;
57
+
58
+ /** Name of the property which holds the y value. Default value is `y`. */
59
+ yField?: string;
60
+
61
+ colorIndexField?: boolean;
62
+
63
+ /** Name of the legend to be used. Default is `legend`. Set to `false` to hide the legend entry. */
64
+ legend?: string | false;
65
+
66
+ legendAction?: string;
67
+ legendShape?: string;
68
+
69
+ /** Selection configuration. */
70
+ selection?: { type: typeof PropertySelection | typeof KeySelection; [prop: string]: any };
71
+ }
72
+
73
+ export class ColumnBarGraphBase extends Cx.Widget<ColumnBarGraphBaseProps> {}
@@ -1,18 +1,18 @@
1
- import * as Cx from "../core";
2
- import { ColumnBarGraphBaseProps } from "./ColumnBarGraphBase";
3
-
4
- interface ColumnGraphProps extends ColumnBarGraphBaseProps {
5
- /** Base CSS class to be applied to the element. Defaults to `columngraph`. */
6
- baseClass?: string;
7
-
8
- /**
9
- * Name of the property which holds the base value.
10
- * Default value is `false`, which means y0 value is not read from the data array.
11
- */
12
- y0Field?: string | false;
13
-
14
- /** Column base value. Default value is `0`. */
15
- y0?: Cx.NumberProp;
16
- }
17
-
18
- export class ColumnGraph extends Cx.Widget<ColumnGraphProps> {}
1
+ import * as Cx from "../core";
2
+ import { ColumnBarGraphBaseProps } from "./ColumnBarGraphBase";
3
+
4
+ interface ColumnGraphProps extends ColumnBarGraphBaseProps {
5
+ /** Base CSS class to be applied to the element. Defaults to `columngraph`. */
6
+ baseClass?: string;
7
+
8
+ /**
9
+ * Name of the property which holds the base value.
10
+ * Default value is `false`, which means y0 value is not read from the data array.
11
+ */
12
+ y0Field?: string | false;
13
+
14
+ /** Column base value. Default value is `0`. */
15
+ y0?: Cx.NumberProp;
16
+ }
17
+
18
+ export class ColumnGraph extends Cx.Widget<ColumnGraphProps> {}
@@ -1,25 +1,25 @@
1
- import * as Cx from '../core';
2
- import { BoundedObject, BoundedObjectProps } from '../svg/BoundedObject';
3
-
4
- interface GridlinesProps extends BoundedObjectProps {
5
-
6
- /**
7
- * Name of the horizontal axis. The value should match one of the horizontal axes set
8
- * in the `axes` configuration of the parent `Chart` component. Default value is `x`.
9
- * Set to `false` to hide the grid lines in x direction.
10
- */
11
- xAxis?: string | boolean,
12
-
13
- /**
14
- * Name of the vertical axis. The value should match one of the vertical axes set
15
- * in the `axes` configuration if the parent `Chart` component. Default value is `y`.
16
- * Set to `false` to hide the grid lines in y direction.
17
- */
18
- yAxis?: string | boolean,
19
-
20
- /** Base CSS class to be applied to the element. Defaults to `gridlines`. */
21
- baseClass?: string
22
-
23
- }
24
-
1
+ import * as Cx from '../core';
2
+ import { BoundedObject, BoundedObjectProps } from '../svg/BoundedObject';
3
+
4
+ interface GridlinesProps extends BoundedObjectProps {
5
+
6
+ /**
7
+ * Name of the horizontal axis. The value should match one of the horizontal axes set
8
+ * in the `axes` configuration of the parent `Chart` component. Default value is `x`.
9
+ * Set to `false` to hide the grid lines in x direction.
10
+ */
11
+ xAxis?: string | boolean,
12
+
13
+ /**
14
+ * Name of the vertical axis. The value should match one of the vertical axes set
15
+ * in the `axes` configuration if the parent `Chart` component. Default value is `y`.
16
+ * Set to `false` to hide the grid lines in y direction.
17
+ */
18
+ yAxis?: string | boolean,
19
+
20
+ /** Base CSS class to be applied to the element. Defaults to `gridlines`. */
21
+ baseClass?: string
22
+
23
+ }
24
+
25
25
  export class Gridlines extends Cx.Widget<GridlinesProps> {}