@vitrosoftware/common-ui-ts 1.1.132 → 1.1.134
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/login/{ntlm-authentication-form.css → login-kerberos-form.css} +1 -1
- package/css/std/controls/table-view/treegrid-scroll.css +43 -0
- package/dist/index.css +5 -5
- package/dist/index.js +64 -21
- package/dist/index.js.map +1 -1
- package/dist/src/controls/Login/LoginConstants.d.ts +2 -2
- package/dist/src/controls/Login/LoginKerberosForm.d.ts +9 -0
- package/dist/src/controls/NumberInput/NumberInput.d.ts +3 -1
- package/dist/src/controls/NumberInput/NumberInputConstants.d.ts +3 -0
- package/dist/src/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +2 -2
- package/src/controls/DxfViewer/js/dxf-viewer.js +14 -14
- package/src/controls/PdfViewer/js/pdf-viewer.js +22 -2
|
@@ -52,4 +52,47 @@
|
|
|
52
52
|
width: 4px;
|
|
53
53
|
margin: 0;
|
|
54
54
|
border-radius: 4px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.TWXScroll,
|
|
58
|
+
.TWHScrollHidden {
|
|
59
|
+
background: transparent !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.TWHScrollRight div::-webkit-scrollbar-thumb,
|
|
63
|
+
.TWHScrollMid div::-webkit-scrollbar-thumb,
|
|
64
|
+
.TWHScrollLeft div::-webkit-scrollbar-thumb {
|
|
65
|
+
background-color: #E4E6EC;
|
|
66
|
+
border-radius: 5px;
|
|
67
|
+
border-top: 4px solid #fff;
|
|
68
|
+
border-bottom: 4px solid #fff;
|
|
69
|
+
background-clip: content-box;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.TWHScrollRight > div,
|
|
73
|
+
.TWHScrollMid > div,
|
|
74
|
+
.TWHScrollLeft > div {
|
|
75
|
+
height: 12px !important;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.TWMain *::-webkit-scrollbar-button {
|
|
79
|
+
display: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.TWMain *::-webkit-scrollbar {
|
|
83
|
+
width: 12px !important;
|
|
84
|
+
height: 12px !important;
|
|
85
|
+
background: transparent;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.TWVScroll div::-webkit-scrollbar-thumb {
|
|
89
|
+
background-color: #E4E6EC;
|
|
90
|
+
border-radius: 5px;
|
|
91
|
+
border-left: 4px solid #fff;
|
|
92
|
+
border-right: 4px solid #fff;
|
|
93
|
+
background-clip: content-box;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.TWVScroll > div {
|
|
97
|
+
width: 11px !important;
|
|
55
98
|
}
|
package/dist/index.css
CHANGED
|
@@ -3471,32 +3471,32 @@ html, body {
|
|
|
3471
3471
|
display: flex;
|
|
3472
3472
|
align-items: center;
|
|
3473
3473
|
}
|
|
3474
|
-
.
|
|
3474
|
+
._login-kerberos-form_vitro-login-kerberos-form_v_rdUFi {
|
|
3475
3475
|
width: 100%;
|
|
3476
3476
|
height: 289px;
|
|
3477
3477
|
flex-direction: column;
|
|
3478
3478
|
}
|
|
3479
3479
|
|
|
3480
|
-
.
|
|
3480
|
+
._login-kerberos-form_vitro-flex_3DV6V0F {
|
|
3481
3481
|
flex-direction: column;
|
|
3482
3482
|
margin-top: 20px;
|
|
3483
3483
|
margin-bottom: auto;
|
|
3484
3484
|
}
|
|
3485
3485
|
|
|
3486
|
-
.
|
|
3486
|
+
._login-kerberos-form_vitro-flex_3DV6V0F ._login-kerberos-form_vitro-subtitle_hOCCFau {
|
|
3487
3487
|
font-size: 18px;
|
|
3488
3488
|
line-height: 135%;
|
|
3489
3489
|
text-align: center;
|
|
3490
3490
|
margin-bottom: 2px;
|
|
3491
3491
|
}
|
|
3492
3492
|
|
|
3493
|
-
.
|
|
3493
|
+
._login-kerberos-form_vitro-flex_3DV6V0F > .vitro-image {
|
|
3494
3494
|
width: 48px;
|
|
3495
3495
|
height: 48px;
|
|
3496
3496
|
margin-bottom: 16px;
|
|
3497
3497
|
}
|
|
3498
3498
|
|
|
3499
|
-
.
|
|
3499
|
+
._login-kerberos-form_vitro-error-message_2LXMkSK {
|
|
3500
3500
|
text-align: center;
|
|
3501
3501
|
}
|
|
3502
3502
|
._date-picker_vitro-control_2AYXegb {
|
package/dist/index.js
CHANGED
|
@@ -181,7 +181,7 @@ var app$1 = {
|
|
|
181
181
|
empty: "Заполните поле"
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
|
-
|
|
184
|
+
loginKerberosForm: {
|
|
185
185
|
subtitle: {
|
|
186
186
|
progress: "Выполняется вход через Windows...",
|
|
187
187
|
error: "Вход не выполнен"
|
|
@@ -62421,7 +62421,7 @@ var Viewer = function Viewer(props) {
|
|
|
62421
62421
|
};
|
|
62422
62422
|
|
|
62423
62423
|
var name = "@vitrosoftware/common-ui-ts";
|
|
62424
|
-
var version$1 = "1.1.
|
|
62424
|
+
var version$1 = "1.1.134";
|
|
62425
62425
|
var description = "vitro software common ui ts";
|
|
62426
62426
|
var author = "";
|
|
62427
62427
|
var license = "MIT";
|
|
@@ -62619,8 +62619,8 @@ var LOCALE$4;
|
|
|
62619
62619
|
LOCALE["TWO_FACTOR_AUTHENTICATION_FORM_DESCRIPTION_VALIDITY"] = "app.common.login.twoFactorAuthenticationForm.description.codeValidityDuration";
|
|
62620
62620
|
LOCALE["TWO_FACTOR_AUTHENTICATION_FORM_DESCRIPTION_RESEND"] = "app.common.login.twoFactorAuthenticationForm.description.resendCodeDuration";
|
|
62621
62621
|
LOCALE["TWO_FACTOR_AUTHENTICATION_FORM_ERROR_EMPTY"] = "app.common.login.twoFactorAuthenticationForm.error.empty";
|
|
62622
|
-
LOCALE["
|
|
62623
|
-
LOCALE["
|
|
62622
|
+
LOCALE["LOGIN_KERBEROS_FORM_SUBTITLE_PROGRESS"] = "app.common.login.loginKerberosForm.subtitle.progress";
|
|
62623
|
+
LOCALE["LOGIN_KERBEROS_FORM_SUBTITLE_ERROR"] = "app.common.login.loginKerberosForm.subtitle.error";
|
|
62624
62624
|
LOCALE["ACTION_LOGIN"] = "app.common.login.action.login";
|
|
62625
62625
|
LOCALE["ACTION_GO_BACK"] = "app.common.login.action.goBack";
|
|
62626
62626
|
LOCALE["ACTION_RESET_PASSWORD"] = "app.common.login.action.resetPassword";
|
|
@@ -63071,9 +63071,9 @@ var FlexBox = React.forwardRef(function (props, ref) {
|
|
|
63071
63071
|
}), props.children);
|
|
63072
63072
|
});
|
|
63073
63073
|
|
|
63074
|
-
var styles$K = {"vitro-
|
|
63074
|
+
var styles$K = {"vitro-login-kerberos-form":"_login-kerberos-form_vitro-login-kerberos-form_v_rdUFi","vitro-flex":"_login-kerberos-form_vitro-flex_3DV6V0F","vitro-subtitle":"_login-kerberos-form_vitro-subtitle_hOCCFau","vitro-error-message":"_login-kerberos-form_vitro-error-message_2LXMkSK"};
|
|
63075
63075
|
|
|
63076
|
-
var
|
|
63076
|
+
var LoginKerberosForm = React.forwardRef(function (props, ref) {
|
|
63077
63077
|
var _useState = React.useState(props.errorMessage),
|
|
63078
63078
|
errorMessage = _useState[0],
|
|
63079
63079
|
_setErrorMessage = _useState[1];
|
|
@@ -63081,7 +63081,7 @@ var NTLMAuthenticationForm = React.forwardRef(function (props, ref) {
|
|
|
63081
63081
|
_setErrorMessage(props.errorMessage);
|
|
63082
63082
|
}, [props.errorMessage]);
|
|
63083
63083
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
63084
|
-
var subtitle = errorMessage ? localeService.create(LOCALE$4.
|
|
63084
|
+
var subtitle = errorMessage ? localeService.create(LOCALE$4.LOGIN_KERBEROS_FORM_SUBTITLE_ERROR) : localeService.create(LOCALE$4.LOGIN_KERBEROS_FORM_SUBTITLE_PROGRESS);
|
|
63085
63085
|
React.useImperativeHandle(ref, function () {
|
|
63086
63086
|
return {
|
|
63087
63087
|
setErrorMessage: function setErrorMessage(message) {
|
|
@@ -63090,7 +63090,7 @@ var NTLMAuthenticationForm = React.forwardRef(function (props, ref) {
|
|
|
63090
63090
|
};
|
|
63091
63091
|
});
|
|
63092
63092
|
return React__default.createElement(FlexBox, {
|
|
63093
|
-
className: styles$K['vitro-
|
|
63093
|
+
className: styles$K['vitro-login-kerberos-form']
|
|
63094
63094
|
}, React__default.createElement(LoginTitle, null), React__default.createElement(FlexBox, {
|
|
63095
63095
|
className: styles$K['vitro-flex']
|
|
63096
63096
|
}, React__default.createElement(Image, {
|
|
@@ -63120,12 +63120,17 @@ var REGEXP;
|
|
|
63120
63120
|
REGEXP["FLOAT"] = "^[0-9]+[.,]?[0-9]{0,precision}$";
|
|
63121
63121
|
REGEXP["INT"] = "^[0-9]+$";
|
|
63122
63122
|
})(REGEXP || (REGEXP = {}));
|
|
63123
|
+
var MAX_VALUE;
|
|
63124
|
+
(function (MAX_VALUE) {
|
|
63125
|
+
MAX_VALUE[MAX_VALUE["INT"] = 2147483647] = "INT";
|
|
63126
|
+
})(MAX_VALUE || (MAX_VALUE = {}));
|
|
63123
63127
|
|
|
63124
63128
|
var NumberInputConstants = {
|
|
63125
63129
|
__proto__: null,
|
|
63126
63130
|
get AUTOCOMPLETE () { return AUTOCOMPLETE$1; },
|
|
63127
63131
|
get TYPE () { return TYPE$1; },
|
|
63128
|
-
get REGEXP () { return REGEXP; }
|
|
63132
|
+
get REGEXP () { return REGEXP; },
|
|
63133
|
+
get MAX_VALUE () { return MAX_VALUE; }
|
|
63129
63134
|
};
|
|
63130
63135
|
|
|
63131
63136
|
var PRECISION = 'precision';
|
|
@@ -63155,25 +63160,51 @@ var NumberInput = React.forwardRef(function (props, ref) {
|
|
|
63155
63160
|
var getDisplayValue = function getDisplayValue(value) {
|
|
63156
63161
|
if (value || value === 0) {
|
|
63157
63162
|
return value.toLocaleString(undefined, {
|
|
63158
|
-
maximumFractionDigits:
|
|
63163
|
+
maximumFractionDigits: getPrecision(),
|
|
63159
63164
|
useGrouping: false
|
|
63160
63165
|
});
|
|
63161
63166
|
}
|
|
63162
63167
|
return CTRL.EMPTY;
|
|
63163
63168
|
};
|
|
63164
|
-
var
|
|
63165
|
-
var
|
|
63166
|
-
var precision = (
|
|
63169
|
+
var isValidString = function isValidString(value) {
|
|
63170
|
+
var _getPrecision;
|
|
63171
|
+
var precision = (_getPrecision = getPrecision()) === null || _getPrecision === void 0 ? void 0 : _getPrecision.toString();
|
|
63167
63172
|
var regex = REGEXP.FLOAT.split(PRECISION).join(precision);
|
|
63168
63173
|
return new RegExp(regex).test(value);
|
|
63169
63174
|
};
|
|
63175
|
+
var isValidNumber = function isValidNumber(value) {
|
|
63176
|
+
var maxValue = getMaxValue();
|
|
63177
|
+
if (value <= maxValue) {
|
|
63178
|
+
return true;
|
|
63179
|
+
}
|
|
63180
|
+
return false;
|
|
63181
|
+
};
|
|
63182
|
+
var getMaxValue = function getMaxValue() {
|
|
63183
|
+
return props.maxValue && props.maxValue < MAX_VALUE.INT ? props.maxValue : MAX_VALUE.INT;
|
|
63184
|
+
};
|
|
63185
|
+
var getMinValue = function getMinValue() {
|
|
63186
|
+
var maxValue = getMaxValue();
|
|
63187
|
+
return props.minValue && props.minValue >= 0 && props.minValue <= maxValue ? props.minValue : 0;
|
|
63188
|
+
};
|
|
63189
|
+
var getPrecision = function getPrecision() {
|
|
63190
|
+
return Number.isInteger(props.precision) ? props.precision : 20;
|
|
63191
|
+
};
|
|
63192
|
+
var getFloatString = function getFloatString(value) {
|
|
63193
|
+
return value.replaceAll(CTRL.COMMA, CTRL.DOT);
|
|
63194
|
+
};
|
|
63170
63195
|
var getNewDisplayValue = function getNewDisplayValue(value) {
|
|
63171
|
-
if (
|
|
63196
|
+
if (isValidString(value)) {
|
|
63172
63197
|
if (props.number === TYPE$1.INT) {
|
|
63173
|
-
|
|
63198
|
+
var val = Math.trunc(+value);
|
|
63199
|
+
if (isValidNumber(val)) {
|
|
63200
|
+
return val.toString();
|
|
63201
|
+
}
|
|
63174
63202
|
}
|
|
63175
63203
|
if (props.number === TYPE$1.FLOAT) {
|
|
63176
|
-
|
|
63204
|
+
var _val = +getFloatString(getDisplayValue(+value));
|
|
63205
|
+
if (isValidNumber(_val)) {
|
|
63206
|
+
return _val.toString();
|
|
63207
|
+
}
|
|
63177
63208
|
}
|
|
63178
63209
|
}
|
|
63179
63210
|
return inputValue;
|
|
@@ -63184,15 +63215,26 @@ var NumberInput = React.forwardRef(function (props, ref) {
|
|
|
63184
63215
|
inputRef.current.setValue(value);
|
|
63185
63216
|
}
|
|
63186
63217
|
};
|
|
63218
|
+
var onBlur = function onBlur(e) {
|
|
63219
|
+
var minValue = getMinValue();
|
|
63220
|
+
var newVal = e.target.value === CTRL.EMPTY ? null : +e.target.value;
|
|
63221
|
+
if (inputValue !== CTRL.EMPTY && +inputValue < minValue) {
|
|
63222
|
+
updateInputValue(minValue.toString());
|
|
63223
|
+
newVal = minValue;
|
|
63224
|
+
}
|
|
63225
|
+
if (props.onBlur) {
|
|
63226
|
+
props.onBlur(e, newVal, props.name);
|
|
63227
|
+
}
|
|
63228
|
+
};
|
|
63187
63229
|
var onChange = function onChange(value, name) {
|
|
63188
|
-
var stringVal = value
|
|
63189
|
-
if (stringVal.indexOf(CTRL.DOT) === stringVal.length - 1 && stringVal.length > 1) {
|
|
63230
|
+
var stringVal = getFloatString(value);
|
|
63231
|
+
if (props.number === TYPE$1.FLOAT && stringVal.indexOf(CTRL.DOT) === stringVal.length - 1 && stringVal.length > 1) {
|
|
63190
63232
|
updateInputValue(stringVal);
|
|
63191
63233
|
} else {
|
|
63192
63234
|
var newDisplayValue = value === CTRL.EMPTY ? CTRL.EMPTY : getNewDisplayValue(stringVal);
|
|
63193
63235
|
updateInputValue(newDisplayValue);
|
|
63194
63236
|
if (props.onChange) {
|
|
63195
|
-
var numberVal = newDisplayValue === CTRL.EMPTY ? null : +newDisplayValue
|
|
63237
|
+
var numberVal = newDisplayValue === CTRL.EMPTY ? null : +getFloatString(newDisplayValue);
|
|
63196
63238
|
props.onChange(numberVal, name);
|
|
63197
63239
|
}
|
|
63198
63240
|
}
|
|
@@ -63200,7 +63242,8 @@ var NumberInput = React.forwardRef(function (props, ref) {
|
|
|
63200
63242
|
return React__default.createElement(Input, Object.assign({}, props, {
|
|
63201
63243
|
value: inputValue,
|
|
63202
63244
|
onChange: onChange,
|
|
63203
|
-
ref: inputRef
|
|
63245
|
+
ref: inputRef,
|
|
63246
|
+
onBlur: onBlur
|
|
63204
63247
|
}));
|
|
63205
63248
|
});
|
|
63206
63249
|
|
|
@@ -82310,11 +82353,11 @@ exports.LinkInput = LinkInput;
|
|
|
82310
82353
|
exports.List = List;
|
|
82311
82354
|
exports.Login = Login;
|
|
82312
82355
|
exports.LoginForm = LoginForm;
|
|
82356
|
+
exports.LoginKerberosForm = LoginKerberosForm;
|
|
82313
82357
|
exports.LookupPicker = LookupPicker;
|
|
82314
82358
|
exports.Main = Main;
|
|
82315
82359
|
exports.MessageInput = MessageInput;
|
|
82316
82360
|
exports.MicroFrontend = MicroFrontend;
|
|
82317
|
-
exports.NTLMAuthenticationForm = NTLMAuthenticationForm;
|
|
82318
82361
|
exports.NUMBER_INPUT = NumberInputConstants;
|
|
82319
82362
|
exports.NumberInput = NumberInput;
|
|
82320
82363
|
exports.Overlay = Overlay$2;
|