@webx-ui/core 0.34.3 → 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.
@@ -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
@@ -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": "Select row",
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": "Select every row on this page",
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": "Select row",
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-749d117a"]]), ly = { class: "wx-tabs__bar" }, ny = ["aria-label"], oy = { class: "wx-tabs__label" }, iy = ["disabled"], sy = { class: "wx-tabs__label" }, ry = ["disabled"], uy = {
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({