simple-boot-front 1.0.113 → 1.0.115

Sign up to get free protection for your applications and to get access to all the features.
@@ -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(data, 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 = {
@@ -6,5 +6,5 @@ export interface ScriptConfig {
6
6
  using?: (ConstructorType<any>)[];
7
7
  }
8
8
  export declare const ScriptMetadataKey: unique symbol;
9
- export declare const Script: (config?: ScriptConfig | undefined) => GenericClassDecorator<ConstructorType<ScriptRunnable>>;
9
+ export declare const Script: (config?: ScriptConfig) => GenericClassDecorator<ConstructorType<ScriptRunnable>>;
10
10
  export declare const getScript: (target: ConstructorType<any> | Function | any) => ScriptConfig | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simple-boot-front",
3
- "version": "1.0.113",
3
+ "version": "1.0.115",
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.90",
76
- "simple-boot-core": "^1.0.35"
75
+ "dom-render": "^1.0.92",
76
+ "simple-boot-core": "^1.0.38"
77
77
  }
78
78
  }
@@ -1,4 +0,0 @@
1
- import { ComponentSet as DomRenderComponentSet } from 'dom-render/components/ComponentSet';
2
- export declare class ComponentSet extends DomRenderComponentSet {
3
- constructor(obj: any);
4
- }
@@ -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;