cx 26.0.9 → 26.0.10

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 (235) hide show
  1. package/build/ui/Controller.d.ts +2 -2
  2. package/build/ui/index.d.ts +2 -1
  3. package/build/ui/index.js +2 -1
  4. package/build.js +133 -133
  5. package/dist/manifest.js +818 -921
  6. package/dist/ui.js +1 -1
  7. package/package.json +2 -2
  8. package/src/ui/Controller.ts +2 -2
  9. package/src/ui/index.ts +2 -1
  10. package/src/widgets/HtmlElement.spec.tsx +8 -6
  11. package/build/charts/Bar.scss +0 -29
  12. package/build/charts/BarGraph.scss +0 -29
  13. package/build/charts/BubbleGraph.scss +0 -32
  14. package/build/charts/Column.scss +0 -29
  15. package/build/charts/ColumnGraph.scss +0 -30
  16. package/build/charts/Gridlines.scss +0 -25
  17. package/build/charts/Legend.scss +0 -50
  18. package/build/charts/LegendEntry.scss +0 -29
  19. package/build/charts/LineGraph.scss +0 -25
  20. package/build/charts/Marker.scss +0 -44
  21. package/build/charts/MarkerLine.scss +0 -20
  22. package/build/charts/PieChart.scss +0 -29
  23. package/build/charts/Range.scss +0 -20
  24. package/build/charts/RangeMarker.scss +0 -17
  25. package/build/charts/ScatterGraph.scss +0 -24
  26. package/build/charts/Swimlane.scss +0 -16
  27. package/build/charts/Swimlanes.scss +0 -16
  28. package/build/charts/axis/Axis.scss +0 -23
  29. package/build/charts/axis/CategoryAxis.scss +0 -35
  30. package/build/charts/axis/NumericAxis.scss +0 -35
  31. package/build/charts/axis/TimeAxis.scss +0 -34
  32. package/build/charts/axis/index.scss +0 -5
  33. package/build/charts/axis/variables.scss +0 -3
  34. package/build/charts/index.scss +0 -22
  35. package/build/charts/palette.scss +0 -97
  36. package/build/charts/variables.scss +0 -22
  37. package/build/data/ArrayElementView.spec.d.ts +0 -1
  38. package/build/data/ArrayElementView.spec.js +0 -81
  39. package/build/data/Binding.spec.d.ts +0 -1
  40. package/build/data/Binding.spec.js +0 -61
  41. package/build/data/Expression.spec.d.ts +0 -1
  42. package/build/data/Expression.spec.js +0 -196
  43. package/build/data/Grouper.spec.d.ts +0 -1
  44. package/build/data/Grouper.spec.js +0 -48
  45. package/build/data/Ref.spec.d.ts +0 -1
  46. package/build/data/Ref.spec.js +0 -72
  47. package/build/data/Store.spec.d.ts +0 -1
  48. package/build/data/Store.spec.js +0 -19
  49. package/build/data/StoreRef.spec.d.ts +0 -1
  50. package/build/data/StoreRef.spec.js +0 -22
  51. package/build/data/StringTemplate.spec.d.ts +0 -1
  52. package/build/data/StringTemplate.spec.js +0 -112
  53. package/build/data/StructuredSelector.spec.d.ts +0 -1
  54. package/build/data/StructuredSelector.spec.js +0 -102
  55. package/build/data/View.spec.d.ts +0 -1
  56. package/build/data/View.spec.js +0 -44
  57. package/build/data/ZoomIntoPropertyView.spec.d.ts +0 -1
  58. package/build/data/ZoomIntoPropertyView.spec.js +0 -54
  59. package/build/data/comparer.spec.d.ts +0 -1
  60. package/build/data/comparer.spec.js +0 -50
  61. package/build/data/computable.spec.d.ts +0 -1
  62. package/build/data/computable.spec.js +0 -56
  63. package/build/data/createAccessorModelProxy.spec.d.ts +0 -1
  64. package/build/data/createAccessorModelProxy.spec.js +0 -30
  65. package/build/data/createStructuredSelector.spec.d.ts +0 -1
  66. package/build/data/createStructuredSelector.spec.js +0 -42
  67. package/build/data/diff/diffs.spec.d.ts +0 -1
  68. package/build/data/diff/diffs.spec.js +0 -45
  69. package/build/data/getAccessor.spec.d.ts +0 -1
  70. package/build/data/getAccessor.spec.js +0 -10
  71. package/build/data/getSelector.spec.d.ts +0 -1
  72. package/build/data/getSelector.spec.js +0 -36
  73. package/build/data/ops/append.spec.d.ts +0 -1
  74. package/build/data/ops/append.spec.js +0 -24
  75. package/build/data/ops/filter.spec.d.ts +0 -1
  76. package/build/data/ops/filter.spec.js +0 -25
  77. package/build/data/ops/findTreeNode.spec.d.ts +0 -1
  78. package/build/data/ops/findTreeNode.spec.js +0 -20
  79. package/build/data/ops/merge.spec.d.ts +0 -1
  80. package/build/data/ops/merge.spec.js +0 -23
  81. package/build/data/ops/removeTreeNodes.spec.d.ts +0 -1
  82. package/build/data/ops/removeTreeNodes.spec.js +0 -35
  83. package/build/data/ops/updateArray.spec.d.ts +0 -1
  84. package/build/data/ops/updateArray.spec.js +0 -33
  85. package/build/data/ops/updateTree.spec.d.ts +0 -1
  86. package/build/data/ops/updateTree.spec.js +0 -44
  87. package/build/global.scss +0 -14
  88. package/build/hooks/invokeCallback.spec.d.ts +0 -1
  89. package/build/hooks/invokeCallback.spec.js +0 -44
  90. package/build/hooks/resolveCallback.spec.d.ts +0 -1
  91. package/build/hooks/resolveCallback.spec.js +0 -35
  92. package/build/hooks/store.spec.d.ts +0 -1
  93. package/build/hooks/store.spec.js +0 -48
  94. package/build/hooks/useTrigger.spec.d.ts +0 -1
  95. package/build/hooks/useTrigger.spec.js +0 -59
  96. package/build/index.scss +0 -6
  97. package/build/svg/Svg.scss +0 -28
  98. package/build/svg/index.scss +0 -9
  99. package/build/ui/Controller.spec.d.ts +0 -1
  100. package/build/ui/Controller.spec.js +0 -251
  101. package/build/ui/Cx.spec.d.ts +0 -1
  102. package/build/ui/Cx.spec.js +0 -153
  103. package/build/ui/DataProxy.spec.d.ts +0 -1
  104. package/build/ui/DataProxy.spec.js +0 -208
  105. package/build/ui/IsolatedScope.spec.d.ts +0 -1
  106. package/build/ui/IsolatedScope.spec.js +0 -42
  107. package/build/ui/Repeater.spec.d.ts +0 -1
  108. package/build/ui/Repeater.spec.js +0 -109
  109. package/build/ui/Rescope.spec.d.ts +0 -1
  110. package/build/ui/Rescope.spec.js +0 -134
  111. package/build/ui/Restate.spec.d.ts +0 -1
  112. package/build/ui/Restate.spec.js +0 -257
  113. package/build/ui/adapter/ArrayAdapter.spec.d.ts +0 -1
  114. package/build/ui/adapter/ArrayAdapter.spec.js +0 -44
  115. package/build/ui/adapter/TreeAdapter.spec.d.ts +0 -1
  116. package/build/ui/adapter/TreeAdapter.spec.js +0 -71
  117. package/build/ui/app/Url.spec.d.ts +0 -1
  118. package/build/ui/app/Url.spec.js +0 -43
  119. package/build/ui/createFunctionalComponent.spec.d.ts +0 -1
  120. package/build/ui/createFunctionalComponent.spec.js +0 -272
  121. package/build/ui/index.scss +0 -2
  122. package/build/ui/layout/ContentPlaceholder.spec.d.ts +0 -1
  123. package/build/ui/layout/ContentPlaceholder.spec.js +0 -333
  124. package/build/ui/layout/FirstVisibleChildLayout.spec.d.ts +0 -1
  125. package/build/ui/layout/FirstVisibleChildLayout.spec.js +0 -101
  126. package/build/ui/layout/LabelsLeftLayout.scss +0 -47
  127. package/build/ui/layout/LabelsTopLayout.scss +0 -65
  128. package/build/ui/layout/index.scss +0 -3
  129. package/build/ui/layout/variables.scss +0 -2
  130. package/build/ui/variables.scss +0 -2
  131. package/build/util/Format.spec.d.ts +0 -1
  132. package/build/util/Format.spec.js +0 -58
  133. package/build/util/TraversalStack.spec.d.ts +0 -1
  134. package/build/util/TraversalStack.spec.js +0 -43
  135. package/build/util/call-once.scss +0 -7
  136. package/build/util/date/upperBoundCheck.spec.d.ts +0 -1
  137. package/build/util/date/upperBoundCheck.spec.js +0 -22
  138. package/build/util/getSearchQueryPredicate.spec.d.ts +0 -1
  139. package/build/util/getSearchQueryPredicate.spec.js +0 -33
  140. package/build/util/index.scss +0 -11
  141. package/build/util/isValidIdentifierName.spec.d.ts +0 -1
  142. package/build/util/isValidIdentifierName.spec.js +0 -28
  143. package/build/util/routeAppend.spec.d.ts +0 -1
  144. package/build/util/routeAppend.spec.js +0 -14
  145. package/build/util/scss/add-rules.scss +0 -40
  146. package/build/util/scss/calc.scss +0 -45
  147. package/build/util/scss/call-once.scss +0 -13
  148. package/build/util/scss/clockwise.scss +0 -49
  149. package/build/util/scss/colors.scss +0 -10
  150. package/build/util/scss/deep-get.scss +0 -12
  151. package/build/util/scss/deep-merge.scss +0 -21
  152. package/build/util/scss/divide.scss +0 -3
  153. package/build/util/scss/include.scss +0 -48
  154. package/build/util/scss/index.scss +0 -9
  155. package/build/variables.scss +0 -217
  156. package/build/widgets/AccessorBindings.spec.d.ts +0 -1
  157. package/build/widgets/AccessorBindings.spec.js +0 -40
  158. package/build/widgets/Button.scss +0 -119
  159. package/build/widgets/Button.variables.scss +0 -117
  160. package/build/widgets/CxCredit.scss +0 -39
  161. package/build/widgets/FlexBox.scss +0 -148
  162. package/build/widgets/Heading.scss +0 -40
  163. package/build/widgets/HighlightedSearchText.scss +0 -20
  164. package/build/widgets/HtmlElement.spec.d.ts +0 -1
  165. package/build/widgets/HtmlElement.spec.js +0 -38
  166. package/build/widgets/Icon.scss +0 -22
  167. package/build/widgets/List.scss +0 -93
  168. package/build/widgets/ProgressBar.scss +0 -51
  169. package/build/widgets/Resizer.scss +0 -44
  170. package/build/widgets/Section.scss +0 -56
  171. package/build/widgets/animations.scss +0 -11
  172. package/build/widgets/drag-drop/DragClone.scss +0 -36
  173. package/build/widgets/drag-drop/DragHandle.scss +0 -19
  174. package/build/widgets/drag-drop/DragSource.scss +0 -27
  175. package/build/widgets/drag-drop/DropZone.scss +0 -77
  176. package/build/widgets/drag-drop/index.scss +0 -4
  177. package/build/widgets/drag-drop/variables.scss +0 -15
  178. package/build/widgets/form/Calendar.scss +0 -199
  179. package/build/widgets/form/Calendar.variables.scss +0 -64
  180. package/build/widgets/form/Checkbox.scss +0 -129
  181. package/build/widgets/form/Checkbox.variables.scss +0 -40
  182. package/build/widgets/form/ColorField.scss +0 -98
  183. package/build/widgets/form/ColorPicker.scss +0 -285
  184. package/build/widgets/form/ColorPicker.variables.scss +0 -22
  185. package/build/widgets/form/DateTimeField.scss +0 -92
  186. package/build/widgets/form/DateTimePicker.scss +0 -47
  187. package/build/widgets/form/Field.scss +0 -164
  188. package/build/widgets/form/HelpText.scss +0 -24
  189. package/build/widgets/form/Label.scss +0 -38
  190. package/build/widgets/form/LookupField.scss +0 -221
  191. package/build/widgets/form/MonthField.scss +0 -100
  192. package/build/widgets/form/MonthPicker.scss +0 -125
  193. package/build/widgets/form/NumberField.scss +0 -63
  194. package/build/widgets/form/Radio.scss +0 -123
  195. package/build/widgets/form/Radio.variables.scss +0 -46
  196. package/build/widgets/form/Select.scss +0 -101
  197. package/build/widgets/form/Slider.scss +0 -121
  198. package/build/widgets/form/Switch.scss +0 -142
  199. package/build/widgets/form/TextArea.scss +0 -45
  200. package/build/widgets/form/TextField.scss +0 -57
  201. package/build/widgets/form/UploadButton.scss +0 -49
  202. package/build/widgets/form/ValidationError.scss +0 -23
  203. package/build/widgets/form/ValidationGroup.spec.d.ts +0 -1
  204. package/build/widgets/form/ValidationGroup.spec.js +0 -62
  205. package/build/widgets/form/Wheel.scss +0 -152
  206. package/build/widgets/form/index.scss +0 -24
  207. package/build/widgets/form/variables.scss +0 -355
  208. package/build/widgets/grid/Grid.scss +0 -640
  209. package/build/widgets/grid/Pagination.scss +0 -115
  210. package/build/widgets/grid/TreeNode.scss +0 -90
  211. package/build/widgets/grid/index.scss +0 -4
  212. package/build/widgets/grid/variables.scss +0 -137
  213. package/build/widgets/index.scss +0 -16
  214. package/build/widgets/nav/Link.scss +0 -20
  215. package/build/widgets/nav/Menu.scss +0 -76
  216. package/build/widgets/nav/Menu.variables.scss +0 -25
  217. package/build/widgets/nav/MenuItem.scss +0 -130
  218. package/build/widgets/nav/Route.spec.d.ts +0 -1
  219. package/build/widgets/nav/Route.spec.js +0 -15
  220. package/build/widgets/nav/Scroller.scss +0 -148
  221. package/build/widgets/nav/Tab.scss +0 -82
  222. package/build/widgets/nav/Tab.variables.scss +0 -84
  223. package/build/widgets/nav/cover.scss +0 -22
  224. package/build/widgets/nav/index.scss +0 -6
  225. package/build/widgets/nav/variables.scss +0 -27
  226. package/build/widgets/overlay/Dropdown.scss +0 -186
  227. package/build/widgets/overlay/Overlay.scss +0 -68
  228. package/build/widgets/overlay/Toast.scss +0 -164
  229. package/build/widgets/overlay/Tooltip.scss +0 -177
  230. package/build/widgets/overlay/Window.scss +0 -129
  231. package/build/widgets/overlay/Window.variables.scss +0 -62
  232. package/build/widgets/overlay/captureMouse.scss +0 -13
  233. package/build/widgets/overlay/index.scss +0 -15
  234. package/build/widgets/overlay/variables.scss +0 -85
  235. package/build/widgets/variables.scss +0 -146
