cx 26.3.8 → 26.3.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.
- package/build/widgets/form/Wheel.d.ts +0 -1
- package/build/widgets/form/Wheel.d.ts.map +1 -1
- package/build/widgets/form/Wheel.js +1 -4
- package/build/widgets/nav/MenuItem.js +1 -1
- package/dist/manifest.js +768 -768
- package/dist/widgets.css +21 -13
- package/dist/widgets.js +1 -5
- package/package.json +1 -1
- package/src/widgets/form/LookupField.scss +227 -228
- package/src/widgets/form/Wheel.scss +4 -2
- package/src/widgets/form/Wheel.tsx +0 -5
- package/src/widgets/form/variables.scss +1 -0
- package/src/widgets/nav/MenuItem.scss +8 -3
- package/src/widgets/nav/MenuItem.tsx +1 -1
package/dist/widgets.css
CHANGED
|
@@ -1383,6 +1383,10 @@ th.cxe-calendar-display {
|
|
|
1383
1383
|
padding-right: 5px;
|
|
1384
1384
|
}
|
|
1385
1385
|
|
|
1386
|
+
.cxb-lookupfield .cxs-icon > .cxe-lookupfield-input > .cxe-lookupfield-tags {
|
|
1387
|
+
margin-left: 0;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1386
1390
|
.cxe-lookupfield-input {
|
|
1387
1391
|
box-sizing: border-box;
|
|
1388
1392
|
line-height: 16px;
|
|
@@ -3291,6 +3295,8 @@ th.cxe-calendar-display {
|
|
|
3291
3295
|
.cxe-wheel-clip {
|
|
3292
3296
|
position: relative;
|
|
3293
3297
|
overflow: hidden;
|
|
3298
|
+
width: fit-content;
|
|
3299
|
+
box-sizing: content-box;
|
|
3294
3300
|
background: inherit;
|
|
3295
3301
|
user-select: none;
|
|
3296
3302
|
background-color: #fff;
|
|
@@ -3310,11 +3316,11 @@ th.cxe-calendar-display {
|
|
|
3310
3316
|
}
|
|
3311
3317
|
|
|
3312
3318
|
.cxe-wheel-vscroll {
|
|
3313
|
-
width: calc(100% + 20px);
|
|
3314
3319
|
display: flex;
|
|
3315
3320
|
overflow-y: auto;
|
|
3316
3321
|
overflow-x: hidden;
|
|
3317
3322
|
touch-action: pan-y;
|
|
3323
|
+
scrollbar-width: none;
|
|
3318
3324
|
}
|
|
3319
3325
|
|
|
3320
3326
|
.cxe-wheel-vscroll::-webkit-scrollbar {
|
|
@@ -3412,6 +3418,8 @@ th.cxe-calendar-display {
|
|
|
3412
3418
|
.cxe-datetimepicker-wheel-clip {
|
|
3413
3419
|
position: relative;
|
|
3414
3420
|
overflow: hidden;
|
|
3421
|
+
width: fit-content;
|
|
3422
|
+
box-sizing: content-box;
|
|
3415
3423
|
background: inherit;
|
|
3416
3424
|
user-select: none;
|
|
3417
3425
|
background-color: #fff;
|
|
@@ -3431,11 +3439,11 @@ th.cxe-calendar-display {
|
|
|
3431
3439
|
}
|
|
3432
3440
|
|
|
3433
3441
|
.cxe-datetimepicker-wheel-vscroll {
|
|
3434
|
-
width: calc(100% + 20px);
|
|
3435
3442
|
display: flex;
|
|
3436
3443
|
overflow-y: auto;
|
|
3437
3444
|
overflow-x: hidden;
|
|
3438
3445
|
touch-action: pan-y;
|
|
3446
|
+
scrollbar-width: none;
|
|
3439
3447
|
}
|
|
3440
3448
|
|
|
3441
3449
|
.cxe-datetimepicker-wheel-vscroll::-webkit-scrollbar {
|
|
@@ -3931,7 +3939,7 @@ th.cxe-calendar-display {
|
|
|
3931
3939
|
}
|
|
3932
3940
|
|
|
3933
3941
|
.cxb-menuitem.cxs-xsmall-padding.cxs-icon {
|
|
3934
|
-
padding-left: 16px;
|
|
3942
|
+
padding-left: calc(0px + max(1lh, 16px));
|
|
3935
3943
|
}
|
|
3936
3944
|
|
|
3937
3945
|
.cxb-menuitem.cxs-xsmall-padding.cxs-empty {
|
|
@@ -3943,7 +3951,7 @@ th.cxe-calendar-display {
|
|
|
3943
3951
|
}
|
|
3944
3952
|
|
|
3945
3953
|
.cxb-menuitem.cxs-xsmall-padding > .cxe-menuitem-button {
|
|
3946
|
-
|
|
3954
|
+
left: calc(-5px + 0.5lh);
|
|
3947
3955
|
}
|
|
3948
3956
|
|
|
3949
3957
|
.cxb-menuitem.cxs-small-padding > a, .cxb-menuitem.cxs-small-padding > span {
|
|
@@ -3958,7 +3966,7 @@ th.cxe-calendar-display {
|
|
|
3958
3966
|
}
|
|
3959
3967
|
|
|
3960
3968
|
.cxb-menuitem.cxs-small-padding.cxs-icon {
|
|
3961
|
-
padding-left: 16px;
|
|
3969
|
+
padding-left: calc(0px + max(1lh, 16px));
|
|
3962
3970
|
}
|
|
3963
3971
|
|
|
3964
3972
|
.cxb-menuitem.cxs-small-padding.cxs-empty {
|
|
@@ -3970,7 +3978,7 @@ th.cxe-calendar-display {
|
|
|
3970
3978
|
}
|
|
3971
3979
|
|
|
3972
3980
|
.cxb-menuitem.cxs-small-padding > .cxe-menuitem-button {
|
|
3973
|
-
|
|
3981
|
+
left: calc(-3px + 0.5lh);
|
|
3974
3982
|
}
|
|
3975
3983
|
|
|
3976
3984
|
.cxb-menuitem.cxs-medium-padding > a, .cxb-menuitem.cxs-medium-padding > span {
|
|
@@ -3985,7 +3993,7 @@ th.cxe-calendar-display {
|
|
|
3985
3993
|
}
|
|
3986
3994
|
|
|
3987
3995
|
.cxb-menuitem.cxs-medium-padding.cxs-icon {
|
|
3988
|
-
padding-left: 16px;
|
|
3996
|
+
padding-left: calc(0px + max(1lh, 16px));
|
|
3989
3997
|
}
|
|
3990
3998
|
|
|
3991
3999
|
.cxb-menuitem.cxs-medium-padding.cxs-empty {
|
|
@@ -3997,7 +4005,7 @@ th.cxe-calendar-display {
|
|
|
3997
4005
|
}
|
|
3998
4006
|
|
|
3999
4007
|
.cxb-menuitem.cxs-medium-padding > .cxe-menuitem-button {
|
|
4000
|
-
|
|
4008
|
+
left: calc(2px + 0.5lh);
|
|
4001
4009
|
}
|
|
4002
4010
|
|
|
4003
4011
|
.cxb-menuitem.cxs-large-padding > a, .cxb-menuitem.cxs-large-padding > span {
|
|
@@ -4012,7 +4020,7 @@ th.cxe-calendar-display {
|
|
|
4012
4020
|
}
|
|
4013
4021
|
|
|
4014
4022
|
.cxb-menuitem.cxs-large-padding.cxs-icon {
|
|
4015
|
-
padding-left: 16px;
|
|
4023
|
+
padding-left: calc(0px + max(1lh, 16px));
|
|
4016
4024
|
}
|
|
4017
4025
|
|
|
4018
4026
|
.cxb-menuitem.cxs-large-padding.cxs-empty {
|
|
@@ -4024,7 +4032,7 @@ th.cxe-calendar-display {
|
|
|
4024
4032
|
}
|
|
4025
4033
|
|
|
4026
4034
|
.cxb-menuitem.cxs-large-padding > .cxe-menuitem-button {
|
|
4027
|
-
|
|
4035
|
+
left: calc(7px + 0.5lh);
|
|
4028
4036
|
}
|
|
4029
4037
|
|
|
4030
4038
|
.cxb-menuitem.cxs-xlarge-padding > a, .cxb-menuitem.cxs-xlarge-padding > span {
|
|
@@ -4039,7 +4047,7 @@ th.cxe-calendar-display {
|
|
|
4039
4047
|
}
|
|
4040
4048
|
|
|
4041
4049
|
.cxb-menuitem.cxs-xlarge-padding.cxs-icon {
|
|
4042
|
-
padding-left: 16px;
|
|
4050
|
+
padding-left: calc(0px + max(1lh, 16px));
|
|
4043
4051
|
}
|
|
4044
4052
|
|
|
4045
4053
|
.cxb-menuitem.cxs-xlarge-padding.cxs-empty {
|
|
@@ -4051,7 +4059,7 @@ th.cxe-calendar-display {
|
|
|
4051
4059
|
}
|
|
4052
4060
|
|
|
4053
4061
|
.cxb-menuitem.cxs-xlarge-padding > .cxe-menuitem-button {
|
|
4054
|
-
|
|
4062
|
+
left: calc(12px + 0.5lh);
|
|
4055
4063
|
}
|
|
4056
4064
|
|
|
4057
4065
|
.cxe-menuitem-arrow {
|
|
@@ -4068,9 +4076,9 @@ th.cxe-calendar-display {
|
|
|
4068
4076
|
|
|
4069
4077
|
.cxe-menuitem-button {
|
|
4070
4078
|
position: absolute;
|
|
4071
|
-
left: 0;
|
|
4072
4079
|
top: 0;
|
|
4073
4080
|
bottom: 0;
|
|
4081
|
+
width: max(16px, 1lh);
|
|
4074
4082
|
}
|
|
4075
4083
|
|
|
4076
4084
|
.cxe-menuitem-baseline {
|
package/dist/widgets.js
CHANGED
|
@@ -5548,7 +5548,7 @@ let MenuItemComponent$1 = class MenuItemComponent extends VDOM.Component {
|
|
|
5548
5548
|
onFocus: this.onFocus.bind(this),
|
|
5549
5549
|
onClick: this.onClick.bind(this),
|
|
5550
5550
|
onBlur: this.onBlur.bind(this),
|
|
5551
|
-
children: [
|
|
5551
|
+
children: [icon, children, arrow, dropdown],
|
|
5552
5552
|
});
|
|
5553
5553
|
}
|
|
5554
5554
|
componentDidUpdate() {
|
|
@@ -13089,9 +13089,6 @@ class WheelComponent extends VDOM.Component {
|
|
|
13089
13089
|
children: [
|
|
13090
13090
|
jsxs("div", {
|
|
13091
13091
|
className: CSS.element(baseClass, "clip"),
|
|
13092
|
-
style: {
|
|
13093
|
-
width: this.state.wheelWidth,
|
|
13094
|
-
},
|
|
13095
13092
|
onMouseDown: onMouseDown,
|
|
13096
13093
|
children: [
|
|
13097
13094
|
jsx("div", {
|
|
@@ -13170,7 +13167,6 @@ class WheelComponent extends VDOM.Component {
|
|
|
13170
13167
|
this.setState(
|
|
13171
13168
|
{
|
|
13172
13169
|
wheelHeight: this.wheelEl.offsetHeight,
|
|
13173
|
-
wheelWidth: this.wheelEl.offsetWidth,
|
|
13174
13170
|
},
|
|
13175
13171
|
() => {
|
|
13176
13172
|
if (this.state.wheelHeight !== undefined) {
|
package/package.json
CHANGED
|
@@ -1,228 +1,227 @@
|
|
|
1
|
-
@use "sass:math";
|
|
2
|
-
@use "sass:map";
|
|
3
|
-
@use "../variables" as *;
|
|
4
|
-
@use "../maps" as *;
|
|
5
|
-
@use "../../util/scss/add-rules.scss" as *;
|
|
6
|
-
@use "../../util/scss/clockwise.scss" as *;
|
|
7
|
-
@use "../../util/scss/besm.scss" as *;
|
|
8
|
-
@use "../../util/scss/calc.scss" as *;
|
|
9
|
-
@use "../../util/scss/include.scss" as *;
|
|
10
|
-
@use "./Field.scss" as *;
|
|
11
|
-
|
|
12
|
-
@mixin cx-lookupfield(
|
|
13
|
-
$name: "lookupfield",
|
|
14
|
-
$state-style-map: $cx-std-field-state-style-map,
|
|
15
|
-
$placeholder: $cx-input-placeholder,
|
|
16
|
-
$empty-text: $cx-empty-text,
|
|
17
|
-
$left-icon-state-style-map: $cx-input-left-icon-state-style-map,
|
|
18
|
-
$clear-state-style-map: $cx-clear-state-style-map,
|
|
19
|
-
$tool-state-style-map: $cx-input-right-icon-state-style-map,
|
|
20
|
-
$icon-size: $cx-default-input-icon-size,
|
|
21
|
-
$width: $cx-default-input-width,
|
|
22
|
-
$tag-state-style-map: $cx-input-tag-state-style-map,
|
|
23
|
-
$tag-clear-state-style-map: $cx-input-tag-clear-state-style-map,
|
|
24
|
-
$besm: $cx-besm
|
|
25
|
-
) {
|
|
26
|
-
$block: map.get($besm, block);
|
|
27
|
-
$element: map.get($besm, element);
|
|
28
|
-
$state: map.get($besm, state);
|
|
29
|
-
|
|
30
|
-
$padding: cx-get-state-rule($state-style-map, default, padding);
|
|
31
|
-
$border-radius-offset: cx-multiply(cx-get-state-rule($tag-state-style-map, default, border-radius), 0.25);
|
|
32
|
-
|
|
33
|
-
.#{$block}#{$name} {
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
width: $width;
|
|
36
|
-
font: cx-get-state-rule($state-style-map, default, "font");
|
|
37
|
-
font-size: cx-get-state-rule($state-style-map, default, "font-size");
|
|
38
|
-
|
|
39
|
-
@include cxb-field($besm, $state-style-map, $input: false);
|
|
40
|
-
|
|
41
|
-
&.#{$state}multiple {
|
|
42
|
-
min-width: $cx-default-input-width;
|
|
43
|
-
width: auto;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.#{$state}readonly {
|
|
47
|
-
pointer-events: none;
|
|
48
|
-
|
|
49
|
-
& > .#{$element}#{$name}-input {
|
|
50
|
-
padding-right: cx-right($padding);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
$
|
|
63
|
-
$
|
|
64
|
-
$
|
|
65
|
-
$
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
cx-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
overflow:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
flex-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
cx-calc($cx-default-input-tag-spacing, cx-multiply(cx-
|
|
95
|
-
cx-calc($cx-default-input-tag-spacing, cx-multiply(cx-
|
|
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
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
$
|
|
142
|
-
$
|
|
143
|
-
$
|
|
144
|
-
$
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
.#{$state}place-up
|
|
155
|
-
.#{$state}place-up
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
@
|
|
227
|
-
|
|
228
|
-
}
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use "../variables" as *;
|
|
4
|
+
@use "../maps" as *;
|
|
5
|
+
@use "../../util/scss/add-rules.scss" as *;
|
|
6
|
+
@use "../../util/scss/clockwise.scss" as *;
|
|
7
|
+
@use "../../util/scss/besm.scss" as *;
|
|
8
|
+
@use "../../util/scss/calc.scss" as *;
|
|
9
|
+
@use "../../util/scss/include.scss" as *;
|
|
10
|
+
@use "./Field.scss" as *;
|
|
11
|
+
|
|
12
|
+
@mixin cx-lookupfield(
|
|
13
|
+
$name: "lookupfield",
|
|
14
|
+
$state-style-map: $cx-std-field-state-style-map,
|
|
15
|
+
$placeholder: $cx-input-placeholder,
|
|
16
|
+
$empty-text: $cx-empty-text,
|
|
17
|
+
$left-icon-state-style-map: $cx-input-left-icon-state-style-map,
|
|
18
|
+
$clear-state-style-map: $cx-clear-state-style-map,
|
|
19
|
+
$tool-state-style-map: $cx-input-right-icon-state-style-map,
|
|
20
|
+
$icon-size: $cx-default-input-icon-size,
|
|
21
|
+
$width: $cx-default-input-width,
|
|
22
|
+
$tag-state-style-map: $cx-input-tag-state-style-map,
|
|
23
|
+
$tag-clear-state-style-map: $cx-input-tag-clear-state-style-map,
|
|
24
|
+
$besm: $cx-besm
|
|
25
|
+
) {
|
|
26
|
+
$block: map.get($besm, block);
|
|
27
|
+
$element: map.get($besm, element);
|
|
28
|
+
$state: map.get($besm, state);
|
|
29
|
+
|
|
30
|
+
$padding: cx-get-state-rule($state-style-map, default, padding);
|
|
31
|
+
$border-radius-offset: cx-multiply(cx-get-state-rule($tag-state-style-map, default, border-radius), 0.25);
|
|
32
|
+
|
|
33
|
+
.#{$block}#{$name} {
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
width: $width;
|
|
36
|
+
font: cx-get-state-rule($state-style-map, default, "font");
|
|
37
|
+
font-size: cx-get-state-rule($state-style-map, default, "font-size");
|
|
38
|
+
|
|
39
|
+
@include cxb-field($besm, $state-style-map, $input: false);
|
|
40
|
+
|
|
41
|
+
&.#{$state}multiple {
|
|
42
|
+
min-width: $cx-default-input-width;
|
|
43
|
+
width: auto;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.#{$state}readonly {
|
|
47
|
+
pointer-events: none;
|
|
48
|
+
|
|
49
|
+
& > .#{$element}#{$name}-input {
|
|
50
|
+
padding-right: cx-right($padding);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.#{$state}icon > .#{$element}#{$name}-input > .#{$element}#{$name}-tags {
|
|
55
|
+
margin-left: 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.#{$element}#{$name}-input {
|
|
60
|
+
@include cxe-field-input(
|
|
61
|
+
$besm,
|
|
62
|
+
$state-style-map,
|
|
63
|
+
$placeholder: $placeholder,
|
|
64
|
+
$input: false,
|
|
65
|
+
$overrides: (
|
|
66
|
+
default: (
|
|
67
|
+
width: 100%,
|
|
68
|
+
display: inline-flex,
|
|
69
|
+
text-overflow: null,
|
|
70
|
+
padding: cx-top($padding)
|
|
71
|
+
cx-calc(cx-right($padding), $cx-default-clear-size, $cx-default-input-tag-spacing) cx-bottom($padding)
|
|
72
|
+
cx-left($padding),
|
|
73
|
+
)
|
|
74
|
+
)
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
.#{$state}single > & {
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
text-overflow: ellipsis;
|
|
80
|
+
white-space: nowrap;
|
|
81
|
+
flex-basis: 0%;
|
|
82
|
+
flex-grow: 1;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.#{$state}icon > & {
|
|
86
|
+
padding-left: cx-calc(cx-top($padding), $cx-default-input-left-tool-size, $cx-default-input-left-tool-spacing);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.#{$element}#{$name}-tags {
|
|
91
|
+
display: flex;
|
|
92
|
+
margin: cx-calc($cx-default-input-tag-spacing, cx-multiply(cx-top($padding), -1))
|
|
93
|
+
cx-calc($cx-default-input-tag-spacing, cx-multiply(cx-right($padding), -1))
|
|
94
|
+
cx-calc($cx-default-input-tag-spacing, cx-multiply(cx-bottom($padding), -1))
|
|
95
|
+
cx-calc($cx-default-input-tag-spacing, cx-multiply(cx-left($padding), -1));
|
|
96
|
+
align-items: center;
|
|
97
|
+
flex-wrap: wrap;
|
|
98
|
+
gap: $cx-default-input-tag-spacing;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.#{$element}#{$name}-tag {
|
|
102
|
+
display: inline-block;
|
|
103
|
+
position: relative;
|
|
104
|
+
box-sizing: border-box;
|
|
105
|
+
|
|
106
|
+
@include cx-add-state-rules($tag-state-style-map, default);
|
|
107
|
+
|
|
108
|
+
&:hover {
|
|
109
|
+
@include cx-add-state-rules($tag-state-style-map, hover);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&.#{$state}readonly {
|
|
113
|
+
padding-right: cx-right($padding);
|
|
114
|
+
pointer-events: none;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.#{$element}#{$name}-placeholder {
|
|
119
|
+
color: $cx-default-input-placeholder-color;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.#{$element}#{$name}-tag-value {
|
|
123
|
+
padding: 0 cx-calc($cx-default-input-tag-spacing, $border-radius-offset);
|
|
124
|
+
display: inline-block;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.#{$element}#{$name}-tag-clear {
|
|
128
|
+
@include cxe-field-button($besm, $tag-clear-state-style-map);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.#{$element}#{$name}-lookup-options {
|
|
132
|
+
padding: 0;
|
|
133
|
+
margin: 0;
|
|
134
|
+
min-width: 100%;
|
|
135
|
+
width: 100%;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.#{$element}#{$name}-query {
|
|
139
|
+
@include cxe-field-input(
|
|
140
|
+
$besm,
|
|
141
|
+
$state-style-map,
|
|
142
|
+
$placeholder: $placeholder,
|
|
143
|
+
$width: calc(100% - 10px),
|
|
144
|
+
$overrides: (
|
|
145
|
+
default: (
|
|
146
|
+
margin: 5px,
|
|
147
|
+
flex: 0 0 auto,
|
|
148
|
+
height: auto,
|
|
149
|
+
)
|
|
150
|
+
)
|
|
151
|
+
);
|
|
152
|
+
//put query field down when placed up
|
|
153
|
+
.#{$state}place-up-right &,
|
|
154
|
+
.#{$state}place-up &,
|
|
155
|
+
.#{$state}place-up-left & {
|
|
156
|
+
order: 1;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.#{$element}#{$name}-dropdown {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
height: 100%;
|
|
164
|
+
|
|
165
|
+
&:focus {
|
|
166
|
+
outline: none;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.#{$element}#{$name}-message {
|
|
171
|
+
font-size: smaller;
|
|
172
|
+
padding: 10px;
|
|
173
|
+
color: gray;
|
|
174
|
+
font-style: italic;
|
|
175
|
+
|
|
176
|
+
&.#{$state}error {
|
|
177
|
+
color: #9e2f2d;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.#{$element}#{$name}-scroll-container {
|
|
182
|
+
overflow: auto;
|
|
183
|
+
flex: 1 1 auto;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.#{$element}#{$name}-clear {
|
|
187
|
+
@include cxe-field-button($besm, $clear-state-style-map);
|
|
188
|
+
|
|
189
|
+
.#{$state}focus > & {
|
|
190
|
+
@include cx-add-state-rules($clear-state-style-map, focus);
|
|
191
|
+
}
|
|
192
|
+
.#{$state}error > & {
|
|
193
|
+
@include cx-add-state-rules($clear-state-style-map, error);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.#{$element}#{$name}-tool {
|
|
198
|
+
@include cxe-field-button($besm, $tool-state-style-map);
|
|
199
|
+
|
|
200
|
+
.#{$state}disabled > & {
|
|
201
|
+
border-width: 0;
|
|
202
|
+
@include cx-add-state-rules($state-style-map, disabled);
|
|
203
|
+
}
|
|
204
|
+
.#{$state}focus > & {
|
|
205
|
+
@include cx-add-state-rules($tool-state-style-map, focus);
|
|
206
|
+
}
|
|
207
|
+
.#{$state}error > & {
|
|
208
|
+
@include cx-add-state-rules($tool-state-style-map, error);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.#{$element}#{$name}-left-icon {
|
|
213
|
+
@include cxe-field-button($besm, $left-icon-state-style-map);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.#{$element}#{$name}-icon {
|
|
217
|
+
@include cxe-field-button-icon($besm, $icon-size);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.#{$element}#{$name}-empty-text {
|
|
221
|
+
@include cxe-field-empty-text($empty-text);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@if (cx-should-include("cx/widgets/LookupField")) {
|
|
226
|
+
@include cx-lookupfield();
|
|
227
|
+
}
|
|
@@ -31,6 +31,8 @@
|
|
|
31
31
|
.#{$element}#{$name}-clip {
|
|
32
32
|
position: relative;
|
|
33
33
|
overflow: hidden;
|
|
34
|
+
width: fit-content;
|
|
35
|
+
box-sizing: content-box;
|
|
34
36
|
background: inherit;
|
|
35
37
|
user-select: none;
|
|
36
38
|
background-color: $cx-default-wheel-clip-background-color;
|
|
@@ -50,11 +52,11 @@
|
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
.#{$element}#{$name}-vscroll {
|
|
53
|
-
width: calc(100% + 20px);
|
|
54
55
|
display: flex;
|
|
55
56
|
overflow-y: auto;
|
|
56
57
|
overflow-x: hidden;
|
|
57
58
|
touch-action: pan-y;
|
|
59
|
+
scrollbar-width: none;
|
|
58
60
|
|
|
59
61
|
&::-webkit-scrollbar {
|
|
60
62
|
display: none;
|
|
@@ -65,7 +67,7 @@
|
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
.#{$element}#{$name}-option {
|
|
68
|
-
padding:
|
|
70
|
+
padding: $cx-default-wheel-option-padding;
|
|
69
71
|
flex: 0 0 auto;
|
|
70
72
|
|
|
71
73
|
&.cxs-dummy {
|