vxe-pc-ui 3.17.1 → 3.17.2
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/es/icon/style.css +1 -1
- package/es/input/src/input.js +3 -2
- package/es/number-input/src/number-input.js +9 -2
- package/es/password-input/src/password-input.js +70 -26
- package/es/password-input/style.css +5 -0
- package/es/password-input/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-password-input/style.css +5 -0
- package/es/vxe-password-input/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +83 -36
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +3 -3
- package/lib/input/src/input.min.js +1 -1
- package/lib/number-input/src/number-input.js +9 -3
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/password-input/src/password-input.js +66 -26
- package/lib/password-input/src/password-input.min.js +1 -1
- package/lib/password-input/style/style.css +5 -0
- package/lib/password-input/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-password-input/style/style.css +5 -0
- package/lib/vxe-password-input/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/input/src/input.ts +3 -2
- package/packages/number-input/src/number-input.ts +13 -5
- package/packages/password-input/src/password-input.ts +73 -27
- package/styles/components/password-input.scss +4 -0
- package/types/components/password-input.d.ts +2 -0
- /package/es/icon/{iconfont.1786796103854.ttf → iconfont.1786868233929.ttf} +0 -0
- /package/es/icon/{iconfont.1786796103854.woff → iconfont.1786868233929.woff} +0 -0
- /package/es/icon/{iconfont.1786796103854.woff2 → iconfont.1786868233929.woff2} +0 -0
- /package/es/{iconfont.1786796103854.ttf → iconfont.1786868233929.ttf} +0 -0
- /package/es/{iconfont.1786796103854.woff → iconfont.1786868233929.woff} +0 -0
- /package/es/{iconfont.1786796103854.woff2 → iconfont.1786868233929.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1786796103854.ttf → iconfont.1786868233929.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1786796103854.woff → iconfont.1786868233929.woff} +0 -0
- /package/lib/icon/style/{iconfont.1786796103854.woff2 → iconfont.1786868233929.woff2} +0 -0
- /package/lib/{iconfont.1786796103854.ttf → iconfont.1786868233929.ttf} +0 -0
- /package/lib/{iconfont.1786796103854.woff → iconfont.1786868233929.woff} +0 -0
- /package/lib/{iconfont.1786796103854.woff2 → iconfont.1786868233929.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -11680,7 +11680,7 @@ var es_regexp_exec = __webpack_require__(7495);
|
|
|
11680
11680
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
|
11681
11681
|
var es_string_match = __webpack_require__(1761);
|
|
11682
11682
|
;// ./node_modules/@vxe-ui/core/es/src/core.js
|
|
11683
|
-
var coreVersion = "3.4.
|
|
11683
|
+
var coreVersion = "3.4.20";
|
|
11684
11684
|
var VxeCore = {
|
|
11685
11685
|
coreVersion: coreVersion,
|
|
11686
11686
|
uiVersion: '',
|
|
@@ -12057,6 +12057,7 @@ var GLOBAL_EVENT_KEYS = {
|
|
|
12057
12057
|
PAGE_DOWN: 'PageDown',
|
|
12058
12058
|
HOME: 'Home',
|
|
12059
12059
|
END: 'End',
|
|
12060
|
+
PROCESS: 'Process',
|
|
12060
12061
|
A: 'A',
|
|
12061
12062
|
X: 'X',
|
|
12062
12063
|
C: 'C',
|
|
@@ -12440,7 +12441,7 @@ function createLog(type, name) {
|
|
|
12440
12441
|
return msg;
|
|
12441
12442
|
};
|
|
12442
12443
|
}
|
|
12443
|
-
var version = "3.4.
|
|
12444
|
+
var version = "3.4.20";
|
|
12444
12445
|
var log = {
|
|
12445
12446
|
create: createLog,
|
|
12446
12447
|
warn: createLog('warn', "v".concat(version)),
|
|
@@ -13260,7 +13261,7 @@ var es_array_join = __webpack_require__(8598);
|
|
|
13260
13261
|
|
|
13261
13262
|
|
|
13262
13263
|
var log_log = VxeUI.log;
|
|
13263
|
-
var uiVersion = "ui v".concat("3.17.
|
|
13264
|
+
var uiVersion = "ui v".concat("3.17.2");
|
|
13264
13265
|
function createComponentLog(name) {
|
|
13265
13266
|
var tableVersion = VxeUI.tableVersion ? "table v".concat(VxeUI.tableVersion) : '';
|
|
13266
13267
|
var ganttVersion = VxeUI.ganttVersion ? "gantt v".concat(VxeUI.ganttVersion) : '';
|
|
@@ -13280,7 +13281,7 @@ var errLog = log_log.create('error', uiVersion);
|
|
|
13280
13281
|
|
|
13281
13282
|
|
|
13282
13283
|
|
|
13283
|
-
var ui_version = "3.17.
|
|
13284
|
+
var ui_version = "3.17.2";
|
|
13284
13285
|
VxeUI.uiVersion = ui_version;
|
|
13285
13286
|
VxeUI.dynamicApp = dynamicApp;
|
|
13286
13287
|
function config(options) {
|
|
@@ -24798,9 +24799,9 @@ var input_createComponentLog = createComponentLog('input'),
|
|
|
24798
24799
|
var props = $xeInput;
|
|
24799
24800
|
var type = props.type,
|
|
24800
24801
|
editable = props.editable,
|
|
24801
|
-
multiple = props.multiple
|
|
24802
|
-
|
|
24803
|
-
return
|
|
24802
|
+
multiple = props.multiple;
|
|
24803
|
+
var formReadonly = $xeInput.computeFormReadonly;
|
|
24804
|
+
return formReadonly || multiple || !editable || type === 'week' || type === 'quarter';
|
|
24804
24805
|
},
|
|
24805
24806
|
computeInputType: function computeInputType() {
|
|
24806
24807
|
var $xeInput = this;
|
|
@@ -31668,6 +31669,12 @@ var handleNumberString = function handleNumberString(val) {
|
|
|
31668
31669
|
return numValue >= external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(max);
|
|
31669
31670
|
}
|
|
31670
31671
|
return false;
|
|
31672
|
+
},
|
|
31673
|
+
computeInpClassNamevalue: function computeInpClassNamevalue() {
|
|
31674
|
+
var $xeNumberInput = this;
|
|
31675
|
+
var props = $xeNumberInput;
|
|
31676
|
+
var inputClassName = props.inputClassName;
|
|
31677
|
+
return 'vxe-number-input--input' + (inputClassName ? ' ' + inputClassName : '');
|
|
31671
31678
|
}
|
|
31672
31679
|
}),
|
|
31673
31680
|
methods: {
|
|
@@ -32331,8 +32338,7 @@ var handleNumberString = function handleNumberString(val) {
|
|
|
32331
32338
|
var $xeNumberInput = this;
|
|
32332
32339
|
var props = $xeNumberInput;
|
|
32333
32340
|
var reactData = $xeNumberInput.reactData;
|
|
32334
|
-
var
|
|
32335
|
-
type = props.type,
|
|
32341
|
+
var type = props.type,
|
|
32336
32342
|
name = props.name,
|
|
32337
32343
|
autocomplete = props.autocomplete,
|
|
32338
32344
|
autoComplete = props.autoComplete;
|
|
@@ -32343,6 +32349,7 @@ var handleNumberString = function handleNumberString(val) {
|
|
|
32343
32349
|
var inputReadonly = $xeNumberInput.computeInputReadonly;
|
|
32344
32350
|
var inpMaxLength = $xeNumberInput.computeInpMaxLength;
|
|
32345
32351
|
var inpPlaceholder = $xeNumberInput.computeInpPlaceholder;
|
|
32352
|
+
var inpClassName = $xeNumberInput.computeInpClassNamevalue;
|
|
32346
32353
|
return h('div', {
|
|
32347
32354
|
key: 'ni',
|
|
32348
32355
|
class: 'vxe-number-input--input-wrapper'
|
|
@@ -32350,7 +32357,7 @@ var handleNumberString = function handleNumberString(val) {
|
|
|
32350
32357
|
class: 'vxe-number-input--input-inner'
|
|
32351
32358
|
}, [h('input', {
|
|
32352
32359
|
ref: 'refInputTarget',
|
|
32353
|
-
class:
|
|
32360
|
+
class: inpClassName,
|
|
32354
32361
|
domProps: {
|
|
32355
32362
|
value: !isFocus && type === 'amount' ? numLabel : inputValue
|
|
32356
32363
|
},
|
|
@@ -53975,6 +53982,10 @@ var Pager = VxePager;
|
|
|
53975
53982
|
return getConfig().passwordInput.controls;
|
|
53976
53983
|
}
|
|
53977
53984
|
},
|
|
53985
|
+
editable: {
|
|
53986
|
+
type: Boolean,
|
|
53987
|
+
default: true
|
|
53988
|
+
},
|
|
53978
53989
|
// 已废弃
|
|
53979
53990
|
autocomplete: String
|
|
53980
53991
|
},
|
|
@@ -54005,12 +54016,6 @@ var Pager = VxePager;
|
|
|
54005
54016
|
var props = $xePasswordInput;
|
|
54006
54017
|
return props.clearable;
|
|
54007
54018
|
},
|
|
54008
|
-
computeInpReadonly: function computeInpReadonly() {
|
|
54009
|
-
var $xePasswordInput = this;
|
|
54010
|
-
var props = $xePasswordInput;
|
|
54011
|
-
var readonly = props.readonly;
|
|
54012
|
-
return readonly;
|
|
54013
|
-
},
|
|
54014
54019
|
computeInpPlaceholder: function computeInpPlaceholder() {
|
|
54015
54020
|
var $xePasswordInput = this;
|
|
54016
54021
|
var props = $xePasswordInput;
|
|
@@ -54024,6 +54029,38 @@ var Pager = VxePager;
|
|
|
54024
54029
|
}
|
|
54025
54030
|
return getI18n('vxe.base.pleaseInput');
|
|
54026
54031
|
},
|
|
54032
|
+
computeFormReadonly: function computeFormReadonly() {
|
|
54033
|
+
var $xePasswordInput = this;
|
|
54034
|
+
var props = $xePasswordInput;
|
|
54035
|
+
var $xeForm = $xePasswordInput.$xeForm;
|
|
54036
|
+
if (getConfig().inputReadonly === 'obsolete') {
|
|
54037
|
+
if ($xeForm) {
|
|
54038
|
+
return $xeForm.readonly;
|
|
54039
|
+
}
|
|
54040
|
+
return false;
|
|
54041
|
+
}
|
|
54042
|
+
var readonly = props.readonly;
|
|
54043
|
+
if (readonly === null) {
|
|
54044
|
+
if ($xeForm) {
|
|
54045
|
+
return $xeForm.readonly;
|
|
54046
|
+
}
|
|
54047
|
+
return false;
|
|
54048
|
+
}
|
|
54049
|
+
return readonly;
|
|
54050
|
+
},
|
|
54051
|
+
computeIsDisabled: function computeIsDisabled() {
|
|
54052
|
+
var $xePasswordInput = this;
|
|
54053
|
+
var props = $xePasswordInput;
|
|
54054
|
+
var $xeForm = $xePasswordInput.$xeForm;
|
|
54055
|
+
var disabled = props.disabled;
|
|
54056
|
+
if (disabled === null) {
|
|
54057
|
+
if ($xeForm) {
|
|
54058
|
+
return $xeForm.disabled;
|
|
54059
|
+
}
|
|
54060
|
+
return false;
|
|
54061
|
+
}
|
|
54062
|
+
return disabled;
|
|
54063
|
+
},
|
|
54027
54064
|
computeInputType: function computeInputType() {
|
|
54028
54065
|
var $xePasswordInput = this;
|
|
54029
54066
|
var reactData = $xePasswordInput.reactData;
|
|
@@ -54038,6 +54075,13 @@ var Pager = VxePager;
|
|
|
54038
54075
|
var props = $xePasswordInput;
|
|
54039
54076
|
var immediate = props.immediate;
|
|
54040
54077
|
return immediate;
|
|
54078
|
+
},
|
|
54079
|
+
computeInputReadonly: function computeInputReadonly() {
|
|
54080
|
+
var $xePasswordInput = this;
|
|
54081
|
+
var props = $xePasswordInput;
|
|
54082
|
+
var editable = props.editable;
|
|
54083
|
+
var formReadonly = $xePasswordInput.computeFormReadonly;
|
|
54084
|
+
return formReadonly || !editable;
|
|
54041
54085
|
}
|
|
54042
54086
|
}),
|
|
54043
54087
|
methods: {
|
|
@@ -54169,12 +54213,11 @@ var Pager = VxePager;
|
|
|
54169
54213
|
},
|
|
54170
54214
|
passwordToggleEvent: function passwordToggleEvent(evnt) {
|
|
54171
54215
|
var $xePasswordInput = this;
|
|
54172
|
-
var props = $xePasswordInput;
|
|
54173
54216
|
var reactData = $xePasswordInput.reactData;
|
|
54174
|
-
var readonly = props.readonly,
|
|
54175
|
-
disabled = props.disabled;
|
|
54176
54217
|
var showPwd = reactData.showPwd;
|
|
54177
|
-
|
|
54218
|
+
var isDisabled = $xePasswordInput.computeIsDisabled;
|
|
54219
|
+
var formReadonly = $xePasswordInput.computeFormReadonly;
|
|
54220
|
+
if (!isDisabled && !formReadonly) {
|
|
54178
54221
|
reactData.showPwd = !showPwd;
|
|
54179
54222
|
}
|
|
54180
54223
|
$xePasswordInput.dispatchEvent('toggle-visible', {
|
|
@@ -54198,10 +54241,9 @@ var Pager = VxePager;
|
|
|
54198
54241
|
},
|
|
54199
54242
|
clickSuffixEvent: function clickSuffixEvent(evnt) {
|
|
54200
54243
|
var $xePasswordInput = this;
|
|
54201
|
-
var props = $xePasswordInput;
|
|
54202
54244
|
var reactData = $xePasswordInput.reactData;
|
|
54203
|
-
var
|
|
54204
|
-
if (!
|
|
54245
|
+
var isDisabled = $xePasswordInput.computeIsDisabled;
|
|
54246
|
+
if (!isDisabled) {
|
|
54205
54247
|
var inputValue = reactData.inputValue;
|
|
54206
54248
|
$xePasswordInput.dispatchEvent('suffix-click', {
|
|
54207
54249
|
value: inputValue
|
|
@@ -54210,10 +54252,9 @@ var Pager = VxePager;
|
|
|
54210
54252
|
},
|
|
54211
54253
|
clickPrefixEvent: function clickPrefixEvent(evnt) {
|
|
54212
54254
|
var $xePasswordInput = this;
|
|
54213
|
-
var props = $xePasswordInput;
|
|
54214
54255
|
var reactData = $xePasswordInput.reactData;
|
|
54215
|
-
var
|
|
54216
|
-
if (!
|
|
54256
|
+
var isDisabled = $xePasswordInput.computeIsDisabled;
|
|
54257
|
+
if (!isDisabled) {
|
|
54217
54258
|
var inputValue = reactData.inputValue;
|
|
54218
54259
|
$xePasswordInput.dispatchEvent('prefix-click', {
|
|
54219
54260
|
value: inputValue
|
|
@@ -54258,15 +54299,15 @@ var Pager = VxePager;
|
|
|
54258
54299
|
var props = $xePasswordInput;
|
|
54259
54300
|
var slots = $xePasswordInput.$scopedSlots;
|
|
54260
54301
|
var reactData = $xePasswordInput.reactData;
|
|
54261
|
-
var
|
|
54262
|
-
suffixIcon = props.suffixIcon,
|
|
54302
|
+
var suffixIcon = props.suffixIcon,
|
|
54263
54303
|
controls = props.controls;
|
|
54264
54304
|
var inputValue = reactData.inputValue;
|
|
54265
|
-
var
|
|
54305
|
+
var isDisabled = $xePasswordInput.computeIsDisabled;
|
|
54266
54306
|
var isClearable = $xePasswordInput.computeIsClearable;
|
|
54307
|
+
var suffixSlot = slots.suffix;
|
|
54267
54308
|
return isClearable || controls || suffixSlot || suffixIcon ? h('div', {
|
|
54268
54309
|
class: ['vxe-password-input--suffix', {
|
|
54269
|
-
'is--clear': isClearable && !
|
|
54310
|
+
'is--clear': isClearable && !isDisabled && !(inputValue === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(inputValue))
|
|
54270
54311
|
}]
|
|
54271
54312
|
}, [isClearable ? h('div', {
|
|
54272
54313
|
class: 'vxe-password-input--clear-icon',
|
|
@@ -54291,23 +54332,29 @@ var Pager = VxePager;
|
|
|
54291
54332
|
var className = props.className,
|
|
54292
54333
|
inputClassName = props.inputClassName,
|
|
54293
54334
|
name = props.name,
|
|
54294
|
-
disabled = props.disabled,
|
|
54295
|
-
readonly = props.readonly,
|
|
54296
54335
|
autocomplete = props.autocomplete,
|
|
54297
54336
|
autoComplete = props.autoComplete,
|
|
54298
54337
|
maxLength = props.maxLength;
|
|
54299
54338
|
var inputValue = reactData.inputValue,
|
|
54300
54339
|
isActivated = reactData.isActivated;
|
|
54340
|
+
var isDisabled = $xePasswordInput.computeIsDisabled;
|
|
54341
|
+
var formReadonly = $xePasswordInput.computeFormReadonly;
|
|
54342
|
+
if (formReadonly) {
|
|
54343
|
+
return h('div', {
|
|
54344
|
+
ref: 'refElem',
|
|
54345
|
+
class: ['vxe-password-input--readonly', className]
|
|
54346
|
+
}, getText(inputValue));
|
|
54347
|
+
}
|
|
54301
54348
|
var vSize = $xePasswordInput.computeSize;
|
|
54302
|
-
var inpReadonly = $xePasswordInput.computeInpReadonly;
|
|
54303
54349
|
var inputType = $xePasswordInput.computeInputType;
|
|
54304
54350
|
var inpPlaceholder = $xePasswordInput.computeInpPlaceholder;
|
|
54305
54351
|
var isClearable = $xePasswordInput.computeIsClearable;
|
|
54352
|
+
var inputReadonly = $xePasswordInput.computeInputReadonly;
|
|
54306
54353
|
var prefix = $xePasswordInput.renderPrefixIcon(h);
|
|
54307
54354
|
var suffix = $xePasswordInput.renderSuffixIcon(h);
|
|
54308
54355
|
return h('div', {
|
|
54309
54356
|
ref: 'refElem',
|
|
54310
|
-
class: ['vxe-password-input', className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--prefix', !!prefix), 'is--suffix', !!suffix), 'is--readonly',
|
|
54357
|
+
class: ['vxe-password-input', className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--prefix', !!prefix), 'is--suffix', !!suffix), 'is--readonly', formReadonly), 'is--disabled', isDisabled), 'is--active', isActivated), 'show--clear', isClearable && !isDisabled && !(inputValue === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(inputValue)))],
|
|
54311
54358
|
attrs: {
|
|
54312
54359
|
spellcheck: false
|
|
54313
54360
|
}
|
|
@@ -54323,8 +54370,8 @@ var Pager = VxePager;
|
|
|
54323
54370
|
name: name,
|
|
54324
54371
|
type: inputType,
|
|
54325
54372
|
placeholder: inpPlaceholder,
|
|
54326
|
-
readonly:
|
|
54327
|
-
disabled:
|
|
54373
|
+
readonly: inputReadonly,
|
|
54374
|
+
disabled: isDisabled,
|
|
54328
54375
|
autocomplete: autocomplete || autoComplete,
|
|
54329
54376
|
maxlength: maxLength
|
|
54330
54377
|
},
|