@maxax/ui 1.1.76 → 1.1.78

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 (52) hide show
  1. package/dist/component.d.ts.map +1 -1
  2. package/dist/components/basic-button-import-max/BasicButtonImportMax.vue.d.ts.map +1 -1
  3. package/dist/components/basic-button-import-max/PreviewModal.vue.d.ts.map +1 -1
  4. package/dist/components/basic-edit-batch/helper.d.ts +1 -1
  5. package/dist/components/basic-form/BasicForm.vue.d.ts +2 -2
  6. package/dist/components/basic-form/BasicForm.vue.d.ts.map +1 -1
  7. package/dist/components/basic-form/componentMap.d.ts.map +1 -1
  8. package/dist/components/basic-form/helper.d.ts +1 -1
  9. package/dist/components/basic-form/hooks/use-form-grid.d.ts +1 -1
  10. package/dist/components/basic-form/hooks/use-form-grid.d.ts.map +1 -1
  11. package/dist/components/basic-form/types/component.d.ts +2 -0
  12. package/dist/components/basic-form/types/component.d.ts.map +1 -1
  13. package/dist/components/basic-multilingual-input/BasicMultilingualInput.vue.d.ts +51 -0
  14. package/dist/components/basic-multilingual-input/BasicMultilingualInput.vue.d.ts.map +1 -0
  15. package/dist/components/basic-multilingual-input/index.d.ts +7 -0
  16. package/dist/components/basic-multilingual-input/index.d.ts.map +1 -0
  17. package/dist/components/basic-multilingual-input/interface.d.ts +35 -0
  18. package/dist/components/basic-multilingual-input/interface.d.ts.map +1 -0
  19. package/dist/components/basic-table/BasicTable.vue.d.ts.map +1 -1
  20. package/dist/components/basic-table/filter.d.ts +14 -0
  21. package/dist/components/basic-table/filter.d.ts.map +1 -0
  22. package/dist/components/basic-table/helper.d.ts +2 -1
  23. package/dist/components/basic-table/helper.d.ts.map +1 -1
  24. package/dist/components/basic-table/hooks/use-data-source.d.ts.map +1 -1
  25. package/dist/components/basic-table/index.d.ts +3 -2
  26. package/dist/components/basic-table/index.d.ts.map +1 -1
  27. package/dist/components/basic-table/interface.d.ts +2 -2
  28. package/dist/components/basic-table/interface.d.ts.map +1 -1
  29. package/dist/components/index.d.ts +1 -0
  30. package/dist/components/index.d.ts.map +1 -1
  31. package/dist/index.cjs +441 -117
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.mjs +441 -117
  34. package/dist/index.mjs.map +1 -1
  35. package/dist/locale/lang/en.d.ts.map +1 -1
  36. package/dist/locale/lang/zh-cn.d.ts.map +1 -1
  37. package/dist/locales.cjs +4 -1
  38. package/dist/locales.cjs.map +1 -1
  39. package/dist/locales.mjs +4 -1
  40. package/dist/locales.mjs.map +1 -1
  41. package/dist/theme-chalk/components/basicMultilingualInput.scss +55 -0
  42. package/dist/theme-chalk/components/basicTable.scss +15 -0
  43. package/dist/theme-chalk/components/components.scss +1 -0
  44. package/dist/theme-chalk/index.css +1 -1
  45. package/dist/theme-chalk/light.css +1 -1
  46. package/dist/{zh-cn-KPfh6ZPA.js → zh-cn-BwGvDABC.js} +4 -1
  47. package/dist/zh-cn-BwGvDABC.js.map +1 -0
  48. package/dist/{zh-cn-BdENqlAc.cjs → zh-cn-OQuZRA6h.cjs} +4 -1
  49. package/dist/zh-cn-OQuZRA6h.cjs.map +1 -0
  50. package/package.json +3 -3
  51. package/dist/zh-cn-BdENqlAc.cjs.map +0 -1
  52. package/dist/zh-cn-KPfh6ZPA.js.map +0 -1
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import dayjs from "dayjs";
11
11
  import { useBoolean, useMergedState as useMergedState$1, useEventListener as useEventListener$1, useBreakpoint } from "@maxax/hooks";
12
12
  import { format } from "date-fns";
13
13
  import elementResizeDetectorMaker from "element-resize-detector";
14
- import { z as zhCN } from "./zh-cn-KPfh6ZPA.js";
14
+ import { z as zhCN } from "./zh-cn-BwGvDABC.js";
15
15
  function tryOnScopeDispose(fn, failSilently) {
16
16
  if (getCurrentScope()) {
17
17
  onScopeDispose(fn, failSilently);
@@ -4049,7 +4049,7 @@ const useZIndex = (zIndexOverrides) => {
4049
4049
  nextZIndex
4050
4050
  };
4051
4051
  };
4052
- const _sfc_main$12 = /* @__PURE__ */ defineComponent({
4052
+ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
4053
4053
  __name: "better-scroll",
4054
4054
  props: {
4055
4055
  options: {}
@@ -5774,8 +5774,8 @@ const Icon = defineComponent((props, { emit }) => {
5774
5774
  ],
5775
5775
  emits: ["load"]
5776
5776
  });
5777
- const _hoisted_1$d = ["xlink:href"];
5778
- const _sfc_main$11 = /* @__PURE__ */ defineComponent({
5777
+ const _hoisted_1$e = ["xlink:href"];
5778
+ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
5779
5779
  __name: "BasicSvgIcon",
5780
5780
  props: {
5781
5781
  icon: {},
@@ -5809,7 +5809,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
5809
5809
  createElementVNode("use", {
5810
5810
  "xlink:href": symbolId.value,
5811
5811
  fill: "currentColor"
5812
- }, null, 8, _hoisted_1$d)
5812
+ }, null, 8, _hoisted_1$e)
5813
5813
  ], 16)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
5814
5814
  __props.icon ? (openBlock(), createBlock(unref(Icon), mergeProps({
5815
5815
  key: 0,
@@ -5821,8 +5821,8 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
5821
5821
  };
5822
5822
  }
5823
5823
  });
5824
- const XBasicSvgIcon = withInstall(_sfc_main$11);
5825
- const _sfc_main$10 = /* @__PURE__ */ defineComponent({
5824
+ const XBasicSvgIcon = withInstall(_sfc_main$12);
5825
+ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
5826
5826
  ...{
5827
5827
  inheritAttrs: false
5828
5828
  },
@@ -5871,7 +5871,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
5871
5871
  };
5872
5872
  }
5873
5873
  });
5874
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
5874
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
5875
5875
  __name: "full-screen",
5876
5876
  props: {
5877
5877
  full: { type: Boolean }
@@ -5879,7 +5879,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
5879
5879
  setup(__props) {
5880
5880
  const { t: t2 } = useLocale();
5881
5881
  return (_ctx, _cache) => {
5882
- return openBlock(), createBlock(_sfc_main$10, {
5882
+ return openBlock(), createBlock(_sfc_main$11, {
5883
5883
  key: String(__props.full),
5884
5884
  "tooltip-content": __props.full ? unref(t2)("max.icon.fullscreenExit") : unref(t2)("max.icon.fullscreen")
5885
5885
  }, {
@@ -5897,7 +5897,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
5897
5897
  };
5898
5898
  }
5899
5899
  });
5900
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
5900
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
5901
5901
  __name: "icon-tooltip",
5902
5902
  props: {
5903
5903
  icon: { default: "mdi-help-circle" },
@@ -5937,7 +5937,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
5937
5937
  };
5938
5938
  }
5939
5939
  });
