@unizhen/ui 0.1.6 → 0.1.8

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.
Files changed (2) hide show
  1. package/lib/ui.js +18 -15
  2. package/package.json +1 -1
package/lib/ui.js CHANGED
@@ -5622,17 +5622,20 @@ const w1 = () => new Promise((e) => {
5622
5622
  }
5623
5623
  }
5624
5624
  return t && typeof t == "function" ? (c, l) => t(c, l, Z) : "";
5625
- }, Oe = (e, t, n) => t.map((l) => {
5626
- let i = [], a = l.id;
5627
- return e.input === "select" && e.params.labelKeys ? (e.params.labelKeys.split(",").forEach(($) => {
5628
- i.push(l[$]);
5629
- }), i = ds(i).join("-")) : i = l[n[1]], e.input === "select" && e.params.valueKey && (a = l[e.params.valueKey]), {
5630
- label: i,
5631
- value: a,
5632
- disabled: l?.is_disabled === 1,
5633
- params: l
5634
- };
5635
- }), Ie = /* @__PURE__ */ new Map();
5625
+ }, Oe = (e, t, n) => {
5626
+ const c = t.map((l) => {
5627
+ let i = [], a = l.id;
5628
+ return e.input === "select" && e.params.labelKeys ? (e.params.labelKeys.split(",").forEach(($) => {
5629
+ i.push(l[$]);
5630
+ }), i = ds(i).join("-")) : i = l[n[1]], e.input === "select" && e.params.valueKey && (a = l[e.params.valueKey]), {
5631
+ label: i,
5632
+ value: a,
5633
+ disabled: l?.is_disabled === "1",
5634
+ params: l
5635
+ };
5636
+ });
5637
+ return c.sort((l, i) => Number(l.disabled) - Number(i.disabled)), c;
5638
+ }, Ie = /* @__PURE__ */ new Map();
5636
5639
  function ua() {
5637
5640
  Ie.clear();
5638
5641
  }
@@ -5873,7 +5876,7 @@ function mt(e, t, n) {
5873
5876
  h.push({
5874
5877
  label: t[`${o.key}Str`],
5875
5878
  value: t[o.key],
5876
- disabled: t.is_disabled || !1,
5879
+ disabled: !1,
5877
5880
  params: {}
5878
5881
  });
5879
5882
  h.push({
@@ -6675,7 +6678,7 @@ const pa = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6675
6678
  Ke({
6676
6679
  tableId: e.id || l.params.id,
6677
6680
  ...O,
6678
- is_disabled: 1
6681
+ is_disabled: "1"
6679
6682
  }).then(() => {
6680
6683
  ce();
6681
6684
  }).catch(() => null);
@@ -6685,7 +6688,7 @@ const pa = /* @__PURE__ */ w(b1, [["render", x1]]), _1 = re({
6685
6688
  Ke({
6686
6689
  tableId: e.id || l.params.id,
6687
6690
  ...O,
6688
- is_disabled: 0
6691
+ is_disabled: "0"
6689
6692
  }).then(() => {
6690
6693
  ce();
6691
6694
  }).catch(() => null);
@@ -8870,7 +8873,7 @@ function tm(e, t, n) {
8870
8873
  refetch: S
8871
8874
  };
8872
8875
  }
8873
- const x0 = "0.1.6";
8876
+ const x0 = "0.1.8";
8874
8877
  let ba;
8875
8878
  async function xa() {
8876
8879
  const e = await fetch(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizhen/ui",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "author": {
5
5
  "name": "Donovan"
6
6
  },