@huyooo/ui 0.5.1 → 0.5.3

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as m, createElementBlock as n, openBlock as t, createElementVNode as c, createCommentVNode as p, toDisplayString as k, ref as I, onMounted as A, onUnmounted as U, Fragment as q, renderList as H, normalizeClass as C, normalizeStyle as M, watch as R, createVNode as S, unref as b, createBlock as P, resolveComponent as V, computed as x, renderSlot as B } from "vue";
1
+ import { defineComponent as f, createElementBlock as n, openBlock as t, createElementVNode as c, createCommentVNode as p, toDisplayString as k, ref as x, onMounted as A, onUnmounted as U, Fragment as q, renderList as H, normalizeClass as C, normalizeStyle as S, watch as B, createVNode as w, unref as b, createBlock as P, resolveComponent as R, computed as M, renderSlot as V } from "vue";
2
2
  import { _ as l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  /* empty css */
4
4
  /* empty css */
@@ -15,7 +15,7 @@ const Q = {
15
15
  }, Y = {
16
16
  key: 0,
17
17
  class: "description"
18
- }, Z = /* @__PURE__ */ m({
18
+ }, Z = /* @__PURE__ */ f({
19
19
  __name: "ContentHead",
20
20
  props: {
21
21
  title: {
@@ -31,9 +31,9 @@ const Q = {
31
31
  },
32
32
  setup(o) {
33
33
  const e = o;
34
- return (s, i) => (t(), n("div", Q, [c("h1", X, k(e.title), 1), e.description ? (t(), n("p", Y, k(e.description), 1)) : p("", !0)]));
34
+ return (s, r) => (t(), n("div", Q, [c("h1", X, k(e.title), 1), e.description ? (t(), n("p", Y, k(e.description), 1)) : p("", !0)]));
35
35
  }
36
- }), Re = /* @__PURE__ */ l(Z, [["__scopeId", "data-v-209a7bef"]]), ee = {
36
+ }), Be = /* @__PURE__ */ l(Z, [["__scopeId", "data-v-209a7bef"]]), ee = {
37
37
  class: "HeaderMenus"
38
38
  }, te = {
39
39
  key: 0,
@@ -43,7 +43,7 @@ const Q = {
43
43
  class: "mobile-menu"
44
44
  }, se = {
45
45
  class: "mobile-menu-content"
46
- }, ae = ["onClick"], ie = /* @__PURE__ */ m({
46
+ }, ae = ["onClick"], re = /* @__PURE__ */ f({
47
47
  __name: "HeaderMenus",
48
48
  props: {
49
49
  menus: {
@@ -59,38 +59,38 @@ const Q = {
59
59
  setup(o, {
60
60
  emit: e
61
61
  }) {
62
- const s = o, i = e, a = I(!1), u = I(!1);
63
- function f() {
62
+ const s = o, r = e, a = x(!1), u = x(!1);
63
+ function h() {
64
64
  u.value = window.innerWidth <= 1024;
65
65
  }
66
66
  function g() {
67
67
  a.value = !a.value;
68
68
  }
69
- function _() {
69
+ function m() {
70
70
  a.value = !1;
71
71
  }
72
- function v(r) {
73
- i("change", r), _();
72
+ function v(i) {
73
+ r("change", i), m();
74
74
  }
75
- function h(r) {
76
- return s.activateKey === r.path;
75
+ function _(i) {
76
+ return s.activateKey === i.path;
77
77
  }
78
- function w(r) {
79
- i("change", r);
78
+ function $(i) {
79
+ r("change", i);
80
80
  }
81
81
  function y() {
82
- f(), u.value || _();
82
+ h(), u.value || m();
83
83
  }
84
84
  return A(() => {
85
- f(), window.addEventListener("resize", y);
85
+ h(), window.addEventListener("resize", y);
86
86
  }), U(() => {
87
87
  window.removeEventListener("resize", y);
88
- }), (r, z) => (t(), n("div", ee, [u.value ? p("", !0) : (t(), n("div", te, [(t(!0), n(q, null, H(s.menus, (d, $) => (t(), n("div", {
89
- key: $,
88
+ }), (i, z) => (t(), n("div", ee, [u.value ? p("", !0) : (t(), n("div", te, [(t(!0), n(q, null, H(s.menus, (d, I) => (t(), n("div", {
89
+ key: I,
90
90
  class: C(["headerLink", {
91
- activate: h(d)
91
+ activate: _(d)
92
92
  }]),
93
- onClick: (T) => w(d)
93
+ onClick: (T) => $(d)
94
94
  }, k(d.name), 11, ne))), 128))])), u.value ? (t(), n("button", {
95
95
  key: 1,
96
96
  class: C(["mobile-menu-toggle", {
@@ -107,16 +107,16 @@ const Q = {
107
107
  }, null, -1)]), 2)) : p("", !0), a.value ? (t(), n("div", {
108
108
  key: 2,
109
109
  class: "mobile-menu-overlay",
110
- onClick: _
111
- })) : p("", !0), a.value ? (t(), n("div", oe, [c("div", se, [(t(!0), n(q, null, H(s.menus, (d, $) => (t(), n("div", {
112
- key: $,
110
+ onClick: m
111
+ })) : p("", !0), a.value ? (t(), n("div", oe, [c("div", se, [(t(!0), n(q, null, H(s.menus, (d, I) => (t(), n("div", {
112
+ key: I,
113
113
  class: C(["mobile-menu-item", {
114
- activate: h(d)
114
+ activate: _(d)
115
115
  }]),
116
116
  onClick: (T) => v(d)
117
117
  }, k(d.name), 11, ae))), 128))])])) : p("", !0)]));
118
118
  }
119
- }), re = /* @__PURE__ */ l(ie, [["__scopeId", "data-v-67bf8ea1"]]), ce = ["src"], ue = /* @__PURE__ */ m({
119
+ }), ie = /* @__PURE__ */ l(re, [["__scopeId", "data-v-67bf8ea1"]]), ce = ["src"], ue = /* @__PURE__ */ f({
120
120
  __name: "Logo",
121
121
  props: {
122
122
  name: {
@@ -144,11 +144,11 @@ const Q = {
144
144
  setup(o, {
145
145
  emit: e
146
146
  }) {
147
- const s = o, i = e;
147
+ const s = o, r = e;
148
148
  function a() {
149
- i("to");
149
+ r("to");
150
150
  }
151
- return (u, f) => (t(), n("div", {
151
+ return (u, h) => (t(), n("div", {
152
152
  class: "Logo",
153
153
  onClick: a
154
154
  }, [o.icon ? (t(), n("img", {
@@ -160,7 +160,7 @@ const Q = {
160
160
  decoding: "async"
161
161
  }, null, 8, ce)) : p("", !0), c("div", {
162
162
  class: "text",
163
- style: M({
163
+ style: S({
164
164
  color: s.color,
165
165
  fontSize: s.fontSize
166
166
  })
@@ -170,9 +170,9 @@ const Q = {
170
170
  class: "HeaderCom"
171
171
  }, pe = {
172
172
  class: "left"
173
- }, me = {
173
+ }, fe = {
174
174
  class: "right"
175
- }, _e = /* @__PURE__ */ m({
175
+ }, me = /* @__PURE__ */ f({
176
176
  __name: "Header",
177
177
  props: {
178
178
  menuType: {
@@ -187,16 +187,16 @@ const Q = {
187
187
  const e = o, {
188
188
  show: s
189
189
  } = K(), {
190
- isLoggedIn: i
190
+ isLoggedIn: r
191
191
  } = G(), {
192
192
  appsData: a
193
193
  } = W(), {
194
194
  menus: u,
195
- hasPermission: f
196
- } = N(e.menuType), g = I(""), _ = j(), v = J();
197
- function h() {
195
+ hasPermission: h
196
+ } = N(e.menuType), g = x(""), m = j(), v = J();
197
+ function _() {
198
198
  L(() => {
199
- _.push({
199
+ m.push({
200
200
  path: "/"
201
201
  }), window.scrollTo({
202
202
  top: 0,
@@ -204,45 +204,43 @@ const Q = {
204
204
  });
205
205
  });
206
206
  }
207
- function w(y) {
208
- const r = y.path;
209
- if (!f(r)) {
210
- i.value || (s.value = !0);
207
+ function $(y) {
208
+ const i = y.path;
209
+ if (!h(i)) {
210
+ r.value || (s.value = !0);
211
211
  return;
212
212
  }
213
213
  L(() => {
214
- _.push(r), g.value = r, window.scrollTo({
214
+ m.push(i), g.value = i, window.scrollTo({
215
215
  top: 0,
216
216
  behavior: "smooth"
217
217
  });
218
218
  });
219
219
  }
220
- return R(() => v.path, () => {
220
+ return B(() => v.path, () => {
221
221
  g.value = O(v.matched, e.menuType, v.path);
222
222
  }, {
223
223
  immediate: !0
224
- }), (y, r) => (t(), n("div", de, [c("div", pe, [S(le, {
224
+ }), (y, i) => (t(), n("div", de, [c("div", pe, [w(le, {
225
225
  icon: b(a).applicationLogoUrl,
226
226
  name: b(a).name,
227
- onTo: h
228
- }, null, 8, ["icon", "name"])]), c("div", me, [S(re, {
227
+ onTo: _
228
+ }, null, 8, ["icon", "name"])]), c("div", fe, [w(ie, {
229
229
  menus: b(u),
230
230
  activateKey: g.value,
231
- onChange: w
231
+ onChange: $
232
232
  }, null, 8, ["menus", "activateKey"]), e.showUserPanel ? (t(), P(E, {
233
233
  key: 0,
234
- onToHomePage: h,
235
- onSignOut: h
234
+ onToHomePage: _,
235
+ onSignOut: _
236
236
  })) : p("", !0)])]));
237
237
  }
238
- }), he = /* @__PURE__ */ l(_e, [["__scopeId", "data-v-2225e367"]]), fe = {
239
- class: "layout"
240
- }, ge = {
238
+ }), _e = /* @__PURE__ */ l(me, [["__scopeId", "data-v-2225e367"]]), he = {
241
239
  class: "body"
242
- }, ve = {
240
+ }, ge = {
243
241
  key: 0,
244
242
  class: "loading"
245
- }, ye = /* @__PURE__ */ m({
243
+ }, ve = "linear-gradient(to bottom, #fefdff, #f9f6fe, #f2eefd, #ebe8fd, #e2e1fd, #dfe0fd, #dcdffd, #d9defd, #dde2fd, #e0e5fd, #e4e9fd, #e8ecfd)", ye = /* @__PURE__ */ f({
246
244
  __name: "DefaultLayout",
247
245
  props: {
248
246
  menuType: {
@@ -251,25 +249,34 @@ const Q = {
251
249
  showUserPanel: {
252
250
  type: Boolean,
253
251
  default: !0
252
+ },
253
+ backgroundImage: {
254
+ default: ""
254
255
  }
255
256
  },
256
257
  setup(o) {
257
- const {
258
- isChecking: e
258
+ const e = o, {
259
+ isChecking: s
259
260
  } = F();
260
- return (s, i) => {
261
- const a = V("RouterView");
262
- return t(), n("div", fe, [S(he, {
263
- "menu-type": s.menuType,
264
- "show-user-panel": s.showUserPanel
265
- }, null, 8, ["menu-type", "show-user-panel"]), c("div", ge, [b(e) ? (t(), n("div", ve, [S(b(D), {
261
+ return (r, a) => {
262
+ const u = R("RouterView");
263
+ return t(), n("div", {
264
+ class: "layout",
265
+ style: S({
266
+ backgroundImage: e.backgroundImage || ve,
267
+ backgroundAttachment: "fixed"
268
+ })
269
+ }, [w(_e, {
270
+ "menu-type": e.menuType,
271
+ "show-user-panel": e.showUserPanel
272
+ }, null, 8, ["menu-type", "show-user-panel"]), c("div", he, [b(s) ? (t(), n("div", ge, [w(b(D), {
266
273
  size: 40
267
- })])) : (t(), P(a, {
274
+ })])) : (t(), P(u, {
268
275
  key: 1
269
- }))])]);
276
+ }))])], 4);
270
277
  };
271
278
  }
272
- }), Ve = /* @__PURE__ */ l(ye, [["__scopeId", "data-v-405e9c75"]]), be = /* @__PURE__ */ m({
279
+ }), Re = /* @__PURE__ */ l(ye, [["__scopeId", "data-v-c86c5eb9"]]), be = /* @__PURE__ */ f({
273
280
  __name: "Gradientbackground",
274
281
  props: {
275
282
  width: {
@@ -307,14 +314,14 @@ const Q = {
307
314
  }
308
315
  },
309
316
  setup(o) {
310
- const e = o, s = x(() => ({
317
+ const e = o, s = M(() => ({
311
318
  pointerEvents: "none",
312
319
  position: "absolute",
313
320
  zIndex: e.zIndex,
314
321
  width: e.width,
315
322
  height: e.height,
316
323
  filter: `blur(${e.blur})`
317
- })), i = x(() => ({
324
+ })), r = M(() => ({
318
325
  width: "100%",
319
326
  height: "100%",
320
327
  background: e.background
@@ -324,15 +331,15 @@ const Q = {
324
331
  }));
325
332
  return (a, u) => (t(), n("div", {
326
333
  class: "ellipsis",
327
- style: M(s.value)
334
+ style: S(s.value)
328
335
  }, [c("div", {
329
336
  class: "ellipsis-item",
330
- style: M(i.value)
337
+ style: S(r.value)
331
338
  }, null, 4)], 4));
332
339
  }
333
- }), Be = /* @__PURE__ */ l(be, [["__scopeId", "data-v-b6461ac4"]]), ke = {
340
+ }), Ve = /* @__PURE__ */ l(be, [["__scopeId", "data-v-b6461ac4"]]), ke = {
334
341
  class: "SvgIcon"
335
- }, Se = ["href", "fill"], we = /* @__PURE__ */ m({
342
+ }, Se = ["href", "fill"], we = /* @__PURE__ */ f({
336
343
  __name: "SvgIcon",
337
344
  props: {
338
345
  prefix: {
@@ -351,26 +358,26 @@ const Q = {
351
358
  }
352
359
  },
353
360
  setup(o) {
354
- const e = o, s = x(() => `#${e.prefix ?? "icon"}-${e.name}`);
355
- return (i, a) => (t(), n("svg", ke, [c("use", {
361
+ const e = o, s = M(() => `#${e.prefix ?? "icon"}-${e.name}`);
362
+ return (r, a) => (t(), n("svg", ke, [c("use", {
356
363
  href: s.value,
357
364
  fill: e.color
358
365
  }, null, 8, Se)]));
359
366
  }
360
- }), De = /* @__PURE__ */ l(we, [["__scopeId", "data-v-0a9de94e"]]), $e = {}, Ce = {
367
+ }), De = /* @__PURE__ */ l(we, [["__scopeId", "data-v-0a9de94e"]]), $e = {}, Ie = {
361
368
  class: "WidthContainer"
362
369
  };
363
- function Ie(o, e) {
364
- return t(), n("div", Ce, [B(o.$slots, "default", {}, void 0, !0)]);
370
+ function Ce(o, e) {
371
+ return t(), n("div", Ie, [V(o.$slots, "default", {}, void 0, !0)]);
365
372
  }
366
- const Ee = /* @__PURE__ */ l($e, [["render", Ie], ["__scopeId", "data-v-d06aac1f"]]);
373
+ const Ee = /* @__PURE__ */ l($e, [["render", Ce], ["__scopeId", "data-v-d06aac1f"]]);
367
374
  export {
368
- Re as C,
369
- Ve as D,
370
- Be as G,
371
- he as H,
375
+ Be as C,
376
+ Re as D,
377
+ Ve as G,
378
+ _e as H,
372
379
  le as L,
373
380
  De as S,
374
381
  Ee as W,
375
- re as a
382
+ ie as a
376
383
  };
package/dist/common.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { C as s, a as o } from "./CollapseItem-Cw1vcdLu.js";
2
- import { C as r, D as n, G as l, H as C, a as m, L as p, S as u, W as d } from "./WidthContainer-D9JWjdkk.js";
2
+ import { C as r, D as n, G as l, H as C, a as m, L as p, S as u, W as d } from "./WidthContainer-C30YFs9X.js";
3
3
  import { C as i, E as x } from "./CustomTable-kfI18phy.js";
4
4
  import { M, a as g } from "./Menu-BKBnsDJ8.js";
5
5
  export {
@@ -1,8 +1,10 @@
1
1
  interface Props {
2
2
  menuType?: string;
3
3
  showUserPanel?: boolean;
4
+ backgroundImage?: string;
4
5
  }
5
6
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
7
+ backgroundImage: string;
6
8
  menuType: string;
7
9
  showUserPanel: boolean;
8
10
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import { C as i4 } from "./Clipboard-CGm0G1dN.js";
17
17
  import { F as C4, a as r4, c as c4, b as l4, d as d4 } from "./FeedbackItem-Day3rfSw.js";
18
18
  import { L as f4, a as _4, b as h4, c as g4, d as u4, B as L4, C as m4, e as F4, f as w4, g as y4, h as M4, D as v4, i as Z4, j as x4, P as V4, Q as H4, k as U4, l as E4, R as k4, m as G4, n as S4, o as A4, p as D4, q as B4, r as b4, s as P4, t as O4, u as I4, v as T4, w as $4, x as N4, y as R4, z as W4, A as z4, V as q4, E as j4, F as Q4, G as J4, H as K4, S as X4, T as Y4, I as e6, J as t6, K as o6, U as a6, M as s6, N as i6, O as n6 } from "./LandingPageSectionTabs-DPTZIwiJ.js";
19
19
  import { C as r6, a as c6 } from "./CollapseItem-Cw1vcdLu.js";
20
- import { C as d6, D as p6, G as f6, H as _6, a as h6, L as g6, S as u6, W as L6 } from "./WidthContainer-D9JWjdkk.js";
20
+ import { C as d6, D as p6, G as f6, H as _6, a as h6, L as g6, S as u6, W as L6 } from "./WidthContainer-C30YFs9X.js";
21
21
  import { C as F6, E as w6 } from "./CustomTable-kfI18phy.js";
22
22
  import { M as M6, a as v6 } from "./Menu-BKBnsDJ8.js";
23
23
  import { S as x6 } from "./PaySubscriptions-Dp8y1fdJ.js";