dfs-page-config 0.5.47 → 0.5.48

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.
@@ -27427,7 +27427,7 @@ const store = createStore({
27427
27427
  });
27428
27428
  function initData(k, L, ie) {
27429
27429
  L.forEach((ae) => {
27430
- if (ae.children && initData(k, ae.children, ie), ae.type == "Form") {
27430
+ if (ae.children && initData(k, ae.children), ae.type == "Form") {
27431
27431
  let pe = {};
27432
27432
  Object.defineProperty(ae, "formData", {
27433
27433
  enumerable: !0,
@@ -27448,7 +27448,7 @@ function initData(k, L, ie) {
27448
27448
  }
27449
27449
  }) : ae.elementGroup = [];
27450
27450
  }
27451
- ae.type == "AgTable" && (ae.pageInfo || (ae.pageInfo = { pageNum: 1, currentPage: 1, pageSize: 50 }), ae.initQuery && k.dispatch("_TABLE_QUERY", { pageKey: ie, tableComp: ae }));
27451
+ ae.type == "AgTable" && (ae.pageInfo || (ae.pageInfo = { pageNum: 1, currentPage: 1, pageSize: 50 }));
27452
27452
  });
27453
27453
  }
27454
27454
  function getOwnSearchData(k, L) {
@@ -101366,7 +101366,7 @@ const _sfc_main$g = defineComponent({
101366
101366
  }
101367
101367
  xe.getData = (fr) => {
101368
101368
  fr && (xe.params = fr), store.dispatch("_TABLE_QUERY", { tableComp: xe, pageKey: k.pageKey });
101369
- };
101369
+ }, xe.initQuery && store.dispatch("_TABLE_QUERY", { tableComp: xe, pageKey: Oe });
101370
101370
  let ar = null, Pr = null, vr = null;
101371
101371
  return onMounted(() => {
101372
101372
  ar = document.querySelector(".cell-text-popover"), ar || (ar = document.createElement("div"), ar.className = "cell-text-popover", document.body.appendChild(ar)), Pr = document.getElementById(pe).querySelector(".ag-center-cols-container"), Pr.addEventListener("mouseover", (fr) => {
@@ -101789,8 +101789,16 @@ const HeaderTip = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_rend
101789
101789
  }
101790
101790
  },
101791
101791
  setup(k) {
101792
+ const L = useStore();
101792
101793
  return {
101793
- getAllSlots
101794
+ getAllSlots,
101795
+ isShowComp: (ae) => {
101796
+ if (typeof ae.isShow == "function") {
101797
+ const pe = getRelationComp(L, k.pageKey, ae.relation);
101798
+ return ae.isShow(pe);
101799
+ }
101800
+ return !0;
101801
+ }
101794
101802
  };
101795
101803
  }
101796
101804
  });
@@ -101799,7 +101807,7 @@ function _sfc_render$a(k, L, ie, ae, pe, _e) {
101799
101807
  return openBlock(!0), createElementBlock(Fragment, null, renderList(k.configOption, (Oe) => (openBlock(), createElementBlock(Fragment, {
101800
101808
  key: (Oe.updateKey || "") + Oe.key
101801
101809
  }, [
101802
- Oe.slot ? renderSlot(k.$slots, Oe.slot, { key: 0 }) : (openBlock(), createBlock(resolveDynamicComponent(Oe.type), {
101810
+ Oe.slot ? renderSlot(k.$slots, Oe.slot, { key: 0 }) : k.isShowComp(Oe) ? (openBlock(), createBlock(resolveDynamicComponent(Oe.type), {
101803
101811
  key: 1,
101804
101812
  componentOption: Oe,
101805
101813
  pageKey: k.pageKey
@@ -101826,7 +101834,7 @@ function _sfc_render$a(k, L, ie, ae, pe, _e) {
101826
101834
  renderSlot(k.$slots, Ne.slot, { data: Ie })
101827
101835
  ])
101828
101836
  }))
101829
- ]), 1032, ["componentOption", "pageKey"]))
101837
+ ]), 1032, ["componentOption", "pageKey"])) : createCommentVNode("", !0)
101830
101838
  ], 64))), 128);
101831
101839
  }
101832
101840
  const __unplugin_components_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$a]]), _hoisted_1$d = {
@@ -102154,16 +102162,25 @@ const SplitScreen = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_re
102154
102162
  }
102155
102163
  },
