@byteluck-fe/model-driven-core 7.0.0-props.94 → 7.1.0-beta.0
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/README.md +7 -0
- package/dist/contracts/index.js +1 -0
- package/dist/contracts/index.mjs +1 -0
- package/dist/esm/common/BaseControl/designer.js +47 -29
- package/dist/esm/common/BaseControl/property.js +44 -33
- package/dist/esm/common/BaseControl/runtime.js +3 -9
- package/dist/esm/common/ColumnControl/designer.js +17 -29
- package/dist/esm/common/ColumnControl/property.js +44 -22
- package/dist/esm/common/ColumnControl/runtime.js +12 -20
- package/dist/esm/common/ControlArray.js +4 -2
- package/dist/esm/common/FormControl/designer.js +12 -20
- package/dist/esm/common/FormControl/property.js +16 -21
- package/dist/esm/common/FormControl/runtime.js +12 -20
- package/dist/esm/common/LayoutControl/designer.js +36 -51
- package/dist/esm/common/LayoutControl/property.js +15 -18
- package/dist/esm/common/LayoutControl/runtime.js +12 -20
- package/dist/esm/common/ListControl/designer.js +35 -48
- package/dist/esm/common/ListControl/property.js +29 -22
- package/dist/esm/common/ListControl/runtime.js +12 -20
- package/dist/esm/common/SearchViewControl/designer.js +12 -20
- package/dist/esm/common/SearchViewControl/property.js +19 -22
- package/dist/esm/common/SearchViewControl/runtime.js +12 -20
- package/dist/esm/common/WrapControl/designer.js +12 -20
- package/dist/esm/common/WrapControl/property.js +15 -18
- package/dist/esm/common/WrapControl/runtime.js +12 -20
- package/dist/esm/contracts/build-info.js +36 -0
- package/dist/esm/contracts/diagnostics.js +29 -0
- package/dist/esm/contracts/index.js +4 -0
- package/dist/esm/contracts/page-model.js +1 -0
- package/dist/esm/contracts/versions.js +9 -0
- package/dist/esm/framework/RegisterControls.js +2 -6
- package/dist/esm/framework/index.js +216 -20
- package/dist/index.umd.js +3 -1
- package/dist/types/common/BaseControl/designer.d.ts +14 -0
- package/dist/types/common/BaseControl/property.d.ts +28 -0
- package/dist/types/common/ColumnControl/property.d.ts +42 -0
- package/dist/types/common/LayoutControl/property.d.ts +4 -0
- package/dist/types/common/ListControl/property.d.ts +22 -0
- package/dist/types/common/SearchViewControl/property.d.ts +7 -0
- package/dist/types/common/WrapControl/property.d.ts +4 -0
- package/dist/types/contracts/build-info.d.ts +25 -0
- package/dist/types/contracts/diagnostics.d.ts +14 -0
- package/dist/types/contracts/index.d.ts +4 -0
- package/dist/types/contracts/page-model.d.ts +72 -0
- package/dist/types/contracts/versions.d.ts +16 -0
- package/dist/types/framework/index.d.ts +195 -0
- package/package.json +27 -5
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
function _assert_this_initialized(self) {
|
|
2
|
-
if (self === void 0)
|
|
3
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
-
}
|
|
2
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5
3
|
return self;
|
|
6
4
|
}
|
|
7
5
|
function _call_super(_this, derived, args) {
|
|
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
|
|
|
9
7
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
8
|
}
|
|
11
9
|
function _class_call_check(instance, Constructor) {
|
|
12
|
-
if (!(instance instanceof Constructor))
|
|
13
|
-
throw new TypeError("Cannot call a class as a function");
|
|
14
|
-
}
|
|
10
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
15
11
|
}
|
|
16
12
|
function _define_property(obj, key, value) {
|
|
17
13
|
if (key in obj) {
|
|
@@ -21,9 +17,7 @@ function _define_property(obj, key, value) {
|
|
|
21
17
|
configurable: true,
|
|
22
18
|
writable: true
|
|
23
19
|
});
|
|
24
|
-
} else
|
|
25
|
-
obj[key] = value;
|
|
26
|
-
}
|
|
20
|
+
} else obj[key] = value;
|
|
27
21
|
return obj;
|
|
28
22
|
}
|
|
29
23
|
function _get_prototype_of(o) {
|
|
@@ -45,10 +39,16 @@ function _inherits(subClass, superClass) {
|
|
|
45
39
|
});
|
|
46
40
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
47
41
|
}
|
|
42
|
+
function _is_native_reflect_construct() {
|
|
43
|
+
try {
|
|
44
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
45
|
+
} catch (_) {}
|
|
46
|
+
return (_is_native_reflect_construct = function() {
|
|
47
|
+
return !!result;
|
|
48
|
+
})();
|
|
49
|
+
}
|
|
48
50
|
function _possible_constructor_return(self, call) {
|
|
49
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
50
|
-
return call;
|
|
51
|
-
}
|
|
51
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
52
52
|
return _assert_this_initialized(self);
|
|
53
53
|
}
|
|
54
54
|
function _set_prototype_of(o, p) {
|
|
@@ -62,14 +62,6 @@ function _type_of(obj) {
|
|
|
62
62
|
"@swc/helpers - typeof";
|
|
63
63
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
64
|
}
|
|
65
|
-
function _is_native_reflect_construct() {
|
|
66
|
-
try {
|
|
67
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
-
} catch (_) {}
|
|
69
|
-
return (_is_native_reflect_construct = function() {
|
|
70
|
-
return !!result;
|
|
71
|
-
})();
|
|
72
|
-
}
|
|
73
65
|
import { getLocaleText } from '@byteluck-fe/locale-message';
|
|
74
66
|
import { FieldTypes, genNonDuplicateId } from '@byteluck-fe/model-driven-shared';
|
|
75
67
|
export * from './RegisterControls';
|
|
@@ -642,6 +634,210 @@ export var DataSourceParamItem = function DataSourceParamItem(props) {
|
|
|
642
634
|
this.openAssignDepartment = (_ref7 = props === null || props === void 0 ? void 0 : props.openAssignDepartment) !== null && _ref7 !== void 0 ? _ref7 : false;
|
|
643
635
|
callFiltersAndOrders.call(this, props);
|
|
644
636
|
};
|
|
637
|
+
/**
|
|
638
|
+
* 业务行动绑定配置
|
|
639
|
+
* @public
|
|
640
|
+
*/ export var ActionSourceBind = function ActionSourceBind(props) {
|
|
641
|
+
"use strict";
|
|
642
|
+
_class_call_check(this, ActionSourceBind);
|
|
643
|
+
var _ref, _ref1, _ref2;
|
|
644
|
+
/**
|
|
645
|
+
* 应用Id
|
|
646
|
+
* @defaultValue ''
|
|
647
|
+
* @public
|
|
648
|
+
*/ _define_property(this, "appId", void 0);
|
|
649
|
+
/**
|
|
650
|
+
* 绑定数据源id
|
|
651
|
+
* @defaultValue ''
|
|
652
|
+
* @public
|
|
653
|
+
*/ _define_property(this, "dataCode", void 0);
|
|
654
|
+
/**
|
|
655
|
+
* 业务行动编码
|
|
656
|
+
* @defaultValue ''
|
|
657
|
+
* @public
|
|
658
|
+
*/ _define_property(this, "actionCode", void 0);
|
|
659
|
+
this.appId = (_ref = props === null || props === void 0 ? void 0 : props.appId) !== null && _ref !== void 0 ? _ref : '';
|
|
660
|
+
this.dataCode = (_ref1 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
661
|
+
this.actionCode = (_ref2 = props === null || props === void 0 ? void 0 : props.actionCode) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
662
|
+
};
|
|
663
|
+
/**
|
|
664
|
+
* 业务行动服务信息
|
|
665
|
+
* @public
|
|
666
|
+
*/ export var BizActionServiceName = function BizActionServiceName(props) {
|
|
667
|
+
"use strict";
|
|
668
|
+
_class_call_check(this, BizActionServiceName);
|
|
669
|
+
var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
|
|
670
|
+
/**
|
|
671
|
+
* 业务行动编码
|
|
672
|
+
* @defaultValue ''
|
|
673
|
+
* @public
|
|
674
|
+
*/ _define_property(this, "actionCode", void 0);
|
|
675
|
+
/**
|
|
676
|
+
* 数据编码
|
|
677
|
+
* @defaultValue ''
|
|
678
|
+
* @public
|
|
679
|
+
*/ _define_property(this, "dataCode", void 0);
|
|
680
|
+
/**
|
|
681
|
+
* 名称
|
|
682
|
+
* @defaultValue ''
|
|
683
|
+
* @public
|
|
684
|
+
*/ _define_property(this, "name", void 0);
|
|
685
|
+
/**
|
|
686
|
+
* 应用名称
|
|
687
|
+
* @defaultValue ''
|
|
688
|
+
* @public
|
|
689
|
+
*/ _define_property(this, "appName", void 0);
|
|
690
|
+
/**
|
|
691
|
+
* 数据名称
|
|
692
|
+
* @defaultValue ''
|
|
693
|
+
* @public
|
|
694
|
+
*/ _define_property(this, "dataName", void 0);
|
|
695
|
+
/**
|
|
696
|
+
* 业务行动名称
|
|
697
|
+
* @defaultValue ''
|
|
698
|
+
* @public
|
|
699
|
+
*/ _define_property(this, "actionName", void 0);
|
|
700
|
+
/**
|
|
701
|
+
* 展示名称
|
|
702
|
+
* @defaultValue ''
|
|
703
|
+
* @public
|
|
704
|
+
*/ _define_property(this, "displayName", void 0);
|
|
705
|
+
/**
|
|
706
|
+
* 服务类型
|
|
707
|
+
* @defaultValue ''
|
|
708
|
+
* @public
|
|
709
|
+
*/ _define_property(this, "svcTypeEnum", void 0);
|
|
710
|
+
this.actionCode = (_ref = props === null || props === void 0 ? void 0 : props.actionCode) !== null && _ref !== void 0 ? _ref : '';
|
|
711
|
+
this.dataCode = (_ref1 = props === null || props === void 0 ? void 0 : props.dataCode) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
712
|
+
this.name = (_ref2 = props === null || props === void 0 ? void 0 : props.name) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
713
|
+
this.appName = (_ref3 = props === null || props === void 0 ? void 0 : props.appName) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
714
|
+
this.dataName = (_ref4 = props === null || props === void 0 ? void 0 : props.dataName) !== null && _ref4 !== void 0 ? _ref4 : '';
|
|
715
|
+
this.actionName = (_ref5 = props === null || props === void 0 ? void 0 : props.actionName) !== null && _ref5 !== void 0 ? _ref5 : '';
|
|
716
|
+
this.displayName = (_ref6 = props === null || props === void 0 ? void 0 : props.displayName) !== null && _ref6 !== void 0 ? _ref6 : '';
|
|
717
|
+
this.svcTypeEnum = (_ref7 = props === null || props === void 0 ? void 0 : props.svcTypeEnum) !== null && _ref7 !== void 0 ? _ref7 : '';
|
|
718
|
+
};
|
|
719
|
+
/**
|
|
720
|
+
* 业务行动右值变量
|
|
721
|
+
* @public
|
|
722
|
+
*/ export var BizActionRightVariable = function BizActionRightVariable(props) {
|
|
723
|
+
"use strict";
|
|
724
|
+
_class_call_check(this, BizActionRightVariable);
|
|
725
|
+
var _ref, _ref1, _ref2;
|
|
726
|
+
/**
|
|
727
|
+
* 变量类型
|
|
728
|
+
* @defaultValue 'custom'
|
|
729
|
+
* @public
|
|
730
|
+
*/ _define_property(this, "type", void 0);
|
|
731
|
+
/**
|
|
732
|
+
* 变量值
|
|
733
|
+
* @defaultValue []
|
|
734
|
+
* @public
|
|
735
|
+
*/ _define_property(this, "value", void 0);
|
|
736
|
+
/**
|
|
737
|
+
* 展示对象
|
|
738
|
+
* @defaultValue []
|
|
739
|
+
* @public
|
|
740
|
+
*/ _define_property(this, "displayBos", void 0);
|
|
741
|
+
this.type = (_ref = props === null || props === void 0 ? void 0 : props.type) !== null && _ref !== void 0 ? _ref : 'custom';
|
|
742
|
+
this.value = (_ref1 = props === null || props === void 0 ? void 0 : props.value) !== null && _ref1 !== void 0 ? _ref1 : [];
|
|
743
|
+
this.displayBos = (_ref2 = props === null || props === void 0 ? void 0 : props.displayBos) !== null && _ref2 !== void 0 ? _ref2 : [];
|
|
744
|
+
};
|
|
745
|
+
/**
|
|
746
|
+
* 业务行动入参
|
|
747
|
+
* @public
|
|
748
|
+
*/ export var BizActionInputParam = function BizActionInputParam(props) {
|
|
749
|
+
"use strict";
|
|
750
|
+
_class_call_check(this, BizActionInputParam);
|
|
751
|
+
var _ref, _ref1, _ref2, _ref3;
|
|
752
|
+
/**
|
|
753
|
+
* 参数ID
|
|
754
|
+
* @defaultValue ''
|
|
755
|
+
* @public
|
|
756
|
+
*/ _define_property(this, "id", void 0);
|
|
757
|
+
/**
|
|
758
|
+
* 参数名称
|
|
759
|
+
* @defaultValue ''
|
|
760
|
+
* @public
|
|
761
|
+
*/ _define_property(this, "name", void 0);
|
|
762
|
+
/**
|
|
763
|
+
* 是否必填
|
|
764
|
+
* @defaultValue false
|
|
765
|
+
* @public
|
|
766
|
+
*/ _define_property(this, "required", void 0);
|
|
767
|
+
/**
|
|
768
|
+
* 参数类型
|
|
769
|
+
* @defaultValue ''
|
|
770
|
+
* @public
|
|
771
|
+
*/ _define_property(this, "paramType", void 0);
|
|
772
|
+
/**
|
|
773
|
+
* 参数右值变量
|
|
774
|
+
* @defaultValue new BizActionRightVariable()
|
|
775
|
+
* @public
|
|
776
|
+
*/ _define_property(this, "rightVariableBo", void 0);
|
|
777
|
+
/**
|
|
778
|
+
* Child params for object/list_object action params.
|
|
779
|
+
* @public
|
|
780
|
+
*/ _define_property(this, "children", void 0);
|
|
781
|
+
this.id = (_ref = props === null || props === void 0 ? void 0 : props.id) !== null && _ref !== void 0 ? _ref : '';
|
|
782
|
+
this.name = (_ref1 = props === null || props === void 0 ? void 0 : props.name) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
783
|
+
this.required = (_ref2 = props === null || props === void 0 ? void 0 : props.required) !== null && _ref2 !== void 0 ? _ref2 : false;
|
|
784
|
+
this.paramType = (_ref3 = props === null || props === void 0 ? void 0 : props.paramType) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
785
|
+
this.rightVariableBo = new BizActionRightVariable(props === null || props === void 0 ? void 0 : props.rightVariableBo);
|
|
786
|
+
if (Array.isArray(props === null || props === void 0 ? void 0 : props.children)) {
|
|
787
|
+
this.children = props === null || props === void 0 ? void 0 : props.children.map(function(item) {
|
|
788
|
+
return new BizActionInputParam(item);
|
|
789
|
+
});
|
|
790
|
+
}
|
|
791
|
+
};
|
|
792
|
+
/**
|
|
793
|
+
* 业务行动配置
|
|
794
|
+
* @public
|
|
795
|
+
*/ export var BizActionObject = function BizActionObject(props) {
|
|
796
|
+
"use strict";
|
|
797
|
+
_class_call_check(this, BizActionObject);
|
|
798
|
+
var _ref;
|
|
799
|
+
var _props_inputParam;
|
|
800
|
+
/**
|
|
801
|
+
* 服务信息
|
|
802
|
+
* @defaultValue new BizActionServiceName()
|
|
803
|
+
* @public
|
|
804
|
+
*/ _define_property(this, "serviceName", void 0);
|
|
805
|
+
/**
|
|
806
|
+
* 入参列表
|
|
807
|
+
* @defaultValue []
|
|
808
|
+
* @public
|
|
809
|
+
*/ _define_property(this, "inputParam", void 0);
|
|
810
|
+
this.serviceName = new BizActionServiceName(props === null || props === void 0 ? void 0 : props.serviceName);
|
|
811
|
+
this.inputParam = (_ref = props === null || props === void 0 ? void 0 : (_props_inputParam = props.inputParam) === null || _props_inputParam === void 0 ? void 0 : _props_inputParam.map(function(item) {
|
|
812
|
+
return new BizActionInputParam(item);
|
|
813
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
814
|
+
};
|
|
815
|
+
/**
|
|
816
|
+
* 操作行动项配置
|
|
817
|
+
* @public
|
|
818
|
+
*/ export var ActionObject = function ActionObject(props) {
|
|
819
|
+
"use strict";
|
|
820
|
+
_class_call_check(this, ActionObject);
|
|
821
|
+
var _ref, _ref1;
|
|
822
|
+
/**
|
|
823
|
+
* 行动编码
|
|
824
|
+
* @defaultValue ''
|
|
825
|
+
* @public
|
|
826
|
+
*/ _define_property(this, "actionCode", void 0);
|
|
827
|
+
/**
|
|
828
|
+
* 行动类型
|
|
829
|
+
* @defaultValue ''
|
|
830
|
+
* @public
|
|
831
|
+
*/ _define_property(this, "actionType", void 0);
|
|
832
|
+
/**
|
|
833
|
+
* 业务行动配置
|
|
834
|
+
* @defaultValue new BizActionObject()
|
|
835
|
+
* @public
|
|
836
|
+
*/ _define_property(this, "bizAction", void 0);
|
|
837
|
+
this.actionCode = (_ref = props === null || props === void 0 ? void 0 : props.actionCode) !== null && _ref !== void 0 ? _ref : '';
|
|
838
|
+
this.actionType = (_ref1 = props === null || props === void 0 ? void 0 : props.actionType) !== null && _ref1 !== void 0 ? _ref1 : '';
|
|
839
|
+
this.bizAction = new BizActionObject(props === null || props === void 0 ? void 0 : props.bizAction);
|
|
840
|
+
};
|
|
645
841
|
export var SelectedContentConfig = function SelectedContentConfig(props) {
|
|
646
842
|
"use strict";
|
|
647
843
|
_class_call_check(this, SelectedContentConfig);
|