rtcpts 0.0.1
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/LICENSE +22 -0
- package/README.md +68 -0
- package/dist/charts-D71LM320.cjs +1 -0
- package/dist/charts-DFQ978tO.js +826 -0
- package/dist/charts.cjs.js +1 -0
- package/dist/charts.css +1 -0
- package/dist/charts.d.ts +7 -0
- package/dist/charts.es.js +9 -0
- package/dist/components/j-c-copy/index.d.ts +31 -0
- package/dist/components/j-c-duo-list-editor/index.d.ts +102 -0
- package/dist/components/j-c-editable-proxy/index.d.ts +146 -0
- package/dist/components/j-c-fallback/index.d.ts +56 -0
- package/dist/components/j-c-foldable-list/index.d.ts +66 -0
- package/dist/components/j-c-format-lookup/index.d.ts +65 -0
- package/dist/components/j-c-list-editor/index.d.ts +359 -0
- package/dist/components/j-c-more-menu/index.d.ts +220 -0
- package/dist/components/j-c-permission/index.d.ts +59 -0
- package/dist/components/j-c-tabs/index.d.ts +131 -0
- package/dist/components/j-c-title-line/index.d.ts +15 -0
- package/dist/components/j-c-tree/index.d.ts +16 -0
- package/dist/components/j-c-tree-select/index.d.ts +755 -0
- package/dist/components/j-ch-bar/index.d.ts +39 -0
- package/dist/components/j-ch-bar-line/index.d.ts +38 -0
- package/dist/components/j-ch-bubble/index.d.ts +43 -0
- package/dist/components/j-ch-line/index.d.ts +37 -0
- package/dist/components/j-ch-pie-doughnut/index.d.ts +49 -0
- package/dist/components/j-ch-radar/index.d.ts +38 -0
- package/dist/components/j-q-autocomplete/index.d.ts +71 -0
- package/dist/components/j-q-confirm/index.d.ts +48 -0
- package/dist/components/j-q-confirm-dialog/index.d.ts +65 -0
- package/dist/components/j-q-date/index.d.ts +199 -0
- package/dist/components/j-q-datetime/index.d.ts +166 -0
- package/dist/components/j-q-detail-list/index.d.ts +136 -0
- package/dist/components/j-q-dialog/file.d.ts +5 -0
- package/dist/components/j-q-dialog/form-rules.d.ts +17 -0
- package/dist/components/j-q-dialog/form.d.ts +4 -0
- package/dist/components/j-q-dialog/index.d.ts +53 -0
- package/dist/components/j-q-file/download.d.ts +2 -0
- package/dist/components/j-q-file/index.d.ts +82 -0
- package/dist/components/j-q-form-label/index.d.ts +79 -0
- package/dist/components/j-q-input/index.d.ts +194 -0
- package/dist/components/j-q-message/index.d.ts +19 -0
- package/dist/components/j-q-new-value/index.d.ts +117 -0
- package/dist/components/j-q-option-group/index.d.ts +133 -0
- package/dist/components/j-q-popover/index.d.ts +49 -0
- package/dist/components/j-q-search-form/index.d.ts +67 -0
- package/dist/components/j-q-select/index.d.ts +252 -0
- package/dist/components/j-q-table/index.d.ts +251 -0
- package/dist/components/j-q-table/pagination.d.ts +52 -0
- package/dist/components/j-q-tooltip/index.d.ts +44 -0
- package/dist/components/j-q-tooltip/tooltip.d.ts +3 -0
- package/dist/composables/useI18n.d.ts +14 -0
- package/dist/en-US-BfaBFOjR.cjs +1 -0
- package/dist/en-US-Di49EX5C.js +106 -0
- package/dist/i18n/en-US/index.d.ts +59 -0
- package/dist/i18n/index.d.ts +10 -0
- package/dist/i18n/zh-CN/index.d.ts +59 -0
- package/dist/index-BXXYZm9Q.cjs +1 -0
- package/dist/index-CHKEi8Wc.js +49 -0
- package/dist/index-EGZV35Ev.js +49 -0
- package/dist/index-zt6HltZK.cjs +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +47 -0
- package/dist/rtcpt-styles.css +1 -0
- package/dist/rtcpt-styles.d.ts +1 -0
- package/dist/rtcpt-styles.js +1 -0
- package/dist/rtcpt.cjs.js +1 -0
- package/dist/rtcpt.es.js +5016 -0
- package/dist/types.d.ts +25 -0
- package/dist/utils/custom-svg.d.ts +3 -0
- package/dist/utils/icon-map.d.ts +9 -0
- package/dist/utils/init.d.ts +15 -0
- package/dist/utils/storage.d.ts +3 -0
- package/dist/utils/tool.d.ts +31 -0
- package/dist/zh-CN-BoRskSmh.js +111 -0
- package/dist/zh-CN-DWWgisNr.cjs +1 -0
- package/package.json +80 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { val2Str, valSplit, dataCvSize, obj2Arr } from './components/j-q-dialog/form';
|
|
2
|
+
import { transformTreeUseLabelAndValue } from './components/j-c-tree/index';
|
|
3
|
+
import { generateDownloadFileName, JQDownloadFile } from './components/j-q-file/download';
|
|
4
|
+
import { formRules } from './components/j-q-dialog/index';
|
|
5
|
+
import type * as toolUtils from './utils/tool';
|
|
6
|
+
export interface JQToolType extends Record<string, any> {
|
|
7
|
+
transformTreeUseLabelAndValue: typeof transformTreeUseLabelAndValue;
|
|
8
|
+
JQDownloadFile: typeof JQDownloadFile;
|
|
9
|
+
generateDownloadFileName: typeof generateDownloadFileName;
|
|
10
|
+
formRules: typeof formRules;
|
|
11
|
+
formUtils: {
|
|
12
|
+
val2Str: typeof val2Str;
|
|
13
|
+
valSplit: typeof valSplit;
|
|
14
|
+
dataCvSize: typeof dataCvSize;
|
|
15
|
+
obj2Arr: typeof obj2Arr;
|
|
16
|
+
};
|
|
17
|
+
defaultFill: typeof toolUtils.defaultFill;
|
|
18
|
+
formatSize: typeof toolUtils.formatSize;
|
|
19
|
+
getUpperSize: typeof toolUtils.getUpperSize;
|
|
20
|
+
defaultFormat: typeof toolUtils.defaultFormat;
|
|
21
|
+
formatDate: typeof toolUtils.formatDate;
|
|
22
|
+
defaultDateFormat: typeof toolUtils.defaultDateFormat;
|
|
23
|
+
defaultDataFormat: typeof toolUtils.defaultDataFormat;
|
|
24
|
+
defaultAutoDataFormat: typeof toolUtils.defaultAutoDataFormat;
|
|
25
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type IconMapResult = {
|
|
2
|
+
icon: string;
|
|
3
|
+
} | {
|
|
4
|
+
cls: string;
|
|
5
|
+
content?: string;
|
|
6
|
+
};
|
|
7
|
+
export type IconMapFn = (iconName: string) => IconMapResult | void;
|
|
8
|
+
export declare const rtcptIconMapFn: IconMapFn;
|
|
9
|
+
export declare function composeIconMapFn(...fns: Array<IconMapFn | undefined | null>): IconMapFn;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { App, Ref } from 'vue';
|
|
2
|
+
import { default as defaultColors } from '../config/colors.json';
|
|
3
|
+
import { Locale } from '../composables/useI18n';
|
|
4
|
+
export type ColorConfig = Partial<typeof defaultColors>;
|
|
5
|
+
export interface RtcptInitOptions {
|
|
6
|
+
app: App;
|
|
7
|
+
router?: any;
|
|
8
|
+
store?: any;
|
|
9
|
+
i18n?: any;
|
|
10
|
+
pagePermissionIds?: Ref<string[]> | string[];
|
|
11
|
+
pageActionPermissionIds?: Ref<string[]> | string[];
|
|
12
|
+
defaultLanguage?: Locale;
|
|
13
|
+
colors?: ColorConfig;
|
|
14
|
+
}
|
|
15
|
+
export declare function rtcptInit(options: RtcptInitOptions): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare function defaultFill(val: any): any;
|
|
2
|
+
type TSizeUnit = 'B' | 'KB' | 'MB' | 'GB' | 'TB';
|
|
3
|
+
export declare function formatSize(options: {
|
|
4
|
+
maxUnit?: TSizeUnit;
|
|
5
|
+
numberFormatOptions?: Intl.NumberFormatOptions;
|
|
6
|
+
size: number;
|
|
7
|
+
unit?: TSizeUnit;
|
|
8
|
+
}): string;
|
|
9
|
+
export declare function getUpperSize(sizeUnit: {
|
|
10
|
+
size: number;
|
|
11
|
+
unit?: TSizeUnit;
|
|
12
|
+
}, options?: {
|
|
13
|
+
maxUnit?: TSizeUnit;
|
|
14
|
+
}): {
|
|
15
|
+
size: number;
|
|
16
|
+
unit: TSizeUnit;
|
|
17
|
+
};
|
|
18
|
+
export declare function defaultFormat(customFormatter?: (val: any, row: any) => string | number, fallbackValue?: string): (val: any, row: any) => any;
|
|
19
|
+
export type DateFormatString = string;
|
|
20
|
+
export type DateInput = Date | string | number;
|
|
21
|
+
export declare function formatDate(dateInput: DateInput, formatString?: DateFormatString): string;
|
|
22
|
+
export declare function defaultDateFormat(formatString?: DateFormatString, fallbackValue?: string): (val: DateInput | null | undefined, row: any) => string;
|
|
23
|
+
export declare function defaultDataFormat(fallbackValue?: string, options?: {
|
|
24
|
+
digits?: number;
|
|
25
|
+
unit?: TSizeUnit;
|
|
26
|
+
}): (val: any, row: any) => any;
|
|
27
|
+
export declare function defaultAutoDataFormat(fallbackValue?: string, options?: {
|
|
28
|
+
digits?: number;
|
|
29
|
+
unit?: TSizeUnit;
|
|
30
|
+
}): (val: any, row: any) => any;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
const a = {
|
|
2
|
+
isoName: "zh-CN",
|
|
3
|
+
nativeName: "中文(简体)",
|
|
4
|
+
label: {
|
|
5
|
+
clear: "清空",
|
|
6
|
+
ok: "确定",
|
|
7
|
+
cancel: "取消",
|
|
8
|
+
close: "关闭",
|
|
9
|
+
set: "设置",
|
|
10
|
+
select: "选择",
|
|
11
|
+
reset: "重置",
|
|
12
|
+
remove: "移除",
|
|
13
|
+
update: "更新",
|
|
14
|
+
create: "创建",
|
|
15
|
+
search: "搜索",
|
|
16
|
+
filter: "过滤",
|
|
17
|
+
refresh: "刷新",
|
|
18
|
+
expand: (e) => e ? `展开"${e}"` : "扩张",
|
|
19
|
+
collapse: (e) => e ? `折叠"${e}"` : "坍塌"
|
|
20
|
+
},
|
|
21
|
+
date: {
|
|
22
|
+
days: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
|
|
23
|
+
daysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"),
|
|
24
|
+
months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
|
|
25
|
+
monthsShort: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
|
|
26
|
+
headerTitle: (e) => new Intl.DateTimeFormat("zh-CN", {
|
|
27
|
+
weekday: "short",
|
|
28
|
+
month: "short",
|
|
29
|
+
day: "numeric"
|
|
30
|
+
}).format(e),
|
|
31
|
+
firstDayOfWeek: 0,
|
|
32
|
+
// 0-6, 0 - Sunday, 1 Monday, ...
|
|
33
|
+
format24h: !1,
|
|
34
|
+
pluralDay: "天",
|
|
35
|
+
prevMonth: "上个月",
|
|
36
|
+
nextMonth: "下个月",
|
|
37
|
+
prevYear: "上一年",
|
|
38
|
+
nextYear: "下一年",
|
|
39
|
+
today: "今天",
|
|
40
|
+
prevRangeYears: (e) => `以前${e}年`,
|
|
41
|
+
nextRangeYears: (e) => `接下来${e}年`
|
|
42
|
+
},
|
|
43
|
+
table: {
|
|
44
|
+
noData: "没有可用数据",
|
|
45
|
+
noResults: "找不到匹配的数据",
|
|
46
|
+
loading: "正在加载...",
|
|
47
|
+
selectedRecords: (e) => "已选择" + e + "行",
|
|
48
|
+
recordsPerPage: "每页的行数:",
|
|
49
|
+
allRows: "全部",
|
|
50
|
+
pagination: (e, t, r) => e + "-" + t + " / " + r,
|
|
51
|
+
columns: "列"
|
|
52
|
+
},
|
|
53
|
+
pagination: {
|
|
54
|
+
first: "第一页",
|
|
55
|
+
prev: "上一页",
|
|
56
|
+
next: "下一页",
|
|
57
|
+
last: "最后一页"
|
|
58
|
+
},
|
|
59
|
+
editor: {
|
|
60
|
+
url: "URL",
|
|
61
|
+
bold: "粗体",
|
|
62
|
+
italic: "斜体",
|
|
63
|
+
strikethrough: "删除线",
|
|
64
|
+
underline: "下划线",
|
|
65
|
+
unorderedList: "无序列表",
|
|
66
|
+
orderedList: "有序列表",
|
|
67
|
+
subscript: "下标",
|
|
68
|
+
superscript: "上标",
|
|
69
|
+
hyperlink: "超链接",
|
|
70
|
+
toggleFullscreen: "全屏切换",
|
|
71
|
+
quote: "引号",
|
|
72
|
+
left: "左对齐",
|
|
73
|
+
center: "居中对齐",
|
|
74
|
+
right: "右对齐",
|
|
75
|
+
justify: "两端对齐",
|
|
76
|
+
print: "打印",
|
|
77
|
+
outdent: "减少缩进",
|
|
78
|
+
indent: "增加缩进",
|
|
79
|
+
removeFormat: "清除样式",
|
|
80
|
+
formatting: "格式化",
|
|
81
|
+
fontSize: "字体大小",
|
|
82
|
+
align: "对齐",
|
|
83
|
+
hr: "插入水平线",
|
|
84
|
+
undo: "撤消",
|
|
85
|
+
redo: "重做",
|
|
86
|
+
heading1: "标题一",
|
|
87
|
+
heading2: "标题二",
|
|
88
|
+
heading3: "标题三",
|
|
89
|
+
heading4: "标题四",
|
|
90
|
+
heading5: "标题五",
|
|
91
|
+
heading6: "标题六",
|
|
92
|
+
paragraph: "段落",
|
|
93
|
+
code: "代码",
|
|
94
|
+
size1: "非常小",
|
|
95
|
+
size2: "比较小",
|
|
96
|
+
size3: "正常",
|
|
97
|
+
size4: "中等偏大",
|
|
98
|
+
size5: "大",
|
|
99
|
+
size6: "非常大",
|
|
100
|
+
size7: "超级大",
|
|
101
|
+
defaultFont: "默认字体",
|
|
102
|
+
viewSource: "查看资料"
|
|
103
|
+
},
|
|
104
|
+
tree: {
|
|
105
|
+
noNodes: "没有可用节点",
|
|
106
|
+
noResults: "找不到匹配的节点"
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
export {
|
|
110
|
+
a as default
|
|
111
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a={isoName:"zh-CN",nativeName:"中文(简体)",label:{clear:"清空",ok:"确定",cancel:"取消",close:"关闭",set:"设置",select:"选择",reset:"重置",remove:"移除",update:"更新",create:"创建",search:"搜索",filter:"过滤",refresh:"刷新",expand:e=>e?`展开"${e}"`:"扩张",collapse:e=>e?`折叠"${e}"`:"坍塌"},date:{days:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),daysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),headerTitle:e=>new Intl.DateTimeFormat("zh-CN",{weekday:"short",month:"short",day:"numeric"}).format(e),firstDayOfWeek:0,format24h:!1,pluralDay:"天",prevMonth:"上个月",nextMonth:"下个月",prevYear:"上一年",nextYear:"下一年",today:"今天",prevRangeYears:e=>`以前${e}年`,nextRangeYears:e=>`接下来${e}年`},table:{noData:"没有可用数据",noResults:"找不到匹配的数据",loading:"正在加载...",selectedRecords:e=>"已选择"+e+"行",recordsPerPage:"每页的行数:",allRows:"全部",pagination:(e,t,r)=>e+"-"+t+" / "+r,columns:"列"},pagination:{first:"第一页",prev:"上一页",next:"下一页",last:"最后一页"},editor:{url:"URL",bold:"粗体",italic:"斜体",strikethrough:"删除线",underline:"下划线",unorderedList:"无序列表",orderedList:"有序列表",subscript:"下标",superscript:"上标",hyperlink:"超链接",toggleFullscreen:"全屏切换",quote:"引号",left:"左对齐",center:"居中对齐",right:"右对齐",justify:"两端对齐",print:"打印",outdent:"减少缩进",indent:"增加缩进",removeFormat:"清除样式",formatting:"格式化",fontSize:"字体大小",align:"对齐",hr:"插入水平线",undo:"撤消",redo:"重做",heading1:"标题一",heading2:"标题二",heading3:"标题三",heading4:"标题四",heading5:"标题五",heading6:"标题六",paragraph:"段落",code:"代码",size1:"非常小",size2:"比较小",size3:"正常",size4:"中等偏大",size5:"大",size6:"非常大",size7:"超级大",defaultFont:"默认字体",viewSource:"查看资料"},tree:{noNodes:"没有可用节点",noResults:"找不到匹配的节点"}};exports.default=a;
|
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rtcpts",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "A Vue 3 component library built with Vite and TypeScript, featuring components integrated with Quasar.",
|
|
5
|
+
"main": "dist/rtcpt.umd.js",
|
|
6
|
+
"module": "dist/rtcpt.es.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"p": "npm publish",
|
|
11
|
+
"build:colors": "node generate-colors.js",
|
|
12
|
+
"build:svg": "node generate-custom-svg.js",
|
|
13
|
+
"build": "vite build",
|
|
14
|
+
"build-all": "npm run build:colors && npm run build:svg && vite build",
|
|
15
|
+
"dev": "npm run build:colors && npm run build:svg && vite build --watch",
|
|
16
|
+
"yalc:publish": "npm run build-all && npx yalc push",
|
|
17
|
+
"yalc:push": "npm run build-all && npx yalc push",
|
|
18
|
+
"yalc:dev": "node yalc-dev.js",
|
|
19
|
+
"patch": "npm version patch && npm run p",
|
|
20
|
+
"minor": "npm version minor && npm run p",
|
|
21
|
+
"major": "npm version major && npm run p"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"README.md",
|
|
26
|
+
"LICENSE"
|
|
27
|
+
],
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/rtcpt.es.js",
|
|
32
|
+
"require": "./dist/rtcpt.cjs.js"
|
|
33
|
+
},
|
|
34
|
+
"./charts": {
|
|
35
|
+
"types": "./dist/charts.d.ts",
|
|
36
|
+
"import": "./dist/charts.es.js",
|
|
37
|
+
"require": "./dist/charts.cjs.js"
|
|
38
|
+
},
|
|
39
|
+
"./rtcpt.css": "./dist/index.css",
|
|
40
|
+
"./rtcpt-styles.css": "./dist/rtcpt-styles.css",
|
|
41
|
+
"./dist/index.css": "./dist/index.css",
|
|
42
|
+
"./dist/rtcpt-styles.css": "./dist/rtcpt-styles.css"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"chart.js": "^4.0.0",
|
|
46
|
+
"quasar": "^2.0.0",
|
|
47
|
+
"vue": "^3.0.0"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
51
|
+
"chart.js": "^4.4.7",
|
|
52
|
+
"debug": "^4.4.3",
|
|
53
|
+
"prettier": "^2.5.1",
|
|
54
|
+
"quasar": "^2.18.6",
|
|
55
|
+
"resolve": "^1.22.11",
|
|
56
|
+
"sass": "^1.94.2",
|
|
57
|
+
"typescript": "^5.9.3",
|
|
58
|
+
"vite": "^6.0.7",
|
|
59
|
+
"vite-plugin-dts": "^4.5.4",
|
|
60
|
+
"vue": "^3.5.25"
|
|
61
|
+
},
|
|
62
|
+
"keywords": [
|
|
63
|
+
"vue",
|
|
64
|
+
"quasar",
|
|
65
|
+
"component-library",
|
|
66
|
+
"typescript"
|
|
67
|
+
],
|
|
68
|
+
"author": "dirk.he@redteamobile.com",
|
|
69
|
+
"license": "MIT",
|
|
70
|
+
"repository": {
|
|
71
|
+
"type": "git",
|
|
72
|
+
"url": "http://gitlab.redtea.io/redteamobile/ngiot-frontend-cpt.git",
|
|
73
|
+
"directory": "."
|
|
74
|
+
},
|
|
75
|
+
"homepage": "http://gitlab.redtea.io/redteamobile/ngiot-frontend-cpt",
|
|
76
|
+
"bugs": {
|
|
77
|
+
"url": "http://gitlab.redtea.io/redteamobile/ngiot-frontend-cpt/-/issues"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {}
|
|
80
|
+
}
|