@yoyaflow/yoya-ui 0.3.3 → 0.4.0

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.
@@ -0,0 +1 @@
1
+ import{$ as ee,$n as te,$t as ne,Ai as re,An as e,Ar as t,At as n,B as r,Bi as i,Bn as a,Br as o,Bt as s,Ci as c,Cn as l,Cr as u,Ct as d,Di as f,Dn as p,Dr as m,Dt as h,Ei as g,En as _,Er as v,Et as y,F as b,Fi as x,Fn as S,Fr as C,Ft as w,G as T,Gn as E,Gr as D,Gt as O,H as k,Hn as A,Hr as j,Ht as M,I as N,Ii as P,In as F,Ir as I,It as L,J as R,Jn as z,Jt as B,K as V,Kn as H,Kr as U,Kt as W,L as G,Li as K,Ln as q,Lr as J,Lt as Y,M as X,Mi as ie,Mn as ae,Mr as oe,Mt as se,N as ce,Ni as le,Nn as ue,Nr as de,Nt as fe,Oi as pe,On as me,Or as he,Ot as ge,P as _e,Pi as Z,Pn as ve,Pr as ye,Pt as be,Q as xe,Qn as Se,Qt as Ce,R as we,Ri as Te,Rn as Ee,Rr as De,Rt as Oe,Si as ke,Sn as Ae,Sr as je,St as Me,Ti as Q,Tn as Ne,Tr as Pe,Tt as Fe,U as Ie,Un as Le,Ur as Re,Ut as ze,V as Be,Vn as Ve,Vr as He,Vt as Ue,W as We,Wn as Ge,Wr as Ke,Wt as qe,X as Je,Xn as Ye,Xt as Xe,Y as Ze,Yn as Qe,Yt as $e,Z as et,Zn as tt,Zt as nt,_i as rt,_n as it,_r as at,_t as ot,ai as st,an as ct,ar as lt,at as ut,bi as dt,bn as ft,br as $,bt as pt,ci as mt,cn as ht,cr as gt,ct as _t,di as vt,dn as yt,dr as bt,dt as xt,ei as St,en as Ct,er as wt,et as Tt,fi as Et,fn as Dt,fr as Ot,ft as kt,gi as At,gn as jt,gr as Mt,gt as Nt,hi as Pt,hn as Ft,hr as It,ht as Lt,ii as Rt,in as zt,ir as Bt,it as Vt,ji as Ht,jn as Ut,jr as Wt,jt as Gt,ki as Kt,kn as qt,kr as Jt,kt as Yt,li as Xt,ln as Zt,lr as Qt,lt as $t,mi as en,mn as tn,mr as nn,mt as rn,ni as an,nn as on,nr as sn,nt as cn,oi as ln,on as un,or as dn,ot as fn,pi as pn,pn as mn,pr as hn,pt as gn,q as _n,qn as vn,qt as yn,ri as bn,rn as xn,rr as Sn,rt as Cn,si as wn,sn as Tn,sr as En,st as Dn,ti as On,tn as kn,tr as An,tt as jn,ui as Mn,un as Nn,ur as Pn,ut as Fn,vi as In,vn as Ln,vr as Rn,vt as zn,wi as Bn,wn as Vn,wr as Hn,xi as Un,xn as Wn,xr as Gn,xt as Kn,yi as qn,yn as Jn,yr as Yn,yt as Xn,z as Zn,zi as Qn,zn as $n,zr as er,zt as tr}from"./yoya.core.chunk.min.js";export{b as ArrowDownOutlined,N as ArrowLeftOutlined,G as ArrowRightOutlined,we as ArrowUpOutlined,Zn as BellOutlined,r as CalendarOutlined,Be as CheckOutlined,k as ChevronDownOutlined,Ie as ChevronLeftOutlined,We as ChevronRightOutlined,T as ChevronUpOutlined,Un as ClientOnlyNode,V as CloseOutlined,_n as CodeOutlined,c as ComponentNode,R as CopyOutlined,Ze as DownloadOutlined,Je as EditOutlined,Bn as ElementNode,et as ExternalOutlined,xe as EyeOutlined,ee as FileOutlined,Tt as FolderOpenOutlined,jn as FolderOutlined,cn as HeartOutlined,Cn as HomeOutlined,Fe as HtmlElementNode,st as I18n,ln as I18nTextNode,Vt as ImageOutlined,ut as InfoOutlined,fn as LockOutlined,Dn as LogoutOutlined,_t as MailOutlined,$t as MenuOutlined,Fn as MinusOutlined,xt as MonitorOutlined,kt as MoonOutlined,gn as MoreHorizontalOutlined,rn as PlusOutlined,Lt as RefreshOutlined,ye as RequestBase,de as Result,X as SVG_NAMESPACE,Nt as SearchOutlined,ot as SettingsOutlined,zn as StarOutlined,Xn as SunOutlined,ce as SvgElementNode,Q as TextNode,Q as VTextNode,Q as ViewTextNode,pt as TrashOutlined,Kn as UploadOutlined,Me as UserOutlined,g as ViewNode,d as WarningOutlined,y as a,h as abbr,ge as address,j as announce,f as applyElementOptions,Yt as area,n as article,Gt as aside,se as audio,fe as b,be as base,w as bdi,L as bdo,rt as bindDocumentEvent,In as bindWindowEvent,Y as blockquote,Oe as body,tr as br,s as button,Ue as canvas,M as caption,ze as cite,St as clearInstalledContext,qe as code,O as col,W as colgroup,C as configureRequest,x as createAccess,pe as createElementFactory,Re as createFocusTrap,yn as createHtmlFactories,wn as createI18n,P as currentAccess,On as currentContext,B as data,$e as datalist,Xe as dd,nt as del,Ce as details,ne as dfn,Ct as dialog,kn as div,on as dl,xn as dt,zt as em,ct as embed,Kt as escapeHtml,un as fieldset,Tn as figcaption,ht as figure,Zt as footer,Nn as form,Ke as getFocusableElements,mt as getI18n,Xt as getPersistedI18nLocales,I as getYoyaMode,J as getYoyaTheme,yt as h1,Dt as h2,mn as h3,tn as h4,Ft as h5,jt as h6,it as head,Ln as header,Jn as hgroup,ft as hr,Wn as html,Ae as i,Mn as i18n,vt as i18nText,l as iframe,Vn as img,De as initYoyaTheme,qn as injectDocumentStyle,Ne as input,_ as ins,K as installAccess,an as installContext,Et as installI18nStringShortcut,p as kbd,me as label,qt as legend,e as li,Ut as link,pn as listI18n,ae as main,ue as map,ve as mark,S as menu,F as meta,q as meter,D as moveByKey,Ee as nav,re as normalizeChild,Ht as normalizeSetupArguments,$n as noscript,a as object,Ve as ol,A as optgroup,Le as option,Ge as output,E as p,Te as parseAccessSpec,H as picture,vn as pre,z as progress,Qe as q,ie as registerChildFactories,en as registerI18n,le as resolveTarget,er as resolveYoyaMode,Ye as rp,tt as rt,Se as ruby,te as s,wt as samp,An as script,sn as search,Sn as section,Bt as select,lt as selectedcontent,o as setYoyaMode,He as setYoyaTheme,dn as slot,En as small,bn as snapshotContext,gt as source,Qt as span,Qn as stripAccessCode,Pn as strong,bt as style,Ot as styleTag,hn as sub,nn as summary,It as sup,_e as svg,Mt as table,at as tbody,Rn as td,Yn as template,Z as text,Z as vText,$ as textarea,Gn as tfoot,je as th,u as thead,Hn as time,Pe as title,v as tr,m as track,he as u,Jt as ul,dt as unbindDocumentEvent,Pt as unregisterI18n,ke as vClientOnly,U as vStateNode,t as varTag,Wt as video,oe as wbr,i as withAccess,Rt as withContext,At as withI18nStringShortcut};
@@ -1,223 +1,3 @@
1
- //#region src/core/context.js
2
- var e = [], t = null;
3
- function n() {
4
- let n = { ...t || {} };
5
- return e.forEach((e) => Object.assign(n, e)), n;
6
- }
7
- //#endregion
8
- //#region src/core/devtools.js
9
- var r = !1, i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new Map(), s = 1, c = 1, l = /* @__PURE__ */ new WeakMap();
10
- function u() {
11
- return r = !0, !0;
12
- }
13
- function d() {
14
- return r = !1, !1;
15
- }
16
- function f() {
17
- return r;
18
- }
19
- function p(e) {
20
- if (!r) return;
21
- let t = {
22
- seq: c,
23
- ...e
24
- };
25
- c += 1, t.node && typeof t.node == "object" && t.nodeId === void 0 && (t.nodeId = h(t.node)), t.node && typeof t.node == "object" && t.nodeLabel === void 0 && (t.nodeLabel = C(t.node)), i.forEach((e) => {
26
- try {
27
- e(t);
28
- } catch {}
29
- });
30
- }
31
- function m(e) {
32
- return i.add(e), () => i.delete(e);
33
- }
34
- function h(e) {
35
- let t = a.get(e);
36
- return t === void 0 && (t = s, s += 1, a.set(e, t)), o.set(t, e), t;
37
- }
38
- function g(e) {
39
- let t = a.get(e);
40
- t !== void 0 && o.delete(t);
41
- }
42
- function _(e) {
43
- let t = n();
44
- e._devtoolsContext = Object.keys(t).length > 0 ? t : null;
45
- }
46
- function v(e) {
47
- let t = o.get(e);
48
- if (!t || t._deleted) return null;
49
- let n = t._access, r = {
50
- id: e,
51
- access: n ? {
52
- code: n.code,
53
- level: n.level
54
- } : null,
55
- context: t._devtoolsContext || null,
56
- i18n: null
57
- };
58
- return typeof t._permissionState == "function" && (r.permissionState = t._permissionState()), t._i18n && typeof t._i18n.getLanguage == "function" && (r.i18n = {
59
- key: t._key ?? void 0,
60
- language: t._i18n.getLanguage()
61
- }), r;
62
- }
63
- function y(e) {
64
- let t = o.get(e);
65
- return !t || t._deleted || !("_el" in t) || !t._el ? null : t._el;
66
- }
67
- function b(e) {
68
- return h(e);
69
- }
70
- function x(e) {
71
- return typeof e._tagName == "string" && e._attrs ? "element" : typeof e._content == "string" && "_textNode" in e ? "text" : "_component" in e && "_resolvedList" in e ? "component" : "view";
72
- }
73
- function S(e, t) {
74
- return t === "component" ? Array.isArray(e._resolvedList) ? e._resolvedList : [] : Array.isArray(e._children) ? e._children : [];
75
- }
76
- function C(e) {
77
- let t = x(e);
78
- if (t === "element") {
79
- let t = (e._classes ? [...e._classes].slice(0, 2) : []).map((e) => String(e).replace(/\s+/g, "")).filter(Boolean).map((e) => `.${e}`).join("");
80
- return `${e._tagName || "element"}${t}`;
81
- }
82
- if (t === "text") {
83
- let t = typeof e._content == "string" ? e._content : "";
84
- return `文本 "${t.length > 24 ? `${t.slice(0, 24)}…` : t}"`;
85
- }
86
- return t === "component" ? "组件" : "节点";
87
- }
88
- function w(e) {
89
- let t = x(e), n = {
90
- kind: t,
91
- id: h(e)
92
- };
93
- return t === "element" ? {
94
- ...n,
95
- tagName: e._tagName,
96
- attrs: { ...e._attrs },
97
- children: S(e, t).map((e) => w(e))
98
- } : t === "text" ? {
99
- ...n,
100
- text: e._content,
101
- children: []
102
- } : {
103
- ...n,
104
- children: S(e, t).map((e) => w(e))
105
- };
106
- }
107
- function T(e) {
108
- let t = x(e), n = h(e);
109
- return t === "element" ? {
110
- kind: t,
111
- id: n,
112
- attrs: { ...e._attrs },
113
- styles: { ...e._styles },
114
- childIds: (e._children || []).map((e) => h(e))
115
- } : t === "text" ? {
116
- kind: t,
117
- id: n,
118
- text: e._content
119
- } : t === "component" ? {
120
- kind: t,
121
- id: n,
122
- childIds: (e._resolvedList || []).map((e) => h(e))
123
- } : {
124
- kind: t,
125
- id: n,
126
- childIds: (e._children || []).map((e) => h(e))
127
- };
128
- }
129
- function E(e, t) {
130
- let n = {};
131
- return (/* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])).forEach((r) => {
132
- Object.is(e[r], t[r]) || (n[r] = {
133
- previous: e[r],
134
- next: t[r]
135
- });
136
- }), Object.keys(n).length > 0 ? n : null;
137
- }
138
- function D(e, t) {
139
- let n = {};
140
- if (e.kind === "element" && t.kind === "element") {
141
- let r = E(e.attrs, t.attrs);
142
- r && (n.attrs = r);
143
- let i = E(e.styles, t.styles);
144
- i && (n.styles = i);
145
- }
146
- e.kind === "text" && t.kind === "text" && !Object.is(e.text, t.text) && (n.text = {
147
- from: e.text,
148
- to: t.text
149
- });
150
- let r = e.childIds || [], i = t.childIds || [], a = new Set(r), o = new Set(i), s = i.filter((e) => !a.has(e)), c = r.filter((e) => !o.has(e)), l = c.length === 0 && s.length === 0 && i.length > 1 && i.some((e, t) => r[t] !== e);
151
- return (s.length > 0 || c.length > 0 || l) && (n.children = {
152
- added: s,
153
- removed: c,
154
- reordered: l
155
- }), n;
156
- }
157
- function O(e) {
158
- e && l.set(e, T(e));
159
- }
160
- function k(e, t, n) {
161
- !r || !e || (p({
162
- type: t,
163
- node: e,
164
- ...n
165
- }), O(e));
166
- }
167
- function A(e) {
168
- if (!r || !e || e._deleted) return;
169
- let t = T(e), n = l.get(e);
170
- if (!n) {
171
- p({
172
- type: "commit",
173
- kind: "mount",
174
- node: e
175
- }), l.set(e, t);
176
- return;
177
- }
178
- let i = D(n, t);
179
- Object.entries(i.attrs || {}).forEach(([t, n]) => {
180
- p({
181
- type: "attr",
182
- node: e,
183
- name: t,
184
- ...n
185
- });
186
- }), Object.entries(i.styles || {}).forEach(([t, n]) => {
187
- p({
188
- type: "style",
189
- node: e,
190
- name: t,
191
- ...n
192
- });
193
- }), i.children && p({
194
- type: "child",
195
- node: e,
196
- ...i.children
197
- }), i.text && p({
198
- type: "text",
199
- node: e,
200
- ...i.text
201
- }), l.set(e, t);
202
- }
203
- function j(e) {
204
- return e ? w(e) : {
205
- kind: "root",
206
- children: []
207
- };
208
- }
209
- var M = Symbol.for("yoya.devtools.bridge");
210
- function N() {
211
- typeof globalThis > "u" || (globalThis[M] = {
212
- captureScope: _,
213
- commit: A,
214
- emit: p,
215
- enabled: () => r,
216
- ensureId: b,
217
- notify: k,
218
- unregister: g
219
- });
220
- }
221
- N();
222
- //#endregion
223
- export { d as disableDevtools, u as enableDevtools, y as getDevtoolsDom, v as getDevtoolsScope, j as getDevtoolsSnapshot, f as isDevtoolsEnabled, m as subscribeDevtools };
1
+ import { $r as subscribeDevtools, Jr as enableDevtools, Qr as isDevtoolsEnabled, Xr as getDevtoolsScope, Yr as getDevtoolsDom, Zr as getDevtoolsSnapshot, qr as disableDevtools } from "./yoya.core.chunk.js";
2
+
3
+ export { disableDevtools, enableDevtools, getDevtoolsDom, getDevtoolsScope, getDevtoolsSnapshot, isDevtoolsEnabled, subscribeDevtools };
@@ -0,0 +1 @@
1
+ import{$r as e,Jr as t,Qr as n,Xr as r,Yr as i,Zr as a,qr as o}from"./yoya.core.chunk.min.js";export{o as disableDevtools,t as enableDevtools,i as getDevtoolsDom,r as getDevtoolsScope,a as getDevtoolsSnapshot,n as isDevtoolsEnabled,e as subscribeDevtools};