@huyooo/ui 0.5.6 → 0.5.7

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,22 +1,22 @@
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";
1
+ import { defineComponent as f, createElementBlock as n, openBlock as t, createElementVNode as c, createCommentVNode as p, toDisplayString as k, ref as M, onMounted as A, onUnmounted as U, Fragment as q, renderList as H, normalizeClass as C, normalizeStyle as S, watch as B, createVNode as $, unref as b, createBlock as D, renderSlot as P, computed as x } from "vue";
2
2
  import { _ as l } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
- import { Spin as D } from "@arco-design/web-vue";
6
- import { c as E } from "./UserPanel-DgSdGhj5.js";
7
- import { u as K } from "./useAuthkitAppsAuthPageInfo-qWOtNCda.js";
8
- import { u as W } from "./AuthkitAuthModal.vue_vue_type_style_index_1_lang-BpOmabWi.js";
9
- import { a as G } from "./useAuthkitUsersProfile-a-kA3R2Y.js";
10
- import { u as N, f as O, w as L, a as F } from "./useRoutePermission-BKg7oQTj.js";
11
- import { useRouter as j, useRoute as J } from "vue-router";
12
- const Q = {
5
+ import { Spin as E } from "@arco-design/web-vue";
6
+ import { c as K } from "./UserPanel-DgSdGhj5.js";
7
+ import { u as R } from "./useAuthkitAppsAuthPageInfo-qWOtNCda.js";
8
+ import { u as V } from "./AuthkitAuthModal.vue_vue_type_style_index_1_lang-BpOmabWi.js";
9
+ import { a as W } from "./useAuthkitUsersProfile-a-kA3R2Y.js";
10
+ import { u as G, f as N, w as L, a as O } from "./useRoutePermission-BKg7oQTj.js";
11
+ import { useRouter as F, useRoute as j } from "vue-router";
12
+ const J = {
13
13
  class: "ContentHead"
14
- }, X = {
14
+ }, Q = {
15
15
  class: "title"
16
- }, Y = {
16
+ }, X = {
17
17
  key: 0,
18
18
  class: "description"
19
- }, Z = /* @__PURE__ */ f({
19
+ }, Y = /* @__PURE__ */ f({
20
20
  __name: "ContentHead",
21
21
  props: {
22
22
  title: {
@@ -32,19 +32,19 @@ const Q = {
32
32
  },
33
33
  setup(o) {
34
34
  const e = o;
35
- 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
+ return (s, r) => (t(), n("div", J, [c("h1", Q, k(e.title), 1), e.description ? (t(), n("p", X, k(e.description), 1)) : p("", !0)]));
36
36
  }
37
- }), Re = /* @__PURE__ */ l(Z, [["__scopeId", "data-v-209a7bef"]]), ee = {
37
+ }), Be = /* @__PURE__ */ l(Y, [["__scopeId", "data-v-209a7bef"]]), Z = {
38
38
  class: "HeaderMenus"
39
- }, te = {
39
+ }, ee = {
40
40
  key: 0,
41
41
  class: "desktop-menus"
42
- }, ne = ["onClick"], oe = {
42
+ }, te = ["onClick"], ne = {
43
43
  key: 3,
44
44
  class: "mobile-menu"
45
- }, se = {
45
+ }, oe = {
46
46
  class: "mobile-menu-content"
47
- }, ae = ["onClick"], re = /* @__PURE__ */ f({
47
+ }, se = ["onClick"], ae = /* @__PURE__ */ f({
48
48
  __name: "HeaderMenus",
49
49
  props: {
50
50
  menus: {
@@ -60,7 +60,7 @@ const Q = {
60
60
  setup(o, {
61
61
  emit: e
62
62
  }) {
63
- const s = o, r = e, a = x(!1), u = x(!1);
63
+ const s = o, r = e, a = M(!1), u = M(!1);
64
64
  function h() {
65
65
  u.value = window.innerWidth <= 1024;
66
66
  }
@@ -76,7 +76,7 @@ const Q = {
76
76
  function _(i) {
77
77
  return s.activateKey === i.path;
78
78
  }
79
- function $(i) {
79
+ function w(i) {
80
80
  r("change", i);
81
81
  }
82
82
  function y() {
@@ -86,13 +86,13 @@ const Q = {
86
86
  h(), window.addEventListener("resize", y);
87
87
  }), U(() => {
88
88
  window.removeEventListener("resize", y);
89
- }), (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
+ }), (i, z) => (t(), n("div", Z, [u.value ? p("", !0) : (t(), n("div", ee, [(t(!0), n(q, null, H(s.menus, (d, I) => (t(), n("div", {
90
90
  key: I,
91
91
  class: C(["headerLink", {
92
92
  activate: _(d)
93
93
  }]),
94
- onClick: (T) => $(d)
95
- }, k(d.name), 11, ne))), 128))])), u.value ? (t(), n("button", {
94
+ onClick: (T) => w(d)
95
+ }, k(d.name), 11, te))), 128))])), u.value ? (t(), n("button", {
96
96
  key: 1,
97
97
  class: C(["mobile-menu-toggle", {
98
98
  active: a.value
@@ -109,15 +109,15 @@ const Q = {
109
109
  key: 2,
110
110
  class: "mobile-menu-overlay",
111
111
  onClick: m
112
- })) : 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
+ })) : p("", !0), a.value ? (t(), n("div", ne, [c("div", oe, [(t(!0), n(q, null, H(s.menus, (d, I) => (t(), n("div", {
113
113
  key: I,
114
114
  class: C(["mobile-menu-item", {
115
115
  activate: _(d)
116
116
  }]),
117
117
  onClick: (T) => v(d)
118
- }, k(d.name), 11, ae))), 128))])])) : p("", !0)]));
118
+ }, k(d.name), 11, se))), 128))])])) : p("", !0)]));
119
119
  }
