dom-render 1.0.95 → 1.0.97

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.
Files changed (65) hide show
  1. package/DomRender.d.ts +1 -1
  2. package/DomRender.js +3 -3
  3. package/DomRenderProxy.js +24 -30
  4. package/README.MD +41 -0
  5. package/components/ComponentSet.d.ts +1 -1
  6. package/configs/Config.d.ts +1 -1
  7. package/configs/TargetAttr.d.ts +1 -1
  8. package/configs/TargetElement.d.ts +1 -1
  9. package/css/parse/index.d.ts +1 -0
  10. package/css/parse/index.js +512 -0
  11. package/css/stringify/compiler.d.ts +32 -0
  12. package/css/stringify/compiler.js +40 -0
  13. package/css/stringify/compress.d.ts +75 -0
  14. package/css/stringify/compress.js +156 -0
  15. package/css/stringify/identity.d.ts +85 -0
  16. package/css/stringify/identity.js +194 -0
  17. package/css/stringify/index.d.ts +14 -0
  18. package/css/stringify/index.js +44 -0
  19. package/dist/bundle.js +1138 -385
  20. package/events/EventManager.js +27 -27
  21. package/iterators/Range.d.ts +1 -0
  22. package/iterators/Range.js +15 -0
  23. package/messenger/Messenger.d.ts +4 -4
  24. package/operators/Dr.js +2 -2
  25. package/operators/DrAppender.js +5 -3
  26. package/operators/DrFor.js +5 -3
  27. package/operators/DrForOf.js +5 -3
  28. package/operators/DrForm.js +12 -12
  29. package/operators/DrIf.js +5 -3
  30. package/operators/DrInnerHTML.js +2 -2
  31. package/operators/DrInnerText.js +2 -2
  32. package/operators/DrPre.js +4 -2
  33. package/operators/DrRepeat.js +5 -3
  34. package/operators/DrTargetAttr.js +4 -2
  35. package/operators/DrTargetElement.js +5 -3
  36. package/operators/DrThis.js +2 -2
  37. package/operators/{DrDictionary.d.ts → DrThisProperty.d.ts} +1 -2
  38. package/operators/{DrDictionary.js → DrThisProperty.js} +19 -42
  39. package/operators/OperatorExecuter.d.ts +5 -5
  40. package/operators/OperatorExecuter.js +2 -2
  41. package/operators/OperatorExecuterAttrRequire.js +1 -1
  42. package/package.json +3 -3
  43. package/rawsets/AttrInitCallBack.d.ts +1 -1
  44. package/rawsets/Attrs.d.ts +4 -3
  45. package/rawsets/CreatorMetaData.d.ts +1 -1
  46. package/rawsets/ElementInitCallBack.d.ts +1 -1
  47. package/rawsets/RawSet.d.ts +19 -7
  48. package/rawsets/RawSet.js +144 -73
  49. package/rawsets/RawSetOperatorType.d.ts +3 -0
  50. package/rawsets/RawSetOperatorType.js +7 -0
  51. package/rawsets/Render.d.ts +1 -1
  52. package/routers/Router.d.ts +1 -1
  53. package/routers/Router.js +1 -1
  54. package/utils/dom/DomUtils.d.ts +1 -1
  55. package/utils/node/NodeUtils.d.ts +1 -1
  56. package/utils/script/ScriptUtils.js +2 -2
  57. package/utils/storage/StorageUtils.d.ts +7 -0
  58. package/utils/storage/StorageUtils.js +39 -0
  59. package/utils/string/StringUtils.d.ts +1 -0
  60. package/utils/string/StringUtils.js +17 -0
  61. package/validators/EmptyValidator.js +2 -2
  62. package/validators/NotEmptyValidator.js +2 -2
  63. package/validators/ValidMultipleValidator.d.ts +1 -1
  64. package/validators/Validator.d.ts +2 -2
  65. package/validators/ValidatorArray.d.ts +1 -1
package/rawsets/RawSet.js CHANGED
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
25
25
  function verb(n) { return function (v) { return step([n, v]); }; }
