@czxingyu/xycomponents 0.1.0 → 0.1.2
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.
- package/README.md +2 -0
- package/README.zh-CN.md +2 -0
- package/dist/anchor/anchor.js +1 -1
- package/dist/anchor/anchor.vue_vue_type_script_setup_true_lang.js +3 -6
- package/dist/cli.js +0 -0
- package/dist/collapse/collapse-panel.js +1 -1
- package/dist/descriptions/descriptions.js +1 -1
- package/dist/descriptions/descriptions.vue_vue_type_script_setup_true_lang.js +69 -65
- package/dist/index.esm.js +106 -95
- package/dist/index.lite.esm.js +96 -91
- package/dist/index.umd.js +3 -3
- package/dist/package.js +1 -1
- package/dist/steps/steps.js +1 -1
- package/dist/steps/steps.vue_vue_type_script_setup_true_lang.js +22 -18
- package/dist/table/table.js +1 -1
- package/dist/table/table.vue_vue_type_script_setup_true_lang.js +32 -26
- package/dist/xycomponents-lite.css +1 -1
- package/dist/xycomponents.css +1 -1
- package/package.json +35 -34
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
`xycomponents` combines component-library packaging, a live documentation site, and a Markdown demo pipeline in one codebase, so components and documentation can evolve together.
|
|
6
6
|
|
|
7
|
+
Chinese docs: [README.zh-CN.md](./README.zh-CN.md) | [组件库中文介绍](./docs/INTRODUCTION.zh-CN.md)
|
|
8
|
+
|
|
7
9
|
## Before you start
|
|
8
10
|
|
|
9
11
|
The npm package name is `@czxingyu/xycomponents`; the library brand remains `xycomponents`.
|
package/README.zh-CN.md
CHANGED
package/dist/anchor/anchor.js
CHANGED
|
@@ -2,6 +2,6 @@ import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
|
2
2
|
import t from "./anchor.vue_vue_type_script_setup_true_lang.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region components/anchor/anchor.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-
|
|
5
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-5b2bf520"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
|
@@ -217,13 +217,10 @@ var x = ["aria-label"], S = [
|
|
|
217
217
|
t.className,
|
|
218
218
|
P.value.item
|
|
219
219
|
]]),
|
|
220
|
-
style: f([
|
|
221
|
-
t.style,
|
|
222
|
-
l.direction === "vertical" ? { paddingInlineStart: `${n * 16}px` } : void 0,
|
|
223
|
-
F.value.item
|
|
224
|
-
])
|
|
220
|
+
style: f([t.style, F.value.item])
|
|
225
221
|
}, [s("a", {
|
|
226
222
|
class: d(["xy-anchor__link", { "xy-anchor__link--disabled": t.disabled }]),
|
|
223
|
+
style: f(l.direction === "vertical" && n > 0 ? { paddingInlineStart: `calc(var(--xy-anchor-link-padding-inline) + ${n * 16}px)` } : void 0),
|
|
227
224
|
href: t.href,
|
|
228
225
|
target: t.target,
|
|
229
226
|
rel: t.target === "_blank" ? "noreferrer" : void 0,
|
|
@@ -242,7 +239,7 @@ var x = ["aria-label"], S = [
|
|
|
242
239
|
depth: n,
|
|
243
240
|
index: r,
|
|
244
241
|
item: t
|
|
245
|
-
}, () => [c(y(z(t)), 1)])], 6)],
|
|
242
|
+
}, () => [c(y(z(t)), 1)])], 6)], 14, S)], 6))), 128))], 6)) : a("", !0),
|
|
246
243
|
v(e.$slots, "default")
|
|
247
244
|
], 14, x));
|
|
248
245
|
}
|
package/dist/cli.js
CHANGED
|
File without changes
|
|
@@ -2,6 +2,6 @@ import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
|
2
2
|
import t from "./collapse-panel.vue_vue_type_script_setup_true_lang.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region components/collapse/collapse-panel.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-
|
|
5
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-3ba91eb0"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
|
@@ -2,6 +2,6 @@ import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
|
2
2
|
import t from "./descriptions.vue_vue_type_script_setup_true_lang.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region components/descriptions/descriptions.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-
|
|
5
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-103d68c3"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
|
@@ -3,9 +3,9 @@ import { useElementSize as n } from "../core/resize/index.js";
|
|
|
3
3
|
import { xyDescriptionsContextKey as r } from "./context.js";
|
|
4
4
|
import i from "./descriptions-value.js";
|
|
5
5
|
import a from "./descriptions-item.js";
|
|
6
|
-
import { Fragment as o, computed as s, createBlock as
|
|
6
|
+
import { Fragment as o, computed as s, createBlock as ee, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, normalizeClass as p, normalizeStyle as m, onBeforeUpdate as h, openBlock as g, provide as _, ref as v, renderList as y, renderSlot as b, shallowRef as x, unref as S, useSlots as C, withCtx as w } from "vue";
|
|
7
7
|
//#region components/descriptions/descriptions.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var T = /*@__PURE__*/
|
|
8
|
+
var T = /*@__PURE__*/ f({
|
|
9
9
|
name: "XyDescriptions",
|
|
10
10
|
__name: "descriptions",
|
|
11
11
|
props: {
|
|
@@ -68,8 +68,8 @@ var T = /*@__PURE__*/ p({
|
|
|
68
68
|
required: !1
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
-
setup(
|
|
72
|
-
let T =
|
|
71
|
+
setup(f) {
|
|
72
|
+
let T = f, E = C(), D = v(Object.keys(E)), O = v(), { width: k } = n(O), A = x([]), j = {
|
|
73
73
|
xs: 0,
|
|
74
74
|
sm: 576,
|
|
75
75
|
md: 768,
|
|
@@ -77,28 +77,28 @@ var T = /*@__PURE__*/ p({
|
|
|
77
77
|
xl: 1200,
|
|
78
78
|
xxl: 1600,
|
|
79
79
|
xxxl: 1920
|
|
80
|
-
},
|
|
81
|
-
function
|
|
80
|
+
}, te = Object.keys(j);
|
|
81
|
+
function M(e) {
|
|
82
82
|
let t = Number(e);
|
|
83
83
|
return Number.isFinite(t) ? Math.max(1, Math.floor(t)) : 1;
|
|
84
84
|
}
|
|
85
|
-
function M(e, t) {
|
|
86
|
-
return e === "filled" ? t : Math.min(j(e), t);
|
|
87
|
-
}
|
|
88
85
|
function N(e, t) {
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
return e === "filled" ? t : Math.min(M(e), t);
|
|
87
|
+
}
|
|
88
|
+
function P(e, t) {
|
|
89
|
+
if (typeof e == "number") return M(e);
|
|
90
|
+
let n = te.filter((t) => e[t] !== void 0);
|
|
91
91
|
if (n.length === 0) return 1;
|
|
92
92
|
let r = e[n[0]];
|
|
93
|
-
for (let i of n) t >=
|
|
94
|
-
return
|
|
93
|
+
for (let i of n) t >= j[i] && (r = e[i]);
|
|
94
|
+
return M(r);
|
|
95
95
|
}
|
|
96
|
-
let
|
|
96
|
+
let F = s(() => T.bordered), I = s(() => T.colon), L = s(() => P(T.column, k.value)), R = s(() => T.layout), z = s(() => T.size), B = s(() => T.title !== void 0 || D.value.includes("title")), V = s(() => T.extra !== void 0 || D.value.includes("extra")), H = s(() => B.value || V.value), U = s(() => T.items !== void 0), W = s(() => {
|
|
97
97
|
let e = /* @__PURE__ */ new Map(), t = 0, n = 0;
|
|
98
|
-
for (let r of
|
|
99
|
-
let i = r.span.value, a =
|
|
100
|
-
i === "filled" ? a = Math.max(
|
|
101
|
-
let o = t + a >=
|
|
98
|
+
for (let r of A.value) {
|
|
99
|
+
let i = r.span.value, a = N(i, L.value);
|
|
100
|
+
i === "filled" ? a = Math.max(L.value - t, 1) : t + a > L.value && (t = 0, n += 1);
|
|
101
|
+
let o = t + a >= L.value;
|
|
102
102
|
e.set(r.id, {
|
|
103
103
|
isLastColumn: o,
|
|
104
104
|
isLastRow: !1,
|
|
@@ -109,78 +109,82 @@ var T = /*@__PURE__*/ p({
|
|
|
109
109
|
let r = Math.max(...[...e.values()].map((e) => e.row), 0);
|
|
110
110
|
for (let t of e.values()) t.isLastRow = t.row === r;
|
|
111
111
|
return e;
|
|
112
|
-
}),
|
|
112
|
+
}), G = s(() => ({ "--xy-descriptions-column": String(L.value) })), K = s(() => ({
|
|
113
113
|
bordered: T.bordered,
|
|
114
114
|
colon: T.colon,
|
|
115
|
-
column:
|
|
116
|
-
hasExtra:
|
|
117
|
-
hasTitle:
|
|
115
|
+
column: L.value,
|
|
116
|
+
hasExtra: V.value,
|
|
117
|
+
hasTitle: B.value,
|
|
118
118
|
layout: T.layout,
|
|
119
119
|
size: T.size
|
|
120
|
-
})),
|
|
120
|
+
})), q = s(() => e(T.classNames, K.value)), J = s(() => t(T.styles, K.value)), Y = s(() => [
|
|
121
121
|
"xy-descriptions",
|
|
122
122
|
`xy-descriptions--${T.layout}`,
|
|
123
123
|
`xy-descriptions--${T.size}`,
|
|
124
124
|
{ "xy-descriptions--bordered": T.bordered },
|
|
125
|
-
|
|
126
|
-
]),
|
|
125
|
+
q.value.root
|
|
126
|
+
]), X = s(() => q.value.item), Z = s(() => J.value.item), Q = s(() => q.value.label), ne = s(() => ({
|
|
127
127
|
...T.labelStyle,
|
|
128
|
-
...
|
|
129
|
-
})),
|
|
128
|
+
...J.value.label
|
|
129
|
+
})), re = s(() => q.value.content), ie = s(() => ({
|
|
130
130
|
...T.contentStyle,
|
|
131
|
-
...
|
|
131
|
+
...J.value.content
|
|
132
132
|
}));
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
h(() => {
|
|
134
|
+
let e = Object.keys(E);
|
|
135
|
+
e.length === D.value.length && e.every((e, t) => e === D.value[t]) || (D.value = e);
|
|
136
|
+
});
|
|
137
|
+
function ae(e) {
|
|
138
|
+
return A.value = [...A.value, e], () => {
|
|
139
|
+
A.value = A.value.filter((t) => t.id !== e.id);
|
|
136
140
|
};
|
|
137
141
|
}
|
|
138
|
-
function
|
|
142
|
+
function oe(e, t) {
|
|
139
143
|
return $(e, t).span;
|
|
140
144
|
}
|
|
141
145
|
function $(e, t) {
|
|
142
|
-
return
|
|
146
|
+
return W.value.get(e) ?? {
|
|
143
147
|
isLastColumn: !0,
|
|
144
148
|
isLastRow: !0,
|
|
145
|
-
span:
|
|
149
|
+
span: N(t, L.value)
|
|
146
150
|
};
|
|
147
151
|
}
|
|
148
152
|
return _(r, {
|
|
149
|
-
bordered:
|
|
150
|
-
colon:
|
|
151
|
-
column:
|
|
152
|
-
contentClassName:
|
|
153
|
-
contentStyle:
|
|
154
|
-
itemClassName:
|
|
155
|
-
itemStyle:
|
|
156
|
-
labelClassName:
|
|
157
|
-
labelStyle:
|
|
158
|
-
layout:
|
|
159
|
-
registerItem:
|
|
153
|
+
bordered: F,
|
|
154
|
+
colon: I,
|
|
155
|
+
column: L,
|
|
156
|
+
contentClassName: re,
|
|
157
|
+
contentStyle: ie,
|
|
158
|
+
itemClassName: X,
|
|
159
|
+
itemStyle: Z,
|
|
160
|
+
labelClassName: Q,
|
|
161
|
+
labelStyle: ne,
|
|
162
|
+
layout: R,
|
|
163
|
+
registerItem: ae,
|
|
160
164
|
resolveItemLayout: $,
|
|
161
|
-
resolveItemSpan:
|
|
162
|
-
size:
|
|
163
|
-
}), (e, t) => (g(),
|
|
165
|
+
resolveItemSpan: oe,
|
|
166
|
+
size: z
|
|
167
|
+
}), (e, t) => (g(), l("section", {
|
|
164
168
|
ref_key: "rootRef",
|
|
165
|
-
ref:
|
|
166
|
-
class:
|
|
167
|
-
style:
|
|
168
|
-
}, [
|
|
169
|
+
ref: O,
|
|
170
|
+
class: p(Y.value),
|
|
171
|
+
style: m(J.value.root)
|
|
172
|
+
}, [H.value ? (g(), l("header", {
|
|
169
173
|
key: 0,
|
|
170
|
-
class:
|
|
171
|
-
style:
|
|
172
|
-
}, [
|
|
174
|
+
class: p(["xy-descriptions__header", q.value.header]),
|
|
175
|
+
style: m(J.value.header)
|
|
176
|
+
}, [B.value ? (g(), l("div", {
|
|
173
177
|
key: 0,
|
|
174
|
-
class:
|
|
175
|
-
style:
|
|
176
|
-
}, [b(e.$slots, "title", {}, () => [
|
|
178
|
+
class: p(["xy-descriptions__title", q.value.title]),
|
|
179
|
+
style: m(J.value.title)
|
|
180
|
+
}, [b(e.$slots, "title", {}, () => [d(S(i), { value: f.title }, null, 8, ["value"])], !0)], 6)) : c("", !0), V.value ? (g(), l("div", {
|
|
177
181
|
key: 1,
|
|
178
|
-
class:
|
|
179
|
-
style:
|
|
180
|
-
}, [b(e.$slots, "extra", {}, () => [
|
|
181
|
-
class:
|
|
182
|
-
style:
|
|
183
|
-
}, [
|
|
182
|
+
class: p(["xy-descriptions__extra", q.value.extra]),
|
|
183
|
+
style: m(J.value.extra)
|
|
184
|
+
}, [b(e.$slots, "extra", {}, () => [d(S(i), { value: f.extra }, null, 8, ["value"])], !0)], 6)) : c("", !0)], 6)) : c("", !0), u("dl", {
|
|
185
|
+
class: p(["xy-descriptions__view", q.value.view]),
|
|
186
|
+
style: m([G.value, J.value.view])
|
|
187
|
+
}, [U.value ? (g(!0), l(o, { key: 0 }, y(f.items, (e, t) => (g(), ee(a, {
|
|
184
188
|
key: e.key ?? t,
|
|
185
189
|
"class-names": e.classNames,
|
|
186
190
|
"content-style": e.contentStyle,
|
|
@@ -189,7 +193,7 @@ var T = /*@__PURE__*/ p({
|
|
|
189
193
|
span: e.span,
|
|
190
194
|
styles: e.styles
|
|
191
195
|
}, {
|
|
192
|
-
default: w(() => [
|
|
196
|
+
default: w(() => [d(S(i), { value: e.children ?? e.content }, null, 8, ["value"])]),
|
|
193
197
|
_: 2
|
|
194
198
|
}, 1032, [
|
|
195
199
|
"class-names",
|
package/dist/index.esm.js
CHANGED
|
@@ -12,7 +12,7 @@ var qe = Object.create, Je = Object.defineProperty, Ye = Object.getOwnPropertyDe
|
|
|
12
12
|
}, tt = (e, t, n) => (n = e == null ? {} : qe(Ze(e)), et(t || !e || !e.__esModule ? Je(n, "default", {
|
|
13
13
|
value: e,
|
|
14
14
|
enumerable: !0
|
|
15
|
-
}) : n, e)), nt = "0.1.
|
|
15
|
+
}) : n, e)), nt = "0.1.2";
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region components/shared/install.ts
|
|
18
18
|
function X(e) {
|
|
@@ -6300,13 +6300,10 @@ var Wr = [
|
|
|
6300
6300
|
t.className,
|
|
6301
6301
|
v.value.item
|
|
6302
6302
|
]]),
|
|
6303
|
-
style: T([
|
|
6304
|
-
t.style,
|
|
6305
|
-
e.direction === "vertical" ? { paddingInlineStart: `${r * 16}px` } : void 0,
|
|
6306
|
-
y.value.item
|
|
6307
|
-
])
|
|
6303
|
+
style: T([t.style, y.value.item])
|
|
6308
6304
|
}, [d("a", {
|
|
6309
6305
|
class: C(["xy-anchor__link", { "xy-anchor__link--disabled": t.disabled }]),
|
|
6306
|
+
style: T(e.direction === "vertical" && r > 0 ? { paddingInlineStart: `calc(var(--xy-anchor-link-padding-inline) + ${r * 16}px)` } : void 0),
|
|
6310
6307
|
href: t.href,
|
|
6311
6308
|
target: t.target,
|
|
6312
6309
|
rel: t.target === "_blank" ? "noreferrer" : void 0,
|
|
@@ -6325,11 +6322,11 @@ var Wr = [
|
|
|
6325
6322
|
depth: r,
|
|
6326
6323
|
index: i,
|
|
6327
6324
|
item: t
|
|
6328
|
-
}, () => [p(V(D(t)), 1)])], 6)],
|
|
6325
|
+
}, () => [p(V(D(t)), 1)])], 6)], 14, Xr)], 6))), 128))], 6)) : l("", !0),
|
|
6329
6326
|
I(n.$slots, "default")
|
|
6330
6327
|
], 14, Yr));
|
|
6331
6328
|
}
|
|
6332
|
-
}), [["__scopeId", "data-v-
|
|
6329
|
+
}), [["__scopeId", "data-v-5b2bf520"]])), Qr = X($), $r = ["aria-busy", "role"], ei = ["aria-label"], ti = /*#__PURE__*/ Z(/* @__PURE__ */ g({
|
|
6333
6330
|
name: "XyMessage",
|
|
6334
6331
|
__name: "message",
|
|
6335
6332
|
props: {
|
|
@@ -11880,7 +11877,7 @@ var ya = ["aria-roledescription"], ba = ["aria-label", "disabled"], xa = ["aria-
|
|
|
11880
11877
|
style: T(O.value.content)
|
|
11881
11878
|
}, [d("div", mo, [I(n.$slots, "default", {}, void 0, !0)])], 6)), [[ie, m.value]])], 14, ao));
|
|
11882
11879
|
}
|
|
11883
|
-
}), [["__scopeId", "data-v-
|
|
11880
|
+
}), [["__scopeId", "data-v-3ba91eb0"]]), _o = /*#__PURE__*/ Z(/* @__PURE__ */ g({
|
|
11884
11881
|
name: "XyCollapse",
|
|
11885
11882
|
__name: "collapse",
|
|
11886
11883
|
props: {
|
|
@@ -15211,7 +15208,7 @@ var fs = ["aria-label"], ps = ["aria-label", "disabled"], ms = ["aria-label", "d
|
|
|
15211
15208
|
}
|
|
15212
15209
|
},
|
|
15213
15210
|
setup(e) {
|
|
15214
|
-
let n = e, r = ne(), i = N(), { width:
|
|
15211
|
+
let n = e, r = ne(), i = N(Object.keys(r)), a = N(), { width: o } = dr(a), f = B([]), p = {
|
|
15215
15212
|
xs: 0,
|
|
15216
15213
|
sm: 576,
|
|
15217
15214
|
md: 768,
|
|
@@ -15219,28 +15216,28 @@ var fs = ["aria-label"], ps = ["aria-label", "disabled"], ms = ["aria-label", "d
|
|
|
15219
15216
|
xl: 1200,
|
|
15220
15217
|
xxl: 1600,
|
|
15221
15218
|
xxxl: 1920
|
|
15222
|
-
},
|
|
15223
|
-
function
|
|
15219
|
+
}, h = Object.keys(p);
|
|
15220
|
+
function g(e) {
|
|
15224
15221
|
let t = Number(e);
|
|
15225
15222
|
return Number.isFinite(t) ? Math.max(1, Math.floor(t)) : 1;
|
|
15226
15223
|
}
|
|
15227
|
-
function g(e, t) {
|
|
15228
|
-
return e === "filled" ? t : Math.min(h(e), t);
|
|
15229
|
-
}
|
|
15230
15224
|
function _(e, t) {
|
|
15231
|
-
|
|
15232
|
-
|
|
15225
|
+
return e === "filled" ? t : Math.min(g(e), t);
|
|
15226
|
+
}
|
|
15227
|
+
function v(e, t) {
|
|
15228
|
+
if (typeof e == "number") return g(e);
|
|
15229
|
+
let n = h.filter((t) => e[t] !== void 0);
|
|
15233
15230
|
if (n.length === 0) return 1;
|
|
15234
15231
|
let r = e[n[0]];
|
|
15235
|
-
for (let i of n) t >=
|
|
15236
|
-
return
|
|
15232
|
+
for (let i of n) t >= p[i] && (r = e[i]);
|
|
15233
|
+
return g(r);
|
|
15237
15234
|
}
|
|
15238
|
-
let
|
|
15235
|
+
let y = s(() => n.bordered), b = s(() => n.colon), x = s(() => v(n.column, o.value)), S = s(() => n.layout), w = s(() => n.size), E = s(() => n.title !== void 0 || i.value.includes("title")), O = s(() => n.extra !== void 0 || i.value.includes("extra")), k = s(() => E.value || O.value), M = s(() => n.items !== void 0), P = s(() => {
|
|
15239
15236
|
let e = /* @__PURE__ */ new Map(), t = 0, n = 0;
|
|
15240
|
-
for (let r of
|
|
15241
|
-
let i = r.span.value, a =
|
|
15242
|
-
i === "filled" ? a = Math.max(
|
|
15243
|
-
let o = t + a >=
|
|
15237
|
+
for (let r of f.value) {
|
|
15238
|
+
let i = r.span.value, a = _(i, x.value);
|
|
15239
|
+
i === "filled" ? a = Math.max(x.value - t, 1) : t + a > x.value && (t = 0, n += 1);
|
|
15240
|
+
let o = t + a >= x.value;
|
|
15244
15241
|
e.set(r.id, {
|
|
15245
15242
|
isLastColumn: o,
|
|
15246
15243
|
isLastRow: !1,
|
|
@@ -15251,78 +15248,82 @@ var fs = ["aria-label"], ps = ["aria-label", "disabled"], ms = ["aria-label", "d
|
|
|
15251
15248
|
let r = Math.max(...[...e.values()].map((e) => e.row), 0);
|
|
15252
15249
|
for (let t of e.values()) t.isLastRow = t.row === r;
|
|
15253
15250
|
return e;
|
|
15254
|
-
}),
|
|
15251
|
+
}), L = s(() => ({ "--xy-descriptions-column": String(x.value) })), R = s(() => ({
|
|
15255
15252
|
bordered: n.bordered,
|
|
15256
15253
|
colon: n.colon,
|
|
15257
|
-
column:
|
|
15258
|
-
hasExtra:
|
|
15259
|
-
hasTitle:
|
|
15254
|
+
column: x.value,
|
|
15255
|
+
hasExtra: O.value,
|
|
15256
|
+
hasTitle: E.value,
|
|
15260
15257
|
layout: n.layout,
|
|
15261
15258
|
size: n.size
|
|
15262
|
-
})),
|
|
15259
|
+
})), z = s(() => ut(n.classNames, R.value)), V = s(() => Q(n.styles, R.value)), H = s(() => [
|
|
15263
15260
|
"xy-descriptions",
|
|
15264
15261
|
`xy-descriptions--${n.layout}`,
|
|
15265
15262
|
`xy-descriptions--${n.size}`,
|
|
15266
15263
|
{ "xy-descriptions--bordered": n.bordered },
|
|
15267
|
-
|
|
15268
|
-
]),
|
|
15264
|
+
z.value.root
|
|
15265
|
+
]), U = s(() => z.value.item), W = s(() => V.value.item), ee = s(() => z.value.label), te = s(() => ({
|
|
15269
15266
|
...n.labelStyle,
|
|
15270
|
-
...
|
|
15271
|
-
})),
|
|
15267
|
+
...V.value.label
|
|
15268
|
+
})), re = s(() => z.value.content), ie = s(() => ({
|
|
15272
15269
|
...n.contentStyle,
|
|
15273
|
-
...
|
|
15270
|
+
...V.value.content
|
|
15274
15271
|
}));
|
|
15275
|
-
|
|
15276
|
-
|
|
15277
|
-
|
|
15272
|
+
D(() => {
|
|
15273
|
+
let e = Object.keys(r);
|
|
15274
|
+
e.length === i.value.length && e.every((e, t) => e === i.value[t]) || (i.value = e);
|
|
15275
|
+
});
|
|
15276
|
+
function ae(e) {
|
|
15277
|
+
return f.value = [...f.value, e], () => {
|
|
15278
|
+
f.value = f.value.filter((t) => t.id !== e.id);
|
|
15278
15279
|
};
|
|
15279
15280
|
}
|
|
15280
|
-
function
|
|
15281
|
-
return
|
|
15281
|
+
function K(e, t) {
|
|
15282
|
+
return oe(e, t).span;
|
|
15282
15283
|
}
|
|
15283
|
-
function
|
|
15284
|
-
return
|
|
15284
|
+
function oe(e, t) {
|
|
15285
|
+
return P.value.get(e) ?? {
|
|
15285
15286
|
isLastColumn: !0,
|
|
15286
15287
|
isLastRow: !0,
|
|
15287
|
-
span:
|
|
15288
|
+
span: _(t, x.value)
|
|
15288
15289
|
};
|
|
15289
15290
|
}
|
|
15290
15291
|
return j(cc, {
|
|
15291
|
-
bordered:
|
|
15292
|
-
colon:
|
|
15293
|
-
column:
|
|
15294
|
-
contentClassName:
|
|
15295
|
-
contentStyle:
|
|
15296
|
-
itemClassName:
|
|
15297
|
-
itemStyle:
|
|
15298
|
-
labelClassName:
|
|
15299
|
-
labelStyle:
|
|
15300
|
-
layout:
|
|
15301
|
-
registerItem:
|
|
15302
|
-
resolveItemLayout:
|
|
15303
|
-
resolveItemSpan:
|
|
15304
|
-
size:
|
|
15292
|
+
bordered: y,
|
|
15293
|
+
colon: b,
|
|
15294
|
+
column: x,
|
|
15295
|
+
contentClassName: re,
|
|
15296
|
+
contentStyle: ie,
|
|
15297
|
+
itemClassName: U,
|
|
15298
|
+
itemStyle: W,
|
|
15299
|
+
labelClassName: ee,
|
|
15300
|
+
labelStyle: te,
|
|
15301
|
+
layout: S,
|
|
15302
|
+
registerItem: ae,
|
|
15303
|
+
resolveItemLayout: oe,
|
|
15304
|
+
resolveItemSpan: K,
|
|
15305
|
+
size: w
|
|
15305
15306
|
}), (n, r) => (A(), u("section", {
|
|
15306
15307
|
ref_key: "rootRef",
|
|
15307
|
-
ref:
|
|
15308
|
-
class: C(
|
|
15309
|
-
style: T(
|
|
15310
|
-
}, [
|
|
15308
|
+
ref: a,
|
|
15309
|
+
class: C(H.value),
|
|
15310
|
+
style: T(V.value.root)
|
|
15311
|
+
}, [k.value ? (A(), u("header", {
|
|
15311
15312
|
key: 0,
|
|
15312
|
-
class: C(["xy-descriptions__header",
|
|
15313
|
-
style: T(
|
|
15314
|
-
}, [
|
|
15313
|
+
class: C(["xy-descriptions__header", z.value.header]),
|
|
15314
|
+
style: T(V.value.header)
|
|
15315
|
+
}, [E.value ? (A(), u("div", {
|
|
15315
15316
|
key: 0,
|
|
15316
|
-
class: C(["xy-descriptions__title",
|
|
15317
|
-
style: T(
|
|
15318
|
-
}, [I(n.$slots, "title", {}, () => [m(G(lc), { value: e.title }, null, 8, ["value"])], !0)], 6)) : l("", !0),
|
|
15317
|
+
class: C(["xy-descriptions__title", z.value.title]),
|
|
15318
|
+
style: T(V.value.title)
|
|
15319
|
+
}, [I(n.$slots, "title", {}, () => [m(G(lc), { value: e.title }, null, 8, ["value"])], !0)], 6)) : l("", !0), O.value ? (A(), u("div", {
|
|
15319
15320
|
key: 1,
|
|
15320
|
-
class: C(["xy-descriptions__extra",
|
|
15321
|
-
style: T(
|
|
15321
|
+
class: C(["xy-descriptions__extra", z.value.extra]),
|
|
15322
|
+
style: T(V.value.extra)
|
|
15322
15323
|
}, [I(n.$slots, "extra", {}, () => [m(G(lc), { value: e.extra }, null, 8, ["value"])], !0)], 6)) : l("", !0)], 6)) : l("", !0), d("dl", {
|
|
15323
|
-
class: C(["xy-descriptions__view",
|
|
15324
|
-
style: T([
|
|
15325
|
-
}, [
|
|
15324
|
+
class: C(["xy-descriptions__view", z.value.view]),
|
|
15325
|
+
style: T([L.value, V.value.view])
|
|
15326
|
+
}, [M.value ? (A(!0), u(t, { key: 0 }, F(e.items, (e, t) => (A(), c(dc, {
|
|
15326
15327
|
key: e.key ?? t,
|
|
15327
15328
|
"class-names": e.classNames,
|
|
15328
15329
|
"content-style": e.contentStyle,
|
|
@@ -15342,7 +15343,7 @@ var fs = ["aria-label"], ps = ["aria-label", "disabled"], ms = ["aria-label", "d
|
|
|
15342
15343
|
"styles"
|
|
15343
15344
|
]))), 128)) : I(n.$slots, "default", { key: 1 }, void 0, !0)], 6)], 6));
|
|
15344
15345
|
}
|
|
15345
|
-
}), [["__scopeId", "data-v-
|
|
15346
|
+
}), [["__scopeId", "data-v-103d68c3"]]), pc = X(dc), mc = Object.assign(X(fc), { Item: pc }), hc = ["aria-orientation"], gc = X(/* @__PURE__ */ Z(/* @__PURE__ */ g({
|
|
15346
15347
|
name: "XyDivider",
|
|
15347
15348
|
__name: "divider",
|
|
15348
15349
|
props: {
|
|
@@ -23988,11 +23989,7 @@ var af = ["aria-busy", "aria-label"], of = X(/* @__PURE__ */ Z(/* @__PURE__ */ g
|
|
|
23988
23989
|
style: T([O.value.item, t.style]),
|
|
23989
23990
|
"data-status": M(t, r),
|
|
23990
23991
|
"data-step-key": t.key
|
|
23991
|
-
}, [
|
|
23992
|
-
class: C(["xy-steps__tail", D.value.tail]),
|
|
23993
|
-
style: T(O.value.tail),
|
|
23994
|
-
"aria-hidden": "true"
|
|
23995
|
-
}, null, 6), (A(), c(R(y.value ? "button" : "div"), {
|
|
23992
|
+
}, [(A(), c(R(y.value ? "button" : "div"), {
|
|
23996
23993
|
class: "xy-steps__main",
|
|
23997
23994
|
"aria-current": r === v.value ? "step" : void 0,
|
|
23998
23995
|
"aria-disabled": e.disabled || t.disabled || void 0,
|
|
@@ -24025,19 +24022,27 @@ var af = ["aria-busy", "aria-label"], of = X(/* @__PURE__ */ Z(/* @__PURE__ */ g
|
|
|
24025
24022
|
})) : (A(), u("span", uf, V(r + 1), 1)), L(t, r, M(t, r)) ? (A(), u("span", df, V(S.value) + "% ", 1)) : l("", !0)], !0)], 6), d("span", {
|
|
24026
24023
|
class: C(["xy-steps__content", D.value.content]),
|
|
24027
24024
|
style: T(O.value.content)
|
|
24028
|
-
}, [d("span", ff, [
|
|
24029
|
-
|
|
24030
|
-
|
|
24031
|
-
|
|
24032
|
-
|
|
24033
|
-
|
|
24034
|
-
|
|
24035
|
-
|
|
24036
|
-
|
|
24037
|
-
|
|
24038
|
-
|
|
24039
|
-
|
|
24040
|
-
|
|
24025
|
+
}, [d("span", ff, [
|
|
24026
|
+
d("span", {
|
|
24027
|
+
class: C(["xy-steps__title", D.value.title]),
|
|
24028
|
+
style: T(O.value.title)
|
|
24029
|
+
}, [I(n.$slots, "title", {
|
|
24030
|
+
current: r === v.value,
|
|
24031
|
+
index: r,
|
|
24032
|
+
item: t,
|
|
24033
|
+
status: M(t, r)
|
|
24034
|
+
}, () => [m(G(i), { content: t.title }, null, 8, ["content"])], !0)], 6),
|
|
24035
|
+
t.subTitle ? (A(), u("span", {
|
|
24036
|
+
key: 0,
|
|
24037
|
+
class: C(["xy-steps__subtitle", D.value.subTitle]),
|
|
24038
|
+
style: T(O.value.subTitle)
|
|
24039
|
+
}, [m(G(i), { content: t.subTitle }, null, 8, ["content"])], 6)) : l("", !0),
|
|
24040
|
+
d("span", {
|
|
24041
|
+
class: C(["xy-steps__tail", D.value.tail]),
|
|
24042
|
+
style: T(O.value.tail),
|
|
24043
|
+
"aria-hidden": "true"
|
|
24044
|
+
}, null, 6)
|
|
24045
|
+
]), t.description || G(f).description ? (A(), u("span", {
|
|
24041
24046
|
key: 0,
|
|
24042
24047
|
class: C(["xy-steps__description", D.value.description]),
|
|
24043
24048
|
style: T(O.value.description)
|
|
@@ -24058,7 +24063,7 @@ var af = ["aria-busy", "aria-label"], of = X(/* @__PURE__ */ Z(/* @__PURE__ */ g
|
|
|
24058
24063
|
"onClick"
|
|
24059
24064
|
]))], 14, cf))), 128))], 46, sf)], 6));
|
|
24060
24065
|
}
|
|
24061
|
-
}), [["__scopeId", "data-v-
|
|
24066
|
+
}), [["__scopeId", "data-v-0975956e"]])), mf = [
|
|
24062
24067
|
"id",
|
|
24063
24068
|
"aria-checked",
|
|
24064
24069
|
"aria-describedby",
|
|
@@ -25759,7 +25764,7 @@ var ip = ["aria-busy"], ap = { key: 0 }, op = { key: 0 }, sp = ["colspan"], cp =
|
|
|
25759
25764
|
title: h.value
|
|
25760
25765
|
}, null, 8, ["title"]))], 14, sp)])) : (A(!0), u(t, { key: 1 }, F(S.value, (e, i) => (A(), u("tr", {
|
|
25761
25766
|
key: e.key,
|
|
25762
|
-
class: C(["xy-table__row", Me.value.row]),
|
|
25767
|
+
class: C(["xy-table__row", [Me.value.row, { "xy-table__row--resize-active": tt(e.key) }]]),
|
|
25763
25768
|
"data-row-key": e.key,
|
|
25764
25769
|
style: T(Ue(e))
|
|
25765
25770
|
}, [d("th", {
|
|
@@ -25959,7 +25964,10 @@ var ip = ["aria-busy"], ap = { key: 0 }, op = { key: 0 }, sp = ["colspan"], cp =
|
|
|
25959
25964
|
})
|
|
25960
25965
|
}, [(A(!0), u(t, null, F(Fe.value, (e) => (A(), u("div", {
|
|
25961
25966
|
key: String(e.key),
|
|
25962
|
-
class: C(["xy-table__virtual-row xy-table__row", [Me.value.row, {
|
|
25967
|
+
class: C(["xy-table__virtual-row xy-table__row", [Me.value.row, {
|
|
25968
|
+
"xy-table__row--selected": xt(e) && be.value.has(xt(e).key),
|
|
25969
|
+
"xy-table__row--resize-active": xt(e) && tt(xt(e))
|
|
25970
|
+
}]]),
|
|
25963
25971
|
"data-row-key": xt(e)?.key,
|
|
25964
25972
|
style: T([xt(e) ? He(xt(e)) : {}, {
|
|
25965
25973
|
gridTemplateColumns: De.value,
|
|
@@ -26177,7 +26185,10 @@ var ip = ["aria-busy"], ap = { key: 0 }, op = { key: 0 }, sp = ["colspan"], cp =
|
|
|
26177
26185
|
style: T(Ne.value.body)
|
|
26178
26186
|
}, [(A(!0), u(t, null, F(ve.value, (e) => (A(), u("tr", {
|
|
26179
26187
|
key: e.key,
|
|
26180
|
-
class: C(["xy-table__row", [Me.value.row, {
|
|
26188
|
+
class: C(["xy-table__row", [Me.value.row, {
|
|
26189
|
+
"xy-table__row--selected": be.value.has(e.key),
|
|
26190
|
+
"xy-table__row--resize-active": tt(e)
|
|
26191
|
+
}]]),
|
|
26181
26192
|
"data-row-key": e.key,
|
|
26182
26193
|
style: T(He(e)),
|
|
26183
26194
|
onClick: (t) => pt(e, t)
|
|
@@ -26336,7 +26347,7 @@ var ip = ["aria-busy"], ap = { key: 0 }, op = { key: 0 }, sp = ["colspan"], cp =
|
|
|
26336
26347
|
"total"
|
|
26337
26348
|
])) : l("", !0)], 14, ip));
|
|
26338
26349
|
}
|
|
26339
|
-
}), [["__scopeId", "data-v-
|
|
26350
|
+
}), [["__scopeId", "data-v-90886cf3"]])), Jp = ["aria-label", "aria-orientation"], Yp = [
|
|
26340
26351
|
"data-tab-key",
|
|
26341
26352
|
"id",
|
|
26342
26353
|
"aria-controls",
|