vxe-pc-ui 4.16.3 → 4.16.5
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/dist/all.esm.js +31 -27
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/date-picker/src/date-picker.js +7 -4
- package/es/date-range-picker/src/date-range-picker.js +5 -2
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +17 -19
- package/es/icon-picker/style.css +3 -8
- package/es/icon-picker/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-icon-picker/style.css +3 -8
- package/es/vxe-icon-picker/style.min.css +1 -1
- package/lib/date-picker/src/date-picker.js +7 -4
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +5 -2
- package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/icon-picker/src/icon-picker.js +41 -46
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/icon-picker/style/style.css +3 -8
- package/lib/icon-picker/style/style.min.css +1 -1
- package/lib/index.umd.js +55 -54
- package/lib/index.umd.min.js +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-icon-picker/style/style.css +3 -8
- package/lib/vxe-icon-picker/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/date-picker/src/date-picker.ts +8 -4
- package/packages/date-range-picker/src/date-range-picker.ts +6 -2
- package/packages/icon-picker/src/icon-picker.ts +16 -18
- package/styles/components/icon-picker.scss +3 -8
- package/types/components/icon-picker.d.ts +7 -3
- /package/es/icon/{iconfont.1783607056967.ttf → iconfont.1783670404729.ttf} +0 -0
- /package/es/icon/{iconfont.1783607056967.woff → iconfont.1783670404729.woff} +0 -0
- /package/es/icon/{iconfont.1783607056967.woff2 → iconfont.1783670404729.woff2} +0 -0
- /package/es/{iconfont.1783607056967.ttf → iconfont.1783670404729.ttf} +0 -0
- /package/es/{iconfont.1783607056967.woff → iconfont.1783670404729.woff} +0 -0
- /package/es/{iconfont.1783607056967.woff2 → iconfont.1783670404729.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1783607056967.ttf → iconfont.1783670404729.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1783607056967.woff → iconfont.1783670404729.woff} +0 -0
- /package/lib/icon/style/{iconfont.1783607056967.woff2 → iconfont.1783670404729.woff2} +0 -0
- /package/lib/{iconfont.1783607056967.ttf → iconfont.1783670404729.ttf} +0 -0
- /package/lib/{iconfont.1783607056967.woff → iconfont.1783670404729.woff} +0 -0
- /package/lib/{iconfont.1783607056967.woff2 → iconfont.1783670404729.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -4657,7 +4657,7 @@ function checkDynamic() {
|
|
|
4657
4657
|
const {
|
|
4658
4658
|
log: log_log
|
|
4659
4659
|
} = VxeUI;
|
|
4660
|
-
const uiVersion = `ui v${"4.16.
|
|
4660
|
+
const uiVersion = `ui v${"4.16.5"}`;
|
|
4661
4661
|
function createComponentLog(name) {
|
|
4662
4662
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
4663
4663
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -4675,7 +4675,7 @@ const errLog = log_log.create('error', uiVersion);
|
|
|
4675
4675
|
|
|
4676
4676
|
|
|
4677
4677
|
|
|
4678
|
-
const ui_version = "4.16.
|
|
4678
|
+
const ui_version = "4.16.5";
|
|
4679
4679
|
VxeUI.uiVersion = ui_version;
|
|
4680
4680
|
VxeUI.dynamicApp = dynamicApp;
|
|
4681
4681
|
function config(options) {
|
|
@@ -26803,7 +26803,7 @@ function date_picker_createInternalData() {
|
|
|
26803
26803
|
valueFormat: dateValueFormat
|
|
26804
26804
|
});
|
|
26805
26805
|
const timeNum = dateVal ? dateVal.getTime() : null;
|
|
26806
|
-
|
|
26806
|
+
emitModel(timeNum);
|
|
26807
26807
|
if (modelValue !== timeNum) {
|
|
26808
26808
|
dispatchEvent('change', {
|
|
26809
26809
|
value: timeNum
|
|
@@ -26817,7 +26817,7 @@ function date_picker_createInternalData() {
|
|
|
26817
26817
|
const dateVal = parseDateValue(value, type, {
|
|
26818
26818
|
valueFormat: dateValueFormat
|
|
26819
26819
|
});
|
|
26820
|
-
|
|
26820
|
+
emitModel(dateVal);
|
|
26821
26821
|
if (modelValue && dateVal ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringDate(modelValue).getTime() !== dateVal.getTime() : modelValue !== dateVal) {
|
|
26822
26822
|
dispatchEvent('change', {
|
|
26823
26823
|
value: dateVal
|
|
@@ -26828,7 +26828,7 @@ function date_picker_createInternalData() {
|
|
|
26828
26828
|
}
|
|
26829
26829
|
}
|
|
26830
26830
|
} else {
|
|
26831
|
-
|
|
26831
|
+
emitModel(value);
|
|
26832
26832
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(modelValue) !== value) {
|
|
26833
26833
|
dispatchEvent('change', {
|
|
26834
26834
|
value
|
|
@@ -27770,11 +27770,14 @@ function date_picker_createInternalData() {
|
|
|
27770
27770
|
$datePicker: $xeDatePicker
|
|
27771
27771
|
}, params));
|
|
27772
27772
|
};
|
|
27773
|
+
const emitModel = value => {
|
|
27774
|
+
emit('update:modelValue', value);
|
|
27775
|
+
};
|
|
27773
27776
|
const datePickerMethods = {
|
|
27774
27777
|
dispatchEvent,
|
|
27775
27778
|
setModelValue(value) {
|
|
27776
27779
|
reactData.inputValue = value;
|
|
27777
|
-
|
|
27780
|
+
emitModel(value);
|
|
27778
27781
|
},
|
|
27779
27782
|
setModelValueByEvent(evnt, value) {
|
|
27780
27783
|
handleChange(value || '', evnt);
|
|
@@ -28666,7 +28669,7 @@ function date_range_picker_createInternalData() {
|
|
|
28666
28669
|
reactData.selectEdValue = endRest;
|
|
28667
28670
|
const value = getRangeValue(startRest, endRest);
|
|
28668
28671
|
const isFinish = startRest && endRest || !startRest && !endRest;
|
|
28669
|
-
|
|
28672
|
+
emitModel(value);
|
|
28670
28673
|
emit('update:startValue', startRest || '');
|
|
28671
28674
|
emit('update:endValue', endRest || '');
|
|
28672
28675
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(modelValue) !== value) {
|
|
@@ -29368,13 +29371,16 @@ function date_range_picker_createInternalData() {
|
|
|
29368
29371
|
$dateRangePicker: $xeDateRangePicker
|
|
29369
29372
|
}, params));
|
|
29370
29373
|
};
|
|
29374
|
+
const emitModel = value => {
|
|
29375
|
+
emit('update:modelValue', value);
|
|
29376
|
+
};
|
|
29371
29377
|
dateRangePickerMethods = {
|
|
29372
29378
|
dispatchEvent,
|
|
29373
29379
|
setModelValue(startValue, endValue) {
|
|
29374
29380
|
reactData.selectStValue = startValue || '';
|
|
29375
29381
|
reactData.selectEdValue = endValue || '';
|
|
29376
29382
|
const value = getRangeValue(startValue, endValue);
|
|
29377
|
-
|
|
29383
|
+
emitModel(value);
|
|
29378
29384
|
},
|
|
29379
29385
|
setModelValueByEvent(evnt, startValue, endValue) {
|
|
29380
29386
|
handleChange(startValue || '', endValue || '', evnt);
|
|
@@ -33543,7 +33549,7 @@ function icon_picker_createReactData() {
|
|
|
33543
33549
|
isAniVisible: false,
|
|
33544
33550
|
isActivated: false,
|
|
33545
33551
|
searchValue: '',
|
|
33546
|
-
|
|
33552
|
+
iconList: []
|
|
33547
33553
|
};
|
|
33548
33554
|
}
|
|
33549
33555
|
function icon_picker_createInternalData() {
|
|
@@ -33680,15 +33686,16 @@ function icon_picker_createInternalData() {
|
|
|
33680
33686
|
}
|
|
33681
33687
|
return getI18n('vxe.base.pleaseSelect');
|
|
33682
33688
|
});
|
|
33683
|
-
const
|
|
33689
|
+
const computeWrapperStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
33684
33690
|
const popupOpts = computePopupOpts.value;
|
|
33685
33691
|
const {
|
|
33686
33692
|
chunkSize,
|
|
33687
33693
|
height,
|
|
33694
|
+
chunkWidth,
|
|
33688
33695
|
maxHeight
|
|
33689
33696
|
} = popupOpts;
|
|
33690
33697
|
const stys = {
|
|
33691
|
-
'--vxe-ui-icon-picker-item-width': `${100 / (chunkSize || 4)}%`
|
|
33698
|
+
'--vxe-ui-icon-picker-item-width': chunkWidth ? toCssUnit(chunkWidth) : `${100 / (chunkSize || 4)}%`
|
|
33692
33699
|
};
|
|
33693
33700
|
if (height) {
|
|
33694
33701
|
stys['--vxe-ui-icon-picker-panel-height'] = toCssUnit(height);
|
|
@@ -33758,12 +33765,12 @@ function icon_picker_createInternalData() {
|
|
|
33758
33765
|
teleportTo: btnTransfer
|
|
33759
33766
|
});
|
|
33760
33767
|
const panelStyle = Object.assign(ppObj.style, {
|
|
33761
|
-
zIndex: panelIndex
|
|
33768
|
+
zIndex: panelIndex,
|
|
33769
|
+
minWidth: undefined
|
|
33762
33770
|
});
|
|
33763
33771
|
if (width) {
|
|
33764
33772
|
Object.assign(panelStyle, {
|
|
33765
|
-
width: toCssUnit(width)
|
|
33766
|
-
minWidth: undefined
|
|
33773
|
+
width: toCssUnit(width)
|
|
33767
33774
|
});
|
|
33768
33775
|
}
|
|
33769
33776
|
reactData.panelStyle = panelStyle;
|
|
@@ -33823,10 +33830,6 @@ function icon_picker_createInternalData() {
|
|
|
33823
33830
|
const {
|
|
33824
33831
|
filterMethod
|
|
33825
33832
|
} = filterOpts;
|
|
33826
|
-
const popupOpts = computePopupOpts.value;
|
|
33827
|
-
const {
|
|
33828
|
-
chunkSize
|
|
33829
|
-
} = popupOpts;
|
|
33830
33833
|
const iconList = computeIconList.value;
|
|
33831
33834
|
let visibleList = iconList;
|
|
33832
33835
|
if (searchValue) {
|
|
@@ -33843,7 +33846,7 @@ function icon_picker_createInternalData() {
|
|
|
33843
33846
|
return item.title && `${item.title}`.toLowerCase().indexOf(searchTxt) > -1 || item.icon && `${item.icon}`.indexOf(searchTxt) > -1;
|
|
33844
33847
|
});
|
|
33845
33848
|
}
|
|
33846
|
-
reactData.
|
|
33849
|
+
reactData.iconList = visibleList;
|
|
33847
33850
|
};
|
|
33848
33851
|
const changeEvent = (evnt, selectValue) => {
|
|
33849
33852
|
reactData.selectIcon = selectValue;
|
|
@@ -34058,48 +34061,46 @@ function icon_picker_createInternalData() {
|
|
|
34058
34061
|
} = props;
|
|
34059
34062
|
const {
|
|
34060
34063
|
selectIcon,
|
|
34061
|
-
|
|
34064
|
+
iconList
|
|
34062
34065
|
} = reactData;
|
|
34063
|
-
if (!
|
|
34066
|
+
if (!iconList.length) {
|
|
34064
34067
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34065
34068
|
class: 'vxe-ico-picker--empty-placeholder'
|
|
34066
34069
|
}, getI18n('vxe.iconPicker.emptyText'));
|
|
34067
34070
|
}
|
|
34068
34071
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34069
34072
|
class: 'vxe-ico-picker--list-wrapper'
|
|
34070
|
-
},
|
|
34073
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34074
|
+
class: 'vxe-ico-picker--list'
|
|
34075
|
+
}, iconList.map(item => {
|
|
34076
|
+
const {
|
|
34077
|
+
iconRender
|
|
34078
|
+
} = item;
|
|
34079
|
+
const compConf = iconRender ? renderer.get(iconRender.name) : null;
|
|
34080
|
+
const iconMethod = compConf ? compConf.renderIconPickerOptionIcon : null;
|
|
34071
34081
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34072
|
-
class: 'vxe-ico-picker--
|
|
34073
|
-
|
|
34074
|
-
|
|
34075
|
-
|
|
34076
|
-
|
|
34077
|
-
|
|
34078
|
-
|
|
34079
|
-
|
|
34080
|
-
|
|
34081
|
-
'is--selected': selectIcon === item.icon
|
|
34082
|
-
}]
|
|
34083
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34084
|
-
class: 'vxe-ico-picker--item-inner',
|
|
34085
|
-
onClick(evnt) {
|
|
34086
|
-
const isDisabled = computeIsDisabled.value;
|
|
34087
|
-
if (!isDisabled) {
|
|
34088
|
-
handleClickIconEvent(evnt, item);
|
|
34089
|
-
}
|
|
34082
|
+
class: ['vxe-ico-picker--item', {
|
|
34083
|
+
'is--selected': selectIcon === item.icon
|
|
34084
|
+
}]
|
|
34085
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34086
|
+
class: 'vxe-ico-picker--item-inner',
|
|
34087
|
+
onClick(evnt) {
|
|
34088
|
+
const isDisabled = computeIsDisabled.value;
|
|
34089
|
+
if (!isDisabled) {
|
|
34090
|
+
handleClickIconEvent(evnt, item);
|
|
34090
34091
|
}
|
|
34091
|
-
}
|
|
34092
|
-
|
|
34093
|
-
|
|
34094
|
-
|
|
34095
|
-
|
|
34096
|
-
|
|
34097
|
-
|
|
34098
|
-
|
|
34099
|
-
|
|
34100
|
-
|
|
34101
|
-
}));
|
|
34102
|
-
}));
|
|
34092
|
+
}
|
|
34093
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34094
|
+
class: 'vxe-ico-picker--item-icon'
|
|
34095
|
+
}, iconMethod && iconRender ? vn_getSlotVNs(iconMethod(iconRender, {
|
|
34096
|
+
$iconPicker: $xeIconPicker,
|
|
34097
|
+
option: item
|
|
34098
|
+
})) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
34099
|
+
class: item.icon || ''
|
|
34100
|
+
})]), showIconTitle ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34101
|
+
class: 'vxe-ico-picker--item-title'
|
|
34102
|
+
}, `${item.title || ''}`) : renderEmptyElement($xeIconPicker)])]);
|
|
34103
|
+
}))]);
|
|
34103
34104
|
};
|
|
34104
34105
|
const renderIconView = () => {
|
|
34105
34106
|
const {
|
|
@@ -34147,7 +34148,7 @@ function icon_picker_createInternalData() {
|
|
|
34147
34148
|
const btnTransfer = computeBtnTransfer.value;
|
|
34148
34149
|
const formReadonly = computeFormReadonly.value;
|
|
34149
34150
|
const inpPlaceholder = computeInpPlaceholder.value;
|
|
34150
|
-
const
|
|
34151
|
+
const wrapperStyle = computeWrapperStyle.value;
|
|
34151
34152
|
const popupOpts = computePopupOpts.value;
|
|
34152
34153
|
const ppClassName = popupOpts.className || props.popupClassName;
|
|
34153
34154
|
if (formReadonly) {
|
|
@@ -34207,7 +34208,7 @@ function icon_picker_createInternalData() {
|
|
|
34207
34208
|
style: reactData.panelStyle
|
|
34208
34209
|
}, [initialized && (visiblePanel || isAniVisible) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34209
34210
|
class: 'vxe-ico-picker--panel-wrapper',
|
|
34210
|
-
style:
|
|
34211
|
+
style: wrapperStyle
|
|
34211
34212
|
}, [filterable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
34212
34213
|
class: 'vxe-ico-picker--panel-search'
|
|
34213
34214
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(input, {
|