agilebuilder-ui 1.0.89 → 1.0.90-temp2

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/lib/super-ui.js CHANGED
@@ -17673,12 +17673,14 @@ function getControlConfig(e) {
17673
17673
  return e && e.controlConfig && (t = JSON.parse(e.controlConfig)), t;
17674
17674
  }
17675
17675
  function getContentAlign(e, t) {
17676
+ var o;
17676
17677
  let n;
17677
- return typeof t.options.align < "u" ? n = t.options.align : e.contAlign && e.contAlign !== "" && (n = e.contAlign), n;
17678
+ return (o = t.options) != null && o.align && t.options.align !== "" ? n = t.options.align : e.contAlign && e.contAlign !== "" && (n = e.contAlign), n;
17678
17679
  }
17679
17680
  function getHeaderAlign(e, t) {
17681
+ var o;
17680
17682
  let n;
17681
- return typeof t.options.headerAlign < "u" ? n = t.options.headerAlign : e.titleAlign && e.titleAlign !== "" ? n = e.titleAlign : n = "left", n;
17683
+ return (o = t.options) != null && o.headerAlign && t.options.headerAlign !== "" ? n = t.options.headerAlign : e.titleAlign && e.titleAlign !== "" && (n = e.titleAlign), n;
17682
17684
  }
17683
17685
  function getHeaderLable(e) {
17684
17686
  let t = e.label;
@@ -19939,12 +19941,14 @@ const _sfc_main$1m = {
19939
19941
  const t = JSON.parse(this.column.fileSet);
19940
19942
  this.fileInfo.showName = this.row[t.showNameData.dbName], this.fileInfo.serverPath = this.row[t.serverNameData.dbName], this.fileSetObj = t, t && t.multiple && (this.fileMultiple = !0), this.fileList = getFileList(this.row, this.column, this.isSql), this.packageFileNameWithFileList();
19941
19943
  }
19942
- if (this.column.componentType === "inputNumber" && this.setInputNumberConfig(), this.column.valueSetOptions && this.column.componentType !== "inputNumber") {
19943
- const t = JSON.parse(this.column.valueSetOptions);
19944
- t && t.valueSetOptions && (this.valueSetOptions = t.valueSetOptions), t.dynamicDataSourceCode && t.dynamicDataSourceCode !== "" && (this.dynamicDataSourceCode = t.dynamicDataSourceCode);
19945
- } else if (this.column.componentType === "switch" && this.column.valueSetOptions) {
19946
- const t = JSON.parse(this.column.valueSetOptions);
19947
- t && (this.valueSetOptions = t);
19944
+ if (this.column.componentType === "inputNumber" && this.setInputNumberConfig(), this.column.valueSetOptions) {
19945
+ if (this.column.componentType === "switch") {
19946
+ const t = JSON.parse(this.column.valueSetOptions);
19947
+ t && (this.valueSetOptions = t);
19948
+ } else if (this.column.componentType !== "inputNumber") {
19949
+ const t = JSON.parse(this.column.valueSetOptions);
19950
+ t && t.valueSetOptions && (this.valueSetOptions = t.valueSetOptions), t.dynamicDataSourceCode && t.dynamicDataSourceCode !== "" && (this.dynamicDataSourceCode = t.dynamicDataSourceCode);
19951
+ }
19948
19952
  }
19949
19953
  if (this.column.orgTreeSet) {
19950
19954
  const t = JSON.parse(this.column.orgTreeSet);
@@ -22498,7 +22502,7 @@ function _sfc_render$W(e, t, n, o, l, s) {
22498
22502
  ], 4))
22499
22503
  ]);
22500
22504
  }
