cx 24.7.4 → 24.7.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.
- package/dist/manifest.js +857 -857
- package/dist/widgets.js +1 -0
- package/package.json +1 -1
- package/src/charts/Column.d.ts +29 -27
- package/src/charts/LegendEntry.d.ts +15 -13
- package/src/widgets/form/ColorField.d.ts +44 -43
- package/src/widgets/form/DateTimeField.d.ts +89 -86
- package/src/widgets/form/LookupField.d.ts +176 -173
- package/src/widgets/form/MonthField.d.ts +95 -92
- package/src/widgets/grid/Grid.js +2 -1
package/dist/widgets.js
CHANGED
|
@@ -16259,6 +16259,7 @@ var Grid = /*#__PURE__*/ (function (_Container) {
|
|
|
16259
16259
|
},
|
|
16260
16260
|
]
|
|
16261
16261
|
: null;
|
|
16262
|
+
if (sorters == null) field = null;
|
|
16262
16263
|
instance.set("sorters", sorters);
|
|
16263
16264
|
instance.set("sortField", field);
|
|
16264
16265
|
instance.set("sortDirection", direction);
|
package/package.json
CHANGED
package/src/charts/Column.d.ts
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import * as Cx from "../core";
|
|
2
|
-
import { ColumnBarBaseProps } from "./ColumnBarBase";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
selection?:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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,35 +1,34 @@
|
|
|
1
|
-
import * as Cx from
|
|
1
|
+
import * as Cx from "../core";
|
|
2
2
|
|
|
3
3
|
interface LegendEntryProps extends Cx.HtmlElementProps {
|
|
4
|
-
|
|
5
4
|
/** Indicate that entry is selected. */
|
|
6
|
-
selected?: Cx.BooleanProp
|
|
5
|
+
selected?: Cx.BooleanProp;
|
|
7
6
|
|
|
8
7
|
/** Shape of the symbol. `square`, `circle`, `triangle` etc. */
|
|
9
|
-
shape?: Cx.StringProp
|
|
8
|
+
shape?: Cx.StringProp;
|
|
10
9
|
|
|
11
10
|
/** Size of the symbol in pixels. Default value is `18`. */
|
|
12
|
-
size?: Cx.NumberProp
|
|
11
|
+
size?: Cx.NumberProp;
|
|
13
12
|
|
|
14
13
|
/** Index of a color from the standard palette of colors. 0-15. */
|
|
15
|
-
colorIndex?: Cx.NumberProp
|
|
14
|
+
colorIndex?: Cx.NumberProp;
|
|
16
15
|
|
|
17
16
|
/** Used to automatically assign a color based on the `name` and the contextual `ColorMap` widget. */
|
|
18
|
-
colorMap?: Cx.StringProp
|
|
17
|
+
colorMap?: Cx.StringProp;
|
|
19
18
|
|
|
20
19
|
/** Name used to resolve the color. If not provided, `name` is used instead. */
|
|
21
|
-
colorName?: Cx.StringProp
|
|
20
|
+
colorName?: Cx.StringProp;
|
|
22
21
|
|
|
23
22
|
/** Name of the item as it will appear in the legend. */
|
|
24
|
-
name?: Cx.StringProp
|
|
23
|
+
name?: Cx.StringProp;
|
|
25
24
|
|
|
26
25
|
/** Used to indicate if an item is active or not. Inactive items are shown only in the legend. */
|
|
27
|
-
active?: Cx.BooleanProp
|
|
26
|
+
active?: Cx.BooleanProp;
|
|
28
27
|
|
|
29
28
|
/** Base CSS class to be applied to the element. No class is applied by default. */
|
|
30
|
-
baseClass?: string
|
|
29
|
+
baseClass?: string;
|
|
31
30
|
|
|
32
|
-
legendAction?: string
|
|
31
|
+
legendAction?: string;
|
|
33
32
|
|
|
34
33
|
/** Size of the svg shape container in pixels. Default value is 20. */
|
|
35
34
|
svgSize?: number;
|
|
@@ -47,6 +46,9 @@ interface LegendEntryProps extends Cx.HtmlElementProps {
|
|
|
47
46
|
* If unit is not specified, it defaults to `px`.
|
|
48
47
|
*/
|
|
49
48
|
ry?: Cx.StringProp | Cx.NumberProp;
|
|
49
|
+
|
|
50
|
+
/** Selection configuration. */
|
|
51
|
+
selection?: Cx.Config;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
|
-
export class LegendEntry extends Cx.Widget<LegendEntryProps> {}
|
|
54
|
+
export class LegendEntry extends Cx.Widget<LegendEntryProps> {}
|
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import * as Cx from
|
|
2
|
-
import { FieldProps } from
|
|
3
|
-
|
|
4
|
-
interface ColorFieldProps extends FieldProps {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
*
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
1
|
+
import * as Cx from "../../core";
|
|
2
|
+
import { FieldProps } from "./Field";
|
|
3
|
+
|
|
4
|
+
interface ColorFieldProps extends FieldProps {
|
|
5
|
+
/** Either `rgba`, `hsla` or `hex` value of the selected color. */
|
|
6
|
+
value?: Cx.StringProp;
|
|
7
|
+
|
|
8
|
+
/** Defaults to `false`. Used to make the field read-only. */
|
|
9
|
+
readOnly?: Cx.BooleanProp;
|
|
10
|
+
|
|
11
|
+
/** The opposite of `disabled`. */
|
|
12
|
+
enabled?: Cx.BooleanProp;
|
|
13
|
+
|
|
14
|
+
/** Default text displayed when the field is empty. */
|
|
15
|
+
placeholder?: Cx.StringProp;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Set to `true` to hide the clear button.
|
|
19
|
+
* It can be used interchangeably with the `showClear` property. Default value is `false`.
|
|
20
|
+
*/
|
|
21
|
+
hideClear?: boolean;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Set to `false` to hide the clear button.
|
|
25
|
+
* It can be used interchangeably with the `hideClear` property. Default value is `true`.
|
|
26
|
+
*/
|
|
27
|
+
showClear?: boolean;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Set to `true` to display the clear button even if `required` is set. Default is `false`.
|
|
31
|
+
*/
|
|
32
|
+
alwaysShowClear?: boolean;
|
|
33
|
+
|
|
34
|
+
/** Base CSS class to be applied to the element. Defaults to `colorfield`. */
|
|
35
|
+
baseClass?: boolean;
|
|
36
|
+
|
|
37
|
+
/** Format of the color representation. Either `rgba`, `hsla` or `hex`. */
|
|
38
|
+
format?: "rgba" | "hsla" | "hex";
|
|
39
|
+
|
|
40
|
+
/** Additional configuration to be passed to the dropdown, such as `style`, `positioning`, etc. */
|
|
41
|
+
dropdownOptions?: Cx.Config;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export class ColorField extends Cx.Widget<ColorFieldProps> {}
|
|
@@ -1,86 +1,89 @@
|
|
|
1
|
-
import * as Cx from "../../core";
|
|
2
|
-
import { FieldProps } from "./Field";
|
|
3
|
-
|
|
4
|
-
export interface DateTimeFieldProps extends FieldProps {
|
|
5
|
-
/** Selected date. This should be a Date object or a valid date string consumable by Date.parse function. */
|
|
6
|
-
value?: Cx.Prop<string | Date>;
|
|
7
|
-
|
|
8
|
-
/** Defaults to false. Used to make the field read-only. */
|
|
9
|
-
readOnly?: Cx.BooleanProp;
|
|
10
|
-
|
|
11
|
-
/** The opposite of `disabled`. */
|
|
12
|
-
enabled?: Cx.BooleanProp;
|
|
13
|
-
|
|
14
|
-
/** Default text displayed when the field is empty. */
|
|
15
|
-
placeholder?: Cx.StringProp;
|
|
16
|
-
|
|
17
|
-
/** Minimum date value. This should be a Date object or a valid date string consumable by Date.parse function. */
|
|
18
|
-
minValue?: Cx.Prop<string | Date>;
|
|
19
|
-
|
|
20
|
-
/** Set to `true` to disallow the `minValue`. Default value is `false`. */
|
|
21
|
-
minExclusive?: Cx.BooleanProp;
|
|
22
|
-
|
|
23
|
-
/** Maximum date value. This should be a Date object or a valid date string consumable by Date.parse function. */
|
|
24
|
-
maxValue?: Cx.Prop<string | Date>;
|
|
25
|
-
|
|
26
|
-
/** Set to `true` to disallow the `maxValue`. Default value is `false`. */
|
|
27
|
-
maxExclusive?: Cx.BooleanProp;
|
|
28
|
-
|
|
29
|
-
/** Date format used to display the selected date. See Formatting for more details. */
|
|
30
|
-
format?: Cx.StringProp;
|
|
31
|
-
|
|
32
|
-
/** Base CSS class to be applied to the field. Defaults to `datefield`. */
|
|
33
|
-
baseClass?: string;
|
|
34
|
-
|
|
35
|
-
/** Maximum value error text. */
|
|
36
|
-
maxValueErrorText?: string;
|
|
37
|
-
|
|
38
|
-
/** Maximum exclusive value error text. */
|
|
39
|
-
maxExclusiveErrorText?: string;
|
|
40
|
-
|
|
41
|
-
/** Minimum value error text. */
|
|
42
|
-
minValueErrorText?: string;
|
|
43
|
-
|
|
44
|
-
/** Minimum exclusive value error text. */
|
|
45
|
-
minExclusiveErrorText?: string;
|
|
46
|
-
|
|
47
|
-
/** Error message used to indicate wrong user input, e.g. invalid date entered. */
|
|
48
|
-
inputErrorText?: string;
|
|
49
|
-
|
|
50
|
-
/** Name or configuration of the icon to be put on the left side of the input. */
|
|
51
|
-
icon?: Cx.StringProp | Cx.Record;
|
|
52
|
-
|
|
53
|
-
/** Set to false to hide the clear button. It can be used interchangeably with the hideClear property. Default value is true. */
|
|
54
|
-
showClear?: boolean;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Set to `true` to display the clear button even if `required` is set. Default is `false`.
|
|
58
|
-
*/
|
|
59
|
-
alwaysShowClear?: boolean;
|
|
60
|
-
|
|
61
|
-
/** Set to true to hide the clear button. It can be used interchangeably with the showClear property. Default value is false. */
|
|
62
|
-
hideClear?: boolean;
|
|
63
|
-
|
|
64
|
-
/** Determines which segment of date/time is used. Default value is `datetime`. */
|
|
65
|
-
segment?: "date" | "time" | "datetime";
|
|
66
|
-
|
|
67
|
-
/** Set to `true` to indicate that only one segment of the selected date is affected. */
|
|
68
|
-
partial?: boolean;
|
|
69
|
-
|
|
70
|
-
/** The function that will be used to convert Date objects before writing data to the store.
|
|
71
|
-
* Default implementation is Date.toISOString.
|
|
72
|
-
* See also Culture.setDefaultDateEncoding.
|
|
73
|
-
*/
|
|
74
|
-
encoding?: (date: Date) => any;
|
|
75
|
-
|
|
76
|
-
/** Defines which days of week should be displayed as disabled, i.e. `[0, 6]` will make Sunday and Saturday unselectable. */
|
|
77
|
-
disabledDaysOfWeek?: number[];
|
|
78
|
-
|
|
79
|
-
/** Set to true to focus the input field instead of the picker first. */
|
|
80
|
-
focusInputFirst?: boolean;
|
|
81
|
-
|
|
82
|
-
/** Set to true to enable seconds segment in the picker. */
|
|
83
|
-
showSeconds?: boolean;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
1
|
+
import * as Cx from "../../core";
|
|
2
|
+
import { FieldProps } from "./Field";
|
|
3
|
+
|
|
4
|
+
export interface DateTimeFieldProps extends FieldProps {
|
|
5
|
+
/** Selected date. This should be a Date object or a valid date string consumable by Date.parse function. */
|
|
6
|
+
value?: Cx.Prop<string | Date>;
|
|
7
|
+
|
|
8
|
+
/** Defaults to false. Used to make the field read-only. */
|
|
9
|
+
readOnly?: Cx.BooleanProp;
|
|
10
|
+
|
|
11
|
+
/** The opposite of `disabled`. */
|
|
12
|
+
enabled?: Cx.BooleanProp;
|
|
13
|
+
|
|
14
|
+
/** Default text displayed when the field is empty. */
|
|
15
|
+
placeholder?: Cx.StringProp;
|
|
16
|
+
|
|
17
|
+
/** Minimum date value. This should be a Date object or a valid date string consumable by Date.parse function. */
|
|
18
|
+
minValue?: Cx.Prop<string | Date>;
|
|
19
|
+
|
|
20
|
+
/** Set to `true` to disallow the `minValue`. Default value is `false`. */
|
|
21
|
+
minExclusive?: Cx.BooleanProp;
|
|
22
|
+
|
|
23
|
+
/** Maximum date value. This should be a Date object or a valid date string consumable by Date.parse function. */
|
|
24
|
+
maxValue?: Cx.Prop<string | Date>;
|
|
25
|
+
|
|
26
|
+
/** Set to `true` to disallow the `maxValue`. Default value is `false`. */
|
|
27
|
+
maxExclusive?: Cx.BooleanProp;
|
|
28
|
+
|
|
29
|
+
/** Date format used to display the selected date. See Formatting for more details. */
|
|
30
|
+
format?: Cx.StringProp;
|
|
31
|
+
|
|
32
|
+
/** Base CSS class to be applied to the field. Defaults to `datefield`. */
|
|
33
|
+
baseClass?: string;
|
|
34
|
+
|
|
35
|
+
/** Maximum value error text. */
|
|
36
|
+
maxValueErrorText?: string;
|
|
37
|
+
|
|
38
|
+
/** Maximum exclusive value error text. */
|
|
39
|
+
maxExclusiveErrorText?: string;
|
|
40
|
+
|
|
41
|
+
/** Minimum value error text. */
|
|
42
|
+
minValueErrorText?: string;
|
|
43
|
+
|
|
44
|
+
/** Minimum exclusive value error text. */
|
|
45
|
+
minExclusiveErrorText?: string;
|
|
46
|
+
|
|
47
|
+
/** Error message used to indicate wrong user input, e.g. invalid date entered. */
|
|
48
|
+
inputErrorText?: string;
|
|
49
|
+
|
|
50
|
+
/** Name or configuration of the icon to be put on the left side of the input. */
|
|
51
|
+
icon?: Cx.StringProp | Cx.Record;
|
|
52
|
+
|
|
53
|
+
/** Set to false to hide the clear button. It can be used interchangeably with the hideClear property. Default value is true. */
|
|
54
|
+
showClear?: boolean;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Set to `true` to display the clear button even if `required` is set. Default is `false`.
|
|
58
|
+
*/
|
|
59
|
+
alwaysShowClear?: boolean;
|
|
60
|
+
|
|
61
|
+
/** Set to true to hide the clear button. It can be used interchangeably with the showClear property. Default value is false. */
|
|
62
|
+
hideClear?: boolean;
|
|
63
|
+
|
|
64
|
+
/** Determines which segment of date/time is used. Default value is `datetime`. */
|
|
65
|
+
segment?: "date" | "time" | "datetime";
|
|
66
|
+
|
|
67
|
+
/** Set to `true` to indicate that only one segment of the selected date is affected. */
|
|
68
|
+
partial?: boolean;
|
|
69
|
+
|
|
70
|
+
/** The function that will be used to convert Date objects before writing data to the store.
|
|
71
|
+
* Default implementation is Date.toISOString.
|
|
72
|
+
* See also Culture.setDefaultDateEncoding.
|
|
73
|
+
*/
|
|
74
|
+
encoding?: (date: Date) => any;
|
|
75
|
+
|
|
76
|
+
/** Defines which days of week should be displayed as disabled, i.e. `[0, 6]` will make Sunday and Saturday unselectable. */
|
|
77
|
+
disabledDaysOfWeek?: number[];
|
|
78
|
+
|
|
79
|
+
/** Set to true to focus the input field instead of the picker first. */
|
|
80
|
+
focusInputFirst?: boolean;
|
|
81
|
+
|
|
82
|
+
/** Set to true to enable seconds segment in the picker. */
|
|
83
|
+
showSeconds?: boolean;
|
|
84
|
+
|
|
85
|
+
/** Additional configuration to be passed to the dropdown, such as `style`, `positioning`, etc. */
|
|
86
|
+
dropdownOptions?: Cx.Config;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export class DateTimeField extends Cx.Widget<DateTimeFieldProps> {}
|