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.
- package/LICENSE-THIRD-PARTY.md +91 -91
- package/LICENSE.md +7 -7
- package/README.md +46 -46
- package/dist/manifest.js +705 -705
- package/dist/ui.js +4 -2
- package/dist/widgets.js +2 -0
- 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.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/data/Grouper.spec.js +57 -57
- package/src/global.scss +13 -13
- package/src/index.scss +6 -6
- package/src/svg/index.scss +8 -8
- package/src/ui/adapter/ArrayAdapter.js +152 -152
- package/src/ui/adapter/GroupAdapter.js +143 -140
- 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 +3 -0
- package/src/widgets/grid/Grid.js +3431 -3429
- 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
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import * as Cx from "../../core";
|
|
2
|
-
import { Instance } from "../../ui/Instance";
|
|
3
|
-
|
|
4
|
-
interface DragSourceProps extends Cx.StyledContainerProps {
|
|
5
|
-
/**
|
|
6
|
-
* Data about the drag source that can be used by drop zones to test if
|
|
7
|
-
* drag source is acceptable and to perform drop operations.
|
|
8
|
-
*/
|
|
9
|
-
data?: any;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Set to true to hide the element while being dragged.
|
|
13
|
-
* Use if drop zones are configured to expand to indicate where drop will occur.
|
|
14
|
-
*/
|
|
15
|
-
hideOnDrag?: boolean;
|
|
16
|
-
|
|
17
|
-
/** Set to true to indicate that this drag source can be dragged only by using an inner DragHandle. */
|
|
18
|
-
handled?: boolean;
|
|
19
|
-
|
|
20
|
-
/** Base CSS class to be applied to the element. Defaults to 'dragsource'. */
|
|
21
|
-
baseClass?: string;
|
|
22
|
-
|
|
23
|
-
onDragStart?: (e, instance: Instance) => any;
|
|
24
|
-
|
|
25
|
-
onDragEnd?: (e, instance: Instance) => void;
|
|
26
|
-
|
|
27
|
-
id?: Cx.StringProp;
|
|
28
|
-
|
|
29
|
-
/** Custom contents to be displayed during drag & drop operation. */
|
|
30
|
-
clone?: Cx.Config;
|
|
31
|
-
|
|
32
|
-
/** CSS styles to be applied to the clone of the element being dragged. */
|
|
33
|
-
cloneStyle?: Cx.StyleProp;
|
|
34
|
-
|
|
35
|
-
/** CSS styles to be applied to the element being dragged. */
|
|
36
|
-
draggedStyle?: Cx.StyleProp;
|
|
37
|
-
|
|
38
|
-
/** Additional CSS class to be applied to the clone of the element being dragged. */
|
|
39
|
-
cloneClass?: Cx.ClassProp;
|
|
40
|
-
|
|
41
|
-
/** Additional CSS class to be applied to the element being dragged. */
|
|
42
|
-
draggedClass?: Cx.ClassProp;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export class DragSource extends Cx.Widget<DragSourceProps> {}
|
|
1
|
+
import * as Cx from "../../core";
|
|
2
|
+
import { Instance } from "../../ui/Instance";
|
|
3
|
+
|
|
4
|
+
interface DragSourceProps extends Cx.StyledContainerProps {
|
|
5
|
+
/**
|
|
6
|
+
* Data about the drag source that can be used by drop zones to test if
|
|
7
|
+
* drag source is acceptable and to perform drop operations.
|
|
8
|
+
*/
|
|
9
|
+
data?: any;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Set to true to hide the element while being dragged.
|
|
13
|
+
* Use if drop zones are configured to expand to indicate where drop will occur.
|
|
14
|
+
*/
|
|
15
|
+
hideOnDrag?: boolean;
|
|
16
|
+
|
|
17
|
+
/** Set to true to indicate that this drag source can be dragged only by using an inner DragHandle. */
|
|
18
|
+
handled?: boolean;
|
|
19
|
+
|
|
20
|
+
/** Base CSS class to be applied to the element. Defaults to 'dragsource'. */
|
|
21
|
+
baseClass?: string;
|
|
22
|
+
|
|
23
|
+
onDragStart?: (e, instance: Instance) => any;
|
|
24
|
+
|
|
25
|
+
onDragEnd?: (e, instance: Instance) => void;
|
|
26
|
+
|
|
27
|
+
id?: Cx.StringProp;
|
|
28
|
+
|
|
29
|
+
/** Custom contents to be displayed during drag & drop operation. */
|
|
30
|
+
clone?: Cx.Config;
|
|
31
|
+
|
|
32
|
+
/** CSS styles to be applied to the clone of the element being dragged. */
|
|
33
|
+
cloneStyle?: Cx.StyleProp;
|
|
34
|
+
|
|
35
|
+
/** CSS styles to be applied to the element being dragged. */
|
|
36
|
+
draggedStyle?: Cx.StyleProp;
|
|
37
|
+
|
|
38
|
+
/** Additional CSS class to be applied to the clone of the element being dragged. */
|
|
39
|
+
cloneClass?: Cx.ClassProp;
|
|
40
|
+
|
|
41
|
+
/** Additional CSS class to be applied to the element being dragged. */
|
|
42
|
+
draggedClass?: Cx.ClassProp;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export class DragSource extends Cx.Widget<DragSourceProps> {}
|
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
import * as Cx from "../../core";
|
|
2
|
-
|
|
3
|
-
import { Instance } from "../../ui/Instance";
|
|
4
|
-
import { DragEvent } from "./ops";
|
|
5
|
-
|
|
6
|
-
interface DropZoneProps extends Cx.StyledContainerProps {
|
|
7
|
-
/** CSS styles to be applied when drag cursor is over the drop zone. */
|
|
8
|
-
overStyle?: Cx.StyleProp;
|
|
9
|
-
|
|
10
|
-
/** CSS styles to be applied when drag cursor is near the drop zone. */
|
|
11
|
-
nearStyle?: Cx.StyleProp;
|
|
12
|
-
|
|
13
|
-
/** CSS styles to be applied when drag operations begin used to highlight drop zones. */
|
|
14
|
-
farStyle?: Cx.StyleProp;
|
|
15
|
-
|
|
16
|
-
/** Additional CSS class to be applied when drag cursor is over the drop zone. */
|
|
17
|
-
overClass?: Cx.ClassProp;
|
|
18
|
-
|
|
19
|
-
/** Additional CSS class to be applied when drag cursor is near the drop zone. */
|
|
20
|
-
nearClass?: Cx.ClassProp;
|
|
21
|
-
|
|
22
|
-
/** Additional CSS class to be applied when drag operations begin used to highlight drop zones. */
|
|
23
|
-
farClass?: Cx.ClassProp;
|
|
24
|
-
|
|
25
|
-
/** Distance in `px` used to determine if cursor is near the dropzone. If not configured, cursor is never considered near. */
|
|
26
|
-
nearDistance?: number;
|
|
27
|
-
|
|
28
|
-
/** Bindable data related to the DropZone that might be useful inside onDrop operations. */
|
|
29
|
-
data?: Cx.StructuredProp;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Inflate the drop zone's bounding box so it activates on cursor proximity.
|
|
33
|
-
* Useful for invisible drop-zones that are only a few pixels tall/wide.
|
|
34
|
-
*/
|
|
35
|
-
inflate?: number;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Inflate the drop zone's bounding box horizontally so it activates on cursor proximity.
|
|
39
|
-
* Useful for invisible drop-zones that are only a few pixels tall/wide.
|
|
40
|
-
*/
|
|
41
|
-
hinflate?: number;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Inflate the drop zone's bounding box vertically so it activates on cursor proximity.
|
|
45
|
-
* Useful for invisible drop-zones that are only a few pixels tall/wide.
|
|
46
|
-
*/
|
|
47
|
-
vinflate?: number;
|
|
48
|
-
|
|
49
|
-
/** Base CSS class to be applied to the element. Defaults to 'dropzone'. */
|
|
50
|
-
baseClass?: string;
|
|
51
|
-
|
|
52
|
-
/** A callback method invoked when dragged item is finally dropped.
|
|
53
|
-
The callback takes two arguments:
|
|
54
|
-
* dragDropEvent - An object containing information related to the source
|
|
55
|
-
* instance
|
|
56
|
-
Return value is written into dragDropEvent.result and can be passed
|
|
57
|
-
to the source's onDragEnd callback. */
|
|
58
|
-
onDrop?: string | ((event?: DragEvent, instance?: Instance) => any);
|
|
59
|
-
|
|
60
|
-
/** A callback method used to test if dragged item (source) is compatible
|
|
61
|
-
with the drop zone. */
|
|
62
|
-
onDropTest?: string | ((event?: DragEvent, instance?: Instance) => boolean);
|
|
63
|
-
|
|
64
|
-
/** A callback method invoked when the dragged item gets close to the drop zone.
|
|
65
|
-
See also `nearDistance`. */
|
|
66
|
-
onDragNear?: string | ((event?: DragEvent, instance?: Instance) => void);
|
|
67
|
-
|
|
68
|
-
/** A callback method invoked when the dragged item is dragged away. */
|
|
69
|
-
onDragAway?: string | ((event?: DragEvent, instance?: Instance) => void);
|
|
70
|
-
|
|
71
|
-
/** A callback method invoked when the dragged item is dragged over the drop zone.
|
|
72
|
-
The callback is called for each `mousemove` or `touchmove` event. */
|
|
73
|
-
onDragOver?: string | ((event?: DragEvent, instance?: Instance) => void);
|
|
74
|
-
|
|
75
|
-
/** A callback method invoked when the dragged item is dragged over the drop zone
|
|
76
|
-
for the first time. */
|
|
77
|
-
onDragEnter?: string | ((event?: DragEvent, instance?: Instance) => void);
|
|
78
|
-
|
|
79
|
-
/** A callback method invoked when the dragged item leaves the drop zone area. */
|
|
80
|
-
onDragLeave?: string | ((event?: DragEvent, instance?: Instance) => void);
|
|
81
|
-
|
|
82
|
-
/** A callback method invoked when at the beginning of the drag & drop operation. */
|
|
83
|
-
onDragStart?: string | ((event?: DragEvent, instance?: Instance) => void);
|
|
84
|
-
|
|
85
|
-
/** A callback method invoked when at the end of the drag & drop operation. */
|
|
86
|
-
onDragEnd?: string | ((event?: DragEvent, instance?: Instance) => void);
|
|
87
|
-
|
|
88
|
-
/** Match height of the item being dragged */
|
|
89
|
-
matchHeight?: boolean;
|
|
90
|
-
|
|
91
|
-
/** Match width of the item being dragged */
|
|
92
|
-
matchWidth?: boolean;
|
|
93
|
-
|
|
94
|
-
/** Match margin of the item being dragged */
|
|
95
|
-
matchMargin?: boolean;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export class DropZone extends Cx.Widget<DropZoneProps> {}
|
|
1
|
+
import * as Cx from "../../core";
|
|
2
|
+
|
|
3
|
+
import { Instance } from "../../ui/Instance";
|
|
4
|
+
import { DragEvent } from "./ops";
|
|
5
|
+
|
|
6
|
+
interface DropZoneProps extends Cx.StyledContainerProps {
|
|
7
|
+
/** CSS styles to be applied when drag cursor is over the drop zone. */
|
|
8
|
+
overStyle?: Cx.StyleProp;
|
|
9
|
+
|
|
10
|
+
/** CSS styles to be applied when drag cursor is near the drop zone. */
|
|
11
|
+
nearStyle?: Cx.StyleProp;
|
|
12
|
+
|
|
13
|
+
/** CSS styles to be applied when drag operations begin used to highlight drop zones. */
|
|
14
|
+
farStyle?: Cx.StyleProp;
|
|
15
|
+
|
|
16
|
+
/** Additional CSS class to be applied when drag cursor is over the drop zone. */
|
|
17
|
+
overClass?: Cx.ClassProp;
|
|
18
|
+
|
|
19
|
+
/** Additional CSS class to be applied when drag cursor is near the drop zone. */
|
|
20
|
+
nearClass?: Cx.ClassProp;
|
|
21
|
+
|
|
22
|
+
/** Additional CSS class to be applied when drag operations begin used to highlight drop zones. */
|
|
23
|
+
farClass?: Cx.ClassProp;
|
|
24
|
+
|
|
25
|
+
/** Distance in `px` used to determine if cursor is near the dropzone. If not configured, cursor is never considered near. */
|
|
26
|
+
nearDistance?: number;
|
|
27
|
+
|
|
28
|
+
/** Bindable data related to the DropZone that might be useful inside onDrop operations. */
|
|
29
|
+
data?: Cx.StructuredProp;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Inflate the drop zone's bounding box so it activates on cursor proximity.
|
|
33
|
+
* Useful for invisible drop-zones that are only a few pixels tall/wide.
|
|
34
|
+
*/
|
|
35
|
+
inflate?: number;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Inflate the drop zone's bounding box horizontally so it activates on cursor proximity.
|
|
39
|
+
* Useful for invisible drop-zones that are only a few pixels tall/wide.
|
|
40
|
+
*/
|
|
41
|
+
hinflate?: number;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Inflate the drop zone's bounding box vertically so it activates on cursor proximity.
|
|
45
|
+
* Useful for invisible drop-zones that are only a few pixels tall/wide.
|
|
46
|
+
*/
|
|
47
|
+
vinflate?: number;
|
|
48
|
+
|
|
49
|
+
/** Base CSS class to be applied to the element. Defaults to 'dropzone'. */
|
|
50
|
+
baseClass?: string;
|
|
51
|
+
|
|
52
|
+
/** A callback method invoked when dragged item is finally dropped.
|
|
53
|
+
The callback takes two arguments:
|
|
54
|
+
* dragDropEvent - An object containing information related to the source
|
|
55
|
+
* instance
|
|
56
|
+
Return value is written into dragDropEvent.result and can be passed
|
|
57
|
+
to the source's onDragEnd callback. */
|
|
58
|
+
onDrop?: string | ((event?: DragEvent, instance?: Instance) => any);
|
|
59
|
+
|
|
60
|
+
/** A callback method used to test if dragged item (source) is compatible
|
|
61
|
+
with the drop zone. */
|
|
62
|
+
onDropTest?: string | ((event?: DragEvent, instance?: Instance) => boolean);
|
|
63
|
+
|
|
64
|
+
/** A callback method invoked when the dragged item gets close to the drop zone.
|
|
65
|
+
See also `nearDistance`. */
|
|
66
|
+
onDragNear?: string | ((event?: DragEvent, instance?: Instance) => void);
|
|
67
|
+
|
|
68
|
+
/** A callback method invoked when the dragged item is dragged away. */
|
|
69
|
+
onDragAway?: string | ((event?: DragEvent, instance?: Instance) => void);
|
|
70
|
+
|
|
71
|
+
/** A callback method invoked when the dragged item is dragged over the drop zone.
|
|
72
|
+
The callback is called for each `mousemove` or `touchmove` event. */
|
|
73
|
+
onDragOver?: string | ((event?: DragEvent, instance?: Instance) => void);
|
|
74
|
+
|
|
75
|
+
/** A callback method invoked when the dragged item is dragged over the drop zone
|
|
76
|
+
for the first time. */
|
|
77
|
+
onDragEnter?: string | ((event?: DragEvent, instance?: Instance) => void);
|
|
78
|
+
|
|
79
|
+
/** A callback method invoked when the dragged item leaves the drop zone area. */
|
|
80
|
+
onDragLeave?: string | ((event?: DragEvent, instance?: Instance) => void);
|
|
81
|
+
|
|
82
|
+
/** A callback method invoked when at the beginning of the drag & drop operation. */
|
|
83
|
+
onDragStart?: string | ((event?: DragEvent, instance?: Instance) => void);
|
|
84
|
+
|
|
85
|
+
/** A callback method invoked when at the end of the drag & drop operation. */
|
|
86
|
+
onDragEnd?: string | ((event?: DragEvent, instance?: Instance) => void);
|
|
87
|
+
|
|
88
|
+
/** Match height of the item being dragged */
|
|
89
|
+
matchHeight?: boolean;
|
|
90
|
+
|
|
91
|
+
/** Match width of the item being dragged */
|
|
92
|
+
matchWidth?: boolean;
|
|
93
|
+
|
|
94
|
+
/** Match margin of the item being dragged */
|
|
95
|
+
matchMargin?: boolean;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export class DropZone extends Cx.Widget<DropZoneProps> {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./DragSource";
|
|
2
|
-
export * from "./DragHandle";
|
|
3
|
-
export * from "./DropZone";
|
|
4
|
-
export * from "./ops";
|
|
1
|
+
export * from "./DragSource";
|
|
2
|
+
export * from "./DragHandle";
|
|
3
|
+
export * from "./DropZone";
|
|
4
|
+
export * from "./ops";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import "DragSource";
|
|
2
|
-
@import "DropZone";
|
|
3
|
-
@import "DragHandle";
|
|
1
|
+
@import "DragSource";
|
|
2
|
+
@import "DropZone";
|
|
3
|
+
@import "DragHandle";
|
|
4
4
|
@import "DragClone";
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import * as Cx from '../../core';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { CursorPosition } from '../overlay/captureMouse';
|
|
4
|
-
import { View } from '../../data/View';
|
|
5
|
-
|
|
6
|
-
export interface DragEvent {
|
|
7
|
-
type: 'dragstart' | 'dragmove' | 'dragdrop',
|
|
8
|
-
event: React.SyntheticEvent<any>,
|
|
9
|
-
cursor: CursorPosition,
|
|
10
|
-
source: {
|
|
11
|
-
width: number,
|
|
12
|
-
height: number,
|
|
13
|
-
margin: string[],
|
|
14
|
-
data?: any,
|
|
15
|
-
store: View,
|
|
16
|
-
[other: string]: any,
|
|
17
|
-
},
|
|
18
|
-
result?: any
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface DragDropOptions {
|
|
22
|
-
sourceEl?: Element,
|
|
23
|
-
clone?: any,
|
|
24
|
-
source?: Cx.Config,
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
type DragEventHandler = (e: DragEvent) => void;
|
|
28
|
-
|
|
29
|
-
export interface IDropZone {
|
|
30
|
-
onDropTest?: (e: DragEvent) => boolean;
|
|
31
|
-
onDragStart?: DragEventHandler;
|
|
32
|
-
onDragAway?: DragEventHandler;
|
|
33
|
-
onDragEnd?: DragEventHandler;
|
|
34
|
-
onDragMeasure?: (e: DragEvent) => { over: boolean, near: boolean };
|
|
35
|
-
onDragLeave?: DragEventHandler;
|
|
36
|
-
onDragOver?: DragEventHandler;
|
|
37
|
-
onDragEnter?: DragEventHandler;
|
|
38
|
-
onDrop?: DragEventHandler;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
type UnregisterFunction = () => void;
|
|
42
|
-
|
|
43
|
-
/** Register a drop zone. Return value is a function that can be used to unregister the drop zone. */
|
|
44
|
-
export function registerDropZone(dropZone: IDropZone) : UnregisterFunction;
|
|
45
|
-
|
|
46
|
-
/** Initiate a drag-drop operation. */
|
|
47
|
-
export function initiateDragDrop(e: DragEvent, options?: DragDropOptions, onDragEnd?: (e?: DragEvent) => void) : void;
|
|
48
|
-
|
|
49
|
-
export function ddMouseDown(e: React.SyntheticEvent<any>) : void;
|
|
50
|
-
|
|
51
|
-
export function ddMouseUp() : void;
|
|
52
|
-
|
|
53
|
-
export function ddDetect(e: React.SyntheticEvent<any>) : void | true;
|
|
54
|
-
|
|
55
|
-
export function ddHandle(e: React.SyntheticEvent<any>) : void;
|
|
56
|
-
|
|
1
|
+
import * as Cx from '../../core';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { CursorPosition } from '../overlay/captureMouse';
|
|
4
|
+
import { View } from '../../data/View';
|
|
5
|
+
|
|
6
|
+
export interface DragEvent {
|
|
7
|
+
type: 'dragstart' | 'dragmove' | 'dragdrop',
|
|
8
|
+
event: React.SyntheticEvent<any>,
|
|
9
|
+
cursor: CursorPosition,
|
|
10
|
+
source: {
|
|
11
|
+
width: number,
|
|
12
|
+
height: number,
|
|
13
|
+
margin: string[],
|
|
14
|
+
data?: any,
|
|
15
|
+
store: View,
|
|
16
|
+
[other: string]: any,
|
|
17
|
+
},
|
|
18
|
+
result?: any
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface DragDropOptions {
|
|
22
|
+
sourceEl?: Element,
|
|
23
|
+
clone?: any,
|
|
24
|
+
source?: Cx.Config,
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
type DragEventHandler = (e: DragEvent) => void;
|
|
28
|
+
|
|
29
|
+
export interface IDropZone {
|
|
30
|
+
onDropTest?: (e: DragEvent) => boolean;
|
|
31
|
+
onDragStart?: DragEventHandler;
|
|
32
|
+
onDragAway?: DragEventHandler;
|
|
33
|
+
onDragEnd?: DragEventHandler;
|
|
34
|
+
onDragMeasure?: (e: DragEvent) => { over: boolean, near: boolean };
|
|
35
|
+
onDragLeave?: DragEventHandler;
|
|
36
|
+
onDragOver?: DragEventHandler;
|
|
37
|
+
onDragEnter?: DragEventHandler;
|
|
38
|
+
onDrop?: DragEventHandler;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
type UnregisterFunction = () => void;
|
|
42
|
+
|
|
43
|
+
/** Register a drop zone. Return value is a function that can be used to unregister the drop zone. */
|
|
44
|
+
export function registerDropZone(dropZone: IDropZone) : UnregisterFunction;
|
|
45
|
+
|
|
46
|
+
/** Initiate a drag-drop operation. */
|
|
47
|
+
export function initiateDragDrop(e: DragEvent, options?: DragDropOptions, onDragEnd?: (e?: DragEvent) => void) : void;
|
|
48
|
+
|
|
49
|
+
export function ddMouseDown(e: React.SyntheticEvent<any>) : void;
|
|
50
|
+
|
|
51
|
+
export function ddMouseUp() : void;
|
|
52
|
+
|
|
53
|
+
export function ddDetect(e: React.SyntheticEvent<any>) : void | true;
|
|
54
|
+
|
|
55
|
+
export function ddHandle(e: React.SyntheticEvent<any>) : void;
|
|
56
|
+
|
|
57
57
|
export function isDragHandleEvent(e: React.SyntheticEvent<any>) : boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function enableAllInternalDependencies();
|
|
1
|
+
export function enableAllInternalDependencies();
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
$cx-default-calendar-font-size: $cx-default-box-font-size !default;
|
|
3
|
-
$cx-default-calendar-background-color: $cx-default-input-background-color !default;
|
|
4
|
-
$cx-default-calendar-border-width: $cx-default-box-border-width !default;
|
|
5
|
-
$cx-default-calendar-border-color: $cx-default-input-border-color !default;
|
|
6
|
-
$cx-default-calendar-border-radius: $cx-default-border-radius !default;
|
|
7
|
-
$cx-default-calendar-box-shadow: none !default;
|
|
8
|
-
$cx-default-calendar-padding: 5px !default;
|
|
9
|
-
|
|
10
|
-
//header
|
|
11
|
-
$cx-default-calendar-header-font-size: $cx-default-box-font-size !default;
|
|
12
|
-
$cx-default-calendar-header-font-weight: 500 !default;
|
|
13
|
-
$cx-default-calendar-header-color: $cx-default-color !default;
|
|
14
|
-
$cx-default-calendar-header-background-color: transparent !default;
|
|
15
|
-
|
|
16
|
-
//day
|
|
17
|
-
$cx-default-calendar-day-font-size: $cx-default-calendar-font-size !default;
|
|
18
|
-
$cx-default-calendar-day-border-radius: $cx-default-calendar-border-radius !default;
|
|
19
|
-
|
|
20
|
-
// CALENDAR
|
|
21
|
-
$cx-calendar-state-style-map: cx-deep-map-merge($cx-input-state-style-map, (
|
|
22
|
-
default: (
|
|
23
|
-
font-size: $cx-default-calendar-font-size,
|
|
24
|
-
background-color: $cx-default-calendar-background-color,
|
|
25
|
-
border-style: solid,
|
|
26
|
-
border-width: $cx-default-calendar-border-width,
|
|
27
|
-
border-color: $cx-default-calendar-border-color,
|
|
28
|
-
border-radius: $cx-default-calendar-border-radius,
|
|
29
|
-
box-shadow: $cx-default-calendar-box-shadow,
|
|
30
|
-
padding: $cx-default-calendar-padding
|
|
31
|
-
),
|
|
32
|
-
hover: (
|
|
33
|
-
|
|
34
|
-
),
|
|
35
|
-
header: (
|
|
36
|
-
font-size: $cx-default-calendar-header-font-size,
|
|
37
|
-
font-weight: $cx-default-calendar-header-font-weight,
|
|
38
|
-
color: $cx-default-calendar-header-color,
|
|
39
|
-
background-color: $cx-default-calendar-header-background-color,
|
|
40
|
-
),
|
|
41
|
-
focus: (
|
|
42
|
-
border-color: cx-get-state-rule($cx-input-state-style-map, focus, border-color),
|
|
43
|
-
box-shadow: cx-get-state-rule($cx-input-state-style-map, focus, box-shadow),
|
|
44
|
-
outline: none
|
|
45
|
-
)
|
|
46
|
-
)) !default;
|
|
47
|
-
|
|
48
|
-
// calendar day field styles
|
|
49
|
-
$cx-calendar-day-state-style-map: cx-deep-map-merge($cx-list-item, (
|
|
50
|
-
default: (
|
|
51
|
-
font-size: $cx-default-calendar-day-font-size,
|
|
52
|
-
background-color: transparent,
|
|
53
|
-
border-radius: $cx-default-calendar-day-border-radius
|
|
54
|
-
),
|
|
55
|
-
today: (
|
|
56
|
-
background-color: rgba(220, 250, 183, 0.5),
|
|
57
|
-
),
|
|
58
|
-
outside: (
|
|
59
|
-
color: rgba(0, 0, 0, 0.3)
|
|
60
|
-
),
|
|
61
|
-
today-hover: (
|
|
62
|
-
|
|
63
|
-
)
|
|
1
|
+
|
|
2
|
+
$cx-default-calendar-font-size: $cx-default-box-font-size !default;
|
|
3
|
+
$cx-default-calendar-background-color: $cx-default-input-background-color !default;
|
|
4
|
+
$cx-default-calendar-border-width: $cx-default-box-border-width !default;
|
|
5
|
+
$cx-default-calendar-border-color: $cx-default-input-border-color !default;
|
|
6
|
+
$cx-default-calendar-border-radius: $cx-default-border-radius !default;
|
|
7
|
+
$cx-default-calendar-box-shadow: none !default;
|
|
8
|
+
$cx-default-calendar-padding: 5px !default;
|
|
9
|
+
|
|
10
|
+
//header
|
|
11
|
+
$cx-default-calendar-header-font-size: $cx-default-box-font-size !default;
|
|
12
|
+
$cx-default-calendar-header-font-weight: 500 !default;
|
|
13
|
+
$cx-default-calendar-header-color: $cx-default-color !default;
|
|
14
|
+
$cx-default-calendar-header-background-color: transparent !default;
|
|
15
|
+
|
|
16
|
+
//day
|
|
17
|
+
$cx-default-calendar-day-font-size: $cx-default-calendar-font-size !default;
|
|
18
|
+
$cx-default-calendar-day-border-radius: $cx-default-calendar-border-radius !default;
|
|
19
|
+
|
|
20
|
+
// CALENDAR
|
|
21
|
+
$cx-calendar-state-style-map: cx-deep-map-merge($cx-input-state-style-map, (
|
|
22
|
+
default: (
|
|
23
|
+
font-size: $cx-default-calendar-font-size,
|
|
24
|
+
background-color: $cx-default-calendar-background-color,
|
|
25
|
+
border-style: solid,
|
|
26
|
+
border-width: $cx-default-calendar-border-width,
|
|
27
|
+
border-color: $cx-default-calendar-border-color,
|
|
28
|
+
border-radius: $cx-default-calendar-border-radius,
|
|
29
|
+
box-shadow: $cx-default-calendar-box-shadow,
|
|
30
|
+
padding: $cx-default-calendar-padding
|
|
31
|
+
),
|
|
32
|
+
hover: (
|
|
33
|
+
|
|
34
|
+
),
|
|
35
|
+
header: (
|
|
36
|
+
font-size: $cx-default-calendar-header-font-size,
|
|
37
|
+
font-weight: $cx-default-calendar-header-font-weight,
|
|
38
|
+
color: $cx-default-calendar-header-color,
|
|
39
|
+
background-color: $cx-default-calendar-header-background-color,
|
|
40
|
+
),
|
|
41
|
+
focus: (
|
|
42
|
+
border-color: cx-get-state-rule($cx-input-state-style-map, focus, border-color),
|
|
43
|
+
box-shadow: cx-get-state-rule($cx-input-state-style-map, focus, box-shadow),
|
|
44
|
+
outline: none
|
|
45
|
+
)
|
|
46
|
+
)) !default;
|
|
47
|
+
|
|
48
|
+
// calendar day field styles
|
|
49
|
+
$cx-calendar-day-state-style-map: cx-deep-map-merge($cx-list-item, (
|
|
50
|
+
default: (
|
|
51
|
+
font-size: $cx-default-calendar-day-font-size,
|
|
52
|
+
background-color: transparent,
|
|
53
|
+
border-radius: $cx-default-calendar-day-border-radius
|
|
54
|
+
),
|
|
55
|
+
today: (
|
|
56
|
+
background-color: rgba(220, 250, 183, 0.5),
|
|
57
|
+
),
|
|
58
|
+
outside: (
|
|
59
|
+
color: rgba(0, 0, 0, 0.3)
|
|
60
|
+
),
|
|
61
|
+
today-hover: (
|
|
62
|
+
|
|
63
|
+
)
|
|
64
64
|
));
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
$cx-default-checkbox-color: $cx-default-input-color !default;
|
|
3
|
-
$cx-default-checkbox-background-color: $cx-default-input-background-color !default;
|
|
4
|
-
$cx-default-checkbox-border-width: cx-get-state-rule($cx-input-state-style-map, default, border-width) !default;
|
|
5
|
-
$cx-default-checkbox-border-color: $cx-default-input-border-color !default;
|
|
6
|
-
|
|
7
|
-
$cx-checkbox-state-style-map: cx-deep-map-merge($cx-input-state-style-map, (
|
|
8
|
-
default: (
|
|
9
|
-
color: $cx-default-checkbox-color,
|
|
10
|
-
background-color: $cx-default-checkbox-background-color,
|
|
11
|
-
border-width: $cx-default-checkbox-border-width,
|
|
12
|
-
border-color: $cx-default-checkbox-border-color
|
|
13
|
-
),
|
|
14
|
-
checked: (
|
|
15
|
-
|
|
16
|
-
),
|
|
17
|
-
checked-focus: (
|
|
18
|
-
|
|
19
|
-
),
|
|
20
|
-
focus: (
|
|
21
|
-
border-color: cx-get-state-rule($cx-input-state-style-map, focus, border-color),
|
|
22
|
-
outline: cx-get-state-rule($cx-input-state-style-map, focus, outline),
|
|
23
|
-
box-shadow: cx-get-state-rule($cx-input-state-style-map, focus, box-shadow)
|
|
24
|
-
),
|
|
25
|
-
|
|
26
|
-
disabled: (
|
|
27
|
-
background: rgb(235, 235, 228),
|
|
28
|
-
color: rgb(84, 84, 84)
|
|
29
|
-
),
|
|
30
|
-
disabled-checked: (
|
|
31
|
-
|
|
32
|
-
),
|
|
33
|
-
error: (
|
|
34
|
-
border-color: rgba(220, 0, 9, 0.8)
|
|
35
|
-
),
|
|
36
|
-
|
|
37
|
-
error-focus: (
|
|
38
|
-
box-shadow: 0 0 2px rgba(220, 0, 9, 0.8)
|
|
39
|
-
)
|
|
1
|
+
|
|
2
|
+
$cx-default-checkbox-color: $cx-default-input-color !default;
|
|
3
|
+
$cx-default-checkbox-background-color: $cx-default-input-background-color !default;
|
|
4
|
+
$cx-default-checkbox-border-width: cx-get-state-rule($cx-input-state-style-map, default, border-width) !default;
|
|
5
|
+
$cx-default-checkbox-border-color: $cx-default-input-border-color !default;
|
|
6
|
+
|
|
7
|
+
$cx-checkbox-state-style-map: cx-deep-map-merge($cx-input-state-style-map, (
|
|
8
|
+
default: (
|
|
9
|
+
color: $cx-default-checkbox-color,
|
|
10
|
+
background-color: $cx-default-checkbox-background-color,
|
|
11
|
+
border-width: $cx-default-checkbox-border-width,
|
|
12
|
+
border-color: $cx-default-checkbox-border-color
|
|
13
|
+
),
|
|
14
|
+
checked: (
|
|
15
|
+
|
|
16
|
+
),
|
|
17
|
+
checked-focus: (
|
|
18
|
+
|
|
19
|
+
),
|
|
20
|
+
focus: (
|
|
21
|
+
border-color: cx-get-state-rule($cx-input-state-style-map, focus, border-color),
|
|
22
|
+
outline: cx-get-state-rule($cx-input-state-style-map, focus, outline),
|
|
23
|
+
box-shadow: cx-get-state-rule($cx-input-state-style-map, focus, box-shadow)
|
|
24
|
+
),
|
|
25
|
+
|
|
26
|
+
disabled: (
|
|
27
|
+
background: rgb(235, 235, 228),
|
|
28
|
+
color: rgb(84, 84, 84)
|
|
29
|
+
),
|
|
30
|
+
disabled-checked: (
|
|
31
|
+
|
|
32
|
+
),
|
|
33
|
+
error: (
|
|
34
|
+
border-color: rgba(220, 0, 9, 0.8)
|
|
35
|
+
),
|
|
36
|
+
|
|
37
|
+
error-focus: (
|
|
38
|
+
box-shadow: 0 0 2px rgba(220, 0, 9, 0.8)
|
|
39
|
+
)
|
|
40
40
|
)) !default;
|