5940
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
5940
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
5941
5941
  __name: "menu-toggler",
5942
5942
  props: {
5943
5943
  collapsed: { type: Boolean },
@@ -5963,7 +5963,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
5963
5963
  return icons[arrowIcon][collapsed];
5964
5964
  });
5965
5965
  return (_ctx, _cache) => {
5966
- return openBlock(), createBlock(_sfc_main$10, {
5966
+ return openBlock(), createBlock(_sfc_main$11, {
5967
5967
  key: String(__props.collapsed),
5968
5968
  "tooltip-content": __props.collapsed ? unref(t2)("max.icon.expand") : unref(t2)("max.icon.collapse"),
5969
5969
  "tooltip-placement": "bottom-start",
@@ -5977,7 +5977,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
5977
5977
  };
5978
5978
  }
5979
5979
  });
5980
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
5980
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
5981
5981
  __name: "pin-toggler",
5982
5982
  props: {
5983
5983
  pin: { type: Boolean }
@@ -5987,7 +5987,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
5987
5987
  const { t: t2 } = useLocale();
5988
5988
  const icon = computed(() => props.pin ? "mdi-pin-off" : "mdi-pin");
5989
5989
  return (_ctx, _cache) => {
5990
- return openBlock(), createBlock(_sfc_main$10, {
5990
+ return openBlock(), createBlock(_sfc_main$11, {
5991
5991
  "tooltip-content": __props.pin ? unref(t2)("max.icon.unpin") : unref(t2)("max.icon.pin"),
5992
5992
  "tooltip-placement": "bottom-start",
5993
5993
  "z-index": 100
@@ -6000,7 +6000,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
6000
6000
  };
6001
6001
  }
6002
6002
  });
6003
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
6003
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
6004
6004
  __name: "reload-button",
6005
6005
  props: {
6006
6006
  loading: { type: Boolean }
@@ -6009,7 +6009,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
6009
6009
  const { t: t2 } = useLocale();
6010
6010
  const { b } = useNamespace("reload-button");
6011
6011
  return (_ctx, _cache) => {
6012
- return openBlock(), createBlock(_sfc_main$10, {
6012
+ return openBlock(), createBlock(_sfc_main$11, {
6013
6013
  "tooltip-content": unref(t2)("max.icon.reload")
6014
6014
  }, {
6015
6015
  default: withCtx(() => [
@@ -6023,14 +6023,14 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
6023
6023
  };
6024
6024
  }
6025
6025
  });
6026
- const XCommonBetterScroll = withInstall(_sfc_main$12);
6027
- const XCommonButtonIcon = withInstall(_sfc_main$10);
6028
- const XCommonFullScreen = withInstall(_sfc_main$$);
6029
- const XCommonIconTooltip = withInstall(_sfc_main$_);
6030
- const XCommonMenuToggler = withInstall(_sfc_main$Z);
6031
- const XCommonPinToggler = withInstall(_sfc_main$Y);
6032
- const XCommonReloadButton = withInstall(_sfc_main$X);
6033
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
6026
+ const XCommonBetterScroll = withInstall(_sfc_main$13);
6027
+ const XCommonButtonIcon = withInstall(_sfc_main$11);
6028
+ const XCommonFullScreen = withInstall(_sfc_main$10);
6029
+ const XCommonIconTooltip = withInstall(_sfc_main$$);
6030
+ const XCommonMenuToggler = withInstall(_sfc_main$_);
6031
+ const XCommonPinToggler = withInstall(_sfc_main$Z);
6032
+ const XCommonReloadButton = withInstall(_sfc_main$Y);
6033
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
6034
6034
  __name: "BasicButton",
6035
6035
  props: {
6036
6036
  icon: {}
@@ -6060,7 +6060,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
6060
6060
  };
6061
6061
  }
6062
6062
  });
6063
- const XBasicButton = withInstall(_sfc_main$W);
6063
+ const XBasicButton = withInstall(_sfc_main$X);
6064
6064
  !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
6065
6065
  !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
6066
6066
  const hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -6281,7 +6281,7 @@ const basicMessageBoxProps = {
6281
6281
  default: ""
6282
6282
  }
6283
6283
  };
6284
- const _sfc_main$V = defineComponent({
6284
+ const _sfc_main$W = defineComponent({
6285
6285
  components: {
6286
6286
  NButton,
6287
6287
  NInput,
@@ -6521,7 +6521,7 @@ const _export_sfc = (sfc, props) => {
6521
6521
  }
6522
6522
  return target;
6523
6523
  };
6524
- const _hoisted_1$c = ["aria-label", "aria-describedby"];
6524
+ const _hoisted_1$d = ["aria-label", "aria-describedby"];
6525
6525
  const _hoisted_2$4 = ["id"];
6526
6526
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
6527
6527
  const _component_BasicSvgIcon = resolveComponent("BasicSvgIcon");
@@ -6679,7 +6679,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
6679
6679
  ])
6680
6680
  ], 2)
6681
6681
  ], 6)
6682
- ], 42, _hoisted_1$c)
6682
+ ], 42, _hoisted_1$d)
6683
6683
  ]),
6684
6684
  _: 3
6685
6685
  }, 8, ["z-index", "overlay-class", "mask"]), [
@@ -6689,7 +6689,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
6689
6689
  _: 3
6690
6690
  });
6691
6691
  }
6692
- const MessageBoxConstructor = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$2]]);
6692
+ const MessageBoxConstructor = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["render", _sfc_render$2]]);
6693
6693
  const messageInstance = /* @__PURE__ */ new Map();
6694
6694
  const getAppendToElement = (props) => {
6695
6695
  let appendTo = document.body;
@@ -6815,7 +6815,7 @@ MessageBox.close = () => {
6815
6815
  MessageBox._context = null;
6816
6816
  const $MessageBox = MessageBox;
6817
6817
  const XBasicMessageBox = $MessageBox;
6818
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
6818
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
6819
6819
  __name: "BasicActionFooter",
6820
6820
  props: {
6821
6821
  showDeleteButton: { type: Boolean, default: false },
@@ -6897,8 +6897,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
6897
6897
  };
6898
6898
  }
6899
6899
  });
6900
- const XBasicActionFooter = withInstall(_sfc_main$U);
6901
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
6900
+ const XBasicActionFooter = withInstall(_sfc_main$V);
6901
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
6902
6902
  __name: "BasicArrow",
6903
6903
  props: {
6904
6904
  expand: { type: Boolean },
@@ -6930,8 +6930,8 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
6930
6930
  };
6931
6931
  }
6932
6932
  });
6933
- const XBasicArrow = withInstall(_sfc_main$T);
6934
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
6933
+ const XBasicArrow = withInstall(_sfc_main$U);
6934
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
6935
6935
  __name: "BasicBoolIcon",
6936
6936
  props: {
6937
6937
  value: { type: [Boolean, null] },
@@ -6978,8 +6978,8 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
6978
6978
  };
6979
6979
  }
6980
6980
  });
6981
- const XBasicBoolIcon = withInstall(_sfc_main$S);
6982
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
6981
+ const XBasicBoolIcon = withInstall(_sfc_main$T);
6982
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
6983
6983
  __name: "BasicButtonCreate",
6984
6984
  emits: ["click"],
6985
6985
  setup(__props, { emit: __emit }) {
@@ -7004,7 +7004,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
7004
7004
  };
7005
7005
  }
7006
7006
  });
7007
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
7007
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
7008
7008
  __name: "BasicButtonDelete",
7009
7009
  emits: ["click"],