120
- }), ie = /* @__PURE__ */ l(re, [["__scopeId", "data-v-67bf8ea1"]]), ce = ["src"], ue = /* @__PURE__ */ f({
120
+ }), re = /* @__PURE__ */ l(ae, [["__scopeId", "data-v-67bf8ea1"]]), ie = ["src"], ce = /* @__PURE__ */ f({
121
121
  __name: "Logo",
122
122
  props: {
123
123
  name: {
@@ -159,7 +159,7 @@ const Q = {
159
159
  alt: "logo",
160
160
  loading: "lazy",
161
161
  decoding: "async"
162
- }, null, 8, ce)) : p("", !0), c("div", {
162
+ }, null, 8, ie)) : p("", !0), c("div", {
163
163
  class: "text",
164
164
  style: S({
165
165
  color: s.color,
@@ -167,13 +167,13 @@ const Q = {
167
167
  })
168
168
  }, k(o.name), 5)]));
169
169
  }
170
- }), le = /* @__PURE__ */ l(ue, [["__scopeId", "data-v-694a3ecc"]]), de = {
170
+ }), ue = /* @__PURE__ */ l(ce, [["__scopeId", "data-v-694a3ecc"]]), le = {
171
171
  class: "HeaderCom"
172
- }, pe = {
172
+ }, de = {
173
173
  class: "left"
174
- }, fe = {
174
+ }, pe = {
175
175
  class: "right"
176
- }, me = /* @__PURE__ */ f({
176
+ }, fe = /* @__PURE__ */ f({
177
177
  __name: "Header",
178
178
  props: {
179
179
  menuType: {
@@ -187,14 +187,14 @@ const Q = {
187
187
  setup(o) {
188
188
  const e = o, {
189
189
  show: s
190
- } = W(), {
190
+ } = V(), {
191
191
  isLoggedIn: r
192
- } = G(), {
192
+ } = W(), {
193
193
  appsData: a
194
- } = K(), {
194
+ } = R(), {
195
195
  menus: u,
196
196
  hasPermission: h
197
- } = N(e.menuType), g = x(""), m = j(), v = J();
197
+ } = G(e.menuType), g = M(""), m = F(), v = j();
198
198
  function _() {
199
199
  L(() => {
200
200
  m.push({
@@ -205,7 +205,7 @@ const Q = {
205
205
  });
206
206
  });
207
207
  }
208
- function $(y) {
208
+ function w(y) {
209
209
  const i = y.path;
210
210
  if (!h(i)) {
211
211
  r.value || (s.value = !0);
@@ -219,29 +219,29 @@ const Q = {
219
219
  });
220
220
  }
221
221
  return B(() => v.path, () => {
222
- g.value = O(v.matched, e.menuType, v.path);
222
+ g.value = N(v.matched, e.menuType, v.path);
223
223
  }, {
224
224
  immediate: !0
225
- }), (y, i) => (t(), n("div", de, [c("div", pe, [w(le, {
225
+ }), (y, i) => (t(), n("div", le, [c("div", de, [$(ue, {
226
226
  icon: b(a).applicationLogoUrl,
227
227
  name: b(a).name,
228
228
  onTo: _
229
- }, null, 8, ["icon", "name"])]), c("div", fe, [w(ie, {
229
+ }, null, 8, ["icon", "name"])]), c("div", pe, [$(re, {
230
230
  menus: b(u),
231
231
  activateKey: g.value,
232
- onChange: $
233
- }, null, 8, ["menus", "activateKey"]), e.showUserPanel ? (t(), P(E, {
232
+ onChange: w
233
+ }, null, 8, ["menus", "activateKey"]), e.showUserPanel ? (t(), D(K, {
234
234
  key: 0,
235
235
  onToHomePage: _,
236
236
  onSignOut: _
237
237
  })) : p("", !0)])]));
238
238
  }
239
- }), _e = /* @__PURE__ */ l(me, [["__scopeId", "data-v-2225e367"]]), he = {
239
+ }), me = /* @__PURE__ */ l(fe, [["__scopeId", "data-v-2225e367"]]), _e = {
240
240
  class: "body"
241
- }, ge = {
241
+ }, he = {
242
242
  key: 0,
243
243
  class: "loading"
244
- }, ve = "linear-gradient(to bottom, #fefdff, #f9f6fe, #f2eefd, #ebe8fd, #e2e1fd, #dfe0fd, #dcdffd, #d9defd, #dde2fd, #e0e5fd, #e4e9fd, #e8ecfd)", ye = /* @__PURE__ */ f({
244
+ }, ge = "linear-gradient(to bottom, #fefdff, #f9f6fe, #f2eefd, #ebe8fd, #e2e1fd, #dfe0fd, #dcdffd, #d9defd, #dde2fd, #e0e5fd, #e4e9fd, #e8ecfd)", ve = /* @__PURE__ */ f({
245
245
  __name: "DefaultLayout",
246
246
  props: {
247
247
  menuType: {
@@ -258,26 +258,23 @@ const Q = {
258
258
  setup(o) {
259
259
  const e = o, {
260
260
  isChecking: s
261
- } = F();
262
- return (r, a) => {
263
- const u = R("RouterView");
264
- return t(), n("div", {
265
- class: "layout",
266
- style: S({
267
- backgroundImage: e.backgroundImage || ve,
268
- backgroundAttachment: "fixed"
269
- })
270
- }, [w(_e, {
271
- "menu-type": e.menuType,
272
- "show-user-panel": e.showUserPanel
273
- }, null, 8, ["menu-type", "show-user-panel"]), c("div", he, [b(s) ? (t(), n("div", ge, [w(b(D), {
274
- size: 40
275
- })])) : (t(), P(u, {
276
- key: 1
277
- }))])], 4);
278
- };
261
+ } = O();
262
+ return (r, a) => (t(), n("div", {
263
+ class: "layout",
264
+ style: S({
265
+ backgroundImage: e.backgroundImage || ge,
266
+ backgroundAttachment: "fixed"
267
+ })
268
+ }, [$(me, {
269
+ "menu-type": e.menuType,
270
+ "show-user-panel": e.showUserPanel
271
+ }, null, 8, ["menu-type", "show-user-panel"]), c("div", _e, [b(s) ? (t(), n("div", he, [$(b(E), {
272
+ size: 40
273
+ })])) : P(r.$slots, "default", {
274
+ key: 1
275
+ }, void 0, !0)])], 4));
279
276
  }
280
- }), Ve = /* @__PURE__ */ l(ye, [["__scopeId", "data-v-c86c5eb9"]]), be = /* @__PURE__ */ f({
277
+ }), De = /* @__PURE__ */ l(ve, [["__scopeId", "data-v-0289e975"]]), ye = /* @__PURE__ */ f({
281
278
  __name: "Gradientbackground",
282
279
  props: {
283
280
  width: {
@@ -315,14 +312,14 @@ const Q = {
315
312
  }
316
313
  },
317
314
  setup(o) {
318
- const e = o, s = M(() => ({
315
+ const e = o, s = x(() => ({
319
316
  pointerEvents: "none",
320
317
  position: "absolute",
321
318
  zIndex: e.zIndex,
322
319
  width: e.width,
323
320
  height: e.height,
324
321
  filter: `blur(${e.blur})`
325
- })), r = M(() => ({
322
+ })), r = x(() => ({
326
323
  width: "100%",
327
324
  height: "100%",
328
325
  background: e.background
@@ -338,9 +335,9 @@ const Q = {
338
335
  style: S(r.value)
339
336
  }, null, 4)], 4));
340
337
  }
341
- }), De = /* @__PURE__ */ l(be, [["__scopeId", "data-v-b6461ac4"]]), ke = {
338
+ }), Ee = /* @__PURE__ */ l(ye, [["__scopeId", "data-v-b6461ac4"]]), be = {
342
339
  class: "SvgIcon"
343
- }, Se = ["href", "fill"], we = /* @__PURE__ */ f({
340
+ }, ke = ["href", "fill"], Se = /* @__PURE__ */ f({
344
341
  __name: "SvgIcon",
345
342
  props: {
346
343
  prefix: {
@@ -359,26 +356,26 @@ const Q = {
359
356
  }
360
357
  },
361
358
  setup(o) {
362
- const e = o, s = M(() => `#${e.prefix ?? "icon"}-${e.name}`);
363
- return (r, a) => (t(), n("svg", ke, [c("use", {
359
+ const e = o, s = x(() => `#${e.prefix ?? "icon"}-${e.name}`);
360
+ return (r, a) => (t(), n("svg", be, [c("use", {
364
361
  href: s.value,
365
362
  fill: e.color
366
- }, null, 8, Se)]));
363
+ }, null, 8, ke)]));
367
364
  }
368
- }), Ee = /* @__PURE__ */ l(we, [["__scopeId", "data-v-0a9de94e"]]), $e = {}, Ie = {
365
+ }), Ke = /* @__PURE__ */ l(Se, [["__scopeId", "data-v-0a9de94e"]]), $e = {}, we = {
369
366
  class: "WidthContainer"
370
367
  };
371
- function Ce(o, e) {
372
- return t(), n("div", Ie, [V(o.$slots, "default", {}, void 0, !0)]);
368
+ function Ie(o, e) {
369
+ return t(), n("div", we, [P(o.$slots, "default", {}, void 0, !0)]);
373
370
  }
374
- const Ke = /* @__PURE__ */ l($e, [["render", Ce], ["__scopeId", "data-v-d06aac1f"]]);
371
+ const Re = /* @__PURE__ */ l($e, [["render", Ie], ["__scopeId", "data-v-d06aac1f"]]);
375
372
  export {
376
- Re as C,
377
- Ve as D,
378
- De as G,
379
- _e as H,
380
- le as L,
381
- Ee as S,
382
- Ke as W,
383
- ie as a
373
+ Be as C,
374
+ De as D,
375
+ Ee as G,
376
+ me as H,
377
+ ue as L,
378
+ Ke as S,
379
+ Re as W,
380
+ re as a
384
381
  };
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-DEGjQQMM.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-3fyX6xI4.js";
3
3
  import { C as i, E as x } from "./CustomTable-B8i1SbFB.js";
4
4
  import { M, a as g } from "./Menu-BKBnsDJ8.js";
5
5
  export {
@@ -3,9 +3,24 @@ interface Props {
3
3
  showUserPanel?: boolean;
4
4
  backgroundImage?: string;
5
5
  }
6
- declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
7
16
  backgroundImage: string;
8
17
  menuType: string;
9
18
  showUserPanel: boolean;
10
19
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
11
21
  export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import { F as c4, a as r4, c as l4, b as d4, d as p4 } from "./FeedbackItem-TRyk
19
19
  import { L as _4, a as h4, b as g4, c as u4, B as L4, C as m4, d as F4, e as w4, f as y4, w as M4, x as x4, g as v4, h as Z4, y as V4, i as H4, j as U4, k as E4, l as k4, m as S4, n as G4, A as A4, o as D4, p as B4, q as b4, r as P4, S as O4, T as I4, s as T4, z as $4, t as N4, u as R4, v as W4 } from "./LandingPageSectionTabs-6Rrgvwqs.js";
20
20
  import { L as j4, a as q4, b as Q4, D as J4, c as K4, d as X4, e as Y4, f as e6, g as t6, h as o6, i as a6, j as s6, k as i6, l as n6, m as C6, n as c6 } from "./LandingPageSectionHeader-CSOwusSK.js";
21
21
  import { C as l6, a as d6 } from "./CollapseItem-Cw1vcdLu.js";
22
- import { C as f6, D as _6, G as h6, H as g6, a as u6, L as L6, S as m6, W as F6 } from "./WidthContainer-DEGjQQMM.js";
22
+ import { C as f6, D as _6, G as h6, H as g6, a as u6, L as L6, S as m6, W as F6 } from "./WidthContainer-3fyX6xI4.js";
23
23
  import { C as y6, E as M6 } from "./CustomTable-B8i1SbFB.js";
24
24
  import { M as v6, a as Z6 } from "./Menu-BKBnsDJ8.js";
25
25
  import { S as H6 } from "./PaySubscriptions-DyHMXC_2.js";