ckbox 1.1.1 → 1.2.0-dev.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/README.md +3 -3
- package/dist/ckbox.d.ts +16 -0
- package/dist/ckbox.js +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/ckbox.css +3 -3
- package/dist/styles/themes/aqua.css +1 -1
- package/dist/styles/themes/dark.css +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/es-la.js +1 -1
- package/dist/translations/es-mx.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fr-ca.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/mr.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/zh-tw.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/types.d.ts +8 -0
- package/dist/utils.d.ts +22 -0
- package/package.json +5 -5
- package/dist/translations/lv.js +0 -1
package/dist/translations/zh.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){const e="undefined"!=typeof globalThis?globalThis:global||self;e.CKBOX_TRANSLATIONS||(e.CKBOX_TRANSLATIONS={}),e.CKBOX_TRANSLATIONS.zh={Settings:"设置","Asset categories":"资产类别",Images:"图像","Category name":"类别名称","Add category":"添加类别","Category ID":"类别 ID","Allowed extensions":"允许的扩展名","Add an extension":"添加扩展名","This extension is in use":"正在使用此扩展名","Removing an extension in use will result in the permanent removal of files with this extension.":"删除正在使用的扩展名将导致永久删除带有该扩展名的文件。","Remove extensions in use":"删除正在使用的扩展名","This operation will permanently delete assets from the %s category. Are you sure you want to do that?":"此操作将永久删除 <strong>%s</strong> 类别中的资产。您确定要这样做吗?","Assets with the following extensions will be removed:":"带有以下扩展名的资产将被删除:","Remove %s extension":"删除 %s 扩展名","Use the slider to define the quality of responsive images":"使用滑块来定义响应式图像的质量","Responsive images quality":"响应式图像的质量","Image quality:":"图像质量:",Low:"低",Medium:"中",Good:"一般",High:"高",Best:"最高","Please type the category name to continue:":"请输入类别名称以继续:","This operation will permanently delete the %s category with all the assets in it. Are you sure you want to do that?":"此操作将永久删除 <strong>%s</strong> 类别及其中的所有资产。您确定要这样做吗?","Category name is required.":"必须填写类别名称。","Category name cannot exceed 256 characters.":"类别名称不能超过 256 个字符。","At least one extension must be specified.":"至少要指定一个扩展名。","Extension cannot contain a dot.":"扩展名不能包含点。","Number of extensions cannot exceed 100.":"扩展名不能超过 100 个。","Extension must not exceed 9 characters.":"扩展名不得超过 9 个字符。","Category name must be unique.":"该名称的类别已经存在。","Remove category":"删除类别","You are about to permanently delete your files!":"您即将永久删除您的文件!","Category created successfully.":"类别创建成功。","Category position updated.":"类别位置已更新。","Category updated successfully.":"类别已成功更新。","Category deleted successfully.":"类别已成功删除。","Images quality updated successfully.":"图像质量已成功更新。",Cancel:"取消",Save:"保存",Delete:"删除",Edit:"编辑",Copy:"复制",Close:"关闭","Copied!":"已复制!",Recent:"最近",Download:"下载",Rename:"重命名",Upload:"上传",Properties:"属性",Choose:"选择","%d file selected_other":"已选中 <strong> %d 文件 </strong>","%d file deleted successfully._other":"%d 文件删除成功。","File updated successfully.":"文件更新成功。","File name":"文件名称",Description:"描述","Upload date":"上传日期",
|
|
1
|
+
!function(){const e="undefined"!=typeof globalThis?globalThis:global||self;e.CKBOX_TRANSLATIONS||(e.CKBOX_TRANSLATIONS={}),e.CKBOX_TRANSLATIONS.zh={"File manager":"文件管理器",Settings:"设置","Asset categories":"资产类别",Images:"图像","Category name":"类别名称","Add category":"添加类别","Category ID":"类别 ID","Allowed extensions":"允许的扩展名","Add an extension":"添加扩展名","This extension is in use":"正在使用此扩展名","Removing an extension in use will result in the permanent removal of files with this extension.":"删除正在使用的扩展名将导致永久删除带有该扩展名的文件。","Remove extensions in use":"删除正在使用的扩展名","This operation will permanently delete assets from the %s category. Are you sure you want to do that?":"此操作将永久删除 <strong>%s</strong> 类别中的资产。您确定要这样做吗?","Assets with the following extensions will be removed:":"带有以下扩展名的资产将被删除:","Remove %s extension":"删除 %s 扩展名","Use the slider to define the quality of responsive images":"使用滑块来定义响应式图像的质量","Responsive images quality":"响应式图像的质量","Image quality:":"图像质量:",Low:"低",Medium:"中",Good:"一般",High:"高",Best:"最高","Please type the category name to continue:":"请输入类别名称以继续:","This operation will permanently delete the %s category with all the assets in it. Are you sure you want to do that?":"此操作将永久删除 <strong>%s</strong> 类别及其中的所有资产。您确定要这样做吗?","Category name is required.":"必须填写类别名称。","Category name cannot exceed 256 characters.":"类别名称不能超过 256 个字符。","At least one extension must be specified.":"至少要指定一个扩展名。","Extension cannot contain a dot.":"扩展名不能包含点。","Number of extensions cannot exceed 100.":"扩展名不能超过 100 个。","Extension must not exceed 9 characters.":"扩展名不得超过 9 个字符。","Category name must be unique.":"该名称的类别已经存在。","Remove category":"删除类别","You are about to permanently delete your files!":"您即将永久删除您的文件!","Category created successfully.":"类别创建成功。","Category position updated.":"类别位置已更新。","Category updated successfully.":"类别已成功更新。","Category deleted successfully.":"类别已成功删除。","Images quality updated successfully.":"图像质量已成功更新。",Cancel:"取消",Save:"保存",Delete:"删除",Edit:"编辑",Copy:"复制","Remove %s tag":"移除 %s 标签","Add a tag":"添加标签",Tags:"标签",Close:"关闭","Copied!":"已复制!",Recent:"最近",Download:"下载",Rename:"重命名",Upload:"上传",Properties:"属性",View:"查看","Assets preview":"资产预览",Choose:"选择","%d file selected_other":"已选中 <strong> %d 文件 </strong>","%d file deleted successfully._other":"%d 文件删除成功。","File updated successfully.":"文件更新成功。","File name":"文件名称",Description:"描述","Upload date":"上传日期","File size":"文件大小",Width:"宽",Height:"高",URL:"URL","of %d":"%d 的","Enter page number":"输入页码",Navigation:"导航","There are no assets in this category":"此类别中没有资产","Description cannot exceed 1024 characters.":"描述不能超过 1024 个字符。","File name is required.":"必须填写文件名。","File extension is required.":"必须填写文件扩展名。","File extension is not allowed.":"文件扩展名在当前类别中不受允许。","Remove assets":"删除资产","Are you sure you want to delete %s file?_other":"您确定要删除 <strong>%s</strong> 文件吗?","Resize window":"调整窗口大小","Display options":"显示选项",Assets:"资产",Thumbnails:"缩略图","Thumbnail size":"尺寸","Keep aspect ratio":"保持长宽比",Display:"显示","Sort by":"排序方式",Order:"顺序",Ascending:"升序",Descending:"降序",Name:"名称",Size:"大小","Modification date":"修改日期",Pending:"待定",Aborted:"已中止","%s left":"还剩 %s","More than 1 day left":"还剩 1 天多","%s of %s":"%s 中的 %s","File extension is not allowed in %s category":"文件扩展名在 <strong>%s</strong> 类别中不受允许","Maximum file size allowed is %s":"允许的最大文件尺寸是 %s","Maximum image resolution allowed is %s":"允许的最大图像分辨率是 %s","Storage quota exceeded":"已超过存储配额","An error has occurred":"出现了一个错误","%d error_other":"<strong>%d</strong> 错误","%d of %d file uploaded_other":"<strong>%d</strong> 个文件中的 <strong>%d</strong> 个已上传","Upload aborted":"上传已中止","Upload finished":"上传完毕","Abort upload":"中止上传","Close upload dialog":"关闭上传对话框","Open upload dialog":"打开上传对话框","Open details":"打开详情","Close details":"关闭详情","Internal server error.":"内部服务器错误。","Unauthorized operation.":"未经授权的操作。","Forbidden operation.":"禁止操作。","Category not found.":"找不到类别。","An unexpected application error has occurred.":"应用程序出现意外错误。","Unexpected error.":"意外错误。","Asset not found.":"找不到资产。","Unknown error.":"未知错误。","Validation failed.":"验证失败。","Resource not found.":"找不到资源。","%d h_other":"%d 小时","%d min_other":"%d 分钟","%d s_other":"%d 秒",Next:"下一个",Previous:"上一个"}}();
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as Core from '@ckbox/core';
|
|
2
|
+
export declare type Asset = Core.Asset;
|
|
3
|
+
export declare type CoreDialogProps = Required<Core.Props>['dialog'];
|
|
4
|
+
export declare type CoreAssetsProps = Core.Props['assets'];
|
|
5
|
+
export declare type DialogProps = Omit<Exclude<CoreDialogProps, boolean>, 'open'>;
|
|
6
|
+
export declare type Props = Omit<Core.Props, 'dialog'> & {
|
|
7
|
+
dialog?: boolean | DialogProps;
|
|
8
|
+
};
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CoreAssetsProps, CoreDialogProps, Props } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Enhances instance's dialog props with ability to close dialog.
|
|
4
|
+
*
|
|
5
|
+
* @param props instance's config options
|
|
6
|
+
* @param unmount function which unmounts component
|
|
7
|
+
* @returns enhanced dialog options
|
|
8
|
+
*/
|
|
9
|
+
export declare const getDialogProps: (props: Props, unmount: () => void) => false | {
|
|
10
|
+
open: boolean;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
height?: string | number | undefined;
|
|
13
|
+
width?: string | number | undefined;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Enhances instance's `assets.onChoose` option with ability to close dialog.
|
|
17
|
+
*
|
|
18
|
+
* @param props instance's config options
|
|
19
|
+
* @param dialogProps enhanced dialog props
|
|
20
|
+
* @returns enhanced assets props
|
|
21
|
+
*/
|
|
22
|
+
export declare const getAssetsProps: (props: Props, dialogProps: CoreDialogProps) => CoreAssetsProps;
|
package/package.json
CHANGED
|
@@ -20,16 +20,16 @@
|
|
|
20
20
|
],
|
|
21
21
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
22
22
|
"name": "ckbox",
|
|
23
|
-
"version": "1.
|
|
23
|
+
"version": "1.2.0-dev.0",
|
|
24
24
|
"description": "Main CKBox package",
|
|
25
25
|
"main": "dist/index.js",
|
|
26
26
|
"types": "dist/index.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@ckbox/core": "1.
|
|
29
|
-
"@types/react": "^18.0.
|
|
30
|
-
"@types/react-dom": "^18.0.
|
|
28
|
+
"@ckbox/core": "1.2.0-dev.0",
|
|
29
|
+
"@types/react": "^18.0.24",
|
|
30
|
+
"@types/react-dom": "^18.0.8",
|
|
31
31
|
"react": "^18.2.0",
|
|
32
32
|
"react-dom": "^18.2.0",
|
|
33
|
-
"tslib": "^2.4.
|
|
33
|
+
"tslib": "^2.4.1"
|
|
34
34
|
}
|
|
35
35
|
}
|
package/dist/translations/lv.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(){const e="undefined"!=typeof globalThis?globalThis:global||self;e.CKBOX_TRANSLATIONS||(e.CKBOX_TRANSLATIONS={}),e.CKBOX_TRANSLATIONS.lv={Settings:"","Asset categories":"",Images:"","Category name":"","Add category":"","Category ID":"","Allowed extensions":"","Add an extension":"","This extension is in use":"","Removing an extension in use will result in the permanent removal of files with this extension.":"","Remove extensions in use":"","This operation will permanently delete assets from the %s category. Are you sure you want to do that?":"","Assets with the following extensions will be removed:":"","Remove %s extension":"","Use the slider to define the quality of responsive images":"","Responsive images quality":"","Image quality:":"",Low:"",Medium:"",Good:"",High:"",Best:"","Please type the category name to continue:":"","This operation will permanently delete the %s category with all the assets in it. Are you sure you want to do that?":"","Category name is required.":"","Category name cannot exceed 256 characters.":"","At least one extension must be specified.":"","Extension cannot contain a dot.":"","Number of extensions cannot exceed 100.":"","Extension must not exceed 9 characters.":"","Category name must be unique.":"","Remove category":"","You are about to permanently delete your files!":"","Category created successfully.":"","Category position updated.":"","Category updated successfully.":"","Category deleted successfully.":"","Images quality updated successfully.":"",Cancel:"",Save:"",Delete:"",Edit:"",Copy:"",Close:"","Copied!":"",Recent:"",Download:"",Rename:"",Upload:"",Properties:"",Choose:"","%d file selected_one":"","%d file selected_zero":"","%d file deleted successfully._one":"","%d file deleted successfully._zero":"","File updated successfully.":"","File name":"",Description:"","Upload date":"",uploadedAt:"","File size":"",size:"",Width:"",Height:"",URL:"","of %d":"","Enter page number":"",Navigation:"","There are no assets in this category":"","Description cannot exceed 1024 characters.":"","File name is required.":"","File extension is required.":"","File extension is not allowed.":"","Remove assets":"","Are you sure you want to delete %s file?_one":"","Are you sure you want to delete %s file?_zero":"","Resize window":"","Display options":"",Assets:"",Thumbnails:"",Size:"","Keep aspect ratio":"",Display:"","Sort by":"",Order:"",Ascending:"",Descending:"",name:"",lastModifiedAt:"",Pending:"",Aborted:"","%s left":"","More than 1 day left":"","%s of %s":"","File extension is not allowed in %s category":"","Maximum file size allowed is %s":"","Maximum image resolution allowed is %s":"","Storage quota exceeded":"","An error has occurred":"","%d error_one":"","%d error_zero":"","%d of %d file uploaded_one":"","%d of %d file uploaded_zero":"","Upload aborted":"","Upload finished":"","Abort upload":"","Close upload dialog":"","Open upload dialog":"","Open details":"","Close details":"","Internal server error.":"","Unauthorized operation.":"","Forbidden operation.":"","Category not found.":"","An unexpected application error has occurred.":"","Unexpected error.":"","Asset not found.":"","Unknown error.":"","Validation failed.":"","Resource not found.":"","%d h_one":"","%d h_zero":"","%d min_one":"","%d min_zero":"","%d s_one":"","%d s_zero":""}}();
|