102156
102164
  setup(k) {
102157
- const L = useStore(), ie = ref(), ae = k.pageConfigData, pe = ae.components.reduce((xe, Oe) => Oe.type === "dialog" ? [...xe, ...Oe.children] : xe, []).reduce((xe, Oe) => (Oe.slot && xe.push(Oe), [...xe, ...getAllSlots(Oe)]), []), _e = [];
102158
- return ae.components.forEach((xe) => {
102159
- xe.type === "SplitScreen" ? xe.topComponents && xe.downComponents && _e.push(...xe.topComponents, ...xe.downComponents) : _e.push(xe);
102160
- }), initPage({ pageKey: ae.pageKey, components: _e, dialogRef: ie }, L), handleEnter((xe) => {
102161
- const Oe = xe.target.dataset.pagekey, Ne = xe.target.dataset.target;
102162
- Ne && queryData(L, Oe, Ne);
102165
+ const L = useStore(), ie = ref(), ae = k.pageConfigData, pe = ae.components.reduce((Oe, Ne) => Ne.type === "dialog" ? [...Oe, ...Ne.children] : Oe, []).reduce((Oe, Ne) => (Ne.slot && Oe.push(Ne), [...Oe, ...getAllSlots(Ne)]), []), _e = [];
102166
+ ae.components.forEach((Oe) => {
102167
+ Oe.type === "SplitScreen" ? Oe.topComponents && Oe.downComponents && _e.push(...Oe.topComponents, ...Oe.downComponents) : _e.push(Oe);
102168
+ });
102169
+ const xe = (Oe) => {
102170
+ if (typeof Oe.isShow == "function") {
102171
+ const Ne = getRelationComp(L, k.pageConfigData.pageKey, Oe.relation);
102172
+ return Oe.isShow(Ne);
102173
+ }
102174
+ return !0;
102175
+ };
102176
+ return initPage({ pageKey: ae.pageKey, components: _e, dialogRef: ie }, L), handleEnter((Oe) => {
102177
+ const Ne = Oe.target.dataset.pagekey, Ie = Oe.target.dataset.target;
102178
+ Ie && queryData(L, Ne, Ie);
102163
102179
  }), {
102164
102180
  dialogRef: ie,
102165
102181
  dialogSlots: pe,
102166
- getAllSlots
102182
+ getAllSlots,
102183
+ isShowComp: xe
102167
102184
  };
102168
102185
  }
102169
102186
  }), _hoisted_1$8 = { class: "ag-grid-container" };
@@ -102184,7 +102201,8 @@ function _sfc_render$4(k, L, ie, ae, pe, _e) {
102184
102201
  key: Ie.key || ze
102185
102202
  }, [
102186
102203
  Ie.slot ? renderSlot(k.$slots, Ie.slot, { key: 0 }) : createCommentVNode("", !0),
102187
- (openBlock(), createBlock(resolveDynamicComponent(Ie.type), {
102204
+ k.isShowComp(Ie) ? (openBlock(), createBlock(resolveDynamicComponent(Ie.type), {
102205
+ key: 1,
102188
102206
  componentOption: Ie,
102189
102207
  pageKey: k.pageConfigData.pageKey
102190
102208
  }, createSlots({
@@ -102209,7 +102227,7 @@ function _sfc_render$4(k, L, ie, ae, pe, _e) {
102209
102227
  renderSlot(k.$slots, At.slot, { data: Ue })
102210
102228
  ])
102211
102229
  }))
102212
- ]), 1032, ["componentOption", "pageKey"]))
102230
+ ]), 1032, ["componentOption", "pageKey"])) : createCommentVNode("", !0)
102213
102231
  ], 64))), 128))
102214
102232
  ]),
102215
102233
  bottom: withCtx(() => [
@@ -102217,7 +102235,8 @@ function _sfc_render$4(k, L, ie, ae, pe, _e) {
102217
102235
  key: Ie.key
102218
102236
  }, [
102219
102237
  Ie.slot ? renderSlot(k.$slots, Ie.slot, { key: 0 }) : createCommentVNode("", !0),
102220
- (openBlock(), createBlock(resolveDynamicComponent(Ie.type), {
102238
+ k.isShowComp(Ie) ? (openBlock(), createBlock(resolveDynamicComponent(Ie.type), {
102239
+ key: 1,
102221
102240
  componentOption: Ie,
102222
102241
  pageKey: k.pageConfigData.pageKey
102223
102242
  }, createSlots({
@@ -102242,11 +102261,11 @@ function _sfc_render$4(k, L, ie, ae, pe, _e) {
102242
102261
  renderSlot(k.$slots, ze.slot, { data: At })
102243
102262
  ])
102244
102263
  }))
102245
- ]), 1032, ["componentOption", "pageKey"]))
102264
+ ]), 1032, ["componentOption", "pageKey"])) : createCommentVNode("", !0)
102246
102265
  ], 64))), 128))
102247
102266
  ]),
102248
102267
  _: 2
102249
- }, 1032, ["componentOption", "pageKey"])) : (openBlock(), createBlock(resolveDynamicComponent(Ne.type), {
102268
+ }, 1032, ["componentOption", "pageKey"])) : k.isShowComp(Ne) ? (openBlock(), createBlock(resolveDynamicComponent(Ne.type), {
102250
102269
  key: 2,
102251
102270
  componentOption: Ne,
102252
102271
  pageKey: k.pageConfigData.pageKey
@@ -102272,7 +102291,7 @@ function _sfc_render$4(k, L, ie, ae, pe, _e) {
102272
102291
  renderSlot(k.$slots, Ie.slot, { data: ze })
102273
102292
  ])
102274
102293
  }))
102275
- ]), 1032, ["componentOption", "pageKey"]))
102294
+ ]), 1032, ["componentOption", "pageKey"])) : createCommentVNode("", !0)
102276
102295
  ], 64))), 128))
102277
102296
  ]),
102278
102297
  k.pageConfigData.components.filter((Ne) => Ne.type === "dialog").length ? (openBlock(), createBlock(Oe, {