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,164 +0,0 @@
1
- @use "sass:map";
2
-
3
- @mixin cx-toast(
4
- $name: 'toast',
5
- $besm: $cx-besm,
6
- $mods: $cx-toast-mods
7
- ) {
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
- color: $cx-default-toast-color;
16
- background-color: $cx-default-toast-background-color;
17
- box-sizing: border-box;
18
- position: relative;
19
- pointer-events: all;
20
- transition: all 0.2s ease-in-out;
21
- box-shadow: $cx-default-toast-box-shadow;
22
- border-style: solid;
23
- border-width: $cx-default-toast-border-width;
24
- border-color: $cx-default-toast-border-color;
25
- border-radius: $cx-default-border-radius;
26
- display: flex;
27
- flex-direction: row;
28
- align-items: center;
29
-
30
- &.#{$state}pad {
31
- padding: $cx-default-toast-padding;
32
- }
33
-
34
- &.#{$state}animate {
35
- animation: cx-toast-enter-animation 0.2s;
36
- }
37
-
38
- &.#{$state}animate-enter {
39
- //animation-fill-mode: forwards;
40
- }
41
-
42
- &.#{$state}animate-leave {
43
- animation: cx-toast-leave-animation 0.2s;
44
- animation-fill-mode: forwards;
45
- }
46
-
47
- @each $modname, $config in $mods {
48
- &.#{$mod}#{$modname} {
49
- @include cx-add-state-rules($config, default);
50
-
51
- &[disabled], &.#{$state}disabled {
52
- @include cx-add-state-rules($config, disabled);
53
- }
54
-
55
- &:hover {
56
- @include cx-add-state-rules($config, hover);
57
- }
58
-
59
- &:focus {
60
- @include cx-add-state-rules($config, focus);
61
- }
62
-
63
- &:active, &.#{$state}pressed {
64
- @include cx-add-state-rules($config, active);
65
- }
66
- }
67
- }
68
- }
69
- }
70
-
71
- @keyframes cx-toast-enter-animation {
72
- from {
73
- transform: scale(0);
74
- opacity: 0;
75
- }
76
-
77
- to {
78
- transform: scale(1);
79
- opacity: 1;
80
- }
81
- }
82
-
83
- @keyframes cx-toast-leave-animation {
84
- to {
85
- transform: scale(0);
86
- opacity: 0;
87
- }
88
-
89
- from {
90
- transform: scale(1);
91
- opacity: 1;
92
- }
93
- }
94
-
95
- @mixin cx-toaster(
96
- $name: 'toaster',
97
- $besm: $cx-besm
98
- ) {
99
-
100
- $block: map.get($besm, block);
101
- $element: map.get($besm, element);
102
- $state: map.get($besm, state);
103
-
104
- .#{$block}#{$name} {
105
- position: fixed;
106
- left: 0;
107
- top: 0;
108
- right: 0;
109
- bottom: 0;
110
- pointer-events: none;
111
- display: flex;
112
- flex-direction: column;
113
- align-items: center;
114
- overflow: hidden;
115
- z-index: 1000000;
116
-
117
- &.#{$state}placement-right {
118
- justify-content: center;
119
- align-items: flex-end;
120
- }
121
-
122
- &.#{$state}placement-left {
123
- justify-content: center;
124
- align-items: flex-start;
125
- }
126
-
127
- &.#{$state}placement-bottom {
128
- flex-direction: column-reverse;
129
- }
130
-
131
- &.#{$state}placement-top-left {
132
- align-items: flex-start;
133
- }
134
-
135
- &.#{$state}placement-top-right {
136
- align-items: flex-end;
137
- }
138
-
139
- &.#{$state}placement-bottom-left {
140
- justify-content: flex-end;
141
- align-items: flex-start;
142
- }
143
-
144
- &.#{$state}placement-bottom-right {
145
- justify-content: flex-end;
146
- align-items: flex-end;
147
- }
148
- }
149
-
150
- .#{$element}#{$name}-item {
151
- margin: 0;
152
- height: 0;
153
- transition: all 0.2s ease-in-out;
154
-
155
- &.#{$state}live {
156
- margin: 10px;
157
- }
158
- }
159
- }
160
-
161
- @if (cx-should-include('cx/widgets/Toast')) {
162
- @include cx-toast();
163
- @include cx-toaster();
164
- }
@@ -1,177 +0,0 @@
1
- @use "sass:map";
2
-
3
- @keyframes cx-tooltip-enter-animation {
4
- from {
5
- transform: scale(0.9);
6
- opacity: 0;
7
- }
8
-
9
- to {
10
- transform: scale(1);
11
- opacity: 1;
12
- }
13
- }
14
-
15
- @keyframes cx-tooltip-leave-animation {
16
- from {
17
- transform: scale(1);
18
- opacity: 1;
19
- }
20
-
21
- to {
22
- transform: scale(0.9);
23
- opacity: 0;
24
- }
25
- }
26
-
27
- @mixin cx-tooltip(
28
- $name: 'tooltip',
29
- $besm: $cx-besm
30
- ) {
31
- $block: map.get($besm, block);
32
- $element: map.get($besm, element);
33
- $state: map.get($besm, state);
34
- $mod: map.get($besm, mod);
35
-
36
- .#{$block}#{$name} {
37
- @extend %cxb-overlay;
38
- display: block;
39
- left: -10000px;
40
- top: -10000px;
41
- box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.3);
42
- background-color: $cx-tooltip-background-color;
43
- border: $cx-tooltip-border-width solid $cx-tooltip-border-color;
44
- color: $cx-tooltip-color;
45
- padding: $cx-tooltip-padding;
46
- border-radius: $cx-tooltip-border-radius;
47
- font-size: smaller;
48
- transition: opacity 0.2s ease-in;
49
- max-width: 400px;
50
- pointer-events: none;
51
-
52
- &.#{$state}animate {
53
- animation: cx-tooltip-enter-animation 0.2s;
54
- }
55
-
56
- &.#{$state}animate-leave {
57
- animation: cx-tooltip-leave-animation 0.2s;
58
- animation-fill-mode: forwards;
59
- }
60
-
61
- &.#{$state}mouse-trap {
62
- pointer-events: auto;
63
- }
64
-
65
- &.#{$mod}error {
66
- background-color: $cx-tooltip-background-color-error;
67
- border-color: $cx-tooltip-border-color-error;
68
- color: $cx-tooltip-color-error;
69
-
70
- .#{$element}#{$name}-arrow-border {
71
- color: $cx-tooltip-border-color-error;
72
- }
73
-
74
- .#{$element}#{$name}-arrow-fill {
75
- color: $cx-tooltip-background-color-error;
76
- }
77
- }
78
- }
79
-
80
- .#{$element}#{$name}-title {
81
- font-weight: bold;
82
- font-size: 100%;
83
- }
84
-
85
- @include cx-dropdown-arrows($name, (
86
- border-width: $cx-tooltip-border-width,
87
- border-color: $cx-tooltip-border-color,
88
- border-style: solid,
89
- background-color: $cx-tooltip-background-color
90
- ), $cx-tooltip-arrow-size, $besm)
91
-
92
- //.#{$element}#{$name}-arrow-border, .#{$element}#{$name}-arrow-fill {
93
- // border: solid transparent;
94
- // content: " ";
95
- // height: 0;
96
- // width: 0;
97
- // position: absolute;
98
- //}
99
- //
100
- //.#{$element}#{$name}-arrow-border {
101
- // color: $cx-tooltip-border-color;
102
- // border-width: $cx-tooltip-border-width + $cx-tooltip-arrow-size;
103
- //}
104
- //
105
- //.#{$element}#{$name}-arrow-fill {
106
- // color: $cx-tooltip-background-color;
107
- // border-width: $cx-tooltip-arrow-size;
108
- //}
109
- //
110
- //.#{$state}place-right {
111
- // .#{$element}#{$name}-arrow-fill {
112
- // right: 100%;
113
- // top: 50%;
114
- // border-right-color: currentColor;
115
- // margin-top: -$cx-tooltip-arrow-size;
116
- // }
117
- //
118
- // .#{$element}#{$name}-arrow-border {
119
- // right: 100%;
120
- // top: 50%;
121
- // border-right-color: currentColor;
122
- // margin-top: -$cx-tooltip-border-width - $cx-tooltip-arrow-size;
123
- // }
124
- //}
125
- //
126
- //.#{$state}place-left {
127
- // .#{$element}#{$name}-arrow-fill {
128
- // left: 100%;
129
- // top: 50%;
130
- // border-left-color: currentColor;
131
- // margin-top: -$cx-tooltip-arrow-size;
132
- // }
133
- //
134
- // .#{$element}#{$name}-arrow-border {
135
- // left: 100%;
136
- // top: 50%;
137
- // border-left-color: currentColor;
138
- // margin-top: -$cx-tooltip-border-width - $cx-tooltip-arrow-size;
139
- // }
140
- //}
141
- //
142
- //.#{$state}place-up {
143
- // .#{$element}#{$name}-arrow-fill {
144
- // left: 50%;
145
- // top: 100%;
146
- // border-top-color: currentColor;
147
- // margin-left: -$cx-tooltip-arrow-size;
148
- // }
149
- //
150
- // .#{$element}#{$name}-arrow-border {
151
- // left: 50%;
152
- // top: 100%;
153
- // border-top-color: currentColor;
154
- // margin-left: -$cx-tooltip-border-width - $cx-tooltip-arrow-size;
155
- // }
156
- //}
157
- //
158
- //.#{$state}place-down {
159
- // .#{$element}#{$name}-arrow-fill {
160
- // left: 50%;
161
- // bottom: 100%;
162
- // border-bottom-color: currentColor;
163
- // margin-left: -$cx-tooltip-arrow-size;
164
- // }
165
- //
166
- // .#{$element}#{$name}-arrow-border {
167
- // left: 50%;
168
- // bottom: 100%;
169
- // border-bottom-color: currentColor;
170
- // margin-left: -$cx-tooltip-border-width - $cx-tooltip-arrow-size;
171
- // }
172
- //}
173
- }
174
-
175
- @if (cx-should-include('cx/widgets/Tooltip')) {
176
- @include cx-tooltip();
177
- }
@@ -1,129 +0,0 @@
1
- @use "sass:map";
2
-
3
- @mixin cx-window(
4
- $name: "window",
5
- $state-style-map: $cx-window-state-style-map,
6
- $header-state-style-map: $cx-window-header-state-style-map,
7
- $body-state-style-map: $cx-window-body-state-style-map,
8
- $footer-state-style-map: $cx-window-footer-state-style-map,
9
- $mods: $cx-window-mods,
10
- $besm: $cx-besm
11
- ) {
12
- $block: map.get($besm, block);
13
- $element: map.get($besm, element);
14
- $state: map.get($besm, state);
15
- $mod: map.get($besm, mod);
16
-
17
- .#{$block}#{$name} {
18
- @extend %cxb-overlay;
19
- display: flex;
20
- flex-direction: column;
21
-
22
- @include cx-add-state-rules($state-style-map, default);
23
-
24
- &.#{$state}resizable {
25
- &.#{$state}active {
26
- @include cx-add-state-rules($state-style-map, resizable);
27
- }
28
- }
29
-
30
- &.#{$mod}alert {
31
- min-width: 300px;
32
- }
33
- }
34
-
35
- .#{$element}#{$name}-header {
36
- position: relative; //put on top of modal backdrop
37
- box-sizing: border-box;
38
- display: flex;
39
- align-items: center;
40
- flex: none;
41
- touch-action: none;
42
-
43
- @include cx-add-state-rules($header-state-style-map, default);
44
-
45
- .#{$state}draggable & {
46
- cursor: pointer;
47
- }
48
-
49
- .#{$state}active & {
50
- @include cx-add-state-rules($header-state-style-map, active);
51
- }
52
- }
53
-
54
- .#{$element}#{$name}-footer {
55
- position: relative;
56
- box-sizing: border-box;
57
- flex: none;
58
-
59
- @include cx-add-state-rules($footer-state-style-map, default);
60
-
61
- //TODO: Extract common autoclear
62
- &:after {
63
- clear: both;
64
- visibility: hidden;
65
- display: block;
66
- font-size: 0;
67
- content: " ";
68
- height: 0;
69
- }
70
-
71
- .#{$mod}alert & {
72
- text-align: center;
73
- }
74
- }
75
-
76
- .#{$element}#{$name}-body {
77
- overflow: auto;
78
- position: relative; //put on top of modal backdrop
79
- box-sizing: border-box;
80
- flex: auto;
81
-
82
- $padding: cx-get-state-rule($body-state-style-map, default, "padding");
83
-
84
- $noPad: cx-deep-map-merge(
85
- $body-state-style-map,
86
- (
87
- default: (
88
- padding: null,
89
- ),
90
- )
91
- );
92
-
93
- @include cx-add-state-rules($noPad, default);
94
-
95
- &.#{$state}pad {
96
- padding: $padding;
97
- }
98
-
99
- .#{$mod}alert & {
100
- padding: 2.5rem;
101
- text-align: center;
102
- }
103
- }
104
-
105
- @each $modname, $config in $mods {
106
- .#{$block}#{$name}.#{$mod}#{$modname} {
107
- @include cx-add-state-rules($config, frame);
108
-
109
- .#{$element}#{$name}-body {
110
- @include cx-add-state-rules($config, body);
111
- }
112
- .#{$element}#{$name}-footer {
113
- @include cx-add-state-rules($config, footer);
114
- }
115
- }
116
- }
117
-
118
- .#{$element}#{$name}-modal-backdrop {
119
- @extend %cxe-overlay-modal-backdrop;
120
- }
121
-
122
- .#{$element}#{$name}-shadow {
123
- @extend %cxe-overlay-shadow;
124
- }
125
- }
126
-
127
- @if (cx-should-include("cx/widgets/Window")) {
128
- @include cx-window();
129
- }
@@ -1,62 +0,0 @@
1
- $cx-default-window-background-color: transparent !default;
2
- $cx-default-window-box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.29) !default;
3
- $cx-default-window-border-radius: $cx-default-border-radius !default;
4
-
5
- //header
6
- $cx-default-window-header-color: null !default;
7
- $cx-default-window-header-background-color: rgba(246, 246, 246, 0.9) !default;
8
- $cx-default-window-header-padding: 10px 15px !default;
9
- $cx-default-window-header-font-size: 16px !default;
10
-
11
- //body
12
- $cx-default-window-body-padding: $cx-default-window-header-padding !default;
13
- $cx-default-window-body-background-color: white !default;
14
-
15
- //footer
16
- $cx-default-window-footer-color: null !default;
17
- $cx-default-window-footer-background-color: rgba(246, 246, 246, 0.9) !default;
18
- $cx-default-window-footer-padding: $cx-default-window-header-padding !default;
19
- $cx-default-window-footer-font-size: 16px !default;
20
-
21
- $cx-window-state-style-map: (
22
- default: (
23
- box-shadow: $cx-default-window-box-shadow,
24
- background-color: $cx-default-window-background-color,
25
- border-radius: $cx-default-window-border-radius,
26
- ),
27
- resizable: (
28
- box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.29),
29
- ),
30
- ) !default;
31
-
32
- $cx-window-header-state-style-map: (
33
- default: (
34
- color: $cx-default-window-header-color,
35
- background: $cx-default-window-header-background-color,
36
- padding: $cx-default-window-header-padding,
37
- font-size: $cx-default-window-header-font-size,
38
- ),
39
- active: (),
40
- ) !default;
41
-
42
- $cx-window-footer-state-style-map: (
43
- default: (
44
- background: $cx-default-window-footer-background-color,
45
- padding: $cx-default-window-footer-padding,
46
- ),
47
- ) !default;
48
-
49
- $cx-window-body-state-style-map: (
50
- default: (
51
- background: $cx-default-window-body-background-color,
52
- padding: $cx-default-window-body-padding,
53
- ),
54
- ) !default;
55
-
56
- $cx-window-mods: (
57
- alert: (
58
- frame: (),
59
- body: (),
60
- footer: (),
61
- ),
62
- );
@@ -1,13 +0,0 @@
1
-
2
- @if cx-call-once("cx/widgets/captureMouse") {
3
-
4
- .cxb-mousecapture {
5
- position: fixed;
6
- left: 0;
7
- right: 0;
8
- top: 0;
9
- bottom: 0;
10
- z-index: 1000000;
11
- }
12
-
13
- }
@@ -1,15 +0,0 @@
1
-
2
- @import 'captureMouse';
3
- @import 'Overlay';
4
- @import 'Dropdown';
5
- @import 'Window';
6
- @import 'Tooltip';
7
- @import 'Toast';
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
@@ -1,85 +0,0 @@
1
- @use "sass:map";
2
-
3
- // TOOLTIP
4
- $cx-tooltip-background-color: white !default;
5
- $cx-tooltip-border-color: #d5d5d5 !default;
6
- $cx-tooltip-border-width: 1px !default;
7
- $cx-tooltip-border-radius: 5px !default;
8
- $cx-tooltip-arrow-size: 5px !default;
9
- $cx-tooltip-color: null !default;
10
- $cx-tooltip-padding: 10px !default;
11
-
12
- $cx-tooltip-background-color-error: white !default;
13
- $cx-tooltip-border-color-error: #e63001 !default;
14
- $cx-tooltip-color-error: null !default;
15
-
16
- // DROPDOWN
17
- $cx-default-dropdown-color: $cx-default-color !default;
18
- $cx-default-dropdown-background-color: white !default;
19
- $cx-default-dropdown-arrow-size: 6px !default;
20
- $cx-default-dropdown-arrow-offset: 16px !default;
21
-
22
- $cx-dropdown-styles: (
23
- color: $cx-default-dropdown-color,
24
- background-color: $cx-default-dropdown-background-color,
25
- border-radius: $cx-default-border-radius,
26
- border-color: $cx-default-border-color,
27
- border-width: 0,
28
- box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.29),
29
- white-space: normal,
30
- font-weight: normal,
31
- font-size: $cx-default-font-size,
32
- text-align: left,
33
- line-height: normal,
34
- ) !default;
35
-
36
- // TOAST
37
- $cx-default-toast-color: $cx-default-color !default;
38
- $cx-default-toast-background-color: rgb(255, 255, 255) !default;
39
- $cx-default-toast-border-width: 0 !default;
40
- $cx-default-toast-border-color: rgba(255, 255, 255, 0) !default;
41
- $cx-default-toast-box-shadow: 0 0 5px 1px rgba(128, 128, 128, 0.3) !default;
42
- $cx-default-toast-padding: 10px !default;
43
-
44
- $cx-toast-mods: (
45
- warning: (
46
- default: (
47
- color: #fff,
48
- background-color: #f09037,
49
- ),
50
- ),
51
- primary: (
52
- default: (
53
- color: #fff,
54
- background-color: #1f99f8,
55
- ),
56
- ),
57
- success: (
58
- default: (
59
- color: #fff,
60
- background-color: #5cb85c,
61
- ),
62
- ),
63
- error: (
64
- default: (
65
- color: #fff,
66
- background-color: #d9534f,
67
- ),
68
- ),
69
- ) !default;
70
-
71
- // WINDOW
72
- @import "Window.variables";
73
-
74
- $cx-dependencies: map.merge(
75
- $cx-dependencies,
76
- (
77
- "cx/widgets/Overlay": "cx/widgets/captureMouse",
78
- "cx/widgets/Dropdown": "cx/widgets/Overlay",
79
- "cx/widgets/Window": "cx/widgets/Overlay",
80
- "cx/widgets/Tooltip": "cx/widgets/Dropdown",
81
- "cx/widgets/enableMsgBoxAlerts": "cx/widgets/MsgBox",
82
- "cx/widgets/MsgBox": "cx/widgets/Window" "cx/widgets/FlexRow",
83
- "cx/widgets/Toast": "cx/widgets/Overlay",
84
- )
85
- );