matrix_components 2.0.367 → 2.0.369

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.
@@ -54753,13 +54753,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
54753
54753
  },
54754
54754
  setup(__props, { expose: __expose }) {
54755
54755
  useCssVars((_ctx) => ({
54756
- "f45a1efa": customBackgroundColor.value,
54757
- "v21180901": gapV.value,
54758
- "v915c54a8": superLabelWidth.value,
54759
- "v6be4641e": subLabelWidth.value,
54760
- "v3d2421a8": height.value,
54761
- "v29f65f33": labelWidth.value,
54762
- "v1cad0510": _ctx.$props.labelColor
54756
+ "v6e9a4ae1": customBackgroundColor.value,
54757
+ "v4d3e223a": gapV.value,
54758
+ "v35cbce8a": superLabelWidth.value,
54759
+ "v3dcc664f": subLabelWidth.value,
54760
+ "v06cb170a": height.value,
54761
+ "v327fd395": labelWidth.value,
54762
+ "v36e78324": _ctx.$props.labelColor
54763
54763
  }));
54764
54764
  const props = __props;
54765
54765
  const initialValues = ref$1(/* @__PURE__ */ new Map());
@@ -55052,7 +55052,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
55052
55052
  };
55053
55053
  }
55054
55054
  }
55055
- function getNodeByKey(rows, key) {
55055
+ function getFormNodeByKey(key) {
55056
+ const rows = props.rows;
55056
55057
  for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {
55057
55058
  const row = rows[rowIndex];
55058
55059
  for (let colIndex = 0; colIndex < row.length; colIndex++) {
@@ -55072,7 +55073,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
55072
55073
  }
55073
55074
  return null;
55074
55075
  }
55075
- function getKeyValuePairs(rows) {
55076
+ function getFormKvData() {
55077
+ const rows = props.rows;
55076
55078
  const result = {};
55077
55079
  for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {
55078
55080
  const row = rows[rowIndex];
@@ -55157,8 +55159,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
55157
55159
  }
55158
55160
  }
55159
55161
  __expose({
55160
- getNodeByKey,
55161
- getKeyValuePairs,
55162
+ getFormNodeByKey,
55163
+ getFormKvData,
55162
55164
  resetForm,
55163
55165
  initDefaultValues
55164
55166
  });
@@ -55441,7 +55443,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
55441
55443
  };
55442
55444
  }
55443
55445
  });
55444
- const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-e98e238a"]]);
55446
+ const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-92c775bd"]]);
55445
55447
  const _hoisted_1$1 = { class: "title-image-view" };
55446
55448
  const _hoisted_2 = { class: "content-model-title" };
55447
55449
  const _hoisted_3 = { class: "title-text" };
@@ -55482,6 +55484,57 @@ NsForm.install = (app2) => {
55482
55484
  NsFormTitle.install = (app2) => {
55483
55485
  app2.component(NsFormTitle.name, NsFormTitle);
55484
55486
  };
55487
+ function getAllFormKvData(rows) {
55488
+ const result = {};
55489
+ for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {
55490
+ const row = rows[rowIndex];
55491
+ for (let colIndex = 0; colIndex < row.length; colIndex++) {
55492
+ const item = row[colIndex];
55493
+ if (item.key) {
55494
+ if ((item == null ? void 0 : item.value) && (item == null ? void 0 : item.delValue) && Array.isArray(item.value) && Array.isArray(item.delValue) && item.value.length && item.delValue.length) {
55495
+ result[item.key] = [...item.value, ...item.delValue];
55496
+ } else {
55497
+ result[item.key] = item.value ?? "";
55498
+ }
55499
+ }
55500
+ if (item.children && Array.isArray(item.children)) {
55501
+ for (let childIndex = 0; childIndex < item.children.length; childIndex++) {
55502
+ const child = item.children[childIndex];
55503
+ if (child.key) {
55504
+ if ((child == null ? void 0 : child.value) && (child == null ? void 0 : child.delValue) && Array.isArray(child.value) && Array.isArray(child.delValue) && child.value.length && child.delValue.length) {
55505
+ result[child.key] = [...child.value, ...child.delValue];
55506
+ } else {
55507
+ result[child.key] = child.value ?? "";
55508
+ }
55509
+ }
55510
+ }
55511
+ }
55512
+ }
55513
+ }
55514
+ return result;
55515
+ }
55516
+ function getAllFormNodeByKey(rows, key) {
55517
+ for (let rowIndex = 0; rowIndex < rows.length; rowIndex++) {
55518
+ const row = rows[rowIndex];
55519
+ for (let colIndex = 0; colIndex < row.length; colIndex++) {
55520
+ const item = row[colIndex];
55521
+ if (item.key === key) {
55522
+ return item;
55523
+ }
55524
+ if (item.children && Array.isArray(item.children)) {
55525
+ for (let childIndex = 0; childIndex < item.children.length; childIndex++) {
55526
+ const child = item.children[childIndex];
55527
+ if (child.key === key) {
55528
+ return child;
55529
+ }
55530
+ }
55531
+ }
55532
+ }
55533
+ }
55534
+ return null;
55535
+ }
55536
+ globalThis.getAllFormNodeByKey = getAllFormNodeByKey;
55537
+ globalThis.getAllFormKvData = getAllFormKvData;
55485
55538
  const ir = Math.min, L0 = Math.max, Rr = Math.round, Ot = (e6) => ({
55486
55539
  x: e6,
55487
55540
  y: e6
@@ -91786,6 +91839,8 @@ export {
91786
91839
  downLoadLocalFile,
91787
91840
  download,
91788
91841
  get,
91842
+ getAllFormKvData,
91843
+ getAllFormNodeByKey,
91789
91844
  getEncryptSm2,
91790
91845
  handleHeaderCellClass,
91791
91846
  handleSortChange,