26
26
  function step(op) {
27
27
  if (f) throw new TypeError("Generator is already executing.");
28
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
+ while (_) try {
29
29
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
30
  if (y = 0, t) op = [op[0] & 2, t.value];
31
31
  switch (op[0]) {
@@ -55,6 +55,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
55
55
  }
56
56
  return to.concat(ar || Array.prototype.slice.call(from));
57
57
  };
58
+ var __importDefault = (this && this.__importDefault) || function (mod) {
59
+ return (mod && mod.__esModule) ? mod : { "default": mod };
60
+ };
58
61
  Object.defineProperty(exports, "__esModule", { value: true });
59
62
  exports.RawSet = void 0;
60
63
  var RandomUtils_1 = require("../utils/random/RandomUtils");
@@ -80,7 +83,10 @@ var DrTargetElement_1 = require("../operators/DrTargetElement");
80
83
  var DrTargetAttr_1 = require("../operators/DrTargetAttr");
81
84
  var DestroyOptionType_1 = require("./DestroyOptionType");
82
85
  var RawSetType_1 = require("./RawSetType");
83
- var DrDictionary_1 = require("../operators/DrDictionary");
86
+ var DrThisProperty_1 = require("../operators/DrThisProperty");
87
+ var RawSetOperatorType_1 = require("./RawSetOperatorType");
88
+ var parse_1 = __importDefault(require("../css/parse"));
89
+ var stringify_1 = __importDefault(require("../css/stringify"));
84
90
  var RawSet = /** @class */ (function () {
85
91
  function RawSet(uuid, type, point, fragment, detect, data) {
86
92
  this.uuid = uuid;
@@ -89,6 +95,7 @@ var RawSet = /** @class */ (function () {
89
95
  this.fragment = fragment;
90
96
  this.detect = detect;
91
97
  this.data = data;
98
+ point.start.rawSet = this;
92
99
  // console.log('rawset constructor->', (this.point.node as Element).getAttributeNames());
93
100
  }
94
101
  Object.defineProperty(RawSet.prototype, "isConnected", {
@@ -105,7 +112,7 @@ var RawSet = /** @class */ (function () {
105
112
  var _a, _b, _c;
106
113
  var script = '';
107
114
  if (cNode.nodeType === Node.TEXT_NODE) {
108
- script = "`".concat((_a = cNode.textContent) !== null && _a !== void 0 ? _a : '', "`");
115
+ script = "`" + ((_a = cNode.textContent) !== null && _a !== void 0 ? _a : '') + "`";
109
116
  // console.log('???????', script)
110
117
  }
111
118
  else if (cNode.nodeType === Node.ELEMENT_NODE) {
@@ -134,11 +141,11 @@ var RawSet = /** @class */ (function () {
134
141
  EventManager_1.EventManager.VARNAMES.forEach(function (it) {
135
142
  // script = script.replace(RegExp(it.replace('$', '\\$'), 'g'), `this?.___${it}`);
136
143
  // script = script.replace(RegExp(it.replace('$', '\\$'), 'g'), `this.___${it}`);
137
- script = script.replace(RegExp(it.replace('$', '\\$'), 'g'), "this.___".concat(it));
144
+ script = script.replace(RegExp(it.replace('$', '\\$'), 'g'), "this.___" + it);
138
145
  // console.log('scripts-->', script)
139
146
  });
140
147
  // console.log('----------', script);
141
- Array.from(ScriptUtils_1.ScriptUtils.getVariablePaths(script)).filter(function (it) { return !it.startsWith("___".concat(EventManager_1.EventManager.SCRIPTS_VARNAME)); }).forEach(function (it) { return usingTriggerVariables.add(it); });
148
+ Array.from(ScriptUtils_1.ScriptUtils.getVariablePaths(script)).filter(function (it) { return !it.startsWith("___" + EventManager_1.EventManager.SCRIPTS_VARNAME); }).forEach(function (it) { return usingTriggerVariables.add(it); });
142
149
  }
143
150
  });
144
151
  // console.log('usingTriggerVariable----------->', usingTriggerVariables)
@@ -175,7 +182,7 @@ var RawSet = /** @class */ (function () {
175
182
  range: Range_1.Range.range,
176
183
  element: cNode,
177
184
  attribute: attribute,
178
- bindScript: "\n const ".concat(EventManager_1.EventManager.SCRIPTS_VARNAME, " = this.__render.scripts;\n const ").concat(EventManager_1.EventManager.RAWSET_VARNAME, " = this.__render.rawset;\n const ").concat(EventManager_1.EventManager.ELEMENT_VARNAME, " = this.__render.element;\n const ").concat(EventManager_1.EventManager.ATTRIBUTE_VARNAME, " = this.__render.attribute;\n const ").concat(EventManager_1.EventManager.RANGE_VARNAME, " = this.__render.range;\n const ").concat(EventManager_1.EventManager.ROUTER_VARNAME, " = this.__render.router;\n ")
185
+ bindScript: "\n const " + EventManager_1.EventManager.SCRIPTS_VARNAME + " = this.__render.scripts;\n const " + EventManager_1.EventManager.RAWSET_VARNAME + " = this.__render.rawset;\n const " + EventManager_1.EventManager.ELEMENT_VARNAME + " = this.__render.element;\n const " + EventManager_1.EventManager.ATTRIBUTE_VARNAME + " = this.__render.attribute;\n const " + EventManager_1.EventManager.RANGE_VARNAME + " = this.__render.range;\n const " + EventManager_1.EventManager.ROUTER_VARNAME + " = this.__render.router;\n "
179
186
  // eslint-disable-next-line no-use-before-define
180
187
  });
181
188
  fag = config.window.document.createDocumentFragment();
@@ -184,13 +191,13 @@ var RawSet = /** @class */ (function () {
184
191
  runText = RawSet.exporesionGrouops(textContent)[0][1];
185
192
  newNode = void 0;
186
193
  if (textContent === null || textContent === void 0 ? void 0 : textContent.startsWith('#')) {
187
- r = ScriptUtils_1.ScriptUtils.eval("".concat(__render.bindScript, " return ").concat(runText), Object.assign(obj, { __render: __render }));
194
+ r = ScriptUtils_1.ScriptUtils.eval(__render.bindScript + " return " + runText, Object.assign(obj, { __render: __render }));
188
195
  template = config.window.document.createElement('template');
189
196
  template.innerHTML = r;
190
197
  newNode = template.content;
191
198
  }
192
199
  else {
193
- r = ScriptUtils_1.ScriptUtils.eval("".concat(__render.bindScript, " return ").concat(runText), Object.assign(obj, { __render: __render }));
200
+ r = ScriptUtils_1.ScriptUtils.eval(__render.bindScript + " return " + runText, Object.assign(obj, { __render: __render }));
194
201
  newNode = config.window.document.createTextNode(r);
195
202
  }
196
203
  (_a = cNode.parentNode) === null || _a === void 0 ? void 0 : _a.replaceChild(newNode, cNode);
@@ -208,7 +215,7 @@ var RawSet = /** @class */ (function () {
208
215
  drIf: this.getAttributeAndDelete(element, RawSet.DR_IF_NAME),
209
216
  drFor: this.getAttributeAndDelete(element, RawSet.DR_FOR_NAME),
210
217
  drForOf: this.getAttributeAndDelete(element, RawSet.DR_FOR_OF_NAME),
211
- drDictionary: this.getAttributeAndDelete(element, RawSet.DR_DICTIONARY_NAME),
218
+ drThisProperty: this.getAttributeAndDelete(element, RawSet.DR_THIS_PROPERTY_NAME),
212
219
  drAppender: this.getAttributeAndDelete(element, RawSet.DR_APPENDER_NAME),
213
220
  drRepeat: this.getAttributeAndDelete(element, RawSet.DR_REPEAT_NAME),
214
221
  drThis: this.getAttributeAndDelete(element, RawSet.DR_THIS_NAME),
@@ -224,7 +231,7 @@ var RawSet = /** @class */ (function () {
224
231
  drCompleteOption: this.getAttributeAndDelete(element, RawSet.DR_COMPLETE_OPTIONNAME),
225
232
  drStripOption: this.getAttributeAndDelete(element, RawSet.DR_STRIP_OPTIONNAME),
226
233
  drDestroyOption: this.getAttributeAndDelete(element, RawSet.DR_DESTROY_OPTIONNAME),
227
- drDictionaryOption: this.getAttributeAndDelete(element, RawSet.DR_DICTIONARY_OPTIONKEYNAME)
234
+ drKeyOption: this.getAttributeAndDelete(element, RawSet.DR_KEY_OPTIONNAME)
228
235
  };
229
236
  drAttrs.push(drAttr);
230
237
  operators = [
@@ -237,7 +244,7 @@ var RawSet = /** @class */ (function () {
237
244
  new DrInnerHTML_1.DrInnerHTML(this, __render, { raws: raws, fag: fag }, { element: element, attrName: RawSet.DR_INNERHTML_NAME, attr: drAttr.drInnerHTML, attrs: drAttr }, { config: config, obj: obj, operatorAround: (_h = config.operatorAround) === null || _h === void 0 ? void 0 : _h.drInnerHTML }, { onAttrInitCallBacks: onAttrInitCallBacks, onElementInitCallBacks: onElementInitCallBacks, onThisComponentSetCallBacks: onThisComponentSetCallBacks }),
238
245
  new DrFor_1.DrFor(this, __render, { raws: raws, fag: fag }, { element: element, attrName: RawSet.DR_FOR_NAME, attr: drAttr.drFor, attrs: drAttr }, { config: config, obj: obj, operatorAround: (_j = config.operatorAround) === null || _j === void 0 ? void 0 : _j.drFor }, { onAttrInitCallBacks: onAttrInitCallBacks, onElementInitCallBacks: onElementInitCallBacks, onThisComponentSetCallBacks: onThisComponentSetCallBacks }),
239
246
  new DrForOf_1.DrForOf(this, __render, { raws: raws, fag: fag }, { element: element, attrName: RawSet.DR_FOR_OF_NAME, attr: drAttr.drForOf, attrs: drAttr }, { config: config, obj: obj, operatorAround: (_k = config.operatorAround) === null || _k === void 0 ? void 0 : _k.drForOf }, { onAttrInitCallBacks: onAttrInitCallBacks, onElementInitCallBacks: onElementInitCallBacks, onThisComponentSetCallBacks: onThisComponentSetCallBacks }),
240
- new DrDictionary_1.DrDictionary(this, __render, { raws: raws, fag: fag }, { element: element, attrName: RawSet.DR_DICTIONARY_NAME, attr: drAttr.drDictionary, attrs: drAttr }, { config: config, obj: obj, operatorAround: (_l = config.operatorAround) === null || _l === void 0 ? void 0 : _l.drDictionary }, { onAttrInitCallBacks: onAttrInitCallBacks, onElementInitCallBacks: onElementInitCallBacks, onThisComponentSetCallBacks: onThisComponentSetCallBacks }),
247
+ new DrThisProperty_1.DrThisProperty(this, __render, { raws: raws, fag: fag }, { element: element, attrName: RawSet.DR_THIS_PROPERTY_NAME, attr: drAttr.drThisProperty, attrs: drAttr }, { config: config, obj: obj, operatorAround: (_l = config.operatorAround) === null || _l === void 0 ? void 0 : _l.drThisProperty }, { onAttrInitCallBacks: onAttrInitCallBacks, onElementInitCallBacks: onElementInitCallBacks, onThisComponentSetCallBacks: onThisComponentSetCallBacks }),
241
248
  new DrAppender_1.DrAppender(this, __render, { raws: raws, fag: fag }, { element: element, attrName: RawSet.DR_APPENDER_NAME, attr: drAttr.drAppender, attrs: drAttr }, { config: config, obj: obj, operatorAround: (_m = config.operatorAround) === null || _m === void 0 ? void 0 : _m.drAppender }, { onAttrInitCallBacks: onAttrInitCallBacks, onElementInitCallBacks: onElementInitCallBacks, onThisComponentSetCallBacks: onThisComponentSetCallBacks }),
242
249
  new DrRepeat_1.DrRepeat(this, __render, { raws: raws, fag: fag }, { element: element, attrName: RawSet.DR_REPEAT_NAME, attr: drAttr.drRepeat, attrs: drAttr }, { config: config, obj: obj, operatorAround: (_o = config.operatorAround) === null || _o === void 0 ? void 0 : _o.drRepeat }, { onAttrInitCallBacks: onAttrInitCallBacks, onElementInitCallBacks: onElementInitCallBacks, onThisComponentSetCallBacks: onThisComponentSetCallBacks }),
243
250
  new DrTargetElement_1.DrTargetElement(this, __render, { raws: raws, fag: fag }, { element: element, attrs: drAttr }, { config: config, obj: obj }, { onAttrInitCallBacks: onAttrInitCallBacks, onElementInitCallBacks: onElementInitCallBacks, onThisComponentSetCallBacks: onThisComponentSetCallBacks }),
@@ -275,11 +282,12 @@ var RawSet = /** @class */ (function () {
275
282
  fag: genNode,
276
283
  scripts: EventManager_1.EventManager.setBindProperty(config === null || config === void 0 ? void 0 : config.scripts, obj)
277
284
  });
278
- ScriptUtils_1.ScriptUtils.eval("\n const ".concat(EventManager_1.EventManager.FAG_VARNAME, " = this.__render.fag;\n const ").concat(EventManager_1.EventManager.SCRIPTS_VARNAME, " = this.__render.scripts;\n const ").concat(EventManager_1.EventManager.RAWSET_VARNAME, " = this.__render.rawset;\n ").concat(it.drCompleteOption), Object.assign(obj, { __render: render }));
285
+ ScriptUtils_1.ScriptUtils.eval("\n const " + EventManager_1.EventManager.FAG_VARNAME + " = this.__render.fag;\n const " + EventManager_1.EventManager.SCRIPTS_VARNAME + " = this.__render.scripts;\n const " + EventManager_1.EventManager.RAWSET_VARNAME + " = this.__render.rawset;\n " + it.drCompleteOption, Object.assign(obj, { __render: render }));
279
286
  }
280
287
  });
281
288
  // 중요 style isolation 나중에 :scope로 대체 가능할듯.
282
- RawSet.generateStyleSheetsLocal();
289
+ // 2023.9.4일 없앰 style 처음들어올때 처리하는걸로 바꿈
290
+ // RawSet.generateStyleSheetsLocal(config);
283
291
  for (_1 = 0, onThisComponentSetCallBacks_1 = onThisComponentSetCallBacks; _1 < onThisComponentSetCallBacks_1.length; _1++) {
284
292
  it_1 = onThisComponentSetCallBacks_1[_1];
285
293
  (_q = (_p = it_1.obj) === null || _p === void 0 ? void 0 : _p.onInitRender) === null || _q === void 0 ? void 0 : _q.call(_p);
@@ -290,7 +298,7 @@ var RawSet = /** @class */ (function () {
290
298
  oninit = it_2.targetElement.__render.element.getAttribute(RawSet.DR_ON_INIT_ARGUMENTS_OPTIONNAME);
291
299
  param = [];
292
300
  if (oninit) {
293
- script = "".concat(it_2.targetElement.__render.renderScript, " return ").concat(oninit, " ");
301
+ script = it_2.targetElement.__render.renderScript + " return " + oninit + " ";
294
302
  param = ScriptUtils_1.ScriptUtils.eval(script, Object.assign(obj, {
295
303
  __render: it_2.targetElement.__render
296
304
  }));
@@ -329,8 +337,13 @@ var RawSet = /** @class */ (function () {
329
337
  });
330
338
  });
331
339
  };
332
- RawSet.generateStyleSheetsLocal = function () {
333
- Array.from(window.document.styleSheets).filter(function (it) { return it.ownerNode && it.ownerNode instanceof Element && it.ownerNode.hasAttribute('domstyle') && it.ownerNode.getAttribute('id') && !it.ownerNode.getAttribute('completed'); }).forEach(function (it) {
340
+ /**
341
+ * @deprecated
342
+ * @param config
343
+ */
344
+ RawSet.generateStyleSheetsLocal = function (config) {
345
+ // console.log('config.window.document.styleSheets---------', config.window.document.styleSheets);
346
+ Array.from(config.window.document.styleSheets).filter(function (it) { return it.ownerNode && it.ownerNode instanceof Element && it.ownerNode.hasAttribute('domstyle') && it.ownerNode.getAttribute('id') && !it.ownerNode.getAttribute('completed'); }).forEach(function (it) {
334
347
  var _a;
335
348
  var styleElement = it.ownerNode;
336
349
  var split = (_a = styleElement.getAttribute('id')) === null || _a === void 0 ? void 0 : _a.split('-');
@@ -347,8 +360,8 @@ var RawSet = /** @class */ (function () {
347
360
  };
348
361
  RawSet.generateCSS = function (id, cssRule) {
349
362
  var _this = this;
350
- var start = "#".concat(id, "-start");
351
- var end = "#".concat(id, "-end");
363
+ var start = "#" + id + "-start";
364
+ var end = "#" + id + "-end";
352
365
  if (cssRule.constructor.name === 'CSSStyleRule') {
353
366
  var rule = cssRule;
354
367
  // rule.selectorText = `${start} ~ *:not(${start} ~ ${end} ~ *) ${rule.selectorText}`;
@@ -357,14 +370,14 @@ var RawSet = /** @class */ (function () {
357
370
  if (!rule.selectorText.startsWith(':root')) {
358
371
  // rule.selectorText = `${start} ~ ${rule.selectorText}:not(${start} ~ ${end} ~ *)`;
359
372
  // rule.selectorText = `${start} ~ ${rule.selectorText}:not(${start} ~ ${end} ~ *)`;
360
- var selectorText = ":is(".concat(start, " ~ *:not(").concat(start, " ~ ").concat(end, " ~ *))");
373
+ var selectorText = ":is(" + start + " ~ *:not(" + start + " ~ " + end + " ~ *))";
361
374
  if (rule.selectorText.startsWith('.')) {
362
- rule.selectorText = "".concat(selectorText).concat(rule.selectorText, ", ").concat(selectorText, " ").concat(rule.selectorText);
375
+ rule.selectorText = "" + selectorText + rule.selectorText + ", " + selectorText + " " + rule.selectorText;
363
376
  // rule.selectorText = `${start} ~ *:not(${start} ~ ${end} ~ *)${rule.selectorText}`;
364
377
  }
365
378
  else {
366
- var divText = "".concat(start, " ~ ").concat(rule.selectorText, ":not(").concat(start, " ~ ").concat(end, " ~ *)");
367
- rule.selectorText = "".concat(selectorText, " ").concat(rule.selectorText, ", ").concat(divText);
379
+ var divText = start + " ~ " + rule.selectorText + ":not(" + start + " ~ " + end + " ~ *)";
380
+ rule.selectorText = selectorText + " " + rule.selectorText + ", " + divText;
368
381
  // rule.selectorText = `${selectorText} ${rule.selectorText}`;
369
382
  // rule.selectorText = `${rule.selectorText} ~ ${start} ~ *:not(${start} ~ ${end} ~ *)`;
370
383
  }
@@ -379,13 +392,40 @@ var RawSet = /** @class */ (function () {
379
392
  }
380
393
  };
381
394
  // 중요 스타일 적용 부분
382
- RawSet.generateStyleTransform = function (styleBody, id, styleTagWrap) {
395
+ RawSet.generateStyleTransform = function (styleBody, componentKey, styleTagWrap) {
396
+ var _a;
383
397
  if (styleTagWrap === void 0) { styleTagWrap = true; }
384
398
  if (Array.isArray(styleBody)) {
385
399
  styleBody = styleBody.join('\n');
386
400
  }
401
+ var start = "#" + componentKey + "-start";
402
+ var end = "#" + componentKey + "-end";
403
+ var before = StringUtils_1.StringUtils.regexExecArrayReplace(styleBody, /(\$\{.*?\}\$)/g, function (data) {
404
+ return "var(--domrender-" + data[0] + ")";
405
+ });
406
+ var cssobject = (0, parse_1.default)(before);
407
+ (_a = cssobject.stylesheet) === null || _a === void 0 ? void 0 : _a.rules.forEach(function (rule) {
408
+ var _a, _b;
409
+ var isRoot = (_a = rule.selectors) === null || _a === void 0 ? void 0 : _a.find(function (it) { return it.startsWith(':root'); });
410
+ if (rule.type === 'rule' && !isRoot) { // && !!isRoot
411
+ rule.selectors = (_b = rule.selectors) === null || _b === void 0 ? void 0 : _b.map(function (sit) {
412
+ var selectorText = ":is(" + start + " ~ *:not(" + start + " ~ " + end + " ~ *))";
413
+ if (sit.startsWith('.')) {
414
+ return "" + selectorText + sit + ", " + selectorText + " " + sit;
415
+ }
416
+ else {
417
+ var divText = start + " ~ " + sit + ":not(" + start + " ~ " + end + " ~ *)";
418
+ return selectorText + " " + sit + ", " + divText;
419
+ }
420
+ });
421
+ }
422
+ });
423
+ var stringify = (0, stringify_1.default)(cssobject);
424
+ var after = StringUtils_1.StringUtils.regexExecArrayReplace(stringify, /(var\(--domrender-(\$\{.*?\}\$)?\))/g, function (data) {
425
+ return data[2];
426
+ });
387
427
  if (styleTagWrap) {
388
- styleBody = "<style id='".concat(id, "-style' domstyle>").concat(styleBody, "</style>");
428
+ styleBody = "<style id='" + componentKey + "-style' domstyle>" + after + "</style>";
389
429
  }
390
430
  return styleBody;
391
431
  };
@@ -406,13 +446,13 @@ var RawSet = /** @class */ (function () {
406
446
  var data = element.getAttribute(RawSet.DR_APPENDER_NAME);
407
447
  // if (data && !/\[[0-9]+\]/g.test(data)) {
408
448
  if (data && !/\[.+\]/g.test(data)) {
409
- var currentIndex = ScriptUtils_1.ScriptUtils.evalReturn("".concat(data, "?.length -1"), obj);
449
+ var currentIndex = ScriptUtils_1.ScriptUtils.evalReturn(data + "?.length -1", obj);
410
450
  // console.log('------?', currentIndex)
411
451
  // if (currentIndex === undefined || isNaN(currentIndex)) {
412
452
  // return undefined;
413
453
  // }
414
454
  // const currentIndex = ScriptUtils.evalReturn(`${data}.length`, obj);
415
- data = "".concat(data, "[").concat(currentIndex, "]");
455
+ data = data + "[" + currentIndex + "]";
416
456
  element.setAttribute(RawSet.DR_APPENDER_NAME, data);
417
457
  // element.setAttribute(RawSet.DR_IF_NAME, data);
418
458
  // element.setAttribute('dr-id', data);
@@ -434,9 +474,8 @@ var RawSet = /** @class */ (function () {
434
474
  // 중요 important
435
475
  RawSet.checkPointCreates = function (element, obj, config) {
436
476
  var _a, _b, _c, _d, _e, _f, _g, _h;
437
- // console.log('start==========')
477
+ // const NodeFilter = (config.window as any).NodeFilter;
438
478
  var thisVariableName = element.__domrender_this_variable_name;
439
- // console.log('checkPointCreates thisVariableName', thisVariableName);
440
479
  var nodeIterator = config.window.document.createNodeIterator(element, NodeFilter.SHOW_ALL, {
441
480
  acceptNode: function (node) {
442
481
  var _a, _b, _c, _d, _e;
@@ -557,34 +596,37 @@ var RawSet = /** @class */ (function () {
557
596
  var element = node;
558
597
  var start = config.window.document.createElement('meta');
559
598
  var end = config.window.document.createElement('meta');
560
- start.setAttribute('id', "".concat(id, "-start"));
561
- var dictionaryKey = element.getAttribute('dr-dictionary-key');
562
- var dictionary = element.getAttribute('dr-dictionary');
563
- if (dictionary) {
564
- start.setAttribute('type', 'dictionary');
599
+ start.setAttribute('id', id + "-start");
600
+ var keys = element.getAttribute(RawSet.DR_KEY_OPTIONNAME);
601
+ var thisPropertyType = element.getAttribute(RawSet.DR_THIS_PROPERTY_NAME);
602
+ if (thisPropertyType) {
603
+ start.setAttribute('type', RawSetOperatorType_1.RawSetOperatorType.DR_THIS_PROPERTY);
565
604
  }
566
- if (dictionaryKey) {
567
- start.setAttribute('dictionary-key', dictionaryKey);
605
+ if (keys) {
606
+ element.removeAttribute(RawSet.DR_KEY_OPTIONNAME);
607
+ start.setAttribute(RawSet.DR_KEY_OPTIONNAME, keys);
568
608
  }
569
- end.setAttribute('id', "".concat(id, "-end"));
570
- return {
571
- start: start,
572
- end: end
573
- };
609
+ end.setAttribute('id', id + "-end");
610
+ return { start: start, end: end };
574
611
  }
575
612
  else if (type === RawSetType_1.RawSetType.STYLE_TEXT) {
576
613
  return {
577
- start: config.window.document.createTextNode("/*start text ".concat(id, "*/")),
578
- end: config.window.document.createTextNode("/*end text ".concat(id, "*/"))
614
+ start: config.window.document.createTextNode("/*start text " + id + "*/"),
615
+ end: config.window.document.createTextNode("/*end text " + id + "*/")
579
616
  };
580
617
  }
581
618
  else { // text
582
619
  return {
583
- start: config.window.document.createComment("start text ".concat(id)),
584
- end: config.window.document.createComment("end text ".concat(id))
620
+ start: config.window.document.createComment("start text " + id),
621
+ end: config.window.document.createComment("end text " + id)
585
622
  };
586
623
  }
587
624
  };
625
+ RawSet.prototype.remove = function () {
626
+ this.childAllRemove();
627
+ this.point.end.remove();
628
+ this.point.start.remove();
629
+ };
588
630
  RawSet.prototype.childAllRemove = function () {
589
631
  var next = this.point.start.nextSibling;
590
632
  while (next) {
@@ -595,16 +637,41 @@ var RawSet = /** @class */ (function () {
595
637
  next = this.point.start.nextSibling;
596
638
  }
597
639
  };
640
+ RawSet.prototype.childs = function (stopNext) {
641
+ var childs = [];
642
+ var next = this.point.start.nextSibling;
643
+ while (next && next !== this.point.end) {
644
+ if (stopNext === null || stopNext === void 0 ? void 0 : stopNext(next)) {
645
+ return;
646
+ }
647
+ childs.push(next);
648
+ next = next.nextSibling;
649
+ }
650
+ return childs;
651
+ };
652
+ RawSet.prototype.getHasRawSet = function (key) {
653
+ var rawSet;
654
+ this.childs(function (node) {
655
+ var _a, _b;
656
+ var drKey = (_b = (_a = node).getAttribute) === null || _b === void 0 ? void 0 : _b.call(_a, 'dr-key');
657
+ if (drKey && drKey === key) {
658
+ rawSet = node.rawSet;
659
+ return true;
660
+ }
661
+ return false;
662
+ });
663
+ return rawSet;
664
+ };
598
665
  RawSet.drItOtherEncoding = function (element) {
599
666
  var random = RandomUtils_1.RandomUtils.uuid();
600
667
  var regex = /#it#/g;
601
- element.querySelectorAll("[".concat(RawSet.DR_IT_OPTIONNAME, "], [").concat(RawSet.DR_FOR_OF_NAME, "], [").concat(RawSet.DR_REPEAT_NAME, "]")).forEach(function (it) {
668
+ element.querySelectorAll("[" + RawSet.DR_IT_OPTIONNAME + "], [" + RawSet.DR_FOR_OF_NAME + "], [" + RawSet.DR_REPEAT_NAME + "]").forEach(function (it) {
602
669
  it.innerHTML = it.innerHTML.replace(regex, random);
603
670
  });
604
671
  return random;
605
672
  };
606
673
  RawSet.drItOtherDecoding = function (element, random) {
607
- element.querySelectorAll("[".concat(RawSet.DR_IT_OPTIONNAME, "], [").concat(RawSet.DR_FOR_OF_NAME, "], [").concat(RawSet.DR_REPEAT_NAME, "]")).forEach(function (it) {
674
+ element.querySelectorAll("[" + RawSet.DR_IT_OPTIONNAME + "], [" + RawSet.DR_FOR_OF_NAME + "], [" + RawSet.DR_REPEAT_NAME + "]").forEach(function (it) {
608
675
  it.innerHTML = it.innerHTML.replace(RegExp(random, 'g'), '#it#');
609
676
  });
610
677
  };
@@ -617,35 +684,35 @@ var RawSet = /** @class */ (function () {
617
684
  // element.querySelectorAll(`[${RawSet.DR_PRE_NAME}]`).forEach(it => {
618
685
  // let message = it.innerHTML;
619
686
  // })
620
- element.querySelectorAll("[".concat(RawSet.DR_PRE_NAME, "]")).forEach(function (it) {
687
+ element.querySelectorAll("[" + RawSet.DR_PRE_NAME + "]").forEach(function (it) {
621
688
  it.innerHTML = it.innerHTML.replace(/this/g, thisRandom);
622
689
  });
623
- element.querySelectorAll("[".concat(RawSet.DR_THIS_NAME, "]")).forEach(function (it) {
690
+ element.querySelectorAll("[" + RawSet.DR_THIS_NAME + "]").forEach(function (it) {
624
691
  var message = it.innerHTML;
625
692
  StringUtils_1.StringUtils.regexExec(/([^(dr\-)])?this(?=.?)/g, message).reverse().forEach(function (it) {
626
693
  var _a;
627
- message = message.substr(0, it.index) + message.substr(it.index).replace(it[0], "".concat((_a = it[1]) !== null && _a !== void 0 ? _a : '').concat(drThis));
694
+ message = message.substr(0, it.index) + message.substr(it.index).replace(it[0], "" + ((_a = it[1]) !== null && _a !== void 0 ? _a : '') + drThis);
628
695
  });
629
696
  it.innerHTML = message;
630
697
  });
631
698
  var message = element.innerHTML;
632
699
  StringUtils_1.StringUtils.regexExec(/([^(dr\-)])?this(?=.?)/g, message).reverse().forEach(function (it) {
633
700
  var _a;
634
- message = message.substr(0, it.index) + message.substr(it.index).replace(it[0], "".concat((_a = it[1]) !== null && _a !== void 0 ? _a : '').concat(drThis));
701
+ message = message.substr(0, it.index) + message.substr(it.index).replace(it[0], "" + ((_a = it[1]) !== null && _a !== void 0 ? _a : '') + drThis);
635
702
  });
636
703
  element.innerHTML = message;
637
704
  return thisRandom;
638
705
  };
639
706
  RawSet.drThisDecoding = function (element, thisRandom) {
640
- element.querySelectorAll("[".concat(RawSet.DR_PRE_NAME, "]")).forEach(function (it) {
707
+ element.querySelectorAll("[" + RawSet.DR_PRE_NAME + "]").forEach(function (it) {
641
708
  it.innerHTML = it.innerHTML.replace(RegExp(thisRandom, 'g'), 'this');
642
709
  });
643
- element.querySelectorAll("[".concat(RawSet.DR_THIS_NAME, "]")).forEach(function (it) {
710
+ element.querySelectorAll("[" + RawSet.DR_THIS_NAME + "]").forEach(function (it) {
644
711
  it.innerHTML = it.innerHTML.replace(RegExp(thisRandom, 'g'), 'this');
645
712
  });
646
713
  };
647
714
  RawSet.drFormOtherMoveAttr = function (element, as, to, config) {
648
- element.querySelectorAll("[".concat(RawSet.DR_FORM_NAME, "]")).forEach(function (subElement) {
715
+ element.querySelectorAll("[" + RawSet.DR_FORM_NAME + "]").forEach(function (subElement) {
649
716
  var _a;
650
717
  var nodeIterator = config.window.document.createNodeIterator(subElement, NodeFilter.SHOW_ELEMENT, {
651
718
  acceptNode: function (node) {
@@ -683,7 +750,7 @@ var RawSet = /** @class */ (function () {
683
750
  };
684
751
  });
685
752
  // element.querySelectorAll(`[${RawSet.DR_THIS_NAME}]`).forEach(it => {
686
- element.querySelectorAll("[".concat(RawSet.DR_VAR_OPTIONNAME, "]")).forEach(function (it) {
753
+ element.querySelectorAll("[" + RawSet.DR_VAR_OPTIONNAME + "]").forEach(function (it) {
687
754
  vars.filter(function (vit) { return vit.value && vit.name; }).forEach(function (vit) {
688
755
  it.innerHTML = it.innerHTML.replace(vit.regex, vit.random);
689
756
  });
@@ -694,7 +761,7 @@ var RawSet = /** @class */ (function () {
694
761
  return vars;
695
762
  };
696
763
  RawSet.drVarDecoding = function (element, vars) {
697
- element.querySelectorAll("[".concat(RawSet.DR_THIS_NAME, "]")).forEach(function (it) {
764
+ element.querySelectorAll("[" + RawSet.DR_THIS_NAME + "]").forEach(function (it) {
698
765
  vars.filter(function (vit) { return vit.value && vit.name; }).forEach(function (vit) {
699
766
  it.innerHTML = it.innerHTML.replace(RegExp(vit.random, 'g'), vit.value);
700
767
  });
@@ -756,7 +823,7 @@ var RawSet = /** @class */ (function () {
756
823
  renderScript = '';
757
824
  createParam = [];
758
825
  if (onCreate) {
759
- script = "".concat(renderScript, " return ").concat(onCreate, " ");
826
+ script = renderScript + " return " + onCreate + " ";
760
827
  createParam = ScriptUtils_1.ScriptUtils.eval(script, obj);
761
828
  if (!Array.isArray(createParam)) {
762
829
  createParam = [createParam];
@@ -765,14 +832,16 @@ var RawSet = /** @class */ (function () {
765
832
  (_e = (_d = set.obj) === null || _d === void 0 ? void 0 : _d.onCreateRender) === null || _e === void 0 ? void 0 : _e.call.apply(_e, __spreadArray([_d], createParam, false));
766
833
  oninit = element.getAttribute(RawSet.DR_ON_CREATED_CALLBACK_OPTIONNAME);
767
834
  if (oninit) {
768
- script = "".concat(renderScript, " ").concat(oninit, " ");
835
+ script = renderScript + " " + oninit + " ";
769
836
  ScriptUtils_1.ScriptUtils.eval(script, obj);
770
837
  }
771
838
  _m.label = 12;
772
839
  case 12:
773
- n.querySelectorAll(EventManager_1.eventManager.attrNames.map(function (it) { return "[".concat(it, "]"); }).join(',')).forEach(function (it) {
840
+ n.querySelectorAll(EventManager_1.eventManager.attrNames.map(function (it) { return "[" + it + "]"; }).join(',')).forEach(function (it) {
774
841
  it.setAttribute(EventManager_1.EventManager.ownerVariablePathAttrName, 'this');
775
842
  });
843
+ // attribute
844
+ n.getAttributeNames().forEach(function (it) { return n.setAttribute(it, n.getAttribute(it).replace(/#this#/g, drThis)); });
776
845
  thisRandom = this.drThisEncoding(n, drThis);
777
846
  vars = this.drVarEncoding(n, drVarOption);
778
847
  this.drVarDecoding(n, vars);
@@ -822,10 +891,11 @@ var RawSet = /** @class */ (function () {
822
891
  callBack: function (element, obj, rawSet, attrs, config) {
823
892
  var _a, _b, _c, _d, _e, _f, _g;
824
893
  return __awaiter(this, void 0, void 0, function () {
825
- var stylePromises, templatePromise, _h, i_1, it_6, _j, _k, _l, _m, _o, domrenderComponents, componentKey, attribute, renderScript, render, constructor, constructorParam, script, param, instance, i, normalAttrMap, onCreate, createParam, script, applayTemplate, innerHTMLThisRandom, componentName, innerHTMLName, oninit, script, style, data, template_1;
894
+ var componentKey, stylePromises, templatePromise, _h, i_1, it_6, _j, _k, _l, _m, _o, domrenderComponents, attribute, renderScript, render, constructor, constructorParam, script, param, instance, i, normalAttrMap, onCreate, createParam, script, applayTemplate, innerHTMLThisRandom, componentName, innerHTMLName, oninit, script, style, data, template_1;
826
895
  return __generator(this, function (_p) {
827
896
  switch (_p.label) {
828
897
  case 0:
898
+ componentKey = rawSet.uuid;
829
899
  stylePromises = [];
830
900
  if (!(this.template && this.template.startsWith('lazy://'))) return [3 /*break*/, 2];
831
901
  return [4 /*yield*/, fetch(this.template.substring(6))];
@@ -878,7 +948,6 @@ var RawSet = /** @class */ (function () {
878
948
  obj.__domrender_components = {};
879
949
  }
880
950
  domrenderComponents = obj.__domrender_components;
881
- componentKey = rawSet.uuid;
882
951
  attribute = DomUtils_1.DomUtils.getAttributeToObject(element);
883
952
  renderScript = 'var $component = this.__render.component; var $element = this.__render.element; var $router = this.__render.router; var $innerHTML = this.__render.innerHTML; var $attribute = this.__render.attribute; var $creatorMetaData = this.__render.creatorMetaData;';
884
953
  render = Object.freeze({
@@ -896,7 +965,7 @@ var RawSet = /** @class */ (function () {
896
965
  constructorParam = [];
897
966
  // dr-constructor
898
967
  if (constructor) {
899
- script = "".concat(renderScript, " return ").concat(constructor, " ");
968
+ script = renderScript + " return " + constructor + " ";
900
969
  param = (_b = ScriptUtils_1.ScriptUtils.eval(script, Object.assign(obj, { __render: render }))) !== null && _b !== void 0 ? _b : [];
901
970
  if (!Array.isArray(param)) {
902
971
  param = [param];
@@ -908,7 +977,7 @@ var RawSet = /** @class */ (function () {
908
977
  instance = domrenderComponents[componentKey];
909
978
  i = instance.__domrender_component_new = ((_c = instance.__domrender_component_new) !== null && _c !== void 0 ? _c : new Proxy({}, new Types_1.DomRenderFinalProxy()));
910
979
  i.thisVariableName = rawSet.point.thisVariableName;
911
- i.thisFullVariableName = "this.__domrender_components.".concat(componentKey);
980
+ i.thisFullVariableName = "this.__domrender_components." + componentKey;
912
981
  i.componentKey = componentKey;
913
982
  i.rawSet = rawSet;
914
983
  i.attribute = attribute;
@@ -923,7 +992,7 @@ var RawSet = /** @class */ (function () {
923
992
  normalAttrMap = element.getAttribute(EventManager_1.EventManager.normalAttrMapAttrName);
924
993
  if (instance.onChangeAttrRender && normalAttrMap) {
925
994
  new Map(JSON.parse(normalAttrMap)).forEach(function (value, key) {
926
- var script = "".concat(renderScript, " return ").concat(value, " ");
995
+ var script = renderScript + " return " + value + " ";
927
996
  var cval = ScriptUtils_1.ScriptUtils.eval(script, Object.assign(obj, { __render: render }));
928
997
  // element.setAttribute(key, cval);
929
998
  instance.onChangeAttrRender(key, cval);
@@ -933,7 +1002,7 @@ var RawSet = /** @class */ (function () {
933
1002
  this.__render = render;
934
1003
  createParam = [];
935
1004
  if (onCreate) {
936
- script = "".concat(renderScript, " return ").concat(onCreate, " ");
1005
+ script = renderScript + " return " + onCreate + " ";
937
1006
  createParam = ScriptUtils_1.ScriptUtils.eval(script, Object.assign(obj, { __render: render }));
938
1007
  if (!Array.isArray(createParam)) {
939
1008
  createParam = [createParam];
@@ -949,20 +1018,20 @@ var RawSet = /** @class */ (function () {
949
1018
  innerHTMLThisRandom = RandomUtils_1.RandomUtils.uuid();
950
1019
  applayTemplate = applayTemplate.replace(/this\./g, innerHTMLThisRandom);
951
1020
  // }
952
- applayTemplate = applayTemplate.replace(RegExp("#".concat(componentName, "#"), 'g'), 'this');
1021
+ applayTemplate = applayTemplate.replace(RegExp("#" + componentName + "#", 'g'), 'this');
953
1022
  }
954
1023
  // applayTemplate = template.replace(RegExp(`#${innerHTMLName}#`, 'g'), applayTemplate);
955
- applayTemplate = ((_g = this.template) !== null && _g !== void 0 ? _g : '').replace(RegExp("#".concat(innerHTMLName, "#"), 'g'), applayTemplate);
1024
+ applayTemplate = ((_g = this.template) !== null && _g !== void 0 ? _g : '').replace(RegExp("#" + innerHTMLName + "#", 'g'), applayTemplate);
956
1025
  oninit = element.getAttribute(RawSet.DR_ON_CREATED_CALLBACK_OPTIONNAME);
957
1026
  if (oninit) {
958
- script = "".concat(renderScript, " ").concat(oninit, " ");
1027
+ script = renderScript + " " + oninit + " ";
959
1028
  ScriptUtils_1.ScriptUtils.eval(script, Object.assign(obj, {
960
1029
  __render: render
961
1030
  }));
962
1031
  }
963
1032
  style = RawSet.generateStyleTransform(this.styles, componentKey, true);
964
1033
  element.innerHTML = style + (applayTemplate !== null && applayTemplate !== void 0 ? applayTemplate : '');
965
- return [4 /*yield*/, RawSet.drThisCreate(rawSet, element, "this.__domrender_components.".concat(componentKey), '', true, obj, config)];
1034
+ return [4 /*yield*/, RawSet.drThisCreate(rawSet, element, "this.__domrender_components." + componentKey, '', true, obj, config)];
966
1035
  case 12:
967
1036
  data = _p.sent();
968
1037
  // 넘어온 innerHTML에 this가 있는걸 다시 복호화해서 제대로 작동하도록한다.
@@ -1016,7 +1085,7 @@ var RawSet = /** @class */ (function () {
1016
1085
  RawSet.DR_IF_NAME = 'dr-if';
1017
1086
  RawSet.DR_FOR_NAME = 'dr-for';
1018
1087
  RawSet.DR_FOR_OF_NAME = 'dr-for-of';
1019
- RawSet.DR_DICTIONARY_NAME = 'dr-dictionary';
1088
+ RawSet.DR_THIS_PROPERTY_NAME = 'dr-this-property';
1020
1089
  RawSet.DR_REPEAT_NAME = 'dr-repeat';
1021
1090
  RawSet.DR_THIS_NAME = 'dr-this';
1022
1091
  RawSet.DR_FORM_NAME = 'dr-form';
@@ -1035,7 +1104,8 @@ var RawSet = /** @class */ (function () {
1035
1104
  RawSet.DR_DESTROY_OPTIONNAME = 'dr-destroy';
1036
1105
  RawSet.DR_COMPONENT_NAME_OPTIONNAME = 'dr-component-name';
1037
1106
  RawSet.DR_COMPONENT_INNER_HTML_NAME_OPTIONNAME = 'dr-component-inner-html-name';
1038
- RawSet.DR_DICTIONARY_OPTIONKEYNAME = 'dr-dictionary-key';
1107
+ RawSet.DR_KEY_OPTIONNAME = 'dr-key';
1108
+ RawSet.DR_HAS_KEYS_OPTIONNAME = 'dr-has-keys';
1039
1109
  RawSet.DR_ON_CREATE_ARGUMENTS_OPTIONNAME = 'dr-on-create:arguments';
1040
1110
  RawSet.DR_ON_CREATED_CALLBACK_OPTIONNAME = 'dr-on-create:callback';
1041
1111
  RawSet.DR_ON_INIT_ARGUMENTS_OPTIONNAME = 'dr-on-init:arguments';
@@ -1045,7 +1115,7 @@ var RawSet = /** @class */ (function () {
1045
1115
  drIf: RawSet.DR_IF_NAME,
1046
1116
  drFor: RawSet.DR_FOR_NAME,
1047
1117
  drForOf: RawSet.DR_FOR_OF_NAME,
1048
- drDictionary: RawSet.DR_DICTIONARY_NAME,
1118
+ drThisProperty: RawSet.DR_THIS_PROPERTY_NAME,
1049
1119
  drAppender: RawSet.DR_APPENDER_NAME,
1050
1120
  drRepeat: RawSet.DR_REPEAT_NAME,
1051
1121
  drThis: RawSet.DR_THIS_NAME,
@@ -1061,10 +1131,11 @@ var RawSet = /** @class */ (function () {
1061
1131
  drCompleteOption: RawSet.DR_COMPLETE_OPTIONNAME,
1062
1132
  drStripOption: RawSet.DR_STRIP_OPTIONNAME,
1063
1133
  drDestroyOption: RawSet.DR_DESTROY_OPTIONNAME,
1064
- drDictionaryOption: RawSet.DR_DICTIONARY_OPTIONKEYNAME
1134
+ drHasKeysOption: RawSet.DR_HAS_KEYS_OPTIONNAME,
1135
+ drKeyOption: RawSet.DR_KEY_OPTIONNAME
1065
1136
  };
1066
1137
  RawSet.DR_TAGS = [];
1067
- RawSet.DR_ATTRIBUTES = [RawSet.DR_NAME, RawSet.DR_APPENDER_NAME, RawSet.DR_IF_NAME, RawSet.DR_FOR_OF_NAME, RawSet.DR_DICTIONARY_NAME, RawSet.DR_FOR_NAME, RawSet.DR_THIS_NAME, RawSet.DR_FORM_NAME, RawSet.DR_PRE_NAME, RawSet.DR_INNERHTML_NAME, RawSet.DR_INNERTEXT_NAME, RawSet.DR_REPEAT_NAME, RawSet.DR_DETECT_NAME];
1138
+ RawSet.DR_ATTRIBUTES = [RawSet.DR_NAME, RawSet.DR_APPENDER_NAME, RawSet.DR_IF_NAME, RawSet.DR_FOR_OF_NAME, RawSet.DR_THIS_PROPERTY_NAME, RawSet.DR_FOR_NAME, RawSet.DR_THIS_NAME, RawSet.DR_FORM_NAME, RawSet.DR_PRE_NAME, RawSet.DR_INNERHTML_NAME, RawSet.DR_INNERTEXT_NAME, RawSet.DR_REPEAT_NAME, RawSet.DR_DETECT_NAME];
1068
1139
  return RawSet;
1069
1140
  }());
1070
1141
  exports.RawSet = RawSet;
@@ -0,0 +1,3 @@
1
+ export declare enum RawSetOperatorType {
2
+ DR_THIS_PROPERTY = "this-property"
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RawSetOperatorType = void 0;
4
+ var RawSetOperatorType;
5
+ (function (RawSetOperatorType) {
6
+ RawSetOperatorType["DR_THIS_PROPERTY"] = "this-property";
7
+ })(RawSetOperatorType = exports.RawSetOperatorType || (exports.RawSetOperatorType = {}));
@@ -1,7 +1,7 @@
1
1
  import { CreatorMetaData } from './CreatorMetaData';
2
2
  import { Router } from '../routers/Router';
3
3
  import { RawSet } from './RawSet';
4
- export type Render = {
4
+ export declare type Render = {
5
5
  rawset?: RawSet;
6
6
  scripts?: {
7
7
  [n: string]: any;
@@ -1,4 +1,4 @@
1
- export type RouteData = {
1
+ export declare type RouteData = {
2
2
  path: string;
3
3
  url: string;
4
4
  data?: any;
package/routers/Router.js CHANGED
@@ -27,7 +27,7 @@ var Router = /** @class */ (function () {
27
27
  var _this = this;
28
28
  var proxy = this.rootObj._DomRender_proxy;
29
29
  if (proxy) {
30
- var key = "___".concat(EventManager_1.EventManager.ROUTER_VARNAME);
30
+ var key = "___" + EventManager_1.EventManager.ROUTER_VARNAME;
31
31
  proxy.render(key);
32
32
  }
33
33
  this.attachCallbacks.forEach(function (it) {
@@ -1,4 +1,4 @@
1
- export type Attr = {
1
+ export declare type Attr = {
2
2
  name: string;
3
3
  value: any;
4
4
  };
@@ -1,4 +1,4 @@
1
- export type Attr = {
1
+ export declare type Attr = {
2
2
  name: string;
3
3
  value: any;
4
4
  };