@vitrosoftware/common-ui-ts 1.1.42 → 1.1.43
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/css/std/controls/date-picker/date-picker.css +1 -1
- package/css/std/controls/input/input.css +4 -0
- package/css/std/controls/lookup-picker/lookup-picker.css +4 -0
- package/css/std/controls/message-input/message-input.css +1 -0
- package/css/std/controls/time-picker/time-picker.css +1 -1
- package/dist/index.css +13 -2
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1852,6 +1852,10 @@
|
|
|
1852
1852
|
color: #4A556C;
|
|
1853
1853
|
}
|
|
1854
1854
|
|
|
1855
|
+
._input_vitro-read-only_3f-cBbK ._input_vitro-label_2XBESiY {
|
|
1856
|
+
color: #8E98A3;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1855
1859
|
._input_vitro-error_1T3dLzB input,
|
|
1856
1860
|
._input_vitro-error_1T3dLzB textarea {
|
|
1857
1861
|
border-color: #D13438;
|
|
@@ -2444,7 +2448,7 @@
|
|
|
2444
2448
|
}
|
|
2445
2449
|
|
|
2446
2450
|
._date-picker_vitro-read-only_2NZoMN5 ._date-picker_vitro-label_2jh9qxb {
|
|
2447
|
-
color: #
|
|
2451
|
+
color: #8E98A3;
|
|
2448
2452
|
}
|
|
2449
2453
|
|
|
2450
2454
|
._date-picker_vitro-read-only_2NZoMN5 .k-picker-wrap .k-select {
|
|
@@ -2786,7 +2790,7 @@
|
|
|
2786
2790
|
}
|
|
2787
2791
|
|
|
2788
2792
|
._time-picker_vitro-read-only_NlE18Zm ._time-picker_vitro-label_2b97aCy {
|
|
2789
|
-
color: #
|
|
2793
|
+
color: #8E98A3;
|
|
2790
2794
|
}
|
|
2791
2795
|
|
|
2792
2796
|
._time-picker_vitro-read-only_NlE18Zm .k-picker-wrap .k-select {
|
|
@@ -3181,6 +3185,10 @@
|
|
|
3181
3185
|
user-select: none;
|
|
3182
3186
|
}
|
|
3183
3187
|
|
|
3188
|
+
._lookup-picker_vitro-read-only_32NOdGB ._lookup-picker_vitro-label_2QoJkUz {
|
|
3189
|
+
color: #8E98A3;
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3184
3192
|
._lookup-picker_vitro-read-only_32NOdGB input::-moz-selection {
|
|
3185
3193
|
background: white;
|
|
3186
3194
|
color: #4A556C;
|
|
@@ -4544,6 +4552,9 @@ ul > li:last-child > ul > li:last-child ._sidebar-item_vitro-active_7p5iOhY {
|
|
|
4544
4552
|
pointer-events: none;
|
|
4545
4553
|
text-overflow: ellipsis;
|
|
4546
4554
|
overflow: hidden;
|
|
4555
|
+
-webkit-user-select: none;
|
|
4556
|
+
-moz-user-select: none;
|
|
4557
|
+
user-select: none;
|
|
4547
4558
|
}
|
|
4548
4559
|
|
|
4549
4560
|
._message-input_vitro-button-add-file_1qdtHHq {
|
package/dist/index.js
CHANGED
|
@@ -61706,6 +61706,7 @@ var LookupPicker = function LookupPicker(props) {
|
|
|
61706
61706
|
};
|
|
61707
61707
|
var onChange = function onChange(e) {
|
|
61708
61708
|
setState(styles$q['vitro-focus']);
|
|
61709
|
+
setValueListVisible(true);
|
|
61709
61710
|
setInputValue(e.target.value);
|
|
61710
61711
|
};
|
|
61711
61712
|
var onKeyDown = function onKeyDown(e) {
|
|
@@ -64144,12 +64145,12 @@ var MessageInput = function MessageInput(props) {
|
|
|
64144
64145
|
var onEnter = function onEnter() {
|
|
64145
64146
|
props.onSubmit(getValue());
|
|
64146
64147
|
resetValue();
|
|
64147
|
-
setIsShowPlaceholder(true);
|
|
64148
64148
|
};
|
|
64149
64149
|
var onKeyDown = function onKeyDown(e) {
|
|
64150
64150
|
if (e.keyCode === 13 && !e.shiftKey) {
|
|
64151
64151
|
e.preventDefault();
|
|
64152
64152
|
onEnter();
|
|
64153
|
+
setIsShowPlaceholder(false);
|
|
64153
64154
|
}
|
|
64154
64155
|
};
|
|
64155
64156
|
var onChange = function onChange(e) {
|
|
@@ -64165,18 +64166,21 @@ var MessageInput = function MessageInput(props) {
|
|
|
64165
64166
|
var value = getValue();
|
|
64166
64167
|
if (!value) {
|
|
64167
64168
|
resetValue();
|
|
64168
|
-
setIsShowPlaceholder(true);
|
|
64169
64169
|
}
|
|
64170
64170
|
};
|
|
64171
64171
|
var getValue = function getValue() {
|
|
64172
|
+
if (isShowPlaceholder) {
|
|
64173
|
+
return CTRL.EMPTY;
|
|
64174
|
+
}
|
|
64172
64175
|
if (inputRef.current) {
|
|
64173
64176
|
return inputRef.current.innerText.replace(NEW_LINE, CTRL.EMPTY);
|
|
64174
64177
|
}
|
|
64175
64178
|
return CTRL.EMPTY;
|
|
64176
64179
|
};
|
|
64177
64180
|
var resetValue = function resetValue() {
|
|
64178
|
-
if (inputRef.current) {
|
|
64181
|
+
if (inputRef.current && !isShowPlaceholder) {
|
|
64179
64182
|
inputRef.current.innerText = CTRL.EMPTY;
|
|
64183
|
+
setIsShowPlaceholder(true);
|
|
64180
64184
|
}
|
|
64181
64185
|
};
|
|
64182
64186
|
return React__default.createElement("div", {
|