@unizhen/ui 0.1.93 → 0.1.95

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.
@@ -7,6 +7,8 @@ export declare const fnRenderAction: ({ buttons, rowData, callback, tableId, hPr
7
7
  callback?: Fn;
8
8
  tableId?: string;
9
9
  hProps?: {
10
+ secondary?: boolean;
11
+ tertiary?: boolean;
10
12
  quaternary?: boolean;
11
13
  size?: "tiny" | "small" | "medium" | "large";
12
14
  text?: boolean;
@@ -15,12 +15,16 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
15
15
  };
16
16
  hProps: {
17
17
  type: PropType<{
18
+ secondary?: boolean;
19
+ tertiary?: boolean;
18
20
  quaternary?: boolean;
19
21
  size?: "tiny" | "small" | "medium" | "large";
20
22
  text?: boolean;
21
23
  class?: string;
22
24
  }>;
23
25
  default: () => {
26
+ secondary: boolean;
27
+ tertiary: boolean;
24
28
  quaternary: boolean;
25
29
  size: string;
26
30
  text: boolean;
@@ -38,12 +42,16 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
38
42
  };
39
43
  hProps: {
40
44
  type: PropType<{
45
+ secondary?: boolean;
46
+ tertiary?: boolean;
41
47
  quaternary?: boolean;
42
48
  size?: "tiny" | "small" | "medium" | "large";
43
49
  text?: boolean;
44
50
  class?: string;
45
51
  }>;
46
52
  default: () => {
53
+ secondary: boolean;
54
+ tertiary: boolean;
47
55
  quaternary: boolean;
48
56
  size: string;
49
57
  text: boolean;
@@ -53,6 +61,8 @@ declare const __VLS_export: DefineComponent<ExtractPropTypes<{
53
61
  data: IUzActionButton[];
54
62
  rowData: ObjectKey;
55
63
  hProps: {
64
+ secondary?: boolean;
65
+ tertiary?: boolean;
56
66
  quaternary?: boolean;
57
67
  size?: "tiny" | "small" | "medium" | "large";
58
68
  text?: boolean;
package/lib/ui.js CHANGED
@@ -34,6 +34,8 @@ var ut = Object.defineProperty, dt = (e, t) => {
34
34
  hProps: {
35
35
  type: Object,
36
36
  default: () => ({
37
+ secondary: !1,
38
+ tertiary: !1,
37
39
  quaternary: !1,
38
40
  size: "small",
39
41
  text: !0
@@ -2720,6 +2722,8 @@ var pf = "/apiserver/", mf = () => {
2720
2722
  }
2721
2723
  }, jf = (e, t, n, r, i) => {
2722
2724
  let a = {
2725
+ secondary: i?.secondary || !1,
2726
+ tertiary: i?.tertiary || !1,
2723
2727
  quaternary: i?.quaternary || !1,
2724
2728
  size: i?.size || "small",
2725
2729
  type: e.color || "default",
@@ -5037,7 +5041,7 @@ var fm = /*#__PURE__*/ W(om, [["render", dm]]), pm = /* @__PURE__ */ new WeakMap
5037
5041
  tabButtonType: b
5038
5042
  };
5039
5043
  }
5040
- }), hm = { class: "uz-search-bar uz-flex uz-flex-col uz-w-full" }, gm = {
5044
+ }), hm = { class: "uz-flex uz-justify-between uz-gap-2" }, gm = {
5041
5045
  key: 0,
5042
5046
  class: "uz-flex uz-items-start uz-justify-between uz-gap-8 uz-w-full"
5043
5047
  }, _m = { class: "uz-flex-1" }, vm = {
@@ -5049,10 +5053,10 @@ var fm = /*#__PURE__*/ W(om, [["render", dm]]), pm = /* @__PURE__ */ new WeakMap
5049
5053
  };
5050
5054
  function bm(n, s, c, d, f, p) {
5051
5055
  let m = O("NButton"), h = O("NButtonGroup"), g = O("NGridItem"), v = O("NInputGroupLabel"), y = O("NPopover"), b = O("UzFormItem"), x = O("NInputGroup"), C = O("NGrid"), w = O("CaretDown"), T = O("NIcon"), ee = O("Search"), te = O("Refresh"), j = k("media");
5052
- return S(), a("div", hm, [o("div", {
5053
- class: "uz-flex uz-justify-between uz-gap-2",
5056
+ return S(), a("div", {
5057
+ class: "uz-search-bar uz-flex uz-flex-col uz-w-full",
5054
5058
  onKeyup: s[1] ||= I((e) => n.doSearch(!1), ["enter"])
5055
- }, [n.enableHeader ? (S(), a("div", gm, [D(n.$slots, "header"), F((S(), a("div", _m, [u(C, {
5059
+ }, [o("div", hm, [n.enableHeader ? (S(), a("div", gm, [D(n.$slots, "header"), F((S(), a("div", _m, [u(C, {
5056
5060
  "x-gap": "8",
5057
5061
  "y-gap": "8",
5058
5062
  cols: n.cols,
@@ -5158,7 +5162,7 @@ function bm(n, s, c, d, f, p) {
5158
5162
  _: 1
5159
5163
  })) : i("", !0),
5160
5164
  D(n.$slots, "action")
5161
- ])) : i("", !0)], 32), u(t, { name: "uz-search-fields" }, {
5165
+ ])) : i("", !0)]), u(t, { name: "uz-search-fields" }, {
5162
5166
  default: P(() => [!n.collapsed && n.itemData && Object.keys(n.itemData).length > 0 ? (S(), a("div", ym, [u(C, {
5163
5167
  "x-gap": "8",
5164
5168
  "y-gap": "8",
@@ -5192,7 +5196,7 @@ function bm(n, s, c, d, f, p) {
5192
5196
  _: 1
5193
5197
  })])) : i("", !0)]),
5194
5198
  _: 1
5195
- })]);
5199
+ })], 32);
5196
5200
  }
5197
5201
  var xm = /*#__PURE__*/ W(mm, [["render", bm]]), Sm = f({
5198
5202
  name: "UzSearchMobileBar",
@@ -6740,13 +6744,14 @@ var ih = f({
6740
6744
  let n = U(e.onClick);
6741
6745
  e.onClick = () => {
6742
6746
  t("update:suffixes", {
6747
+ isTop: !0,
6743
6748
  title: e.buttonText,
6744
6749
  footer: e.footer,
6745
6750
  width: e.width,
6746
6751
  open: e.optionsType,
6747
6752
  onClick: n,
6748
6753
  optionsSource: e.optionsSource,
6749
- mainFormValue: () => E.value,
6754
+ mainFormValue: () => z.value,
6750
6755
  children: null,
6751
6756
  callback: null
6752
6757
  });
@@ -6756,8 +6761,8 @@ var ih = f({
6756
6761
  e.onClick = async () => {
6757
6762
  if (t && typeof t == "string") {
6758
6763
  try {
6759
- let e = Function("POST", "fnNotification", t);
6760
- await e(Q, c, e), B();
6764
+ let e = Function("rowData", "POST", "fnNotification", t);
6765
+ await e(() => z.value, Q, c, e), B();
6761
6766
  } catch (e) {
6762
6767
  J(e);
6763
6768
  }
@@ -7017,7 +7022,7 @@ function uh(t, n, c, d, f, p) {
7017
7022
  key: 1,
7018
7023
  data: t.suffixes,
7019
7024
  hProps: {
7020
- quaternary: !1,
7025
+ secondary: !0,
7021
7026
  size: "medium",
7022
7027
  text: !1
7023
7028
  }
@@ -9226,7 +9231,7 @@ function r_(e, t, n) {
9226
9231
  }
9227
9232
  //#endregion
9228
9233
  //#region package.json
9229
- var i_ = "0.1.93", a_;
9234
+ var i_ = "0.1.95", a_;
9230
9235
  async function o_() {
9231
9236
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
9232
9237
  method: "HEAD",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizhen/ui",
3
- "version": "0.1.93",
3
+ "version": "0.1.95",
4
4
  "author": {
5
5
  "name": "Donovan"
6
6
  },