@maxax/ui 1.1.8 → 1.1.10

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.
package/dist/index.mjs CHANGED
@@ -10049,6 +10049,73 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
10049
10049
  };
10050
10050
  }
10051
10051
  });
10052
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
10053
+ __name: "BasicMasterTrigger",
10054
+ props: {
10055
+ value: {},
10056
+ readonly: { type: Boolean, default: true },
10057
+ disabled: { type: Boolean, default: false },
10058
+ defaultValue: {},
10059
+ onUpdateValue: {},
10060
+ onChange: {},
10061
+ onSelect: {}
10062
+ },
10063
+ setup(__props) {
10064
+ const props = __props;
10065
+ const attrs = useAttrs();
10066
+ const { b, e } = useNamespace("basic-master-trigger");
10067
+ const uncontrolledValueRef = ref(props.defaultValue || "");
10068
+ const controlledValueRef = toRef(props, "value");
10069
+ const mergedValueRef = computed(() => {
10070
+ if (controlledValueRef.value === void 0) {
10071
+ return uncontrolledValueRef.value;
10072
+ }
10073
+ return controlledValueRef.value;
10074
+ });
10075
+ function onUpdateValueHandler(value) {
10076
+ if (props.disabled) return;
10077
+ const { onChange, onUpdateValue } = props;
10078
+ if (onChange) call(onChange, value);
10079
+ if (onUpdateValue) call(onUpdateValue, value);
10080
+ uncontrolledValueRef.value = value;
10081
+ }
10082
+ function onSelectHandler() {
10083
+ var _a;
10084
+ if (props.disabled) return;
10085
+ (_a = props.onSelect) == null ? void 0 : _a.call(props);
10086
+ }
10087
+ watch(controlledValueRef, (value) => {
10088
+ if (value !== void 0) {
10089
+ uncontrolledValueRef.value = value;
10090
+ } else {
10091
+ uncontrolledValueRef.value = "";
10092
+ }
10093
+ });
10094
+ return (_ctx, _cache) => {
10095
+ return openBlock(), createBlock(unref(NInput), mergeProps({
10096
+ value: mergedValueRef.value,
10097
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => mergedValueRef.value = $event)
10098
+ }, unref(attrs), {
10099
+ disabled: __props.disabled,
10100
+ class: unref(b)(),
10101
+ title: mergedValueRef.value,
10102
+ readonly: "",
10103
+ "onUpdate:value": onUpdateValueHandler
10104
+ }), {
10105
+ suffix: withCtx(() => [
10106
+ withDirectives(createElementVNode("span", {
10107
+ class: normalizeClass(unref(e)("select-button")),
10108
+ onClick: onSelectHandler
10109
+ }, "选择", 2), [
10110
+ [vShow, !__props.disabled]
10111
+ ])
10112
+ ]),
10113
+ _: 1
10114
+ }, 16, ["value", "disabled", "class", "title"]);
10115
+ };
10116
+ }
10117
+ });
10118
+ const XBasicMasterTrigger = withInstall(_sfc_main$l);
10052
10119
  const basicScrollTextProps = {
10053
10120
  /**
10054
10121
  * Text content
@@ -10059,7 +10126,7 @@ const basicScrollTextProps = {
10059
10126
  default: ""
10060
10127
  }
10061
10128
  };
10062
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
10129
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
10063
10130
  name: "BasicScrollText",
10064
10131
  props: basicScrollTextProps,
10065
10132
  setup(props, {
@@ -10121,7 +10188,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
10121
10188
  }, [content()]) : null])]);
10122
10189
  }
10123
10190
  });
10124
- const XBasicScrollText = withInstall(_sfc_main$l);
10191
+ const XBasicScrollText = withInstall(_sfc_main$k);
10125
10192
  const componentMap = /* @__PURE__ */ new Map();
10126
10193
  componentMap.set("Input", NInput);
10127
10194
  componentMap.set("InputNumber", NInputNumber);
@@ -10153,6 +10220,7 @@ componentMap.set("BasicSelect", XBasicSelect);
10153
10220
  componentMap.set("BasicRadioGroup", XBasicRadioGroup);
10154
10221
  componentMap.set("BasicCascader", XBasicCascader);
10155
10222
  componentMap.set("BasicScrollText", XBasicScrollText);
10223
+ componentMap.set("BasicMasterTrigger", XBasicMasterTrigger);
10156
10224
  function basicFormAddComponent(compName, component) {
10157
10225
  componentMap.set(compName, component);
10158
10226
  }
@@ -10220,7 +10288,7 @@ function isComponentFormSchema(schema) {
10220
10288
  function _isSlot(s) {
10221
10289
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
10222
10290
  }
10223
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
10291
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
10224
10292
  name: "BasicFormItem",
10225
10293
  components: {
10226
10294
  XBasicHelp,
@@ -11320,7 +11388,7 @@ function useFormValues({ getProps, defaultValueRef, getSchema, formModel }) {
11320
11388
  }
11321
11389
  return { handleFormValues, initDefault };
11322
11390
  }
11323
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
11391
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
11324
11392
  __name: "BasicForm",
11325
11393
  props: {
11326
11394
  card: { type: Boolean, default: false },
@@ -11511,7 +11579,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
11511
11579
  default: withCtx(() => [
11512
11580
  renderSlot(_ctx.$slots, "formHeader"),
11513
11581
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getSchema), (schema) => {
11514
- return openBlock(), createBlock(_sfc_main$k, {
11582
+ return openBlock(), createBlock(_sfc_main$j, {
11515
11583
  key: schema.field,
11516
11584
  "is-advanced": unref(fieldsIsAdvancedMap)[schema.field],
11517
11585
  "form-action-type": formActionType,
@@ -11552,8 +11620,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
11552
11620
  };
11553
11621
  }
11554
11622
  });
11555
- const XBasicForm = withInstall(_sfc_main$j);
11556
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
11623
+ const XBasicForm = withInstall(_sfc_main$i);
11624
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
11557
11625
  __name: "BasicGradientTitle",
11558
11626
  props: {
11559
11627
  text: {}
@@ -11586,7 +11654,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
11586
11654
  }
11587
11655
  });
11588
11656
  const basicGradientTitleProps = {};
11589
- const XBasicGradientTitle = withInstall(_sfc_main$i);
11657
+ const XBasicGradientTitle = withInstall(_sfc_main$h);
11590
11658
  const basicIconOnlineProps = {
11591
11659
  icon: {
11592
11660
  type: String,
@@ -15485,7 +15553,7 @@ const IconJson = {
15485
15553
  };
15486
15554
  const _hoisted_1$5 = { class: "panel-icon-list" };
15487
15555
  const _hoisted_2$2 = ["title", "onClick"];
15488
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
15556
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
15489
15557
  __name: "BasicIconPicker",
15490
15558
  props: {
15491
15559
  disabled: { type: Boolean },
@@ -15715,7 +15783,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
15715
15783
  };
15716
15784
  }
15717
15785
  });
15718
- const XBasicIconPicker = withInstall(_sfc_main$h);
15786
+ const XBasicIconPicker = withInstall(_sfc_main$g);
15719
15787
  function useClipboard() {
15720
15788
  const copied = ref(false);
15721
15789
  const copy = async (source) => {
@@ -17160,7 +17228,7 @@ function usePagination$1(propsRef) {
17160
17228
  }
17161
17229
  return { getPagination, getPaginationInfo, setShowPagination, getShowPagination, setPagination };
17162
17230
  }
17163
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
17231
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
17164
17232
  __name: "BasicListPage",
17165
17233
  props: {
17166
17234
  listClassName: {},
@@ -17329,7 +17397,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
17329
17397
  };
17330
17398
  }
17331
17399
  });
