vxe-pc-ui 1.2.0 → 1.4.0

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 (85) hide show
  1. package/es/drawer/index.js +0 -1
  2. package/es/form/src/form.js +5 -2
  3. package/es/form-design/widget-select/select-form.js +2 -3
  4. package/es/icon/style/iconfont.1716394371834.ttf +0 -0
  5. package/es/icon/style/iconfont.1716394371834.woff +0 -0
  6. package/es/icon/style/iconfont.1716394371834.woff2 +0 -0
  7. package/es/icon/style.css +1 -1
  8. package/es/iconfont.1716394371834.ttf +0 -0
  9. package/es/iconfont.1716394371834.woff +0 -0
  10. package/es/iconfont.1716394371834.woff2 +0 -0
  11. package/es/modal/index.js +0 -1
  12. package/es/print/src/util.js +9 -0
  13. package/es/style.css +1 -1
  14. package/es/style.min.css +1 -1
  15. package/es/ui/index.js +9 -1
  16. package/lib/drawer/index.js +1 -2
  17. package/lib/drawer/index.min.js +1 -1
  18. package/lib/form/src/form.js +5 -2
  19. package/lib/form/src/form.min.js +1 -1
  20. package/lib/form-design/widget-select/select-form.js +1 -2
  21. package/lib/form-design/widget-select/select-form.min.js +1 -1
  22. package/lib/icon/style/iconfont.1716394371834.ttf +0 -0
  23. package/lib/icon/style/iconfont.1716394371834.woff +0 -0
  24. package/lib/icon/style/iconfont.1716394371834.woff2 +0 -0
  25. package/lib/icon/style/style.css +1 -1
  26. package/lib/icon/style/style.min.css +1309 -1
  27. package/lib/iconfont.1716394371834.ttf +0 -0
  28. package/lib/iconfont.1716394371834.woff +0 -0
  29. package/lib/iconfont.1716394371834.woff2 +0 -0
  30. package/lib/index.umd.js +33 -22
  31. package/lib/index.umd.min.js +1 -1
  32. package/lib/modal/index.js +1 -2
  33. package/lib/modal/index.min.js +1 -1
  34. package/lib/print/src/util.js +9 -0
  35. package/lib/print/src/util.min.js +1 -1
  36. package/lib/style.css +1 -1
  37. package/lib/style.min.css +1 -1
  38. package/lib/ui/index.js +9 -1
  39. package/lib/ui/index.min.js +1 -1
  40. package/package.json +7 -5
  41. package/packages/components.ts +1 -3
  42. package/packages/drawer/index.ts +0 -2
  43. package/packages/form/src/form-config-item.ts +2 -2
  44. package/packages/form/src/form-gather.ts +1 -1
  45. package/packages/form/src/form-item.ts +2 -2
  46. package/packages/form/src/form.ts +5 -2
  47. package/packages/form-design/widget-select/select-form.ts +2 -3
  48. package/packages/input/src/input.ts +2 -2
  49. package/packages/modal/index.ts +0 -2
  50. package/packages/print/src/print.ts +1 -1
  51. package/packages/print/src/util.ts +9 -0
  52. package/packages/pulldown/src/pulldown.ts +2 -2
  53. package/packages/select/src/select.ts +2 -2
  54. package/packages/ui/index.ts +9 -1
  55. package/packages/ui/src/vn.ts +1 -2
  56. package/types/components/colgroup.d.ts +137 -0
  57. package/types/components/column.d.ts +621 -0
  58. package/types/components/form-item.d.ts +7 -3
  59. package/types/components/form.d.ts +2 -2
  60. package/types/components/grid.d.ts +633 -0
  61. package/types/components/option.d.ts +2 -2
  62. package/types/components/print.d.ts +19 -3
  63. package/types/components/table-module/custom.d.ts +32 -0
  64. package/types/components/table-module/edit.d.ts +166 -0
  65. package/types/components/table-module/export.d.ts +81 -0
  66. package/types/components/table-module/filter.d.ts +79 -0
  67. package/types/components/table-module/index.d.ts +7 -0
  68. package/types/components/table-module/keyboard.d.ts +22 -0
  69. package/types/components/table-module/menu.d.ts +54 -0
  70. package/types/components/table-module/validator.d.ts +104 -0
  71. package/types/components/table-plugins/extend-cell-area.d.ts +601 -0
  72. package/types/components/table-plugins/index.d.ts +1 -0
  73. package/types/components/table.d.ts +3714 -0
  74. package/types/components/toolbar.d.ts +291 -0
  75. package/types/components/tooltip.d.ts +1 -1
  76. package/types/ui/commands.d.ts +13 -0
  77. package/types/ui/formats.d.ts +11 -0
  78. package/types/ui/global-config.d.ts +43 -0
  79. package/types/ui/global-icon.d.ts +34 -0
  80. package/types/ui/hooks.d.ts +11 -0
  81. package/types/ui/index.d.ts +6 -8
  82. package/types/ui/interceptor.d.ts +47 -0
  83. package/types/ui/menus.d.ts +14 -0
  84. package/types/ui/renderer.d.ts +224 -8
  85. package/types/ui/validators.d.ts +5 -0
