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.
Files changed (139) hide show
  1. package/LICENSE-THIRD-PARTY.md +91 -91
  2. package/LICENSE.md +7 -7
  3. package/README.md +46 -46
  4. package/dist/charts.js +25 -11
  5. package/dist/manifest.js +493 -493
  6. package/dist/ui.js +1 -3
  7. package/package.json +1 -1
  8. package/src/charts/Bar.d.ts +27 -27
  9. package/src/charts/BarGraph.d.ts +15 -15
  10. package/src/charts/Chart.d.ts +12 -12
  11. package/src/charts/ColorMap.d.ts +21 -21
  12. package/src/charts/Column.d.ts +29 -29
  13. package/src/charts/ColumnBarBase.d.ts +64 -64
  14. package/src/charts/ColumnBarGraphBase.d.ts +73 -73
  15. package/src/charts/ColumnGraph.d.ts +18 -18
  16. package/src/charts/Gridlines.d.ts +24 -24
  17. package/src/charts/Legend.d.ts +45 -45
  18. package/src/charts/LegendEntry.d.ts +54 -54
  19. package/src/charts/LineGraph.d.ts +101 -101
  20. package/src/charts/Marker.d.ts +110 -110
  21. package/src/charts/MarkerLine.d.ts +56 -56
  22. package/src/charts/MouseTracker.d.ts +16 -16
  23. package/src/charts/PieChart.d.ts +92 -92
  24. package/src/charts/PieLabel.d.ts +26 -26
  25. package/src/charts/PieLabelsContainer.d.ts +6 -6
  26. package/src/charts/Range.d.ts +74 -74
  27. package/src/charts/RangeMarker.d.ts +35 -35
  28. package/src/charts/ScatterGraph.d.ts +64 -64
  29. package/src/charts/Swimlane.d.ts +24 -24
  30. package/src/charts/Swimlanes.d.ts +41 -41
  31. package/src/charts/axis/Axis.d.ts +113 -113
  32. package/src/charts/axis/Axis.js +8 -0
  33. package/src/charts/axis/Axis.scss +22 -22
  34. package/src/charts/axis/CategoryAxis.d.ts +30 -30
  35. package/src/charts/axis/NumericAxis.d.ts +46 -46
  36. package/src/charts/axis/Stack.d.ts +10 -10
  37. package/src/charts/axis/TimeAxis.d.ts +31 -31
  38. package/src/charts/axis/index.d.ts +3 -3
  39. package/src/charts/axis/index.scss +5 -5
  40. package/src/charts/axis/variables.scss +2 -2
  41. package/src/charts/helpers/MinMaxFinder.d.ts +22 -22
  42. package/src/charts/helpers/PointReducer.d.ts +24 -24
  43. package/src/charts/helpers/SnapPointFinder.d.ts +30 -30
  44. package/src/charts/helpers/ValueAtFinder.d.ts +16 -16
  45. package/src/charts/helpers/index.d.ts +4 -4
  46. package/src/charts/index.d.ts +27 -27
  47. package/src/charts/index.scss +22 -22
  48. package/src/charts/shapes.d.ts +22 -22
  49. package/src/global.scss +13 -13
  50. package/src/index.scss +6 -6
  51. package/src/svg/index.scss +8 -8
  52. package/src/ui/Instance.js +1 -4
  53. package/src/ui/index.scss +2 -2
  54. package/src/ui/layout/index.scss +3 -3
  55. package/src/ui/layout/variables.scss +2 -2
  56. package/src/ui/variables.scss +1 -1
  57. package/src/util/call-once.scss +6 -6
  58. package/src/util/index.scss +10 -10
  59. package/src/util/scss/divide.scss +3 -3
  60. package/src/util/scss/index.scss +9 -9
  61. package/src/variables.scss +217 -217
  62. package/src/widgets/AccessorBindings.spec.tsx +66 -66
  63. package/src/widgets/Button.d.ts +58 -58
  64. package/src/widgets/CxCredit.d.ts +12 -12
  65. package/src/widgets/DocumentTitle.d.ts +11 -11
  66. package/src/widgets/FlexBox.d.ts +69 -69
  67. package/src/widgets/Heading.d.ts +16 -16
  68. package/src/widgets/HighlightedSearchText.d.ts +9 -9
  69. package/src/widgets/HtmlElement.d.ts +30 -30
  70. package/src/widgets/Icon.d.ts +34 -34
  71. package/src/widgets/ProgressBar.d.ts +17 -17
  72. package/src/widgets/Resizer.d.ts +27 -27
  73. package/src/widgets/Sandbox.d.ts +18 -18
  74. package/src/widgets/Section.d.ts +52 -52
  75. package/src/widgets/animations.scss +10 -10
  76. package/src/widgets/autoFocus.d.ts +1 -1
  77. package/src/widgets/cx.d.ts +1 -1
  78. package/src/widgets/drag-drop/DragSource.d.ts +45 -45
  79. package/src/widgets/drag-drop/DropZone.d.ts +98 -98
  80. package/src/widgets/drag-drop/index.d.ts +4 -4
  81. package/src/widgets/drag-drop/index.scss +3 -3
  82. package/src/widgets/drag-drop/ops.d.ts +56 -56
  83. package/src/widgets/enableAllInternalDependencies.d.ts +1 -1
  84. package/src/widgets/form/Calendar.variables.scss +63 -63
  85. package/src/widgets/form/Checkbox.variables.scss +39 -39
  86. package/src/widgets/form/ColorPicker.variables.scss +22 -22
  87. package/src/widgets/form/Radio.variables.scss +45 -45
  88. package/src/widgets/form/index.scss +24 -24
  89. package/src/widgets/grid/Grid.d.ts +442 -442
  90. package/src/widgets/grid/GridCell.d.ts +38 -38
  91. package/src/widgets/grid/Pagination.d.ts +14 -14
  92. package/src/widgets/grid/TreeNode.d.ts +23 -23
  93. package/src/widgets/grid/index.d.ts +3 -3
  94. package/src/widgets/grid/index.scss +3 -3
  95. package/src/widgets/icons/arrow-down.svg +3 -3
  96. package/src/widgets/icons/arrow-right.svg +2 -2
  97. package/src/widgets/icons/base.svg +104 -104
  98. package/src/widgets/icons/calendar-old.svg +169 -169
  99. package/src/widgets/icons/calendar.svg +187 -187
  100. package/src/widgets/icons/clear.svg +74 -74
  101. package/src/widgets/icons/close.svg +74 -74
  102. package/src/widgets/icons/dropdown-arrow.svg +61 -61
  103. package/src/widgets/icons/file.svg +4 -4
  104. package/src/widgets/icons/folder-open.svg +5 -5
  105. package/src/widgets/icons/folder.svg +58 -58
  106. package/src/widgets/icons/forward.svg +67 -67
  107. package/src/widgets/icons/loading.svg +4 -4
  108. package/src/widgets/icons/search.svg +107 -107
  109. package/src/widgets/icons/sort-asc.svg +3 -3
  110. package/src/widgets/index.d.ts +55 -55
  111. package/src/widgets/index.scss +16 -16
  112. package/src/widgets/nav/Link.d.ts +26 -26
  113. package/src/widgets/nav/LinkButton.d.ts +34 -34
  114. package/src/widgets/nav/Menu.d.ts +27 -27
  115. package/src/widgets/nav/MenuItem.d.ts +31 -31
  116. package/src/widgets/nav/MenuSpacer.d.ts +5 -5
  117. package/src/widgets/nav/RedirectRoute.d.ts +9 -9
  118. package/src/widgets/nav/Route.d.ts +21 -21
  119. package/src/widgets/nav/Scroller.d.ts +17 -17
  120. package/src/widgets/nav/Submenu.d.ts +6 -6
  121. package/src/widgets/nav/Tab.d.ts +33 -33
  122. package/src/widgets/nav/Tab.variables.scss +84 -84
  123. package/src/widgets/nav/index.d.ts +10 -10
  124. package/src/widgets/nav/index.scss +5 -5
  125. package/src/widgets/overlay/ContextMenu.d.ts +10 -10
  126. package/src/widgets/overlay/Dropdown.d.ts +32 -32
  127. package/src/widgets/overlay/FlyweightTooltipTracker.d.ts +8 -8
  128. package/src/widgets/overlay/MsgBox.d.ts +16 -16
  129. package/src/widgets/overlay/Overlay.d.ts +73 -73
  130. package/src/widgets/overlay/Toast.d.ts +30 -30
  131. package/src/widgets/overlay/Tooltip.d.ts +50 -50
  132. package/src/widgets/overlay/Window.d.ts +42 -42
  133. package/src/widgets/overlay/Window.variables.scss +62 -62
  134. package/src/widgets/overlay/alerts.d.ts +7 -7
  135. package/src/widgets/overlay/captureMouse.d.ts +53 -53
  136. package/src/widgets/overlay/captureMouse.scss +13 -13
  137. package/src/widgets/overlay/createHotPromiseWindowFactory.d.ts +18 -18
  138. package/src/widgets/overlay/index.d.ts +11 -11
  139. package/src/widgets/overlay/index.scss +15 -15
