@vtx/modals2 6.0.0-beta.1 → 6.0.0-beta.10
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/lib/_components/index.js +1 -0
- package/lib/_components/vm-appraisal-info/api.js +55 -0
- package/lib/_components/vm-appraisal-info/imgs/count.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/count_light.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/subtract.png +0 -0
- package/lib/_components/vm-appraisal-info/imgs/subtract_light.png +0 -0
- package/lib/_components/vm-appraisal-info/index.js +230 -0
- package/lib/_components/vm-appraisal-info/index.less +7 -0
- package/lib/_components/vm-calendar/index.js +3 -4
- package/lib/_components/vm-factor/index.js +2 -1
- package/lib/_components/vm-filter/index.js +8 -8
- package/lib/_components/vm-filter/style/index.less +7 -11
- package/lib/_components/vm-info-collection/index.js +3 -2
- package/lib/_components/vm-line-charts/index.js +4 -1
- package/lib/_components/vm-progress/index.js +2 -1
- package/lib/_components/vm-repair-maintain/index.js +34 -2
- package/lib/_components/vm-table/index.js +3 -3
- package/lib/_components/vm-tag/index.js +2 -1
- package/lib/_components/vm-title/index.js +2 -1
- package/lib/_components/vm-video/HistoryGrid.js +53 -3
- package/lib/_components/vm-video/RealtimeGrid.js +24 -3
- package/lib/_components/vm-video/index.js +99 -37
- package/lib/_components/vm-video/index.less +18 -14
- package/lib/_components/vm-wrapper/index.js +1 -1
- package/lib/_components/vm-wrapper/style/index.less +4 -2
- package/lib/_hooks/useGetChannels.js +20 -6
- package/lib/_service/index.js +7 -33
- package/lib/_util/http.js +32 -5
- package/lib/_util/index.js +6 -5
- package/lib/locales/en.json +140 -1
- package/lib/locales/zh-CN.json +142 -3
- package/lib/vtx-base-modal/Tabs/index.js +2 -1
- package/lib/vtx-base-modal/index.js +2 -1
- package/lib/vtx-car-modal/api.js +415 -25
- package/lib/vtx-car-modal/components/Info/index.js +1 -1
- package/lib/vtx-car-modal/content/Common/EleUse/index.js +218 -0
- package/lib/vtx-car-modal/content/Common/EleUse/index.less +19 -0
- package/lib/vtx-car-modal/content/Common/OilUse/index.js +230 -0
- package/lib/vtx-car-modal/content/Common/OilUse/index.less +19 -0
- package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.js +376 -0
- package/lib/vtx-car-modal/content/Common/OperationAnalysis/index.less +169 -0
- package/lib/vtx-car-modal/content/Common/WaterUse/index.js +201 -0
- package/lib/vtx-car-modal/content/Common/WaterUse/index.less +19 -0
- package/lib/vtx-car-modal/content/Common/index.js +9 -1
- package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +2 -1
- package/lib/vtx-car-modal/imgs/czb_bg.png +0 -0
- package/lib/vtx-car-modal/imgs/czb_bg_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/bglyh.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/bglyh_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdpc.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/cdpc_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dccdje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/dccdje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jscs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jscs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsl.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jsl_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jspc.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jspc_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jycs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jycs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyje.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyje_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyl.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/jyl_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ljwbcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ljwbcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/njzfy.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/njzfy_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/qzxze.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/qzxze_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgfy.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/sgfy_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/syxze.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/syxze_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wbzfy.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wbzfy_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzcs.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzcs_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkf.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkf_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkfee.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/wzkfee_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/xslc.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/xslc_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ydcb.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/ydcb_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yhcb.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yhcb_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yscb.png +0 -0
- package/lib/vtx-car-modal/imgs/factor/yscb_dark.png +0 -0
- package/lib/vtx-car-modal/imgs/zjl.png +0 -0
- package/lib/vtx-car-modal/imgs/zjl_dark.png +0 -0
- package/lib/vtx-car-modal/index.js +31 -9
- package/lib/vtx-cc-cp-modal/components/Calendar/index.js +3 -3
- package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +2 -5
- package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +7 -1
- package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +8 -4
- package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +2 -2
- package/lib/vtx-cp-modal/index.js +12 -12
- package/lib/vtx-default-modal/index.js +7 -6
- package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +2 -2
- package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jczbqs.js +2 -2
- package/lib/vtx-df-modal/components/WorkCondition/Table.js +2 -2
- package/lib/vtx-df-modal/index.js +7 -15
- package/lib/vtx-kh-modal/components/Record/index.js +1 -205
- package/lib/vtx-restaurant-modal/components/Calendar/index.js +3 -3
- package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +50 -33
- package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +3 -3
- package/lib/vtx-road-modal/components/BaseInfo/Work.js +9 -1
- package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +8 -1
- package/lib/vtx-road-modal/index.js +6 -3
- package/lib/vtx-road-modal/utils/url.js +12 -0
- package/lib/vtx-shxq-modal/api.js +2 -2
- package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +2 -2
- package/lib/vtx-shxq-modal/index.js +21 -4
- package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +4 -1
- package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +2 -2
- package/lib/vtx-wr-modal/index.js +28 -7
- package/lib/vtx-zf-modal/components/CkEditorCustom/view.js +4 -1
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/FormView.js +5 -4
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/index.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/FormView.js +7 -6
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/date.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/index.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/FormView.js +6 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/checkbox.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/index.js +10 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/FormView.js +7 -6
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/index.js +12 -7
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/FormView.js +6 -5
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/index.js +10 -5
- package/lib/vtx-zzz-modal/index.js +28 -22
- package/package.json +6 -6
|
@@ -22,6 +22,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
22
22
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
23
23
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
24
|
import { Plugin, Widget, ButtonView, ContextualBalloon, Command, clickOutsideHandler, toWidget } from "../../ckeditor/ckeditor";
|
|
25
|
+
import { translateLocaleText } from "../../../../../hooks/useTranslation.js";
|
|
25
26
|
import OpenPanelCommand from "../OpenPanelCommand";
|
|
26
27
|
import FormView from "./FormView";
|
|
27
28
|
import "./index.less";
|
|
@@ -51,7 +52,7 @@ var CheckboxEditing = /*#__PURE__*/function (_Plugin2) {
|
|
|
51
52
|
_createClass(CheckboxEditing, [{
|
|
52
53
|
key: "init",
|
|
53
54
|
value: function init() {
|
|
54
|
-
console.log('
|
|
55
|
+
console.log('custom checkbox editing initialized');
|
|
55
56
|
this._defineSchema();
|
|
56
57
|
this._defineConverters();
|
|
57
58
|
this.editor.commands.add('insertCustomCheckbox', new InsertCustomCheckboxCommand(this.editor));
|
|
@@ -118,7 +119,9 @@ var CheckboxEditing = /*#__PURE__*/function (_Plugin2) {
|
|
|
118
119
|
style += "width: ".concat(config[key], "px;");
|
|
119
120
|
} else {
|
|
120
121
|
if (key == 'label') {
|
|
121
|
-
obj.placeholder = "
|
|
122
|
+
obj.placeholder = translateLocaleText("t('common.placeholder.inputWithLabel')", {
|
|
123
|
+
label: config[key] || ''
|
|
124
|
+
});
|
|
122
125
|
}
|
|
123
126
|
obj[key] = config[key];
|
|
124
127
|
}
|
|
@@ -161,7 +164,9 @@ function renderView(modelElement, props) {
|
|
|
161
164
|
key = _step$value[0],
|
|
162
165
|
value = _step$value[1];
|
|
163
166
|
if (key == 'label') {
|
|
164
|
-
obj.placeholder = "
|
|
167
|
+
obj.placeholder = translateLocaleText("t('common.placeholder.inputWithLabel')", {
|
|
168
|
+
label: value || ''
|
|
169
|
+
});
|
|
165
170
|
}
|
|
166
171
|
obj[key] = value;
|
|
167
172
|
}
|
|
@@ -196,7 +201,7 @@ var CheckboxUI = /*#__PURE__*/function (_Plugin3) {
|
|
|
196
201
|
key: "init",
|
|
197
202
|
value: function init() {
|
|
198
203
|
var _this = this;
|
|
199
|
-
console.log('
|
|
204
|
+
console.log('custom checkbox UI initialized');
|
|
200
205
|
var editor = this.editor;
|
|
201
206
|
var t = editor.t;
|
|
202
207
|
this._balloon = this.editor.plugins.get(ContextualBalloon);
|
|
@@ -205,7 +210,7 @@ var CheckboxUI = /*#__PURE__*/function (_Plugin3) {
|
|
|
205
210
|
editor.ui.componentFactory.add('customCheckbox', function (locale) {
|
|
206
211
|
var buttonView = new ButtonView(locale);
|
|
207
212
|
buttonView.set({
|
|
208
|
-
label: t('
|
|
213
|
+
label: translateLocaleText("t('vtxzfmodal.ck.checkbox')"),
|
|
209
214
|
withText: true,
|
|
210
215
|
tooltip: false
|
|
211
216
|
});
|
|
@@ -22,6 +22,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
22
22
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
23
23
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
24
|
import { Plugin, Widget, ButtonView, ContextualBalloon, Command, clickOutsideHandler, toWidget } from "../../ckeditor/ckeditor";
|
|
25
|
+
import { translateLocaleText } from "../../../../../hooks/useTranslation.js";
|
|
25
26
|
import OpenPanelCommand from "../OpenPanelCommand";
|
|
26
27
|
import FormView from "./FormView";
|
|
27
28
|
import "./index.less";
|
|
@@ -51,7 +52,7 @@ var RadioEditing = /*#__PURE__*/function (_Plugin2) {
|
|
|
51
52
|
_createClass(RadioEditing, [{
|
|
52
53
|
key: "init",
|
|
53
54
|
value: function init() {
|
|
54
|
-
console.log('
|
|
55
|
+
console.log('custom radio editing initialized');
|
|
55
56
|
this._defineSchema();
|
|
56
57
|
this._defineConverters();
|
|
57
58
|
this.editor.commands.add('insertCustomRadio', new InsertCustomRadioCommand(this.editor));
|
|
@@ -118,7 +119,9 @@ var RadioEditing = /*#__PURE__*/function (_Plugin2) {
|
|
|
118
119
|
style += "width: ".concat(config[key], "px;");
|
|
119
120
|
} else {
|
|
120
121
|
if (key == 'label') {
|
|
121
|
-
obj.placeholder = "
|
|
122
|
+
obj.placeholder = translateLocaleText("t('common.placeholder.inputWithLabel')", {
|
|
123
|
+
label: config[key] || ''
|
|
124
|
+
});
|
|
122
125
|
}
|
|
123
126
|
obj[key] = config[key];
|
|
124
127
|
}
|
|
@@ -161,7 +164,9 @@ function renderView(modelElement, props) {
|
|
|
161
164
|
key = _step$value[0],
|
|
162
165
|
value = _step$value[1];
|
|
163
166
|
if (key == 'label') {
|
|
164
|
-
obj.placeholder = "
|
|
167
|
+
obj.placeholder = translateLocaleText("t('common.placeholder.inputWithLabel')", {
|
|
168
|
+
label: value || ''
|
|
169
|
+
});
|
|
165
170
|
}
|
|
166
171
|
obj[key] = value;
|
|
167
172
|
}
|
|
@@ -196,7 +201,7 @@ var RadioUI = /*#__PURE__*/function (_Plugin3) {
|
|
|
196
201
|
key: "init",
|
|
197
202
|
value: function init() {
|
|
198
203
|
var _this = this;
|
|
199
|
-
console.log('
|
|
204
|
+
console.log('custom radio UI initialized');
|
|
200
205
|
var editor = this.editor;
|
|
201
206
|
var t = editor.t;
|
|
202
207
|
this._balloon = this.editor.plugins.get(ContextualBalloon);
|
|
@@ -205,7 +210,7 @@ var RadioUI = /*#__PURE__*/function (_Plugin3) {
|
|
|
205
210
|
editor.ui.componentFactory.add('customRadio', function (locale) {
|
|
206
211
|
var buttonView = new ButtonView(locale);
|
|
207
212
|
buttonView.set({
|
|
208
|
-
label: t('
|
|
213
|
+
label: translateLocaleText("t('vtxzfmodal.ck.radio')"),
|
|
209
214
|
withText: true,
|
|
210
215
|
tooltip: false
|
|
211
216
|
});
|
|
@@ -14,6 +14,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
14
14
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
15
15
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
16
16
|
import { View, LabeledFieldView, createLabeledInputText, ButtonView, submitHandler, icons, LabelView } from "../../ckeditor/ckeditor";
|
|
17
|
+
import { translateLocaleText } from "../../../../../hooks/useTranslation.js";
|
|
17
18
|
var FormView = /*#__PURE__*/function (_View) {
|
|
18
19
|
_inherits(FormView, _View);
|
|
19
20
|
var _super = _createSuper(FormView);
|
|
@@ -21,12 +22,12 @@ var FormView = /*#__PURE__*/function (_View) {
|
|
|
21
22
|
var _this;
|
|
22
23
|
_classCallCheck(this, FormView);
|
|
23
24
|
_this = _super.call(this, locale);
|
|
24
|
-
_this.attrLabel = _this._createLabel("
|
|
25
|
-
_this.styleLabel = _this._createLabel("
|
|
26
|
-
_this.labelInputView = _this._createInput('
|
|
27
|
-
_this.nameInputView = _this._createInput('
|
|
28
|
-
_this.wordInputView = _this._createInput('
|
|
29
|
-
_this.orderInputView = _this._createInput('
|
|
25
|
+
_this.attrLabel = _this._createLabel(translateLocaleText("t('vtxzfmodal.ck.attribute')"));
|
|
26
|
+
_this.styleLabel = _this._createLabel(translateLocaleText("t('vtxzfmodal.ck.style')"));
|
|
27
|
+
_this.labelInputView = _this._createInput(translateLocaleText("t('vtxzfmodal.ck.fieldName')"));
|
|
28
|
+
_this.nameInputView = _this._createInput(translateLocaleText("t('vtxzfmodal.ck.field')"));
|
|
29
|
+
_this.wordInputView = _this._createInput(translateLocaleText("t('vtxzfmodal.ck.text')"));
|
|
30
|
+
_this.orderInputView = _this._createInput(translateLocaleText("t('vtxzfmodal.ck.orderNo')"));
|
|
30
31
|
|
|
31
32
|
// Create the save and cancel buttons.
|
|
32
33
|
_this.saveButtonView = _this._createButton('Save', icons.check, 'ck-button-save');
|
|
@@ -22,6 +22,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
22
22
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
23
23
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
24
|
import { Plugin, Widget, ButtonView, ContextualBalloon, Command, clickOutsideHandler, viewToModelPositionOutsideModelElement, toWidget } from "../../ckeditor/ckeditor";
|
|
25
|
+
import { translateLocaleText } from "../../../../../hooks/useTranslation.js";
|
|
25
26
|
import OpenPanelCommand from "../OpenPanelCommand";
|
|
26
27
|
import FormView from "./FormView";
|
|
27
28
|
import "./index.less";
|
|
@@ -51,7 +52,7 @@ var InputEditing = /*#__PURE__*/function (_Plugin2) {
|
|
|
51
52
|
_createClass(InputEditing, [{
|
|
52
53
|
key: "init",
|
|
53
54
|
value: function init() {
|
|
54
|
-
console.log('
|
|
55
|
+
console.log('custom signature image editing initialized');
|
|
55
56
|
this._defineSchema();
|
|
56
57
|
this._defineConverters();
|
|
57
58
|
this.editor.commands.add('insertCustomSign', new InsertCustomSignCommand(this.editor));
|
|
@@ -121,7 +122,9 @@ var InputEditing = /*#__PURE__*/function (_Plugin2) {
|
|
|
121
122
|
style += "width: ".concat(config[key], "px;");
|
|
122
123
|
} else {
|
|
123
124
|
if (key == 'label') {
|
|
124
|
-
obj.placeholder = "
|
|
125
|
+
obj.placeholder = translateLocaleText("t('common.placeholder.inputWithLabel')", {
|
|
126
|
+
label: config[key] || ''
|
|
127
|
+
});
|
|
125
128
|
}
|
|
126
129
|
obj[key] = config[key];
|
|
127
130
|
}
|
|
@@ -133,7 +136,7 @@ var InputEditing = /*#__PURE__*/function (_Plugin2) {
|
|
|
133
136
|
element = writer.createContainerElement('span', _objectSpread(_objectSpread({}, obj), {}, {
|
|
134
137
|
class: 'custom-sign vtx_ck_widgets'
|
|
135
138
|
}));
|
|
136
|
-
innerText = writer.createText("".concat(obj.word || '
|
|
139
|
+
innerText = writer.createText("".concat(obj.word || translateLocaleText("t('vtxzfmodal.ck.signDefaultWord')")));
|
|
137
140
|
writer.insert(writer.createPositionAt(element, 0), innerText);
|
|
138
141
|
}
|
|
139
142
|
// return element;
|
|
@@ -166,7 +169,9 @@ function renderView(modelElement, props) {
|
|
|
166
169
|
style += "width: ".concat(value, ";");
|
|
167
170
|
} else {
|
|
168
171
|
if (key == 'label') {
|
|
169
|
-
obj.placeholder = "
|
|
172
|
+
obj.placeholder = translateLocaleText("t('common.placeholder.inputWithLabel')", {
|
|
173
|
+
label: value || ''
|
|
174
|
+
});
|
|
170
175
|
}
|
|
171
176
|
obj[key] = value;
|
|
172
177
|
}
|
|
@@ -183,7 +188,7 @@ function renderView(modelElement, props) {
|
|
|
183
188
|
element = writer.createContainerElement('span', _objectSpread(_objectSpread({}, obj), {}, {
|
|
184
189
|
class: 'custom-sign'
|
|
185
190
|
}));
|
|
186
|
-
innerText = writer.createText("".concat(obj.word || '
|
|
191
|
+
innerText = writer.createText("".concat(obj.word || translateLocaleText("t('vtxzfmodal.ck.signDefaultWord')")));
|
|
187
192
|
writer.insert(writer.createPositionAt(element, 0), innerText);
|
|
188
193
|
}
|
|
189
194
|
return element;
|
|
@@ -199,7 +204,7 @@ var InputUI = /*#__PURE__*/function (_Plugin3) {
|
|
|
199
204
|
key: "init",
|
|
200
205
|
value: function init() {
|
|
201
206
|
var _this = this;
|
|
202
|
-
console.log('
|
|
207
|
+
console.log('custom signature image UI initialized');
|
|
203
208
|
var editor = this.editor;
|
|
204
209
|
var t = editor.t;
|
|
205
210
|
this._balloon = this.editor.plugins.get(ContextualBalloon);
|
|
@@ -208,7 +213,7 @@ var InputUI = /*#__PURE__*/function (_Plugin3) {
|
|
|
208
213
|
editor.ui.componentFactory.add('customSign', function (locale) {
|
|
209
214
|
var buttonView = new ButtonView(locale);
|
|
210
215
|
buttonView.set({
|
|
211
|
-
label: t('
|
|
216
|
+
label: translateLocaleText("t('vtxzfmodal.ck.signatureImage')"),
|
|
212
217
|
withText: true,
|
|
213
218
|
tooltip: false
|
|
214
219
|
});
|
|
@@ -14,6 +14,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
14
14
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
15
15
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
16
16
|
import { View, LabeledFieldView, createLabeledInputText, ButtonView, submitHandler, icons, LabelView } from "../../ckeditor/ckeditor";
|
|
17
|
+
import { translateLocaleText } from "../../../../../hooks/useTranslation.js";
|
|
17
18
|
var FormView = /*#__PURE__*/function (_View) {
|
|
18
19
|
_inherits(FormView, _View);
|
|
19
20
|
var _super = _createSuper(FormView);
|
|
@@ -21,12 +22,12 @@ var FormView = /*#__PURE__*/function (_View) {
|
|
|
21
22
|
var _this;
|
|
22
23
|
_classCallCheck(this, FormView);
|
|
23
24
|
_this = _super.call(this, locale);
|
|
24
|
-
_this.attrLabel = _this._createLabel("
|
|
25
|
-
_this.styleLabel = _this._createLabel("
|
|
26
|
-
_this.labelInputView = _this._createInput('
|
|
27
|
-
_this.nameInputView = _this._createInput('
|
|
25
|
+
_this.attrLabel = _this._createLabel(translateLocaleText("t('vtxzfmodal.ck.attribute')"));
|
|
26
|
+
_this.styleLabel = _this._createLabel(translateLocaleText("t('vtxzfmodal.ck.style')"));
|
|
27
|
+
_this.labelInputView = _this._createInput(translateLocaleText("t('vtxzfmodal.ck.fieldName')"));
|
|
28
|
+
_this.nameInputView = _this._createInput(translateLocaleText("t('vtxzfmodal.ck.field')"));
|
|
28
29
|
_this.rowsInputView = _this._createInput('Rows');
|
|
29
|
-
_this.orderInputView = _this._createInput('
|
|
30
|
+
_this.orderInputView = _this._createInput(translateLocaleText("t('vtxzfmodal.ck.orderNo')"));
|
|
30
31
|
|
|
31
32
|
// Create the save and cancel buttons.
|
|
32
33
|
_this.saveButtonView = _this._createButton('Save', icons.check, 'ck-button-save');
|
|
@@ -22,6 +22,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
22
22
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
23
23
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
24
24
|
import { Plugin, Widget, ButtonView, ContextualBalloon, Command, clickOutsideHandler, toWidget } from "../../ckeditor/ckeditor";
|
|
25
|
+
import { translateLocaleText } from "../../../../../hooks/useTranslation.js";
|
|
25
26
|
import OpenPanelCommand from "../OpenPanelCommand";
|
|
26
27
|
import FormView from "./FormView";
|
|
27
28
|
import "./index.less";
|
|
@@ -51,7 +52,7 @@ var InputEditing = /*#__PURE__*/function (_Plugin2) {
|
|
|
51
52
|
_createClass(InputEditing, [{
|
|
52
53
|
key: "init",
|
|
53
54
|
value: function init() {
|
|
54
|
-
console.log('
|
|
55
|
+
console.log('custom textarea editing initialized');
|
|
55
56
|
this._defineSchema();
|
|
56
57
|
this._defineConverters();
|
|
57
58
|
this.editor.commands.add('insertCustomTextarea', new InsertCustomTextareaCommand(this.editor));
|
|
@@ -118,7 +119,9 @@ var InputEditing = /*#__PURE__*/function (_Plugin2) {
|
|
|
118
119
|
style += "width: ".concat(config[key], "px;");
|
|
119
120
|
} else {
|
|
120
121
|
if (key == 'label') {
|
|
121
|
-
obj.placeholder = "
|
|
122
|
+
obj.placeholder = translateLocaleText("t('common.placeholder.inputWithLabel')", {
|
|
123
|
+
label: config[key] || ''
|
|
124
|
+
});
|
|
122
125
|
}
|
|
123
126
|
obj[key] = config[key];
|
|
124
127
|
}
|
|
@@ -159,7 +162,9 @@ function renderView(modelElement, props) {
|
|
|
159
162
|
style += "width: ".concat(value, ";");
|
|
160
163
|
} else {
|
|
161
164
|
if (key == 'label') {
|
|
162
|
-
obj.placeholder = "
|
|
165
|
+
obj.placeholder = translateLocaleText("t('common.placeholder.inputWithLabel')", {
|
|
166
|
+
label: value || ''
|
|
167
|
+
});
|
|
163
168
|
}
|
|
164
169
|
obj[key] = value;
|
|
165
170
|
}
|
|
@@ -189,7 +194,7 @@ var InputUI = /*#__PURE__*/function (_Plugin3) {
|
|
|
189
194
|
key: "init",
|
|
190
195
|
value: function init() {
|
|
191
196
|
var _this = this;
|
|
192
|
-
console.log('
|
|
197
|
+
console.log('custom textarea UI initialized');
|
|
193
198
|
var editor = this.editor;
|
|
194
199
|
var t = editor.t;
|
|
195
200
|
this._balloon = this.editor.plugins.get(ContextualBalloon);
|
|
@@ -198,7 +203,7 @@ var InputUI = /*#__PURE__*/function (_Plugin3) {
|
|
|
198
203
|
editor.ui.componentFactory.add('customTextarea', function (locale) {
|
|
199
204
|
var buttonView = new ButtonView(locale);
|
|
200
205
|
buttonView.set({
|
|
201
|
-
label: t('
|
|
206
|
+
label: translateLocaleText("t('vtxzfmodal.ck.textarea')"),
|
|
202
207
|
withText: true,
|
|
203
208
|
tooltip: false
|
|
204
209
|
});
|
|
@@ -3,14 +3,15 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
3
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
4
4
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
|
+
import Appraisal from "../_components/vm-appraisal-info";
|
|
6
7
|
import VmRepairMaintain from "../_components/vm-repair-maintain";
|
|
7
8
|
import useGetChannels from "../_hooks/useGetChannels";
|
|
8
9
|
import { BaseInfo as DefaultBaseInfo } from "../vtx-default-modal/components";
|
|
9
|
-
import { BaseInfo, Calendar, Metering, WorkCondition } from "../vtx-df-modal/components";
|
|
10
|
+
import { BaseInfo, BaseInfoZdReborn, Calendar, CalendarZdReborn, Metering, MeteringZdReborn, WorkCondition } from "../vtx-df-modal/components";
|
|
10
11
|
import { translateLocaleText } from "./../hooks/useTranslation.js";
|
|
11
12
|
// import Appraisal from '../vm-appraisal-info';
|
|
12
13
|
import VmCustom from "../_components/vm-custom";
|
|
13
|
-
import VmVideo from "../_components/vm-video";
|
|
14
|
+
import VmVideo, { insertVideoTab } from "../_components/vm-video";
|
|
14
15
|
import useGetConfig from "../_hooks/useGetConfig";
|
|
15
16
|
import { CommonService } from "../_service";
|
|
16
17
|
import VtxBaseModal from "../vtx-base-modal";
|
|
@@ -38,7 +39,9 @@ var VtxDfModal = function VtxDfModal(props) {
|
|
|
38
39
|
customMapInfo = props.customMapInfo,
|
|
39
40
|
tabChose = props.tabChose,
|
|
40
41
|
_props$showCollect = props.showCollect,
|
|
41
|
-
showCollect = _props$showCollect === void 0 ? true : _props$showCollect
|
|
42
|
+
showCollect = _props$showCollect === void 0 ? true : _props$showCollect,
|
|
43
|
+
_props$zdReborn = props.zdReborn,
|
|
44
|
+
zdReborn = _props$zdReborn === void 0 ? false : _props$zdReborn;
|
|
42
45
|
var _CommonService$useBas = CommonService.useBaseInfo(id, (customMapInfo === null || customMapInfo === void 0 ? void 0 : customMapInfo.coordinate) || 'wgs84'),
|
|
43
46
|
info = _CommonService$useBas.info,
|
|
44
47
|
photos = _CommonService$useBas.photos;
|
|
@@ -47,18 +50,20 @@ var VtxDfModal = function VtxDfModal(props) {
|
|
|
47
50
|
title: translateLocaleText("t('vtxdefaultmodal.overviewInformation')")
|
|
48
51
|
}, {
|
|
49
52
|
key: TABS_METERING,
|
|
50
|
-
title: '
|
|
53
|
+
title: translateLocaleText("t('vtxdfmodal.meteringInformation')")
|
|
51
54
|
}, {
|
|
52
55
|
key: TABS_WC,
|
|
53
|
-
title: '
|
|
56
|
+
title: translateLocaleText("t('vtxdfmodal.workConditionInformation')")
|
|
54
57
|
}];
|
|
55
58
|
var _useGetConfig = useGetConfig(info === null || info === void 0 ? void 0 : info.typeCode, tabs),
|
|
56
59
|
tabsData = _useGetConfig.tabsData;
|
|
57
|
-
var _CommonService
|
|
58
|
-
detail = _CommonService
|
|
60
|
+
var _CommonService = CommonService[zdReborn ? 'useLmDetailZdReborn' : 'useLmDetail'](id),
|
|
61
|
+
detail = _CommonService.detail;
|
|
59
62
|
var _BaseService$useRealt = BaseService.useRealtimeMonitor(info === null || info === void 0 ? void 0 : info.code),
|
|
60
63
|
realtimeMonitor = _BaseService$useRealt.realtimeMonitor;
|
|
61
|
-
var _useGetChannels = useGetChannels("".concat(info === null || info === void 0 ? void 0 : info.typeCode, "_").concat(info === null || info === void 0 ? void 0 : info.code), !!(info !== null && info !== void 0 && info.typeCode))
|
|
64
|
+
var _useGetChannels = useGetChannels("".concat(info === null || info === void 0 ? void 0 : info.typeCode, "_").concat(info === null || info === void 0 ? void 0 : info.code), !!(info !== null && info !== void 0 && info.typeCode) && (tabsData === null || tabsData === void 0 ? void 0 : tabsData.findIndex(function (ele) {
|
|
65
|
+
return ele.key === 'video';
|
|
66
|
+
})) > -1),
|
|
62
67
|
channels = _useGetChannels.channels;
|
|
63
68
|
// realtimeRes为空则无工况,beenWeigh为false则无计量
|
|
64
69
|
var tabsList = useMemo(function () {
|
|
@@ -68,36 +73,37 @@ var VtxDfModal = function VtxDfModal(props) {
|
|
|
68
73
|
return ele.key !== 'metering';
|
|
69
74
|
});
|
|
70
75
|
}
|
|
71
|
-
|
|
72
|
-
return ele.key === 'video';
|
|
73
|
-
}) > -1) {
|
|
74
|
-
if ((channels === null || channels === void 0 ? void 0 : channels.length) < 1) {
|
|
75
|
-
tabsList = tabsList.filter(function (ele) {
|
|
76
|
-
return ele.key !== 'video';
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return tabsList;
|
|
76
|
+
return insertVideoTab(tabsList, channels);
|
|
81
77
|
}, [JSON.stringify(tabsData), JSON.stringify(channels), JSON.stringify(detail)]);
|
|
82
|
-
var
|
|
78
|
+
var ZLBase = zdReborn ? BaseInfoZdReborn : BaseInfo;
|
|
79
|
+
var contents = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, !(detail !== null && detail !== void 0 && detail.beenWeigh) && !(realtimeMonitor !== null && realtimeMonitor !== void 0 && realtimeMonitor.length) ? /*#__PURE__*/_jsx(DefaultBaseInfo, {
|
|
83
80
|
id: id,
|
|
84
81
|
info: info,
|
|
85
82
|
photos: photos,
|
|
86
83
|
mapCenter: mapCenter,
|
|
87
84
|
customMapInfo: customMapInfo
|
|
88
|
-
}) : /*#__PURE__*/_jsx(
|
|
85
|
+
}) : /*#__PURE__*/_jsx(ZLBase, {
|
|
89
86
|
code: info === null || info === void 0 ? void 0 : info.code,
|
|
90
87
|
hasLm: detail === null || detail === void 0 ? void 0 : detail.beenWeigh,
|
|
91
88
|
realtimeMonitor: realtimeMonitor,
|
|
92
89
|
info: info,
|
|
93
90
|
photos: photos
|
|
94
|
-
})), TABS_METERING, /*#__PURE__*/_jsx(
|
|
91
|
+
})), TABS_METERING, zdReborn ? /*#__PURE__*/_jsx(MeteringZdReborn, {
|
|
92
|
+
id: id,
|
|
93
|
+
deviceId: detail === null || detail === void 0 ? void 0 : detail.deviceId
|
|
94
|
+
}) : /*#__PURE__*/_jsx(Metering, {
|
|
95
95
|
id: id
|
|
96
96
|
})), TABS_WC, /*#__PURE__*/_jsx(WorkCondition, {
|
|
97
97
|
id: id,
|
|
98
98
|
code: info === null || info === void 0 ? void 0 : info.code
|
|
99
|
-
})), TABS_Calendar, /*#__PURE__*/_jsx(
|
|
99
|
+
})), TABS_Calendar, zdReborn ? /*#__PURE__*/_jsx(CalendarZdReborn, {
|
|
100
|
+
code: info === null || info === void 0 ? void 0 : info.code,
|
|
101
|
+
deviceId: detail === null || detail === void 0 ? void 0 : detail.deviceId,
|
|
102
|
+
handleAbility: detail === null || detail === void 0 ? void 0 : detail.handleAbility
|
|
103
|
+
}) : /*#__PURE__*/_jsx(Calendar, {
|
|
100
104
|
code: info === null || info === void 0 ? void 0 : info.code
|
|
105
|
+
})), TABS_APPRAISAL, /*#__PURE__*/_jsx(Appraisal, {
|
|
106
|
+
id: id
|
|
101
107
|
})), TABS_RM, /*#__PURE__*/_jsx(VmRepairMaintain, {
|
|
102
108
|
id: id
|
|
103
109
|
})), TABS_VIDEO, /*#__PURE__*/_jsx(VmVideo, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtx/modals2",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.10",
|
|
4
4
|
"description": "弹窗组件",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"@types/react-dom": "^18.0.0",
|
|
52
52
|
"@umijs/lint": "^4.0.0",
|
|
53
53
|
"@vtx/components": "^4.0.0-beta.58",
|
|
54
|
+
"@vtx/map-icon": "^2.0.62",
|
|
54
55
|
"@vtx/ol-map": "^2.0.0-beta.16",
|
|
55
|
-
"@vtx/player": "
|
|
56
|
+
"@vtx/player": "^1.12.7",
|
|
56
57
|
"@vtx/utils": "^1.0.20",
|
|
57
|
-
"ol": "6.15.1",
|
|
58
58
|
"antd": "6.0.0",
|
|
59
59
|
"antd-dayjs-webpack-plugin": "^1.0.6",
|
|
60
60
|
"babel-eslint": "^10.1.0",
|
|
@@ -65,22 +65,22 @@
|
|
|
65
65
|
"father": "^4.1.0",
|
|
66
66
|
"husky": "^8.0.1",
|
|
67
67
|
"lint-staged": "^13.0.3",
|
|
68
|
+
"ol": "6.15.1",
|
|
68
69
|
"prettier": "^2.7.1",
|
|
69
70
|
"prettier-plugin-organize-imports": "^3.0.0",
|
|
70
71
|
"prettier-plugin-packagejson": "^2.2.18",
|
|
71
72
|
"react": "18.0.0",
|
|
72
73
|
"react-dom": "18.0.0",
|
|
73
|
-
"stylelint": "^14.9.1"
|
|
74
|
-
"@vtx/map-icon": "^2.0.62"
|
|
74
|
+
"stylelint": "^14.9.1"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"antd": ">=6",
|
|
78
77
|
"@ant-design/icons": ">=6",
|
|
79
78
|
"@vtx/components": ">=4.0.0-beta.0",
|
|
80
79
|
"@vtx/map-icon": ">=2.0.0",
|
|
81
80
|
"@vtx/ol-map": ">=2.0.0-beta.0",
|
|
82
81
|
"@vtx/player": ">=1.0.0",
|
|
83
82
|
"@vtx/utils": ">=1.0.20",
|
|
83
|
+
"antd": ">=6",
|
|
84
84
|
"ol": ">=6.15.1",
|
|
85
85
|
"react": ">=18",
|
|
86
86
|
"react-dom": ">=18"
|