@juspay/svelte-ui-components 4.37.0 → 4.37.1
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/Table/Table.svelte
CHANGED
|
@@ -1228,6 +1228,7 @@
|
|
|
1228
1228
|
value={[String(effectivePageSize)]}
|
|
1229
1229
|
disabled={pagination.isLoading ?? false}
|
|
1230
1230
|
usePortal
|
|
1231
|
+
ariaLabel={labels?.rowsPerPage ?? 'Rows per page'}
|
|
1231
1232
|
testId={pagination.testId && `${pagination.testId}-page-size`}
|
|
1232
1233
|
onchange={(selectedSizes) => {
|
|
1233
1234
|
if (selectedSizes.length > 0) {
|
|
@@ -520,8 +520,9 @@ export type TableProperties = OptionalTableProperties & TableEventProperties;
|
|
|
520
520
|
* Accessible names Table generates for its own controls, for callers who do
|
|
521
521
|
* not ship an English UI.
|
|
522
522
|
*
|
|
523
|
-
* Every member is optional and falls back to
|
|
524
|
-
*
|
|
523
|
+
* Every member is optional and falls back to an English default. All but
|
|
524
|
+
* `rowsPerPage` keep the string Table has always used; `rowsPerPage` adds a
|
|
525
|
+
* name to a control that previously had none.
|
|
525
526
|
*
|
|
526
527
|
* The two that depend on a column, and the one that depends on a row, are
|
|
527
528
|
* functions rather than templates with a placeholder: a translator needs to
|
|
@@ -546,6 +547,8 @@ export type TableLabels = {
|
|
|
546
547
|
clearSearch?: string;
|
|
547
548
|
/** Button that dismisses the search box. Default: `Close search`. */
|
|
548
549
|
closeSearch?: string;
|
|
550
|
+
/** Page-size selector in the built-in paginator footer. Default: `Rows per page`. */
|
|
551
|
+
rowsPerPage?: string;
|
|
549
552
|
};
|
|
550
553
|
export type OptionalTableProperties = {
|
|
551
554
|
labels?: TableLabels;
|
package/dist-wc/index.js
CHANGED
|
@@ -24694,7 +24694,7 @@ function Table(e, t) {
|
|
|
24694
24694
|
let e = /* @__PURE__ */ user_derived(() => get(An).map((e) => ({
|
|
24695
24695
|
id: String(e),
|
|
24696
24696
|
label: String(e)
|
|
24697
|
-
}))), t = /* @__PURE__ */ user_derived(() => [String(get(Cn))]), i = /* @__PURE__ */ user_derived(() => dt().isLoading ?? !1), a = /* @__PURE__ */ user_derived(() => dt().testId && `${dt().testId}-page-size`);
|
|
24697
|
+
}))), t = /* @__PURE__ */ user_derived(() => [String(get(Cn))]), i = /* @__PURE__ */ user_derived(() => dt().isLoading ?? !1), a = /* @__PURE__ */ user_derived(() => bt()?.rowsPerPage ?? "Rows per page"), o = /* @__PURE__ */ user_derived(() => dt().testId && `${dt().testId}-page-size`);
|
|
24698
24698
|
Select(n, {
|
|
24699
24699
|
get items() {
|
|
24700
24700
|
return get(e);
|
|
@@ -24706,9 +24706,12 @@ function Table(e, t) {
|
|
|
24706
24706
|
return get(i);
|
|
24707
24707
|
},
|
|
24708
24708
|
usePortal: !0,
|
|
24709
|
-
get
|
|
24709
|
+
get ariaLabel() {
|
|
24710
24710
|
return get(a);
|
|
24711
24711
|
},
|
|
24712
|
+
get testId() {
|
|
24713
|
+
return get(o);
|
|
24714
|
+
},
|
|
24712
24715
|
onchange: (e) => {
|
|
24713
24716
|
e.length > 0 && Pn(Number(e[0]));
|
|
24714
24717
|
}
|