7010
7010
  setup(__props, { emit: __emit }) {
@@ -7029,7 +7029,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
7029
7029
  };
7030
7030
  }
7031
7031
  });
7032
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
7032
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
7033
7033
  __name: "BasicButtonDrop",
7034
7034
  props: {
7035
7035
  disabled: { type: Boolean },
@@ -7094,7 +7094,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
7094
7094
  };
7095
7095
  }
7096
7096
  });
7097
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
7097
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
7098
7098
  __name: "BasicButtonEdit",
7099
7099
  emits: ["click"],
7100
7100
  setup(__props, { emit: __emit }) {
@@ -7119,7 +7119,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
7119
7119
  };
7120
7120
  }
7121
7121
  });
7122
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
7122
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
7123
7123
  __name: "BasicButtonExport",
7124
7124
  props: {
7125
7125
  href: {},
@@ -7170,7 +7170,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
7170
7170
  };
7171
7171
  }
7172
7172
  });
7173
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
7173
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
7174
7174
  __name: "BasicButtonExportDrop",
7175
7175
  props: {
7176
7176
  disabled: { type: Boolean },
@@ -7194,7 +7194,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
7194
7194
  emit("click", key2);
7195
7195
  }
7196
7196
  return (_ctx, _cache) => {
7197
- return openBlock(), createBlock(_sfc_main$P, {
7197
+ return openBlock(), createBlock(_sfc_main$Q, {
7198
7198
  icon: __props.icon,
7199
7199
  options: cOptions.value,
7200
7200
  onClick: handleClick
@@ -7207,8 +7207,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
7207
7207
  };
7208
7208
  }
7209
7209
  });
7210
- const _hoisted_1$b = ["multiple", "name", "accept"];
7211
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
7210
+ const _hoisted_1$c = ["multiple", "name", "accept"];
7211
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
7212
7212
  __name: "BasicButtonImport",
7213
7213
  props: {
7214
7214
  name: { default: "file" },
@@ -7295,7 +7295,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
7295
7295
  accept: __props.accept,
7296
7296
  style: normalizeStyle(buttonStyle.value),
7297
7297
  onChange: onFileChange
7298
- }, null, 44, _hoisted_1$b)),
7298
+ }, null, 44, _hoisted_1$c)),
7299
7299
  renderSlot(_ctx.$slots, "default", {}, () => [
7300
7300
  createTextVNode(toDisplayString(unref(t2)("max.basic.import")), 1)
7301
7301
  ])
@@ -7305,7 +7305,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
7305
7305
  };
7306
7306
  }
7307
7307
  });
7308
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
7308
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
7309
7309
  __name: "BasicButtonPrint",
7310
7310
  emits: ["click"],
7311
7311
  setup(__props, { emit: __emit }) {
@@ -7330,19 +7330,19 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
7330
7330
  };
7331
7331
  }
7332
7332
  });
7333
- const XBasicButtonCreate = withInstall(_sfc_main$R);
7334
- const XBasicButtonEdit = withInstall(_sfc_main$O);
7335
- const XBasicButtonDelete = withInstall(_sfc_main$Q);
7336
- const XBasicButtonExport = withInstall(_sfc_main$N);
7337
- const XBasicButtonImport = withInstall(_sfc_main$L);
7338
- const XBasicButtonPrint = withInstall(_sfc_main$K);
7339
- const XBasicButtonDrop = withInstall(_sfc_main$P);
7340
- const XBasicButtonExportDrop = withInstall(_sfc_main$M);
7341
- const _hoisted_1$a = ["id"];
7333
+ const XBasicButtonCreate = withInstall(_sfc_main$S);
7334
+ const XBasicButtonEdit = withInstall(_sfc_main$P);
7335
+ const XBasicButtonDelete = withInstall(_sfc_main$R);
7336
+ const XBasicButtonExport = withInstall(_sfc_main$O);
7337
+ const XBasicButtonImport = withInstall(_sfc_main$M);
7338
+ const XBasicButtonPrint = withInstall(_sfc_main$L);
7339
+ const XBasicButtonDrop = withInstall(_sfc_main$Q);
7340
+ const XBasicButtonExportDrop = withInstall(_sfc_main$N);
7341
+ const _hoisted_1$b = ["id"];
7342
7342
  const _hoisted_2$3 = ["textContent"];
7343
7343
  const _hoisted_3 = { key: 0 };
7344
7344
  const _hoisted_4 = ["innerHTML"];
7345
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
7345
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
7346
7346
  __name: "BasicNotification",
7347
7347
  props: {
7348
7348
  customClass: { default: "" },
@@ -7478,7 +7478,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
7478
7478
  }, null, 8, ["class"])) : createCommentVNode("", true)
7479
7479
  ])
7480
7480
  ], 2)
7481
- ], 46, _hoisted_1$a), [
7481
+ ], 46, _hoisted_1$b), [
7482
7482
  [vShow, visible.value]
7483
7483
  ])
7484
7484
  ]),
@@ -7529,7 +7529,7 @@ const notify = (options, context) => {
7529
7529
  appendTo = document.body;
7530
7530
  }
7531
7531
  const container = document.createElement("div");
7532
- const vm = createVNode(_sfc_main$J, props, isFunction$1(props.message) ? props.message : isVNode(props.message) ? () => props.message : null);
7532
+ const vm = createVNode(_sfc_main$K, props, isFunction$1(props.message) ? props.message : isVNode(props.message) ? () => props.message : null);
7533
7533
  vm.appContext = isUndefined$1(context) ? notify._context : context;