22501
- const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_render$W]]), normalColumnContent_vue_vue_type_style_index_0_scoped_04b90479_lang = "", _sfc_main$1h = {
22505
+ const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_render$W]]), normalColumnContent_vue_vue_type_style_index_0_scoped_537297a0_lang = "", _sfc_main$1h = {
22502
22506
  components: {
22503
22507
  DynamicInput,
22504
22508
  RowOperation,
@@ -23017,7 +23021,7 @@ function _sfc_render$V(e, t, n, o, l, s) {
23017
23021
  createTextVNode(toDisplayString$1(e.$escapeHtml(re.label)) + " ", 1)
23018
23022
  ]),
23019
23023
  _: 2
23020
- }, 1032, ["size", "onCommand"])) : re.props.customControl ? (openBlock(), createBlock(resolveDynamicComponent(re.props.customControl), {
23024
+ }, 1032, ["size", "onCommand"])) : re.props.customControl ? withDirectives((openBlock(), createBlock(resolveDynamicComponent(re.props.customControl), {
23021
23025
  key: n.column.prop + "_" + n.rowIndex + "_" + n.currentPage,
23022
23026
  disabled: !0,
23023
23027
  row: n.pageGridData[n.rowIndex],
@@ -23029,7 +23033,9 @@ function _sfc_render$V(e, t, n, o, l, s) {
23029
23033
  "page-grid-data": n.pageGridData,
23030
23034
  "current-page": n.currentPage,
23031
23035
  onRefreshList: s.refreshList
23032
- }, null, 40, ["row", "entity", "prop", "parent", "row-index", "grid-data", "page-grid-data", "current-page", "onRefreshList"])) : (openBlock(), createBlock(S, {
23036
+ }, null, 40, ["row", "entity", "prop", "parent", "row-index", "grid-data", "page-grid-data", "current-page", "onRefreshList"])), [
23037
+ [z, re.props.permission]
23038
+ ]) : (openBlock(), createBlock(S, {
23033
23039
  key: 2,
23034
23040
  column: n.column,
23035
23041
  editing: n.row.$editing,
@@ -23288,7 +23294,7 @@ function _sfc_render$V(e, t, n, o, l, s) {
23288
23294
  }, null, 8, ["onCloseRichEditorContent"])) : createCommentVNode("", !0)
23289
23295
  ]);
23290
23296
  }