17332
- const XBasicListPage = withInstall(_sfc_main$g);
17400
+ const XBasicListPage = withInstall(_sfc_main$f);
17333
17401
  function createLoadingComponent(options) {
17334
17402
  let afterLeaveTimer;
17335
17403
  const afterLeaveFlag = ref(false);
@@ -17598,7 +17666,7 @@ const XBasicLoading = {
17598
17666
  directive: vLoading,
17599
17667
  service: Loading
17600
17668
  };
17601
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
17669
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
17602
17670
  __name: "BasicModal",
17603
17671
  props: {
17604
17672
  title: {},
@@ -17781,8 +17849,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
17781
17849
  }
17782
17850
  });
17783
17851
  const basicModalProps = {};
17784
- const XBasicModal = withInstall(_sfc_main$f);
17785
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
17852
+ const XBasicModal = withInstall(_sfc_main$e);
17853
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
17786
17854
  __name: "BasicPage",
17787
17855
  props: {
17788
17856
  title: {},
@@ -17882,8 +17950,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
17882
17950
  };
17883
17951
  }
17884
17952
  });
17885
- const XBasicPage = withInstall(_sfc_main$e);
17886
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
17953
+ const XBasicPage = withInstall(_sfc_main$d);
17954
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
17887
17955
  __name: "BasicPanel",