7534
7534
  vm.props.onDestroy = () => {
7535
7535
  render$1(null, container);
@@ -7587,7 +7587,7 @@ notify.closeAll = closeAll;
7587
7587
  notify._context = null;
7588
7588
  const $Notification = notify;
7589
7589
  const XBasicNotification = $Notification;
7590
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
7590
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
7591
7591
  __name: "BasicButtonExportMax",
7592
7592
  props: {
7593
7593
  drop: { type: Boolean, default: true },
@@ -7672,7 +7672,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
7672
7672
  }
7673
7673
  return (_ctx, _cache) => {
7674
7674
  return openBlock(), createElementBlock(Fragment, null, [
7675
- __props.drop ? (openBlock(), createBlock(_sfc_main$P, mergeProps({
7675
+ __props.drop ? (openBlock(), createBlock(_sfc_main$Q, mergeProps({
7676
7676
  key: 0,
7677
7677
  icon: __props.icon,
7678
7678
  options: cOptions.value,
@@ -7724,11 +7724,11 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
7724
7724
  };
7725
7725
  }
7726
7726
  });
7727
- const XBasicButtonExportMax = withInstall(_sfc_main$I);
7727
+ const XBasicButtonExportMax = withInstall(_sfc_main$J);
7728
7728
  function _isSlot$3(s) {
7729
7729
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
7730
7730
  }
7731
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
7731
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
7732
7732
  name: "ButtonGroupItem",
7733
7733
  props: {
7734
7734
  schema: {
@@ -8104,7 +8104,7 @@ function useButtonGroupSchema({ getProps, schemaRef }) {
8104
8104
  });
8105
8105
  return { getSchema };
8106
8106
  }
8107
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
8107
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
8108
8108
  __name: "BasicButtonGroup",
8109
8109
  props: {
8110
8110
  showReturnButton: { type: Boolean, default: true },
@@ -8196,7 +8196,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
8196
8196
  }, [
8197
8197
  renderSlot(_ctx.$slots, "left-left"),
8198
8198
  (openBlock(true), createElementBlock(Fragment, null, renderList(getLeftSchema.value, (schema) => {
8199
- return openBlock(), createBlock(_sfc_main$H, {
8199
+ return openBlock(), createBlock(_sfc_main$I, {
8200
8200
  key: schema.field,
8201
8201
  schema,
8202
8202
  "button-group-action-type": buttonGroupActionType,
@@ -8221,7 +8221,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
8221
8221
  }, [
8222
8222
  renderSlot(_ctx.$slots, "right-left"),
8223
8223
  (openBlock(true), createElementBlock(Fragment, null, renderList(getRightSchema.value, (schema) => {
8224
- return openBlock(), createBlock(_sfc_main$H, {
8224
+ return openBlock(), createBlock(_sfc_main$I, {
8225
8225
  key: schema.field,
8226
8226
  schema,
8227
8227
  "button-group-action-type": buttonGroupActionType,
@@ -8244,7 +8244,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
8244
8244
  };
8245
8245
  }
8246
8246
  });
8247
- const XBasicButtonGroup = withInstall(_sfc_main$G);
8247
+ const XBasicButtonGroup = withInstall(_sfc_main$H);
8248
8248
  const ROW_KEY$1 = "_MAX_ROW_KEY";
8249
8249
  const PAGE_SIZE_OPTIONS$1 = [10, 50, 80, 100];
8250
8250
  const PAGE_SIZE$1 = 10;
@@ -8582,19 +8582,33 @@ function parseRowKeyValue$1(rowKey, record, autoCreateKey) {
8582
8582
  function setTableGlobalFormats(formats) {
8583
8583
  VxeUI2.formats.mixin(formats);
8584
8584
  }
8585
+ function setTableGlobalFilterRenderers(renderers) {
8586
+ VxeUI2.renderer.mixin(renderers);
8587
+ }
8588
+ function parseFilterInfo(filterList = []) {
8589
+ return filterList.reduce((filterInfo, item) => {
8590
+ filterInfo[item.field] = item.datas.length > 1 ? item.datas : item.datas[0];
8591
+ return filterInfo;
8592
+ }, {});
8593
+ }
8585
8594
  function useDataSource$1(propsRef, { tableData, getPaginationInfo, setPagination, setSelection, setLoading, emit }) {
8586
8595
  const searchState = reactive({
8587
8596
  sortInfo: {},
8588
8597
  filterInfo: {}
8589
8598
  });
8590
8599
  const getSortRef = computed(() => {
8591
- const { onSortChange } = unref(propsRef);
8600
+ const { onFilterChange, onSortChange } = unref(propsRef);
8592
8601
  return {
8593
8602
  onSortChange: (params) => {
8594
8603
  searchState.sortInfo.ascSortColumn = params.order === "asc" ? params.field : "";
8595
8604
  searchState.sortInfo.descSortColumn = params.order === "desc" ? params.field : "";
8596
8605
  onSortChange && onSortChange(params);
8597
8606
  fetch2();
8607
+ },
8608
+ onFilterChange: (params) => {
8609
+ searchState.filterInfo = parseFilterInfo(params.filterList);
8610
+ onFilterChange && onFilterChange(params);
8611
+ fetch2();
8598
8612
  }
8599
8613
  };
8600
8614
  });
@@ -9191,8 +9205,8 @@ function useTableForm(propsRef, { fetch: fetch2, getLoading, setPagination, setS
9191
9205
  handleSearchInfoReload
9192
9206
  };
9193
9207
  }
9194
- const _hoisted_1$9 = { class: "max-table-selection-count" };
9195
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
9208
+ const _hoisted_1$a = { class: "max-table-selection-count" };
9209
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
9196
9210
  __name: "BasicTable",
9197
9211
  props: {
9198
9212
  layouts: {},
@@ -9253,7 +9267,13 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
9253
9267
  minWidth: "auto",
9254
9268
  resizable: true,
9255
9269
  useKey: true,
9256
- maxFixedSize: 4
9270
+ maxFixedSize: 4,
9271
+ autoOptions: {
9272
+ isCalcHeader: true,
9273
+ isCalcBody: false,
9274
+ // 不自适应计算宽度
9275
+ isCalcFooter: true
9276
+ }
9257
9277
  }) },
9258
9278
  rowConfig: { default: () => ({
9259
9279
  useKey: true,
@@ -9660,7 +9680,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
9660
9680
  class: normalizeClass(unref(e)("selection-count"))
9661
9681
  }, [
9662
9682
  createElementVNode("span", null, toDisplayString(unref(t2)("max.basic.selected")), 1),
9663
- createElementVNode("span", _hoisted_1$9, toDisplayString(unref(getSelectRows)().length), 1),
9683
+ createElementVNode("span", _hoisted_1$a, toDisplayString(unref(getSelectRows)().length), 1),
9664
9684
  createElementVNode("span", null, toDisplayString(unref(t2)("max.basic.item")), 1)
9665
9685
  ], 2)
9666
9686
  ], 2)) : createCommentVNode("", true),
@@ -9686,6 +9706,69 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
9686
9706
  };
9687
9707
  }
9688
9708
  });
9709
+ const BASIC_TABLE_FILTER_INPUT_RENDERER = "XBasicTableFilterInput";
9710
+ function isEmptyValue(value) {
9711
+ return value === null || value === void 0 || value === "";
9712
+ }
9713
+ function updateFilterOptionStatus(params, option) {
9714
+ params.$table.updateFilterOptionStatus(option, !isEmptyValue(option.data));
9715
+ }
9716
+ function callFilterEvent(events, name, params, payload) {
9717
+ var _a;
9718
+ (_a = events == null ? void 0 : events[name]) == null ? void 0 : _a.call(events, params, payload);
9719
+ }
9720
+ const basicTableFilterRenderers = {
9721
+ [BASIC_TABLE_FILTER_INPUT_RENDERER]: {
9722
+ tableFilterClassName: "x-basic-table-filter-input",
9723
+ showTableFilterFooter: true,
9724
+ createTableFilterOptions: () => [{
9725
+ data: ""
9726
+ }],
9727
+ renderTableFilter(renderOpts, params) {
9728
+ const {
9729
+ props = {},
9730
+ attrs = {},
9731
+ events = {}
9732
+ } = renderOpts;
9733
+ return params.column.filters.map((option, index2) => {
9734
+ return createVNode(NInput, mergeProps({
9735
+ "key": index2,
9736
+ "clearable": true,
9737
+ "placeholder": "请输入筛选内容"
9738
+ }, attrs, props, {
9739
+ "value": option.data,
9740
+ "onUpdateValue": (value) => {
9741
+ option.data = value;
9742
+ updateFilterOptionStatus(params, option);
9743
+ callFilterEvent(events, "update:value", params, value);
9744
+ },
9745
+ "onChange": (value) => {
9746
+ updateFilterOptionStatus(params, option);
9747
+ callFilterEvent(events, "change", params, value);
9748
+ },
9749
+ "onBlur": (event) => {
9750
+ updateFilterOptionStatus(params, option);
9751
+ callFilterEvent(events, "blur", params, event);
9752
+ },
9753
+ "onKeydown": (event) => {
9754
+ if (event.key !== "Enter") return;
9755
+ event.preventDefault();
9756
+ updateFilterOptionStatus(params, option);
9757
+ params.$table.saveFilterByEvent(event, params.column);
9758
+ callFilterEvent(events, "keydown", params, event);
9759
+ }
9760
+ }), null);
9761
+ });
9762
+ },
9763
+ tableFilterDefaultMethod({
9764
+ option,
9765
+ cellValue
9766
+ }) {
9767
+ if (isEmptyValue(option.data)) return true;
9768
+ return String(cellValue != null ? cellValue : "").includes(String(option.data));
9769
+ }
9770
+ }
9771
+ };
9689
9772
  const formatterFYN = (value) => {
9690
9773
  return value ? t("max.basic.yes") : t("max.basic.no");
9691
9774
  };
@@ -9712,8 +9795,8 @@ const MaxUI = {
9712
9795
  getI18n,
9713
9796
  t
9714
9797
  };
9715
- const _hoisted_1$8 = ["title"];
9716
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
9798
+ const _hoisted_1$9 = ["title"];
9799
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
9717
9800
  __name: "BasicText",
9718
9801
  props: {
9719
9802
  icon: { default: "" },
@@ -9753,7 +9836,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
9753
9836
  class: normalizeClass(basicTextClass.value),
9754
9837
  title: unref(isString$1)(unref(mergedValueRef)) ? unref(mergedValueRef) : void 0
9755
9838
  }, [
9756
- __props.icon ? (openBlock(), createBlock(_sfc_main$11, {
9839
+ __props.icon ? (openBlock(), createBlock(_sfc_main$12, {
9757
9840
  key: 0,
9758
9841
  icon: __props.icon,
9759
9842
  class: normalizeClass(__props.iconClass),
@@ -9762,12 +9845,12 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
9762
9845
  renderSlot(_ctx.$slots, "default", {}, () => [
9763
9846
  createTextVNode(toDisplayString(unref(mergedValueRef)), 1)
9764
9847
  ])
9765
- ], 10, _hoisted_1$8);
9848
+ ], 10, _hoisted_1$9);
9766
9849
  };
9767
9850
  }
9768
9851
  });
9769
- const XBasicText = withInstall(_sfc_main$E);
9770
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
9852
+ const XBasicText = withInstall(_sfc_main$F);
9853
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
9771
9854
  __name: "BasicCard",
9772
9855
  props: {
9773
9856
  title: {},
@@ -9806,8 +9889,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
9806
9889
  };
9807
9890
  }
9808
9891
  });
9809
- const XBasicCard = withInstall(_sfc_main$D);
9810
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
9892
+ const XBasicCard = withInstall(_sfc_main$E);
9893
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
9811
9894
  ...{
9812
9895
  inheritAttrs: false
9813
9896
  },
@@ -9932,7 +10015,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
9932
10015
  }
9933
10016
  });
9934
10017
  const basicCascaderProps = {};
9935
- const XBasicCascader = withInstall(_sfc_main$C);
10018
+ const XBasicCascader = withInstall(_sfc_main$D);
9936
10019
  const basicCheckboxGroupKey = Symbol("basic-checkbox-group");
9937
10020
  const createBasicCheckboxGroupContext = (props) => {
9938
10021
  return provide(basicCheckboxGroupKey, props);
@@ -9953,7 +10036,7 @@ const IconCheck = /* @__PURE__ */ defineComponent({
9953
10036
  }, null)]);
9954
10037
  }
9955
10038
  });
9956
- const _sfc_main$B = defineComponent({
10039
+ const _sfc_main$C = defineComponent({
9957
10040
  name: "IconHover",
9958
10041
  props: {
9959
10042
  disabled: {
@@ -9981,7 +10064,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
9981
10064
  renderSlot(_ctx.$slots, "default")
9982
10065
  ], 2);
9983
10066
  }
9984
- const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$1]]);
10067
+ const IconHover = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$1]]);
9985
10068
  const basicCheckboxProps = {
9986
10069
  /**
9987
10070
  * @zh 绑定值
@@ -10654,7 +10737,7 @@ const BasicCol = /* @__PURE__ */ defineComponent({
10654
10737
  }
10655
10738
  });
10656
10739
  const XBasicCol = withInstall(BasicCol);
10657
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
10740
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
10658
10741
  __name: "BasicCountTo",
10659
10742
  props: {
10660
10743
  startValue: { default: 0 },
@@ -10715,8 +10798,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
10715
10798
  };
10716
10799
  }