@@ -1,107 +1,107 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg
3
- xmlns:dc="http://purl.org/dc/elements/1.1/"
4
- xmlns:cc="http://creativecommons.org/ns#"
5
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
- xmlns:svg="http://www.w3.org/2000/svg"
7
- xmlns="http://www.w3.org/2000/svg"
8
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
- height="32"
11
- width="32"
12
- id="svg4136"
13
- version="1.1"
14
- inkscape:version="0.91 r13725"
15
- sodipodi:docname="search.svg">
16
- <metadata
17
- id="metadata4144">
18
- <rdf:RDF>
19
- <cc:Work
20
- rdf:about="">
21
- <dc:format>image/svg+xml</dc:format>
22
- <dc:type
23
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
24
- <dc:title></dc:title>
25
- </cc:Work>
26
- </rdf:RDF>
27
- </metadata>
28
- <defs
29
- id="defs4142" />
30
- <sodipodi:namedview
31
- pagecolor="#ffffff"
32
- bordercolor="#666666"
33
- borderopacity="1"
34
- objecttolerance="10"
35
- gridtolerance="10"
36
- guidetolerance="10"
37
- inkscape:pageopacity="0"
38
- inkscape:pageshadow="2"
39
- inkscape:window-width="1856"
40
- inkscape:window-height="1057"
41
- id="namedview4140"
42
- showgrid="false"
43
- inkscape:zoom="13.875"
44
- inkscape:cx="38.784843"
45
- inkscape:cy="27.242283"
46
- inkscape:window-x="3056"
47
- inkscape:window-y="439"
48
- inkscape:window-maximized="1"
49
- inkscape:current-layer="layer1" />
50
- <g
51
- inkscape:groupmode="layer"
52
- id="layer1"
53
- inkscape:label="Layer 1">
54
- <path
55
- d="m 25.594512,22.036214 -5.259265,-5.074718 c 0.750769,-1.182754 1.205963,-2.560917 1.205963,-4.051117 0,-4.319104 -3.631083,-7.8221422 -8.106606,-7.8221422 -4.4761755,0 -8.106604,3.5030382 -8.106604,7.8221422 0,4.318476 3.6304285,7.822144 8.106604,7.822144 1.544393,0 2.972676,-0.439221 4.198441,-1.1611 l 5.259266,5.072173 c 0.369441,0.356478 0.981659,0.353931 1.3511,0 l 1.351101,-1.303691 c 0.369442,-0.356478 0.369442,-0.947213 0,-1.303691 z M 13.434604,18.125143 c -2.98456,0 -5.404403,-2.334931 -5.404403,-5.214764 0,-2.87983 2.419843,-5.21476 5.404403,-5.21476 2.984561,0 5.404404,2.33493 5.404404,5.21476 0,2.879833 -2.419843,5.214764 -5.404404,5.214764 z"
56
- id="path4138"
57
- inkscape:connector-curvature="0" />
58
- </g>
59
- <g
60
- inkscape:groupmode="layer"
61
- id="layer2"
62
- inkscape:label="Base"
63
- style="display:none"
64
- sodipodi:insensitive="true">
65
- <circle
66
- style="display:inline;opacity:1;fill:none;stroke:#c40000;stroke-width:0.0501454;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
67
- id="path4140"
68
- cx="16"
69
- cy="16"
70
- r="12" />
71
- <rect
72
- style="display:inline;opacity:1;fill:none;stroke:#c40000;stroke-width:0.05017764;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
73
- id="rect4142-8"
74
- width="12"
75
- height="28"
76
- x="10"
77
- y="2" />
78
- <rect
79
- style="display:inline;opacity:1;fill:none;stroke:#c40000;stroke-width:0.05017611;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
80
- id="rect4144-4"
81
- width="28"
82
- height="12"
83
- x="2"
84
- y="10" />
85
- <rect
86
- y="8"
87
- x="4"
88
- height="15.999999"
89
- width="24"
90
- id="rect4146"
91
- style="display:inline;opacity:1;fill:none;stroke:#c40000;stroke-width:0.05017379;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
92
- <rect
93
- y="6.0250883"
94
- x="6.0250883"
95
- height="19.949823"
96
- width="19.949823"
97
- id="rect4148-8"
98
- style="display:inline;opacity:1;fill:none;stroke:#c40000;stroke-width:0.05017426;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
99
- <rect
100
- style="display:inline;opacity:1;fill:none;stroke:#c40000;stroke-width:0.04999999;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
101
- id="rect4150"
102
- width="16"
103
- height="24"
104
- x="8"
105
- y="4" />
106
- </g>
107
- </svg>
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+ xmlns:cc="http://creativecommons.org/ns#"
5
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+ xmlns:svg="http://www.w3.org/2000/svg"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
+ height="32"
11
+ width="32"
12
+ id="svg4136"
13
+ version="1.1"
14
+ inkscape:version="0.91 r13725"
15
+ sodipodi:docname="search.svg">
16
+ <metadata
17
+ id="metadata4144">
18
+ <rdf:RDF>
19
+ <cc:Work
20
+ rdf:about="">
21
+ <dc:format>image/svg+xml</dc:format>
22
+ <dc:type
23
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
24
+ <dc:title></dc:title>
25
+ </cc:Work>
26
+ </rdf:RDF>
27
+ </metadata>
28
+ <defs
29
+ id="defs4142" />
30
+ <sodipodi:namedview
31
+ pagecolor="#ffffff"
32
+ bordercolor="#666666"
33
+ borderopacity="1"
34
+ objecttolerance="10"
35
+ gridtolerance="10"
36
+ guidetolerance="10"
37
+ inkscape:pageopacity="0"
38
+ inkscape:pageshadow="2"
39
+ inkscape:window-width="1856"
40
+ inkscape:window-height="1057"
41
+ id="namedview4140"
42
+ showgrid="false"
43
+ inkscape:zoom="13.875"
44
+ inkscape:cx="38.784843"
45
+ inkscape:cy="27.242283"
46
+ inkscape:window-x="3056"
47
+ inkscape:window-y="439"
48
+ inkscape:window-maximized="1"
49
+ inkscape:current-layer="layer1" />
50
+ <g
51
+ inkscape:groupmode="layer"
52
+ id="layer1"
53
+ inkscape:label="Layer 1">
54
+ <path
55
+ d="m 25.594512,22.036214 -5.259265,-5.074718 c 0.750769,-1.182754 1.205963,-2.560917 1.205963,-4.051117 0,-4.319104 -3.631083,-7.8221422 -8.106606,-7.8221422 -4.4761755,0 -8.106604,3.5030382 -8.106604,7.8221422 0,4.318476 3.6304285,7.822144 8.106604,7.822144 1.544393,0 2.972676,-0.439221 4.198441,-1.1611 l 5.259266,5.072173 c 0.369441,0.356478 0.981659,0.353931 1.3511,0 l 1.351101,-1.303691 c 0.369442,-0.356478 0.369442,-0.947213 0,-1.303691 z M 13.434604,18.125143 c -2.98456,0 -5.404403,-2.334931 -5.404403,-5.214764 0,-2.87983 2.419843,-5.21476 5.404403,-5.21476 2.984561,0 5.404404,2.33493 5.404404,5.21476 0,2.879833 -2.419843,5.214764 -5.404404,5.214764 z"
56
+ id="path4138"
57
+ inkscape:connector-curvature="0" />
58
+ </g>
59
+ <g
60
+ inkscape:groupmode="layer"
61
+ id="layer2"
62
+ inkscape:label="Base"
63
+ style="display:none"
64
+ sodipodi:insensitive="true">
65
+ <circle
66
+ style="display:inline;opacity:1;fill:none;stroke:#c40000;stroke-width:0.0501454;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
67
+ id="path4140"
68
+ cx="16"
69
+ cy="16"
70
+ r="12" />
71
+ <rect
72
+ style="display:inline;opacity:1;fill:none;stroke:#c40000;stroke-width:0.05017764;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
73
+ id="rect4142-8"
74
+ width="12"
75
+ height="28"
76
+ x="10"
77
+ y="2" />
78
+ <rect
79
+ style="display:inline;opacity:1;fill:none;stroke:#c40000;stroke-width:0.05017611;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
80
+ id="rect4144-4"
81
+ width="28"
82
+ height="12"
83
+ x="2"
84
+ y="10" />
85
+ <rect
86
+ y="8"
87
+ x="4"
88
+ height="15.999999"
89
+ width="24"
90
+ id="rect4146"
91
+ style="display:inline;opacity:1;fill:none;stroke:#c40000;stroke-width:0.05017379;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
92
+ <rect
93
+ y="6.0250883"
94
+ x="6.0250883"
95
+ height="19.949823"
96
+ width="19.949823"
97
+ id="rect4148-8"
98
+ style="display:inline;opacity:1;fill:none;stroke:#c40000;stroke-width:0.05017426;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
99
+ <rect
100
+ style="display:inline;opacity:1;fill:none;stroke:#c40000;stroke-width:0.04999999;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
101
+ id="rect4150"
102
+ width="16"
103
+ height="24"
104
+ x="8"
105
+ y="4" />
106
+ </g>
107
+ </svg>
@@ -1,4 +1,4 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-
3
- 150 bytes - 80.39% saving
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+
3
+ 150 bytes - 80.39% saving
4
4
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M10.5 5.8l-3-3-3 3 .707.708L7 4.688v8.312h1V4.69l1.793 1.817z" fill="#898989"/></svg>
@@ -1,55 +1,55 @@
1
- import { Widget } from "../ui/Widget";
2
- import { Text } from "../ui/Text";
3
- import { StaticText } from "../ui/StaticText";
4
- import { PureContainer } from "../ui/PureContainer";
5
- import { Content } from "../ui/layout/Content";
6
- import { ContentPlaceholder } from "../ui/layout/ContentPlaceholder";
7
- import { ContentResolver } from "../ui/ContentResolver";
8
- import { Rescope } from "../ui/Rescope";
9
- import { Repeater } from "../ui/Repeater";
10
- import { IsolatedScope } from "../ui/IsolatedScope";
11
- import { DetachedScope } from "../ui/DetachedScope";
12
- import { Restate, PrivateStore } from "../ui/Restate";
13
- import { DataProxy } from "../ui/DataProxy";
14
-
15
- //re-export widgets defined in ui namespace
16
- export {
17
- Widget,
18
- StaticText,
19
- Text,
20
- PureContainer,
21
- Content,
22
- ContentPlaceholder,
23
- ContentResolver,
24
- Rescope,
25
- Repeater,
26
- IsolatedScope,
27
- DetachedScope,
28
- Restate,
29
- PrivateStore,
30
- DataProxy,
31
- };
32
-
33
- export * from "./cx";
34
- export * from "./HtmlElement";
35
- export * from "./Button";
36
- export * from "./DocumentTitle";
37
- export * from "./List";
38
- export * from "./Sandbox";
39
- export * from "./CxCredit";
40
- export * from "./Heading";
41
- export * from "./Section";
42
- export * from "./FlexBox";
43
- export * from "./Icon";
44
- export * from "./ProgressBar";
45
- export * from "./Resizer";
46
- export * from "./HighlightedSearchText";
47
- export * from "./autoFocus";
48
-
49
- export * from "./overlay/index";
50
- export * from "./nav/index";
51
- export * from "./form/index";
52
- export * from "./grid/index";
53
- export * from "./drag-drop/index";
54
-
55
- export * from "./enableAllInternalDependencies";
1
+ import { Widget } from "../ui/Widget";
2
+ import { Text } from "../ui/Text";
3
+ import { StaticText } from "../ui/StaticText";
4
+ import { PureContainer } from "../ui/PureContainer";
5
+ import { Content } from "../ui/layout/Content";
6
+ import { ContentPlaceholder } from "../ui/layout/ContentPlaceholder";
7
+ import { ContentResolver } from "../ui/ContentResolver";
8
+ import { Rescope } from "../ui/Rescope";
9
+ import { Repeater } from "../ui/Repeater";
10
+ import { IsolatedScope } from "../ui/IsolatedScope";
11
+ import { DetachedScope } from "../ui/DetachedScope";
12
+ import { Restate, PrivateStore } from "../ui/Restate";
13
+ import { DataProxy } from "../ui/DataProxy";
14
+
15
+ //re-export widgets defined in ui namespace
16
+ export {
17
+ Widget,
18
+ StaticText,
19
+ Text,
20
+ PureContainer,
21
+ Content,
22
+ ContentPlaceholder,
23
+ ContentResolver,
24
+ Rescope,
25
+ Repeater,
26
+ IsolatedScope,
27
+ DetachedScope,
28
+ Restate,
29
+ PrivateStore,
30
+ DataProxy,
31
+ };
32
+
33
+ export * from "./cx";
34
+ export * from "./HtmlElement";
35
+ export * from "./Button";
36
+ export * from "./DocumentTitle";
37
+ export * from "./List";
38
+ export * from "./Sandbox";
39
+ export * from "./CxCredit";
40
+ export * from "./Heading";
41
+ export * from "./Section";
42
+ export * from "./FlexBox";
43
+ export * from "./Icon";
44
+ export * from "./ProgressBar";
45
+ export * from "./Resizer";
46
+ export * from "./HighlightedSearchText";
47
+ export * from "./autoFocus";
48
+
49
+ export * from "./overlay/index";
50
+ export * from "./nav/index";
51
+ export * from "./form/index";
52
+ export * from "./grid/index";
53
+ export * from "./drag-drop/index";
54
+
55
+ export * from "./enableAllInternalDependencies";
@@ -1,16 +1,16 @@
1
- @import "animations";
2
- @import "Button";
3
- @import "List";
4
- @import "CxCredit";
5
- @import "Section";
6
- @import "Heading";
7
- @import "FlexBox";
8
- @import "Icon";
9
- @import "form/index";
10
- @import "nav/index";
11
- @import "overlay/index";
12
- @import "grid/index";
13
- @import "drag-drop/index";
14
- @import "ProgressBar";
15
- @import "Resizer";
16
- @import "HighlightedSearchText";
1
+ @import "animations";
2
+ @import "Button";
3
+ @import "List";
4
+ @import "CxCredit";
5
+ @import "Section";
6
+ @import "Heading";
7
+ @import "FlexBox";
8
+ @import "Icon";
9
+ @import "form/index";
10
+ @import "nav/index";
11
+ @import "overlay/index";
12
+ @import "grid/index";
13
+ @import "drag-drop/index";
14
+ @import "ProgressBar";
15
+ @import "Resizer";
16
+ @import "HighlightedSearchText";
@@ -1,26 +1,26 @@
1
- import * as React from "react";
2
- import * as Cx from "../../core";
3
- import { Instance } from "../../ui/Instance";
4
- import { LinkButtonProps } from "./LinkButton";
5
-
6
- interface LinkProps extends LinkButtonProps {
7
- /** Set to `true` to disable the link. */
8
- disabled?: Cx.BooleanProp;
9
-
10
- /** Url to the link's target location. Should start with `~/` or `#/` for pushState/hash based navigation. */
11
- href?: Cx.StringProp;
12
-
13
- url?: Cx.StringProp;
14
-
15
- /** Base CSS class to be applied to the element. No class is applied by default. */
16
- baseClass?: string;
17
-
18
- tag?: string;
19
- match?: "equal" | "prefix" | "subroute";
20
-
21
- activeClass?: Cx.ClassProp;
22
- activeStyle?: Cx.StyleProp;
23
- onClick?: string | ((e: React.SyntheticEvent<any>, instance: Instance) => void);
24
- }
25
-
26
- export class Link extends Cx.Widget<LinkProps> {}
1
+ import * as React from "react";
2
+ import * as Cx from "../../core";
3
+ import { Instance } from "../../ui/Instance";
4
+ import { LinkButtonProps } from "./LinkButton";
5
+
6
+ interface LinkProps extends LinkButtonProps {
7
+ /** Set to `true` to disable the link. */
8
+ disabled?: Cx.BooleanProp;
9
+
10
+ /** Url to the link's target location. Should start with `~/` or `#/` for pushState/hash based navigation. */
11
+ href?: Cx.StringProp;
12
+
13
+ url?: Cx.StringProp;
14
+
15
+ /** Base CSS class to be applied to the element. No class is applied by default. */
16
+ baseClass?: string;
17
+
18
+ tag?: string;
19
+ match?: "equal" | "prefix" | "subroute";
20
+
21
+ activeClass?: Cx.ClassProp;
22
+ activeStyle?: Cx.StyleProp;
23
+ onClick?: string | ((e: React.SyntheticEvent<any>, instance: Instance) => void);
24
+ }
25
+
26
+ export class Link extends Cx.Widget<LinkProps> {}
@@ -1,34 +1,34 @@
1
- import * as Cx from "../../core";
2
- import { ButtonProps } from "../Button";
3
-
4
- export interface LinkButtonProps extends ButtonProps {
5
- /** Url to the link's target location. Should start with `~/` or `#/` for pushState/hash based navigation. */
6
- href?: Cx.StringProp;
7
-
8
- /** Binding to the current url location in the store. If `href` matches `url`, additional CSS class `active` is applied. */
9
- url?: Cx.StringProp;
10
-
11
- /**
12
- * Accepted values are `equal`, `prefix` and `subroute`. Default is `equal` which means that `url` must exactly match `href` in order to consider the link active.
13
- * In `prefix` mode, if `href` is a prefix of `url`, the link is considered active. The `subroute` mode is similar to `prefix` mode, except that `href` must be followed by a forward slash `/`, indicating
14
- * a subroute.
15
- */
16
- match?: "equal" | "prefix" | "subroute";
17
-
18
- /** Additional CSS style to aplied when the link is active. */
19
- activeStyle?: Cx.StyleProp;
20
-
21
- /** Additional CSS style to aplied when the link is inactive. */
22
- inactiveStyle?: Cx.StyleProp;
23
-
24
- /** Additional CSS class to aplied when the link is active. */
25
- activeClass?: Cx.StyleProp;
26
-
27
- /** Additional CSS class to aplied when the link is inactive. */
28
- inactiveClass?: Cx.StyleProp;
29
-
30
- /** Where to display the linked URL, as the name for a browsing context (a tab, window, or <iframe>) */
31
- target?: Cx.Prop<"_self" | "_blank" | "_parent" | "_top" | (string & {})>;
32
- }
33
-
34
- export class LinkButton extends Cx.Widget<LinkButtonProps> {}
1
+ import * as Cx from "../../core";
2
+ import { ButtonProps } from "../Button";
3
+
4
+ export interface LinkButtonProps extends ButtonProps {
5
+ /** Url to the link's target location. Should start with `~/` or `#/` for pushState/hash based navigation. */
6
+ href?: Cx.StringProp;
7
+
8
+ /** Binding to the current url location in the store. If `href` matches `url`, additional CSS class `active` is applied. */
9
+ url?: Cx.StringProp;
10
+
11
+ /**
12
+ * Accepted values are `equal`, `prefix` and `subroute`. Default is `equal` which means that `url` must exactly match `href` in order to consider the link active.
13
+ * In `prefix` mode, if `href` is a prefix of `url`, the link is considered active. The `subroute` mode is similar to `prefix` mode, except that `href` must be followed by a forward slash `/`, indicating
14
+ * a subroute.
15
+ */
16
+ match?: "equal" | "prefix" | "subroute";
17
+
18
+ /** Additional CSS style to aplied when the link is active. */
19
+ activeStyle?: Cx.StyleProp;
20
+
21
+ /** Additional CSS style to aplied when the link is inactive. */
22
+ inactiveStyle?: Cx.StyleProp;
23
+
24
+ /** Additional CSS class to aplied when the link is active. */
25
+ activeClass?: Cx.StyleProp;
26
+
27
+ /** Additional CSS class to aplied when the link is inactive. */
28
+ inactiveClass?: Cx.StyleProp;
29
+
30
+ /** Where to display the linked URL, as the name for a browsing context (a tab, window, or <iframe>) */
31
+ target?: Cx.Prop<"_self" | "_blank" | "_parent" | "_top" | (string & {})>;
32
+ }
33
+
34
+ export class LinkButton extends Cx.Widget<LinkButtonProps> {}
@@ -1,27 +1,27 @@
1
- import * as Cx from '../../core';
2
-
3
- interface MenuProps extends Cx.HtmlElementProps {
4
-
5
- /** Set to `true` for horizontal menus. */
6
- horizontal?: boolean,
7
-
8
- /**
9
- * Controls size of menu items. Supported values are `xsmall`, `small`, `medium`, `large` or `xlarge`.
10
- * For horizontal menus default size is `small` and for vertical it's `medium`.
11
- */
12
- itemPadding?: string,
13
-
14
- defaultVerticalItemPadding?: string,
15
- defaultHorizontalItemPadding?: string,
16
-
17
- /** Set to true to put overflow items into a submenu on the right. */
18
- overflow?: boolean,
19
-
20
- /** Icon to be used for the overflow menu. */
21
- overflowIcon?: string,
22
-
23
- /** Base CSS class to be applied to the element. No class is applied by default. */
24
- baseClass?: string
25
- }
26
-
27
- export class Menu extends Cx.Widget<MenuProps> {}
1
+ import * as Cx from '../../core';
2
+
3
+ interface MenuProps extends Cx.HtmlElementProps {
4
+
5
+ /** Set to `true` for horizontal menus. */
6
+ horizontal?: boolean,
7
+
8
+ /**
9
+ * Controls size of menu items. Supported values are `xsmall`, `small`, `medium`, `large` or `xlarge`.
10
+ * For horizontal menus default size is `small` and for vertical it's `medium`.
11
+ */
12
+ itemPadding?: string,
13
+
14
+ defaultVerticalItemPadding?: string,
15
+ defaultHorizontalItemPadding?: string,
16
+
17
+ /** Set to true to put overflow items into a submenu on the right. */
18
+ overflow?: boolean,
19
+
20
+ /** Icon to be used for the overflow menu. */
21
+ overflowIcon?: string,
22
+
23
+ /** Base CSS class to be applied to the element. No class is applied by default. */
24
+ baseClass?: string
25
+ }
26
+
27
+ export class Menu extends Cx.Widget<MenuProps> {}
@@ -1,31 +1,31 @@
1
- import * as Cx from "../../core";
2
- import { Instance } from "../../ui";
3
- import { KeyboardShortcut } from "../../ui/keyboardShortcuts";
4
-
5
- export interface MenuItemProps extends Cx.HtmlElementProps {
6
- /** Base CSS class to be applied to the element. Defaults to 'menuitem'. */
7
- baseClass?: string;
8
- hoverFocusTimeout?: number;
9
- clickToOpen?: boolean;
10
- hoverToOpen?: boolean;
11
- horizontal?: boolean;
12
- arrow?: Cx.BooleanProp;
13
- dropdownOptions?: Cx.Config;
14
- showCursor?: boolean;
15
- pad?: boolean;
16
- placement?: string;
17
- placementOrder?: string;
18
- autoClose?: boolean;
19
- icons?: boolean;
20
- icon?: Cx.StringProp;
21
- keyboardShortcut?: KeyboardShortcut;
22
- tooltip?: string | Cx.Config;
23
- openOnFocus?: boolean;
24
- disabled?: Cx.BooleanProp;
25
- checked?: Cx.BooleanProp;
26
-
27
- /** Confirmation text or configuration object. See MsgBox.yesNo for more details. */
28
- confirm?: Cx.Prop<string | Cx.Config>;
29
- }
30
-
31
- export class MenuItem extends Cx.Widget<MenuItemProps> {}
1
+ import * as Cx from "../../core";
2
+ import { Instance } from "../../ui";
3
+ import { KeyboardShortcut } from "../../ui/keyboardShortcuts";
4
+
5
+ export interface MenuItemProps extends Cx.HtmlElementProps {
6
+ /** Base CSS class to be applied to the element. Defaults to 'menuitem'. */
7
+ baseClass?: string;
8
+ hoverFocusTimeout?: number;
9
+ clickToOpen?: boolean;
10
+ hoverToOpen?: boolean;
11
+ horizontal?: boolean;
12
+ arrow?: Cx.BooleanProp;
13
+ dropdownOptions?: Cx.Config;
14
+ showCursor?: boolean;
15
+ pad?: boolean;
16
+ placement?: string;
17
+ placementOrder?: string;
18
+ autoClose?: boolean;
19
+ icons?: boolean;
20
+ icon?: Cx.StringProp;
21
+ keyboardShortcut?: KeyboardShortcut;
22
+ tooltip?: string | Cx.Config;
23
+ openOnFocus?: boolean;
24
+ disabled?: Cx.BooleanProp;
25
+ checked?: Cx.BooleanProp;
26
+
27
+ /** Confirmation text or configuration object. See MsgBox.yesNo for more details. */
28
+ confirm?: Cx.Prop<string | Cx.Config>;
29
+ }
30
+
31
+ export class MenuItem extends Cx.Widget<MenuItemProps> {}
@@ -1,5 +1,5 @@
1
- import * as Cx from '../../core';
2
-
3
- export interface MenuSpacerProps extends Cx.WidgetProps {}
4
-
5
- export class MenuSpacer extends Cx.Widget<MenuSpacerProps> {}
1
+ import * as Cx from '../../core';
2
+
3
+ export interface MenuSpacerProps extends Cx.WidgetProps {}
4
+
5
+ export class MenuSpacer extends Cx.Widget<MenuSpacerProps> {}
@@ -1,9 +1,9 @@
1
- import * as Cx from "../../core";
2
- import { RouteProps } from "./Route";
3
-
4
- interface RedirectRouteProps extends RouteProps {
5
- /** Redirection URL. */
6
- redirect?: Cx.StringProp;
7
- }
8
-
9
- export class RedirectRoute extends Cx.Widget<RedirectRouteProps> {}
1
+ import * as Cx from "../../core";
2
+ import { RouteProps } from "./Route";
3
+
4
+ interface RedirectRouteProps extends RouteProps {
5
+ /** Redirection URL. */
6
+ redirect?: Cx.StringProp;
7
+ }
8
+
9
+ export class RedirectRoute extends Cx.Widget<RedirectRouteProps> {}