cx 24.10.2 → 24.10.4

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 (70) hide show
  1. package/dist/charts.js +24 -27
  2. package/dist/data.js +26 -29
  3. package/dist/manifest.js +434 -434
  4. package/dist/svg.js +59 -56
  5. package/dist/ui.js +51 -52
  6. package/dist/widgets.css +8 -8
  7. package/dist/widgets.js +40 -44
  8. package/package.json +32 -32
  9. package/src/charts/PieChart.js +2 -2
  10. package/src/charts/PieLabel.js +71 -71
  11. package/src/charts/axis/Axis.js +260 -260
  12. package/src/charts/axis/NumericAxis.js +347 -347
  13. package/src/charts/axis/Stack.js +55 -55
  14. package/src/charts/axis/TimeAxis.js +510 -510
  15. package/src/charts/helpers/PointReducer.js +43 -43
  16. package/src/charts/helpers/SnapPointFinder.js +69 -69
  17. package/src/data/Binding.spec.js +69 -69
  18. package/src/data/Expression.js +221 -221
  19. package/src/data/Expression.spec.js +184 -184
  20. package/src/data/StringTemplate.spec.js +105 -105
  21. package/src/data/getAccessor.spec.js +11 -11
  22. package/src/index.scss +6 -6
  23. package/src/svg/Text.d.ts +40 -40
  24. package/src/ui/Culture.d.ts +55 -55
  25. package/src/ui/Culture.js +139 -139
  26. package/src/ui/FocusManager.js +171 -171
  27. package/src/ui/Instance.d.ts +72 -72
  28. package/src/ui/VDOM.d.ts +12 -12
  29. package/src/ui/app/startAppLoop.js +58 -58
  30. package/src/ui/index.d.ts +42 -42
  31. package/src/ui/layout/LabelsTopLayout.js +134 -134
  32. package/src/util/Console.d.ts +4 -4
  33. package/src/util/index.d.ts +51 -51
  34. package/src/util/index.js +54 -54
  35. package/src/util/isValidIdentifierName.d.ts +1 -1
  36. package/src/util/isValidIdentifierName.js +5 -5
  37. package/src/util/isValidIdentifierName.spec.js +33 -33
  38. package/src/util/scss/add-rules.scss +38 -38
  39. package/src/widgets/CxCredit.scss +37 -37
  40. package/src/widgets/HighlightedSearchText.js +36 -36
  41. package/src/widgets/HighlightedSearchText.scss +18 -18
  42. package/src/widgets/List.scss +91 -91
  43. package/src/widgets/drag-drop/DropZone.js +214 -214
  44. package/src/widgets/form/Calendar.scss +196 -196
  45. package/src/widgets/form/ColorField.js +397 -397
  46. package/src/widgets/form/ColorPicker.scss +283 -283
  47. package/src/widgets/form/DateTimeField.js +573 -573
  48. package/src/widgets/form/LookupField.d.ts +179 -179
  49. package/src/widgets/form/MonthField.js +516 -516
  50. package/src/widgets/form/MonthPicker.scss +118 -118
  51. package/src/widgets/form/NumberField.js +459 -459
  52. package/src/widgets/form/NumberField.scss +61 -61
  53. package/src/widgets/form/Select.scss +99 -99
  54. package/src/widgets/form/Slider.scss +118 -118
  55. package/src/widgets/form/Switch.scss +140 -140
  56. package/src/widgets/form/TextArea.scss +43 -43
  57. package/src/widgets/form/TextField.js +290 -290
  58. package/src/widgets/form/TextField.scss +55 -55
  59. package/src/widgets/form/UploadButton.d.ts +34 -34
  60. package/src/widgets/form/variables.scss +353 -353
  61. package/src/widgets/grid/Grid.scss +2 -2
  62. package/src/widgets/grid/TreeNode.scss +88 -88
  63. package/src/widgets/nav/Menu.scss +74 -74
  64. package/src/widgets/overlay/Dropdown.js +612 -612
  65. package/src/widgets/overlay/FlyweightTooltipTracker.js +39 -39
  66. package/src/widgets/overlay/Tooltip.js +300 -300
  67. package/src/widgets/overlay/Window.js +196 -196
  68. package/src/widgets/overlay/captureMouse.js +124 -124
  69. package/src/widgets/overlay/variables.scss +83 -83
  70. package/src/widgets/variables.scss +144 -144