10717
10800
  });
10718
- const XBasicCountTo = withInstall(_sfc_main$A);
10719
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
10801
+ const XBasicCountTo = withInstall(_sfc_main$B);
10802
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
10720
10803
  __name: "BasicDatePicker",
10721
10804
  props: {
10722
10805
  disabled: { type: Boolean, default: false },
@@ -10776,7 +10859,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
10776
10859
  };
10777
10860
  }
10778
10861
  });
10779
- const XBasicDatePicker = withInstall(_sfc_main$z);
10862
+ const XBasicDatePicker = withInstall(_sfc_main$A);
10780
10863
  const basicDragVerifyProps = {
10781
10864
  value: {
10782
10865
  type: Boolean,
@@ -10823,7 +10906,7 @@ const basicDragVerifyProps = {
10823
10906
  default: () => ({})
10824
10907
  }
10825
10908
  };
10826
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
10909
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
10827
10910
  name: "BasicDragVerify",
10828
10911
  props: basicDragVerifyProps,
10829
10912
  emits: ["success", "update:value", "change", "start", "move", "end"],
@@ -11126,7 +11209,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
11126
11209
  };
11127
11210
  }
11128
11211
  });
11129
- const XBasicDragVerify = withInstall(_sfc_main$y);
11212
+ const XBasicDragVerify = withInstall(_sfc_main$z);
11130
11213
  const basicHelpProps = {
11131
11214
  /**
11132
11215
  * Whether to display the serial number
@@ -11142,7 +11225,7 @@ const basicHelpProps = {
11142
11225
  default: ""
11143
11226
  }
11144
11227
  };
11145
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
11228
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
11146
11229
  name: "BasicHelp",
11147
11230
  components: {
11148
11231
  XBasicSvgIcon
@@ -11188,8 +11271,8 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
11188
11271
  });
11189
11272
  }
11190
11273
  });
11191
- const XBasicHelp = withInstall(_sfc_main$x);
11192
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
11274
+ const XBasicHelp = withInstall(_sfc_main$y);
11275
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
11193
11276
  __name: "BasicTitle",
11194
11277
  props: {
11195
11278
  helpMessage: {},
@@ -11232,12 +11315,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
11232
11315
  };
11233
11316
  }
11234
11317
  });
11235
- const XBasicTitle = withInstall(_sfc_main$w);
11236
- const _hoisted_1$7 = {
11318
+ const XBasicTitle = withInstall(_sfc_main$x);
11319
+ const _hoisted_1$8 = {
11237
11320
  key: 0,
11238
11321
  class: "footer-wrapper"
11239
11322
  };
11240
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
11323
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
11241
11324
  __name: "BasicDrawer",
11242
11325
  props: {
11243
11326
  showCancelBtn: { type: Boolean, default: true },
@@ -11371,7 +11454,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
11371
11454
  !_ctx.$slots.footer ? {
11372
11455
  name: "footer",
11373
11456
  fn: withCtx(() => [
11374
- __props.showFooter ? (openBlock(), createElementBlock("div", _hoisted_1$7, [
11457
+ __props.showFooter ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
11375
11458
  renderSlot(_ctx.$slots, "before-footer"),
11376
11459
  __props.showCancelBtn ? (openBlock(), createBlock(unref(XBasicButton), {
11377
11460
  key: 0,
@@ -11411,8 +11494,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
11411
11494
  };
11412
11495
  }
11413
11496
  });
11414
- const XBasicDrawer = withInstall(_sfc_main$v);
11415
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
11497
+ const XBasicDrawer = withInstall(_sfc_main$w);
11498
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
11416
11499
  __name: "BasicDrawerFooter",
11417
11500
  props: {
11418
11501
  showDeleteButton: { type: Boolean, default: false },
@@ -11489,7 +11572,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
11489
11572
  };
11490
11573
  }
11491
11574
  });
11492
- const XBasicDrawerFooter = withInstall(_sfc_main$u);
11575
+ const XBasicDrawerFooter = withInstall(_sfc_main$v);
11493
11576
  const basicEditBatchKey = Symbol("basic-edit-batch");
11494
11577
  const createBasicEditBatchContext = (props) => {
11495
11578
  return provide(basicEditBatchKey, props);
@@ -11497,8 +11580,8 @@ const createBasicEditBatchContext = (props) => {
11497
11580
  const useBasicEditBatchContext = () => {
11498
11581
  return inject(basicEditBatchKey);
11499
11582
  };
11500
- const _hoisted_1$6 = ["disabled"];
11501
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
11583
+ const _hoisted_1$7 = ["disabled"];
11584
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
11502
11585
  __name: "EditBatchAction",
11503
11586
  props: {
11504
11587
  disabled: { type: Boolean, default: false },
@@ -11554,11 +11637,11 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
11554
11637
  _: 1
11555
11638
  }, 16, ["class", "onClick"])) : createCommentVNode("", true),
11556
11639
  renderSlot(_ctx.$slots, "submitAfter")
11557
- ], 10, _hoisted_1$6);
11640
+ ], 10, _hoisted_1$7);
11558
11641
  };
11559
11642
  }
11560
11643
  });
11561
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
11644
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
11562
11645
  __name: "BasicHidden",
11563
11646
  props: {
11564
11647
  value: {},
@@ -11585,7 +11668,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
11585
11668
  };
11586
11669
  }
11587
11670
  });
11588
- const XBasicHidden = withInstall(_sfc_main$s);
11671
+ const XBasicHidden = withInstall(_sfc_main$t);
11589
11672
  const basicRadioGroupKey = Symbol("basic-radio-group");
11590
11673
  const createBasicRadioGroupContext = (props) => {
11591
11674
  return provide(basicRadioGroupKey, props);
@@ -11977,7 +12060,7 @@ const BasicRadioGroup = /* @__PURE__ */ defineComponent({
11977
12060
  }
11978
12061
  });