@@ -1,115 +0,0 @@
1
- @use "sass:map";
2
-
3
- @mixin cx-pagination(
4
- $name: "pagination",
5
- $state-style-map: $cx-grid-pagination-state-style-map,
6
- $icon-size: $cx-default-icon-size,
7
- $besm: $cx-besm
8
- ) {
9
- $block: map.get($besm, block);
10
- $element: map.get($besm, element);
11
- $state: map.get($besm, state);
12
-
13
- .#{$block}#{$name} {
14
- display: inline-block;
15
- white-space: nowrap;
16
- margin: 0;
17
- padding: 0;
18
- line-height: $cx-default-box-line-height;
19
- box-sizing: border-box;
20
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
21
- user-select: none;
22
-
23
- @include cx-add-state-rules($cx-list, default);
24
-
25
- &:hover {
26
- @include cx-add-state-rules($cx-list, hover);
27
- }
28
-
29
- &:focus {
30
- @include cx-add-state-rules($cx-list, focus);
31
- }
32
- }
33
-
34
- .#{$element}#{$name}-page {
35
- display: inline-block;
36
- box-sizing: border-box;
37
- border-style: solid;
38
- margin-left: -1px;
39
- text-decoration: none;
40
- cursor: pointer;
41
- border-width: $cx-grid-pagination-default-border-width;
42
- border-color: $cx-grid-pagination-default-border-color;
43
- border-radius: $cx-grid-pagination-default-border-radius;
44
- padding: $cx-grid-pagination-default-padding;
45
-
46
- @include cx-add-state-rules($state-style-map, default);
47
-
48
- position: relative;
49
-
50
- &:first-child {
51
- border-top-left-radius: $cx-grid-pagination-default-outer-border-radius;
52
- border-bottom-left-radius: $cx-grid-pagination-default-outer-border-radius;
53
-
54
- &:after {
55
- content: "<";
56
- visibility: hidden;
57
- }
58
- }
59
-
60
- &:last-child {
61
- border-top-right-radius: $cx-grid-pagination-default-outer-border-radius;
62
- border-bottom-right-radius: $cx-grid-pagination-default-outer-border-radius;
63
-
64
- &:after {
65
- content: ">";
66
- visibility: hidden;
67
- }
68
- }
69
-
70
- &:hover {
71
- @include cx-add-state-rules($state-style-map, hover);
72
-
73
- &:focus {
74
- @include cx-add-state-rules($state-style-map, cursor);
75
- }
76
- }
77
-
78
- &:active {
79
- @include cx-add-state-rules($state-style-map, active);
80
- }
81
-
82
- &.#{$state}active {
83
- @include cx-add-state-rules($state-style-map, selected);
84
-
85
- .#{$block}#{$name}:focus > & {
86
- @include cx-add-state-rules($state-style-map, selected-cursor);
87
- }
88
- }
89
-
90
- &.#{$state}disabled {
91
- @include cx-add-state-rules($state-style-map, disabled);
92
- }
93
- }
94
-
95
- .#{$element}#{$name}-icon-prev-page,
96
- .#{$element}#{$name}-icon-next-page {
97
- width: $icon-size;
98
- height: $icon-size;
99
- font-size: $icon-size;
100
- line-height: $icon-size;
101
- position: absolute;
102
- top: 50%;
103
- margin-top: -$icon-size * 0.5;
104
- left: 50%;
105
- margin-left: -$icon-size * 0.5;
106
- }
107
-
108
- .#{$element}#{$name}-icon-prev-page {
109
- transform: rotate(180deg);
110
- }
111
- }
112
-
113
- @if (cx-should-include("cx/widgets/Pagination")) {
114
- @include cx-pagination();
115
- }
@@ -1,90 +0,0 @@
1
- @use "sass:map";
2
-
3
- @mixin cx-treenode(
4
- $name: "treenode",
5
- $icon-size: $cx-default-icon-size,
6
- $handle-size: $cx-default-input-tool-size,
7
- $handle-state-style-map: $cx-input-right-icon-state-style-map,
8
- $besm: $cx-besm
9
- ) {
10
- $block: map.get($besm, block);
11
- $element: map.get($besm, element);
12
- $state: map.get($besm, state);
13
- $mod: map.get($besm, mod);
14
-
15
- .#{$block}#{$name} {
16
- padding-left: $handle-size + $icon-size * 0.25;
17
- position: relative;
18
-
19
- &.#{$state}icon {
20
- padding-left: $handle-size + $icon-size + $icon-size * 0.25;
21
- }
22
-
23
- @for $i from 1 through 20 {
24
- &.#{$state}level-#{$i} {
25
- margin-left: #{($i * 20)}px;
26
- }
27
- }
28
- }
29
-
30
- .#{$element}#{$name}-handle {
31
- position: absolute;
32
-
33
- @include cx-add-state-rules($handle-state-style-map, default);
34
-
35
- left: 0;
36
- top: 50%;
37
- margin-top: -$handle-size * 0.5;
38
- bottom: 0;
39
- width: $handle-size + $icon-size;
40
- height: $handle-size;
41
-
42
- &:hover {
43
- @include cx-add-state-rules($handle-state-style-map, hover);
44
- }
45
-
46
- &:active {
47
- @include cx-add-state-rules($handle-state-style-map, active);
48
- }
49
- }
50
-
51
- .#{$element}#{$name}-arrow {
52
- display: block;
53
- position: absolute;
54
- left: 0;
55
- top: 50%;
56
- margin-top: -$icon-size * 0.5;
57
- margin-left: ($handle-size - $icon-size) * 0.5;
58
- height: $icon-size;
59
- width: $icon-size;
60
- line-height: $icon-size;
61
- transform: rotate(-90deg);
62
- transition: transform 0.2s;
63
-
64
- .#{$state}expanded & {
65
- transform: rotate(0);
66
- }
67
- }
68
-
69
- .#{$element}#{$name}-icon {
70
- display: block;
71
- position: absolute;
72
- left: 0;
73
- top: 50%;
74
- margin-top: -$icon-size * 0.5;
75
- margin-left: ($handle-size + $icon-size) * 0.5;
76
- height: $icon-size;
77
- width: $icon-size;
78
- line-height: $icon-size;
79
- }
80
-
81
- .#{$block}grid.#{$mod}tree {
82
- td {
83
- border-top: none;
84
- }
85
- }
86
- }
87
-
88
- @if (cx-should-include("cx/widgets/TreeNode")) {
89
- @include cx-treenode();
90
- }
@@ -1,4 +0,0 @@
1
-
2
- @import 'Pagination';
3
- @import 'TreeNode';
4
- @import 'Grid';
@@ -1,137 +0,0 @@
1
- // GRID
2
- $cx-default-grid-font-size: $cx-default-box-font-size !default;
3
- $cx-default-grid-border-color: $cx-default-border-color !default;
4
- $cx-default-grid-border-radius: null !default;
5
- $cx-default-grid-box-shadow: null !default;
6
-
7
- // header
8
- $cx-default-grid-header-font-size: $cx-default-box-font-size !default;
9
- $cx-default-grid-header-font-weight: normal !default;
10
- $cx-default-grid-header-line-height: null !default;
11
- $cx-default-grid-header-color: $cx-default-color !default;
12
- $cx-default-grid-header-background-color: #eee !default;
13
- $cx-default-grid-header-border-color: $cx-default-border-color !default;
14
- $cx-default-grid-header-box-shadow: null !default;
15
- $cx-default-grid-header-padding: null !default;
16
-
17
- @use "sass:color";
18
-
19
- $cx-grid-header-state-style-map: (
20
- default: (
21
- font-size: $cx-default-grid-header-font-size,
22
- font-weight: $cx-default-grid-header-font-weight,
23
- line-height: $cx-default-grid-header-line-height,
24
- color: $cx-default-grid-header-color,
25
- background-color: $cx-default-grid-header-background-color,
26
- border-color: $cx-default-grid-header-border-color,
27
- background-clip: border-box,
28
- padding: $cx-default-grid-header-padding,
29
- ),
30
- hover: (
31
- background-color: color.adjust($cx-default-grid-header-background-color, $lightness: -2%),
32
- ),
33
- sorted: (
34
- background-color: color.adjust($cx-default-grid-header-background-color, $lightness: -7%),
35
- ),
36
- sorted-hover: (
37
- background-color: color.adjust($cx-default-grid-header-background-color, $lightness: -5%),
38
- ),
39
- ) !default;
40
-
41
- // data
42
- $cx-default-grid-data-font-size: null !default;
43
- $cx-default-grid-data-font-weight: null !default;
44
- $cx-default-grid-data-line-height: null !default;
45
- $cx-default-grid-data-background-color: transparent !default;
46
- $cx-default-grid-data-alternate-background-color: null !default;
47
- $cx-default-grid-data-border-color: $cx-default-grid-border-color !default;
48
- $cx-default-grid-data-padding: 5px !default;
49
- $cx-default-grid-caption-gap: 15px !default;
50
-
51
- $cx-grid-data-state-style-map: cx-deep-map-merge(
52
- $cx-list-item,
53
- (
54
- default: (
55
- font-size: $cx-default-grid-data-font-size,
56
- line-height: $cx-default-grid-data-line-height,
57
- font-weight: $cx-default-grid-data-font-weight,
58
- background-color: $cx-default-grid-data-background-color,
59
- border-color: $cx-default-grid-data-border-color,
60
- padding: $cx-default-grid-data-padding,
61
- ),
62
- alternate: (
63
- background-color: $cx-default-grid-data-alternate-background-color,
64
- ),
65
- )
66
- ) !default;
67
-
68
- $cx-grid-group-caption-level-style-map: (
69
- level-1: (
70
- font-weight: bold,
71
- font-size: 115%,
72
- ),
73
- level-2: (
74
- font-weight: bold,
75
- font-size: 130%,
76
- border-bottom: 1px solid grey,
77
- ),
78
- level-3: (
79
- font-weight: bold,
80
- font-size: 145%,
81
- border-bottom: 1px solid grey,
82
- ),
83
- level-4: (
84
- font-weight: bold,
85
- font-size: 160%,
86
- border-bottom: 1px solid grey,
87
- ),
88
- );
89
-
90
- $cx-grid-group-footer-level-style-map: (
91
- level-1: (
92
- font-weight: bold,
93
- border-top: 1px solid $cx-default-grid-border-color,
94
- ),
95
- level-2: (
96
- font-weight: bold,
97
- font-size: 110%,
98
- border-top: 1px solid grey,
99
- ),
100
- level-3: (
101
- font-weight: bold,
102
- font-size: 120%,
103
- border-top: 1px solid grey,
104
- ),
105
- level-4: (
106
- font-weight: bold,
107
- font-size: 130%,
108
- border-top: 1px solid grey,
109
- ),
110
- );
111
-
112
- // pagination
113
- $cx-grid-pagination-default-border-width: $cx-default-border-width !default;
114
- $cx-grid-pagination-default-border-color: $cx-default-border-color !default;
115
- $cx-grid-pagination-default-border-radius: null !default;
116
- $cx-grid-pagination-default-outer-border-radius: $cx-default-border-radius !default;
117
- $cx-grid-pagination-default-padding: cx-top($cx-default-box-padding) 2 * cx-top($cx-default-box-padding) !default;
118
-
119
- $cx-grid-pagination-state-style-map: cx-deep-map-merge($cx-list-item, ()) !default;
120
-
121
- $cx-grid-cell-cursor-style: (
122
- left: -1px,
123
- top: -1px,
124
- right: -1px,
125
- bottom: -1px,
126
- background: rgba(green, 0.1),
127
- border: 2px solid rgba(green, 1),
128
- );
129
-
130
- @use "sass:map";
131
-
132
- $cx-dependencies: map.merge(
133
- $cx-dependencies,
134
- (
135
- "cx/widgets/Grid": "cx/widgets/DragClone",
136
- )
137
- );
@@ -1,16 +0,0 @@
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,20 +0,0 @@
1
- @use "sass:map";
2
-
3
- @mixin cx-link($name: "link", $besm: $cx-besm, $state-style-map: $cx-link-state-style-map) {
4
- $block: map.get($besm, block);
5
- $element: map.get($besm, element);
6
- $state: map.get($besm, state);
7
-
8
- .#{$block}#{$name} {
9
- &:hover {
10
- @include cx-add-state-rules($state-style-map, hover);
11
- }
12
- &.#{$state}active {
13
- @include cx-add-state-rules($state-style-map, active);
14
- }
15
- }
16
- }
17
-
18
- @if (cx-should-include("cx/widgets/Link")) {
19
- @include cx-link();
20
- }
@@ -1,76 +0,0 @@
1
- @use "sass:map";
2
-
3
- @mixin cx-menu($name: "menu", $state-style-map: $cx-menu-state-style-map, $besm: $cx-besm) {
4
- $block: map.get($besm, block);
5
- $element: map.get($besm, element);
6
- $state: map.get($besm, state);
7
- $mod: map.get($besm, mod);
8
-
9
- .#{$block}#{$name} {
10
- box-sizing: border-box;
11
- margin: 0;
12
- padding: 0;
13
- list-style: none;
14
-
15
- @include cx-add-state-rules($state-style-map, default);
16
-
17
- &.#{$state}horizontal {
18
- white-space: nowrap;
19
-
20
- & > .#{$element}#{$name}-item {
21
- display: inline-block;
22
- user-select: none;
23
-
24
- @each $size, $value in $cx-menu-padding-options {
25
- &.#{$state}size-#{$size} > .#{$mod}#{$name} {
26
- margin: 0 cx-right($value) 0 cx-left($value);
27
- }
28
- }
29
- }
30
- }
31
-
32
- @each $size, $value in $cx-menu-padding-options {
33
- &.#{$state}vertical.#{$state}#{$size}-item-padding .#{$mod}#{$name} {
34
- margin: $value;
35
- display: block;
36
- }
37
- }
38
-
39
- .#{$element}#{$name}-item {
40
- & > hr {
41
- border: none;
42
- border-top: 1px solid $cx-default-menu-separator-color;
43
- margin: map.get($cx-menu-padding-options, medium);
44
- }
45
-
46
- &.#{$state}hidden {
47
- visibility: hidden;
48
- position: absolute;
49
- }
50
- }
51
-
52
- &.#{$state}overflow {
53
- overflow: hidden;
54
- display: flex;
55
-
56
- & > .#{$element}#{$name}-item:last-child {
57
- visibility: hidden;
58
- position: absolute;
59
- max-height: 100%;
60
- }
61
-
62
- &.#{$state}pack > .#{$element}#{$name}-item:last-child {
63
- visibility: visible;
64
- position: relative;
65
- }
66
- }
67
- }
68
-
69
- .#{$element}#{$name}-spacer {
70
- flex: 1 1 0%;
71
- }
72
- }
73
-
74
- @if (cx-should-include("cx/widgets/Menu")) {
75
- @include cx-menu();
76
- }
@@ -1,25 +0,0 @@
1
- @use "sass:map";
2
-
3
- // MENU
4
- $cx-menu-state-style-map: $cx-list !default;
5
- $cx-default-menu-separator-color: lightgray !default;
6
-
7
- // MENU ITEM
8
- $cx-menu-padding-options: (
9
- xsmall: $cx-default-padding-extra-small 2 * $cx-default-padding-extra-small,
10
- small: $cx-default-padding-small 2 * $cx-default-padding-small,
11
- medium: $cx-default-padding-medium 2 * $cx-default-padding-medium,
12
- large: $cx-default-padding-large 2 * $cx-default-padding-large,
13
- xlarge: $cx-default-padding-extra-large 2 * $cx-default-padding-extra-large,
14
- ) !default;
15
-
16
- $cx-menu-list-item: () !default;
17
-
18
- $cx-dependencies: map.merge(
19
- $cx-dependencies,
20
- (
21
- "cx/widgets/Menu": "cx/widgets/MenuItem",
22
- "cx/widgets/MenuItem": "cx/widgets/Dropdown",
23
- "cx/widgets/SubMenu": "cx/widgets/MenuItem",
24
- )
25
- );
@@ -1,130 +0,0 @@
1
- @use "sass:map";
2
-
3
- @mixin cx-menuitem(
4
- $name: "menuitem",
5
- $state-style-map: cx-deep-map-merge($cx-list-item, $cx-menu-list-item),
6
- $icon-size: $cx-default-icon-size,
7
- $besm: $cx-besm
8
- ) {
9
- $block: map.get($besm, block);
10
- $element: map.get($besm, element);
11
- $state: map.get($besm, state);
12
- $mod: map.get($besm, mod);
13
-
14
- .#{$block}#{$name} {
15
- box-sizing: border-box;
16
- cursor: pointer;
17
- position: relative;
18
- border-radius: $cx-default-border-radius;
19
-
20
- &:focus {
21
- outline: none;
22
- }
23
-
24
- & > a:hover {
25
- text-decoration: none;
26
- }
27
-
28
- .#{$state}focusable > &.#{$state}cursor {
29
- @include cx-add-state-rules($state-style-map, default);
30
-
31
- &:hover {
32
- @include cx-add-state-rules($state-style-map, hover);
33
- }
34
- }
35
-
36
- .#{$state}focusable.#{$state}cursor > &.#{$state}cursor {
37
- @include cx-add-state-rules($state-style-map, selected-cursor);
38
- }
39
-
40
- &.#{$state}disabled {
41
- @include cx-add-state-rules($state-style-map, disabled);
42
- }
43
-
44
- & > a {
45
- text-decoration: none;
46
- color: inherit;
47
-
48
- &:focus {
49
- outline: none;
50
- }
51
- }
52
-
53
- @each $size, $value in $cx-menu-padding-options {
54
- &.#{$state}#{$size}-padding {
55
- & > a,
56
- & > span {
57
- padding: $value;
58
- line-height: $cx-default-box-line-height;
59
- border: $cx-default-box-border-width solid transparent;
60
- display: block;
61
- }
62
-
63
- &.#{$state}arrow {
64
- padding-right: cx-calc($icon-size);
65
- }
66
-
67
- &.#{$state}icon {
68
- padding-left: cx-calc($icon-size);
69
- }
70
-
71
- &.#{$state}empty {
72
- padding-right: cx-calc($icon-size) * 0.5;
73
- }
74
-
75
- & > .#{$element}#{$name}-arrow {
76
- right: cx-right($value) * 0.5;
77
- }
78
-
79
- & > .#{$element}#{$name}-button {
80
- width: cx-calc(cx-left($value), $icon-size);
81
- }
82
- }
83
- }
84
- }
85
-
86
- .#{$element}#{$name}-arrow {
87
- position: absolute;
88
- width: $icon-size;
89
- height: $icon-size;
90
- top: 50%;
91
- margin-top: -$icon-size * 0.5;
92
-
93
- .#{$state}vertical > & {
94
- transform: rotate(-90deg);
95
- }
96
- }
97
-
98
- .#{$element}#{$name}-button {
99
- position: absolute;
100
- left: 0;
101
- top: 0;
102
- bottom: 0;
103
- }
104
-
105
- .#{$element}#{$name}-baseline {
106
- display: inline-block;
107
- width: 1px;
108
- margin-left: -1px;
109
- visibility: hidden;
110
- padding-left: 0 !important;
111
- padding-right: 0 !important;
112
- }
113
-
114
- .#{$element}#{$name}-icon {
115
- position: absolute;
116
- width: $icon-size;
117
- height: $icon-size;
118
- top: 50%;
119
- left: 50%;
120
- margin-top: -$icon-size * 0.5;
121
- margin-left: -$icon-size * 0.5;
122
- text-align: center;
123
- line-height: 1;
124
- font-size: $icon-size;
125
- }
126
- }
127
-
128
- @if (cx-should-include("cx/widgets/MenuItem")) {
129
- @include cx-menuitem();
130
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,15 +0,0 @@
1
- import { jsx as _jsx } from "cx/jsx-runtime";
2
- import { Route } from "./Route";
3
- import { Store } from "../../data/Store";
4
- import { createTestRenderer } from "../../util/test/createTestRenderer";
5
- import assert from "assert";
6
- describe("Route", () => {
7
- it("matching works for ~/widgets/color-pickers", () => {
8
- let widget = (_jsx("cx", { children: _jsx(Route, { url: "~/widgets/color-pickers", route: "~/widgets/color-pickers", children: _jsx("div", {}) }) }));
9
- let store = new Store();
10
- const component = createTestRenderer(store, widget);
11
- let tree = component.toJSON();
12
- assert(tree && !Array.isArray(tree));
13
- assert.equal(tree.type, "div");
14
- });
15
- });