@wx-design/components 1.5.2 → 1.5.4

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.
@@ -34,6 +34,15 @@ export declare const useConfigProvide: () => {
34
34
  total: string;
35
35
  close: string;
36
36
  confirm: string;
37
+ custom: {
38
+ confirmButtonText: string;
39
+ resetButtonText: string;
40
+ cancelButtonText: string;
41
+ closeButtonText: string;
42
+ modal: {
43
+ title: string;
44
+ };
45
+ };
37
46
  };
38
47
  };
39
48
  };
package/es/index.mjs CHANGED
@@ -16544,7 +16544,16 @@ const LC = /* @__PURE__ */ Qr(eY), Uf = {
16544
16544
  emptyText: "暂无数据",
16545
16545
  total: "汇总",
16546
16546
  close: "关闭",
16547
- confirm: "确认"
16547
+ confirm: "确认",
16548
+ custom: {
16549
+ confirmButtonText: "确认",
16550
+ resetButtonText: "重置",
16551
+ cancelButtonText: "取消",
16552
+ closeButtonText: "关闭",
16553
+ modal: {
16554
+ title: "列设置"
16555
+ }
16556
+ }
16548
16557
  }
16549
16558
  }
16550
16559
  };
@@ -18658,7 +18667,16 @@ const tY = {
18658
18667
  emptyText: "No data available",
18659
18668
  total: "Total",
18660
18669
  close: "Close",
18661
- confirm: "Confirm"
18670
+ confirm: "Confirm",
18671
+ custom: {
18672
+ confirmButtonText: "Confirm",
18673
+ resetButtonText: "Reset",
18674
+ cancelButtonText: "Cancel",
18675
+ closeButtonText: "Close",
18676
+ modal: {
18677
+ title: "Column Settings"
18678
+ }
18679
+ }
18662
18680
  }
18663
18681
  }
18664
18682
  }, nY = {
@@ -18692,7 +18710,16 @@ const tY = {
18692
18710
  emptyText: "Không có dữ liệu",
18693
18711
  total: "Tổng cộng",
18694
18712
  close: "Đóng",
18695
- confirm: "Xác nhận"
18713
+ confirm: "Xác nhận",
18714
+ custom: {
18715
+ confirmButtonText: "Xác nhận",
18716
+ resetButtonText: "Đặt lại",
18717
+ cancelButtonText: "Hủy",
18718
+ closeButtonText: "Đóng",
18719
+ modal: {
18720
+ title: "Cấu hình cột"
18721
+ }
18722
+ }
18696
18723
  }
18697
18724
  }
18698
18725
  }, oY = {
@@ -18726,7 +18753,16 @@ const tY = {
18726
18753
  emptyText: "কোনো ডেটা নেই",
18727
18754
  total: "মোট",
18728
18755
  close: "বন্ধ করুন",
18729
- confirm: "নিশ্চিত করুন"
18756
+ confirm: "নিশ্চিত করুন",
18757
+ custom: {
18758
+ confirmButtonText: "নিশ্চিত করুন",
18759
+ resetButtonText: "রিসেট",
18760
+ cancelButtonText: "বাতিল",
18761
+ closeButtonText: "বন্ধ করুন",
18762
+ modal: {
18763
+ title: "কলাম সেটিংস"
18764
+ }
18765
+ }
18730
18766
  }
18731
18767
  }
18732
18768
  };
@@ -44723,6 +44759,7 @@ const fJ = (e) => {
44723
44759
  p.splice(g + d, 0, u);
44724
44760
  };
