cx 24.8.6 → 24.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charts.js +22 -25
- package/dist/data.js +26 -29
- package/dist/manifest.js +692 -692
- package/dist/svg.js +59 -56
- package/dist/ui.js +62 -54
- package/dist/widgets.css +69 -64
- package/dist/widgets.js +62 -57
- package/package.json +32 -32
- package/src/index.scss +6 -7
- package/src/ui/Culture.d.ts +55 -51
- package/src/ui/Culture.js +139 -129
- package/src/util/scss/add-rules.scss +38 -39
- package/src/widgets/CxCredit.scss +37 -42
- package/src/widgets/List.scss +91 -93
- package/src/widgets/form/Calendar.scss +196 -196
- package/src/widgets/form/Checkbox.scss +127 -125
- package/src/widgets/form/ColorField.scss +95 -92
- package/src/widgets/form/ColorPicker.scss +283 -275
- package/src/widgets/form/LookupField.scss +219 -219
- package/src/widgets/form/MonthPicker.scss +118 -120
- package/src/widgets/form/NumberField.scss +61 -66
- package/src/widgets/form/Radio.scss +122 -122
- package/src/widgets/form/Select.scss +99 -99
- package/src/widgets/form/Slider.scss +118 -119
- package/src/widgets/form/Switch.scss +140 -140
- package/src/widgets/form/TextArea.scss +43 -60
- package/src/widgets/form/TextField.scss +55 -55
- package/src/widgets/grid/TreeNode.scss +88 -89
- package/src/widgets/nav/Menu.scss +74 -74
- package/src/widgets/overlay/FlyweightTooltipTracker.js +39 -36
- package/src/widgets/overlay/Tooltip.js +7 -2
- package/src/widgets/overlay/captureMouse.js +124 -124
|
@@ -1,125 +1,127 @@
|
|
|
1
|
-
@mixin cx-checkbox(
|
|
2
|
-
$name: "checkbox",
|
|
3
|
-
$state-style-map: $cx-checkbox-state-style-map,
|
|
4
|
-
$width: $cx-default-input-width,
|
|
5
|
-
$empty-text: $cx-empty-text,
|
|
6
|
-
$besm: $cx-besm,
|
|
7
|
-
$size: $cx-default-checkbox-size
|
|
8
|
-
) {
|
|
9
|
-
$block: map-get($besm, block);
|
|
10
|
-
$element: map-get($besm, element);
|
|
11
|
-
$state: map-get($besm, state);
|
|
12
|
-
|
|
13
|
-
$padding: cx-get-state-rule($state-style-map, default, padding);
|
|
14
|
-
$border-width: cx-get-state-rule($state-style-map, default, border-width);
|
|
15
|
-
|
|
16
|
-
$outer-styles: cx-deep-map-merge(
|
|
17
|
-
$state-style-map,
|
|
18
|
-
(
|
|
19
|
-
default: (
|
|
20
|
-
border-width: cx-top($cx-default-box-border-width) 0 cx-bottom($cx-default-box-border-width) 0,
|
|
21
|
-
),
|
|
22
|
-
)
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
.#{$block}#{$name} {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.#{$element}#{$name}-checkbox {
|
|
31
|
-
padding: 0;
|
|
32
|
-
margin: 0 !important;
|
|
33
|
-
width: $size;
|
|
34
|
-
height: $size;
|
|
35
|
-
top: calc(50% - #{$size * 0.5});
|
|
36
|
-
left: 0;
|
|
37
|
-
display: inline-block;
|
|
38
|
-
position: absolute;
|
|
39
|
-
//-webkit-appearance: none;
|
|
40
|
-
|
|
41
|
-
&::-moz-focus-inner {
|
|
42
|
-
border: 0;
|
|
43
|
-
padding: 0;
|
|
44
|
-
margin: -1px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&:focus {
|
|
48
|
-
box-shadow:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
1
|
+
@mixin cx-checkbox(
|
|
2
|
+
$name: "checkbox",
|
|
3
|
+
$state-style-map: $cx-checkbox-state-style-map,
|
|
4
|
+
$width: $cx-default-input-width,
|
|
5
|
+
$empty-text: $cx-empty-text,
|
|
6
|
+
$besm: $cx-besm,
|
|
7
|
+
$size: $cx-default-checkbox-size
|
|
8
|
+
) {
|
|
9
|
+
$block: map-get($besm, block);
|
|
10
|
+
$element: map-get($besm, element);
|
|
11
|
+
$state: map-get($besm, state);
|
|
12
|
+
|
|
13
|
+
$padding: cx-get-state-rule($state-style-map, default, padding);
|
|
14
|
+
$border-width: cx-get-state-rule($state-style-map, default, border-width);
|
|
15
|
+
|
|
16
|
+
$outer-styles: cx-deep-map-merge(
|
|
17
|
+
$state-style-map,
|
|
18
|
+
(
|
|
19
|
+
default: (
|
|
20
|
+
border-width: cx-top($cx-default-box-border-width) 0 cx-bottom($cx-default-box-border-width) 0,
|
|
21
|
+
),
|
|
22
|
+
)
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
.#{$block}#{$name} {
|
|
26
|
+
min-width: $size;
|
|
27
|
+
@include cxb-field($besm, $outer-styles, $input: false, $box: true);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.#{$element}#{$name}-checkbox {
|
|
31
|
+
padding: 0;
|
|
32
|
+
margin: 0 !important;
|
|
33
|
+
width: $size;
|
|
34
|
+
height: $size;
|
|
35
|
+
top: calc(50% - #{$size * 0.5});
|
|
36
|
+
left: 0;
|
|
37
|
+
display: inline-block;
|
|
38
|
+
position: absolute;
|
|
39
|
+
//-webkit-appearance: none;
|
|
40
|
+
|
|
41
|
+
&::-moz-focus-inner {
|
|
42
|
+
border: 0;
|
|
43
|
+
padding: 0;
|
|
44
|
+
margin: -1px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:focus {
|
|
48
|
+
box-shadow:
|
|
49
|
+
inset 0 0 1px 1px rgba(77, 144, 254, 0.8),
|
|
50
|
+
0 0 2px 2px rgba(77, 144, 254, 0.8);
|
|
51
|
+
background: rgba(77, 144, 254, 0.8);
|
|
52
|
+
outline: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.#{$element}#{$name}-text {
|
|
57
|
+
display: inline-block;
|
|
58
|
+
margin-left: $size;
|
|
59
|
+
user-select: none;
|
|
60
|
+
|
|
61
|
+
.#{$state}disabled > & {
|
|
62
|
+
opacity: 0.5;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.#{$element}#{$name}-baseline {
|
|
67
|
+
user-select: none;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.#{$element}#{$name}-empty-text {
|
|
71
|
+
@include cxe-field-empty-text($empty-text);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
//non-native implementation
|
|
75
|
+
.#{$element}#{$name}-input {
|
|
76
|
+
width: $size;
|
|
77
|
+
height: $size;
|
|
78
|
+
top: calc(50% - #{$size * 0.5});
|
|
79
|
+
left: 0;
|
|
80
|
+
display: inline-block;
|
|
81
|
+
position: absolute;
|
|
82
|
+
|
|
83
|
+
@include cxe-field-input(
|
|
84
|
+
$besm,
|
|
85
|
+
$state-style-map,
|
|
86
|
+
$input: false,
|
|
87
|
+
$overrides: (
|
|
88
|
+
default: (
|
|
89
|
+
padding: 0,
|
|
90
|
+
margin: 0 !important,
|
|
91
|
+
)
|
|
92
|
+
)
|
|
93
|
+
);
|
|
94
|
+
|
|
95
|
+
&.#{$state}checked {
|
|
96
|
+
@include cx-add-state-rules($state-style-map, checked);
|
|
97
|
+
|
|
98
|
+
&:focus {
|
|
99
|
+
@include cx-add-state-rules($state-style-map, checked-focus);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.#{$state}disabled > & {
|
|
103
|
+
@include cx-add-state-rules($state-style-map, disabled-checked);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.#{$element}#{$name}-input-check {
|
|
109
|
+
width: 100%;
|
|
110
|
+
height: 100%;
|
|
111
|
+
visibility: hidden;
|
|
112
|
+
position: absolute;
|
|
113
|
+
display: block;
|
|
114
|
+
left: 0;
|
|
115
|
+
top: 0;
|
|
116
|
+
right: 0;
|
|
117
|
+
bottom: 0;
|
|
118
|
+
|
|
119
|
+
.#{$state}checked > & {
|
|
120
|
+
visibility: visible;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@if (cx-should-include("cx/widgets/Checkbox")) {
|
|
126
|
+
@include cx-checkbox();
|
|
127
|
+
}
|
|
@@ -1,92 +1,95 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
$
|
|
4
|
-
$
|
|
5
|
-
$
|
|
6
|
-
$
|
|
7
|
-
$
|
|
8
|
-
$
|
|
9
|
-
$
|
|
10
|
-
$
|
|
11
|
-
$
|
|
12
|
-
|
|
13
|
-
)
|
|
14
|
-
$
|
|
15
|
-
$
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
$
|
|
27
|
-
$
|
|
28
|
-
$
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
font-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
)
|
|
35
|
-
)
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.#{$element}#{$name}-clear {
|
|
40
|
-
@include cxe-field-button($besm, $clear-state-style-map);
|
|
41
|
-
|
|
42
|
-
.#{$state}focus > & {
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
.#{$state}error > & {
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.#{$element}#{$name}-right-icon {
|
|
51
|
-
@include cxe-field-button($besm, $right-icon-state-style-map);
|
|
52
|
-
|
|
53
|
-
.#{$state}focus > & {
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
.#{$state}error > & {
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.#{$element}#{$name}-left-icon {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
1
|
+
@mixin cx-colorfield(
|
|
2
|
+
$name: "colorfield",
|
|
3
|
+
$state-style-map: $cx-std-field-state-style-map,
|
|
4
|
+
$placeholder: $cx-input-placeholder,
|
|
5
|
+
$empty-text: $cx-empty-text,
|
|
6
|
+
$clear-state-style-map: $cx-clear-state-style-map,
|
|
7
|
+
$left-icon-state-style-map: $cx-input-left-icon-state-style-map,
|
|
8
|
+
$right-icon-state-style-map: $cx-input-right-icon-state-style-map,
|
|
9
|
+
$width: $cx-default-input-width,
|
|
10
|
+
$icon-size: $cx-default-icon-size,
|
|
11
|
+
$besm: $cx-besm
|
|
12
|
+
) {
|
|
13
|
+
$block: map-get($besm, block);
|
|
14
|
+
$element: map-get($besm, element);
|
|
15
|
+
$state: map-get($besm, state);
|
|
16
|
+
|
|
17
|
+
.#{$block}#{$name} {
|
|
18
|
+
@include cxb-field($besm, $state-style-map, $width: $width, $input: true);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
$padding: cx-get-state-rule($state-style-map, default, "padding");
|
|
22
|
+
|
|
23
|
+
.#{$element}#{$name}-input {
|
|
24
|
+
@include cxe-field-input(
|
|
25
|
+
$besm,
|
|
26
|
+
$state-style-map,
|
|
27
|
+
$placeholder: $placeholder,
|
|
28
|
+
$overrides: (
|
|
29
|
+
default: (
|
|
30
|
+
font-family: $cx-default-colorfield-font-family,
|
|
31
|
+
font-size: 11px,
|
|
32
|
+
padding: cx-top($padding) cx-calc(cx-right($padding), $cx-default-clear-size) cx-bottom($padding)
|
|
33
|
+
cx-calc(cx-left($padding), $cx-default-input-left-tool-size, $cx-default-input-left-tool-spacing),
|
|
34
|
+
)
|
|
35
|
+
)
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.#{$element}#{$name}-clear {
|
|
40
|
+
@include cxe-field-button($besm, $clear-state-style-map);
|
|
41
|
+
|
|
42
|
+
.#{$state}focus > & {
|
|
43
|
+
@include cx-add-state-rules($clear-state-style-map, focus);
|
|
44
|
+
}
|
|
45
|
+
.#{$state}error > & {
|
|
46
|
+
@include cx-add-state-rules($clear-state-style-map, error);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.#{$element}#{$name}-right-icon {
|
|
51
|
+
@include cxe-field-button($besm, $right-icon-state-style-map);
|
|
52
|
+
|
|
53
|
+
.#{$state}focus > & {
|
|
54
|
+
@include cx-add-state-rules($right-icon-state-style-map, focus);
|
|
55
|
+
}
|
|
56
|
+
.#{$state}error > & {
|
|
57
|
+
@include cx-add-state-rules($right-icon-state-style-map, error);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.#{$element}#{$name}-left-icon {
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
opacity: 1;
|
|
64
|
+
@include cx-checker-background();
|
|
65
|
+
|
|
66
|
+
@include cxe-field-button(
|
|
67
|
+
$besm,
|
|
68
|
+
cx-deep-map-merge(
|
|
69
|
+
$left-icon-state-style-map,
|
|
70
|
+
(
|
|
71
|
+
default: (
|
|
72
|
+
cursor: pointer,
|
|
73
|
+
),
|
|
74
|
+
)
|
|
75
|
+
)
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
div {
|
|
79
|
+
width: 100%;
|
|
80
|
+
height: 100%;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.#{$element}#{$name}-icon {
|
|
85
|
+
@include cxe-field-button-icon($besm, $icon-size);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.#{$element}#{$name}-empty-text {
|
|
89
|
+
@include cxe-field-empty-text($empty-text);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@if (cx-should-include("cx/widgets/ColorField")) {
|
|
94
|
+
@include cx-colorfield();
|
|
95
|
+
}
|