simple-boot-front
Advanced tools
Comparing version 1.0.75 to 1.0.76
{ | ||
"name": "simple-boot-front", | ||
"version": "1.0.75", | ||
"version": "1.0.76", | ||
"main": "SimpleApplication.js", | ||
@@ -76,3 +76,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"dom-render": "^1.0.37", | ||
"dom-render": "^1.0.38", | ||
"reflect-metadata": "^0.1.13", | ||
@@ -79,0 +79,0 @@ "simple-boot-core": "^1.0.20" |
@@ -15,4 +15,4 @@ import { SimFrontOption } from './option/SimFrontOption'; | ||
domRendoerExcludeProxy: (typeof SimFrontOption | typeof SimstanceManager | typeof SimpleApplication | typeof Navigation | typeof HttpService | typeof IntentManager | typeof RouterManager)[]; | ||
targetElements: TargetElement[]; | ||
targetAttrs: TargetAttr[]; | ||
domRenderTargetElements: TargetElement[]; | ||
domRenderTargetAttrs: TargetAttr[]; | ||
constructor(rootRouter: ConstructorType<any>, option: SimFrontOption); | ||
@@ -19,0 +19,0 @@ getComponentInnerHtml(targetObj: any): string; |
@@ -76,8 +76,9 @@ "use strict"; | ||
_this.option = option; | ||
_this.domRendoerExcludeProxy = [SimpleApplication_1.SimpleApplication, IntentManager_1.IntentManager, RouterManager_1.RouterManager, SimstanceManager_1.SimstanceManager, SimFrontOption_1.SimFrontOption, Navigation_1.Navigation, ViewService_1.ViewService, HttpService_1.HttpService]; | ||
_this.domRendoerExcludeProxy = [SimpleApplication_1.SimpleApplication, IntentManager_1.IntentManager, RouterManager_1.RouterManager, SimstanceManager_1.SimstanceManager, SimFrontOption_1.SimFrontOption, Navigation_1.Navigation, ViewService_1.ViewService, HttpService_1.HttpService, HTMLElement]; | ||
_this.domRenderTargetElements = []; | ||
_this.domRenderTargetAttrs = []; | ||
window.__dirname = 'simple-boot-front__dirname'; | ||
_this.targetElements = []; | ||
var selectors = Component_1.componentSelectors; | ||
selectors.forEach(function (val, name) { | ||
_this.targetElements.push({ | ||
_this.domRenderTargetElements.push({ | ||
name: name, | ||
@@ -111,15 +112,15 @@ callBack: function (element, obj, rawSet) { | ||
}); | ||
_this.targetAttrs = [{ | ||
name: 'component', callBack: function (element, attrValue, obj, rawSet) { | ||
var fag = _this.option.window.document.createDocumentFragment(); | ||
if (attrValue) { | ||
var targetObj = ScriptUtils_1.ScriptUtils.eval("return " + attrValue, obj); | ||
var n = element.cloneNode(true); | ||
var innerHTML = _this.getComponentInnerHtml(targetObj); | ||
n.innerHTML = innerHTML; | ||
fag.append(RawSet_1.RawSet.drThisCreate(n, attrValue, '', true, obj)); | ||
} | ||
return fag; | ||
_this.domRenderTargetAttrs.push({ | ||
name: 'component', callBack: function (element, attrValue, obj, rawSet) { | ||
var fag = _this.option.window.document.createDocumentFragment(); | ||
if (attrValue) { | ||
var targetObj = ScriptUtils_1.ScriptUtils.eval("return " + attrValue, obj); | ||
var n = element.cloneNode(true); | ||
var innerHTML = _this.getComponentInnerHtml(targetObj); | ||
n.innerHTML = innerHTML; | ||
fag.append(RawSet_1.RawSet.drThisCreate(n, attrValue, '', true, obj)); | ||
} | ||
}]; | ||
return fag; | ||
} | ||
}); | ||
option.proxy = { | ||
@@ -141,4 +142,4 @@ onProxy: function (it) { return _this.createDomRender(it); } | ||
return DomRender_1.DomRender.run(obj, undefined, { | ||
targetElements: this.targetElements, | ||
targetAttrs: this.targetAttrs, | ||
targetElements: this.domRenderTargetElements, | ||
targetAttrs: this.domRenderTargetAttrs, | ||
onAttrInit: function (attrName, attrValue, obj) { | ||
@@ -145,0 +146,0 @@ var _a, _b; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49595
874
Updateddom-render@^1.0.38