@antscorp/ama-ui 0.0.43 → 0.0.44

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/ama-ui.es.js CHANGED
@@ -9414,17 +9414,27 @@ const lw = (e4) => w(Bv, { ...e4 }), sw = (e4) => w(yy, { ...e4 }), cw = (e4) =>
9414
9414
  }, hw = (e4) => w(Zo, { ...e4 }), pw = (e4) => w(vp, { ...e4 });
9415
9415
  pw.Menu = vp.Menu;
9416
9416
  const vw = (e4) => w(dl, { ...e4 }), gw = (e4) => w(Nu, { ...e4 }), yw = (e4) => w(Mv, { ...e4 }), bw = (e4) => w($v, { ...e4 }), ww = (e4) => w(qv, { ...e4 }), Ew = (e4) => w(pu, { ...e4 });
9417
- Ew.Title = pu.Title, Ew.Paragraph = pu.Paragraph;
9418
- const kw = "${label} is not a valid ${type}", Cw = "${label} không phải là một ${type} hợp lệ", xw = function(e4, t2) {
9417
+ function kw(e4, t2) {
9419
9418
  return function e5(t3, n2) {
9420
9419
  if ("object" != typeof t3 || "object" != typeof n2 || Array.isArray(t3) || Array.isArray(n2)) return void 0 !== n2 ? n2 : t3;
9421
9420
  const r2 = {};
9422
9421
  for (const i2 in t3) t3.hasOwnProperty(i2) && (r2[i2] = e5(t3[i2], n2[i2]));
9423
9422
  return r2;
9424
9423
  }(e4, t2);
9425
- }({ locale: "en", common: { confirm: "Confirm", cancel: "Cancel", loading: "Loading", close: "Close" }, Calendar: { title: "Date selection", confirm: "Confirm", start: "start", end: "end", today: "today", markItems: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], yearAndMonth: "${year}/${month}" }, Cascader: { placeholder: "Selecting" }, Dialog: { ok: "OK" }, DatePicker: { tillNow: "Till Now" }, ErrorBlock: { default: { title: "Oops, something went wrong", description: "Please wait a minute and try again" }, busy: { title: "Oops, not loading", description: "Try to refresh the page" }, disconnected: { title: "Network is busy", description: "Try to refresh the page" }, empty: { title: "Hmm, couldn't find that...", description: "Want to try a new search?" } }, Form: { required: "Required", optional: "Optional", defaultValidateMessages: { default: "Field validation error for ${label}", required: "Please enter ${label}", enum: "${label} must be one of [${enum}]", whitespace: "${label} cannot be a blank character", date: { format: "${label} date format is invalid", parse: "${label} cannot be converted to a date", invalid: "${label} is an invalid date" }, types: { string: kw, method: kw, array: kw, object: kw, number: kw, date: kw, boolean: kw, integer: kw, float: kw, regexp: kw, email: kw, url: kw, hex: kw }, string: { len: "${label} must be ${len} characters", min: "${label} must be at least ${min} characters", max: "${label} must be up to ${max} characters", range: "${label} must be between ${min}-${max} characters" }, number: { len: "${label} must be equal to ${len}", min: "${label} must be minimum ${min}", max: "${label} must be maximum ${max}", range: "${label} must be between ${min}-${max}" }, array: { len: "Must be ${len} ${label}", min: "At least ${min} ${label}", max: "At most ${max} ${label}", range: "The amount of ${label} must be between ${min}-${max}" }, pattern: { mismatch: "${label} does not match the pattern ${pattern}" } } }, ImageUploader: { uploading: "Uploading...", upload: "Upload" }, InfiniteScroll: { noMore: "No more", failedToLoad: "Failed to load", retry: "Retry" }, Input: { clear: "clear" }, Mask: { name: "Mask" }, Modal: { ok: "OK" }, PasscodeInput: { name: "Passcode Input" }, PullToRefresh: { pulling: "Scroll down to refresh", canRelease: "Release to refresh immediately", complete: "Refresh successful" }, SearchBar: { name: "Search Bar" }, Slider: { name: "Slider" }, Stepper: { decrease: "decrease", increase: "increase" }, Switch: { name: "Switch" }, Selector: { name: "Selector" } }, { locale: "vi-VN", common: { confirm: "Chắc chắn", cancel: "Hủy", loading: "Đang tải", close: "Đóng" }, Calendar: { title: "Chọn ngày", confirm: "Xác nhận", start: "Bắt đầu", end: "Kết thúc", today: "Hôm nay", markItems: ["Một", "Hai", "Ba", "Bốn", "Năm", "Sáu", "Ngày"], yearAndMonth: "Tháng ${month} năm ${year}" }, Cascader: { placeholder: "Vui lòng lựa chọn" }, Dialog: { ok: "OK" }, DatePicker: { tillNow: "Đến nay" }, ErrorBlock: { default: { title: "Trang đang gặp một số vấn đề nhỏ", description: "Đợi chút rồi thử" }, busy: { title: "Ùn tắc phía trước", description: "Thử quét mới" }, disconnected: { title: "Mạng đang bận", description: "Chạm khẽ để chỉnh sửa" }, empty: { title: "Không tìm thấy thứ bạn cần", description: "Tìm cái khác" } }, Form: { required: "Bắt buộc", optional: "Tùy chọn", defaultValidateMessages: { default: "Lỗi xác thực trường ${label}", required: "Vui lòng nhập ${label}", enum: "${label} phải là một trong [${enum}]", whitespace: "${label} không được là ký tự trống", date: { format: "${label}Định dạng ngày tháng không còn hiệu lực", parse: "${label} Không thể chuyển đổi thành ngày", invalid: "${label} là một ngày không hợp lệ" }, types: { string: Cw, method: Cw, array: Cw, object: Cw, number: Cw, date: Cw, boolean: Cw, integer: Cw, float: Cw, regexp: Cw, email: Cw, url: Cw, hex: Cw }, string: { len: "${label} phải là ${len} ký tự", min: "${label} tối thiểu ${min} ký tự", max: "${label} tối đa ${max} ký tự", range: "${label} phải ở giữa chữ ${min} - ${max}" }, number: { len: "${label} phải bằng ${len}", min: "${label} giá trị tối thiểu là ${min}", max: "${label} giá trị tối đa là ${max}", range: "${label} phải ở giữa ${min} - ${max}" }, array: { len: "Phải là ${len} chiếc ${label}", min: "Tối thiểu ${min} chiếc ${label}", max: "Tối đa ${max} chiếc ${label}", range: "${label} số lượng phải ở giữa ${min} - ${max}" }, pattern: { mismatch: "${label} không khớp với mẫu ${pattern}" } } }, ImageUploader: { uploading: "Đang tải lên...", upload: "Tải lên" }, InfiniteScroll: { noMore: "Hết rồi bạn ơi", failedToLoad: "Tải xuống thất bại", retry: "Tải lại" }, Input: { clear: "Xóa" }, Mask: { name: "Nền tối" }, Modal: { ok: "OK" }, PasscodeInput: { name: "Khung nhập mật khẩu" }, PullToRefresh: { pulling: "Kéo xuống để làm mới", canRelease: "Thả ra để làm mới", complete: "Làm mới thành công" }, SearchBar: { name: "Khung tìm kiếm" }, Slider: { name: "Thanh nhập liệu trượt" }, Stepper: { decrease: "Giảm", increase: "Tăng" }, Switch: { name: "Bật tắt" }, Selector: { name: "Chọn nhóm" } }), Ow = { ...xw, common: { ...xw.common, confirm: "Xác nhận" }, ErrorBlock: { ...xw.ErrorBlock, empty: { title: "Không có dữ liệu", description: "Hiện tại không có dữ liệu, xin vui lòng thử lại sau." } }, Modal: { ok: "Đồng ý" } }, Nw = (e4) => {
9426
- const { children: t2, ...n2 } = e4;
9427
- return w(A, { locale: Ow, ...n2, children: t2 });
9424
+ }
9425
+ Ew.Title = pu.Title, Ew.Paragraph = pu.Paragraph;
9426
+ const Cw = "${label} is not a valid ${type}", xw = { locale: "en", common: { confirm: "Confirm", cancel: "Cancel", loading: "Loading", close: "Close" }, Calendar: { title: "Date selection", confirm: "Confirm", start: "start", end: "end", today: "today", markItems: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], yearAndMonth: "${year}/${month}" }, Cascader: { placeholder: "Selecting" }, Dialog: { ok: "OK" }, DatePicker: { tillNow: "Till Now" }, ErrorBlock: { default: { title: "Oops, something went wrong", description: "Please wait a minute and try again" }, busy: { title: "Oops, not loading", description: "Try to refresh the page" }, disconnected: { title: "Network is busy", description: "Try to refresh the page" }, empty: { title: "Hmm, couldn't find that...", description: "Want to try a new search?" } }, Form: { required: "Required", optional: "Optional", defaultValidateMessages: { default: "Field validation error for ${label}", required: "Please enter ${label}", enum: "${label} must be one of [${enum}]", whitespace: "${label} cannot be a blank character", date: { format: "${label} date format is invalid", parse: "${label} cannot be converted to a date", invalid: "${label} is an invalid date" }, types: { string: Cw, method: Cw, array: Cw, object: Cw, number: Cw, date: Cw, boolean: Cw, integer: Cw, float: Cw, regexp: Cw, email: Cw, url: Cw, hex: Cw }, string: { len: "${label} must be ${len} characters", min: "${label} must be at least ${min} characters", max: "${label} must be up to ${max} characters", range: "${label} must be between ${min}-${max} characters" }, number: { len: "${label} must be equal to ${len}", min: "${label} must be minimum ${min}", max: "${label} must be maximum ${max}", range: "${label} must be between ${min}-${max}" }, array: { len: "Must be ${len} ${label}", min: "At least ${min} ${label}", max: "At most ${max} ${label}", range: "The amount of ${label} must be between ${min}-${max}" }, pattern: { mismatch: "${label} does not match the pattern ${pattern}" } } }, ImageUploader: { uploading: "Uploading...", upload: "Upload" }, InfiniteScroll: { noMore: "No more", failedToLoad: "Failed to load", retry: "Retry" }, Input: { clear: "clear" }, Mask: { name: "Mask" }, Modal: { ok: "OK" }, PasscodeInput: { name: "Passcode Input" }, PullToRefresh: { pulling: "Scroll down to refresh", canRelease: "Release to refresh immediately", complete: "Refresh successful" }, SearchBar: { name: "Search Bar" }, Slider: { name: "Slider" }, Stepper: { decrease: "decrease", increase: "increase" }, Switch: { name: "Switch" }, Selector: { name: "Selector" } }, Ow = "${label} không phải là một ${type} hợp lệ", Nw = kw(xw, { locale: "vi-VN", common: { confirm: "Chắc chắn", cancel: "Hủy", loading: "Đang tải", close: "Đóng" }, Calendar: { title: "Chọn ngày", confirm: "Xác nhận", start: "Bắt đầu", end: "Kết thúc", today: "Hôm nay", markItems: ["Một", "Hai", "Ba", "Bốn", "Năm", "Sáu", "Ngày"], yearAndMonth: "Tháng ${month} năm ${year}" }, Cascader: { placeholder: "Vui lòng lựa chọn" }, Dialog: { ok: "OK" }, DatePicker: { tillNow: "Đến nay" }, ErrorBlock: { default: { title: "Trang đang gặp một số vấn đề nhỏ", description: "Đợi chút rồi thử" }, busy: { title: "Ùn tắc phía trước", description: "Thử quét mới" }, disconnected: { title: "Mạng đang bận", description: "Chạm khẽ để chỉnh sửa" }, empty: { title: "Không tìm thấy thứ bạn cần", description: "Tìm cái khác" } }, Form: { required: "Bắt buộc", optional: "Tùy chọn", defaultValidateMessages: { default: "Lỗi xác thực trường ${label}", required: "Vui lòng nhập ${label}", enum: "${label} phải là một trong [${enum}]", whitespace: "${label} không được là ký tự trống", date: { format: "${label}Định dạng ngày tháng không còn hiệu lực", parse: "${label} Không thể chuyển đổi thành ngày", invalid: "${label} là một ngày không hợp lệ" }, types: { string: Ow, method: Ow, array: Ow, object: Ow, number: Ow, date: Ow, boolean: Ow, integer: Ow, float: Ow, regexp: Ow, email: Ow, url: Ow, hex: Ow }, string: { len: "${label} phải là ${len} ký tự", min: "${label} tối thiểu ${min} ký tự", max: "${label} tối đa ${max} ký tự", range: "${label} phải ở giữa chữ ${min} - ${max}" }, number: { len: "${label} phải bằng ${len}", min: "${label} giá trị tối thiểu là ${min}", max: "${label} giá trị tối đa là ${max}", range: "${label} phải ở giữa ${min} - ${max}" }, array: { len: "Phải là ${len} chiếc ${label}", min: "Tối thiểu ${min} chiếc ${label}", max: "Tối đa ${max} chiếc ${label}", range: "${label} số lượng phải ở giữa ${min} - ${max}" }, pattern: { mismatch: "${label} không khớp với mẫu ${pattern}" } } }, ImageUploader: { uploading: "Đang tải lên...", upload: "Tải lên" }, InfiniteScroll: { noMore: "Hết rồi bạn ơi", failedToLoad: "Tải xuống thất bại", retry: "Tải lại" }, Input: { clear: "Xóa" }, Mask: { name: "Nền tối" }, Modal: { ok: "OK" }, PasscodeInput: { name: "Khung nhập mật khẩu" }, PullToRefresh: { pulling: "Kéo xuống để làm mới", canRelease: "Thả ra để làm mới", complete: "Làm mới thành công" }, SearchBar: { name: "Khung tìm kiếm" }, Slider: { name: "Thanh nhập liệu trượt" }, Stepper: { decrease: "Giảm", increase: "Tăng" }, Switch: { name: "Bật tắt" }, Selector: { name: "Chọn nhóm" } }), $w = kw(xw, {}), _w = { ...Nw, common: { ...Nw.common, confirm: "Xác nhận" }, ErrorBlock: { ...Nw.ErrorBlock, empty: { title: "Không có dữ liệu", description: "Hiện tại không có dữ liệu, xin vui lòng thử lại sau." } }, Modal: { ok: "Đồng ý" } }, Fw = { ...$w, ErrorBlock: { ...$w.ErrorBlock, empty: { title: "No data", description: "There is currently no data, please try again later." } } }, Sw = (e4) => {
9427
+ const { children: t2, ...n2 } = e4, r2 = i(() => {
9428
+ if (e4.locale) return e4.locale;
9429
+ switch (e4.language) {
9430
+ case "vi":
9431
+ default:
9432
+ return _w;
9433
+ case "en":
9434
+ return Fw;
9435
+ }
9436
+ }, [e4.language, e4.locale]);
9437
+ return w(A, { locale: r2, ...n2, children: t2 });
9428
9438
  };
9429
9439
  export {
9430
9440
  qb as ActionSheet,
@@ -9440,7 +9450,7 @@ export {
9440
9450
  tw as CheckList,
9441
9451
  nw as Checkbox,
9442
9452
  xb as Collapse,
9443
- Nw as ConfigProvider,
9453
+ Sw as ConfigProvider,
9444
9454
  vb as DatePicker,
9445
9455
  yd as Dialog,
9446
9456
  pb as Divider,