@farris/jit-engine 1.3.352 → 1.3.353
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 +5 -1
- package/lib/domstructure/ui/common/absctract_dom.js +2 -2
- package/lib/domstructure/ui/common/appearance.js +35 -35
- package/lib/domstructure/ui/common/background.js +33 -33
- package/lib/domstructure/ui/common/base-title-component.js +46 -46
- package/lib/domstructure/ui/common/basecomponent.js +160 -160
- package/lib/domstructure/ui/common/binding.js +164 -164
- package/lib/domstructure/ui/common/binding.js.map +1 -1
- package/lib/domstructure/ui/common/border.js +39 -39
- package/lib/domstructure/ui/common/font.js +38 -38
- package/lib/domstructure/ui/common/index.js +21 -21
- package/lib/domstructure/ui/common/margin.js +39 -39
- package/lib/domstructure/ui/common/padding.js +39 -39
- package/lib/domstructure/ui/common/size.js +34 -34
- package/lib/domstructure/ui/common/visible.js +69 -69
- package/package.json +1 -1
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Padding = void 0;
|
|
4
|
-
const utility_1 = require("../../../utility");
|
|
5
|
-
class Padding {
|
|
6
|
-
constructor(param) {
|
|
7
|
-
let obj;
|
|
8
|
-
if (typeof param === 'string') {
|
|
9
|
-
obj = utility_1.ToolHelper.convertToJsonOrDefault(param);
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
obj = param;
|
|
13
|
-
}
|
|
14
|
-
if (!obj) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const keys = 'left,top,right,bottom,all,horizental,vertical';
|
|
18
|
-
Object.keys(obj).forEach(key => {
|
|
19
|
-
if (keys.includes(key)) {
|
|
20
|
-
this[key] = obj[key];
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
toJSON() {
|
|
25
|
-
return {
|
|
26
|
-
"left": this.left,
|
|
27
|
-
"top": this.top,
|
|
28
|
-
"right": this.right,
|
|
29
|
-
"bottom": this.bottom,
|
|
30
|
-
"all": this.all,
|
|
31
|
-
"horizental": this.horizental,
|
|
32
|
-
"vertical": this.vertical
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
toString() {
|
|
36
|
-
return JSON.stringify(this.toJSON());
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
exports.Padding = Padding;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Padding = void 0;
|
|
4
|
+
const utility_1 = require("../../../utility");
|
|
5
|
+
class Padding {
|
|
6
|
+
constructor(param) {
|
|
7
|
+
let obj;
|
|
8
|
+
if (typeof param === 'string') {
|
|
9
|
+
obj = utility_1.ToolHelper.convertToJsonOrDefault(param);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
obj = param;
|
|
13
|
+
}
|
|
14
|
+
if (!obj) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
const keys = 'left,top,right,bottom,all,horizental,vertical';
|
|
18
|
+
Object.keys(obj).forEach(key => {
|
|
19
|
+
if (keys.includes(key)) {
|
|
20
|
+
this[key] = obj[key];
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
toJSON() {
|
|
25
|
+
return {
|
|
26
|
+
"left": this.left,
|
|
27
|
+
"top": this.top,
|
|
28
|
+
"right": this.right,
|
|
29
|
+
"bottom": this.bottom,
|
|
30
|
+
"all": this.all,
|
|
31
|
+
"horizental": this.horizental,
|
|
32
|
+
"vertical": this.vertical
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
toString() {
|
|
36
|
+
return JSON.stringify(this.toJSON());
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.Padding = Padding;
|
|
40
40
|
//# sourceMappingURL=padding.js.map
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Size = void 0;
|
|
4
|
-
const utility_1 = require("../../../utility");
|
|
5
|
-
class Size {
|
|
6
|
-
constructor(param) {
|
|
7
|
-
let obj;
|
|
8
|
-
if (typeof param === 'string') {
|
|
9
|
-
obj = utility_1.ToolHelper.convertToJsonOrDefault(param);
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
obj = param;
|
|
13
|
-
}
|
|
14
|
-
if (!obj) {
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const keys = 'width,height';
|
|
18
|
-
Object.keys(obj).forEach(key => {
|
|
19
|
-
if (keys.includes(key)) {
|
|
20
|
-
this[key] = obj[key];
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
toJSON() {
|
|
25
|
-
return {
|
|
26
|
-
"width": this.width,
|
|
27
|
-
"height": this.height
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
toString() {
|
|
31
|
-
return JSON.stringify(this.toJSON());
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.Size = Size;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Size = void 0;
|
|
4
|
+
const utility_1 = require("../../../utility");
|
|
5
|
+
class Size {
|
|
6
|
+
constructor(param) {
|
|
7
|
+
let obj;
|
|
8
|
+
if (typeof param === 'string') {
|
|
9
|
+
obj = utility_1.ToolHelper.convertToJsonOrDefault(param);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
obj = param;
|
|
13
|
+
}
|
|
14
|
+
if (!obj) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
const keys = 'width,height';
|
|
18
|
+
Object.keys(obj).forEach(key => {
|
|
19
|
+
if (keys.includes(key)) {
|
|
20
|
+
this[key] = obj[key];
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
toJSON() {
|
|
25
|
+
return {
|
|
26
|
+
"width": this.width,
|
|
27
|
+
"height": this.height
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
toString() {
|
|
31
|
+
return JSON.stringify(this.toJSON());
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.Size = Size;
|
|
35
35
|
//# sourceMappingURL=size.js.map
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Visible = void 0;
|
|
4
|
-
const componentFrameID_helper_1 = require("../../../utility/componentFrameID-helper");
|
|
5
|
-
const utility_1 = require("../../../utility");
|
|
6
|
-
class Visible {
|
|
7
|
-
constructor(param, externalComponentNameSpace) {
|
|
8
|
-
this.useQuote = false;
|
|
9
|
-
if (!param && param != false) {
|
|
10
|
-
this.useQuote = false;
|
|
11
|
-
this.value = true;
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
if (utility_1.ToolHelper.isBoolean(param)) {
|
|
15
|
-
this.useQuote = false;
|
|
16
|
-
this.value = param;
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
if (utility_1.ToolHelper.isString(param) && utility_1.ToolHelper.isObject(param) == false) {
|
|
20
|
-
if (param.indexOf("=>") >= 0) {
|
|
21
|
-
this.value = param;
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
this.value = utility_1.ToolHelper.viewModelReplaceToThisViewModel(param);
|
|
25
|
-
}
|
|
26
|
-
this.useQuote = false;
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
let obj;
|
|
30
|
-
if (typeof param === 'string') {
|
|
31
|
-
obj = utility_1.ToolHelper.convertToJsonOrDefault(param);
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
obj = param;
|
|
35
|
-
}
|
|
36
|
-
if (!obj) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
const keys = 'type,path';
|
|
40
|
-
Object.keys(obj).forEach(key => {
|
|
41
|
-
if (keys.includes(key)) {
|
|
42
|
-
this[key] = obj[key];
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
if (this.type == "Variable") {
|
|
46
|
-
this.useQuote = false;
|
|
47
|
-
const [frameComponentId, variablePath] = this.path.split('.');
|
|
48
|
-
if (!variablePath) {
|
|
49
|
-
this.value = "this.viewModel['uiState']['" + this.path + "']";
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
const externalComponentFrameId = componentFrameID_helper_1.ComponentFrameIDHelper.getComponentFrameIdWithNameSpace({ componentNameSpace: externalComponentNameSpace, frameID: frameComponentId });
|
|
53
|
-
this.value = "this.context.appContext.getFrameContext('" + externalComponentFrameId + "')['uiState']['" + variablePath + "']";
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
toJSON() {
|
|
58
|
-
return {
|
|
59
|
-
"useQuote": this.useQuote,
|
|
60
|
-
"value": this.value,
|
|
61
|
-
"type": this.type,
|
|
62
|
-
"path": this.path
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
toString() {
|
|
66
|
-
return JSON.stringify(this.toJSON());
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
exports.Visible = Visible;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Visible = void 0;
|
|
4
|
+
const componentFrameID_helper_1 = require("../../../utility/componentFrameID-helper");
|
|
5
|
+
const utility_1 = require("../../../utility");
|
|
6
|
+
class Visible {
|
|
7
|
+
constructor(param, externalComponentNameSpace) {
|
|
8
|
+
this.useQuote = false;
|
|
9
|
+
if (!param && param != false) {
|
|
10
|
+
this.useQuote = false;
|
|
11
|
+
this.value = true;
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
if (utility_1.ToolHelper.isBoolean(param)) {
|
|
15
|
+
this.useQuote = false;
|
|
16
|
+
this.value = param;
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (utility_1.ToolHelper.isString(param) && utility_1.ToolHelper.isObject(param) == false) {
|
|
20
|
+
if (param.indexOf("=>") >= 0) {
|
|
21
|
+
this.value = param;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
this.value = utility_1.ToolHelper.viewModelReplaceToThisViewModel(param);
|
|
25
|
+
}
|
|
26
|
+
this.useQuote = false;
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
let obj;
|
|
30
|
+
if (typeof param === 'string') {
|
|
31
|
+
obj = utility_1.ToolHelper.convertToJsonOrDefault(param);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
obj = param;
|
|
35
|
+
}
|
|
36
|
+
if (!obj) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
const keys = 'type,path';
|
|
40
|
+
Object.keys(obj).forEach(key => {
|
|
41
|
+
if (keys.includes(key)) {
|
|
42
|
+
this[key] = obj[key];
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
if (this.type == "Variable") {
|
|
46
|
+
this.useQuote = false;
|
|
47
|
+
const [frameComponentId, variablePath] = this.path.split('.');
|
|
48
|
+
if (!variablePath) {
|
|
49
|
+
this.value = "this.viewModel['uiState']['" + this.path + "']";
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
const externalComponentFrameId = componentFrameID_helper_1.ComponentFrameIDHelper.getComponentFrameIdWithNameSpace({ componentNameSpace: externalComponentNameSpace, frameID: frameComponentId });
|
|
53
|
+
this.value = "this.context.appContext.getFrameContext('" + externalComponentFrameId + "')['uiState']['" + variablePath + "']";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
toJSON() {
|
|
58
|
+
return {
|
|
59
|
+
"useQuote": this.useQuote,
|
|
60
|
+
"value": this.value,
|
|
61
|
+
"type": this.type,
|
|
62
|
+
"path": this.path
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
toString() {
|
|
66
|
+
return JSON.stringify(this.toJSON());
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.Visible = Visible;
|
|
70
70
|
//# sourceMappingURL=visible.js.map
|