cx 25.9.0 → 25.10.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.
- package/LICENSE-THIRD-PARTY.md +91 -91
- package/LICENSE.md +7 -7
- package/README.md +46 -46
- package/dist/charts.js +25 -11
- package/dist/manifest.js +493 -493
- package/dist/ui.js +1 -3
- package/package.json +1 -1
- package/src/charts/Bar.d.ts +27 -27
- package/src/charts/BarGraph.d.ts +15 -15
- package/src/charts/Chart.d.ts +12 -12
- package/src/charts/ColorMap.d.ts +21 -21
- package/src/charts/Column.d.ts +29 -29
- package/src/charts/ColumnBarBase.d.ts +64 -64
- package/src/charts/ColumnBarGraphBase.d.ts +73 -73
- package/src/charts/ColumnGraph.d.ts +18 -18
- package/src/charts/Gridlines.d.ts +24 -24
- package/src/charts/Legend.d.ts +45 -45
- package/src/charts/LegendEntry.d.ts +54 -54
- package/src/charts/LineGraph.d.ts +101 -101
- package/src/charts/Marker.d.ts +110 -110
- package/src/charts/MarkerLine.d.ts +56 -56
- package/src/charts/MouseTracker.d.ts +16 -16
- package/src/charts/PieChart.d.ts +92 -92
- package/src/charts/PieLabel.d.ts +26 -26
- package/src/charts/PieLabelsContainer.d.ts +6 -6
- package/src/charts/Range.d.ts +74 -74
- package/src/charts/RangeMarker.d.ts +35 -35
- package/src/charts/ScatterGraph.d.ts +64 -64
- package/src/charts/Swimlane.d.ts +24 -24
- package/src/charts/Swimlanes.d.ts +41 -41
- package/src/charts/axis/Axis.d.ts +113 -113
- package/src/charts/axis/Axis.js +8 -0
- package/src/charts/axis/Axis.scss +22 -22
- package/src/charts/axis/CategoryAxis.d.ts +30 -30
- package/src/charts/axis/NumericAxis.d.ts +46 -46
- package/src/charts/axis/Stack.d.ts +10 -10
- package/src/charts/axis/TimeAxis.d.ts +31 -31
- package/src/charts/axis/index.d.ts +3 -3
- package/src/charts/axis/index.scss +5 -5
- package/src/charts/axis/variables.scss +2 -2
- package/src/charts/helpers/MinMaxFinder.d.ts +22 -22
- package/src/charts/helpers/PointReducer.d.ts +24 -24
- package/src/charts/helpers/SnapPointFinder.d.ts +30 -30
- package/src/charts/helpers/ValueAtFinder.d.ts +16 -16
- package/src/charts/helpers/index.d.ts +4 -4
- package/src/charts/index.d.ts +27 -27
- package/src/charts/index.scss +22 -22
- package/src/charts/shapes.d.ts +22 -22
- package/src/global.scss +13 -13
- package/src/index.scss +6 -6
- package/src/svg/index.scss +8 -8
- package/src/ui/Instance.js +1 -4
- package/src/ui/index.scss +2 -2
- package/src/ui/layout/index.scss +3 -3
- package/src/ui/layout/variables.scss +2 -2
- package/src/ui/variables.scss +1 -1
- package/src/util/call-once.scss +6 -6
- package/src/util/index.scss +10 -10
- package/src/util/scss/divide.scss +3 -3
- package/src/util/scss/index.scss +9 -9
- package/src/variables.scss +217 -217
- package/src/widgets/AccessorBindings.spec.tsx +66 -66
- package/src/widgets/Button.d.ts +58 -58
- package/src/widgets/CxCredit.d.ts +12 -12
- package/src/widgets/DocumentTitle.d.ts +11 -11
- package/src/widgets/FlexBox.d.ts +69 -69
- package/src/widgets/Heading.d.ts +16 -16
- package/src/widgets/HighlightedSearchText.d.ts +9 -9
- package/src/widgets/HtmlElement.d.ts +30 -30
- package/src/widgets/Icon.d.ts +34 -34
- package/src/widgets/ProgressBar.d.ts +17 -17
- package/src/widgets/Resizer.d.ts +27 -27
- package/src/widgets/Sandbox.d.ts +18 -18
- package/src/widgets/Section.d.ts +52 -52
- package/src/widgets/animations.scss +10 -10
- package/src/widgets/autoFocus.d.ts +1 -1
- package/src/widgets/cx.d.ts +1 -1
- package/src/widgets/drag-drop/DragSource.d.ts +45 -45
- package/src/widgets/drag-drop/DropZone.d.ts +98 -98
- package/src/widgets/drag-drop/index.d.ts +4 -4
- package/src/widgets/drag-drop/index.scss +3 -3
- package/src/widgets/drag-drop/ops.d.ts +56 -56
- package/src/widgets/enableAllInternalDependencies.d.ts +1 -1
- package/src/widgets/form/Calendar.variables.scss +63 -63
- package/src/widgets/form/Checkbox.variables.scss +39 -39
- package/src/widgets/form/ColorPicker.variables.scss +22 -22
- package/src/widgets/form/Radio.variables.scss +45 -45
- package/src/widgets/form/index.scss +24 -24
- package/src/widgets/grid/Grid.d.ts +442 -442
- package/src/widgets/grid/GridCell.d.ts +38 -38
- package/src/widgets/grid/Pagination.d.ts +14 -14
- package/src/widgets/grid/TreeNode.d.ts +23 -23
- package/src/widgets/grid/index.d.ts +3 -3
- package/src/widgets/grid/index.scss +3 -3
- package/src/widgets/icons/arrow-down.svg +3 -3
- package/src/widgets/icons/arrow-right.svg +2 -2
- package/src/widgets/icons/base.svg +104 -104
- package/src/widgets/icons/calendar-old.svg +169 -169
- package/src/widgets/icons/calendar.svg +187 -187
- package/src/widgets/icons/clear.svg +74 -74
- package/src/widgets/icons/close.svg +74 -74
- package/src/widgets/icons/dropdown-arrow.svg +61 -61
- package/src/widgets/icons/file.svg +4 -4
- package/src/widgets/icons/folder-open.svg +5 -5
- package/src/widgets/icons/folder.svg +58 -58
- package/src/widgets/icons/forward.svg +67 -67
- package/src/widgets/icons/loading.svg +4 -4
- package/src/widgets/icons/search.svg +107 -107
- package/src/widgets/icons/sort-asc.svg +3 -3
- package/src/widgets/index.d.ts +55 -55
- package/src/widgets/index.scss +16 -16
- package/src/widgets/nav/Link.d.ts +26 -26
- package/src/widgets/nav/LinkButton.d.ts +34 -34
- package/src/widgets/nav/Menu.d.ts +27 -27
- package/src/widgets/nav/MenuItem.d.ts +31 -31
- package/src/widgets/nav/MenuSpacer.d.ts +5 -5
- package/src/widgets/nav/RedirectRoute.d.ts +9 -9
- package/src/widgets/nav/Route.d.ts +21 -21
- package/src/widgets/nav/Scroller.d.ts +17 -17
- package/src/widgets/nav/Submenu.d.ts +6 -6
- package/src/widgets/nav/Tab.d.ts +33 -33
- package/src/widgets/nav/Tab.variables.scss +84 -84
- package/src/widgets/nav/index.d.ts +10 -10
- package/src/widgets/nav/index.scss +5 -5
- package/src/widgets/overlay/ContextMenu.d.ts +10 -10
- package/src/widgets/overlay/Dropdown.d.ts +32 -32
- package/src/widgets/overlay/FlyweightTooltipTracker.d.ts +8 -8
- package/src/widgets/overlay/MsgBox.d.ts +16 -16
- package/src/widgets/overlay/Overlay.d.ts +73 -73
- package/src/widgets/overlay/Toast.d.ts +30 -30
- package/src/widgets/overlay/Tooltip.d.ts +50 -50
- package/src/widgets/overlay/Window.d.ts +42 -42
- package/src/widgets/overlay/Window.variables.scss +62 -62
- package/src/widgets/overlay/alerts.d.ts +7 -7
- package/src/widgets/overlay/captureMouse.d.ts +53 -53
- package/src/widgets/overlay/captureMouse.scss +13 -13
- package/src/widgets/overlay/createHotPromiseWindowFactory.d.ts +18 -18
- package/src/widgets/overlay/index.d.ts +11 -11
- package/src/widgets/overlay/index.scss +15 -15
package/dist/ui.js
CHANGED
|
@@ -1666,12 +1666,10 @@ var Instance = /*#__PURE__*/ (function () {
|
|
|
1666
1666
|
// widget is initialized when the first instance is initialized
|
|
1667
1667
|
if (!this.widget.initialized) {
|
|
1668
1668
|
this.widget.init(context);
|
|
1669
|
-
|
|
1670
|
-
// init default values
|
|
1671
|
-
this.widget.selector.init(this.parentStore);
|
|
1672
1669
|
this.widget.initialized = true;
|
|
1673
1670
|
}
|
|
1674
1671
|
if (!this.dataSelector) {
|
|
1672
|
+
this.widget.selector.init(this.parentStore);
|
|
1675
1673
|
this.dataSelector = this.widget.selector.createStoreSelector();
|
|
1676
1674
|
}
|
|
1677
1675
|
|
package/package.json
CHANGED
package/src/charts/Bar.d.ts
CHANGED
|
@@ -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> {}
|
package/src/charts/BarGraph.d.ts
CHANGED
|
@@ -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> {}
|
package/src/charts/Chart.d.ts
CHANGED
|
@@ -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> {}
|
package/src/charts/ColorMap.d.ts
CHANGED
|
@@ -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
|
+
}
|
package/src/charts/Column.d.ts
CHANGED
|
@@ -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> {}
|