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
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import * as Cx from '../../core';
|
|
2
|
-
|
|
3
|
-
export interface RouteProps extends Cx.PureContainerProps {
|
|
4
|
-
|
|
5
|
-
/** Url binding. Bind this to the global `url` variable. */
|
|
6
|
-
url?: Cx.StringProp,
|
|
7
|
-
|
|
8
|
-
/** Target route, e.g. `~/user/:userId`. All routes should start with `~/`. */
|
|
9
|
-
path?: string,
|
|
10
|
-
|
|
11
|
-
/** Target route, e.g. `~/user/:userId`. All routes should start with `~/`. */
|
|
12
|
-
route?: string,
|
|
13
|
-
|
|
14
|
-
/** Name used to expose local data. Defaults to `$route`. */
|
|
15
|
-
recordName?: string,
|
|
16
|
-
|
|
17
|
-
/** Match route even if given `route` is only a prefix of the current `url`. */
|
|
18
|
-
prefix?: boolean
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export class Route extends Cx.Widget<RouteProps> {}
|
|
1
|
+
import * as Cx from '../../core';
|
|
2
|
+
|
|
3
|
+
export interface RouteProps extends Cx.PureContainerProps {
|
|
4
|
+
|
|
5
|
+
/** Url binding. Bind this to the global `url` variable. */
|
|
6
|
+
url?: Cx.StringProp,
|
|
7
|
+
|
|
8
|
+
/** Target route, e.g. `~/user/:userId`. All routes should start with `~/`. */
|
|
9
|
+
path?: string,
|
|
10
|
+
|
|
11
|
+
/** Target route, e.g. `~/user/:userId`. All routes should start with `~/`. */
|
|
12
|
+
route?: string,
|
|
13
|
+
|
|
14
|
+
/** Name used to expose local data. Defaults to `$route`. */
|
|
15
|
+
recordName?: string,
|
|
16
|
+
|
|
17
|
+
/** Match route even if given `route` is only a prefix of the current `url`. */
|
|
18
|
+
prefix?: boolean
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export class Route extends Cx.Widget<RouteProps> {}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import * as Cx from '../../core';
|
|
2
|
-
|
|
3
|
-
interface ScrollerProps extends Cx.StyledContainerProps {
|
|
4
|
-
|
|
5
|
-
/** Base CSS class. Default is `hscroller`. */
|
|
6
|
-
baseClass?: string,
|
|
7
|
-
|
|
8
|
-
horizontal?: boolean,
|
|
9
|
-
|
|
10
|
-
vertical?: boolean
|
|
11
|
-
|
|
12
|
-
scrollIntoViewSelector?: Cx.StringProp
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export class Scroller extends Cx.Widget<ScrollerProps> {}
|
|
16
|
-
export class HScroller extends Cx.Widget<ScrollerProps> {}
|
|
17
|
-
export class VScroller extends Cx.Widget<ScrollerProps> {}
|
|
1
|
+
import * as Cx from '../../core';
|
|
2
|
+
|
|
3
|
+
interface ScrollerProps extends Cx.StyledContainerProps {
|
|
4
|
+
|
|
5
|
+
/** Base CSS class. Default is `hscroller`. */
|
|
6
|
+
baseClass?: string,
|
|
7
|
+
|
|
8
|
+
horizontal?: boolean,
|
|
9
|
+
|
|
10
|
+
vertical?: boolean
|
|
11
|
+
|
|
12
|
+
scrollIntoViewSelector?: Cx.StringProp
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class Scroller extends Cx.Widget<ScrollerProps> {}
|
|
16
|
+
export class HScroller extends Cx.Widget<ScrollerProps> {}
|
|
17
|
+
export class VScroller extends Cx.Widget<ScrollerProps> {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as Cx from '../../core';
|
|
2
|
-
import { MenuItemProps } from './MenuItem';
|
|
3
|
-
|
|
4
|
-
interface SubmenuProps extends MenuItemProps {}
|
|
5
|
-
|
|
6
|
-
export class Submenu extends Cx.Widget<SubmenuProps> {}
|
|
1
|
+
import * as Cx from '../../core';
|
|
2
|
+
import { MenuItemProps } from './MenuItem';
|
|
3
|
+
|
|
4
|
+
interface SubmenuProps extends MenuItemProps {}
|
|
5
|
+
|
|
6
|
+
export class Submenu extends Cx.Widget<SubmenuProps> {}
|
package/src/widgets/nav/Tab.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import * as Cx from '../../core';
|
|
2
|
-
|
|
3
|
-
interface TabProps extends Cx.HtmlElementProps {
|
|
4
|
-
|
|
5
|
-
/** A value to be written to the `value` property if the tab is clicked. */
|
|
6
|
-
tab?: Cx.Prop<string | number>,
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Value of the currently selected tab.
|
|
10
|
-
* If `value` is equal to `tab`, the tab appears active.
|
|
11
|
-
*/
|
|
12
|
-
value?: Cx.StringProp,
|
|
13
|
-
|
|
14
|
-
/** Set to `true` to disable selection. */
|
|
15
|
-
disabled?: Cx.BooleanProp,
|
|
16
|
-
|
|
17
|
-
/** Base CSS class to be applied to the element. No class is applied by default. */
|
|
18
|
-
baseClass?: string,
|
|
19
|
-
|
|
20
|
-
/** Name of the HTML element to be rendered. Default is `div`. */
|
|
21
|
-
tag?: string,
|
|
22
|
-
|
|
23
|
-
/** Determines if tab should receive focus on `mousedown` event.
|
|
24
|
-
* Default is `false`, which means that focus can be set only using the keyboard `Tab` key.
|
|
25
|
-
*/
|
|
26
|
-
focusOnMouseDown?: boolean,
|
|
27
|
-
|
|
28
|
-
/** Set to true to set the default tab. */
|
|
29
|
-
default?: boolean
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export class Tab extends Cx.Widget<TabProps> {}
|
|
1
|
+
import * as Cx from '../../core';
|
|
2
|
+
|
|
3
|
+
interface TabProps extends Cx.HtmlElementProps {
|
|
4
|
+
|
|
5
|
+
/** A value to be written to the `value` property if the tab is clicked. */
|
|
6
|
+
tab?: Cx.Prop<string | number>,
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Value of the currently selected tab.
|
|
10
|
+
* If `value` is equal to `tab`, the tab appears active.
|
|
11
|
+
*/
|
|
12
|
+
value?: Cx.StringProp,
|
|
13
|
+
|
|
14
|
+
/** Set to `true` to disable selection. */
|
|
15
|
+
disabled?: Cx.BooleanProp,
|
|
16
|
+
|
|
17
|
+
/** Base CSS class to be applied to the element. No class is applied by default. */
|
|
18
|
+
baseClass?: string,
|
|
19
|
+
|
|
20
|
+
/** Name of the HTML element to be rendered. Default is `div`. */
|
|
21
|
+
tag?: string,
|
|
22
|
+
|
|
23
|
+
/** Determines if tab should receive focus on `mousedown` event.
|
|
24
|
+
* Default is `false`, which means that focus can be set only using the keyboard `Tab` key.
|
|
25
|
+
*/
|
|
26
|
+
focusOnMouseDown?: boolean,
|
|
27
|
+
|
|
28
|
+
/** Set to true to set the default tab. */
|
|
29
|
+
default?: boolean
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export class Tab extends Cx.Widget<TabProps> {}
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
$cx-default-tab-color: inherit !default;
|
|
2
|
-
$cx-default-tab-font-size: null !default;
|
|
3
|
-
$cx-default-tab-font-weight: inherit !default;
|
|
4
|
-
$cx-default-tab-background-color: transparent !default;
|
|
5
|
-
$cx-default-tab-border-width: $cx-default-box-border-width !default;
|
|
6
|
-
$cx-default-tab-border-color: transparent !default;
|
|
7
|
-
$cx-default-tab-border-radius: $cx-default-border-radius !default;
|
|
8
|
-
$cx-default-tab-padding: cx-top($cx-default-box-padding) 2 * cx-right($cx-default-box-padding)
|
|
9
|
-
cx-bottom($cx-default-box-padding) 2 * cx-left($cx-default-box-padding) !default;
|
|
10
|
-
$cx-default-tab-box-shadow: none !default;
|
|
11
|
-
|
|
12
|
-
$cx-tab-state-style-map: cx-deep-map-merge(
|
|
13
|
-
$cx-list-item,
|
|
14
|
-
(
|
|
15
|
-
default: (
|
|
16
|
-
color: $cx-default-tab-color,
|
|
17
|
-
font-size: $cx-default-tab-font-size,
|
|
18
|
-
line-height: $cx-default-box-line-height,
|
|
19
|
-
font-weight: $cx-default-tab-font-weight,
|
|
20
|
-
text-decoration: none,
|
|
21
|
-
cursor: pointer,
|
|
22
|
-
text-align: center,
|
|
23
|
-
background-color: $cx-default-tab-background-color,
|
|
24
|
-
border-radius: $cx-default-tab-border-radius,
|
|
25
|
-
padding: $cx-default-tab-padding,
|
|
26
|
-
border-width: $cx-default-tab-border-width,
|
|
27
|
-
border-color: $cx-default-tab-border-color,
|
|
28
|
-
border-style: solid,
|
|
29
|
-
box-shadow: $cx-default-tab-box-shadow,
|
|
30
|
-
),
|
|
31
|
-
hover: (
|
|
32
|
-
text-decoration: none,
|
|
33
|
-
),
|
|
34
|
-
disabled: (
|
|
35
|
-
background-color: transparent,
|
|
36
|
-
pointer-events: none,
|
|
37
|
-
),
|
|
38
|
-
)
|
|
39
|
-
) !default;
|
|
40
|
-
|
|
41
|
-
$cx-tab-mods: (
|
|
42
|
-
classic: (
|
|
43
|
-
default: (
|
|
44
|
-
position: relative,
|
|
45
|
-
border-width: 1px,
|
|
46
|
-
border-bottom-left-radius: 0,
|
|
47
|
-
border-bottom-right-radius: 0,
|
|
48
|
-
),
|
|
49
|
-
selected: (
|
|
50
|
-
border-color: $cx-default-border-color,
|
|
51
|
-
background-color: $cx-default-cover-background-color,
|
|
52
|
-
),
|
|
53
|
-
),
|
|
54
|
-
line: (
|
|
55
|
-
default: (
|
|
56
|
-
background-color: transparent !important,
|
|
57
|
-
border-left-color: transparent !important,
|
|
58
|
-
border-right-color: transparent !important,
|
|
59
|
-
border-top-color: transparent !important,
|
|
60
|
-
border-left-width: 0,
|
|
61
|
-
border-right-width: 0,
|
|
62
|
-
border-bottom-width: 2px,
|
|
63
|
-
border-top-width: 0,
|
|
64
|
-
border-bottom-left-radius: 0,
|
|
65
|
-
border-bottom-right-radius: 0,
|
|
66
|
-
),
|
|
67
|
-
hover: (
|
|
68
|
-
border-color: rgba(128, 128, 128, 0.2),
|
|
69
|
-
),
|
|
70
|
-
cursor: (
|
|
71
|
-
border-color: rgba(123, 190, 255, 0.3),
|
|
72
|
-
),
|
|
73
|
-
selected: (
|
|
74
|
-
border-color: rgba(128, 128, 128, 0.4),
|
|
75
|
-
),
|
|
76
|
-
selected-cursor: (
|
|
77
|
-
border-color: rgba(123, 190, 255, 0.7),
|
|
78
|
-
),
|
|
79
|
-
active: (),
|
|
80
|
-
disabled: (
|
|
81
|
-
border-color: transparent,
|
|
82
|
-
),
|
|
83
|
-
),
|
|
84
|
-
) !default;
|
|
1
|
+
$cx-default-tab-color: inherit !default;
|
|
2
|
+
$cx-default-tab-font-size: null !default;
|
|
3
|
+
$cx-default-tab-font-weight: inherit !default;
|
|
4
|
+
$cx-default-tab-background-color: transparent !default;
|
|
5
|
+
$cx-default-tab-border-width: $cx-default-box-border-width !default;
|
|
6
|
+
$cx-default-tab-border-color: transparent !default;
|
|
7
|
+
$cx-default-tab-border-radius: $cx-default-border-radius !default;
|
|
8
|
+
$cx-default-tab-padding: cx-top($cx-default-box-padding) 2 * cx-right($cx-default-box-padding)
|
|
9
|
+
cx-bottom($cx-default-box-padding) 2 * cx-left($cx-default-box-padding) !default;
|
|
10
|
+
$cx-default-tab-box-shadow: none !default;
|
|
11
|
+
|
|
12
|
+
$cx-tab-state-style-map: cx-deep-map-merge(
|
|
13
|
+
$cx-list-item,
|
|
14
|
+
(
|
|
15
|
+
default: (
|
|
16
|
+
color: $cx-default-tab-color,
|
|
17
|
+
font-size: $cx-default-tab-font-size,
|
|
18
|
+
line-height: $cx-default-box-line-height,
|
|
19
|
+
font-weight: $cx-default-tab-font-weight,
|
|
20
|
+
text-decoration: none,
|
|
21
|
+
cursor: pointer,
|
|
22
|
+
text-align: center,
|
|
23
|
+
background-color: $cx-default-tab-background-color,
|
|
24
|
+
border-radius: $cx-default-tab-border-radius,
|
|
25
|
+
padding: $cx-default-tab-padding,
|
|
26
|
+
border-width: $cx-default-tab-border-width,
|
|
27
|
+
border-color: $cx-default-tab-border-color,
|
|
28
|
+
border-style: solid,
|
|
29
|
+
box-shadow: $cx-default-tab-box-shadow,
|
|
30
|
+
),
|
|
31
|
+
hover: (
|
|
32
|
+
text-decoration: none,
|
|
33
|
+
),
|
|
34
|
+
disabled: (
|
|
35
|
+
background-color: transparent,
|
|
36
|
+
pointer-events: none,
|
|
37
|
+
),
|
|
38
|
+
)
|
|
39
|
+
) !default;
|
|
40
|
+
|
|
41
|
+
$cx-tab-mods: (
|
|
42
|
+
classic: (
|
|
43
|
+
default: (
|
|
44
|
+
position: relative,
|
|
45
|
+
border-width: 1px,
|
|
46
|
+
border-bottom-left-radius: 0,
|
|
47
|
+
border-bottom-right-radius: 0,
|
|
48
|
+
),
|
|
49
|
+
selected: (
|
|
50
|
+
border-color: $cx-default-border-color,
|
|
51
|
+
background-color: $cx-default-cover-background-color,
|
|
52
|
+
),
|
|
53
|
+
),
|
|
54
|
+
line: (
|
|
55
|
+
default: (
|
|
56
|
+
background-color: transparent !important,
|
|
57
|
+
border-left-color: transparent !important,
|
|
58
|
+
border-right-color: transparent !important,
|
|
59
|
+
border-top-color: transparent !important,
|
|
60
|
+
border-left-width: 0,
|
|
61
|
+
border-right-width: 0,
|
|
62
|
+
border-bottom-width: 2px,
|
|
63
|
+
border-top-width: 0,
|
|
64
|
+
border-bottom-left-radius: 0,
|
|
65
|
+
border-bottom-right-radius: 0,
|
|
66
|
+
),
|
|
67
|
+
hover: (
|
|
68
|
+
border-color: rgba(128, 128, 128, 0.2),
|
|
69
|
+
),
|
|
70
|
+
cursor: (
|
|
71
|
+
border-color: rgba(123, 190, 255, 0.3),
|
|
72
|
+
),
|
|
73
|
+
selected: (
|
|
74
|
+
border-color: rgba(128, 128, 128, 0.4),
|
|
75
|
+
),
|
|
76
|
+
selected-cursor: (
|
|
77
|
+
border-color: rgba(123, 190, 255, 0.7),
|
|
78
|
+
),
|
|
79
|
+
active: (),
|
|
80
|
+
disabled: (
|
|
81
|
+
border-color: transparent,
|
|
82
|
+
),
|
|
83
|
+
),
|
|
84
|
+
) !default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from './Route';
|
|
2
|
-
export * from './RedirectRoute';
|
|
3
|
-
export * from './Tab';
|
|
4
|
-
export * from './Link';
|
|
5
|
-
export * from './LinkButton';
|
|
6
|
-
export * from './Menu';
|
|
7
|
-
export * from './MenuItem';
|
|
8
|
-
export * from './MenuSpacer';
|
|
9
|
-
export * from './Submenu';
|
|
10
|
-
export * from './Scroller';
|
|
1
|
+
export * from './Route';
|
|
2
|
+
export * from './RedirectRoute';
|
|
3
|
+
export * from './Tab';
|
|
4
|
+
export * from './Link';
|
|
5
|
+
export * from './LinkButton';
|
|
6
|
+
export * from './Menu';
|
|
7
|
+
export * from './MenuItem';
|
|
8
|
+
export * from './MenuSpacer';
|
|
9
|
+
export * from './Submenu';
|
|
10
|
+
export * from './Scroller';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import 'cover';
|
|
2
|
-
@import 'Tab';
|
|
3
|
-
@import 'Menu';
|
|
4
|
-
@import 'MenuItem';
|
|
5
|
-
@import 'Link';
|
|
1
|
+
@import 'cover';
|
|
2
|
+
@import 'Tab';
|
|
3
|
+
@import 'Menu';
|
|
4
|
+
@import 'MenuItem';
|
|
5
|
+
@import 'Link';
|
|
6
6
|
@import 'Scroller';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as Cx from "../../core";
|
|
2
|
-
import { View } from "../../data/View";
|
|
3
|
-
import { Instance } from "../../ui";
|
|
4
|
-
import { DropdownProps } from "./Dropdown";
|
|
5
|
-
|
|
6
|
-
export interface ContextMenuProps extends DropdownProps {}
|
|
7
|
-
|
|
8
|
-
export class ContextMenu extends Cx.Widget<ContextMenuProps> {}
|
|
9
|
-
|
|
10
|
-
export function openContextMenu(e: MouseEvent, contents: any, storeOrInstance?: View | Instance, options?: any);
|
|
1
|
+
import * as Cx from "../../core";
|
|
2
|
+
import { View } from "../../data/View";
|
|
3
|
+
import { Instance } from "../../ui";
|
|
4
|
+
import { DropdownProps } from "./Dropdown";
|
|
5
|
+
|
|
6
|
+
export interface ContextMenuProps extends DropdownProps {}
|
|
7
|
+
|
|
8
|
+
export class ContextMenu extends Cx.Widget<ContextMenuProps> {}
|
|
9
|
+
|
|
10
|
+
export function openContextMenu(e: MouseEvent, contents: any, storeOrInstance?: View | Instance, options?: any);
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import * as Cx from "../../core";
|
|
2
|
-
import { OverlayProps } from "./Overlay";
|
|
3
|
-
|
|
4
|
-
export interface DropdownProps extends OverlayProps {
|
|
5
|
-
// TODO: check if string literals should be used instead
|
|
6
|
-
placement?: Cx.StringProp | Cx.Prop<null>;
|
|
7
|
-
|
|
8
|
-
offset?: number;
|
|
9
|
-
matchWidth?: boolean;
|
|
10
|
-
matchMaxWidth?: boolean;
|
|
11
|
-
placementOrder?: string;
|
|
12
|
-
constrain?: boolean;
|
|
13
|
-
positioning?: string;
|
|
14
|
-
touchFriendly?: boolean;
|
|
15
|
-
arrow?: boolean;
|
|
16
|
-
pad?: boolean;
|
|
17
|
-
elementExplode?: number;
|
|
18
|
-
screenPadding?: number;
|
|
19
|
-
firstChildDefinesHeight?: boolean;
|
|
20
|
-
firstChildDefinesWidth?: boolean;
|
|
21
|
-
|
|
22
|
-
/** The dropdown will be automatically closed if the page is scrolled a certain distance. */
|
|
23
|
-
closeOnScrollDistance?: number;
|
|
24
|
-
|
|
25
|
-
relatedElement?: Element;
|
|
26
|
-
|
|
27
|
-
onResolveRelatedElement?: string | ((beaconEl: Element, instance: any) => Element);
|
|
28
|
-
|
|
29
|
-
onMeasureNaturalContentSize?: string | ((el: Element, instance: any) => { width?: number; height?: number });
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export class Dropdown extends Cx.Widget<DropdownProps> {}
|
|
1
|
+
import * as Cx from "../../core";
|
|
2
|
+
import { OverlayProps } from "./Overlay";
|
|
3
|
+
|
|
4
|
+
export interface DropdownProps extends OverlayProps {
|
|
5
|
+
// TODO: check if string literals should be used instead
|
|
6
|
+
placement?: Cx.StringProp | Cx.Prop<null>;
|
|
7
|
+
|
|
8
|
+
offset?: number;
|
|
9
|
+
matchWidth?: boolean;
|
|
10
|
+
matchMaxWidth?: boolean;
|
|
11
|
+
placementOrder?: string;
|
|
12
|
+
constrain?: boolean;
|
|
13
|
+
positioning?: string;
|
|
14
|
+
touchFriendly?: boolean;
|
|
15
|
+
arrow?: boolean;
|
|
16
|
+
pad?: boolean;
|
|
17
|
+
elementExplode?: number;
|
|
18
|
+
screenPadding?: number;
|
|
19
|
+
firstChildDefinesHeight?: boolean;
|
|
20
|
+
firstChildDefinesWidth?: boolean;
|
|
21
|
+
|
|
22
|
+
/** The dropdown will be automatically closed if the page is scrolled a certain distance. */
|
|
23
|
+
closeOnScrollDistance?: number;
|
|
24
|
+
|
|
25
|
+
relatedElement?: Element;
|
|
26
|
+
|
|
27
|
+
onResolveRelatedElement?: string | ((beaconEl: Element, instance: any) => Element);
|
|
28
|
+
|
|
29
|
+
onMeasureNaturalContentSize?: string | ((el: Element, instance: any) => { width?: number; height?: number });
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class Dropdown extends Cx.Widget<DropdownProps> {}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as Cx from "../../core";
|
|
2
|
-
import { Instance } from "../../ui/Instance";
|
|
3
|
-
|
|
4
|
-
export interface FlyweightTooltipTrackerProps extends Cx.WidgetProps {
|
|
5
|
-
onGetTooltip(element: Element, instance: Instance): Cx.Config;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export class FlyweightTooltipTracker extends Cx.Widget<FlyweightTooltipTrackerProps> {}
|
|
1
|
+
import * as Cx from "../../core";
|
|
2
|
+
import { Instance } from "../../ui/Instance";
|
|
3
|
+
|
|
4
|
+
export interface FlyweightTooltipTrackerProps extends Cx.WidgetProps {
|
|
5
|
+
onGetTooltip(element: Element, instance: Instance): Cx.Config;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export class FlyweightTooltipTracker extends Cx.Widget<FlyweightTooltipTrackerProps> {}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import * as Cx from '../../core';
|
|
2
|
-
|
|
3
|
-
interface MsgBoxProps {
|
|
4
|
-
|
|
5
|
-
buttonMod?: null,
|
|
6
|
-
footerDirection?: string,
|
|
7
|
-
footerJustify?: string
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export class MsgBox {
|
|
12
|
-
static alert(options: string | Cx.Config): Promise<void>;
|
|
13
|
-
|
|
14
|
-
static yesNo(options: string | Cx.Config): Promise<string>;
|
|
15
|
-
}
|
|
16
|
-
|
|
1
|
+
import * as Cx from '../../core';
|
|
2
|
+
|
|
3
|
+
interface MsgBoxProps {
|
|
4
|
+
|
|
5
|
+
buttonMod?: null,
|
|
6
|
+
footerDirection?: string,
|
|
7
|
+
footerJustify?: string
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export class MsgBox {
|
|
12
|
+
static alert(options: string | Cx.Config): Promise<void>;
|
|
13
|
+
|
|
14
|
+
static yesNo(options: string | Cx.Config): Promise<string>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
17
|
export function enableMsgBoxAlerts();
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import * as Cx from "../../core";
|
|
2
|
-
import { View } from "../../data";
|
|
3
|
-
import { Instance } from "../../ui/Instance";
|
|
4
|
-
|
|
5
|
-
export interface OverlayProps extends Cx.StyledContainerProps {
|
|
6
|
-
/** Set to `true` to enable resizing. */
|
|
7
|
-
resizable?: Cx.BooleanProp;
|
|
8
|
-
|
|
9
|
-
/** Set to `true` to enable dragging the overlay. */
|
|
10
|
-
draggable?: Cx.BooleanProp;
|
|
11
|
-
|
|
12
|
-
/** Base CSS class to be applied to the field. Defaults to `overlay`. */
|
|
13
|
-
baseClass?: string;
|
|
14
|
-
|
|
15
|
-
resizeWidth?: number;
|
|
16
|
-
|
|
17
|
-
/** Set to `true` to initially place the overlay in the center of the page. */
|
|
18
|
-
center?: boolean;
|
|
19
|
-
|
|
20
|
-
/** Set to `true` to initially place the overlay in the center of the page horizontally. */
|
|
21
|
-
centerX?: boolean;
|
|
22
|
-
|
|
23
|
-
/** Set to `true` to initially place the overlay in the center of the page vertically. */
|
|
24
|
-
centerY?: boolean;
|
|
25
|
-
|
|
26
|
-
/** Set to `true` to add a modal backdrop which masks mouse events for the rest of the page. */
|
|
27
|
-
modal?: boolean;
|
|
28
|
-
|
|
29
|
-
/** Set to `true` to add a modal backdrop which will dismiss the window when clicked. */
|
|
30
|
-
backdrop?: boolean;
|
|
31
|
-
|
|
32
|
-
/** Set to `true` to force the element to be rendered inline, instead of being appended to the body element.
|
|
33
|
-
* Inline overlays have z-index set to a very high value, to ensure they are displayed on top of the other content. */
|
|
34
|
-
inline?: boolean;
|
|
35
|
-
|
|
36
|
-
/** Set to `true` to automatically focus the top level overlay element. */
|
|
37
|
-
autoFocus?: boolean;
|
|
38
|
-
|
|
39
|
-
/** Set to `true` to automatically focus the first focusable child in the overlay. */
|
|
40
|
-
autoFocusFirstChild?: boolean;
|
|
41
|
-
|
|
42
|
-
/** Set to `true` to append the set animate state after the initial render. Appended CSS class may be used to add show/hide animations. */
|
|
43
|
-
animate?: boolean;
|
|
44
|
-
|
|
45
|
-
/** Number of milliseconds to wait, before removing the element from the DOM. Used in combination with the animate property. */
|
|
46
|
-
destroyDelay?: number;
|
|
47
|
-
|
|
48
|
-
/** Automatically dismiss overlay if it loses focus. */
|
|
49
|
-
dismissOnFocusOut?: boolean;
|
|
50
|
-
|
|
51
|
-
/** Set to true to make the top level overlay element focusable. */
|
|
52
|
-
focusable?: boolean;
|
|
53
|
-
|
|
54
|
-
/** Set to `true` to dismiss the window if the user presses the back button in the browser. */
|
|
55
|
-
dismissOnPopState?: boolean;
|
|
56
|
-
|
|
57
|
-
/** A callback function which fires while the overlay is being moved around. */
|
|
58
|
-
onMove?(e: Event, instance: Instance, component: any);
|
|
59
|
-
|
|
60
|
-
/** A callback function which fires while the overlay is being resized. */
|
|
61
|
-
onResize?(e: Event, instance: Instance, component: any);
|
|
62
|
-
|
|
63
|
-
/** zIndex */
|
|
64
|
-
zIndex?: Cx.NumberProp;
|
|
65
|
-
|
|
66
|
-
/** Set to `true` to make the window automatically close if Esc is pressed on the keyboard. Default value is false.*/
|
|
67
|
-
closeOnEscape?: boolean;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export class Overlay extends Cx.Widget<OverlayProps> {
|
|
71
|
-
/** Opens the overlay. Returns a dismiss function. */
|
|
72
|
-
open(store: View | Instance): () => void;
|
|
73
|
-
}
|
|
1
|
+
import * as Cx from "../../core";
|
|
2
|
+
import { View } from "../../data";
|
|
3
|
+
import { Instance } from "../../ui/Instance";
|
|
4
|
+
|
|
5
|
+
export interface OverlayProps extends Cx.StyledContainerProps {
|
|
6
|
+
/** Set to `true` to enable resizing. */
|
|
7
|
+
resizable?: Cx.BooleanProp;
|
|
8
|
+
|
|
9
|
+
/** Set to `true` to enable dragging the overlay. */
|
|
10
|
+
draggable?: Cx.BooleanProp;
|
|
11
|
+
|
|
12
|
+
/** Base CSS class to be applied to the field. Defaults to `overlay`. */
|
|
13
|
+
baseClass?: string;
|
|
14
|
+
|
|
15
|
+
resizeWidth?: number;
|
|
16
|
+
|
|
17
|
+
/** Set to `true` to initially place the overlay in the center of the page. */
|
|
18
|
+
center?: boolean;
|
|
19
|
+
|
|
20
|
+
/** Set to `true` to initially place the overlay in the center of the page horizontally. */
|
|
21
|
+
centerX?: boolean;
|
|
22
|
+
|
|
23
|
+
/** Set to `true` to initially place the overlay in the center of the page vertically. */
|
|
24
|
+
centerY?: boolean;
|
|
25
|
+
|
|
26
|
+
/** Set to `true` to add a modal backdrop which masks mouse events for the rest of the page. */
|
|
27
|
+
modal?: boolean;
|
|
28
|
+
|
|
29
|
+
/** Set to `true` to add a modal backdrop which will dismiss the window when clicked. */
|
|
30
|
+
backdrop?: boolean;
|
|
31
|
+
|
|
32
|
+
/** Set to `true` to force the element to be rendered inline, instead of being appended to the body element.
|
|
33
|
+
* Inline overlays have z-index set to a very high value, to ensure they are displayed on top of the other content. */
|
|
34
|
+
inline?: boolean;
|
|
35
|
+
|
|
36
|
+
/** Set to `true` to automatically focus the top level overlay element. */
|
|
37
|
+
autoFocus?: boolean;
|
|
38
|
+
|
|
39
|
+
/** Set to `true` to automatically focus the first focusable child in the overlay. */
|
|
40
|
+
autoFocusFirstChild?: boolean;
|
|
41
|
+
|
|
42
|
+
/** Set to `true` to append the set animate state after the initial render. Appended CSS class may be used to add show/hide animations. */
|
|
43
|
+
animate?: boolean;
|
|
44
|
+
|
|
45
|
+
/** Number of milliseconds to wait, before removing the element from the DOM. Used in combination with the animate property. */
|
|
46
|
+
destroyDelay?: number;
|
|
47
|
+
|
|
48
|
+
/** Automatically dismiss overlay if it loses focus. */
|
|
49
|
+
dismissOnFocusOut?: boolean;
|
|
50
|
+
|
|
51
|
+
/** Set to true to make the top level overlay element focusable. */
|
|
52
|
+
focusable?: boolean;
|
|
53
|
+
|
|
54
|
+
/** Set to `true` to dismiss the window if the user presses the back button in the browser. */
|
|
55
|
+
dismissOnPopState?: boolean;
|
|
56
|
+
|
|
57
|
+
/** A callback function which fires while the overlay is being moved around. */
|
|
58
|
+
onMove?(e: Event, instance: Instance, component: any);
|
|
59
|
+
|
|
60
|
+
/** A callback function which fires while the overlay is being resized. */
|
|
61
|
+
onResize?(e: Event, instance: Instance, component: any);
|
|
62
|
+
|
|
63
|
+
/** zIndex */
|
|
64
|
+
zIndex?: Cx.NumberProp;
|
|
65
|
+
|
|
66
|
+
/** Set to `true` to make the window automatically close if Esc is pressed on the keyboard. Default value is false.*/
|
|
67
|
+
closeOnEscape?: boolean;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export class Overlay extends Cx.Widget<OverlayProps> {
|
|
71
|
+
/** Opens the overlay. Returns a dismiss function. */
|
|
72
|
+
open(store: View | Instance): () => void;
|
|
73
|
+
}
|