Binary file
Binary file
Binary file
package/lib/index.umd.js CHANGED
@@ -2021,9 +2021,7 @@ __webpack_require__.r(__webpack_exports__);
2021
2021
  /* harmony export */ VxeSelect: function() { return /* reexport safe */ _select__WEBPACK_IMPORTED_MODULE_45__.CR; },
2022
2022
  /* harmony export */ VxeSwitch: function() { return /* reexport safe */ _switch__WEBPACK_IMPORTED_MODULE_46__.Gn; },
2023
2023
  /* harmony export */ VxeTextarea: function() { return /* reexport safe */ _textarea__WEBPACK_IMPORTED_MODULE_49__.e6; },
2024
- /* harmony export */ drawer: function() { return /* reexport safe */ _drawer__WEBPACK_IMPORTED_MODULE_15__.w$; },
2025
- /* harmony export */ install: function() { return /* binding */ install; },
2026
- /* harmony export */ modal: function() { return /* reexport safe */ _modal__WEBPACK_IMPORTED_MODULE_33__.yl; }
2024
+ /* harmony export */ install: function() { return /* binding */ install; }
2027
2025
  /* harmony export */ });
2028
2026
  /* harmony import */ var _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8514);
2029
2027
  /* harmony import */ var _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__);
@@ -2047,7 +2045,7 @@ __webpack_require__.r(__webpack_exports__);
2047
2045
  /* harmony import */ var _form_gather__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(4896);
2048
2046
  /* harmony import */ var _form_item__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(8444);
2049
2047
  /* harmony import */ var _form_view__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(5852);
2050
- /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(8094);
2048
+ /* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(2065);
2051
2049
  /* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(3585);
2052
2050
  /* harmony import */ var _layout_aside__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(7715);
2053
2051
  /* harmony import */ var _layout_body__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(7410);
@@ -2059,7 +2057,7 @@ __webpack_require__.r(__webpack_exports__);
2059
2057
  /* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(8866);
2060
2058
  /* harmony import */ var _loading__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(2118);
2061
2059
  /* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(4135);
2062
- /* harmony import */ var _modal__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(2065);
2060
+ /* harmony import */ var _modal__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(4446);
2063
2061
  /* harmony import */ var _number_input__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(5262);
2064
2062
  /* harmony import */ var _optgroup__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(8242);
2065
2063
  /* harmony import */ var _option__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(5701);
@@ -2280,8 +2278,7 @@ const DateInput = VxeDateInput;
2280
2278
  __webpack_require__.d(__webpack_exports__, {
2281
2279
  _s: function() { return /* binding */ Drawer; },
2282
2280
  Lk: function() { return /* binding */ VxeDrawer; },
2283
- Ay: function() { return /* binding */ packages_drawer; },
2284
- w$: function() { return /* binding */ drawer_drawer; }
2281
+ Ay: function() { return /* binding */ packages_drawer; }
2285
2282
  });
2286
2283
 
2287
2284
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
@@ -2831,7 +2828,6 @@ const DrawerController = {
2831
2828
  close: closeDrawer,
2832
2829
  open: openDrawer
2833
2830
  };
