@plesk/ui-library 3.43.2 → 3.44.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/cjs/components/Action/Action.js +10 -3
- package/cjs/components/Alert/Alert.js +1 -0
- package/cjs/components/AutoClosable/AutoClosable.js +47 -61
- package/cjs/components/AuxiliaryActions/AuxiliaryActions.js +13 -4
- package/cjs/components/Button/Button.js +1 -0
- package/cjs/components/Card/Card.js +10 -15
- package/cjs/components/CardList/CardList.js +6 -9
- package/cjs/components/CardList/CardListToolbar.js +12 -18
- package/cjs/components/ClosingConfirmation/useClosingConfirmation.js +7 -11
- package/cjs/components/CodeEditor/CodeEditor.js +1 -2
- package/cjs/components/Columns/Columns.js +1 -2
- package/cjs/components/ComboBox/ComboBox.js +1 -2
- package/cjs/components/ComboBoxDropdown/ComboBoxDropdown.js +4 -2
- package/cjs/components/ComboBoxDropdown/index.js +1 -2
- package/cjs/components/Cuttable/Cuttable.js +6 -8
- package/cjs/components/Dialog/Dialog.js +17 -13
- package/cjs/components/Drawer/Drawer.js +14 -7
- package/cjs/components/Drawer/DrawerProgress.js +4 -6
- package/cjs/components/Dropdown/Dropdown.js +12 -9
- package/cjs/components/Dropdown/index.js +1 -2
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessage.js +1 -0
- package/cjs/components/Figure/index.js +1 -2
- package/cjs/components/Form/Form.js +19 -20
- package/cjs/components/Form/index.js +1 -2
- package/cjs/components/FormField/FormField.js +77 -51
- package/cjs/components/FormField/index.js +1 -2
- package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.js +6 -2
- package/cjs/components/FormFieldPassword/FormFieldPassword.js +18 -21
- package/cjs/components/FormFieldPassword/PasswordMeter.js +9 -15
- package/cjs/components/FormFieldPassword/estimatePassword.js +21 -33
- package/cjs/components/FormFieldRadioButtons/FormFieldRadioButtons.js +50 -44
- package/cjs/components/FormFieldSelect/FormFieldSelect.js +1 -1
- package/cjs/components/FormFieldText/FormFieldText.js +7 -1
- package/cjs/components/Heading/Heading.js +1 -2
- package/cjs/components/Hint/Hint.js +2 -1
- package/cjs/components/Icon/Icon.js +6 -0
- package/cjs/components/Icon/index.js +1 -2
- package/cjs/components/Icon/utils.js +17 -8
- package/cjs/components/InPlaceEdit/Editor.js +5 -8
- package/cjs/components/InPlaceEdit/InPlaceEdit.js +3 -5
- package/cjs/components/InputFile/InputFile.js +7 -9
- package/cjs/components/Item/Item.js +1 -2
- package/cjs/components/ItemList/ItemList.js +1 -2
- package/cjs/components/Layer/index.js +1 -2
- package/cjs/components/Layout/Layout.js +2 -2
- package/cjs/components/Link/Link.js +2 -0
- package/cjs/components/List/List.js +38 -45
- package/cjs/components/List/ListAction.js +1 -0
- package/cjs/components/List/ListActions.js +1 -0
- package/cjs/components/List/ListEmptyView.js +7 -10
- package/cjs/components/List/ListOperation.js +3 -12
- package/cjs/components/LocaleProvider/LocaleProvider.js +20 -12
- package/cjs/components/LocaleProvider/index.js +1 -2
- package/cjs/components/Media/Media.js +1 -2
- package/cjs/components/Menu/Menu.js +10 -8
- package/cjs/components/Menu/MenuBaseItem.js +1 -2
- package/cjs/components/Menu/MenuItem.js +2 -1
- package/cjs/components/Overlay/Overlay.js +2 -0
- package/cjs/components/Pagination/Pagination.js +6 -10
- package/cjs/components/Pagination/index.js +1 -2
- package/cjs/components/Popover/Popover.js +1 -1
- package/cjs/components/Popper/index.js +1 -2
- package/cjs/components/ProgressDialog/ProgressDialog.js +5 -7
- package/cjs/components/ProgressStep/ProgressStep.js +1 -2
- package/cjs/components/ProgressStep/index.js +1 -2
- package/cjs/components/Section/Section.js +87 -225
- package/cjs/components/{Dropdown/locale/en-US.js → Section/SectionContext.js} +4 -3
- package/cjs/components/Section/index.js +1 -2
- package/cjs/components/Section/useCollapsed.js +19 -0
- package/cjs/components/Section/useVertical.js +38 -0
- package/cjs/components/SegmentedControl/DropdownControl.js +1 -2
- package/cjs/components/SegmentedControl/SegmentedControl.js +1 -0
- package/cjs/components/SegmentedControl/index.js +1 -2
- package/cjs/components/Select/Select.js +10 -7
- package/cjs/components/Select/SelectControl.js +13 -3
- package/cjs/components/SplitButton/index.js +1 -2
- package/cjs/components/Spot/SpotPopup.js +3 -4
- package/cjs/components/Status/Status.js +1 -0
- package/cjs/components/Subnav/index.js +1 -2
- package/cjs/components/Tabs/SearchBar.js +1 -2
- package/cjs/components/Tabs/TabIcon.js +1 -2
- package/cjs/components/Tabs/TabList.js +30 -14
- package/cjs/components/Tabs/TabListItem.js +5 -1
- package/cjs/components/Tabs/Tabs.js +16 -12
- package/cjs/components/Tabs/useWidths.js +5 -5
- package/cjs/components/Toast/Toast.js +1 -0
- package/cjs/components/Toast/index.js +1 -2
- package/cjs/components/Toaster/GroupLabel.js +5 -3
- package/cjs/components/Toolbar/Toolbar.js +1 -2
- package/cjs/components/Toolbar/ToolbarGroup.js +1 -2
- package/cjs/components/Toolbar/ToolbarMenu.js +1 -2
- package/cjs/components/Tooltip/Tooltip.js +11 -4
- package/cjs/components/Translate/Translate.js +13 -3
- package/cjs/components/Translate/index.js +28 -3
- package/cjs/components/Translate/locale.js +25 -0
- package/cjs/components/VerticalContext/index.js +1 -2
- package/cjs/components/index.js +16 -3
- package/cjs/hooks/useResizeObserver.js +8 -2
- package/cjs/index.js +1 -1
- package/cjs/locales/ar.js +124 -0
- package/cjs/locales/ca-ES.js +124 -0
- package/cjs/locales/cs-CZ.js +124 -0
- package/cjs/locales/da-DK.js +124 -0
- package/cjs/locales/de-DE.js +124 -0
- package/cjs/locales/el-GR.js +124 -0
- package/cjs/locales/en-US.js +124 -0
- package/cjs/locales/es-ES.js +124 -0
- package/cjs/locales/fi-FI.js +124 -0
- package/cjs/locales/fr-FR.js +124 -0
- package/cjs/locales/he-IL.js +124 -0
- package/cjs/locales/hu-HU.js +124 -0
- package/cjs/locales/id-ID.js +124 -0
- package/cjs/locales/index.js +172 -0
- package/cjs/locales/it-IT.js +124 -0
- package/cjs/locales/ja-JP.js +124 -0
- package/cjs/locales/ko-KR.js +124 -0
- package/cjs/locales/ms-MY.js +124 -0
- package/cjs/locales/nb-NO.js +124 -0
- package/cjs/locales/nl-NL.js +124 -0
- package/cjs/locales/pl-PL.js +124 -0
- package/cjs/locales/pt-BR.js +124 -0
- package/cjs/locales/pt-PT.js +124 -0
- package/cjs/locales/ro-RO.js +124 -0
- package/cjs/locales/ru-RU.js +124 -0
- package/cjs/locales/sv-SE.js +124 -0
- package/cjs/locales/th-TH.js +124 -0
- package/cjs/locales/tl-PH.js +124 -0
- package/cjs/locales/tr-TR.js +124 -0
- package/cjs/locales/uk-UA.js +124 -0
- package/cjs/locales/vi-VN.js +124 -0
- package/cjs/locales/zh-CN.js +124 -0
- package/cjs/locales/zh-TW.js +124 -0
- package/cjs/utils.js +17 -2
- package/dist/plesk-ui-library-rtl.css +1 -1
- package/dist/plesk-ui-library-rtl.css.map +1 -1
- package/dist/plesk-ui-library.css +1 -1
- package/dist/plesk-ui-library.css.map +1 -1
- package/dist/plesk-ui-library.js +5517 -1054
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +6 -6
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/Action/Action.js +9 -1
- package/esm/components/Alert/Alert.js +1 -0
- package/esm/components/AutoClosable/AutoClosable.js +48 -62
- package/esm/components/AuxiliaryActions/AuxiliaryActions.js +13 -4
- package/esm/components/Button/Button.js +1 -0
- package/esm/components/Card/Card.js +9 -13
- package/esm/components/CardList/CardList.js +5 -7
- package/esm/components/CardList/CardListToolbar.js +11 -16
- package/esm/components/ClosingConfirmation/useClosingConfirmation.js +7 -11
- package/esm/components/ComboBoxDropdown/ComboBoxDropdown.js +3 -0
- package/esm/components/Cuttable/Cuttable.js +6 -8
- package/esm/components/Dialog/Dialog.js +18 -12
- package/esm/components/Drawer/Drawer.js +15 -8
- package/esm/components/Drawer/DrawerProgress.js +3 -4
- package/esm/components/Dropdown/Dropdown.js +11 -9
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessage.js +1 -0
- package/esm/components/Form/Form.js +18 -18
- package/esm/components/FormField/FormField.js +77 -51
- package/esm/components/FormFieldCheckbox/FormFieldCheckbox.js +6 -2
- package/esm/components/FormFieldPassword/FormFieldPassword.js +18 -21
- package/esm/components/FormFieldPassword/PasswordMeter.js +8 -13
- package/esm/components/FormFieldPassword/estimatePassword.js +21 -32
- package/esm/components/FormFieldRadioButtons/FormFieldRadioButtons.js +49 -42
- package/esm/components/FormFieldSelect/FormFieldSelect.js +1 -1
- package/esm/components/FormFieldText/FormFieldText.js +7 -1
- package/esm/components/Hint/Hint.js +2 -1
- package/esm/components/Icon/Icon.js +6 -0
- package/esm/components/Icon/utils.js +16 -6
- package/esm/components/InPlaceEdit/Editor.js +5 -8
- package/esm/components/InPlaceEdit/InPlaceEdit.js +3 -5
- package/esm/components/InputFile/InputFile.js +7 -9
- package/esm/components/Layout/Layout.js +2 -2
- package/esm/components/Link/Link.js +2 -0
- package/esm/components/List/List.js +37 -43
- package/esm/components/List/ListAction.js +1 -0
- package/esm/components/List/ListActions.js +1 -0
- package/esm/components/List/ListEmptyView.js +7 -10
- package/esm/components/List/ListOperation.js +3 -12
- package/esm/components/LocaleProvider/LocaleProvider.js +18 -11
- package/esm/components/Menu/Menu.js +10 -8
- package/esm/components/Menu/MenuItem.js +2 -1
- package/esm/components/Overlay/Overlay.js +2 -0
- package/esm/components/Pagination/Pagination.js +6 -10
- package/esm/components/Popover/Popover.js +1 -1
- package/esm/components/ProgressDialog/ProgressDialog.js +5 -7
- package/esm/components/Section/Section.js +88 -224
- package/esm/components/Section/SectionContext.js +5 -0
- package/esm/components/Section/useCollapsed.js +12 -0
- package/esm/components/Section/useVertical.js +30 -0
- package/esm/components/SegmentedControl/SegmentedControl.js +1 -0
- package/esm/components/Select/Select.js +10 -6
- package/esm/components/Select/SelectControl.js +14 -4
- package/esm/components/Spot/SpotPopup.js +3 -4
- package/esm/components/Status/Status.js +1 -0
- package/esm/components/Tabs/TabList.js +29 -12
- package/esm/components/Tabs/TabListItem.js +5 -1
- package/esm/components/Tabs/Tabs.js +17 -13
- package/esm/components/Tabs/useWidths.js +5 -5
- package/esm/components/Toast/Toast.js +1 -0
- package/esm/components/Toaster/GroupLabel.js +5 -3
- package/esm/components/Tooltip/Tooltip.js +11 -4
- package/esm/components/Translate/Translate.js +11 -2
- package/esm/components/Translate/index.js +3 -2
- package/esm/components/Translate/locale.js +15 -0
- package/esm/components/index.js +1 -1
- package/esm/hooks/useResizeObserver.js +8 -2
- package/esm/index.js +1 -1
- package/esm/locales/ar.js +119 -0
- package/esm/locales/ca-ES.js +119 -0
- package/esm/locales/cs-CZ.js +119 -0
- package/esm/locales/da-DK.js +119 -0
- package/esm/locales/de-DE.js +119 -0
- package/esm/locales/el-GR.js +119 -0
- package/esm/locales/en-US.js +119 -0
- package/esm/locales/es-ES.js +119 -0
- package/esm/locales/fi-FI.js +119 -0
- package/esm/locales/fr-FR.js +119 -0
- package/esm/locales/he-IL.js +119 -0
- package/esm/locales/hu-HU.js +119 -0
- package/esm/locales/id-ID.js +119 -0
- package/esm/locales/index.js +165 -0
- package/esm/locales/it-IT.js +119 -0
- package/esm/locales/ja-JP.js +119 -0
- package/esm/locales/ko-KR.js +119 -0
- package/esm/locales/ms-MY.js +119 -0
- package/esm/locales/nb-NO.js +119 -0
- package/esm/locales/nl-NL.js +119 -0
- package/esm/locales/pl-PL.js +119 -0
- package/esm/locales/pt-BR.js +119 -0
- package/esm/locales/pt-PT.js +119 -0
- package/esm/locales/ro-RO.js +119 -0
- package/esm/locales/ru-RU.js +119 -0
- package/esm/locales/sv-SE.js +119 -0
- package/esm/locales/th-TH.js +119 -0
- package/esm/locales/tl-PH.js +119 -0
- package/esm/locales/tr-TR.js +119 -0
- package/esm/locales/uk-UA.js +119 -0
- package/esm/locales/vi-VN.js +119 -0
- package/esm/locales/zh-CN.js +119 -0
- package/esm/locales/zh-TW.js +119 -0
- package/esm/utils.js +14 -0
- package/package.json +4 -4
- package/styleguide/build/bundle.cf3363eb.js +2 -0
- package/styleguide/index.html +2 -2
- package/types/components/AutoClosable/AutoClosable.d.ts +5 -37
- package/types/components/Button/Button.d.ts +2 -2
- package/types/components/ComboBoxDropdown/ComboBoxDropdown.d.ts +2 -1
- package/types/components/Form/types.d.ts +2 -0
- package/types/components/FormField/FormField.d.ts +6 -0
- package/types/components/FormFieldSelect/FormFieldSelect.d.ts +1 -1
- package/types/components/Hint/Hint.d.ts +11 -8
- package/types/components/Icon/Icon.d.ts +5 -0
- package/types/components/Input/Input.d.ts +2 -2
- package/types/components/LocaleProvider/LocaleProvider.d.ts +3 -2
- package/types/components/Menu/Menu.d.ts +5 -0
- package/types/components/Menu/MenuItem.d.ts +6 -1
- package/types/components/Overlay/Overlay.d.ts +4 -0
- package/types/components/Popover/Popover.d.ts +1 -1
- package/types/components/Section/Section.d.ts +3 -46
- package/types/components/Section/SectionContext.d.ts +5 -0
- package/types/components/Section/useCollapsed.d.ts +1 -0
- package/types/components/Section/useVertical.d.ts +2 -0
- package/types/components/Select/SelectControl.d.ts +2 -0
- package/types/components/Tabs/TabList.d.ts +3 -1
- package/types/components/Tabs/TabListItem.d.ts +4 -1
- package/types/components/Tabs/useWidths.d.ts +2 -2
- package/types/components/Tooltip/Tooltip.d.ts +1 -0
- package/types/components/Translate/Translate.d.ts +7 -1
- package/types/components/Translate/index.d.ts +2 -1
- package/types/components/Translate/locale.d.ts +4 -0
- package/types/components/index.d.ts +1 -1
- package/types/hooks/useResizeObserver.d.ts +2 -1
- package/types/locales/index.d.ts +10 -0
- package/types/utils.d.ts +3 -0
- package/cjs/components/ClosingConfirmation/locale/en-US.js +0 -12
- package/cjs/components/FormFieldPassword/locale/en-US.js +0 -33
- package/cjs/components/InPlaceEdit/locale/en-US.js +0 -12
- package/cjs/components/InputFile/locale/en-US.js +0 -10
- package/esm/components/ClosingConfirmation/locale/en-US.js +0 -7
- package/esm/components/Dropdown/locale/en-US.js +0 -5
- package/esm/components/FormFieldPassword/locale/en-US.js +0 -28
- package/esm/components/InPlaceEdit/locale/en-US.js +0 -7
- package/esm/components/InputFile/locale/en-US.js +0 -5
- package/styleguide/build/bundle.2360aa9e.js +0 -2
- package/types/components/InPlaceEdit/locale/en-US.d.ts +0 -6
- /package/styleguide/build/{bundle.2360aa9e.js.LICENSE.txt → bundle.cf3363eb.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
Card: {
|
|
5
|
+
select: 'Chọn',
|
|
6
|
+
titleLinkTooltip: 'Đi tới trang',
|
|
7
|
+
collapseCardTooltip: 'Thu gọn thẻ',
|
|
8
|
+
expandCardTooltip: 'Mở rộng thẻ'
|
|
9
|
+
},
|
|
10
|
+
CardList: {
|
|
11
|
+
loadMore: 'Tải thêm',
|
|
12
|
+
notFound: 'Không tìm thấy mục nào.',
|
|
13
|
+
toolbarSelect: 'Chọn',
|
|
14
|
+
viewCards: 'Thẻ',
|
|
15
|
+
viewTiles: 'Ô',
|
|
16
|
+
viewList: 'Danh sách',
|
|
17
|
+
toolbarView: 'Chế độ xem'
|
|
18
|
+
},
|
|
19
|
+
ClosingConfirmation: {
|
|
20
|
+
confirm: 'Rời đi',
|
|
21
|
+
cancel: 'Quay lại',
|
|
22
|
+
content: 'Bạn có chắc muốn đóng và rời khỏi cửa sổ này không? Mọi thay đổi về dữ liệu bạn đã thực hiện sẽ không được lưu.'
|
|
23
|
+
},
|
|
24
|
+
Cuttable: {
|
|
25
|
+
showMore: 'Hiện thêm',
|
|
26
|
+
showLess: 'Ẩn bớt'
|
|
27
|
+
},
|
|
28
|
+
Dialog: {
|
|
29
|
+
cancelButton: 'Hủy'
|
|
30
|
+
},
|
|
31
|
+
DrawerProgress: {
|
|
32
|
+
cancelButton: 'Hủy'
|
|
33
|
+
},
|
|
34
|
+
Dropdown: {
|
|
35
|
+
close: 'Đóng'
|
|
36
|
+
},
|
|
37
|
+
Form: {
|
|
38
|
+
submitButton: 'Lưu',
|
|
39
|
+
applyButton: 'Áp dụng',
|
|
40
|
+
cancelButton: 'Hủy'
|
|
41
|
+
},
|
|
42
|
+
FormField: {
|
|
43
|
+
clear: 'Xóa',
|
|
44
|
+
remove: 'Gỡ bỏ',
|
|
45
|
+
addMore: 'Thêm một mục'
|
|
46
|
+
},
|
|
47
|
+
FormFieldPassword: {
|
|
48
|
+
improvePassword: 'Để tăng độ khó cho mật khẩu:',
|
|
49
|
+
passwordTooShort: 'Dùng mật khẩu dài hơn.',
|
|
50
|
+
lettersLowerCase: 'Sử dụng ít nhất một ký tự viết thường.',
|
|
51
|
+
lettersUpperCase: 'Sử dụng ít nhất một ký tự viết hoa.',
|
|
52
|
+
numbers1: 'Sử dụng ít nhất một số.',
|
|
53
|
+
numbers3: 'Sử dụng ít nhất ba số.',
|
|
54
|
+
specialChar1: 'Sử dụng ít nhất một ký tự đặc biệt (ví dụ: !, @, #, $, %, ^, &, *, ?, _, ~).',
|
|
55
|
+
specialChar2: 'Sử dụng ít nhất hai ký tự đặc biệt (ví dụ: !, @, #, $, %, ^, &, *, ?, _, ~).',
|
|
56
|
+
comboUpperAndLower: 'Sử dụng cả ký tự viết hoa và thường.',
|
|
57
|
+
comboLettersAndNumbers: 'Sử dụng cả số và ký tự.',
|
|
58
|
+
comboLettersNumbersSpecial: 'Sử dụng số, ký tự và ký tự đặc biệt.',
|
|
59
|
+
yourPasswordIsStrong: 'Bạn có thể tăng độ khó bằng cách đặt mật khẩu dài.',
|
|
60
|
+
passwordStrength: 'Độ mạnh của mật khẩu là %%strength%%.',
|
|
61
|
+
strengthVeryStrong: 'RẤT MẠNH',
|
|
62
|
+
strengthStrong: 'MẠNH',
|
|
63
|
+
strengthVeryWeak: 'RẤT YẾU',
|
|
64
|
+
strengthWeak: 'YẾU',
|
|
65
|
+
strengthMedium: 'TRUNG BÌNH',
|
|
66
|
+
hidePassword: 'Ẩn mật khẩu',
|
|
67
|
+
showPassword: 'Hiện mật khẩu',
|
|
68
|
+
generateButton: 'Khởi tạo',
|
|
69
|
+
copyButtonHint: 'Sao chép mật khẩu',
|
|
70
|
+
copySuccessToast: 'Mật khẩu đã được sao chép',
|
|
71
|
+
generateButtonHint: 'Khởi tạo một mật khẩu mạnh'
|
|
72
|
+
},
|
|
73
|
+
InPlaceEdit: {
|
|
74
|
+
editButtonHint: 'Chỉnh sửa giá trị',
|
|
75
|
+
okButtonHint: 'Lưu thay đổi',
|
|
76
|
+
cancelButtonHint: 'Hủy bỏ thay đổi'
|
|
77
|
+
},
|
|
78
|
+
InputFile: {
|
|
79
|
+
browseButton: 'Chọn tập tin...'
|
|
80
|
+
},
|
|
81
|
+
List: {
|
|
82
|
+
totalRows: 'Tổng cộng %%totalRows%% mục',
|
|
83
|
+
selectedRows: 'Đã chọn %%selectedRows%% trong số %%totalRows%% mục',
|
|
84
|
+
all: 'Tất cả',
|
|
85
|
+
allItemsOnPageSelected: 'Đã chọn tất cả mục trên trang',
|
|
86
|
+
allItemsSelected: 'Đã chọn tất cả mục',
|
|
87
|
+
selectAllItems: 'Chọn tất cả mục',
|
|
88
|
+
selectAllItemsOnPage: 'Chọn tất cả mục trên trang',
|
|
89
|
+
deselectAll: 'Bỏ chọn'
|
|
90
|
+
},
|
|
91
|
+
ListEmptyView: {
|
|
92
|
+
filteredTitle: 'Không tìm thấy mục nào phù hợp với bộ lọc',
|
|
93
|
+
emptyTitle: 'Dường như không có gì ở đây',
|
|
94
|
+
filteredDescription: 'Tinh chỉnh truy vấn của bạn hoặc xóa một số tiêu chí khỏi bộ lọc và thử lại.'
|
|
95
|
+
},
|
|
96
|
+
ListOperation: {
|
|
97
|
+
cancelButton: 'Hủy'
|
|
98
|
+
},
|
|
99
|
+
Pagination: {
|
|
100
|
+
totalShort: 'trên %%total%%',
|
|
101
|
+
itemsPerPage: 'Mục mỗi trang',
|
|
102
|
+
all: 'Tất cả',
|
|
103
|
+
total: 'Trang %%current%% trên %%total%%'
|
|
104
|
+
},
|
|
105
|
+
ProgressDialog: {
|
|
106
|
+
closeButton: 'Đóng',
|
|
107
|
+
cancelButton: 'Hủy'
|
|
108
|
+
},
|
|
109
|
+
Select: {
|
|
110
|
+
noOptions: 'Không có tùy chọn',
|
|
111
|
+
placeholder: 'Chọn...'
|
|
112
|
+
},
|
|
113
|
+
SpotPopup: {
|
|
114
|
+
total: '%%current%% trên %%total%%'
|
|
115
|
+
},
|
|
116
|
+
Toaster: {
|
|
117
|
+
closeGroup: 'Đóng nhóm'
|
|
118
|
+
}
|
|
119
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
Card: {
|
|
5
|
+
select: '选择',
|
|
6
|
+
titleLinkTooltip: '转到页面',
|
|
7
|
+
collapseCardTooltip: '折叠卡片',
|
|
8
|
+
expandCardTooltip: '展开卡片'
|
|
9
|
+
},
|
|
10
|
+
CardList: {
|
|
11
|
+
loadMore: '加载更多',
|
|
12
|
+
notFound: '未找到项目。',
|
|
13
|
+
toolbarSelect: '选择',
|
|
14
|
+
viewCards: '卡片',
|
|
15
|
+
viewTiles: '磁贴',
|
|
16
|
+
viewList: '列表',
|
|
17
|
+
toolbarView: '视图'
|
|
18
|
+
},
|
|
19
|
+
ClosingConfirmation: {
|
|
20
|
+
confirm: '离开',
|
|
21
|
+
cancel: '返回',
|
|
22
|
+
content: '您确定要关闭并离开此窗口吗?您所做的任何数据更改都不会被保存。'
|
|
23
|
+
},
|
|
24
|
+
Cuttable: {
|
|
25
|
+
showMore: '显示更多',
|
|
26
|
+
showLess: '显示更少'
|
|
27
|
+
},
|
|
28
|
+
Dialog: {
|
|
29
|
+
cancelButton: '取消'
|
|
30
|
+
},
|
|
31
|
+
DrawerProgress: {
|
|
32
|
+
cancelButton: '取消'
|
|
33
|
+
},
|
|
34
|
+
Dropdown: {
|
|
35
|
+
close: '关闭'
|
|
36
|
+
},
|
|
37
|
+
Form: {
|
|
38
|
+
submitButton: '保存',
|
|
39
|
+
applyButton: '应用',
|
|
40
|
+
cancelButton: '取消'
|
|
41
|
+
},
|
|
42
|
+
FormField: {
|
|
43
|
+
clear: '清除',
|
|
44
|
+
remove: '移除',
|
|
45
|
+
addMore: '再添加一个'
|
|
46
|
+
},
|
|
47
|
+
FormFieldPassword: {
|
|
48
|
+
improvePassword: '若要提升密码强度:',
|
|
49
|
+
passwordTooShort: '请加长密码。',
|
|
50
|
+
lettersLowerCase: '至少使用一个小写字母。',
|
|
51
|
+
lettersUpperCase: '至少使用一个大写字母。',
|
|
52
|
+
numbers1: '至少使用一个数字。',
|
|
53
|
+
numbers3: '至少使用三个数字。',
|
|
54
|
+
specialChar1: '至少使用一个特殊字符(如:!,@,#,$,%,^,&,*,?,_,~)。',
|
|
55
|
+
specialChar2: '至少使用两个特殊字符(如:!,@,#,$,%,^,&,*,?,_,~)。',
|
|
56
|
+
comboUpperAndLower: '使用大写和小写字符。',
|
|
57
|
+
comboLettersAndNumbers: '使用数字与字符。',
|
|
58
|
+
comboLettersNumbersSpecial: '使用数字、字符与特殊字符。',
|
|
59
|
+
yourPasswordIsStrong: '您可以通过增加长度来提升密码强度。',
|
|
60
|
+
passwordStrength: '密码强度为 %%strength%%。',
|
|
61
|
+
strengthVeryStrong: '非常强',
|
|
62
|
+
strengthStrong: '强',
|
|
63
|
+
strengthVeryWeak: '非常弱',
|
|
64
|
+
strengthWeak: '弱',
|
|
65
|
+
strengthMedium: '中等',
|
|
66
|
+
hidePassword: '隐藏密码',
|
|
67
|
+
showPassword: '显示密码',
|
|
68
|
+
generateButton: '生成',
|
|
69
|
+
copyButtonHint: '复制密码',
|
|
70
|
+
copySuccessToast: '密码已复制',
|
|
71
|
+
generateButtonHint: '生成一个高强度密码'
|
|
72
|
+
},
|
|
73
|
+
InPlaceEdit: {
|
|
74
|
+
editButtonHint: '编辑数值',
|
|
75
|
+
okButtonHint: '保存更改',
|
|
76
|
+
cancelButtonHint: '取消修改'
|
|
77
|
+
},
|
|
78
|
+
InputFile: {
|
|
79
|
+
browseButton: '选择文件...'
|
|
80
|
+
},
|
|
81
|
+
List: {
|
|
82
|
+
totalRows: '共计 %%totalRows%% 个项目',
|
|
83
|
+
selectedRows: '已选定 %%selectedRows%%(共计: %%totalRows%%)个项目',
|
|
84
|
+
all: '所有',
|
|
85
|
+
allItemsOnPageSelected: '已选定页面上的所有项目',
|
|
86
|
+
allItemsSelected: '已选定所有项目',
|
|
87
|
+
selectAllItems: '所选所有项目',
|
|
88
|
+
selectAllItemsOnPage: '选择页面上的所有项目',
|
|
89
|
+
deselectAll: '取消选定'
|
|
90
|
+
},
|
|
91
|
+
ListEmptyView: {
|
|
92
|
+
filteredTitle: '找不到匹配该过滤器的任何项目',
|
|
93
|
+
emptyTitle: '看来这里什么都没有',
|
|
94
|
+
filteredDescription: '优化查询或从过滤器中移除一些标准,然后重试。'
|
|
95
|
+
},
|
|
96
|
+
ListOperation: {
|
|
97
|
+
cancelButton: '取消'
|
|
98
|
+
},
|
|
99
|
+
Pagination: {
|
|
100
|
+
totalShort: '%%total%%',
|
|
101
|
+
itemsPerPage: '每页的项目',
|
|
102
|
+
all: '所有',
|
|
103
|
+
total: '第 %%current%% 页(共计 %%total%% 页)'
|
|
104
|
+
},
|
|
105
|
+
ProgressDialog: {
|
|
106
|
+
closeButton: '关闭',
|
|
107
|
+
cancelButton: '取消'
|
|
108
|
+
},
|
|
109
|
+
Select: {
|
|
110
|
+
noOptions: '无选项',
|
|
111
|
+
placeholder: '选择...'
|
|
112
|
+
},
|
|
113
|
+
SpotPopup: {
|
|
114
|
+
total: '%%current%%(共计 %%total%%)'
|
|
115
|
+
},
|
|
116
|
+
Toaster: {
|
|
117
|
+
closeGroup: '关闭群组'
|
|
118
|
+
}
|
|
119
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
Card: {
|
|
5
|
+
select: '選擇',
|
|
6
|
+
titleLinkTooltip: '前往頁面',
|
|
7
|
+
collapseCardTooltip: '摺疊卡片',
|
|
8
|
+
expandCardTooltip: '展開卡片'
|
|
9
|
+
},
|
|
10
|
+
CardList: {
|
|
11
|
+
loadMore: '載入更多',
|
|
12
|
+
notFound: '找不到物件。',
|
|
13
|
+
toolbarSelect: '選擇',
|
|
14
|
+
viewCards: '卡片',
|
|
15
|
+
viewTiles: '方塊',
|
|
16
|
+
viewList: '清單',
|
|
17
|
+
toolbarView: '查看'
|
|
18
|
+
},
|
|
19
|
+
ClosingConfirmation: {
|
|
20
|
+
confirm: '離開',
|
|
21
|
+
cancel: '返回',
|
|
22
|
+
content: '確定想要關閉及離開此視窗嗎?將不會儲存任何資料變更。'
|
|
23
|
+
},
|
|
24
|
+
Cuttable: {
|
|
25
|
+
showMore: '顯示更多',
|
|
26
|
+
showLess: '顯示更少'
|
|
27
|
+
},
|
|
28
|
+
Dialog: {
|
|
29
|
+
cancelButton: '取消'
|
|
30
|
+
},
|
|
31
|
+
DrawerProgress: {
|
|
32
|
+
cancelButton: '取消'
|
|
33
|
+
},
|
|
34
|
+
Dropdown: {
|
|
35
|
+
close: '關閉'
|
|
36
|
+
},
|
|
37
|
+
Form: {
|
|
38
|
+
submitButton: '儲存',
|
|
39
|
+
applyButton: '套用',
|
|
40
|
+
cancelButton: '取消'
|
|
41
|
+
},
|
|
42
|
+
FormField: {
|
|
43
|
+
clear: '清除',
|
|
44
|
+
remove: '移除',
|
|
45
|
+
addMore: '再新增一個'
|
|
46
|
+
},
|
|
47
|
+
FormFieldPassword: {
|
|
48
|
+
improvePassword: '若要提升密碼強度:',
|
|
49
|
+
passwordTooShort: '加長密碼。',
|
|
50
|
+
lettersLowerCase: '至少使用一個小寫字母。',
|
|
51
|
+
lettersUpperCase: '至少使用一個大寫字母。',
|
|
52
|
+
numbers1: '至少使用一個數字。',
|
|
53
|
+
numbers3: '至少使用三個數字。',
|
|
54
|
+
specialChar1: '至少使用一個特殊字元(如:!,@,#,$,%,^,&,*,?,_,~)。',
|
|
55
|
+
specialChar2: '至少使用兩個特殊字元(如:!,@,#,$,%,^,&,*,?,_,~)。',
|
|
56
|
+
comboUpperAndLower: '使用大寫和小寫字元。',
|
|
57
|
+
comboLettersAndNumbers: '使用數字與字元。',
|
|
58
|
+
comboLettersNumbersSpecial: '使用數字、字元與特殊字元。',
|
|
59
|
+
yourPasswordIsStrong: '增加長度,使其變得更強。',
|
|
60
|
+
passwordStrength: '密碼強度為%%strength%%。',
|
|
61
|
+
strengthVeryStrong: '非常強',
|
|
62
|
+
strengthStrong: '強',
|
|
63
|
+
strengthVeryWeak: '非常弱',
|
|
64
|
+
strengthWeak: '弱',
|
|
65
|
+
strengthMedium: '中等',
|
|
66
|
+
hidePassword: '隱藏密碼',
|
|
67
|
+
showPassword: '顯示密碼',
|
|
68
|
+
generateButton: '生成',
|
|
69
|
+
copyButtonHint: '複製密碼',
|
|
70
|
+
copySuccessToast: '密碼已複製',
|
|
71
|
+
generateButtonHint: '生成強的密碼'
|
|
72
|
+
},
|
|
73
|
+
InPlaceEdit: {
|
|
74
|
+
editButtonHint: '編輯數值',
|
|
75
|
+
okButtonHint: '儲存變更',
|
|
76
|
+
cancelButtonHint: '放棄變更'
|
|
77
|
+
},
|
|
78
|
+
InputFile: {
|
|
79
|
+
browseButton: '選擇檔案……'
|
|
80
|
+
},
|
|
81
|
+
List: {
|
|
82
|
+
totalRows: '共計 %%totalRows%% 個項目',
|
|
83
|
+
selectedRows: '已選定 %%selectedRows%%(共計: %%totalRows%%)個項目',
|
|
84
|
+
all: '全部',
|
|
85
|
+
allItemsOnPageSelected: '已選擇頁面上所有的項目',
|
|
86
|
+
allItemsSelected: '已選擇所有項目',
|
|
87
|
+
selectAllItems: '選擇所有項目',
|
|
88
|
+
selectAllItemsOnPage: '選擇頁面上所有的項目',
|
|
89
|
+
deselectAll: '取消選擇'
|
|
90
|
+
},
|
|
91
|
+
ListEmptyView: {
|
|
92
|
+
filteredTitle: '找不到符合篩檢程式的任何項目',
|
|
93
|
+
emptyTitle: '看來這裡什麼都沒有',
|
|
94
|
+
filteredDescription: '最佳化查詢或從篩檢程式中移除一些標準,然後重試。'
|
|
95
|
+
},
|
|
96
|
+
ListOperation: {
|
|
97
|
+
cancelButton: '取消'
|
|
98
|
+
},
|
|
99
|
+
Pagination: {
|
|
100
|
+
totalShort: '共 %%total%% 項',
|
|
101
|
+
itemsPerPage: '每頁的項目',
|
|
102
|
+
all: '全部',
|
|
103
|
+
total: '第 %%current%% 頁,共 %%total%% 頁'
|
|
104
|
+
},
|
|
105
|
+
ProgressDialog: {
|
|
106
|
+
closeButton: '關閉',
|
|
107
|
+
cancelButton: '取消'
|
|
108
|
+
},
|
|
109
|
+
Select: {
|
|
110
|
+
noOptions: '無選項',
|
|
111
|
+
placeholder: '選擇……'
|
|
112
|
+
},
|
|
113
|
+
SpotPopup: {
|
|
114
|
+
total: '%%current%%(共計 %%total%%)'
|
|
115
|
+
},
|
|
116
|
+
Toaster: {
|
|
117
|
+
closeGroup: '關閉群組'
|
|
118
|
+
}
|
|
119
|
+
};
|
package/esm/utils.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Copyright 1999-2025. WebPros International GmbH. All rights reserved.
|
|
2
2
|
|
|
3
|
+
import { isValidElement } from 'react';
|
|
3
4
|
export const isRtl = () => getComputedStyle(document.documentElement).direction === 'rtl';
|
|
4
5
|
let hasDocumentScroll = true;
|
|
5
6
|
export const disableDocumentScroll = () => {
|
|
@@ -29,4 +30,17 @@ export const copyToClipboard = value => {
|
|
|
29
30
|
el.select();
|
|
30
31
|
document.execCommand('copy');
|
|
31
32
|
document.body.removeChild(el);
|
|
33
|
+
};
|
|
34
|
+
export const prepareIconName = (icon, empty) => {
|
|
35
|
+
if (!empty || !icon) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
const formatName = name => `${name.replace(/-/g, ' ')} icon`;
|
|
39
|
+
if (typeof icon === 'string') {
|
|
40
|
+
return formatName(icon);
|
|
41
|
+
}
|
|
42
|
+
if (/*#__PURE__*/isValidElement(icon) && typeof icon.props.name === 'string') {
|
|
43
|
+
return formatName(icon.props.name);
|
|
44
|
+
}
|
|
45
|
+
return undefined;
|
|
32
46
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plesk/ui-library",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.44.0",
|
|
4
4
|
"description": "Plesk UI Library",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@babel/runtime": "^7.25.6",
|
|
47
47
|
"@plesk/react-movable": "^2.7.1",
|
|
48
48
|
"classnames": "^2.5.1",
|
|
49
|
-
"codemirror": "5.65.
|
|
50
|
-
"marked": "15.0.
|
|
49
|
+
"codemirror": "5.65.19",
|
|
50
|
+
"marked": "15.0.11",
|
|
51
51
|
"memoize-one": "^6.0.0",
|
|
52
52
|
"popper.js": "1.16.1",
|
|
53
53
|
"prop-types": "^15.8.1",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"stylelint-use-logical-spec": "^5.0.1",
|
|
126
126
|
"svg-mixer": "^2.3.14",
|
|
127
127
|
"terser-webpack-plugin": "^5.3.10",
|
|
128
|
-
"typescript": "5.8.
|
|
128
|
+
"typescript": "5.8.3",
|
|
129
129
|
"typescript-eslint": "^8.26.0",
|
|
130
130
|
"webpack": "^5.94.0",
|
|
131
131
|
"webpack-cli": "^6.0.1"
|