asma-ui-core 3.134.5 → 3.134.6
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/utils/bottom-sheet/formatResultsLabel.js +5 -5
- package/dist/components/utils/bottom-sheet/sheetCopy.js +4 -4
- package/dist/src/components/utils/bottom-sheet/formatResultsLabel.d.ts +1 -1
- package/dist/src/components/utils/bottom-sheet/sheetCopy.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SHEET_TEXT as
|
|
2
|
-
var
|
|
3
|
-
const
|
|
4
|
-
return
|
|
1
|
+
import { SHEET_TEXT as i } from "./sheetCopy.js";
|
|
2
|
+
var t = 9999, v = (e, s = "en") => {
|
|
3
|
+
const r = i[s];
|
|
4
|
+
return e == null ? r.viewResults : e === 0 ? r.noMatches : e > t ? `${r.viewResults} (${t}+)` : `${r.viewResults} (${e})`;
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
v as formatResultsLabel
|
|
8
8
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
1
|
+
var e = {
|
|
2
2
|
no: {
|
|
3
3
|
close: "Lukk",
|
|
4
|
-
|
|
4
|
+
viewResults: "Vis resultater",
|
|
5
5
|
noMatches: "Ingen treff"
|
|
6
6
|
},
|
|
7
7
|
en: {
|
|
8
8
|
close: "Close",
|
|
9
|
-
|
|
9
|
+
viewResults: "View results",
|
|
10
10
|
noMatches: "No matches"
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
e as SHEET_TEXT
|
|
15
15
|
};
|
|
@@ -7,6 +7,6 @@ import { UiCoreLocale } from '../../../helpers/uiCoreLocale';
|
|
|
7
7
|
* - above 9999 → `Vis resultater (9999+)`, so the label keeps a fixed shape and never wraps
|
|
8
8
|
* - otherwise → `Vis resultater (N)`, parenthesised even for 1 to sidestep resultat/resultater
|
|
9
9
|
*
|
|
10
|
-
* English (`locale='en'`) reads `
|
|
10
|
+
* English (`locale='en'`) reads `View results (N)` and `No matches`.
|
|
11
11
|
*/
|
|
12
12
|
export declare const formatResultsLabel: (count: number | null | undefined, locale?: UiCoreLocale) => string;
|