2834
- const drawer_drawer = DrawerController;
2835
2831
  const VxeDrawer = Object.assign(drawer, {
2836
2832
  install: function (app) {
2837
2833
  app.component(drawer.name, drawer);
@@ -4654,8 +4650,6 @@ const getWidgetSelectFormData = () => {
4654
4650
  };
4655
4651
  // EXTERNAL MODULE: ./packages/textarea/src/textarea.ts
4656
4652
  var src_textarea = __webpack_require__(5911);
4657
- // EXTERNAL MODULE: ./packages/modal/index.ts + 1 modules
4658
- var modal = __webpack_require__(2065);
4659
4653
  ;// CONCATENATED MODULE: ./packages/form-design/widget-select/select-form.ts
4660
4654
 
4661
4655
 
@@ -4667,7 +4661,6 @@ var modal = __webpack_require__(2065);
4667
4661
 
4668
4662
 
4669
4663
 
4670
-
4671
4664
  const WidgetSelectFormComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
4672
4665
  props: {
4673
4666
  renderOpts: {
@@ -4783,7 +4776,7 @@ const WidgetSelectFormComponent = (0,external_commonjs_vue_commonjs2_vue_root_Vu
4783
4776
  });
4784
4777
  });
4785
4778
  optionsContent.value = contList.join('\n');
4786
- modal/* modal */.yl.open({
4779
+ core_.VxeUI.modal.open({
4787
4780
  title: `${widget.title} - 批量编辑选项`,
4788
4781
  width: 500,
4789
4782
  height: '50vh ',
@@ -6783,8 +6776,11 @@ function getResetValue(value, resetValue) {
6783
6776
  inputElem = el.querySelector(`.${item.id} ${itemRender.autofocus}`);
6784
6777
  }
6785
6778
  // 渲染器的聚焦处理
6786
- if (!inputElem && compConf && compConf.autofocus) {
6787
- inputElem = el.querySelector(`.${item.id} ${compConf.autofocus}`);
6779
+ if (!inputElem) {
6780
+ const formItemAutoFocus = compConf ? compConf.formItemAutoFocus : null;
6781
+ if (formItemAutoFocus) {
6782
+ inputElem = el.querySelector(`.${item.id} ${formItemAutoFocus}`);
6783
+ }
6788
6784
  }
6789
6785
  if (inputElem) {
6790
6786
  inputElem.focus();
@@ -7483,7 +7479,7 @@ function destroyItem($xeForm, formItem) {
7483
7479
 
7484
7480
  /***/ }),
7485
7481
 
7486
- /***/ 8094:
7482
+ /***/ 2065:
7487
7483
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7488
7484
 
7489
7485
 
@@ -11522,7 +11518,7 @@ const Menu = VxeMenu;
11522
11518
 
11523
11519
  /***/ }),
11524
11520
 
11525
- /***/ 2065:
11521
+ /***/ 4446:
11526
11522
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
11527
11523
 
11528
11524
 
@@ -11530,8 +11526,7 @@ const Menu = VxeMenu;
11530
11526
  __webpack_require__.d(__webpack_exports__, {
11531
11527
  aF: function() { return /* binding */ Modal; },
11532
11528
  Bj: function() { return /* binding */ VxeModal; },
11533
- Ay: function() { return /* binding */ packages_modal; },
11534
- yl: function() { return /* binding */ modal_modal; }
11529
+ Ay: function() { return /* binding */ packages_modal; }
11535
11530
  });
11536
11531
 
11537
11532
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
@@ -12720,7 +12715,6 @@ const ModalController = {
12720
12715
  confirm: openConfirm,
12721
12716
  message: openMessage
12722
12717
  };
12723
- const modal_modal = ModalController;
12724
12718
  const VxeModal = Object.assign(modal, {
12725
12719
  install: function (app) {
12726
12720
  app.component(modal.name, modal);
@@ -13743,6 +13737,15 @@ function handlePrint(opts, content = '') {
13743
13737
  }
13744
13738
  const printHtml = options => {
13745
13739
  const opts = Object.assign({}, options);
13740
+ if (opts.sheetName) {
13741
+ opts.title = opts.title || opts.sheetName;
13742
+ }
13743
+ if (opts.style) {
13744
+ opts.customStyle = opts.customStyle || opts.style;
13745
+ }
13746
+ if (opts.beforePrintMethod) {
13747
+ opts.beforeMethod = opts.beforeMethod || opts.beforePrintMethod;
13748
+ }
13746
13749
  return handlePrint(opts, opts.content);
13747
13750
  };
13748
13751
  ;// CONCATENATED MODULE: ./packages/print/src/print.ts
@@ -17708,7 +17711,8 @@ __webpack_require__.r(__webpack_exports__);
17708
17711
  /* harmony reexport (unknown) */ __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
17709
17712
 
17710
17713
 
17711
- _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__.VxeUI.uiVersion = "1.2.0";
17714
+ _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__.VxeUI.uiVersion = "1.4.0";
17715
+ _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__.VxeUI.tableVersion = '';
17712
17716
  _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__.VxeUI.dynamicApp = _dynamics__WEBPACK_IMPORTED_MODULE_1__/* .dynamicApp */ .DR;
17713
17717
  (0,_vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__.setConfig)({
17714
17718
  anchor: {},
@@ -17722,6 +17726,10 @@ _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__.VxeUI.dynamicApp = _dynamics__WEBPACK_
17722
17726
  checkbox: {},
17723
17727
  checkboxGroup: {},
17724
17728
  col: {},
17729
+ colgroup: {},
17730
+ collapse: {},
17731
+ collapsePane: {},
17732
+ column: {},
17725
17733
  drawer: {
17726
17734
  // size: null,
17727
17735
  showHeader: true,
@@ -17750,6 +17758,7 @@ _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__.VxeUI.dynamicApp = _dynamics__WEBPACK_
17750
17758
  },
17751
17759
  formGather: {},
17752
17760
  formItem: {},
17761
+ grid: {},
17753
17762
  icon: {},
17754
17763
  input: {
17755
17764
  // size: null,
@@ -17825,8 +17834,10 @@ _vxe_ui_core__WEBPACK_IMPORTED_MODULE_0__.VxeUI.dynamicApp = _dynamics__WEBPACK_
17825
17834
  },
17826
17835
  switch: {},
17827
17836
  tabPane: {},
17837
+ table: {},
17828
17838
  tabs: {},
17829
17839
  textarea: {},
17840
+ toolbar: {},
17830
17841
  tooltip: {
17831
17842
  // size: null,
17832
17843
  trigger: 'hover',
@@ -19724,10 +19735,10 @@ var SHARED = '__core-js_shared__';
19724
19735
  var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
19725
19736
 
19726
19737
  (store.versions || (store.versions = [])).push({
19727
- version: '3.37.0',
19738
+ version: '3.37.1',
19728
19739
  mode: IS_PURE ? 'pure' : 'global',
19729
19740
  copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
19730
- license: 'https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE',
19741
+ license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
19731
19742
  source: 'https://github.com/zloirock/core-js'
19732
19743
  });
19733
19744