17888
17956
  props: {
17889
17957
  title: {},
@@ -17920,7 +17988,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
17920
17988
  };
17921
17989
  }
17922
17990
  });
17923
- const XBasicPanel = withInstall(_sfc_main$d);
17991
+ const XBasicPanel = withInstall(_sfc_main$c);
17924
17992
  const regionJson = {
17925
17993
  "110000": "北京市",
17926
17994
  "110100": "市辖区",
@@ -21927,7 +21995,7 @@ const BasicRow = /* @__PURE__ */ defineComponent({
21927
21995
  }
21928
21996
  });
21929
21997
  const XBasicRow = withInstall(BasicRow);
21930
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
21998
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
21931
21999
  __name: "BasicSubPanel",
21932
22000
  props: {
21933
22001
  title: {}
@@ -21963,7 +22031,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
21963
22031
  }
21964
22032
  });
21965
22033
  const basicSubPanelProps = {};
21966
- const XBasicSubPanel = withInstall(_sfc_main$c);
22034
+ const XBasicSubPanel = withInstall(_sfc_main$b);
21967
22035
  const ROW_KEY = "_MAX_ROW_KEY";
21968
22036
  const PAGE_SIZE_OPTIONS = [10, 50, 80, 100];
21969
22037
  const PAGE_SIZE = 10;
@@ -22831,7 +22899,7 @@ const setting = {
22831
22899
  })
22832
22900
  };
22833
22901
  const _hoisted_1$4 = { class: "max-table-selection-count" };
22834
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
22902
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22835
22903
  __name: "BasicTable",
22836
22904
  props: /* @__PURE__ */ mergeDefaults({
22837
22905
  layouts: {},
@@ -23289,8 +23357,8 @@ const vxeTableFormatter = {
23289
23357
  }
23290
23358
  };
23291
23359
  VxeUI2.formats.mixin(vxeTableFormatter);
23292
- const XBasicTable = withInstall(_sfc_main$b);
23293
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
23360
+ const XBasicTable = withInstall(_sfc_main$a);
23361
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
23294
23362
  __name: "BasicTag",
23295
23363
  props: {
23296
23364
  tagType: { type: [Number, Boolean] },
@@ -23315,7 +23383,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
23315
23383
  };
23316
23384
  }
23317
23385
  });
23318
- const XBasicTag = withInstall(_sfc_main$a);
23386
+ const XBasicTag = withInstall(_sfc_main$9);
23319
23387
  const basicUploadDraggerProps = {
23320
23388
  capture: [Boolean, String],
23321
23389
  type: String,
@@ -23399,7 +23467,7 @@ const BasicUploadDragger = /* @__PURE__ */ defineComponent({
23399
23467
  const XBasicUploadDragger = withInstall(BasicUploadDragger);
23400
23468
  const _hoisted_1$3 = ["title"];
23401
23469
  const _hoisted_2$1 = ["title"];
23402
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
23470
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
23403
23471
  __name: "BasicViewBar",
23404
23472
  props: {
23405
23473
  fixed: { type: Boolean },
@@ -23511,8 +23579,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
23511
23579
  };
23512
23580
  }
23513
23581
  });