23291
- const NormalColumnContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$1h, [["render", _sfc_render$V], ["__scopeId", "data-v-04b90479"]]), normalColumn_vue_vue_type_style_index_0_scoped_59276470_lang = "", _sfc_main$1g = {
23297
+ const NormalColumnContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$1h, [["render", _sfc_render$V], ["__scopeId", "data-v-537297a0"]]), normalColumn_vue_vue_type_style_index_0_scoped_358f33d4_lang = "", _sfc_main$1g = {
23292
23298
  components: {
23293
23299
  DynamicInput,
23294
23300
  RowOperation,
@@ -23426,7 +23432,9 @@ const NormalColumnContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$1h, [["rende
23426
23432
  created() {
23427
23433
  this.column.width && (this.cellWidth = this.column.width - 10);
23428
23434
  const e = store$1.get(this.listCode);
23429
- e && e.options && e.options.isFormSubTable && (this.isFormSubTable = e.options.isFormSubTable), e && e.options && e.options.subTableCanAdd !== void 0 && e.options.subTableCanAdd !== null && (this.subTableCanAdd = e.options.subTableCanAdd), getContentAlign(this.column, e) && (this.align = e.options.align);
23435
+ e && e.options && e.options.isFormSubTable && (this.isFormSubTable = e.options.isFormSubTable), e && e.options && e.options.subTableCanAdd !== void 0 && e.options.subTableCanAdd !== null && (this.subTableCanAdd = e.options.subTableCanAdd);
23436
+ const t = getContentAlign(this.column, e);
23437
+ t && (this.align = t);
23430
23438
  const n = getHeaderAlign(this.column, e);
23431
23439
  n && (this.headerAlign = n), this.label = this.getHeader(), this.column.operations, this.isShowAdd = this.isFormSubTable && this.column.prop === "operation" && this.subTableCanAdd && e.options && e.options.showOperationButton;
23432
23440
  },
@@ -23556,7 +23564,7 @@ function _sfc_render$U(e, t, n, o, l, s) {
23556
23564
  _: 1
23557
23565
  }, 8, ["align", "class-name", "filter-method", "filters", "fixed", "header-align", "prop", "sortable", "width"]);
23558
23566
  }
23559
- const NormalColumn = /* @__PURE__ */ _export_sfc$1(_sfc_main$1g, [["render", _sfc_render$U], ["__scopeId", "data-v-59276470"]]), _sfc_main$1f = {
23567
+ const NormalColumn = /* @__PURE__ */ _export_sfc$1(_sfc_main$1g, [["render", _sfc_render$U], ["__scopeId", "data-v-358f33d4"]]), _sfc_main$1f = {
23560
23568
  name: "GroupColumn",
23561
23569
  components: {
23562
23570
  NormalColumn
@@ -39300,7 +39308,7 @@ const SearchForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_r
39300
39308
  getSelectionId() {
39301
39309
  return this.selectionIds && this.selectionIds.length > 0 ? this.selectionIds[0] : null;
39302
39310
  }
39303
- }, superNineGrid_vue_vue_type_style_index_0_scoped_a1de1676_rel_stylesheet_2Fscss_lang = "", _sfc_main$p = {
39311
+ }, superNineGrid_vue_vue_type_style_index_0_scoped_a49c2839_rel_stylesheet_2Fscss_lang = "", _sfc_main$p = {
39304
39312
  name: "SuperNineGrid",
39305
39313
  components: {
39306
39314
  SearchForm
@@ -39391,7 +39399,8 @@ const SearchForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_r
39391
39399
  colSpan: 6,
39392
39400
  slotBefore: "before",
39393
39401
  titleWidth: s,
39394
- slotState: "bottom"
39402
+ slotState: "bottom",
39403
+ isShowBottom: !0
39395
39404
  };
39396
39405
  },
39397
39406
  computed: {},
@@ -39448,33 +39457,13 @@ const SearchForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_r
39448
39457
  const o = store.get(this.storeId);
39449
39458
  if (e === "content") {
39450
39459
  let l = "";
39451
- isHasOptionFunction("setContent", this.storeId) && (l = o.options.getContent.call(this, t)), (l === void 0 || l === "") && (this.props && this.props.content ? l = this.objectPropValue(
39452
- t,
39453
- this.propCloumns.content,
39454
- this.props.content
39455
- ) : this.props && this.props.title && (l = this.objectPropValue(
39456
- t,
39457
- this.propCloumns.title,
39458
- this.props.title
39459
- ))), n = l;
39460
+ isHasOptionFunction("setContent", this.storeId) && (l = o.options.getContent.call(this, t)), (l === void 0 || l === "") && (this.props && this.props.content ? l = this.objectPropValue(t, this.propCloumns.content, this.props.content) : this.props && this.props.title && (l = this.objectPropValue(t, this.propCloumns.title, this.props.title))), n = l;
39460
39461
  } else if (e === "title") {
39461
39462
  let l = "";
39462
- isHasOptionFunction("setTitle", this.storeId) && (l = o.options.setTitle.call(this, t)), (l === void 0 || l === "") && (this.props && this.props.title ? l = this.objectPropValue(
39463
- t,
39464
- this.propCloumns.title,
39465
- this.props.title
39466
- ) : this.props && this.props.content && (l = this.objectPropValue(
39467
- t,
39468
- this.propCloumns.content,
39469
- this.props.content
39470
- ))), n = l;
39463
+ isHasOptionFunction("setTitle", this.storeId) && (l = o.options.setTitle.call(this, t)), (l === void 0 || l === "") && (this.props && this.props.title ? l = this.objectPropValue(t, this.propCloumns.title, this.props.title) : this.props && this.props.content && (l = this.objectPropValue(t, this.propCloumns.content, this.props.content))), n = l;
39471
39464
  } else if (e === "subTitle") {
39472
39465
  let l = "";
39473
- isHasOptionFunction("setSubTitle", this.storeId) && (l = o.options.setSubTitle.call(this, t)), (l === void 0 || l === "") && this.props && this.props.subTitle && (l = this.objectPropValue(
39474
- t,
39475
- this.propCloumns.subTitle,
39476
- this.props.subTitle
39477
- )), n = l;
39466
+ isHasOptionFunction("setSubTitle", this.storeId) && (l = o.options.setSubTitle.call(this, t)), (l === void 0 || l === "") && this.props && this.props.subTitle && (l = this.objectPropValue(t, this.propCloumns.subTitle, this.props.subTitle)), n = l;
39478
39467
  }
39479
39468
  return n === void 0 && (n = ""), n;
39480
39469
  },
@@ -39508,13 +39497,9 @@ const SearchForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_r
39508
39497
  fetchData(e, t) {
39509
39498
  return new Promise((n, o) => {
39510
39499
  if (this.clearSelections(), this.getPropColumns(), this.isLoading = !0, this.hasLoadData = !1, t === void 0 || t === !1) {
39511
- const m = window.sessionStorage.getItem(
39512
- "refreshList-" + this.storeId
39513
- );
39500
+ const m = window.sessionStorage.getItem("refreshList-" + this.storeId);
39514
39501
  if (m !== void 0 && m === "true") {
39515
- const _ = window.sessionStorage.getItem(
39516
- "searchParam-" + this.storeId
39517
- );
39502
+ const _ = window.sessionStorage.getItem("searchParam-" + this.storeId);
39518
39503
  if (_ != null && _ !== "") {
39519
39504
  e = JSON.parse(_);
39520
39505
  const E = e.pagination;
@@ -39532,10 +39517,7 @@ const SearchForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_r
39532
39517
  s[m] = l.options.extraParam[m];
39533
39518
  l.searchParam = e, l.url = this.url;
39534
39519
  const d = this.url;
39535
- window.sessionStorage.setItem(
39536
- "searchParam-" + this.storeId,
39537
- JSON.stringify(s)
39538
- ), this.$http.post(d, s).then((m) => {
39520
+ window.sessionStorage.setItem("searchParam-" + this.storeId, JSON.stringify(s)), this.$http.post(d, s).then((m) => {
39539
39521
  if (isHasOptionFunction("gridDataLoaded", this.storeId)) {
39540
39522
  const _ = l.options.gridDataLoaded.call(this, {
39541
39523
  gridData: m.data,
@@ -39544,9 +39526,7 @@ const SearchForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_r
39544
39526
  _ ? this.gridData = _ : this.gridData = m.data;
39545
39527
  } else
39546
39528
  this.gridData = m.data;
39547
- this.gridData || (this.gridData = []), this.pagination !== null && (this.pagination.total = m.total), l.gridData = this.gridData, l.orgGridData = [].concat(
39548
- JSON.parse(JSON.stringify(this.gridData))
39549
- ), l.pagination = this.pagination, l.loaded = !0, this.hasLoadData = !0, n();
39529
+ this.gridData || (this.gridData = []), this.pagination !== null && (this.pagination.total = m.total), l.gridData = this.gridData, l.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData))), l.pagination = this.pagination, l.loaded = !0, this.hasLoadData = !0, n();
39550
39530
  }).catch((m) => {
39551
39531
  isHasOptionFunction("loadError", this.storeId) && l.options.loadError.call(this, this.code, m), o(m);
39552
39532
  });
@@ -39574,20 +39554,11 @@ const SearchForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_r
39574
39554
  for (var n = 0; n < this.options.dynamicColumns.length; n++)
39575
39555
  this.options.dynamicColumns[n].dynamic = !0, t.columns.push(this.options.dynamicColumns[n]);
39576
39556
  if (t.lineEdit = this.lineEdit, t.basicInfo = this.basicInfo, t.pagination = this.pagination, t.query = this.query, this.gridData = e.gridData, isHasOptionFunction("gridDataLoaded", this.storeId)) {
39577
- const o = t.options.gridDataLoaded.call(
39578
- this,
39579
- e.gridData
39580
- );
39557
+ const o = t.options.gridDataLoaded.call(this, e.gridData);
39581
39558
  o ? this.gridData = o : this.gridData = e.gridData;
39582
39559
  } else
39583
39560
  this.gridData = e.gridData;
39584
- this.pagination != null && (this.pagination.total = e.total), this.gridData || (this.gridData = []), t.gridData = this.gridData, t.orgGridData = [].concat(
39585
- JSON.parse(JSON.stringify(this.gridData))
39586
- ), t.pagination = this.pagination, isHasOptionFunction("gridComplete", this.storeId) && t.options.gridComplete.call(
39587
- this,
39588
- this.gridData,
39589
- t.columns
39590
- );
39561
+ this.pagination != null && (this.pagination.total = e.total), this.gridData || (this.gridData = []), t.gridData = this.gridData, t.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData))), t.pagination = this.pagination, isHasOptionFunction("gridComplete", this.storeId) && t.options.gridComplete.call(this, this.gridData, t.columns);
39591
39562
  }).catch((e) => {
39592
39563
  isHasOptionFunction("loadError", this.storeId) && store.get(this.storeId).options.loadError.call(this, this.code, e);
39593
39564
  });
@@ -39677,9 +39648,7 @@ const SearchForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_r
39677
39648
  Sortable.create(t, {
39678
39649
  draggable: ".col-content",
39679
39650
  onEnd({ newIndex: o, oldIndex: l }) {
39680
- document.querySelector(
39681
- "#" + n.gridId + " #_addCardId_"
39682
- ) != null && (l > 0 && (l = l - 1), o > 0 && (o = o - 1));
39651
+ document.querySelector("#" + n.gridId + " #_addCardId_") != null && (l > 0 && (l = l - 1), o > 0 && (o = o - 1));
39683
39652
  const d = {
39684
39653
  oldIndex: l,
39685
39654
  newIndex: o,
@@ -39733,24 +39702,17 @@ const SearchForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$q, [["render", _sfc_r
39733
39702
  return isHasOptionFunction("changeState", this.storeId) ? t.options.changeState.call(this, e) : !1;
39734
39703
  }
39735
39704
  },
39736
- emits: [
39737
- "sort-change",
39738
- ,
39739
- "click",
39740
- "afterDrag",
39741
- "unselect",
39742
- "select",
39743
- "cancel-search",
39744
- "add",
39745
- ,
39746
- ]
39705
+ emits: ["sort-change", , "click", "afterDrag", "unselect", "select", "cancel-search", "add", ,]
39747
39706
  }, _hoisted_1$d = { class: "nine-grid-area" }, _hoisted_2$9 = ["id"], _hoisted_3$8 = { style: { "margin-top": "7px" } }, _hoisted_4$6 = ["onClick", "onMouseenter"], _hoisted_5$3 = {
39748
39707
  class: "image",
39749
39708
  style: { padding: "15px", "box-sizing": "border-box" }
39750
39709
  }, _hoisted_6$2 = {
39751
39710
  key: 0,
39752
39711
  style: { "margin-left": "2px", color: "#00b42a", "background-color": "#e8ffea", width: "68px", "text-align": "center", display: "inline-block" }
39753
- }, _hoisted_7$2 = ["title"], _hoisted_8 = { class: "button-style" }, _hoisted_9 = { style: { padding: "10px", "box-sizing": "border-box", width: "50px" } }, _hoisted_10 = { style: { "padding-left": "15px" } }, _hoisted_11 = ["onClick"], _hoisted_12 = { style: { position: "absolute", right: "5%", bottom: "9%" } };
39712
+ }, _hoisted_7$2 = ["title"], _hoisted_8 = { class: "button-style" }, _hoisted_9 = { style: { padding: "10px", "box-sizing": "border-box", width: "50px" } }, _hoisted_10 = { style: { "padding-left": "15px" } }, _hoisted_11 = ["onClick"], _hoisted_12 = {
39713
+ key: 0,
39714
+ style: { position: "absolute", right: "5%", bottom: "9%" }
39715
+ };
39754
39716
  function _sfc_render$e(e, t, n, o, l, s) {
39755
39717
  const d = resolveComponent("search-form"), m = resolveComponent("Plus"), _ = resolveComponent("el-icon"), E = resolveComponent("el-card"), S = resolveComponent("el-col"), k = resolveComponent("el-tooltip"), O = resolveComponent("SuccessFilled"), B = resolveComponent("el-button"), R = resolveComponent("el-row"), H = resolveComponent("el-pagination"), j = resolveDirective("permission");
39756
39718
  return openBlock(), createElementBlock("div", null, [
@@ -39888,10 +39850,7 @@ function _sfc_render$e(e, t, n, o, l, s) {
39888
39850
  ]),
39889
39851
  _: 2
39890
39852
  }, 1032, ["content"])), [
39891
- [
39892
- j,
39893
- z.permission ? z.permission : "true"
39894
- ]
39853
+ [j, z.permission ? z.permission : "true"]
39895
39854
  ]) : withDirectives((openBlock(), createElementBlock("em", {
39896
39855
  key: z.name,
39897
39856
  class: normalizeClass(z.name + " icons"),
@@ -39899,17 +39858,14 @@ function _sfc_render$e(e, t, n, o, l, s) {
39899
39858
  }, [
39900
39859
  createTextVNode(toDisplayString$1(z.name), 1)
39901
39860
  ], 10, _hoisted_11)), [
39902
- [
39903
- j,
39904
- z.permission ? z.permission : "true"
39905
- ]
39861
+ [j, z.permission ? z.permission : "true"]
39906
39862
  ])
39907
39863
  ], 64)) : createCommentVNode("", !0)
39908
39864
  ], 64))), 256)),
