vxe-pc-ui 4.8.2 → 4.8.4

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 (41) hide show
  1. package/es/date-picker/src/date-picker.js +18 -1
  2. package/es/date-range-picker/src/date-range-picker.js +18 -1
  3. package/es/icon/style.css +1 -1
  4. package/es/select/src/select.js +2 -5
  5. package/es/style.css +1 -1
  6. package/es/style.min.css +1 -1
  7. package/es/ui/index.js +1 -1
  8. package/es/ui/src/log.js +1 -1
  9. package/lib/date-picker/src/date-picker.js +19 -0
  10. package/lib/date-picker/src/date-picker.min.js +1 -1
  11. package/lib/date-range-picker/src/date-range-picker.js +19 -0
  12. package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
  13. package/lib/icon/style/style.css +1 -1
  14. package/lib/icon/style/style.min.css +1 -1
  15. package/lib/index.umd.js +42 -6
  16. package/lib/index.umd.min.js +1 -1
  17. package/lib/select/src/select.js +2 -4
  18. package/lib/select/src/select.min.js +1 -1
  19. package/lib/style.css +1 -1
  20. package/lib/style.min.css +1 -1
  21. package/lib/ui/index.js +1 -1
  22. package/lib/ui/index.min.js +1 -1
  23. package/lib/ui/src/log.js +1 -1
  24. package/lib/ui/src/log.min.js +1 -1
  25. package/package.json +2 -2
  26. package/packages/date-picker/src/date-picker.ts +19 -1
  27. package/packages/date-range-picker/src/date-range-picker.ts +19 -1
  28. package/packages/select/src/select.ts +2 -4
  29. package/types/components/table.d.ts +4 -2
  30. /package/es/icon/{iconfont.1753864746816.ttf → iconfont.1753957080786.ttf} +0 -0
  31. /package/es/icon/{iconfont.1753864746816.woff → iconfont.1753957080786.woff} +0 -0
  32. /package/es/icon/{iconfont.1753864746816.woff2 → iconfont.1753957080786.woff2} +0 -0
  33. /package/es/{iconfont.1753864746816.ttf → iconfont.1753957080786.ttf} +0 -0
  34. /package/es/{iconfont.1753864746816.woff → iconfont.1753957080786.woff} +0 -0
  35. /package/es/{iconfont.1753864746816.woff2 → iconfont.1753957080786.woff2} +0 -0
  36. /package/lib/icon/style/{iconfont.1753864746816.ttf → iconfont.1753957080786.ttf} +0 -0
  37. /package/lib/icon/style/{iconfont.1753864746816.woff → iconfont.1753957080786.woff} +0 -0
  38. /package/lib/icon/style/{iconfont.1753864746816.woff2 → iconfont.1753957080786.woff2} +0 -0
  39. /package/lib/{iconfont.1753864746816.ttf → iconfont.1753957080786.ttf} +0 -0
  40. /package/lib/{iconfont.1753864746816.woff → iconfont.1753957080786.woff} +0 -0
  41. /package/lib/{iconfont.1753864746816.woff2 → iconfont.1753957080786.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -4320,14 +4320,14 @@ function checkDynamic() {
4320
4320
  }
4321
4321
  ;// CONCATENATED MODULE: ./packages/ui/src/log.ts
4322
4322
 
4323
- const log_version = `ui v${"4.8.2"}`;
4323
+ const log_version = `ui v${"4.8.4"}`;
4324
4324
  const warnLog = log.create('warn', log_version);
4325
4325
  const errLog = log.create('error', log_version);
4326
4326
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
4327
4327
 
4328
4328
 
4329
4329
 
4330
- const ui_version = "4.8.2";
4330
+ const ui_version = "4.8.4";
4331
4331
  index_esm_VxeUI.uiVersion = ui_version;
4332
4332
  index_esm_VxeUI.dynamicApp = dynamicApp;
4333
4333
  function config(options) {
@@ -18441,6 +18441,24 @@ const DatePanel = VxeDatePanel;
18441
18441
  }
18442
18442
  }
18443
18443
  };