23514
- const XBasicViewBar = withInstall(_sfc_main$9);
23515
- const _sfc_main$8 = defineComponent({
23582
+ const XBasicViewBar = withInstall(_sfc_main$8);
23583
+ const _sfc_main$7 = defineComponent({
23516
23584
  name: "CLoadingIcon"
23517
23585
  });
23518
23586
  const _hoisted_1$2 = { viewBox: "0 0 50 50" };
@@ -23529,7 +23597,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
23529
23597
  }, null, -1)
23530
23598
  ])]);
23531
23599
  }
23532
- const LoadingIcon = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render]]);
23600
+ const LoadingIcon = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]);
23533
23601
  var ignoreEnum = /* @__PURE__ */ ((ignoreEnum2) => {
23534
23602
  ignoreEnum2["none"] = "none";
23535
23603
  ignoreEnum2["parents"] = "parents";
@@ -23730,7 +23798,7 @@ const useTreeNodeCls = (props, dragoverRefs) => {
23730
23798
  };
23731
23799
  const _hoisted_1$1 = ["d", "stroke-width", "stroke", "stroke-dasharray"];
23732
23800
  const _hoisted_2 = ["draggable"];
23733
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23801
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23734
23802
  ...{
23735
23803
  name: "VTreeNode"
23736
23804
  },
@@ -24044,7 +24112,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
24044
24112
  };
24045
24113
  }
24046
24114
  });
24047
- const XTreeNode = withInstall(_sfc_main$7);
24115
+ const XTreeNode = withInstall(_sfc_main$6);
24048
24116
  const useExpandAnimation = (renderNodesRef, renderStartRef, props) => {
24049
24117
  const expandAnimationStart = ref(false);
24050
24118
  const expandAnimationReady = ref(false);
@@ -25494,7 +25562,7 @@ const pickReadonly = (obj, ...keys) => {
25494
25562
  });
25495
25563
  return picked;
25496
25564
  };
25497
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
25565
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
25498
25566
  ...{
25499
25567
  name: "VTree",
25500
25568
  inheritAttrs: false
@@ -25983,7 +26051,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
25983
26051
  };
25984
26052
  }
25985
26053
  });
25986
- const XTree = withInstall(_sfc_main$6);
26054
+ const XTree = withInstall(_sfc_main$5);
25987
26055
  const useTreeSearchCls = (props, options) => {
25988
26056
  const { checkAllStatus, isShowingChecked } = options;
25989
26057
  const { b } = useNamespace("tree-search");
@@ -26069,7 +26137,7 @@ const DEFAULT_TREE_SEARCH_PROPS = {
26069
26137
  };
26070
26138
  const TREE_SEARCH_EVENTS = ["search", ...TREE_EVENTS];
26071
26139
  const _hoisted_1 = ["placeholder", "disabled"];
26072
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
26140
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
26073
26141
  ...{
26074
26142
  name: "VTreeSearch",
26075
26143
  inheritAttrs: false
@@ -26379,7 +26447,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
26379
26447
  };
26380
26448
  }
26381
26449
  });
26382
- const XTreeSearch = withInstall(_sfc_main$5);
26450
+ const XTreeSearch = withInstall(_sfc_main$4);
26383
26451
  const useTreeDropCls = (props, options) => {
26384
26452
  const { dropdownVisible, checkedCount, selectedTitle } = options;
26385
26453
  const { b } = useNamespace("tree-drop");
@@ -26451,7 +26519,7 @@ const DEFAULT_TREE_DROP_PROPS = {
26451
26519
  };
26452
26520
  const TREE_SEARCH_API_METHODS = [...TREE_API_METHODS, "clearKeyword", "getKeyword", "search"];
26453
26521
  const TREE_DROP_EVENTS = ["clear", "dropdown-visible-change", ...TREE_SEARCH_EVENTS];
26454
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
26522
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
26455
26523
  ...{
26456
26524
  name: "VTreeDrop",
26457
26525
  inheritAttrs: false
@@ -26816,7 +26884,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
26816
26884
  };
26817
26885
  }