44725
44761
  return (c, f) => (_n(), wo(Ps, null, [Zt(Fs, {
44762
+ class: "sab-table-column-set",
44726
44763
  height: "auto",
44727
44764
  ref_key: "innerTableRef",
44728
44765
  ref: o,
@@ -44737,7 +44774,7 @@ const fJ = (e) => {
44737
44774
  drag: !1
44738
44775
  },
44739
44776
  "column-drag-config": {
44740
- trigger: "default"
44777
+ trigger: null
44741
44778
  },
44742
44779
  "row-config": {
44743
44780
  useKey: !0,
@@ -44802,50 +44839,59 @@ function wJ(e) {
44802
44839
  } = e, n = Te(), {
44803
44840
  locale: o
44804
44841
  } = Wa(), r = R(() => {
44805
- var f, u;
44842
+ var f, u, d, p, h, g, C, S, E, v, T, x;
44806
44843
  const c = a5({
44807
44844
  keyboardConfig: {
44808
44845
  editMethod({
44809
- row: d,
44810
- column: p
44846
+ row: b,
44847
+ column: y
44811
44848
  }) {
44812
- return n.value.setEditCell(d, p), !0;
44849
+ return n.value.setEditCell(b, y), !0;
44850
+ }
44851
+ },
44852
+ customConfig: {
44853
+ confirmButtonText: (u = (f = o.value) == null ? void 0 : f.sabDesign) == null ? void 0 : u.table.custom.confirmButtonText,
44854
+ resetButtonText: (p = (d = o.value) == null ? void 0 : d.sabDesign) == null ? void 0 : p.table.custom.resetButtonText,
44855
+ closeButtonText: (g = (h = o.value) == null ? void 0 : h.sabDesign) == null ? void 0 : g.table.custom.closeButtonText,
44856
+ cancelButtonText: (S = (C = o.value) == null ? void 0 : C.sabDesign) == null ? void 0 : S.table.custom.cancelButtonText,
44857
+ modalOptions: {
44858
+ title: (v = (E = o.value) == null ? void 0 : E.sabDesign) == null ? void 0 : v.table.custom.modal.title
44813
44859
  }
44814
44860
  }
44815
44861
  }, Jp(t, "data"));
44816
- return c.columns = hJ(c.columns || [], c), c.name ? c.name && ((f = c.customConfig) == null ? void 0 : f.enabled) !== !1 && ((u = c.customConfig) != null && u.useSabModal) && (c.customConfig = Object.assign({
44862
+ return c.columns = hJ(c.columns || [], c), c.name ? c.name && ((T = c.customConfig) == null ? void 0 : T.enabled) !== !1 && ((x = c.customConfig) != null && x.useSabModal) && (c.customConfig = Object.assign({
44817
44863
  mode: "modal",
44818
44864
  storage: !0,
44819
44865
  visibleMethod({
44820
- column: d
44866
+ column: b
44821
44867
  }) {
44822
- return !!(d.field !== "sab-table-seq" && d.field !== "sab-table-checkbox" && d.field);
44868
+ return !!(b.field !== "sab-table-seq" && b.field !== "sab-table-checkbox" && b.field);
44823
44869
  },
44824
44870
  restoreStore({
44825
- id: d
44871
+ id: b
44826
44872
  }) {
44827
- var h, g;
44873
+ var w, O;
44828
44874
  return Qf({
44829
- name: d,
44830
- getTableConfig: (h = c.tableSetConfig) == null ? void 0 : h.getTableConfig,
44831
- setTableConfig: (g = c.tableSetConfig) == null ? void 0 : g.setTableConfig
44875
+ name: b,
44876
+ getTableConfig: (w = c.tableSetConfig) == null ? void 0 : w.getTableConfig,
44877
+ setTableConfig: (O = c.tableSetConfig) == null ? void 0 : O.setTableConfig
44832
44878
  }).get();
44833
44879
  },
44834
44880
  updateStore({
44835
- id: d,
44836
- storeData: p
44881
+ id: b,
44882
+ storeData: y
44837
44883
  }) {
44838
- var g, C;
44884
+ var O, N;
44839
44885
  return Qf({
44840
- name: d,
44841
- getTableConfig: (g = c.tableSetConfig) == null ? void 0 : g.getTableConfig,
44842
- setTableConfig: (C = c.tableSetConfig) == null ? void 0 : C.setTableConfig
44843
- }).set(p);
44886
+ name: b,
44887
+ getTableConfig: (O = c.tableSetConfig) == null ? void 0 : O.getTableConfig,
44888
+ setTableConfig: (N = c.tableSetConfig) == null ? void 0 : N.setTableConfig
44889
+ }).set(y);
44844
44890
  },
44845
44891
  slots: {
44846
- default(d) {
44847
- return Zt(CJ, Pn(d, {
44848
- tableRef: d.$table
44892
+ default(b) {
44893
+ return Zt(CJ, Pn(b, {
44894
+ tableRef: b.$table
44849
44895
  }), null);
44850
44896
  }
44851
44897
  }
@@ -30,6 +30,15 @@ declare const _default: {
30
30
  total: string;
31
31
  close: string;
32
32
  confirm: string;
33
+ custom: {
34
+ confirmButtonText: string;
35
+ resetButtonText: string;
36
+ cancelButtonText: string;
37
+ closeButtonText: string;
38
+ modal: {
39
+ title: string;
40
+ };
41
+ };
33
42
  };
34
43
  };
35
44
  };
@@ -30,6 +30,15 @@ declare const _default: {
30
30
  total: string;
31
31
  close: string;
32
32
  confirm: string;
33
+ custom: {
34
+ confirmButtonText: string;
35
+ resetButtonText: string;
36
+ cancelButtonText: string;
37
+ closeButtonText: string;
38
+ modal: {
39
+ title: string;
40
+ };
41
+ };
33
42
  };
34
43
  };
35
44
  };
@@ -30,6 +30,15 @@ declare const _default: {
30
30
  total: string;
31
31
  close: string;
32
32
  confirm: string;
33
+ custom: {
34
+ confirmButtonText: string;
35
+ resetButtonText: string;
36
+ cancelButtonText: string;
37
+ closeButtonText: string;
38
+ modal: {
39
+ title: string;
40
+ };
41
+ };
33
42
  };
34
43
  };
35
44
  };
@@ -30,6 +30,15 @@ declare const _default: {
30
30
  total: string;
31
31
  close: string;
32
32
  confirm: string;
33
+ custom: {
34
+ confirmButtonText: string;
35
+ resetButtonText: string;
36
+ cancelButtonText: string;
37
+ closeButtonText: string;
38
+ modal: {
39
+ title: string;
40
+ };
41
+ };
33
42
  };
34
43
  };
35
44
  };
@@ -32,6 +32,15 @@ declare const useLocale: (lang: Ref<string>) => {
32
32
  total: string;
33
33
  close: string;
34
34
  confirm: string;
35
+ custom: {
36
+ confirmButtonText: string;
37
+ resetButtonText: string;
38
+ cancelButtonText: string;
39
+ closeButtonText: string;
40
+ modal: {
41
+ title: string;
42
+ };
43
+ };
35
44
  };
36
45
  };
37
46
  }>;