@vitrosoftware/common-ui-ts 1.1.107 → 1.1.109
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/criterion/criterion.css +1 -5
- package/css/std/controls/date-picker/date-picker.css +1 -5
- package/css/std/controls/header/header-nav-bar-sidebar-button.css +1 -0
- package/css/std/controls/input/input.css +1 -5
- package/css/std/controls/login/login-form.css +0 -2
- package/css/std/controls/lookup-picker/lookup-picker.css +1 -5
- package/css/std/controls/product-title/product-title.css +1 -1
- package/css/std/controls/time-picker/time-picker.css +1 -5
- package/dist/index.css +7 -28
- package/dist/index.js +33 -23
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +2 -2
- package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
|
@@ -25,11 +25,7 @@
|
|
|
25
25
|
.vitro-label {
|
|
26
26
|
color: #4A556C;
|
|
27
27
|
padding: 0 6px;
|
|
28
|
-
background:
|
|
29
|
-
background-image: linear-gradient(#fff, #fff);
|
|
30
|
-
background-size: 100% 3px;
|
|
31
|
-
background-position: 0 calc(50% + 3px);
|
|
32
|
-
background-repeat: no-repeat;
|
|
28
|
+
background-color: #fff;
|
|
33
29
|
z-index: 1;
|
|
34
30
|
position: absolute;
|
|
35
31
|
left: 10px;
|
|
@@ -74,11 +74,7 @@
|
|
|
74
74
|
.vitro-label {
|
|
75
75
|
color: #4A556C;
|
|
76
76
|
padding: 0 6px;
|
|
77
|
-
background:
|
|
78
|
-
background-image: linear-gradient(#fff, #fff);
|
|
79
|
-
background-size: 100% 3px;
|
|
80
|
-
background-position: 0 calc(50% + 3px);
|
|
81
|
-
background-repeat: no-repeat;
|
|
77
|
+
background-color: #fff;
|
|
82
78
|
z-index: 1;
|
|
83
79
|
position: absolute;
|
|
84
80
|
left: 10px;
|
|
@@ -91,11 +91,7 @@
|
|
|
91
91
|
.vitro-label {
|
|
92
92
|
color: #4A556C;
|
|
93
93
|
padding: 0 6px;
|
|
94
|
-
background:
|
|
95
|
-
background-image: linear-gradient(#fff, #fff);
|
|
96
|
-
background-size: 100% 3px;
|
|
97
|
-
background-position: 0 calc(50% + 3px);
|
|
98
|
-
background-repeat: no-repeat;
|
|
94
|
+
background-color: #fff;
|
|
99
95
|
z-index: 1;
|
|
100
96
|
position: absolute;
|
|
101
97
|
left: 10px;
|
|
@@ -54,11 +54,7 @@
|
|
|
54
54
|
.vitro-label {
|
|
55
55
|
color: #4A556C;
|
|
56
56
|
padding: 0 6px;
|
|
57
|
-
background:
|
|
58
|
-
background-image: linear-gradient(#fff, #fff);
|
|
59
|
-
background-size: 100% 3px;
|
|
60
|
-
background-position: 0 calc(50% + 3px);
|
|
61
|
-
background-repeat: no-repeat;
|
|
57
|
+
background-color: #fff;
|
|
62
58
|
z-index: 1;
|
|
63
59
|
position: absolute;
|
|
64
60
|
left: 10px;
|
|
@@ -82,11 +82,7 @@
|
|
|
82
82
|
.vitro-label {
|
|
83
83
|
color: #4A556C;
|
|
84
84
|
padding: 0 6px;
|
|
85
|
-
background:
|
|
86
|
-
background-image: linear-gradient(#fff, #fff);
|
|
87
|
-
background-size: 100% 3px;
|
|
88
|
-
background-position: 0 calc(50% + 3px);
|
|
89
|
-
background-repeat: no-repeat;
|
|
85
|
+
background-color: #fff;
|
|
90
86
|
z-index: 1;
|
|
91
87
|
position: absolute;
|
|
92
88
|
left: 10px;
|
package/dist/index.css
CHANGED
|
@@ -2329,11 +2329,7 @@ html, body {
|
|
|
2329
2329
|
._input_vitro-label_2XBESiY {
|
|
2330
2330
|
color: #4A556C;
|
|
2331
2331
|
padding: 0 6px;
|
|
2332
|
-
background:
|
|
2333
|
-
background-image: linear-gradient(#fff, #fff);
|
|
2334
|
-
background-size: 100% 3px;
|
|
2335
|
-
background-position: 0 calc(50% + 3px);
|
|
2336
|
-
background-repeat: no-repeat;
|
|
2332
|
+
background-color: #fff;
|
|
2337
2333
|
z-index: 1;
|
|
2338
2334
|
position: absolute;
|
|
2339
2335
|
left: 10px;
|
|
@@ -3021,8 +3017,6 @@ html, body {
|
|
|
3021
3017
|
|
|
3022
3018
|
._login-form_vitro-control_1Th9h7G > div {
|
|
3023
3019
|
font-size: 16px !important;
|
|
3024
|
-
line-height: 27px !important;
|
|
3025
|
-
top: -16px !important;
|
|
3026
3020
|
}
|
|
3027
3021
|
|
|
3028
3022
|
._login-form_vitro-control_1Th9h7G input {
|
|
@@ -3396,11 +3390,7 @@ html, body {
|
|
|
3396
3390
|
._date-picker_vitro-label_2jh9qxb {
|
|
3397
3391
|
color: #4A556C;
|
|
3398
3392
|
padding: 0 6px;
|
|
3399
|
-
background:
|
|
3400
|
-
background-image: linear-gradient(#fff, #fff);
|
|
3401
|
-
background-size: 100% 3px;
|
|
3402
|
-
background-position: 0 calc(50% + 3px);
|
|
3403
|
-
background-repeat: no-repeat;
|
|
3393
|
+
background-color: #fff;
|
|
3404
3394
|
z-index: 1;
|
|
3405
3395
|
position: absolute;
|
|
3406
3396
|
left: 10px;
|
|
@@ -3748,11 +3738,7 @@ html, body {
|
|
|
3748
3738
|
._time-picker_vitro-label_2b97aCy {
|
|
3749
3739
|
color: #4A556C;
|
|
3750
3740
|
padding: 0 6px;
|
|
3751
|
-
background:
|
|
3752
|
-
background-image: linear-gradient(#fff, #fff);
|
|
3753
|
-
background-size: 100% 3px;
|
|
3754
|
-
background-position: 0 calc(50% + 3px);
|
|
3755
|
-
background-repeat: no-repeat;
|
|
3741
|
+
background-color: #fff;
|
|
3756
3742
|
z-index: 1;
|
|
3757
3743
|
position: absolute;
|
|
3758
3744
|
left: 10px;
|
|
@@ -4166,11 +4152,7 @@ html, body {
|
|
|
4166
4152
|
._lookup-picker_vitro-label_2QoJkUz {
|
|
4167
4153
|
color: #4A556C;
|
|
4168
4154
|
padding: 0 6px;
|
|
4169
|
-
background:
|
|
4170
|
-
background-image: linear-gradient(#fff, #fff);
|
|
4171
|
-
background-size: 100% 3px;
|
|
4172
|
-
background-position: 0 calc(50% + 3px);
|
|
4173
|
-
background-repeat: no-repeat;
|
|
4155
|
+
background-color: #fff;
|
|
4174
4156
|
z-index: 1;
|
|
4175
4157
|
position: absolute;
|
|
4176
4158
|
left: 10px;
|
|
@@ -6066,11 +6048,7 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
|
|
|
6066
6048
|
._criterion_vitro-label_3F6a8dj {
|
|
6067
6049
|
color: #4A556C;
|
|
6068
6050
|
padding: 0 6px;
|
|
6069
|
-
background:
|
|
6070
|
-
background-image: linear-gradient(#fff, #fff);
|
|
6071
|
-
background-size: 100% 3px;
|
|
6072
|
-
background-position: 0 calc(50% + 3px);
|
|
6073
|
-
background-repeat: no-repeat;
|
|
6051
|
+
background-color: #fff;
|
|
6074
6052
|
z-index: 1;
|
|
6075
6053
|
position: absolute;
|
|
6076
6054
|
left: 10px;
|
|
@@ -6904,6 +6882,7 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
|
|
|
6904
6882
|
background-repeat: no-repeat;
|
|
6905
6883
|
background-size: 100%;
|
|
6906
6884
|
z-index: 100;
|
|
6885
|
+
margin-right: 32px;
|
|
6907
6886
|
background-image: url('@vitrosoftware/common-ui-ts/css/std/controls/header/img/nav-bar-button.svg');
|
|
6908
6887
|
}
|
|
6909
6888
|
|
|
@@ -6955,7 +6934,7 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
|
|
|
6955
6934
|
._product-title_vitro-product-title_2gZcA5j img {
|
|
6956
6935
|
max-height: 25px;
|
|
6957
6936
|
min-height: 25px;
|
|
6958
|
-
margin:
|
|
6937
|
+
margin-right: 32px;
|
|
6959
6938
|
}
|
|
6960
6939
|
|
|
6961
6940
|
@media (max-width: 800px) {
|
package/dist/index.js
CHANGED
|
@@ -61893,7 +61893,7 @@ var Viewer = function Viewer(props) {
|
|
|
61893
61893
|
};
|
|
61894
61894
|
|
|
61895
61895
|
var name = "@vitrosoftware/common-ui-ts";
|
|
61896
|
-
var version$1 = "1.1.
|
|
61896
|
+
var version$1 = "1.1.109";
|
|
61897
61897
|
var description = "vitro software common ui ts";
|
|
61898
61898
|
var author = "";
|
|
61899
61899
|
var license = "MIT";
|
|
@@ -62569,7 +62569,7 @@ var NumberInput = React.forwardRef(function (props, ref) {
|
|
|
62569
62569
|
var secondLocaleSeparator = localeSeparator === CTRL.COMMA ? CTRL.DOT : CTRL.COMMA;
|
|
62570
62570
|
var inputRef = React.useRef();
|
|
62571
62571
|
React.useEffect(function () {
|
|
62572
|
-
var value = props.value ? props.value : CTRL.EMPTY;
|
|
62572
|
+
var value = props.value || props.value === 0 ? props.value : CTRL.EMPTY;
|
|
62573
62573
|
setInputValue(getValue(value.toString()));
|
|
62574
62574
|
}, [props.value]);
|
|
62575
62575
|
React.useImperativeHandle(ref, function () {
|
|
@@ -63059,7 +63059,7 @@ var SelectedValueList = function SelectedValueList(props) {
|
|
|
63059
63059
|
var valueListStyles = {"vitro-value-list":"_lookup-picker-value-list_vitro-value-list_LSdCMjq","vitro-item":"_lookup-picker-value-list_vitro-item_7yZBz5u","vitro-item-html-value":"_lookup-picker-value-list_vitro-item-html-value_1yl9tXx","vitro-placeholder-empty":"_lookup-picker-value-list_vitro-placeholder-empty_fTVHWwc","vitro-keyword-highlight":"_lookup-picker-value-list_vitro-keyword-highlight_1uESHan","vitro-display-none":"_lookup-picker-value-list_vitro-display-none_2kDzC6K"};
|
|
63060
63060
|
|
|
63061
63061
|
var ValueListItem = function ValueListItem(props) {
|
|
63062
|
-
var
|
|
63062
|
+
var onKeyDown = function onKeyDown(e) {
|
|
63063
63063
|
if (e.keyCode === 13 && !e.shiftKey) {
|
|
63064
63064
|
e.preventDefault();
|
|
63065
63065
|
props.onSelect(props.item.id);
|
|
@@ -63068,10 +63068,8 @@ var ValueListItem = function ValueListItem(props) {
|
|
|
63068
63068
|
return React__default.createElement("div", {
|
|
63069
63069
|
key: props.item.id,
|
|
63070
63070
|
className: valueListStyles['vitro-item'],
|
|
63071
|
-
onKeyDown:
|
|
63072
|
-
|
|
63073
|
-
},
|
|
63074
|
-
onClick: function onClick() {
|
|
63071
|
+
onKeyDown: onKeyDown,
|
|
63072
|
+
onMouseDown: function onMouseDown() {
|
|
63075
63073
|
return props.onSelect(props.item.id);
|
|
63076
63074
|
},
|
|
63077
63075
|
tabIndex: 0
|
|
@@ -63099,13 +63097,20 @@ var ValueList = function ValueList(props) {
|
|
|
63099
63097
|
}
|
|
63100
63098
|
});
|
|
63101
63099
|
React.useEffect(function () {
|
|
63102
|
-
if (props.
|
|
63103
|
-
setStyle({
|
|
63104
|
-
width: props.contentRef.offsetWidth + UNIT.PX,
|
|
63105
|
-
inset: props.contentRef.offsetHeight + UNIT.PX + " auto auto 0px"
|
|
63106
|
-
});
|
|
63107
|
-
} else {
|
|
63100
|
+
if (props.isFlip) {
|
|
63108
63101
|
setStyle(null);
|
|
63102
|
+
} else {
|
|
63103
|
+
if (props.isVisible && props.contentRef) {
|
|
63104
|
+
setStyle({
|
|
63105
|
+
width: props.contentRef.offsetWidth + UNIT.PX,
|
|
63106
|
+
inset: props.contentRef.offsetHeight + UNIT.PX + " auto auto 0px"
|
|
63107
|
+
});
|
|
63108
|
+
} else {
|
|
63109
|
+
setStyle({
|
|
63110
|
+
width: 0,
|
|
63111
|
+
inset: 0
|
|
63112
|
+
});
|
|
63113
|
+
}
|
|
63109
63114
|
}
|
|
63110
63115
|
}, [props.isVisible]);
|
|
63111
63116
|
var createDisplayValue = function createDisplayValue(item) {
|
|
@@ -63320,6 +63325,7 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63320
63325
|
inputRef && inputRef.current && inputRef.current.focus();
|
|
63321
63326
|
} else {
|
|
63322
63327
|
setValueListVisible(false);
|
|
63328
|
+
setState(CTRL.EMPTY);
|
|
63323
63329
|
}
|
|
63324
63330
|
};
|
|
63325
63331
|
var onOptionValueDelete = function onOptionValueDelete(id) {
|
|
@@ -63335,10 +63341,10 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63335
63341
|
};
|
|
63336
63342
|
var onFocusOut = function onFocusOut(e) {
|
|
63337
63343
|
var target = e.currentTarget;
|
|
63338
|
-
setState(props.errorMessage ? styles$M['vitro-error'] : CTRL.EMPTY);
|
|
63339
63344
|
setTimeout(function () {
|
|
63340
63345
|
var _document$activeEleme;
|
|
63341
|
-
|
|
63346
|
+
var isValueListItem = Boolean(props.isMultiSelect && ((_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 ? void 0 : _document$activeEleme.classList.contains(valueListStyles['vitro-item'])));
|
|
63347
|
+
if (!target.contains(document.activeElement) && !isValueListItem) {
|
|
63342
63348
|
setValueListVisible(false);
|
|
63343
63349
|
setInputValue(CTRL.EMPTY);
|
|
63344
63350
|
if (props.onBlur && !props.isDisabled) {
|
|
@@ -63346,6 +63352,7 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63346
63352
|
return x;
|
|
63347
63353
|
}), props.name);
|
|
63348
63354
|
}
|
|
63355
|
+
setState(props.errorMessage ? styles$M['vitro-error'] : CTRL.EMPTY);
|
|
63349
63356
|
}
|
|
63350
63357
|
});
|
|
63351
63358
|
};
|
|
@@ -63409,7 +63416,7 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63409
63416
|
value: inputValue,
|
|
63410
63417
|
onKeyDown: onKeyDown,
|
|
63411
63418
|
onChange: onChange,
|
|
63412
|
-
|
|
63419
|
+
onFocus: onFocus
|
|
63413
63420
|
}), !props.isDisabled && props.children, React__default.createElement("div", {
|
|
63414
63421
|
className: styles$M['vitro-right']
|
|
63415
63422
|
}, !props.isMultiSelect && selectedValueList && selectedValueList.length > 0 && isEditable && React__default.createElement("div", {
|
|
@@ -66330,13 +66337,6 @@ var ProductTitle = function ProductTitle(props) {
|
|
|
66330
66337
|
defaultUrl: props.image,
|
|
66331
66338
|
caption: props.imageCaption
|
|
66332
66339
|
}), props.title && React__default.createElement("h1", null, props.title), props.children);
|
|
66333
|
-
if (props.href) {
|
|
66334
|
-
return React__default.createElement("a", {
|
|
66335
|
-
href: props.href,
|
|
66336
|
-
className: styles$1k['vitro-product-title'],
|
|
66337
|
-
title: props.imageCaption
|
|
66338
|
-
}, content);
|
|
66339
|
-
}
|
|
66340
66340
|
var onClick = function onClick(e) {
|
|
66341
66341
|
var href = props.link ? props.link : CTRL.SLASH;
|
|
66342
66342
|
var event = new CustomEvent(exports.EVENT.HISTORY_UPDATE, {
|
|
@@ -66346,6 +66346,16 @@ var ProductTitle = function ProductTitle(props) {
|
|
|
66346
66346
|
});
|
|
66347
66347
|
window.dispatchEvent(event);
|
|
66348
66348
|
};
|
|
66349
|
+
if (!props.image && !props.title) {
|
|
66350
|
+
return React__default.createElement(React__default.Fragment, null);
|
|
66351
|
+
}
|
|
66352
|
+
if (props.href) {
|
|
66353
|
+
return React__default.createElement("a", {
|
|
66354
|
+
href: props.href,
|
|
66355
|
+
className: styles$1k['vitro-product-title'],
|
|
66356
|
+
title: props.imageCaption
|
|
66357
|
+
}, content);
|
|
66358
|
+
}
|
|
66349
66359
|
return React__default.createElement("a", {
|
|
66350
66360
|
onClick: onClick,
|
|
66351
66361
|
className: styles$1k['vitro-product-title'],
|