26818
26886
  });
26819
- const XTreeDrop = withInstall(_sfc_main$4);
26887
+ const XTreeDrop = withInstall(_sfc_main$3);
26820
26888
  const components = [
26821
26889
  XCommonPinToggler,
26822
26890
  XCommonReloadButton,
@@ -26894,7 +26962,7 @@ const makeInstaller = (components2 = []) => {
26894
26962
  };
26895
26963
  };
26896
26964
  const installer = makeInstaller([...components]);
26897
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
26965
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
26898
26966
  __name: "BasicDrawerFooter",
26899
26967
  props: {
26900
26968
  showDeleteButton: { type: Boolean, default: false },
@@ -26971,72 +27039,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
26971
27039
  };
26972
27040
  }
26973
27041
  });
26974
- const XBasicDrawerFooter = withInstall(_sfc_main$3);
26975
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
26976
- __name: "BasicMasterTrigger",
26977
- props: {
26978
- value: {},
26979
- disabled: { type: Boolean },
26980
- defaultValue: {},
26981
- onUpdateValue: { type: Function },
26982
- onChange: { type: Function },
26983
- onSelect: { type: Function }
26984
- },
26985
- setup(__props) {
26986
- const props = __props;
26987
- const attrs = useAttrs();
26988
- const { b } = useNamespace("basic-master-trigger");
26989
- const uncontrolledValueRef = ref(props.defaultValue || "");
26990
- const controlledValueRef = toRef(props, "value");
26991
- const mergedValueRef = computed(() => {
26992
- if (controlledValueRef.value === void 0) {
26993
- return uncontrolledValueRef.value;
26994
- }
26995
- return controlledValueRef.value;
26996
- });
26997
- function onUpdateValueHandler(value) {
26998
- if (props.disabled) return;
26999
- const { onChange, onUpdateValue } = props;
27000
- if (onChange) call(onChange, value);
27001
- if (onUpdateValue) call(onUpdateValue, value);
27002
- uncontrolledValueRef.value = value;
27003
- }
27004
- function onSelectHandler() {
27005
- var _a;
27006
- if (props.disabled) return;
27007
- (_a = props.onSelect) == null ? void 0 : _a.call(props);
27008
- }
27009
- watch(controlledValueRef, (value) => {
27010
- if (value !== void 0) {
27011
- uncontrolledValueRef.value = value;
27012
- } else {
27013
- uncontrolledValueRef.value = "";
27014
- }
27015
- });
27016
- return (_ctx, _cache) => {
27017
- return openBlock(), createBlock(unref(NInput), mergeProps({
27018
- value: mergedValueRef.value,
27019
- "onUpdate:value": _cache[0] || (_cache[0] = ($event) => mergedValueRef.value = $event)
27020
- }, unref(attrs), {
27021
- disabled: __props.disabled,
27022
- class: unref(b)(),
27023
- title: mergedValueRef.value,
27024
- "onUpdate:value": onUpdateValueHandler
27025
- }), {
27026
- suffix: withCtx(() => [
27027
- withDirectives(createElementVNode("span", {
27028
- class: normalizeClass(unref(b)("select-button")),
27029
- onClick: onSelectHandler
27030
- }, "选择", 2), [
27031
- [vShow, !__props.disabled]
27032
- ])
27033
- ]),
27034
- _: 1
27035
- }, 16, ["value", "disabled", "class", "title"]);
27036
- };
27037
- }
27038
- });
27039
- const XBasicMasterTrigger = withInstall(_sfc_main$2);
27042
+ const XBasicDrawerFooter = withInstall(_sfc_main$2);
27040
27043
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
27041
27044
  __name: "BasicPanelPage",
27042
27045
  props: {