openatc-components 0.5.80 → 0.5.82
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/_diff_a.txt +360 -0
- package/_diff_b.txt +362 -0
- package/build/package.config.js +62 -58
- package/build/package.dev.config.js +114 -107
- package/build/package.prod.config.js +167 -160
- package/build/utils.js +109 -101
- package/index.html +16 -0
- package/package/kisscomps/components/Channelization/Channelization.vue +9 -4
- package/package/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +363 -360
- package/package/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue +2 -2
- package/package/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +259 -255
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
- package/package/kisscomps/components/DrawChannelization/drawsvg/table.vue +2 -2
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +1 -1
- package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +6 -2
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +11 -0
- package/package/kisscomps/components/IntersectionMapDirSelect/customCrossDiagram.vue +3 -2
- package/package/kisscomps/components/IntersectionMapDirSelect/customintersectionmap.vue +7 -0
- package/package/kisscomps/components/MessageBox/index.vue +1 -1
- package/package/kisscomps/components/OverviewComponent/index.vue +0 -6
- package/package/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +0 -16
- package/package/kisscomps/components/PhaseLegend/PhaseLegend.vue +2 -3
- package/package/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +1 -1
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +0 -82
- package/package/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +3 -4
- package/package/kisscomps/components/Stages/index.vue +2 -3
- package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +0 -28
- package/package/kisscomps/components/overView/index.vue +0 -6
- package/package/kisscomps/components/patternConfig/index.vue +1 -1
- package/package/kisscomps/index.js +7 -2
- package/package/kissui.js +321283 -0
- package/package/kissui.min.js +1 -1
- package/package.json +2 -2
- package/src/App.vue +2 -0
- package/src/i18n/index.js +20 -2
- package/src/i18n/language/ar.js +685 -0
- package/src/i18n/language/en.js +69 -1157
- package/src/i18n/language/index.js +6 -0
- package/src/i18n/language/ru.js +132 -1027
- package/src/i18n/language/zh.js +65 -1150
- package/src/kisscomps/components/Channelization/Channelization.vue +9 -4
- package/src/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +363 -360
- package/src/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue +2 -2
- package/src/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +259 -255
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
- package/src/kisscomps/components/DrawChannelization/drawsvg/table.vue +2 -2
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +1 -1
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +6 -2
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +11 -0
- package/src/kisscomps/components/IntersectionMapDirSelect/customCrossDiagram.vue +3 -2
- package/src/kisscomps/components/IntersectionMapDirSelect/customintersectionmap.vue +7 -0
- package/src/kisscomps/components/MessageBox/index.vue +1 -1
- package/src/kisscomps/components/OverviewComponent/index.vue +0 -6
- package/src/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +0 -16
- package/src/kisscomps/components/PhaseLegend/PhaseLegend.vue +2 -3
- package/src/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +1 -1
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +0 -82
- package/src/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +3 -4
- package/src/kisscomps/components/Stages/index.vue +2 -3
- package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +0 -28
- package/src/kisscomps/components/overView/index.vue +0 -6
- package/src/kisscomps/components/patternConfig/index.vue +1 -1
- package/src/kisscomps/index.js +7 -2
- package/src/utils/ControlFormat.js +0 -8
- package/src/utils/fault.js +3 -1
- package/src/utils/faultcode.js +37 -36
- package/src/utils/i18nDirection.js +37 -0
- package/src/utils/phasedesc.js +0 -4
- package/src/utils/responseMessage.js +4 -0
- package/static/styles/intersection.scss +4 -0
package/build/utils.js
CHANGED
|
@@ -1,101 +1,109 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
const path = require('path')
|
|
3
|
-
const config = require('../config')
|
|
4
|
-
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
|
5
|
-
const packageConfig = require('../package.json')
|
|
6
|
-
|
|
7
|
-
exports.assetsPath = function (_path) {
|
|
8
|
-
const assetsSubDirectory = process.env.NODE_ENV === 'production'
|
|
9
|
-
? config.build.assetsSubDirectory
|
|
10
|
-
: config.dev.assetsSubDirectory
|
|
11
|
-
|
|
12
|
-
return path.posix.join(assetsSubDirectory, _path)
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
exports.cssLoaders = function (options) {
|
|
16
|
-
options = options || {}
|
|
17
|
-
|
|
18
|
-
const cssLoader = {
|
|
19
|
-
loader: 'css-loader',
|
|
20
|
-
options: {
|
|
21
|
-
sourceMap: options.sourceMap
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const postcssLoader = {
|
|
26
|
-
loader: 'postcss-loader',
|
|
27
|
-
options: {
|
|
28
|
-
sourceMap: options.sourceMap
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
//
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
1
|
+
'use strict'
|
|
2
|
+
const path = require('path')
|
|
3
|
+
const config = require('../config')
|
|
4
|
+
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
|
5
|
+
const packageConfig = require('../package.json')
|
|
6
|
+
|
|
7
|
+
exports.assetsPath = function (_path) {
|
|
8
|
+
const assetsSubDirectory = process.env.NODE_ENV === 'production'
|
|
9
|
+
? config.build.assetsSubDirectory
|
|
10
|
+
: config.dev.assetsSubDirectory
|
|
11
|
+
|
|
12
|
+
return path.posix.join(assetsSubDirectory, _path)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
exports.cssLoaders = function (options) {
|
|
16
|
+
options = options || {}
|
|
17
|
+
|
|
18
|
+
const cssLoader = {
|
|
19
|
+
loader: 'css-loader',
|
|
20
|
+
options: {
|
|
21
|
+
sourceMap: options.sourceMap
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const postcssLoader = {
|
|
26
|
+
loader: 'postcss-loader',
|
|
27
|
+
options: {
|
|
28
|
+
sourceMap: options.sourceMap
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// RTL 镜像 loader(ADR-15 工具链唯一落点 / ADR-16 哨兵形态):
|
|
33
|
+
// scripts/i18n/rtl-loader.js 自带 postcss 6 + postcss-rtlcss 依赖,与工程构建依赖隔离。
|
|
34
|
+
// 执行序:rtlcss 先处理源 CSS,随后 postcssLoader(autoprefixer 等)
|
|
35
|
+
// 作用于翻转产物(含 [dir="rtl"] 规则)。
|
|
36
|
+
const rtlLoader = {
|
|
37
|
+
loader: path.resolve(__dirname, '../../../scripts/i18n/rtl-loader.js')
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// generate loader string to be used with extract text plugin
|
|
41
|
+
function generateLoaders (loader, loaderOptions) {
|
|
42
|
+
const loaders = options.usePostCSS ? [cssLoader, postcssLoader, rtlLoader] : [cssLoader, rtlLoader]
|
|
43
|
+
|
|
44
|
+
if (loader) {
|
|
45
|
+
loaders.push({
|
|
46
|
+
loader: loader + '-loader',
|
|
47
|
+
options: Object.assign({}, loaderOptions, {
|
|
48
|
+
sourceMap: options.sourceMap
|
|
49
|
+
})
|
|
50
|
+
})
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Extract CSS when that option is specified
|
|
54
|
+
// (which is the case during production build)
|
|
55
|
+
if (options.extract) {
|
|
56
|
+
return ExtractTextPlugin.extract({
|
|
57
|
+
use: loaders,
|
|
58
|
+
fallback: 'vue-style-loader'
|
|
59
|
+
})
|
|
60
|
+
} else {
|
|
61
|
+
return ['vue-style-loader'].concat(loaders)
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// https://vue-loader.vuejs.org/en/configurations/extract-css.html
|
|
66
|
+
return {
|
|
67
|
+
css: generateLoaders(),
|
|
68
|
+
postcss: generateLoaders(),
|
|
69
|
+
less: generateLoaders('less'),
|
|
70
|
+
sass: generateLoaders('sass', { indentedSyntax: true }),
|
|
71
|
+
scss: generateLoaders('sass'),
|
|
72
|
+
stylus: generateLoaders('stylus'),
|
|
73
|
+
styl: generateLoaders('stylus')
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Generate loaders for standalone style files (outside of .vue)
|
|
78
|
+
exports.styleLoaders = function (options) {
|
|
79
|
+
const output = []
|
|
80
|
+
const loaders = exports.cssLoaders(options)
|
|
81
|
+
|
|
82
|
+
for (const extension in loaders) {
|
|
83
|
+
const loader = loaders[extension]
|
|
84
|
+
output.push({
|
|
85
|
+
test: new RegExp('\\.' + extension + '$'),
|
|
86
|
+
use: loader
|
|
87
|
+
})
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return output
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
exports.createNotifierCallback = () => {
|
|
94
|
+
const notifier = require('node-notifier')
|
|
95
|
+
|
|
96
|
+
return (severity, errors) => {
|
|
97
|
+
if (severity !== 'error') return
|
|
98
|
+
|
|
99
|
+
const error = errors[0]
|
|
100
|
+
const filename = error.file && error.file.split('!').pop()
|
|
101
|
+
|
|
102
|
+
notifier.notify({
|
|
103
|
+
title: packageConfig.name,
|
|
104
|
+
message: severity + ': ' + error.name,
|
|
105
|
+
subtitle: filename || '',
|
|
106
|
+
icon: path.join(__dirname, 'logo.png')
|
|
107
|
+
})
|
|
108
|
+
}
|
|
109
|
+
}
|
package/index.html
CHANGED
|
@@ -4,6 +4,22 @@
|
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
6
6
|
<title>openatc-components</title>
|
|
7
|
+
<script>
|
|
8
|
+
// 首帧前设置 lang/dir,避免 RTL 切换闪烁
|
|
9
|
+
;(function () {
|
|
10
|
+
try {
|
|
11
|
+
var ls = window.localStorage
|
|
12
|
+
var arOn = ls.getItem('ar_enabled') !== 'false'
|
|
13
|
+
var rtlOn = ls.getItem('rtl_enabled') !== 'false'
|
|
14
|
+
var lang = ls.getItem('intl_language') || 'zh'
|
|
15
|
+
if (lang === 'ar' && !arOn) lang = 'en'
|
|
16
|
+
window.__AR_ENABLED__ = arOn
|
|
17
|
+
window.__RTL_ENABLED__ = rtlOn
|
|
18
|
+
document.documentElement.setAttribute('lang', lang)
|
|
19
|
+
document.documentElement.setAttribute('dir', lang === 'ar' && rtlOn ? 'rtl' : 'ltr')
|
|
20
|
+
} catch (e) {}
|
|
21
|
+
})()
|
|
22
|
+
</script>
|
|
7
23
|
</head>
|
|
8
24
|
<body>
|
|
9
25
|
<div id="app"></div>
|
|
@@ -530,6 +530,11 @@ export default {
|
|
|
530
530
|
.show-channelization {
|
|
531
531
|
position: relative;
|
|
532
532
|
overflow: hidden;
|
|
533
|
+
/* 渠化图图层(.show-channelization-elements-components)的包含块:图内容方向与
|
|
534
|
+
书写方向无关,锁 LTR 避免窄容器下 870px 图层按“贴右”排布而偏出。
|
|
535
|
+
rtl:ignore 不可省:rtlcss 会把 direction:ltr 翻成 [dir=rtl]…{direction:rtl}
|
|
536
|
+
的镜像副本(特异性更高、后出现),不加指令就会把这条锁抵消(已实测)。 */
|
|
537
|
+
direction: ltr /*!rtl:ignore*/;
|
|
533
538
|
}
|
|
534
539
|
.widescreenCrossImg {
|
|
535
540
|
zoom: 1.3;
|
|
@@ -562,25 +567,25 @@ export default {
|
|
|
562
567
|
zoom: 0.35;
|
|
563
568
|
}
|
|
564
569
|
.transMiddleCrossImg {
|
|
565
|
-
-webkit-transform-origin-y: 0
|
|
570
|
+
-webkit-transform-origin-y: 0 /*!rtl:ignore*/;
|
|
566
571
|
transform: scale(0.55);
|
|
567
572
|
margin-top: 3%;
|
|
568
573
|
padding: 0PX;
|
|
569
574
|
}
|
|
570
575
|
.transMiddleCrossImg2 {
|
|
571
|
-
-webkit-transform-origin-y: 0
|
|
576
|
+
-webkit-transform-origin-y: 0 /*!rtl:ignore*/;
|
|
572
577
|
transform: scale(0.27);
|
|
573
578
|
margin-top: -1.5%;
|
|
574
579
|
padding: 0PX;
|
|
575
580
|
}
|
|
576
581
|
.transMiddleCrossImg3 {
|
|
577
|
-
-webkit-transform-origin-y: 0
|
|
582
|
+
-webkit-transform-origin-y: 0 /*!rtl:ignore*/;
|
|
578
583
|
transform: scale(0.22);
|
|
579
584
|
margin-top: -1%;
|
|
580
585
|
padding: 0PX;
|
|
581
586
|
}
|
|
582
587
|
.transMiniCrossImg {
|
|
583
|
-
-webkit-transform-origin-y: 0
|
|
588
|
+
-webkit-transform-origin-y: 0 /*!rtl:ignore*/;
|
|
584
589
|
transform: scale(0.18);
|
|
585
590
|
margin-top: -1.6%;
|
|
586
591
|
padding: 0PX;
|