@me-framework/me-ui-antdv-next 0.0.26 → 0.0.29

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 (60) hide show
  1. package/dist/chunks/input-icon-selector-BrrR4KK6.js +228 -0
  2. package/dist/chunks/modal-D4Tl-Qzk.js +166 -0
  3. package/dist/chunks/skeleton-D1-aYUPf.js +135 -0
  4. package/dist/icon/index.js +1 -1
  5. package/dist/index.d.ts +3 -1
  6. package/dist/input-gps/index.js +85 -233
  7. package/dist/input-gps/index.vue.d.ts +4 -2
  8. package/dist/input-gps/map.vue.d.ts +1 -1
  9. package/dist/input-gps/types.d.ts +9 -5
  10. package/dist/input-icon-selector/index.js +1 -1
  11. package/dist/input-icon-selector/index.vue.d.ts +1 -1
  12. package/dist/input-property/index.css +1 -0
  13. package/dist/input-property/index.d.ts +5 -0
  14. package/dist/input-property/index.js +269 -0
  15. package/dist/input-property/index.vue.d.ts +18 -0
  16. package/dist/input-property/types.d.ts +38 -0
  17. package/dist/input-property/validate.d.ts +18 -0
  18. package/dist/load-json/index.css +1 -0
  19. package/dist/load-json/index.js +91 -24319
  20. package/dist/load-json/index.vue.d.ts +3 -3
  21. package/dist/me-ui-antdv-next.js +1791 -1551
  22. package/dist/me-ui-antdv-next.umd.cjs +2 -2
  23. package/dist/message/index.js +1 -1
  24. package/dist/message/index.vue.d.ts +1 -1
  25. package/dist/modal/index.css +1 -0
  26. package/dist/modal/index.js +7 -1
  27. package/dist/modal/index.vue.d.ts +26 -5
  28. package/dist/modal/types.d.ts +47 -7
  29. package/dist/nav/index.js +1 -1
  30. package/dist/nav/index.vue.d.ts +3 -3
  31. package/dist/resolver/index.d.ts +1 -1
  32. package/dist/resolver/index.js +9 -5
  33. package/dist/skeleton/index.js +5 -138
  34. package/dist/style.css +1 -1
  35. package/dist/tree-menu/TreeMenuEdit.vue.d.ts +1 -1
  36. package/dist/tree-menu/index.js +2 -2
  37. package/dist/tree-menu/index.vue.d.ts +1 -1
  38. package/package.json +6 -6
  39. package/dist/chunks/input-icon-selector-D5c45QL8.js +0 -227
  40. package/dist/chunks/modal-Dke8ng3P.js +0 -178
  41. package/dist/chunks/rolldown-runtime-DtPi1Y-2.js +0 -13
  42. package/dist/load-json.css +0 -1
  43. package/dist/modal.css +0 -1
  44. /package/dist/{base.css → base/index.css} +0 -0
  45. /package/dist/{body.css → body/index.css} +0 -0
  46. /package/dist/{box.css → box/index.css} +0 -0
  47. /package/dist/{breadcrumb.css → breadcrumb/index.css} +0 -0
  48. /package/dist/{card.css → card/index.css} +0 -0
  49. /package/dist/chunks/{icon-DdoH0MfT.js → icon-CXjgApCy.js} +0 -0
  50. /package/dist/chunks/{message-CPHX2tAR.js → message-D2zYiiQe.js} +0 -0
  51. /package/dist/{icon.css → icon/index.css} +0 -0
  52. /package/dist/{input-gps.css → input-gps/index.css} +0 -0
  53. /package/dist/{input-icon-selector.css → input-icon-selector/index.css} +0 -0
  54. /package/dist/{input-radio.css → input-radio/index.css} +0 -0
  55. /package/dist/{login-page.css → login-page/index.css} +0 -0
  56. /package/dist/{menu.css → menu/index.css} +0 -0
  57. /package/dist/{message.css → message/index.css} +0 -0
  58. /package/dist/{nav.css → nav/index.css} +0 -0
  59. /package/dist/{skeleton.css → skeleton/index.css} +0 -0
  60. /package/dist/{tree-menu.css → tree-menu/index.css} +0 -0