39909
39865
  renderSlot(e.$slots, l.slotBefore, { params: q }, void 0, !0)
39910
39866
  ])
39911
39867
  ]),
39912
- createElementVNode("div", _hoisted_12, [
39868
+ l.isShowBottom ? (openBlock(), createElementBlock("div", _hoisted_12, [
39913
39869
  renderSlot(e.$slots, l.slotState, { params: q }, void 0, !0),
39914
39870
  l.isShowEnableState ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
39915
39871
  s.showEnableButton(q) ? (openBlock(), createBlock(B, {
@@ -39934,7 +39890,7 @@ function _sfc_render$e(e, t, n, o, l, s) {
39934
39890
  _: 2
39935
39891
  }, 1032, ["onClick"]))
39936
39892
  ], 64)) : createCommentVNode("", !0)
39937
- ])
39893
+ ])) : createCommentVNode("", !0)
39938
39894
  ])
39939
39895
  ], 40, _hoisted_4$6)
39940
39896
  ]),
@@ -39962,7 +39918,7 @@ function _sfc_render$e(e, t, n, o, l, s) {
39962
39918
  ])
39963
39919
  ]);
39964
39920
  }
39965
- const SuperNineGrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$e], ["__scopeId", "data-v-a1de1676"]]);
39921
+ const SuperNineGrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$p, [["render", _sfc_render$e], ["__scopeId", "data-v-a49c2839"]]);
39966
39922
  SuperNineGrid.install = function(e) {
39967
39923
  e.component(SuperNineGrid.name, SuperNineGrid);
39968
39924
  };