rtcpts 0.0.50 → 0.0.52
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/components/j-c-list-editor/index.d.ts +9 -0
- package/dist/components/j-c-platform/index.d.ts +31 -0
- package/dist/components/j-c-platform/types.d.ts +40 -0
- package/dist/components/j-c-tree-select/index.d.ts +9 -0
- package/dist/components/j-q-dialog/prompt-content.d.ts +29 -0
- package/dist/components/j-q-input/index.d.ts +9 -0
- package/dist/components/j-q-input/types.d.ts +5 -0
- package/dist/components/j-q-input-recognize/index.d.ts +29 -0
- package/dist/global.d.ts +10 -0
- package/dist/i18n/en-US/index.d.ts +7 -0
- package/dist/i18n/zh-CN/index.d.ts +7 -0
- package/dist/index-BdgL-FNP.cjs +1 -0
- package/dist/{index-s5XCGtM9.js → index-BkcwDai9.js} +7 -0
- package/dist/{index-DsQ7r9Ci.js → index-DNfJEwOZ.js} +7 -0
- package/dist/index-DpC6wpPC.cjs +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/rtcpt.cjs.js +1 -1
- package/dist/rtcpt.es.js +3080 -2941
- package/dist/svg-raw.d.ts +4 -0
- package/dist/types.d.ts +62 -0
- package/dist/utils/reset-variable.d.ts +1 -0
- package/dist/utils/tool.d.ts +2 -1
- package/dist/utils/website-config.d.ts +6 -0
- package/package.json +1 -1
- package/dist/index-BrYPwI7i.cjs +0 -1
- package/dist/index-C5mRo5Yi.cjs +0 -1
package/dist/types.d.ts
CHANGED
|
@@ -31,12 +31,74 @@ export interface JQToolType extends Record<string, any> {
|
|
|
31
31
|
string: typeof stringUtils;
|
|
32
32
|
treeUtils: typeof treeUtils;
|
|
33
33
|
url: typeof urlUtils;
|
|
34
|
+
/**
|
|
35
|
+
* 作用:获取当前站点配置下的平台列表。
|
|
36
|
+
* 使用:`jqTool.platformList`,可用于页面头部平台切换。
|
|
37
|
+
*/
|
|
38
|
+
platformList: typeof toolUtils.platformList;
|
|
39
|
+
/**
|
|
40
|
+
* 作用:为 null、undefined、空字符串等空值提供默认占位,同时保留 0 和 false。
|
|
41
|
+
* 使用:`jqTool.defaultFill(value)`,适合表格单元格或详情字段兜底显示。
|
|
42
|
+
*/
|
|
34
43
|
defaultFill: typeof toolUtils.defaultFill;
|
|
44
|
+
/**
|
|
45
|
+
* 作用:将字节数按单位格式化为可读文本,例如 KB、MB、GB。
|
|
46
|
+
* 使用:`jqTool.formatSize({ size: 2048, unit: 'B' })`。
|
|
47
|
+
*/
|
|
35
48
|
formatSize: typeof toolUtils.formatSize;
|
|
49
|
+
/**
|
|
50
|
+
* 作用:将数值递归提升到更高的数据单位,并返回最终数值与单位。
|
|
51
|
+
* 使用:`jqTool.getUpperSize({ size: 2048, unit: 'B' })`。
|
|
52
|
+
*/
|
|
36
53
|
getUpperSize: typeof toolUtils.getUpperSize;
|
|
54
|
+
/**
|
|
55
|
+
* 作用:生成一个带空值兜底逻辑的格式化函数,常用于表格列 formatter。
|
|
56
|
+
* 使用:`jqTool.defaultFormat((val) => String(val))`。
|
|
57
|
+
*/
|
|
37
58
|
defaultFormat: typeof toolUtils.defaultFormat;
|
|
59
|
+
/**
|
|
60
|
+
* 作用:将日期、时间戳或日期字符串格式化为指定文本。
|
|
61
|
+
* 使用:`jqTool.formatDate(Date.now(), 'YYYY-MM-DD HH:mm:ss')`。
|
|
62
|
+
*/
|
|
38
63
|
formatDate: typeof toolUtils.formatDate;
|
|
64
|
+
/**
|
|
65
|
+
* 作用:生成日期专用 formatter,内置空值与非法日期兜底处理。
|
|
66
|
+
* 使用:`jqTool.defaultDateFormat('YYYY-MM-DD')`,可直接传给表格列配置。
|
|
67
|
+
*/
|
|
39
68
|
defaultDateFormat: typeof toolUtils.defaultDateFormat;
|
|
69
|
+
/**
|
|
70
|
+
* 作用:生成流量数据 formatter,把数值按单位格式化为展示文本。
|
|
71
|
+
* 使用:`jqTool.defaultDataFormat('-', { unit: 'B', digits: 2 })`。
|
|
72
|
+
*/
|
|
40
73
|
defaultDataFormat: typeof toolUtils.defaultDataFormat;
|
|
74
|
+
/**
|
|
75
|
+
* 作用:生成自动升单位的流量 formatter,只有能被 1024 整除时才继续换算。
|
|
76
|
+
* 使用:`jqTool.defaultAutoDataFormat('-', { unit: 'MB', digits: 2 })`。
|
|
77
|
+
*/
|
|
41
78
|
defaultAutoDataFormat: typeof toolUtils.defaultAutoDataFormat;
|
|
79
|
+
/**
|
|
80
|
+
* 作用:在 B、KB、MB、GB、TB 之间执行指定单位换算。
|
|
81
|
+
* 使用:`jqTool.convertDataUnit(1024, 'MB', 'GB', { digits: 2 })`。
|
|
82
|
+
*/
|
|
83
|
+
convertDataUnit: typeof toolUtils.convertDataUnit;
|
|
84
|
+
/**
|
|
85
|
+
* 作用:根据当前站点配置设置浏览器标题和 favicon。
|
|
86
|
+
* 使用:通常在应用初始化阶段调用 `jqTool.setTitleAndLogo()`。
|
|
87
|
+
*/
|
|
88
|
+
setTitleAndLogo: typeof toolUtils.setTitleAndLogo;
|
|
89
|
+
/**
|
|
90
|
+
* 作用:根据当前域名返回中英文标题映射。
|
|
91
|
+
* 使用:`jqTool.getTitle('zh-CN')` 或 `jqTool.getTitle('en-US')`。
|
|
92
|
+
*/
|
|
93
|
+
getTitle: typeof toolUtils.getTitle;
|
|
94
|
+
/**
|
|
95
|
+
* 作用:获取当前站点配置下的导航栏 logo 地址。
|
|
96
|
+
* 使用:`jqTool.getNavLogo()`,可用于页面头部 logo 渲染。
|
|
97
|
+
*/
|
|
98
|
+
getNavLogo: typeof toolUtils.getNavLogo;
|
|
99
|
+
/**
|
|
100
|
+
* 作用:清理本地缓存中的侧边栏、标签页、用户信息和权限等变量。
|
|
101
|
+
* 使用:通常在退出登录或切换环境时调用 `jqTool.resetVariables()`。
|
|
102
|
+
*/
|
|
103
|
+
resetVariables: typeof toolUtils.resetVariables;
|
|
42
104
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const resetVariables: () => void;
|
package/dist/utils/tool.d.ts
CHANGED
|
@@ -112,4 +112,5 @@ export declare function convertDataUnit(value: number | string, fromUnit: TSizeU
|
|
|
112
112
|
digits?: number;
|
|
113
113
|
showUnit?: boolean;
|
|
114
114
|
}): string | number;
|
|
115
|
-
export { setTitleAndLogo, getTitle, getNavLogo } from './website-config';
|
|
115
|
+
export { setTitleAndLogo, getTitle, getNavLogo, platformList } from './website-config';
|
|
116
|
+
export { resetVariables } from './reset-variable';
|
package/package.json
CHANGED
package/dist/index-BrYPwI7i.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={action:{confirm:"Confirm",cancel:"Cancel",query:"Query",reset:"Reset",expandAll:"Expand",collapseAll:"Collapse",viewAll:"View All",loading:"Loading...",add:"Add",update:"Edit",delete:"Delete",detail:"Detail",addNewItem:"Add New Item"},table:{action:"Action"},messages:{success:"Operation successful",error:"Operation failed",pleaseEnter:"Please enter",pleasePressEnterEnter:"Please press Enter to enter",pleaseSelect:"Please select",noData:"No data",date:{start:"Start Date",end:"End Date",confirm:"Confirm",hour:"Hour",minute:"Minute",second:"Second",scrollTooltip:"You can scroll the mouse wheel to change the time value"},loading:"Loading...",formRules:{required:"Required",arrMaxLength:"Select up to {max} items",percentageInvalid:"Enter a valid percentage (0-100)",over0:"Value must be greater than 0%",less100:"Value must be less than 100%",addressInvalid:"Invalid format, e.g. {example}",emailInvalid:"Invalid email address",invalidPort:"Invalid port number",rangeInt:"Value must be an integer between {min} and {max}",rangeNumber:"Value must be between {min} and {max}",invalidInput:"Invalid input",alreadyExists:"Already exists",positiveInt:"Value must be a positive integer",nonNegativeInt:"Value must be a non-negative integer",duplicateItemNotAllowed:"Duplicate item not allowed, {value} already exists",maxLengthExceeded:"Maximum {max} items allowed",phoneInvalid:"Invalid phone number",idCardInvalid:"Invalid ID card number",bankCardInvalid:"Invalid bank card number",carNumberInvalid:"Invalid license plate number",urlInvalid:"Invalid URL address",ipInvalid:"Invalid IP address",ipv6Invalid:"Invalid IPv6 address",qqInvalid:"Invalid QQ number",wechatInvalid:"Invalid WeChat ID",postcodeInvalid:"Invalid postal code",chineseOnly:"Chinese characters only",mustContainChinese:"Must contain Chinese characters",numberOnly:"Numbers only",numericOnly:"Numeric values only (decimals allowed)",macInvalid:"Invalid MAC address",hexColorInvalid:"Invalid hex color format"},jQFile:{click_or_drag_file:"Click to upload",file_type_is:"Supported file types: {type}",max_file_size:"Maximum file size: {size}",unsupportFileFormat:"Unsupported file format",maxFileSizeIs:"Maximum file size: {max} MB"},pagination:{pieces_page:"Pieces/page",goto:"Goto",total:"Total {total} items"},inputRecognize:{maxItems:"Maximum {max} items",noValidItems:"No valid items recognized",recognized:"Recognized"}}};exports.default=e;
|
package/dist/index-C5mRo5Yi.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={action:{confirm:"确认",cancel:"取消",query:"搜索",reset:"重置",expandAll:"展开",collapseAll:"收起",viewAll:"查看全部",loading:"加载中...",add:"新增",update:"编辑",delete:"删除",detail:"详情",addNewItem:"添加新项"},table:{action:"操作"},messages:{success:"操作成功",error:"操作失败",pleaseEnter:"请输入",pleasePressEnterEnter:"请按回车键确认",pleaseSelect:"请选择",noData:"无数据",date:{start:"起始时间",end:"结束时间",confirm:"确认",hour:"时",minute:"分",second:"秒",scrollTooltip:"可以滚动鼠标滚轮改变时间值"},loading:"加载中...",formRules:{required:"必填",arrMaxLength:"最多选择 {max} 项",percentageInvalid:"请输入有效的百分比(0-100)",over0:"值必须大于 0%",less100:"值必须小于 100%",addressInvalid:"格式不正确,例如:{example}",emailInvalid:"邮箱格式不正确",invalidPort:"端口号格式不正确",rangeInt:"值必须是 {min} 到 {max} 之间的整数",rangeNumber:"值必须在 {min} 到 {max} 之间",invalidInput:"无效输入",alreadyExists:"已存在",positiveInt:"值必须是正整数",nonNegativeInt:"值必须是非负整数",duplicateItemNotAllowed:"不允许重复项,{value} 已存在",maxLengthExceeded:"最多添加 {max} 项",phoneInvalid:"手机号格式不正确",idCardInvalid:"身份证号格式不正确",bankCardInvalid:"银行卡号格式不正确",carNumberInvalid:"车牌号格式不正确",urlInvalid:"URL 地址格式不正确",ipInvalid:"IP 地址格式不正确",ipv6Invalid:"IPv6 地址格式不正确",qqInvalid:"QQ 号格式不正确",wechatInvalid:"微信号格式不正确",postcodeInvalid:"邮政编码格式不正确",chineseOnly:"只能输入中文",mustContainChinese:"必须包含中文",numberOnly:"只能输入数字",numericOnly:"只能输入数字(可包含小数)",macInvalid:"MAC 地址格式不正确",hexColorInvalid:"十六进制颜色格式不正确"},jQFile:{click_or_drag_file:"点击或拖拽文件到此处上传",file_type_is:"支持的文件类型: {type}",max_file_size:"最大文件大小: {size}",unsupportFileFormat:"不支持的文件格式",maxFileSizeIs:"最大文件大小为 {max} MB"},pagination:{pieces_page:"条/页",goto:"跳转",total:"共 {total} 条"},inputRecognize:{maxItems:"最多识别 {max} 项",noValidItems:"未识别到有效项",recognized:"已识别"}}};exports.default=e;
|