11979
12062
  const XBasicRadioGroup = withInstall(BasicRadioGroup);
11980
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
12063
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
11981
12064
  ...{
11982
12065
  inheritAttrs: false
11983
12066
  },
@@ -12103,7 +12186,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
12103
12186
  }
12104
12187
  });
12105
12188
  const basicSelectProps = {};
12106
- const XBasicSelect = withInstall(_sfc_main$r);
12189
+ const XBasicSelect = withInstall(_sfc_main$s);
12107
12190
  const componentMap$1 = /* @__PURE__ */ new Map();
12108
12191
  componentMap$1.set("Input", NInput);
12109
12192
  componentMap$1.set("InputNumber", NInputNumber);
@@ -12182,7 +12265,7 @@ function isComponentEditBatchSchema(schema) {
12182
12265
  function _isSlot$1(s) {
12183
12266
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
12184
12267
  }
12185
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
12268
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
12186
12269
  name: "BasicEditBatchItem",
12187
12270
  components: {
12188
12271
  XBasicHelp
@@ -12920,7 +13003,7 @@ function useEditBatchValues({ getProps, defaultValueRef, getSchema, formModel })
12920
13003
  }
12921
13004
  return { handleFormValues, initDefault };
12922
13005
  }
12923
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
13006
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
12924
13007
  __name: "BasicEditBatch",
12925
13008
  props: {
12926
13009
  name: {},
@@ -13050,7 +13133,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
13050
13133
  options: unref(getOptions)
13051
13134
  }, null, 8, ["value", "options"])
13052
13135
  ], 2),
13053
- schemaItemRef.value ? (openBlock(), createBlock(_sfc_main$q, {
13136
+ schemaItemRef.value ? (openBlock(), createBlock(_sfc_main$r, {
13054
13137
  key: 0,
13055
13138
  schema: schemaItemRef.value,
13056
13139
  "edit-batch-props": getProps.value,
@@ -13067,7 +13150,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
13067
13150
  };
13068
13151
  })
13069
13152
  ]), 1032, ["schema", "edit-batch-props", "all-default-values", "form-model"])) : createCommentVNode("", true),
