@dooboostore/simple-web-component 1.0.1 → 1.0.2

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 (41) hide show
  1. package/README.md +26 -31
  2. package/dist/cjs/elements/SwcForOf.js +6 -76
  3. package/dist/cjs/elements/SwcForOf.js.map +2 -2
  4. package/dist/cjs/elements/SwcHTMLElementBase.js +102 -0
  5. package/dist/cjs/elements/SwcHTMLElementBase.js.map +7 -0
  6. package/dist/cjs/elements/SwcIf.js +5 -13
  7. package/dist/cjs/elements/SwcIf.js.map +2 -2
  8. package/dist/cjs/elements/SwcObject.js +115 -0
  9. package/dist/cjs/elements/SwcObject.js.map +7 -0
  10. package/dist/cjs/index.js +2 -0
  11. package/dist/cjs/index.js.map +2 -2
  12. package/dist/esm/elements/SwcForOf.js +6 -76
  13. package/dist/esm/elements/SwcForOf.js.map +2 -2
  14. package/dist/esm/elements/SwcHTMLElementBase.js +83 -0
  15. package/dist/esm/elements/SwcHTMLElementBase.js.map +7 -0
  16. package/dist/esm/elements/SwcIf.js +5 -13
  17. package/dist/esm/elements/SwcIf.js.map +2 -2
  18. package/dist/esm/elements/SwcObject.js +96 -0
  19. package/dist/esm/elements/SwcObject.js.map +7 -0
  20. package/dist/esm/index.js +2 -0
  21. package/dist/esm/index.js.map +2 -2
  22. package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +184 -89
  23. package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +4 -4
  24. package/dist/types/elements/SwcForOf.d.ts +2 -4
  25. package/dist/types/elements/SwcForOf.d.ts.map +1 -1
  26. package/dist/types/elements/SwcHTMLElementBase.d.ts +14 -0
  27. package/dist/types/elements/SwcHTMLElementBase.d.ts.map +1 -0
  28. package/dist/types/elements/SwcIf.d.ts +2 -2
  29. package/dist/types/elements/SwcIf.d.ts.map +1 -1
  30. package/dist/types/elements/SwcObject.d.ts +14 -0
  31. package/dist/types/elements/SwcObject.d.ts.map +1 -0
  32. package/dist/types/index.d.ts +2 -0
  33. package/dist/types/index.d.ts.map +1 -1
  34. package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +184 -89
  35. package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
  36. package/package.json +1 -1
  37. package/src/elements/SwcForOf.ts +10 -85
  38. package/src/elements/SwcHTMLElementBase.ts +93 -0
  39. package/src/elements/SwcIf.ts +6 -25
  40. package/src/elements/SwcObject.ts +78 -0
  41. package/src/index.ts +2 -0