@@ -1,178 +0,0 @@
1
- import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, mergeProps as c, onMounted as l, onUnmounted as u, openBlock as d, ref as f, renderSlot as p, resolveComponent as m, resolveDynamicComponent as h, toDisplayString as g, unref as _, useAttrs as v, withCtx as y, withModifiers as b } from "vue";
2
- import { Maximize as x, Minimize as S } from "@lucide/vue";
3
- import { theme as C } from "antdv-next";
4
- //#region src/components/modal/index.vue?vue&type=script&setup=true&lang.ts
5
- var w = { class: "me-modal__title-row" }, T = { class: "me-modal__title-text" }, E = ["title"], D = /* @__PURE__ */ s({
6
- name: "MeModal",
7
- __name: "index",
8
- props: {
9
- open: {
10
- type: Boolean,
11
- default: !1
12
- },
13
- fullscreen: {
14
- type: Boolean,
15
- default: !0
16
- },
17
- defaultFullscreen: {
18
- type: Boolean,
19
- default: !1
20
- },
21
- width: { default: 520 },
22
- _semanticOmit: {},
23
- _renderSemanticContent: {},
24
- confirmLoading: { type: Boolean },
25
- title: {},
26
- afterClose: {},
27
- afterOpenChange: {},
28
- centered: { type: Boolean },
29
- okText: {},
30
- okType: {},
31
- cancelText: {},
32
- forceRender: { type: Boolean },
33
- okButtonProps: {},
34
- cancelButtonProps: {},
35
- destroyOnClose: { type: Boolean },
36
- destroyOnHidden: { type: Boolean },
37
- wrapClassName: {},
38
- maskTransitionName: {},
39
- transitionName: {},
40
- rootClass: {},
41
- rootStyle: {},
42
- getContainer: { type: [
43
- String,
44
- Function,
45
- Boolean
46
- ] },
47
- zIndex: {},
48
- bodyStyle: {},
49
- maskStyle: {},
50
- mask: { type: [Object, Boolean] },
51
- maskClosable: { type: Boolean },
52
- keyboard: { type: Boolean },
53
- scrollLock: { type: Boolean },
54
- wrapProps: {},
55
- prefixCls: {},
56
- closeIcon: {},
57
- modalRender: {},
58
- focusTriggerAfterClose: { type: Boolean },
59
- mousePosition: {},
60
- loading: { type: Boolean },
61
- focusable: {},
62
- footer: {},
63
- closable: { type: [Boolean, Object] },
64
- classes: {},
65
- styles: {},
66
- className: {},
67
- children: { type: [
68
- Object,
69
- String,
70
- Number,
71
- null,
72
- Boolean,
73
- Array
74
- ] },
75
- visible: { type: Boolean },
76
- wrapStyle: {},
77
- height: {},
78
- bodyProps: {},
79
- maskProps: {},
80
- rootClassName: {},
81
- panelRef: {},
82
- onOk: {},
83
- onCancel: {},
84
- "onUpdate:open": {}
85
- },
86
- emits: [
87
- "update:open",
88
- "fullscreen-change",
89
- "ok",
90
- "cancel"
91
- ],
92
- setup(s, { expose: D, emit: O }) {
93
- let { defaultAlgorithm: k, darkAlgorithm: A } = C, j = s, M = O, N = v(), P = x, F = S, I = e(() => !!j.loading), L = e(() => j.title ?? ""), R = e(() => {
94
- let { open: e, fullscreen: t, defaultFullscreen: n, width: r, loading: i, "onUpdate:open": a, "onFullscreen-change": o, onOk: s, onCancel: c, ...l } = N;
95
- return l;
96
- }), z = e(() => j.fullscreen), B = e({
97
- get: () => j.open,
98
- set: (e) => {
99
- M("update:open", e);
100
- }
101
- }), V = f(j.defaultFullscreen), H = () => {
102
- V.value = !V.value, M("fullscreen-change", V.value);
103
- }, U = (e) => {
104
- M("cancel", e);
105
- }, W = (e) => {
106
- M("ok", e);
107
- }, G = e(() => V.value ? "100%" : j.width), K = e(() => {
108
- let e = ["me-modal-wrap"];
109
- return V.value && e.push("me-modal-wrap--fullscreen"), e.join(" ");
110
- }), q = f(!1), J = () => {
111
- typeof document < "u" && (q.value = document.documentElement.classList.contains("dark"));
112
- }, Y = null;
113
- l(() => {
114
- J(), typeof document < "u" && (Y = new MutationObserver(() => {
115
- J();
116
- }), Y.observe(document.documentElement, {
117
- attributes: !0,
118
- attributeFilter: ["class"]
119
- }));
120
- }), u(() => {
121
- Y?.disconnect(), Y = null;
122
- });
123
- let X = e(() => ({
124
- algorithm: q.value ? A : k,
125
- token: { borderRadius: 6 }
126
- }));
127
- return D({
128
- toggleFullscreen: H,
129
- isFullscreen: V
130
- }), (e, s) => {
131
- let l = m("a-skeleton"), u = m("a-modal"), f = m("a-config-provider");
132
- return d(), t(f, { theme: X.value }, {
133
- default: y(() => [o(u, c({
134
- open: B.value,
135
- "onUpdate:open": s[0] ||= (e) => B.value = e,
136
- width: G.value,
137
- "wrap-class-name": K.value,
138
- class: ["me-modal", {
139
- "me-modal--fullscreen": V.value,
140
- "me-modal--has-fullscreen": z.value
141
- }]
142
- }, R.value, {
143
- onCancel: U,
144
- onOk: W
145
- }), {
146
- title: y(() => [i("div", w, [i("span", T, [p(e.$slots, "title", {}, () => [a(g(L.value), 1)])]), z.value ? (d(), r("span", {
147
- key: 0,
148
- class: "me-modal__fullscreen-btn",
149
- role: "button",
150
- title: V.value ? "退出全屏" : "全屏",
151
- onClick: b(H, ["stop"])
152
- }, [(d(), t(h(V.value ? _(F) : _(P)), { size: 16 }))], 8, E)) : n("", !0)])]),
153
- default: y(() => [I.value ? (d(), t(l, {
154
- key: 0,
155
- active: "",
156
- paragraph: { rows: 4 },
157
- class: "me-modal__skeleton"
158
- })) : p(e.$slots, "default", {}, void 0, void 0, 1)]),
159
- _: 3
160
- }, 16, [
161
- "open",
162
- "width",
163
- "wrap-class-name",
164
- "class"
165
- ])]),
166
- _: 3
167
- }, 8, ["theme"]);
168
- };
169
- }
170
- });
171
- //#endregion
172
- //#region src/components/modal/index.ts
173
- D.install = (e) => {
174
- e.component("MeModal", D);
175
- };
176
- var O = D;
177
- //#endregion
178
- export { D as n, O as t };
@@ -1,13 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
3
- if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
4
- get: ((e) => i[e]).bind(null, d),
5
- enumerable: !(s = n(i, d)) || s.enumerable
6
- });
7
- return e;
8
- }, c = (n, r, o) => (o = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
9
- value: n,
10
- enumerable: !0
11
- }) : o, n));
12
- //#endregion
13
- export { c as n, o as t };