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.
Files changed (53) hide show
  1. package/dist/all.esm.js +31 -27
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/date-picker/src/date-picker.js +7 -4
  5. package/es/date-range-picker/src/date-range-picker.js +5 -2
  6. package/es/icon/style.css +1 -1
  7. package/es/icon-picker/src/icon-picker.js +17 -19
  8. package/es/icon-picker/style.css +3 -8
  9. package/es/icon-picker/style.min.css +1 -1
  10. package/es/style.css +1 -1
  11. package/es/style.min.css +1 -1
  12. package/es/ui/index.js +1 -1
  13. package/es/ui/src/log.js +1 -1
  14. package/es/vxe-icon-picker/style.css +3 -8
  15. package/es/vxe-icon-picker/style.min.css +1 -1
  16. package/lib/date-picker/src/date-picker.js +7 -4
  17. package/lib/date-picker/src/date-picker.min.js +1 -1
  18. package/lib/date-range-picker/src/date-range-picker.js +5 -2
  19. package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
  20. package/lib/icon/style/style.css +1 -1
  21. package/lib/icon/style/style.min.css +1 -1
  22. package/lib/icon-picker/src/icon-picker.js +41 -46
  23. package/lib/icon-picker/src/icon-picker.min.js +1 -1
  24. package/lib/icon-picker/style/style.css +3 -8
  25. package/lib/icon-picker/style/style.min.css +1 -1
  26. package/lib/index.umd.js +55 -54
  27. package/lib/index.umd.min.js +1 -1
  28. package/lib/style.css +1 -1
  29. package/lib/style.min.css +1 -1
  30. package/lib/ui/index.js +1 -1
  31. package/lib/ui/index.min.js +1 -1
  32. package/lib/ui/src/log.js +1 -1
  33. package/lib/ui/src/log.min.js +1 -1
  34. package/lib/vxe-icon-picker/style/style.css +3 -8
  35. package/lib/vxe-icon-picker/style/style.min.css +1 -1
  36. package/package.json +1 -1
  37. package/packages/date-picker/src/date-picker.ts +8 -4
  38. package/packages/date-range-picker/src/date-range-picker.ts +6 -2
  39. package/packages/icon-picker/src/icon-picker.ts +16 -18
  40. package/styles/components/icon-picker.scss +3 -8
  41. package/types/components/icon-picker.d.ts +7 -3
  42. /package/es/icon/{iconfont.1783607056967.ttf → iconfont.1783670404729.ttf} +0 -0
  43. /package/es/icon/{iconfont.1783607056967.woff → iconfont.1783670404729.woff} +0 -0
  44. /package/es/icon/{iconfont.1783607056967.woff2 → iconfont.1783670404729.woff2} +0 -0
  45. /package/es/{iconfont.1783607056967.ttf → iconfont.1783670404729.ttf} +0 -0
  46. /package/es/{iconfont.1783607056967.woff → iconfont.1783670404729.woff} +0 -0
  47. /package/es/{iconfont.1783607056967.woff2 → iconfont.1783670404729.woff2} +0 -0
  48. /package/lib/icon/style/{iconfont.1783607056967.ttf → iconfont.1783670404729.ttf} +0 -0
  49. /package/lib/icon/style/{iconfont.1783607056967.woff → iconfont.1783670404729.woff} +0 -0
  50. /package/lib/icon/style/{iconfont.1783607056967.woff2 → iconfont.1783670404729.woff2} +0 -0
  51. /package/lib/{iconfont.1783607056967.ttf → iconfont.1783670404729.ttf} +0 -0
  52. /package/lib/{iconfont.1783607056967.woff → iconfont.1783670404729.woff} +0 -0
  53. /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.3"}`;
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.3";
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
- emit('update:modelValue', timeNum);
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
- emit('update:modelValue', dateVal);
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
- emit('update:modelValue', value);
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
- emit('update:modelValue', value);
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
- emit('update:modelValue', value);
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
- emit('update:modelValue', value);
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
- iconGroups: []
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 computePanelStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
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.iconGroups = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().chunk(visibleList, chunkSize || 4);
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
- iconGroups
34064
+ iconList
34062
34065
  } = reactData;
34063
- if (!iconGroups.length) {
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
- }, iconGroups.map(list => {
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--list'
34073
- }, list.map(item => {
34074
- const {
34075
- iconRender
34076
- } = item;
34077
- const compConf = iconRender ? renderer.get(iconRender.name) : null;
34078
- const iconMethod = compConf ? compConf.renderIconPickerOptionIcon : null;
34079
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
34080
- class: ['vxe-ico-picker--item', {
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
- }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
34092
- class: 'vxe-ico-picker--item-icon'
34093
- }, iconMethod && iconRender ? vn_getSlotVNs(iconMethod(iconRender, {
34094
- $iconPicker: $xeIconPicker,
34095
- option: item
34096
- })) : [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
34097
- class: item.icon || ''
34098
- })]), showIconTitle ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
34099
- class: 'vxe-ico-picker--item-title'
34100
- }, `${item.title || ''}`) : renderEmptyElement($xeIconPicker)])]);
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 panelStyle = computePanelStyle.value;
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: panelStyle
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, {