@unizhen/ui 0.1.7 → 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 +16 -13
  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" || !1,
5879
+ disabled: !1,
5877
5880
  params: {}
5878
5881
  });
5879
5882
  h.push({
@@ -8870,7 +8873,7 @@ function tm(e, t, n) {
8870
8873
  refetch: S
8871
8874
  };
8872
8875
  }
8873
- const x0 = "0.1.7";
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.7",
3
+ "version": "0.1.8",
4
4
  "author": {
5
5
  "name": "Donovan"
6
6
  },