@expcat/tigercat-core 1.2.30 → 1.2.31
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/index.cjs +21 -15
- package/dist/index.js +21 -15
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2973,21 +2973,25 @@ var ZH_CN_FORM_WIZARD_LABELS = {
|
|
|
2973
2973
|
finishText: "\u5B8C\u6210"
|
|
2974
2974
|
};
|
|
2975
2975
|
function getFormWizardLabels(locale) {
|
|
2976
|
+
const isZh = locale?.locale?.startsWith("zh");
|
|
2977
|
+
const defaultLabels = isZh ? ZH_CN_FORM_WIZARD_LABELS : DEFAULT_FORM_WIZARD_LABELS;
|
|
2976
2978
|
return {
|
|
2977
|
-
prevText: locale?.formWizard?.prevText ??
|
|
2978
|
-
nextText: locale?.formWizard?.nextText ??
|
|
2979
|
-
finishText: locale?.formWizard?.finishText ??
|
|
2979
|
+
prevText: locale?.formWizard?.prevText ?? defaultLabels.prevText,
|
|
2980
|
+
nextText: locale?.formWizard?.nextText ?? defaultLabels.nextText,
|
|
2981
|
+
finishText: locale?.formWizard?.finishText ?? defaultLabels.finishText
|
|
2980
2982
|
};
|
|
2981
2983
|
}
|
|
2982
2984
|
function getPaginationLabels(locale) {
|
|
2985
|
+
const isZh = !!locale?.locale?.startsWith("zh") || locale?.formWizard?.prevText === "\u4E0A\u4E00\u6B65" || locale?.upload?.clickToUploadText === "\u70B9\u51FB\u4E0A\u4F20";
|
|
2986
|
+
const defaultLabels = isZh ? ZH_CN_PAGINATION_LABELS : DEFAULT_PAGINATION_LABELS;
|
|
2983
2987
|
return {
|
|
2984
|
-
totalText: locale?.pagination?.totalText ??
|
|
2985
|
-
itemsPerPageText: locale?.pagination?.itemsPerPageText ??
|
|
2986
|
-
jumpToText: locale?.pagination?.jumpToText ??
|
|
2987
|
-
pageText: locale?.pagination?.pageText ??
|
|
2988
|
-
prevPageAriaLabel: locale?.pagination?.prevPageAriaLabel ??
|
|
2989
|
-
nextPageAriaLabel: locale?.pagination?.nextPageAriaLabel ??
|
|
2990
|
-
pageAriaLabel: locale?.pagination?.pageAriaLabel ??
|
|
2988
|
+
totalText: locale?.pagination?.totalText ?? defaultLabels.totalText,
|
|
2989
|
+
itemsPerPageText: locale?.pagination?.itemsPerPageText ?? defaultLabels.itemsPerPageText,
|
|
2990
|
+
jumpToText: locale?.pagination?.jumpToText ?? defaultLabels.jumpToText,
|
|
2991
|
+
pageText: locale?.pagination?.pageText ?? defaultLabels.pageText,
|
|
2992
|
+
prevPageAriaLabel: locale?.pagination?.prevPageAriaLabel ?? defaultLabels.prevPageAriaLabel,
|
|
2993
|
+
nextPageAriaLabel: locale?.pagination?.nextPageAriaLabel ?? defaultLabels.nextPageAriaLabel,
|
|
2994
|
+
pageAriaLabel: locale?.pagination?.pageAriaLabel ?? defaultLabels.pageAriaLabel
|
|
2991
2995
|
};
|
|
2992
2996
|
}
|
|
2993
2997
|
function formatPaginationTotal(template, total, range, locale) {
|
|
@@ -3012,12 +3016,14 @@ var ZH_CN_TASK_BOARD_LABELS = {
|
|
|
3012
3016
|
boardAriaLabel: "\u4EFB\u52A1\u770B\u677F"
|
|
3013
3017
|
};
|
|
3014
3018
|
function getTaskBoardLabels(locale) {
|
|
3019
|
+
const isZh = locale?.locale?.startsWith("zh");
|
|
3020
|
+
const defaultLabels = isZh ? ZH_CN_TASK_BOARD_LABELS : DEFAULT_TASK_BOARD_LABELS;
|
|
3015
3021
|
return {
|
|
3016
|
-
emptyColumnText: locale?.taskBoard?.emptyColumnText ??
|
|
3017
|
-
addCardText: locale?.taskBoard?.addCardText ??
|
|
3018
|
-
wipLimitText: locale?.taskBoard?.wipLimitText ??
|
|
3019
|
-
dragHintText: locale?.taskBoard?.dragHintText ??
|
|
3020
|
-
boardAriaLabel: locale?.taskBoard?.boardAriaLabel ??
|
|
3022
|
+
emptyColumnText: locale?.taskBoard?.emptyColumnText ?? defaultLabels.emptyColumnText,
|
|
3023
|
+
addCardText: locale?.taskBoard?.addCardText ?? defaultLabels.addCardText,
|
|
3024
|
+
wipLimitText: locale?.taskBoard?.wipLimitText ?? defaultLabels.wipLimitText,
|
|
3025
|
+
dragHintText: locale?.taskBoard?.dragHintText ?? defaultLabels.dragHintText,
|
|
3026
|
+
boardAriaLabel: locale?.taskBoard?.boardAriaLabel ?? defaultLabels.boardAriaLabel
|
|
3021
3027
|
};
|
|
3022
3028
|
}
|
|
3023
3029
|
|
package/dist/index.js
CHANGED
|
@@ -1109,21 +1109,25 @@ var ZH_CN_FORM_WIZARD_LABELS = {
|
|
|
1109
1109
|
finishText: "\u5B8C\u6210"
|
|
1110
1110
|
};
|
|
1111
1111
|
function getFormWizardLabels(locale) {
|
|
1112
|
+
const isZh = locale?.locale?.startsWith("zh");
|
|
1113
|
+
const defaultLabels = isZh ? ZH_CN_FORM_WIZARD_LABELS : DEFAULT_FORM_WIZARD_LABELS;
|
|
1112
1114
|
return {
|
|
1113
|
-
prevText: locale?.formWizard?.prevText ??
|
|
1114
|
-
nextText: locale?.formWizard?.nextText ??
|
|
1115
|
-
finishText: locale?.formWizard?.finishText ??
|
|
1115
|
+
prevText: locale?.formWizard?.prevText ?? defaultLabels.prevText,
|
|
1116
|
+
nextText: locale?.formWizard?.nextText ?? defaultLabels.nextText,
|
|
1117
|
+
finishText: locale?.formWizard?.finishText ?? defaultLabels.finishText
|
|
1116
1118
|
};
|
|
1117
1119
|
}
|
|
1118
1120
|
function getPaginationLabels(locale) {
|
|
1121
|
+
const isZh = !!locale?.locale?.startsWith("zh") || locale?.formWizard?.prevText === "\u4E0A\u4E00\u6B65" || locale?.upload?.clickToUploadText === "\u70B9\u51FB\u4E0A\u4F20";
|
|
1122
|
+
const defaultLabels = isZh ? ZH_CN_PAGINATION_LABELS : DEFAULT_PAGINATION_LABELS;
|
|
1119
1123
|
return {
|
|
1120
|
-
totalText: locale?.pagination?.totalText ??
|
|
1121
|
-
itemsPerPageText: locale?.pagination?.itemsPerPageText ??
|
|
1122
|
-
jumpToText: locale?.pagination?.jumpToText ??
|
|
1123
|
-
pageText: locale?.pagination?.pageText ??
|
|
1124
|
-
prevPageAriaLabel: locale?.pagination?.prevPageAriaLabel ??
|
|
1125
|
-
nextPageAriaLabel: locale?.pagination?.nextPageAriaLabel ??
|
|
1126
|
-
pageAriaLabel: locale?.pagination?.pageAriaLabel ??
|
|
1124
|
+
totalText: locale?.pagination?.totalText ?? defaultLabels.totalText,
|
|
1125
|
+
itemsPerPageText: locale?.pagination?.itemsPerPageText ?? defaultLabels.itemsPerPageText,
|
|
1126
|
+
jumpToText: locale?.pagination?.jumpToText ?? defaultLabels.jumpToText,
|
|
1127
|
+
pageText: locale?.pagination?.pageText ?? defaultLabels.pageText,
|
|
1128
|
+
prevPageAriaLabel: locale?.pagination?.prevPageAriaLabel ?? defaultLabels.prevPageAriaLabel,
|
|
1129
|
+
nextPageAriaLabel: locale?.pagination?.nextPageAriaLabel ?? defaultLabels.nextPageAriaLabel,
|
|
1130
|
+
pageAriaLabel: locale?.pagination?.pageAriaLabel ?? defaultLabels.pageAriaLabel
|
|
1127
1131
|
};
|
|
1128
1132
|
}
|
|
1129
1133
|
function formatPaginationTotal(template, total, range, locale) {
|
|
@@ -1148,12 +1152,14 @@ var ZH_CN_TASK_BOARD_LABELS = {
|
|
|
1148
1152
|
boardAriaLabel: "\u4EFB\u52A1\u770B\u677F"
|
|
1149
1153
|
};
|
|
1150
1154
|
function getTaskBoardLabels(locale) {
|
|
1155
|
+
const isZh = locale?.locale?.startsWith("zh");
|
|
1156
|
+
const defaultLabels = isZh ? ZH_CN_TASK_BOARD_LABELS : DEFAULT_TASK_BOARD_LABELS;
|
|
1151
1157
|
return {
|
|
1152
|
-
emptyColumnText: locale?.taskBoard?.emptyColumnText ??
|
|
1153
|
-
addCardText: locale?.taskBoard?.addCardText ??
|
|
1154
|
-
wipLimitText: locale?.taskBoard?.wipLimitText ??
|
|
1155
|
-
dragHintText: locale?.taskBoard?.dragHintText ??
|
|
1156
|
-
boardAriaLabel: locale?.taskBoard?.boardAriaLabel ??
|
|
1158
|
+
emptyColumnText: locale?.taskBoard?.emptyColumnText ?? defaultLabels.emptyColumnText,
|
|
1159
|
+
addCardText: locale?.taskBoard?.addCardText ?? defaultLabels.addCardText,
|
|
1160
|
+
wipLimitText: locale?.taskBoard?.wipLimitText ?? defaultLabels.wipLimitText,
|
|
1161
|
+
dragHintText: locale?.taskBoard?.dragHintText ?? defaultLabels.dragHintText,
|
|
1162
|
+
boardAriaLabel: locale?.taskBoard?.boardAriaLabel ?? defaultLabels.boardAriaLabel
|
|
1157
1163
|
};
|
|
1158
1164
|
}
|
|
1159
1165
|
|