lty-protocol 1.0.11 → 1.0.12
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/App.vue.d.ts +2 -0
- package/dist/components/Ethernet.vue.d.ts +5 -0
- package/dist/components/Input.d.ts +10 -0
- package/dist/i18n/index.d.ts +146 -0
- package/dist/i18n/lang/en.json.d.ts +47 -0
- package/dist/i18n/lang/zh.json.d.ts +47 -0
- package/dist/index.d.ts +2 -1
- package/dist/lty-protocol.mjs +3903 -35
- package/dist/lty-protocol.umd.js +6 -1
- package/dist/models/collection.d.ts +61 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/modbus/configParser.d.ts +8 -0
- package/dist/models/modbus/ethernet.json.d.ts +122 -0
- package/dist/models/modbus/index.d.ts +29 -8
- package/dist/models/protocolItem.d.ts +10 -0
- package/dist/types/base.d.ts +8 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +8 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
config: any;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
modelValue: StringConstructor;
|
|
3
|
+
}>, (() => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}>) | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
6
|
+
modelValue: StringConstructor;
|
|
7
|
+
}>> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { default as zh } from './lang/zh.json';
|
|
2
|
+
export declare const messages: {
|
|
3
|
+
zh: {
|
|
4
|
+
name: string;
|
|
5
|
+
supplier: string;
|
|
6
|
+
version: string;
|
|
7
|
+
description: string;
|
|
8
|
+
category: string;
|
|
9
|
+
general: string;
|
|
10
|
+
ioMapping: string;
|
|
11
|
+
modbusSlaveChannel: string;
|
|
12
|
+
status: string;
|
|
13
|
+
ethernet: string;
|
|
14
|
+
modbusTcpServer: string;
|
|
15
|
+
modbusTcpClient: string;
|
|
16
|
+
modbusTCPSlaveDevice: string;
|
|
17
|
+
company: string;
|
|
18
|
+
descriptionMap: {
|
|
19
|
+
ethernet: string;
|
|
20
|
+
modbusTcpServer: string;
|
|
21
|
+
modbusTcpClient: string;
|
|
22
|
+
modbusTCPSlaveDevice: string;
|
|
23
|
+
};
|
|
24
|
+
netInterface: string;
|
|
25
|
+
ipAddress: string;
|
|
26
|
+
subnetMask: string;
|
|
27
|
+
defaultGateway: string;
|
|
28
|
+
adaptedOSConfiguration: string;
|
|
29
|
+
busCycleTask: string;
|
|
30
|
+
defaultTask: string;
|
|
31
|
+
responseTimeout: string;
|
|
32
|
+
socketTimeout: string;
|
|
33
|
+
reconnect: string;
|
|
34
|
+
slaveIpAddress: string;
|
|
35
|
+
port: string;
|
|
36
|
+
watchDog: string;
|
|
37
|
+
slavePort: string;
|
|
38
|
+
bindToAdapter: string;
|
|
39
|
+
holdingRegister: string;
|
|
40
|
+
writable: string;
|
|
41
|
+
inputRegister: string;
|
|
42
|
+
discreteBitArea: string;
|
|
43
|
+
coil: string;
|
|
44
|
+
discreteInput: string;
|
|
45
|
+
dataModel: string;
|
|
46
|
+
startAddress: string;
|
|
47
|
+
};
|
|
48
|
+
en: {
|
|
49
|
+
name: string;
|
|
50
|
+
supplier: string;
|
|
51
|
+
version: string;
|
|
52
|
+
description: string;
|
|
53
|
+
category: string;
|
|
54
|
+
general: string;
|
|
55
|
+
ioMapping: string;
|
|
56
|
+
modbusSlaveChannel: string;
|
|
57
|
+
status: string;
|
|
58
|
+
ethernet: string;
|
|
59
|
+
modbusTcpServer: string;
|
|
60
|
+
modbusTcpClient: string;
|
|
61
|
+
modbusTCPSlaveDevice: string;
|
|
62
|
+
company: string;
|
|
63
|
+
descriptionMap: {
|
|
64
|
+
ethernet: string;
|
|
65
|
+
modbusTcpServer: string;
|
|
66
|
+
modbusTcpClient: string;
|
|
67
|
+
modbusTCPSlaveDevice: string;
|
|
68
|
+
};
|
|
69
|
+
netInterface: string;
|
|
70
|
+
ipAddress: string;
|
|
71
|
+
subnetMask: string;
|
|
72
|
+
defaultGateway: string;
|
|
73
|
+
adaptedOSConfiguration: string;
|
|
74
|
+
busCycleTask: string;
|
|
75
|
+
defaultTask: string;
|
|
76
|
+
responseTimeout: string;
|
|
77
|
+
socketTimeout: string;
|
|
78
|
+
reconnect: string;
|
|
79
|
+
slaveIpAddress: string;
|
|
80
|
+
port: string;
|
|
81
|
+
watchDog: string;
|
|
82
|
+
slavePort: string;
|
|
83
|
+
bindToAdapter: string;
|
|
84
|
+
holdingRegister: string;
|
|
85
|
+
writable: string;
|
|
86
|
+
inputRegister: string;
|
|
87
|
+
discreteBitArea: string;
|
|
88
|
+
coil: string;
|
|
89
|
+
discreteInput: string;
|
|
90
|
+
dataModel: string;
|
|
91
|
+
startAddress: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
export type MessageSchema = typeof zh;
|
|
95
|
+
declare const i18n: import('vue-i18n').I18n<{
|
|
96
|
+
[x: string]: {
|
|
97
|
+
name: string;
|
|
98
|
+
supplier: string;
|
|
99
|
+
version: string;
|
|
100
|
+
description: string;
|
|
101
|
+
category: string;
|
|
102
|
+
general: string;
|
|
103
|
+
ioMapping: string;
|
|
104
|
+
modbusSlaveChannel: string;
|
|
105
|
+
status: string;
|
|
106
|
+
ethernet: string;
|
|
107
|
+
modbusTcpServer: string;
|
|
108
|
+
modbusTcpClient: string;
|
|
109
|
+
modbusTCPSlaveDevice: string;
|
|
110
|
+
company: string;
|
|
111
|
+
descriptionMap: {
|
|
112
|
+
ethernet: string;
|
|
113
|
+
modbusTcpServer: string;
|
|
114
|
+
modbusTcpClient: string;
|
|
115
|
+
modbusTCPSlaveDevice: string;
|
|
116
|
+
};
|
|
117
|
+
netInterface: string;
|
|
118
|
+
ipAddress: string;
|
|
119
|
+
subnetMask: string;
|
|
120
|
+
defaultGateway: string;
|
|
121
|
+
adaptedOSConfiguration: string;
|
|
122
|
+
busCycleTask: string;
|
|
123
|
+
defaultTask: string;
|
|
124
|
+
responseTimeout: string;
|
|
125
|
+
socketTimeout: string;
|
|
126
|
+
reconnect: string;
|
|
127
|
+
slaveIpAddress: string;
|
|
128
|
+
port: string;
|
|
129
|
+
watchDog: string;
|
|
130
|
+
slavePort: string;
|
|
131
|
+
bindToAdapter: string;
|
|
132
|
+
holdingRegister: string;
|
|
133
|
+
writable: string;
|
|
134
|
+
inputRegister: string;
|
|
135
|
+
discreteBitArea: string;
|
|
136
|
+
coil: string;
|
|
137
|
+
discreteInput: string;
|
|
138
|
+
dataModel: string;
|
|
139
|
+
startAddress: string;
|
|
140
|
+
};
|
|
141
|
+
}, {
|
|
142
|
+
[x: string]: import('vue-i18n').IntlDateTimeFormat;
|
|
143
|
+
}, {
|
|
144
|
+
[x: string]: import('vue-i18n').IntlNumberFormat;
|
|
145
|
+
}, string, true>;
|
|
146
|
+
export default i18n;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"name": "Name",
|
|
3
|
+
"supplier": "Supplier",
|
|
4
|
+
"version": "Version",
|
|
5
|
+
"description": "Description",
|
|
6
|
+
"category": "Category",
|
|
7
|
+
"general": "General",
|
|
8
|
+
"ioMapping": "I/O Mapping",
|
|
9
|
+
"modbusSlaveChannel": "Modbus Slave Channel",
|
|
10
|
+
"status": "Status",
|
|
11
|
+
"ethernet": "Ethernet",
|
|
12
|
+
"modbusTcpServer": "Modbus TCP Server",
|
|
13
|
+
"modbusTcpClient": "Modbus TCP Client",
|
|
14
|
+
"modbusTCPSlaveDevice": "Modbus TCP Slave Device",
|
|
15
|
+
"company": "Chengdu AIOSYS Innovation Technology Co., Ltd.",
|
|
16
|
+
"descriptionMap": {
|
|
17
|
+
"ethernet": "A device that works as a Modbus Server on Ethernet.",
|
|
18
|
+
"modbusTcpServer": "A device that works as a Modbus TCP Server.",
|
|
19
|
+
"modbusTcpClient": "A device that works as a Modbus TCP Client.",
|
|
20
|
+
"modbusTCPSlaveDevice": "A device that works as a Modbus TCP Slave Device."
|
|
21
|
+
},
|
|
22
|
+
"netInterface": "Network Interface",
|
|
23
|
+
"ipAddress": "IP Address",
|
|
24
|
+
"subnetMask": "Subnet Mask",
|
|
25
|
+
"defaultGateway": "Default Gateway",
|
|
26
|
+
"adaptedOSConfiguration": "Adapted OS Configuration",
|
|
27
|
+
"busCycleTask": "Bus Cycle Task",
|
|
28
|
+
"defaultTask": "Use Parent Bus Cycle Setting",
|
|
29
|
+
"responseTimeout": "Response Timeout(ms)",
|
|
30
|
+
"socketTimeout": "Socket Timeout(ms)",
|
|
31
|
+
"reconnect": "Reconnect",
|
|
32
|
+
"slaveIpAddress": "Slave IP Address",
|
|
33
|
+
"port": "Port",
|
|
34
|
+
"watchDog": "Watch Dog",
|
|
35
|
+
"slavePort": "Slave Port",
|
|
36
|
+
"bindToAdapter": "Bind to Adapter",
|
|
37
|
+
"holdingRegister": "Holding Register",
|
|
38
|
+
"writable": "Writable",
|
|
39
|
+
"inputRegister": "Input Register",
|
|
40
|
+
"discreteBitArea": "Discrete Bit Area",
|
|
41
|
+
"coil": "Coil",
|
|
42
|
+
"discreteInput": "Discrete Input",
|
|
43
|
+
"dataModel": "Data Model",
|
|
44
|
+
"startAddress": "Start Address"
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export default _default;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"name": "名称",
|
|
3
|
+
"supplier": "供应商",
|
|
4
|
+
"version": "版本",
|
|
5
|
+
"description": "描述",
|
|
6
|
+
"category": "类别",
|
|
7
|
+
"general": "通用",
|
|
8
|
+
"ioMapping": "I/O映射",
|
|
9
|
+
"modbusSlaveChannel": "Modbus从站通道",
|
|
10
|
+
"status": "状态",
|
|
11
|
+
"ethernet": "以太网",
|
|
12
|
+
"modbusTcpServer": "Modbus TCP服务器",
|
|
13
|
+
"modbusTcpClient": "Modbus TCP客户端",
|
|
14
|
+
"modbusTCPSlaveDevice": "Modbus TCP从站设备",
|
|
15
|
+
"company": "成都数字创新科技有限公司",
|
|
16
|
+
"descriptionMap": {
|
|
17
|
+
"ethernet": "一种在以太网上充当Modbus服务器的设备。",
|
|
18
|
+
"modbusTcpServer": "一种在以太网上充当Modbus TCP服务器的设备。",
|
|
19
|
+
"modbusTcpClient": "一种在以太网上充当Modbus TCP客户端的设备。",
|
|
20
|
+
"modbusTCPSlaveDevice": "一种在以太网上充当Modbus TCP从站设备。"
|
|
21
|
+
},
|
|
22
|
+
"netInterface": "网络接口",
|
|
23
|
+
"ipAddress": "IP地址",
|
|
24
|
+
"subnetMask": "子网掩码",
|
|
25
|
+
"defaultGateway": "默认网关",
|
|
26
|
+
"adaptedOSConfiguration": "适配操作系统配置",
|
|
27
|
+
"busCycleTask": "总线周期任务",
|
|
28
|
+
"defaultTask": "使用父总线循环设置",
|
|
29
|
+
"responseTimeout": "响应超时(ms)",
|
|
30
|
+
"socketTimeout": "Socket超时(ms)",
|
|
31
|
+
"reconnect": "自动重连",
|
|
32
|
+
"slaveIpAddress": "从站IP地址",
|
|
33
|
+
"port": "端口",
|
|
34
|
+
"watchDog": " 看门狗",
|
|
35
|
+
"slavePort": "从站端口",
|
|
36
|
+
"bindToAdapter": "绑定到适配器",
|
|
37
|
+
"holdingRegister": "保持寄存器",
|
|
38
|
+
"writable": "可写入",
|
|
39
|
+
"inputRegister": "输入寄存器",
|
|
40
|
+
"discreteBitArea": "离散位区域",
|
|
41
|
+
"coil": "线圈",
|
|
42
|
+
"discreteInput": "离散输入",
|
|
43
|
+
"dataModel": "数据模型",
|
|
44
|
+
"startAddress": "起始地址"
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Plugin } from 'vue';
|
|
2
2
|
import { default as MyButton } from './components/MyButton.vue';
|
|
3
3
|
import { default as Button2 } from './components/button2.vue';
|
|
4
|
+
import { default as Input } from './components/Input';
|
|
4
5
|
/**
|
|
5
6
|
* 插件
|
|
6
7
|
* @description 引用时请通过 name 字段引用,例如:import { Protocol } from 'lty-protocol'
|
|
@@ -9,7 +10,7 @@ declare const Protocol: Plugin;
|
|
|
9
10
|
/**
|
|
10
11
|
* 导出组件
|
|
11
12
|
*/
|
|
12
|
-
export { MyButton, Button2 };
|
|
13
|
+
export { MyButton, Button2, Input };
|
|
13
14
|
/**
|
|
14
15
|
* 导出协议模型
|
|
15
16
|
*/
|