simple-boot-front 1.0.113 → 1.0.114
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/SimpleBootFront.js +21 -1
- package/package.json +2 -2
- package/components/ComponentSet.d.ts +0 -4
- package/components/ComponentSet.js +0 -36
package/SimpleBootFront.js
CHANGED
|
@@ -76,6 +76,7 @@ var IntentManager_1 = require("simple-boot-core/intent/IntentManager");
|
|
|
76
76
|
var RouterManager_1 = require("simple-boot-core/route/RouterManager");
|
|
77
77
|
var RawSet_1 = require("dom-render/rawsets/RawSet");
|
|
78
78
|
var RawSetType_1 = require("dom-render/rawsets/RawSetType");
|
|
79
|
+
var ComponentSet_1 = require("dom-render/components/ComponentSet");
|
|
79
80
|
var SimpleBootFront = (function (_super) {
|
|
80
81
|
__extends(SimpleBootFront, _super);
|
|
81
82
|
function SimpleBootFront(rootRouter, option) {
|
|
@@ -104,7 +105,26 @@ var SimpleBootFront = (function (_super) {
|
|
|
104
105
|
});
|
|
105
106
|
}
|
|
106
107
|
}],
|
|
107
|
-
proxyExcludeTyps: _this.domRendoerExcludeProxy
|
|
108
|
+
proxyExcludeTyps: _this.domRendoerExcludeProxy,
|
|
109
|
+
operatorAround: {
|
|
110
|
+
drThis: {
|
|
111
|
+
before: function (data, operatorExecutor) {
|
|
112
|
+
var _a, _b;
|
|
113
|
+
if (data && !(data instanceof ComponentSet_1.ComponentSet) && operatorExecutor.elementSource.element.getAttribute("".concat(RawSet_1.RawSet.DR_THIS_NAME, ":type")) === 'outlet') {
|
|
114
|
+
var component = (0, Component_1.getComponent)(data);
|
|
115
|
+
if (component) {
|
|
116
|
+
var styles = (_a = component === null || component === void 0 ? void 0 : component.styles) !== null && _a !== void 0 ? _a : [];
|
|
117
|
+
var template = (_b = component === null || component === void 0 ? void 0 : component.template) !== null && _b !== void 0 ? _b : '';
|
|
118
|
+
return new ComponentSet_1.ComponentSet(operatorExecutor, template, styles, { objPath: null });
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
return undefined;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return data;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
108
128
|
};
|
|
109
129
|
_this.option.window.__dirname = 'simple-boot-front__dirname';
|
|
110
130
|
option.proxy = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simple-boot-front",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.114",
|
|
4
4
|
"main": "SimpleApplication.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "front end SPA frameworks",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"typescript": "^4.4.3"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"dom-render": "^1.0.
|
|
75
|
+
"dom-render": "^1.0.91",
|
|
76
76
|
"simple-boot-core": "^1.0.35"
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ComponentSet = void 0;
|
|
19
|
-
var ComponentSet_1 = require("dom-render/components/ComponentSet");
|
|
20
|
-
var Component_1 = require("../decorators/Component");
|
|
21
|
-
var ComponentSet = (function (_super) {
|
|
22
|
-
__extends(ComponentSet, _super);
|
|
23
|
-
function ComponentSet(obj) {
|
|
24
|
-
var _this = this;
|
|
25
|
-
var _a, _b;
|
|
26
|
-
_this = _super.call(this, obj) || this;
|
|
27
|
-
var component = (0, Component_1.getComponent)(obj);
|
|
28
|
-
if (component) {
|
|
29
|
-
_this.styles = (_a = component === null || component === void 0 ? void 0 : component.styles) !== null && _a !== void 0 ? _a : [];
|
|
30
|
-
_this.template = (_b = component === null || component === void 0 ? void 0 : component.template) !== null && _b !== void 0 ? _b : '';
|
|
31
|
-
}
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return ComponentSet;
|
|
35
|
-
}(ComponentSet_1.ComponentSet));
|
|
36
|
-
exports.ComponentSet = ComponentSet;
|