@nanahoshi/mona-ui 0.28.0 → 0.30.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/docs/api/i18n.md +13 -0
- package/docs/api/locales.md +21 -13
- package/docs/api/qr-code.md +287 -0
- package/docs/qr-code.md +377 -0
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +9 -8
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +600 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-locales.mjs +3 -1
- package/fesm2022/nanahoshi-mona-ui-qr-code.mjs +1671 -0
- package/i18n/catalogs/en-US.messages.json +3 -0
- package/llms.txt +4 -2
- package/locales/ar-sa/ar-sa.messages.json +3 -0
- package/locales/de-de/de-de.messages.json +3 -0
- package/locales/es-es/es-es.messages.json +3 -0
- package/locales/fr-fr/fr-fr.messages.json +3 -0
- package/locales/id-id/id-id.messages.json +3 -0
- package/locales/it-it/it-it.messages.json +3 -0
- package/locales/ja-jp/ja-jp.messages.json +3 -0
- package/locales/ko-kr/ko-kr.messages.json +3 -0
- package/locales/pl-pl/package.json +4 -0
- package/locales/pl-pl/pl-pl.messages.json +539 -0
- package/locales/pt-br/pt-br.messages.json +3 -0
- package/locales/ru-ru/ru-ru.messages.json +3 -0
- package/locales/tr-tr/tr-tr.messages.json +3 -0
- package/locales/zh-cn/zh-cn.messages.json +3 -0
- package/locales/zh-tw/zh-tw.messages.json +3 -0
- package/package.json +9 -1
- package/qr-code/package.json +4 -0
- package/types/nanahoshi-mona-ui-calendar.d.ts +2 -2
- package/types/nanahoshi-mona-ui-i18n.d.ts +4 -0
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +3 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +3 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +3 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +3 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +3 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +3 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +3 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +3 -0
- package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +543 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +3 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +3 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +3 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +3 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +3 -0
- package/types/nanahoshi-mona-ui-locales.d.ts +2 -1
- package/types/nanahoshi-mona-ui-qr-code.d.ts +322 -0
|
@@ -1116,22 +1116,23 @@ var CalendarComponent = class CalendarComponent {
|
|
|
1116
1116
|
this.weekdays = computed(() => {
|
|
1117
1117
|
const firstDayIso = FIRST_DAY_OF_WEEK_TO_ISO[this.effectiveFirstDay()];
|
|
1118
1118
|
const locale = this.#i18n.localeId();
|
|
1119
|
-
const
|
|
1119
|
+
const names = range(0, 7).select((i) => {
|
|
1120
1120
|
const dt = gregorianDateTimeFromObject({
|
|
1121
1121
|
year: 2024,
|
|
1122
1122
|
month: 1,
|
|
1123
1123
|
day: 1 + i
|
|
1124
1124
|
}, locale);
|
|
1125
|
-
const short = dt.toFormat("ccc");
|
|
1126
|
-
const full = dt.toFormat("cccc");
|
|
1127
|
-
const narrow = dt.toFormat("ccccc");
|
|
1128
1125
|
return {
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
full
|
|
1126
|
+
full: dt.toFormat("cccc"),
|
|
1127
|
+
narrow: dt.toFormat("ccccc"),
|
|
1128
|
+
short: dt.toFormat("ccc")
|
|
1133
1129
|
};
|
|
1134
1130
|
}).toArray();
|
|
1131
|
+
const useNarrow = names.some(({ full, short }) => short.length > 4 || short === full && short.length > 3);
|
|
1132
|
+
const days = names.map((name) => ({
|
|
1133
|
+
...name,
|
|
1134
|
+
display: useNarrow ? name.narrow : name.short
|
|
1135
|
+
}));
|
|
1135
1136
|
const startIndex = firstDayIso - 1;
|
|
1136
1137
|
return [...days.slice(startIndex), ...days.slice(0, startIndex)];
|
|
1137
1138
|
}, ...ngDevMode ? [{ debugName: "weekdays" }] : /* istanbul ignore next */ []);
|
|
@@ -451,6 +451,7 @@ const MONA_AR_SA_LOCALE = {
|
|
|
451
451
|
rangeStatus: (start, end, total) => `${localizeNumber(start)}–${localizeNumber(end)} من ${localizeNumber(total)}`
|
|
452
452
|
},
|
|
453
453
|
progressBar: { label: "التقدم" },
|
|
454
|
+
qrCode: { label: "رمز QR" },
|
|
454
455
|
rating: {
|
|
455
456
|
notRated: "غير مقيّم",
|
|
456
457
|
valueText: (value, max) => `${localizeNumber(value)} من ${localizeNumber(max)}`
|
|
@@ -425,6 +425,7 @@ const MONA_DE_DE_LOCALE = {
|
|
|
425
425
|
rangeStatus: (start, end, total) => total === 1 ? `${localizeNumber(start)}–${localizeNumber(end)} von ${localizeNumber(total)} Element` : `${localizeNumber(start)}–${localizeNumber(end)} von ${localizeNumber(total)} Elementen`
|
|
426
426
|
},
|
|
427
427
|
progressBar: { label: "Fortschritt" },
|
|
428
|
+
qrCode: { label: "QR-Code" },
|
|
428
429
|
rating: {
|
|
429
430
|
notRated: "Nicht bewertet",
|
|
430
431
|
valueText: (value, max) => `${localizeNumber(value)} von ${localizeNumber(max)}`
|
|
@@ -425,6 +425,7 @@ const MONA_ES_ES_LOCALE = {
|
|
|
425
425
|
rangeStatus: (start, end, total) => total === 1 ? `${localizeNumber(start)} - ${localizeNumber(end)} de ${localizeNumber(total)} elemento` : `${localizeNumber(start)} - ${localizeNumber(end)} de ${localizeNumber(total)} elementos`
|
|
426
426
|
},
|
|
427
427
|
progressBar: { label: "Progreso" },
|
|
428
|
+
qrCode: { label: "Código QR" },
|
|
428
429
|
rating: {
|
|
429
430
|
notRated: "Sin valoración",
|
|
430
431
|
valueText: (value, max) => `${localizeNumber(value)} de ${localizeNumber(max)}`
|
|
@@ -425,6 +425,7 @@ const MONA_FR_FR_LOCALE = {
|
|
|
425
425
|
rangeStatus: (start, end, total) => total === 1 ? `${localizeNumber(start)}–${localizeNumber(end)} sur ${localizeNumber(total)} élément` : `${localizeNumber(start)}–${localizeNumber(end)} sur ${localizeNumber(total)} éléments`
|
|
426
426
|
},
|
|
427
427
|
progressBar: { label: "Progression" },
|
|
428
|
+
qrCode: { label: "Code QR" },
|
|
428
429
|
rating: {
|
|
429
430
|
notRated: "Non évalué",
|
|
430
431
|
valueText: (value, max) => `${localizeNumber(value)} sur ${localizeNumber(max)}`
|
|
@@ -412,6 +412,7 @@ const MONA_ID_ID_LOCALE = {
|
|
|
412
412
|
rangeStatus: (start, end, total) => `${localizeNumber(start)} - ${localizeNumber(end)} dari ${localizeNumber(total)} item`
|
|
413
413
|
},
|
|
414
414
|
progressBar: { label: "Kemajuan" },
|
|
415
|
+
qrCode: { label: "Kode QR" },
|
|
415
416
|
rating: {
|
|
416
417
|
notRated: "Belum dinilai",
|
|
417
418
|
valueText: (value, max) => `${localizeNumber(value)} dari ${localizeNumber(max)}`
|
|
@@ -425,6 +425,7 @@ const MONA_IT_IT_LOCALE = {
|
|
|
425
425
|
rangeStatus: (start, end, total) => total === 1 ? `${localizeNumber(start)} - ${localizeNumber(end)} di ${localizeNumber(total)} elemento` : `${localizeNumber(start)} - ${localizeNumber(end)} di ${localizeNumber(total)} elementi`
|
|
426
426
|
},
|
|
427
427
|
progressBar: { label: "Avanzamento" },
|
|
428
|
+
qrCode: { label: "Codice QR" },
|
|
428
429
|
rating: {
|
|
429
430
|
notRated: "Nessuna valutazione",
|
|
430
431
|
valueText: (value, max) => `${localizeNumber(value)} di ${localizeNumber(max)}`
|
|
@@ -412,6 +412,7 @@ const MONA_JA_JP_LOCALE = {
|
|
|
412
412
|
rangeStatus: (start, end, total) => `全${localizeNumber(total)}件中${localizeNumber(start)}~${localizeNumber(end)}件`
|
|
413
413
|
},
|
|
414
414
|
progressBar: { label: "進行状況" },
|
|
415
|
+
qrCode: { label: "QRコード" },
|
|
415
416
|
rating: {
|
|
416
417
|
notRated: "未評価",
|
|
417
418
|
valueText: (value, max) => `${localizeNumber(max)}段階中${localizeNumber(value)}`
|
|
@@ -412,6 +412,7 @@ const MONA_KO_KR_LOCALE = {
|
|
|
412
412
|
rangeStatus: (start, end, total) => `전체 ${localizeNumber(total)}개 중 ${localizeNumber(start)}~${localizeNumber(end)}`
|
|
413
413
|
},
|
|
414
414
|
progressBar: { label: "진행률" },
|
|
415
|
+
qrCode: { label: "QR 코드" },
|
|
415
416
|
rating: {
|
|
416
417
|
notRated: "평가되지 않음",
|
|
417
418
|
valueText: (value, max) => `${localizeNumber(max)}점 만점에 ${localizeNumber(value)}점`
|