13070
- createVNode(_sfc_main$t, normalizeProps(guardReactiveProps(getEditBatchActionBindProps.value)), createSlots({ _: 2 }, [
13153
+ createVNode(_sfc_main$u, normalizeProps(guardReactiveProps(getEditBatchActionBindProps.value)), createSlots({ _: 2 }, [
13071
13154
  renderList(["resetBefore", "submitBefore", "submitAfter"], (item) => {
13072
13155
  return {
13073
13156
  name: item,
@@ -13081,7 +13164,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
13081
13164
  };
13082
13165
  }
13083
13166
  });
13084
- const XBasicEditBatch = withInstall(_sfc_main$p);
13167
+ const XBasicEditBatch = withInstall(_sfc_main$q);
13085
13168
  const basicFontIconProps = {
13086
13169
  icon: {
13087
13170
  type: String,
@@ -13132,7 +13215,7 @@ const createBasicFormContext = (props) => {
13132
13215
  const useBasicFormContext = () => {
13133
13216
  return inject(basicFormKey);
13134
13217
  };
13135
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
13218
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
13136
13219
  __name: "FormAction",
13137
13220
  props: {
13138
13221
  showActionButtonGroup: { type: Boolean, default: true },
@@ -13262,7 +13345,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
13262
13345
  };
13263
13346
  }
13264
13347
  });
13265
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
13348
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
13266
13349
  __name: "BasicMasterTrigger",
13267
13350
  props: {
13268
13351
  value: {},
@@ -13328,7 +13411,240 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
13328
13411
  };
13329
13412
  }
13330
13413
  });
13331
- const XBasicMasterTrigger = withInstall(_sfc_main$n);
13414
+ const XBasicMasterTrigger = withInstall(_sfc_main$o);
13415
+ const _hoisted_1$6 = ["disabled"];
13416
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
13417
+ ...{
13418
+ inheritAttrs: false
13419
+ },
13420
+ __name: "BasicMultilingualInput",
13421
+ props: {
13422
+ value: { default: void 0 },
13423
+ modelValue: { default: void 0 },
13424
+ defaultValue: { default: "" },
13425
+ languages: { default: () => [
13426
+ { value: "en", label: "英语 (EN)", flag: "🇺🇸" },
13427
+ { value: "fr", label: "法语 (FR)", flag: "🇫🇷" },
13428
+ { value: "de", label: "德语 (DE)", flag: "🇩🇪" }
13429
+ ] },
13430
+ defaultLanguage: { default: "zh-CN" },
13431
+ languageIcon: { default: "ri:global-line" },
13432
+ showLanguageIcon: { type: Boolean, default: true },
13433
+ modalWidth: { default: 600 },
13434
+ onUpdateValue: {},
13435
+ "onUpdate:value": {},
13436
+ "onUpdate:modelValue": {},
13437
+ "onUpdate:languages": {},
13438
+ onInput: {},
13439
+ onChange: {},
13440
+ onLanguageClick: {},
13441
+ onConfirm: {}
13442
+ },
13443
+ emits: ["update:value", "update:modelValue", "update:languages", "input", "change", "language-click", "confirm"],
13444
+ setup(__props, { emit: __emit }) {
13445
+ const props = __props;
13446
+ const emit = __emit;
13447
+ const attrs = useAttrs();
13448
+ const { b, e } = useNamespace("basic-multilingual-input");
13449
+ const { b: bm, e: em } = useNamespace("basic-multilingual-input-modal");
13450
+ const { t: t2 } = useLocale();
13451
+ const uncontrolledValueRef = ref(props.defaultValue);
13452
+ const controlledValueRef = toRef(props, "value");
13453
+ const controlledModelValueRef = toRef(props, "modelValue");
13454
+ const modalVisibleRef = ref(false);
13455
+ const currentLanguagesRef = ref(cloneLanguages(props.languages));
13456
+ const draftLanguagesRef = ref([]);
13457
+ const mergedValueRef = computed(() => {
13458
+ if (controlledValueRef.value !== void 0) return controlledValueRef.value;
13459
+ if (controlledModelValueRef.value !== void 0) return controlledModelValueRef.value;
13460
+ return uncontrolledValueRef.value;
13461
+ });
13462
+ const isLanguageTriggerDisabled = computed(() => Boolean(props.disabled || props.readonly));
13463
+ const modalStyle = computed(() => ({
13464
+ width: typeof props.modalWidth === "number" ? `${props.modalWidth}px` : props.modalWidth
13465
+ }));
13466
+ const computedProps = computed(() => ({
13467
+ ...attrs,
13468
+ ...omit$1(props, ["value", "modelValue", "defaultValue", "languages", "defaultLanguage", "languageIcon", "showLanguageIcon", "modalWidth", "onUpdateValue", "onUpdate:value", "onUpdate:modelValue", "onUpdate:languages", "onInput", "onChange", "onLanguageClick", "onConfirm"])
13469
+ }));
13470
+ watch(
13471
+ () => props.languages,
13472
+ (value) => {
13473
+ currentLanguagesRef.value = cloneLanguages(value);
13474
+ },
13475
+ { deep: true }
13476
+ );
13477
+ watch(
13478
+ () => props.defaultValue,
13479
+ (value) => {
13480
+ if (controlledValueRef.value === void 0 && controlledModelValueRef.value === void 0) {
13481
+ uncontrolledValueRef.value = value;
13482
+ }
13483
+ }
13484
+ );
13485
+ function cloneLanguages(languages = []) {
13486
+ return languages.map((language) => ({ ...language }));
13487
+ }
13488
+ function updateLanguages(languages) {
13489
+ currentLanguagesRef.value = cloneLanguages(languages);
13490
+ emit("update:languages", languages);
13491
+ if (props["onUpdate:languages"]) call(props["onUpdate:languages"], languages);
13492
+ }
13493
+ function updateValue(value) {
13494
+ if (props.disabled) return;
13495
+ uncontrolledValueRef.value = value;
13496
+ emit("update:value", value);
13497
+ emit("update:modelValue", value);
13498
+ const { onUpdateValue, "onUpdate:value": _onUpdateValue, "onUpdate:modelValue": _onUpdateModelValue } = props;
13499
+ if (onUpdateValue) call(onUpdateValue, value);
13500
+ if (_onUpdateValue) call(_onUpdateValue, value);
13501
+ if (_onUpdateModelValue) call(_onUpdateModelValue, value);
13502
+ }
13503
+ function handleInput(value) {
13504
+ emit("input", value);
13505
+ if (props.onInput) call(props.onInput, value);
13506
+ }
13507
+ function handleChange(value) {
13508
+ emit("change", value);
13509
+ if (props.onChange) call(props.onChange, value);
13510
+ }
13511
+ function handleTranslationUpdate(index2, translation) {
13512
+ draftLanguagesRef.value = draftLanguagesRef.value.map((language, currentIndex) => currentIndex === index2 ? { ...language, translation } : language);
13513
+ }
13514
+ function handleLanguageClick(event) {
13515
+ if (isLanguageTriggerDisabled.value) return;
13516
+ draftLanguagesRef.value = cloneLanguages(currentLanguagesRef.value);
13517
+ modalVisibleRef.value = true;
13518
+ emit("language-click", event);
13519
+ if (props.onLanguageClick) call(props.onLanguageClick, event);
13520
+ }
13521
+ function handleModalConfirm() {
13522
+ const languages = cloneLanguages(draftLanguagesRef.value);
13523
+ updateLanguages(languages);
13524
+ emit("confirm", languages);
13525
+ if (props.onConfirm) call(props.onConfirm, languages);
13526
+ modalVisibleRef.value = false;
13527
+ }
13528
+ function handleModalCancel() {
13529
+ modalVisibleRef.value = false;
13530
+ }
13531
+ return (_ctx, _cache) => {
13532
+ return openBlock(), createElementBlock(Fragment, null, [
13533
+ createElementVNode("div", {
13534
+ class: normalizeClass(unref(b)())
13535
+ }, [
13536
+ createVNode(unref(NInput), mergeProps(computedProps.value, {
13537
+ value: mergedValueRef.value,
13538
+ "onUpdate:value": updateValue,
13539
+ onInput: handleInput,
13540
+ onChange: handleChange
13541
+ }), createSlots({
13542
+ suffix: withCtx(() => [
13543
+ renderSlot(_ctx.$slots, "suffix", {
13544
+ value: mergedValueRef.value,
13545
+ disabled: props.disabled,
13546
+ languageClick: handleLanguageClick
13547
+ }, () => [
13548
+ props.showLanguageIcon ? (openBlock(), createElementBlock("button", {
13549
+ key: 0,
13550
+ type: "button",
13551
+ class: normalizeClass(unref(e)("language-trigger")),
13552
+ disabled: isLanguageTriggerDisabled.value,
13553
+ onClick: withModifiers(handleLanguageClick, ["stop"])
13554
+ }, [
13555
+ createVNode(unref(XBasicSvgIcon), {
13556
+ icon: props.languageIcon,
13557
+ class: normalizeClass(unref(e)("language-icon"))
13558
+ }, null, 8, ["icon", "class"])
13559
+ ], 10, _hoisted_1$6)) : createCommentVNode("", true)
13560
+ ])
13561
+ ]),
13562
+ _: 2
13563
+ }, [
13564
+ _ctx.$slots.prefix ? {
13565
+ name: "prefix",
13566
+ fn: withCtx(() => [
13567
+ renderSlot(_ctx.$slots, "prefix")
13568
+ ]),
13569
+ key: "0"
13570
+ } : void 0
13571
+ ]), 1040, ["value"])
13572
+ ], 2),
13573
+ createVNode(unref(NModal), {
13574
+ title: unref(t2)("max.multilingualInput.modalTitle"),
13575
+ show: modalVisibleRef.value,
13576
+ "onUpdate:show": _cache[0] || (_cache[0] = ($event) => modalVisibleRef.value = $event),
13577
+ preset: "dialog",
13578
+ style: normalizeStyle(modalStyle.value),
13579
+ "show-icon": false,
13580
+ "mask-closable": false,
13581
+ class: normalizeClass(unref(bm)())
13582
+ }, {
13583
+ default: withCtx(() => [
13584
+ createVNode(unref(NForm), {
13585
+ "label-placement": "left",
13586
+ "label-width": "120px",
13587
+ "label-align": "left"
13588
+ }, {
13589
+ default: withCtx(() => [
13590
+ (openBlock(true), createElementBlock(Fragment, null, renderList(draftLanguagesRef.value, (language, index2) => {
13591
+ return openBlock(), createBlock(unref(NFormItem), {
13592
+ key: language.value,
13593
+ class: normalizeClass(unref(em)("language-row")),
13594
+ label: language.label,
13595
+ path: language.value
13596
+ }, {
13597
+ label: withCtx(() => [
13598
+ language.flag ? (openBlock(), createElementBlock("span", {
13599
+ key: 0,
13600
+ class: normalizeClass(unref(em)("language-flag"))
13601
+ }, toDisplayString(language.flag), 3)) : createCommentVNode("", true),
13602
+ createElementVNode("span", null, toDisplayString(language.label), 1)
13603
+ ]),
13604
+ default: withCtx(() => [
13605
+ createVNode(unref(NInput), {
13606
+ id: `${props.defaultLanguage}-${language.value}`,
13607
+ value: language.translation,
13608
+ placeholder: language.placeholder || "请输入翻译内容",
13609
+ "onUpdate:value": ($event) => handleTranslationUpdate(index2, $event)
13610
+ }, null, 8, ["id", "value", "placeholder", "onUpdate:value"])
13611
+ ]),
13612
+ _: 2
13613
+ }, 1032, ["class", "label", "path"]);
13614
+ }), 128))
13615
+ ]),
13616
+ _: 1
13617
+ }),
13618
+ createElementVNode("span", {
13619
+ class: normalizeClass(unref(em)("footer"))
13620
+ }, [
13621
+ createVNode(unref(XBasicButton), {
13622
+ class: normalizeClass(unref(em)("footer-btn")),
13623
+ onClick: handleModalCancel
13624
+ }, {
13625
+ default: withCtx(() => [
13626
+ createTextVNode(toDisplayString(unref(t2)("max.button.cancel")), 1)
13627
+ ]),
13628
+ _: 1
13629
+ }, 8, ["class"]),
13630
+ createVNode(unref(XBasicButton), {
13631
+ type: "primary",
13632
+ onClick: handleModalConfirm
13633
+ }, {
13634
+ default: withCtx(() => [
13635
+ createTextVNode(toDisplayString(unref(t2)("max.button.confirm")), 1)
13636
+ ]),
13637
+ _: 1
13638
+ })
13639
+ ], 2)
13640
+ ]),
13641
+ _: 1
13642
+ }, 8, ["title", "show", "style", "class"])
13643
+ ], 64);
13644
+ };
13645
+ }
13646
+ });
13647
+ const XBasicMultilingualInput = withInstall(_sfc_main$n);
13332
13648
  const basicScrollTextProps = {
13333
13649
  /**
13334
13650
  * Text content
@@ -13434,6 +13750,7 @@ componentMap.set("BasicRadioGroup", XBasicRadioGroup);
13434
13750
  componentMap.set("BasicCascader", XBasicCascader);
13435
13751
  componentMap.set("BasicScrollText", XBasicScrollText);
13436
13752
  componentMap.set("BasicMasterTrigger", XBasicMasterTrigger);
13753
+ componentMap.set("BasicMultilingualInput", XBasicMultilingualInput);
13437
13754
  function basicFormAddComponent(compName, component) {
13438
13755
  componentMap.set(compName, component);
13439
13756
  }
@@ -13920,7 +14237,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
13920
14237
  ...itemProps,
13921
14238
  style: {
13922
14239
  "--n-feedback-height": "16px",
13923
- "--n-label-padding": "0 12px 0 12px"
14240
+ "--n-label-padding": props.formProps.labelPlacement === "top" ? "0" : "0 12px 0 12px"
13924
14241
  }
13925
14242
  };
13926
14243
  const getContent = () => {
@@ -14454,8 +14771,9 @@ function getDefaultValue(schema, defaultValueRef, key2) {
14454
14771
  }
14455
14772
  function useFormGrid(propsRef) {
14456
14773
  const getRow = computed(() => {
14457
- const { baseRowStyle = {}, rowProps } = unref(propsRef);
14774
+ const { baseRowStyle = {}, labelPlacement, rowProps } = unref(propsRef);
14458
14775
  return {
14776
+ gutter: labelPlacement === "top" ? [16, 0] : 0,
14459
14777
  style: baseRowStyle,
14460
14778
  ...rowProps
14461
14779
  };
@@ -14819,7 +15137,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
14819
15137
  })
14820
15138
  ]), 1032, ["is-advanced", "schema", "form-props", "all-default-values", "form-model"]);
14821
15139
  }), 128)),
14822
- createVNode(_sfc_main$o, mergeProps(getFormActionBindProps.value, { onToggleAdvanced: unref(handleToggleAdvanced) }), createSlots({ _: 2 }, [
15140
+ createVNode(_sfc_main$p, mergeProps(getFormActionBindProps.value, { onToggleAdvanced: unref(handleToggleAdvanced) }), createSlots({ _: 2 }, [
14823
15141
  renderList(["resetBefore", "submitBefore", "advanceBefore", "advanceAfter"], (item) => {
14824
15142
  return {
14825
15143
  name: item,
@@ -30902,10 +31220,11 @@ const vxeTableFormatter = {
30902
31220
  }
30903
31221
  };
30904
31222
  VxeUI2.formats.mixin(vxeTableFormatter);
31223
+ VxeUI2.renderer.mixin(basicTableFilterRenderers);
30905
31224
  VxeUI2.setConfig({
30906
31225
  zIndex: 2e3
30907
31226
  });
30908
- const XBasicTable = withInstall(_sfc_main$F);
31227
+ const XBasicTable = withInstall(_sfc_main$G);
30909
31228
  const IMPORT_PREVIEW_ROW_NO_FIELD = "rowNo";
30910
31229
  const IMPORT_PREVIEW_ERROR_FIELD = "errorMsg";
30911
31230
  function isErrorRow(row) {
@@ -31607,6 +31926,7 @@ const components = [
31607
31926
  XBasicGradientTitle,
31608
31927
  XBasicDrawer,
31609
31928
  XBasicModal,
31929
+ XBasicMultilingualInput,
31610
31930
  XBasicPage,
31611
31931
  XBasicRadioGroup,
31612
31932
  XBasicCheckboxGroup,
@@ -31669,6 +31989,7 @@ const updateConfig = () => {
31669
31989
  updateConfig();
31670
31990
  const install = installer.install;
31671
31991
  export {
31992
+ BASIC_TABLE_FILTER_INPUT_RENDERER,
31672
31993
  LIST_IGNORE,
31673
31994
  MaxUI,
31674
31995
  VxeUI3 as TableGlobal,
@@ -31722,6 +32043,7 @@ export {
31722
32043
  XBasicMasterTrigger,
31723
32044
  XBasicMessageBox,
31724
32045
  XBasicModal,
32046
+ XBasicMultilingualInput,
31725
32047
  XBasicNotification,
31726
32048
  XBasicPage,
31727
32049
  XBasicPanel,
@@ -31779,6 +32101,7 @@ export {
31779
32101
  basicScrollTextProps,
31780
32102
  basicSelectProps,
31781
32103
  basicSubPanelProps,
32104
+ basicTableFilterRenderers,
31782
32105
  basicUploadDraggerProps,
31783
32106
  basicUploadProps,
31784
32107
  configProviderProps,
@@ -31794,6 +32117,7 @@ export {
31794
32117
  notificationTypes,
31795
32118
  provideGlobalConfig,
31796
32119
  responsiveArray,
32120
+ setTableGlobalFilterRenderers,
31797
32121
  setTableGlobalFormats,
31798
32122
  treeNodeProps,
31799
32123
  treeNodePropsPass$1 as treeNodePropsPass,