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/dist/all.esm.js CHANGED
@@ -81,7 +81,7 @@ function checkDynamic() {
81
81
  }
82
82
 
83
83
  const { log } = VxeUI;
84
- const uiVersion = `ui v${"4.16.3"}`;
84
+ const uiVersion = `ui v${"4.16.5"}`;
85
85
  function createComponentLog(name) {
86
86
  const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
87
87
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -95,7 +95,7 @@ function createComponentLog(name) {
95
95
  const warnLog$h = log.create('warn', uiVersion);
96
96
  log.create('error', uiVersion);
97
97
 
98
- const version = "4.16.3";
98
+ const version = "4.16.5";
99
99
  VxeUI.uiVersion = version;
100
100
  VxeUI.dynamicApp = dynamicApp;
101
101
  function config(options) {
@@ -20187,7 +20187,7 @@ var VxeDatePickerComponent = defineVxeComponent({
20187
20187
  if (hasTimestampValueType(valueFormat)) {
20188
20188
  const dateVal = parseDateValue(value, type, { valueFormat: dateValueFormat });
20189
20189
  const timeNum = dateVal ? dateVal.getTime() : null;
20190
- emit('update:modelValue', timeNum);
20190
+ emitModel(timeNum);
20191
20191
  if (modelValue !== timeNum) {
20192
20192
  dispatchEvent('change', { value: timeNum }, evnt);
20193
20193
  // 自动更新校验状态
@@ -20198,7 +20198,7 @@ var VxeDatePickerComponent = defineVxeComponent({
20198
20198
  }
20199
20199
  else if (hasDateValueType(valueFormat)) {
20200
20200
  const dateVal = parseDateValue(value, type, { valueFormat: dateValueFormat });
20201
- emit('update:modelValue', dateVal);
20201
+ emitModel(dateVal);
20202
20202
  if (modelValue && dateVal ? XEUtils.toStringDate(modelValue).getTime() !== dateVal.getTime() : modelValue !== dateVal) {
20203
20203
  dispatchEvent('change', { value: dateVal }, evnt);
20204
20204
  // 自动更新校验状态
@@ -20208,7 +20208,7 @@ var VxeDatePickerComponent = defineVxeComponent({
20208
20208
  }
20209
20209
  }
20210
20210
  else {
20211
- emit('update:modelValue', value);
20211
+ emitModel(value);
20212
20212
  if (XEUtils.toValueString(modelValue) !== value) {
20213
20213
  dispatchEvent('change', { value }, evnt);
20214
20214
  // 自动更新校验状态
@@ -21036,11 +21036,14 @@ var VxeDatePickerComponent = defineVxeComponent({
21036
21036
  const dispatchEvent = (type, params, evnt) => {
21037
21037
  emit(type, createEvent(evnt, { $datePicker: $xeDatePicker }, params));
21038
21038
  };
21039
+ const emitModel = (value) => {
21040
+ emit('update:modelValue', value);
21041
+ };
21039
21042
  const datePickerMethods = {
21040
21043
  dispatchEvent,
21041
21044
  setModelValue(value) {
21042
21045
  reactData.inputValue = value;
21043
- emit('update:modelValue', value);
21046
+ emitModel(value);
21044
21047
  },
21045
21048
  setModelValueByEvent(evnt, value) {
21046
21049
  handleChange(value || '', evnt);
@@ -21887,7 +21890,7 @@ var VxeDateRangePickerComponent = defineVxeComponent({
21887
21890
  reactData.selectEdValue = endRest;
21888
21891
  const value = getRangeValue(startRest, endRest);
21889
21892
  const isFinish = (startRest && endRest) || (!startRest && !endRest);
21890
- emit('update:modelValue', value);
21893
+ emitModel(value);
21891
21894
  emit('update:startValue', startRest || '');
21892
21895
  emit('update:endValue', endRest || '');
21893
21896
  if (XEUtils.toValueString(modelValue) !== value) {
@@ -22488,13 +22491,16 @@ var VxeDateRangePickerComponent = defineVxeComponent({
22488
22491
  const dispatchEvent = (type, params, evnt) => {
22489
22492
  emit(type, createEvent(evnt, { $dateRangePicker: $xeDateRangePicker }, params));
22490
22493
  };
22494
+ const emitModel = (value) => {
22495
+ emit('update:modelValue', value);
22496
+ };
22491
22497
  dateRangePickerMethods = {
22492
22498
  dispatchEvent,
22493
22499
  setModelValue(startValue, endValue) {
22494
22500
  reactData.selectStValue = startValue || '';
22495
22501
  reactData.selectEdValue = endValue || '';
22496
22502
  const value = getRangeValue(startValue, endValue);
22497
- emit('update:modelValue', value);
22503
+ emitModel(value);
22498
22504
  },
22499
22505
  setModelValueByEvent(evnt, startValue, endValue) {
22500
22506
  handleChange(startValue || '', endValue || '', evnt);
@@ -26025,7 +26031,7 @@ function createReactData$b() {
26025
26031
  isAniVisible: false,
26026
26032
  isActivated: false,
26027
26033
  searchValue: '',
26028
- iconGroups: []
26034
+ iconList: []
26029
26035
  };
26030
26036
  }
26031
26037
  function createInternalData$a() {
@@ -26155,11 +26161,11 @@ var VxeIconPickerComponent = defineVxeComponent({
26155
26161
  }
26156
26162
  return getI18n$2('vxe.base.pleaseSelect');
26157
26163
  });
26158
- const computePanelStyle = computed(() => {
26164
+ const computeWrapperStyle = computed(() => {
26159
26165
  const popupOpts = computePopupOpts.value;
26160
- const { chunkSize, height, maxHeight } = popupOpts;
26166
+ const { chunkSize, height, chunkWidth, maxHeight } = popupOpts;
26161
26167
  const stys = {
26162
- '--vxe-ui-icon-picker-item-width': `${100 / (chunkSize || 4)}%`
26168
+ '--vxe-ui-icon-picker-item-width': chunkWidth ? toCssUnit(chunkWidth) : `${100 / (chunkSize || 4)}%`
26163
26169
  };
26164
26170
  if (height) {
26165
26171
  stys['--vxe-ui-icon-picker-panel-height'] = toCssUnit(height);
@@ -26219,12 +26225,12 @@ var VxeIconPickerComponent = defineVxeComponent({
26219
26225
  teleportTo: btnTransfer
26220
26226
  });
26221
26227
  const panelStyle = Object.assign(ppObj.style, {
26222
- zIndex: panelIndex
26228
+ zIndex: panelIndex,
26229
+ minWidth: undefined
26223
26230
  });
26224
26231
  if (width) {
26225
26232
  Object.assign(panelStyle, {
26226
- width: toCssUnit(width),
26227
- minWidth: undefined
26233
+ width: toCssUnit(width)
26228
26234
  });
26229
26235
  }
26230
26236
  reactData.panelStyle = panelStyle;
@@ -26276,8 +26282,6 @@ var VxeIconPickerComponent = defineVxeComponent({
26276
26282
  const { searchValue } = reactData;
26277
26283
  const filterOpts = computeFilterOpts.value;
26278
26284
  const { filterMethod } = filterOpts;
26279
- const popupOpts = computePopupOpts.value;
26280
- const { chunkSize } = popupOpts;
26281
26285
  const iconList = computeIconList.value;
26282
26286
  let visibleList = iconList;
26283
26287
  if (searchValue) {
@@ -26289,7 +26293,7 @@ var VxeIconPickerComponent = defineVxeComponent({
26289
26293
  return (item.title && `${item.title}`.toLowerCase().indexOf(searchTxt) > -1) || (item.icon && `${item.icon}`.indexOf(searchTxt) > -1);
26290
26294
  });
26291
26295
  }
26292
- reactData.iconGroups = XEUtils.chunk(visibleList, chunkSize || 4);
26296
+ reactData.iconList = visibleList;
26293
26297
  };
26294
26298
  const changeEvent = (evnt, selectValue) => {
26295
26299
  reactData.selectIcon = selectValue;
@@ -26488,18 +26492,18 @@ var VxeIconPickerComponent = defineVxeComponent({
26488
26492
  Object.assign($xeIconPicker, iconPickerMethods);
26489
26493
  const renderIconWrapper = () => {
26490
26494
  const { showIconTitle } = props;
26491
- const { selectIcon, iconGroups } = reactData;
26492
- if (!iconGroups.length) {
26495
+ const { selectIcon, iconList } = reactData;
26496
+ if (!iconList.length) {
26493
26497
  return h('div', {
26494
26498
  class: 'vxe-ico-picker--empty-placeholder'
26495
26499
  }, getI18n$2('vxe.iconPicker.emptyText'));
26496
26500
  }
26497
26501
  return h('div', {
26498
26502
  class: 'vxe-ico-picker--list-wrapper'
26499
- }, iconGroups.map(list => {
26500
- return h('div', {
26503
+ }, [
26504
+ h('div', {
26501
26505
  class: 'vxe-ico-picker--list'
26502
- }, list.map(item => {
26506
+ }, iconList.map(item => {
26503
26507
  const { iconRender } = item;
26504
26508
  const compConf = iconRender ? renderer.get(iconRender.name) : null;
26505
26509
  const iconMethod = compConf ? compConf.renderIconPickerOptionIcon : null;
@@ -26533,8 +26537,8 @@ var VxeIconPickerComponent = defineVxeComponent({
26533
26537
  : renderEmptyElement($xeIconPicker)
26534
26538
  ])
26535
26539
  ]);
26536
- }));
26537
- }));
26540
+ }))
26541
+ ]);
26538
26542
  };
26539
26543
  const renderIconView = () => {
26540
26544
  const { selectIcon } = reactData;
@@ -26567,7 +26571,7 @@ var VxeIconPickerComponent = defineVxeComponent({
26567
26571
  const btnTransfer = computeBtnTransfer.value;
26568
26572
  const formReadonly = computeFormReadonly.value;
26569
26573
  const inpPlaceholder = computeInpPlaceholder.value;
26570
- const panelStyle = computePanelStyle.value;
26574
+ const wrapperStyle = computeWrapperStyle.value;
26571
26575
  const popupOpts = computePopupOpts.value;
26572
26576
  const ppClassName = popupOpts.className || props.popupClassName;
26573
26577
  if (formReadonly) {
@@ -26643,7 +26647,7 @@ var VxeIconPickerComponent = defineVxeComponent({
26643
26647
  initialized && (visiblePanel || isAniVisible)
26644
26648
  ? h('div', {
26645
26649
  class: 'vxe-ico-picker--panel-wrapper',
26646
- style: panelStyle
26650
+ style: wrapperStyle
26647
26651
  }, [
26648
26652
  filterable
26649
26653
  ? h('div', {