@@ -1,118 +1,118 @@
1
- @mixin cx-monthpicker($name: "monthpicker", $state-style-map: $cx-input-state-style-map, $besm: $cx-besm) {
2
- $block: map-get($besm, block);
3
- $element: map-get($besm, element);
4
- $state: map-get($besm, state);
5
-
6
- .#{$block}#{$name} {
7
- overflow-y: scroll;
8
- overflow-x: hidden;
9
- min-height: 10em;
10
- max-height: 30em; //100vh;
11
- height: 100%;
12
- position: relative;
13
- width: 23em;
14
- overflow-anchor: none;
15
- touch-action: pan-y;
16
-
17
- @include cxe-field-input($besm, $state-style-map, $input: false);
18
-
19
- table {
20
- border-spacing: 0;
21
- width: 100%;
22
- font-size: 0.9em;
23
- }
24
-
25
- $border-color: cx-get-state-rule($state-style-map, default, border-color);
26
-
27
- th,
28
- td {
29
- border-top: 1px solid transparentize($border-color, 0.5);
30
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
31
- }
32
-
33
- tbody:not(:first-child) {
34
- tr:first-child {
35
- th,
36
- td {
37
- border-top: 1px solid $border-color;
38
- }
39
- }
40
- }
41
-
42
- th,
43
- td {
44
- text-align: center;
45
- font-size: $cx-default-monthpicker-font-size;
46
- font-weight: $cx-default-monthpicker-font-weight;
47
- line-height: 2em;
48
- cursor: pointer;
49
- -webkit-user-select: none;
50
- -ms-user-select: none;
51
- -moz-user-select: none;
52
- user-select: none;
53
- }
54
-
55
- th {
56
- padding: 0 0.5em;
57
- color: lightgray;
58
- }
59
-
60
- .#{$element}#{$name}-year {
61
- font-size: 120%;
62
- color: gray;
63
- }
64
-
65
- td {
66
- padding: 0.5em 1em;
67
- }
68
-
69
- td.#{$state}outside {
70
- color: lightgray;
71
- }
72
-
73
- td.#{$state}unselectable {
74
- @include cx-add-state-rules($cx-list-item, disabled);
75
- }
76
-
77
- td.#{$state}selected {
78
- border-color: transparent;
79
- @include cx-add-state-rules($cx-list-item, selected);
80
-
81
- &:hover {
82
- @include cx-add-state-rules($cx-list-item, selected-hover);
83
- }
84
- }
85
-
86
- td.#{$state}cursor,
87
- th.#{$state}cursor {
88
- @include cx-add-state-rules($cx-list-item, hover);
89
- }
90
-
91
- &:focus {
92
- td.#{$state}selected {
93
- @include cx-add-state-rules($cx-list-item, selected);
94
- }
95
-
96
- td.#{$state}cursor,
97
- th.#{$state}cursor {
98
- @include cx-add-state-rules($cx-list-item, selected-cursor);
99
- }
100
- }
101
-
102
- td.#{$state}handle {
103
- //@include cx-add-state-rules($cx-list-item, selected-cursor);
104
- touch-action: none;
105
- }
106
- }
107
-
108
- .#{$block}#{$name}.#{$state}disabled {
109
- background-color: transparent;
110
- border-color: transparent;
111
- color: darken(#fff, 18);
112
- pointer-events: none;
113
- }
114
- }
115
-
116
- @if (cx-should-include("cx/widgets/MonthPicker")) {
117
- @include cx-monthpicker();
118
- }
1
+ @mixin cx-monthpicker($name: "monthpicker", $state-style-map: $cx-input-state-style-map, $besm: $cx-besm) {
2
+ $block: map-get($besm, block);
3
+ $element: map-get($besm, element);
4
+ $state: map-get($besm, state);
5
+
6
+ .#{$block}#{$name} {
7
+ overflow-y: scroll;
8
+ overflow-x: hidden;
9
+ min-height: 10em;
10
+ max-height: 30em; //100vh;
11
+ height: 100%;
12
+ position: relative;
13
+ width: 23em;
14
+ overflow-anchor: none;
15
+ touch-action: pan-y;
16
+
17
+ @include cxe-field-input($besm, $state-style-map, $input: false);
18
+
19
+ table {
20
+ border-spacing: 0;
21
+ width: 100%;
22
+ font-size: 0.9em;
23
+ }
24
+
25
+ $border-color: cx-get-state-rule($state-style-map, default, border-color);
26
+
27
+ th,
28
+ td {
29
+ border-top: 1px solid transparentize($border-color, 0.5);
30
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
31
+ }
32
+
33
+ tbody:not(:first-child) {
34
+ tr:first-child {
35
+ th,
36
+ td {
37
+ border-top: 1px solid $border-color;
38
+ }
39
+ }
40
+ }
41
+
42
+ th,
43
+ td {
44
+ text-align: center;
45
+ font-size: $cx-default-monthpicker-font-size;
46
+ font-weight: $cx-default-monthpicker-font-weight;
47
+ line-height: 2em;
48
+ cursor: pointer;
49
+ -webkit-user-select: none;
50
+ -ms-user-select: none;
51
+ -moz-user-select: none;
52
+ user-select: none;
53
+ }
54
+
55
+ th {
56
+ padding: 0 0.5em;
57
+ color: lightgray;
58
+ }
59
+
60
+ .#{$element}#{$name}-year {
61
+ font-size: 120%;
62
+ color: gray;
63
+ }
64
+
65
+ td {
66
+ padding: 0.5em 1em;
67
+ }
68
+
69
+ td.#{$state}outside {
70
+ color: lightgray;
71
+ }
72
+
73
+ td.#{$state}unselectable {
74
+ @include cx-add-state-rules($cx-list-item, disabled);
75
+ }
76
+
77
+ td.#{$state}selected {
78
+ border-color: transparent;
79
+ @include cx-add-state-rules($cx-list-item, selected);
80
+
81
+ &:hover {
82
+ @include cx-add-state-rules($cx-list-item, selected-hover);
83
+ }
84
+ }
85
+
86
+ td.#{$state}cursor,
87
+ th.#{$state}cursor {
88
+ @include cx-add-state-rules($cx-list-item, hover);
89
+ }
90
+
91
+ &:focus {
92
+ td.#{$state}selected {
93
+ @include cx-add-state-rules($cx-list-item, selected);
94
+ }
95
+
96
+ td.#{$state}cursor,
97
+ th.#{$state}cursor {
98
+ @include cx-add-state-rules($cx-list-item, selected-cursor);
99
+ }
100
+ }
101
+
102
+ td.#{$state}handle {
103
+ //@include cx-add-state-rules($cx-list-item, selected-cursor);
104
+ touch-action: none;
105
+ }
106
+ }
107
+
108
+ .#{$block}#{$name}.#{$state}disabled {
109
+ background-color: transparent;
110
+ border-color: transparent;
111
+ color: darken(#fff, 18);
112
+ pointer-events: none;
113
+ }
114
+ }
115
+
116
+ @if (cx-should-include("cx/widgets/MonthPicker")) {
117
+ @include cx-monthpicker();
118
+ }