18444
+ const handleGlobalKeydownEvent = evnt => {
18445
+ const {
18446
+ visiblePanel
18447
+ } = reactData;
18448
+ const isDisabled = computeIsDisabled.value;
18449
+ if (!isDisabled) {
18450
+ const isTab = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
18451
+ const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
18452
+ if (isTab) {
18453
+ reactData.isActivated = false;
18454
+ }
18455
+ if (visiblePanel) {
18456
+ if (isEsc || isTab) {
18457
+ hidePanel();
18458
+ }
18459
+ }
18460
+ }
18461
+ };
18444
18462
  const handleGlobalMousewheelEvent = evnt => {
18445
18463
  const {
18446
18464
  visiblePanel
@@ -18902,6 +18920,7 @@ const DatePanel = VxeDatePanel;
18902
18920
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
18903
18921
  globalEvents.on($xeDatePicker, 'mousewheel', handleGlobalMousewheelEvent);
18904
18922
  globalEvents.on($xeDatePicker, 'mousedown', handleGlobalMousedownEvent);
18923
+ globalEvents.on($xeDatePicker, 'keydown', handleGlobalKeydownEvent);
18905
18924
  globalEvents.on($xeDatePicker, 'blur', handleGlobalBlurEvent);
18906
18925
  globalEvents.on($xeDatePicker, 'resize', handleGlobalResizeEvent);
18907
18926
  });
@@ -19577,6 +19596,24 @@ const DatePicker = VxeDatePicker;
19577
19596
  }
19578
19597
  }
19579
19598
  };
19599
+ const handleGlobalKeydownEvent = evnt => {
19600
+ const {
19601
+ visiblePanel
19602
+ } = reactData;
19603
+ const isDisabled = computeIsDisabled.value;
19604
+ if (!isDisabled) {
19605
+ const isTab = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.TAB);
19606
+ const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
19607
+ if (isTab) {
19608
+ reactData.isActivated = false;
19609
+ }
19610
+ if (visiblePanel) {
19611
+ if (isEsc || isTab) {
19612
+ hidePanel();
19613
+ }
19614
+ }
19615
+ }
19616
+ };
19580
19617
  const handleGlobalMousewheelEvent = evnt => {
19581
19618
  const {
19582
19619
  visiblePanel
@@ -20065,6 +20102,7 @@ const DatePicker = VxeDatePicker;
20065
20102
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
20066
20103
  globalEvents.on($xeDateRangePicker, 'mousewheel', handleGlobalMousewheelEvent);
20067
20104
  globalEvents.on($xeDateRangePicker, 'mousedown', handleGlobalMousedownEvent);
20105
+ globalEvents.on($xeDateRangePicker, 'keydown', handleGlobalKeydownEvent);
20068
20106
  globalEvents.on($xeDateRangePicker, 'blur', handleGlobalBlurEvent);
20069
20107
  globalEvents.on($xeDateRangePicker, 'resize', handleGlobalResizeEvent);
20070
20108
  });
@@ -29573,7 +29611,6 @@ function getOptUniqueId() {
29573
29611
  const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
29574
29612
  const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
29575
29613
  const isDel = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.DELETE);
29576
- const isSpacebar = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR);
29577
29614
  if (isTab) {
29578
29615
  reactData.isActivated = false;
29579
29616
  }
@@ -29597,10 +29634,8 @@ function getOptUniqueId() {
29597
29634
  setCurrentOption(offsetOption);
29598
29635
  handleScrollToOption(offsetOption, isDwArrow);
29599
29636
  }
29600
- } else if (isSpacebar) {
29601
- evnt.preventDefault();
29602
29637
  }
29603
- } else if ((isUpArrow || isDwArrow || isEnter || isSpacebar) && reactData.isActivated) {
29638
+ } else if ((isUpArrow || isDwArrow || isEnter) && reactData.isActivated) {
29604
29639
  evnt.preventDefault();
29605
29640
  showOptionPanel();
29606
29641
  }
@@ -30296,6 +30331,7 @@ function getOptUniqueId() {
30296
30331
  ref: refInpSearch,
30297
30332
  class: 'vxe-select-search--input',
30298
30333
  modelValue: reactData.searchValue,
30334
+ type: 'text',
30299
30335
  clearable: true,
30300
30336
  disabled: false,
30301
30337
  readonly: false,