@webx-ui/core 0.34.2 → 0.35.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.
- package/dist/components/Table/types.d.ts +4 -0
- package/dist/index.js +18 -16
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -177,6 +177,10 @@ export interface TableProps<T = TableRow> {
|
|
|
177
177
|
loading?: boolean;
|
|
178
178
|
/** Shown in place of the rows when there are none. */
|
|
179
179
|
emptyText?: string;
|
|
180
|
+
/** Accessible name of each row's checkbox. */
|
|
181
|
+
selectRowLabel?: string;
|
|
182
|
+
/** Accessible name of the checkbox in the header, the one that takes the whole page. */
|
|
183
|
+
selectAllLabel?: string;
|
|
180
184
|
stripe?: boolean;
|
|
181
185
|
bordered?: boolean;
|
|
182
186
|
/** Highlight the row under the pointer. */
|
package/dist/index.js
CHANGED
|
@@ -975,7 +975,7 @@ const _l = /* @__PURE__ */ te({
|
|
|
975
975
|
])) : $("", !0)
|
|
976
976
|
], 6));
|
|
977
977
|
}
|
|
978
|
-
}), Nu = /* @__PURE__ */ ue(Ru, [["__scopeId", "data-v-
|
|
978
|
+
}), Nu = /* @__PURE__ */ ue(Ru, [["__scopeId", "data-v-44a6efad"]]), Wa = /* @__PURE__ */ Symbol("wx-form"), jo = /* @__PURE__ */ Symbol("wx-form-item");
|
|
979
979
|
let Gn = 0;
|
|
980
980
|
function xn(e = "wx") {
|
|
981
981
|
return Gn += 1, `${e}-${Gn}`;
|
|
@@ -9176,7 +9176,7 @@ const tp = ["disabled", "title"], ap = {
|
|
|
9176
9176
|
title: { default: void 0 }
|
|
9177
9177
|
},
|
|
9178
9178
|
setup(e) {
|
|
9179
|
-
const a = e, t = Ln(), l = An(), n = f(() => t?.collapsed.value ?? !1), o = f(() => !!(a.title || !n.value));
|
|
9179
|
+
const a = e, t = Ln(), l = An(), n = f(() => (t?.collapsed.value ?? !1) && !l.inFlyout), o = f(() => !!(a.title || !n.value));
|
|
9180
9180
|
return (i, r) => (s(), v("li", {
|
|
9181
9181
|
class: Q(["wx-menu-group", { "wx-menu-group--collapsed": n.value }])
|
|
9182
9182
|
}, [
|
|
@@ -9194,7 +9194,7 @@ const tp = ["disabled", "title"], ap = {
|
|
|
9194
9194
|
])
|
|
9195
9195
|
], 2));
|
|
9196
9196
|
}
|
|
9197
|
-
}), bp = /* @__PURE__ */ ue(pp, [["__scopeId", "data-v-
|
|
9197
|
+
}), bp = /* @__PURE__ */ ue(pp, [["__scopeId", "data-v-2fa525dd"]]), gp = { class: "wx-menu-item" }, yp = {
|
|
9198
9198
|
key: 0,
|
|
9199
9199
|
class: "wx-menu-row__icon"
|
|
9200
9200
|
}, wp = { class: "wx-menu-row__label" }, xp = {
|
|
@@ -9859,10 +9859,10 @@ const tp = ["disabled", "title"], ap = {
|
|
|
9859
9859
|
T("h3", lb, [
|
|
9860
9860
|
B(x.$slots, "header", {}, () => [
|
|
9861
9861
|
re(R(e.title), 1)
|
|
9862
|
-
]
|
|
9862
|
+
])
|
|
9863
9863
|
]),
|
|
9864
9864
|
x.$slots.extra ? (s(), v("div", nb, [
|
|
9865
|
-
B(x.$slots, "extra"
|
|
9865
|
+
B(x.$slots, "extra")
|
|
9866
9866
|
])) : $("", !0)
|
|
9867
9867
|
])) : $("", !0),
|
|
9868
9868
|
H(g(vn), {
|
|
@@ -9913,19 +9913,19 @@ const tp = ["disabled", "title"], ap = {
|
|
|
9913
9913
|
index: y
|
|
9914
9914
|
}, () => [
|
|
9915
9915
|
re(R(h(A, y)), 1)
|
|
9916
|
-
]
|
|
9916
|
+
])
|
|
9917
9917
|
]),
|
|
9918
9918
|
x.$slots.actions ? (s(), v("div", rb, [
|
|
9919
9919
|
B(x.$slots, "actions", {
|
|
9920
9920
|
item: A,
|
|
9921
9921
|
index: y
|
|
9922
|
-
}
|
|
9922
|
+
})
|
|
9923
9923
|
])) : $("", !0)
|
|
9924
9924
|
], 42, ob))), 128)),
|
|
9925
9925
|
n.value.length ? $("", !0) : (s(), v("li", ub, [
|
|
9926
9926
|
B(x.$slots, "empty", {}, () => [
|
|
9927
9927
|
re(R(e.emptyText), 1)
|
|
9928
|
-
]
|
|
9928
|
+
])
|
|
9929
9929
|
]))
|
|
9930
9930
|
]),
|
|
9931
9931
|
_: 3
|
|
@@ -9933,7 +9933,7 @@ const tp = ["disabled", "title"], ap = {
|
|
|
9933
9933
|
T("div", db, R(F.value), 1)
|
|
9934
9934
|
], 2));
|
|
9935
9935
|
}
|
|
9936
|
-
}), Fi = /* @__PURE__ */ ue(cb, [["__scopeId", "data-v-
|
|
9936
|
+
}), Fi = /* @__PURE__ */ ue(cb, [["__scopeId", "data-v-df51b75d"]]), fb = te({
|
|
9937
9937
|
name: "WxFormScope",
|
|
9938
9938
|
props: {
|
|
9939
9939
|
errors: { type: Object, required: !0 }
|
|
@@ -11789,6 +11789,8 @@ const Mg = {
|
|
|
11789
11789
|
searchDebounce: { default: 300 },
|
|
11790
11790
|
loading: { type: Boolean, default: !1 },
|
|
11791
11791
|
emptyText: { default: "Nothing to show" },
|
|
11792
|
+
selectRowLabel: { default: "Select row" },
|
|
11793
|
+
selectAllLabel: { default: "Select every row on this page" },
|
|
11792
11794
|
stripe: { type: Boolean, default: !1 },
|
|
11793
11795
|
bordered: { type: Boolean, default: !1 },
|
|
11794
11796
|
hover: { type: Boolean, default: !0 },
|
|
@@ -12245,9 +12247,9 @@ const Mg = {
|
|
|
12245
12247
|
key: 0,
|
|
12246
12248
|
"model-value": Ya(Z, ve),
|
|
12247
12249
|
disabled: !zl(Z),
|
|
12248
|
-
"aria-label":
|
|
12250
|
+
"aria-label": e.selectRowLabel,
|
|
12249
12251
|
"onUpdate:modelValue": ($e) => Pn(Z, ve, $e)
|
|
12250
|
-
}, null, 8, ["model-value", "disabled", "onUpdate:modelValue"])) : $("", !0),
|
|
12252
|
+
}, null, 8, ["model-value", "disabled", "aria-label", "onUpdate:modelValue"])) : $("", !0),
|
|
12251
12253
|
T("div", Wg, [
|
|
12252
12254
|
B(L.$slots, "card-actions", {
|
|
12253
12255
|
row: Z,
|
|
@@ -12343,9 +12345,9 @@ const Mg = {
|
|
|
12343
12345
|
"model-value": On.value,
|
|
12344
12346
|
indeterminate: Qi.value,
|
|
12345
12347
|
disabled: !ga.value.length,
|
|
12346
|
-
"aria-label":
|
|
12348
|
+
"aria-label": e.selectAllLabel,
|
|
12347
12349
|
"onUpdate:modelValue": Ji
|
|
12348
|
-
}, null, 8, ["model-value", "indeterminate", "disabled"])
|
|
12350
|
+
}, null, 8, ["model-value", "indeterminate", "disabled", "aria-label"])
|
|
12349
12351
|
], 6)) : $("", !0),
|
|
12350
12352
|
(s(!0), v(ge, null, xe(_.value, (Z) => (s(), v("th", {
|
|
12351
12353
|
key: Z.key,
|
|
@@ -12438,9 +12440,9 @@ const Mg = {
|
|
|
12438
12440
|
H(Ot, {
|
|
12439
12441
|
"model-value": Ya(Z, ve),
|
|
12440
12442
|
disabled: !zl(Z),
|
|
12441
|
-
"aria-label":
|
|
12443
|
+
"aria-label": e.selectRowLabel,
|
|
12442
12444
|
"onUpdate:modelValue": ($e) => Pn(Z, ve, $e)
|
|
12443
|
-
}, null, 8, ["model-value", "disabled", "onUpdate:modelValue"])
|
|
12445
|
+
}, null, 8, ["model-value", "disabled", "aria-label", "onUpdate:modelValue"])
|
|
12444
12446
|
], 6)) : $("", !0),
|
|
12445
12447
|
(s(!0), v(ge, null, xe(_.value, ($e) => (s(), v("td", {
|
|
12446
12448
|
key: $e.key,
|
|
@@ -12556,7 +12558,7 @@ const Mg = {
|
|
|
12556
12558
|
])) : $("", !0)
|
|
12557
12559
|
], 2));
|
|
12558
12560
|
}
|
|
12559
|
-
}), ay = /* @__PURE__ */ ue(ty, [["__scopeId", "data-v-
|
|
12561
|
+
}), ay = /* @__PURE__ */ ue(ty, [["__scopeId", "data-v-a734ebcb"]]), ly = { class: "wx-tabs__bar" }, ny = ["aria-label"], oy = { class: "wx-tabs__label" }, iy = ["disabled"], sy = { class: "wx-tabs__label" }, ry = ["disabled"], uy = {
|
|
12560
12562
|
key: 4,
|
|
12561
12563
|
class: "wx-tabs__extra"
|
|
12562
12564
|
}, dy = { class: "wx-tabs__panels" }, cy = /* @__PURE__ */ te({
|