@@ -0,0 +1,14 @@
1
+ export declare abstract class SwcHTMLElementBase extends HTMLElement {
2
+ protected _masterTplNodes: Node[];
3
+ protected _asKey: string;
4
+ protected _asIndexKey: string;
5
+ constructor();
6
+ protected initCore(): void;
7
+ protected getValueByPath(obj: any, path: string): any;
8
+ protected applyData(node: Node, data: any, index?: number): void;
9
+ /**
10
+ * 객체/배열의 변경을 감지하는 Proxy 생성 유틸리티
11
+ */
12
+ protected createReactiveProxy(target: any, onChange: () => void, onIndexChange?: (index: number, val: any) => void): any;
13
+ }
14
+ //# sourceMappingURL=SwcHTMLElementBase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwcHTMLElementBase.d.ts","sourceRoot":"","sources":["../../../src/elements/SwcHTMLElementBase.ts"],"names":[],"mappings":"AAGA,8BAAsB,kBAAmB,SAAQ,WAAW;IAC1D,SAAS,CAAC,eAAe,EAAE,IAAI,EAAE,CAAM;IACvC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAW;IACnC,SAAS,CAAC,WAAW,EAAE,MAAM,CAAW;;IAMxC,SAAS,CAAC,QAAQ;IASlB,SAAS,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM;IAW/C,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,MAAM;IAsCzD;;OAEG;IACH,SAAS,CAAC,mBAAmB,CAAC,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,IAAI,EAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,KAAK,IAAI;CAmBnH"}
@@ -1,6 +1,6 @@
1
- export declare class SwcIf extends HTMLElement {
1
+ import { SwcHTMLElementBase } from './SwcHTMLElementBase';
2
+ export declare class SwcIf extends SwcHTMLElementBase {
2
3
  private _value;
3
- private _masterTplNodes;
4
4
  private _observer;
5
5
  constructor();
6
6
  set value(val: any);
@@ -1 +1 @@
1
- {"version":3,"file":"SwcIf.d.ts","sourceRoot":"","sources":["../../../src/elements/SwcIf.ts"],"names":[],"mappings":"AAEA,qBACa,KAAM,SAAQ,WAAW;IACpC,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,eAAe,CAAc;IACrC,OAAO,CAAC,SAAS,CAAiC;;IAMlD,IAAI,KAAK,CAAC,GAAG,EAAE,GAAG,EAGjB;IAED,IAAI,KAAK,IAAI,GAAG,CAEf;IAGD,MAAM;IAON,cAAc;IAMd,iBAAiB;IAajB,oBAAoB;IAIpB,OAAO,CAAC,MAAM;CA0Df"}
1
+ {"version":3,"file":"SwcIf.d.ts","sourceRoot":"","sources":["../../../src/elements/SwcIf.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBACa,KAAM,SAAQ,kBAAkB;IAC3C,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,SAAS,CAAiC;;IAMlD,IAAI,KAAK,CAAC,GAAG,EAAE,GAAG,EAGjB;IAED,IAAI,KAAK,IAAI,GAAG,CAEf;IAGD,MAAM;IAKN,cAAc;IAId,iBAAiB;IAOjB,oBAAoB;IAIpB,OAAO,CAAC,MAAM;CAiDf"}
@@ -0,0 +1,14 @@
1
+ import { SwcHTMLElementBase } from './SwcHTMLElementBase';
2
+ export declare class SwcObject extends SwcHTMLElementBase {
3
+ private _value;
4
+ private _renderedNodes;
5
+ constructor();
6
+ set value(val: any);
7
+ get value(): any;
8
+ styles(): string;
9
+ renderTemplate(): string;
10
+ connectedCallback(): void;
11
+ private updateUI;
12
+ private render;
13
+ }
14
+ //# sourceMappingURL=SwcObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwcObject.d.ts","sourceRoot":"","sources":["../../../src/elements/SwcObject.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBACa,SAAU,SAAQ,kBAAkB;IAC/C,OAAO,CAAC,MAAM,CAAW;IACzB,OAAO,CAAC,cAAc,CAAc;;IAMpC,IAAI,KAAK,CAAC,GAAG,EAAE,GAAG,EAIjB;IAED,IAAI,KAAK,IAAI,GAAG,CAEf;IAGD,MAAM;IAKN,cAAc;IAId,iBAAiB;IAKjB,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,MAAM;CAkCf"}
@@ -10,4 +10,6 @@ export * from './elements/SwcIf';
10
10
  export * from './elements/SwcChoose';
11
11
  export * from './elements/SwcWhen';
12
12
  export * from './elements/SwcOther';
13
+ export * from './elements/SwcObject';
14
+ export * from './elements/SwcHTMLElementBase';
13
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC"}
@@ -29,7 +29,9 @@ var dooboostoreSimpleWebComponent = (() => {
29
29
  STYLE_METHOD_KEY: () => STYLE_METHOD_KEY,
30
30
  SwcChoose: () => SwcChoose,
31
31
  SwcForOf: () => SwcForOf,
32
+ SwcHTMLElementBase: () => SwcHTMLElementBase,
32
33
  SwcIf: () => SwcIf,
34
+ SwcObject: () => SwcObject,
33
35
  SwcOther: () => SwcOther,
34
36
  SwcWhen: () => SwcWhen,
35
37
  TEMPLATE_METHOD_KEY: () => TEMPLATE_METHOD_KEY,
@@ -465,6 +467,87 @@ var dooboostoreSimpleWebComponent = (() => {
465
467
  return ReflectUtils.getMetadata(ELEMENT_CONFIG_KEY, constructor);
466
468
  };
467
469
 
470
+ // src/elements/SwcHTMLElementBase.ts
471
+ var SwcHTMLElementBase = class extends HTMLElement {
472
+ constructor() {
473
+ super();
474
+ this._masterTplNodes = [];
475
+ this._asKey = "value";
476
+ this._asIndexKey = "index";
477
+ }
478
+ initCore() {
479
+ this._asKey = this.getAttribute("as") || "value";
480
+ this._asIndexKey = this.getAttribute("as-index") || "index";
481
+ const tplSlot = this.shadowRoot?.getElementById("tpl-slot");
482
+ if (tplSlot) {
483
+ this._masterTplNodes = tplSlot.assignedNodes().map((n) => n.cloneNode(true));
484
+ }
485
+ }
486
+ getValueByPath(obj, path) {
487
+ if (path === this._asKey) return obj;
488
+ if (path.startsWith(`${this._asKey}.`)) {
489
+ return path.split(".").slice(1).reduce((acc, part) => acc && acc[part], obj);
490
+ }
491
+ return void 0;
492
+ }
493
+ applyData(node, data, index) {
494
+ const context = {};
495
+ if (index !== void 0) {
496
+ context[this._asIndexKey] = index.toString();
497
+ }
498
+ const walk = (n) => {
499
+ if (n.nodeType === Node.TEXT_NODE) {
500
+ if (!n._original) n._original = n.textContent;
501
+ let text = n._original;
502
+ text = text.replace(/{{(.*?)}}/g, (match, path) => {
503
+ path = path.trim();
504
+ if (context[path] !== void 0) return context[path];
505
+ const val = this.getValueByPath(data, path);
506
+ return val !== void 0 ? val : match;
507
+ });
508
+ if (n.textContent !== text) n.textContent = text;
509
+ } else if (n.nodeType === Node.ELEMENT_NODE) {
510
+ const el = n;
511
+ Array.from(el.attributes).forEach((a) => {
512
+ if (!a._original) a._original = a.value;
513
+ let val = a._original;
514
+ val = val.replace(/{{(.*?)}}/g, (match, path) => {
515
+ path = path.trim();
516
+ if (context[path] !== void 0) return context[path];
517
+ const v = this.getValueByPath(data, path);
518
+ return v !== void 0 ? v : match;
519
+ });
520
+ if (a.value !== val) a.value = val;
521
+ });
522
+ el.childNodes.forEach(walk);
523
+ }
524
+ };
525
+ walk(node);
526
+ }
527
+ /**
528
+ * 객체/배열의 변경을 감지하는 Proxy 생성 유틸리티
529
+ */
530
+ createReactiveProxy(target, onChange, onIndexChange) {
531
+ return new Proxy(target, {
532
+ set: (t, prop, val) => {
533
+ const isIndex = !isNaN(Number(prop));
534
+ t[prop] = val;
535
+ if (isIndex && onIndexChange) {
536
+ onIndexChange(Number(prop), val);
537
+ } else {
538
+ onChange();
539
+ }
540
+ return true;
541
+ },
542
+ deleteProperty: (t, prop) => {
543
+ delete t[prop];
544
+ onChange();
545
+ return true;
546
+ }
547
+ });
548
+ }
549
+ };
550
+
468
551
  // src/elements/SwcForOf.ts
469
552
  var __decorate = function(decorators, target, key, desc) {
470
553
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -475,55 +558,28 @@ var dooboostoreSimpleWebComponent = (() => {
475
558
  var __metadata = function(k, v) {
476
559
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
477
560
  };
478
- var SwcForOf = class SwcForOf2 extends HTMLElement {
561
+ var SwcForOf = class SwcForOf2 extends SwcHTMLElementBase {
479
562
  constructor() {
480
563
  super();
481
564
  this._value = [];
482
- this._masterTplNodes = [];
483
565
  }
484
566
  set value(val) {
485
567
  if (!Array.isArray(val))
486
568
  val = [];
487
- this._value = this.createProxy(val);
569
+ this._value = this.createReactiveProxy(val, () => this.renderAll(), (idx, v) => this.updateSingleRow(idx, v));
488
570
  this.renderAll();
489
571
  }
490
572
  get value() {
491
573
  return this._value;
492
574
  }
493
- createProxy(arr) {
494
- return new Proxy(arr, {
495
- set: (target, prop, val) => {
496
- const isIndex = !isNaN(Number(prop));
497
- target[prop] = val;
498
- if (isIndex) {
499
- this.updateSingleRow(Number(prop), val);
500
- } else if (prop === "length" && val < target.length) {
501
- this.renderAll();
502
- }
503
- return true;
504
- },
505
- deleteProperty: (target, prop) => {
506
- const res = delete target[prop];
507
- this.renderAll();
508
- return res;
509
- }
510
- });
511
- }
512
575
  styles() {
513
- return `
514
- :host { display: contents; }
515
- `;
576
+ return `:host { display: contents; }`;
516
577
  }
517
578
  renderTemplate() {
518
- return `
519
- <slot id="tpl-slot" style="display:none;"></slot>
520
- `;
579
+ return `<slot id="tpl-slot" style="display:none;"></slot>`;
521
580
  }
522
581
  connectedCallback() {
523
- const tplSlot = this.shadowRoot?.getElementById("tpl-slot");
524
- if (tplSlot) {
525
- this._masterTplNodes = tplSlot.assignedNodes().map((n) => n.cloneNode(true));
526
- }
582
+ this.initCore();
527
583
  this.renderAll();
528
584
  }
529
585
  updateSingleRow(index, newValue) {
@@ -534,50 +590,6 @@ var dooboostoreSimpleWebComponent = (() => {
534
590
  this.renderRow(newValue, index);
535
591
  }
536
592
  }
537
- applyData(node, data, index) {
538
- const getValueByPath = (obj, path) => {
539
- if (path === "value")
540
- return obj;
541
- if (path.startsWith("value.")) {
542
- return path.split(".").slice(1).reduce((acc, part) => acc && acc[part], obj);
543
- }
544
- return void 0;
545
- };
546
- const walk = (n) => {
547
- if (n.nodeType === Node.TEXT_NODE) {
548
- if (!n._original)
549
- n._original = n.textContent;
550
- let text = n._original;
551
- text = text.replace(/{{(.*?)}}/g, (match, path) => {
552
- path = path.trim();
553
- if (path === "index")
554
- return index.toString();
555
- const val = getValueByPath(data, path);
556
- return val !== void 0 ? val : match;
557
- });
558
- if (n.textContent !== text)
559
- n.textContent = text;
560
- } else if (n.nodeType === Node.ELEMENT_NODE) {
561
- const el = n;
562
- Array.from(el.attributes).forEach((a) => {
563
- if (!a._original)
564
- a._original = a.value;
565
- let val = a._original;
566
- val = val.replace(/{{(.*?)}}/g, (match, path) => {
567
- path = path.trim();
568
- if (path === "index")
569
- return index.toString();
570
- const v = getValueByPath(data, path);
571
- return v !== void 0 ? v : match;
572
- });
573
- if (a.value !== val)
574
- a.value = val;
575
- });
576
- el.childNodes.forEach(walk);
577
- }
578
- };
579
- walk(node);
580
- }
581
593
  renderRow(item, index) {
582
594
  if (!this.shadowRoot || this._masterTplNodes.length === 0)
583
595
  return;
@@ -649,11 +661,10 @@ var dooboostoreSimpleWebComponent = (() => {
649
661
  var __metadata2 = function(k, v) {
650
662
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
651
663
  };
652
- var SwcIf = class SwcIf2 extends HTMLElement {
664
+ var SwcIf = class SwcIf2 extends SwcHTMLElementBase {
653
665
  constructor() {
654
666
  super();
655
667
  this._value = false;
656
- this._masterTplNodes = [];
657
668
  this._observer = null;
658
669
  }
659
670
  set value(val) {
@@ -664,20 +675,13 @@ var dooboostoreSimpleWebComponent = (() => {
664
675
  return this._value;
665
676
  }
666
677
  styles() {
667
- return `
668
- :host { display: contents; }
669
- `;
678
+ return `:host { display: contents; }`;
670
679
  }
671
680
  renderTemplate() {
672
- return `
673
- <slot id="tpl-slot" style="display:none;"></slot>
674
- `;
681
+ return `<slot id="tpl-slot" style="display:none;"></slot>`;
675
682
  }
676
683
  connectedCallback() {
677
- const tplSlot = this.shadowRoot?.getElementById("tpl-slot");
678
- if (tplSlot) {
679
- this._masterTplNodes = tplSlot.assignedNodes().map((n) => n.cloneNode(true));
680
- }
684
+ this.initCore();
681
685
  this._observer = new MutationObserver(() => this.render());
682
686
  this._observer.observe(this, { attributes: true });
683
687
  this.render();
@@ -720,7 +724,6 @@ var dooboostoreSimpleWebComponent = (() => {
720
724
  const clone = tplNode.cloneNode(true);
721
725
  if (clone.nodeType === Node.ELEMENT_NODE) {
722
726
  clone.setAttribute("slot", "if-content");
723
- clone.style.display = "";
724
727
  } else if (clone.nodeType === Node.TEXT_NODE) {
725
728
  if (clone.textContent?.trim().length === 0)
726
729
  return;
@@ -914,6 +917,98 @@ var dooboostoreSimpleWebComponent = (() => {
914
917
  SwcOther = __decorate5([
915
918
  elementDefind({ tagName: "swc-other", useShadow: true })
916
919
  ], SwcOther);
920
+
921
+ // src/elements/SwcObject.ts
922
+ var __decorate6 = function(decorators, target, key, desc) {
923
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
924
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
925
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
926
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
927
+ };
928
+ var __metadata6 = function(k, v) {
929
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
930
+ };
931
+ var SwcObject = class SwcObject2 extends SwcHTMLElementBase {
932
+ constructor() {
933
+ super();
934
+ this._value = {};
935
+ this._renderedNodes = [];
936
+ }
937
+ set value(val) {
938
+ if (typeof val !== "object" || val === null)
939
+ val = {};
940
+ this._value = this.createReactiveProxy(val, () => this.updateUI());
941
+ this.render();
942
+ }
943
+ get value() {
944
+ return this._value;
945
+ }
946
+ styles() {
947
+ return `:host { display: contents; }`;
948
+ }
949
+ renderTemplate() {
950
+ return `<slot id="tpl-slot" style="display:none;"></slot>`;
951
+ }
952
+ connectedCallback() {
953
+ this.initCore();
954
+ this.render();
955
+ }
956
+ updateUI() {
957
+ this._renderedNodes.forEach((node) => {
958
+ this.applyData(node, this._value);
959
+ });
960
+ }
961
+ render() {
962
+ if (!this.shadowRoot || this._masterTplNodes.length === 0)
963
+ return;
964
+ this._renderedNodes.forEach((n) => {
965
+ if (n.parentElement === this)
966
+ this.removeChild(n);
967
+ });
968
+ this._renderedNodes = [];
969
+ let slot = this.shadowRoot.querySelector('slot[name="obj-content"]');
970
+ if (!slot) {
971
+ slot = document.createElement("slot");
972
+ slot.name = "obj-content";
973
+ this.shadowRoot.appendChild(slot);
974
+ }
975
+ this._masterTplNodes.forEach((tplNode) => {
976
+ const clone = tplNode.cloneNode(true);
977
+ if (clone.nodeType === Node.ELEMENT_NODE) {
978
+ clone.setAttribute("slot", "obj-content");
979
+ } else if (clone.nodeType === Node.TEXT_NODE) {
980
+ if (clone.textContent?.trim().length === 0)
981
+ return;
982
+ const span = document.createElement("span");
983
+ span.setAttribute("slot", "obj-content");
984
+ span.appendChild(clone);
985
+ this.appendChild(span);
986
+ this._renderedNodes.push(span);
987
+ this.applyData(span, this._value);
988
+ return;
989
+ }
990
+ this.appendChild(clone);
991
+ this._renderedNodes.push(clone);
992
+ this.applyData(clone, this._value);
993
+ });
994
+ }
995
+ };
996
+ __decorate6([
997
+ style,
998
+ __metadata6("design:type", Function),
999
+ __metadata6("design:paramtypes", []),
1000
+ __metadata6("design:returntype", void 0)
1001
+ ], SwcObject.prototype, "styles", null);
1002
+ __decorate6([
1003
+ template,
1004
+ __metadata6("design:type", Function),
1005
+ __metadata6("design:paramtypes", []),
1006
+ __metadata6("design:returntype", void 0)
1007
+ ], SwcObject.prototype, "renderTemplate", null);
1008
+ SwcObject = __decorate6([
1009
+ elementDefind({ tagName: "swc-object", useShadow: true }),
1010
+ __metadata6("design:paramtypes", [])
1011
+ ], SwcObject);
917
1012
  return __toCommonJS(bundle_entry_exports);
918
1013
  })();
919
1014
  //# sourceMappingURL=dooboostore-simple-web-component.umd.js.map