@dooboostore/simple-web-component 1.0.35 → 1.0.36

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 (136) hide show
  1. package/README.md +21 -21
  2. package/dist/cjs/decorators/addEventListener.js +12 -4
  3. package/dist/cjs/decorators/addEventListener.js.map +2 -2
  4. package/dist/cjs/decorators/applyAttribute.js +19 -18
  5. package/dist/cjs/decorators/applyAttribute.js.map +2 -2
  6. package/dist/cjs/decorators/applyClass.js +23 -22
  7. package/dist/cjs/decorators/applyClass.js.map +2 -2
  8. package/dist/cjs/decorators/applyNode.js +18 -17
  9. package/dist/cjs/decorators/applyNode.js.map +2 -2
  10. package/dist/cjs/decorators/applyStyle.js +20 -19
  11. package/dist/cjs/decorators/applyStyle.js.map +2 -2
  12. package/dist/cjs/decorators/attribute.js +16 -15
  13. package/dist/cjs/decorators/attribute.js.map +2 -2
  14. package/dist/cjs/decorators/{changedAttributeHost.js → changedAttributeThis.js} +6 -6
  15. package/dist/cjs/decorators/changedAttributeThis.js.map +7 -0
  16. package/dist/cjs/decorators/elementDefine.js +21 -20
  17. package/dist/cjs/decorators/elementDefine.js.map +2 -2
  18. package/dist/cjs/decorators/emitCustomEvent.js +18 -16
  19. package/dist/cjs/decorators/emitCustomEvent.js.map +2 -2
  20. package/dist/cjs/decorators/index.js +1 -1
  21. package/dist/cjs/decorators/index.js.map +1 -1
  22. package/dist/cjs/decorators/query.js +38 -60
  23. package/dist/cjs/decorators/query.js.map +2 -2
  24. package/dist/cjs/decorators/queryAll.js +31 -63
  25. package/dist/cjs/decorators/queryAll.js.map +2 -2
  26. package/dist/cjs/decorators/setProperty.js +13 -12
  27. package/dist/cjs/decorators/setProperty.js.map +2 -2
  28. package/dist/cjs/elements/SwcAsync.js +6 -6
  29. package/dist/cjs/elements/SwcAsync.js.map +1 -1
  30. package/dist/cjs/elements/SwcChoose.js +5 -5
  31. package/dist/cjs/elements/SwcChoose.js.map +1 -1
  32. package/dist/cjs/elements/SwcIf.js +6 -6
  33. package/dist/cjs/elements/SwcIf.js.map +1 -1
  34. package/dist/cjs/elements/SwcLoop.js +5 -5
  35. package/dist/cjs/elements/SwcLoop.js.map +1 -1
  36. package/dist/cjs/elements/register.js +18 -18
  37. package/dist/cjs/elements/register.js.map +1 -1
  38. package/dist/cjs/types.js.map +1 -1
  39. package/dist/cjs/utils/Utils.js +13 -13
  40. package/dist/cjs/utils/Utils.js.map +2 -2
  41. package/dist/esm/decorators/addEventListener.js +12 -4
  42. package/dist/esm/decorators/addEventListener.js.map +2 -2
  43. package/dist/esm/decorators/applyAttribute.js +19 -18
  44. package/dist/esm/decorators/applyAttribute.js.map +2 -2
  45. package/dist/esm/decorators/applyClass.js +23 -22
  46. package/dist/esm/decorators/applyClass.js.map +2 -2
  47. package/dist/esm/decorators/applyNode.js +18 -17
  48. package/dist/esm/decorators/applyNode.js.map +2 -2
  49. package/dist/esm/decorators/applyStyle.js +20 -19
  50. package/dist/esm/decorators/applyStyle.js.map +2 -2
  51. package/dist/esm/decorators/attribute.js +16 -15
  52. package/dist/esm/decorators/attribute.js.map +2 -2
  53. package/dist/esm/decorators/{changedAttributeHost.js → changedAttributeThis.js} +3 -3
  54. package/dist/esm/decorators/changedAttributeThis.js.map +7 -0
  55. package/dist/esm/decorators/elementDefine.js +19 -18
  56. package/dist/esm/decorators/elementDefine.js.map +2 -2
  57. package/dist/esm/decorators/emitCustomEvent.js +18 -16
  58. package/dist/esm/decorators/emitCustomEvent.js.map +2 -2
  59. package/dist/esm/decorators/index.js +1 -1
  60. package/dist/esm/decorators/index.js.map +1 -1
  61. package/dist/esm/decorators/query.js +38 -60
  62. package/dist/esm/decorators/query.js.map +2 -2
  63. package/dist/esm/decorators/queryAll.js +31 -63
  64. package/dist/esm/decorators/queryAll.js.map +2 -2
  65. package/dist/esm/decorators/setProperty.js +13 -12
  66. package/dist/esm/decorators/setProperty.js.map +2 -2
  67. package/dist/esm/elements/SwcAsync.js +7 -7
  68. package/dist/esm/elements/SwcAsync.js.map +1 -1
  69. package/dist/esm/elements/SwcChoose.js +6 -6
  70. package/dist/esm/elements/SwcChoose.js.map +1 -1
  71. package/dist/esm/elements/SwcIf.js +7 -7
  72. package/dist/esm/elements/SwcIf.js.map +1 -1
  73. package/dist/esm/elements/SwcLoop.js +6 -6
  74. package/dist/esm/elements/SwcLoop.js.map +1 -1
  75. package/dist/esm/elements/register.js +19 -19
  76. package/dist/esm/elements/register.js.map +1 -1
  77. package/dist/esm/types.js.map +1 -1
  78. package/dist/esm/utils/Utils.js +13 -13
  79. package/dist/esm/utils/Utils.js.map +2 -2
  80. package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +271 -308
  81. package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +4 -4
  82. package/dist/types/decorators/addEventListener.d.ts +5 -7
  83. package/dist/types/decorators/addEventListener.d.ts.map +1 -1
  84. package/dist/types/decorators/applyAttribute.d.ts +4 -4
  85. package/dist/types/decorators/applyAttribute.d.ts.map +1 -1
  86. package/dist/types/decorators/applyClass.d.ts +6 -6
  87. package/dist/types/decorators/applyClass.d.ts.map +1 -1
  88. package/dist/types/decorators/applyNode.d.ts +6 -6
  89. package/dist/types/decorators/applyNode.d.ts.map +1 -1
  90. package/dist/types/decorators/applyStyle.d.ts +4 -4
  91. package/dist/types/decorators/applyStyle.d.ts.map +1 -1
  92. package/dist/types/decorators/attribute.d.ts +5 -5
  93. package/dist/types/decorators/attribute.d.ts.map +1 -1
  94. package/dist/types/decorators/changedAttributeThis.d.ts +18 -0
  95. package/dist/types/decorators/changedAttributeThis.d.ts.map +1 -0
  96. package/dist/types/decorators/elementDefine.d.ts.map +1 -1
  97. package/dist/types/decorators/emitCustomEvent.d.ts +4 -9
  98. package/dist/types/decorators/emitCustomEvent.d.ts.map +1 -1
  99. package/dist/types/decorators/index.d.ts +1 -1
  100. package/dist/types/decorators/query.d.ts +17 -63
  101. package/dist/types/decorators/query.d.ts.map +1 -1
  102. package/dist/types/decorators/queryAll.d.ts +6 -63
  103. package/dist/types/decorators/queryAll.d.ts.map +1 -1
  104. package/dist/types/decorators/setProperty.d.ts +1 -1
  105. package/dist/types/decorators/setProperty.d.ts.map +1 -1
  106. package/dist/types/types.d.ts +2 -2
  107. package/dist/types/types.d.ts.map +1 -1
  108. package/dist/types/utils/Utils.d.ts +7 -7
  109. package/dist/types/utils/Utils.d.ts.map +1 -1
  110. package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +271 -308
  111. package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +4 -4
  112. package/package.json +4 -4
  113. package/src/decorators/addEventListener.ts +11 -9
  114. package/src/decorators/applyAttribute.ts +16 -15
  115. package/src/decorators/applyClass.ts +18 -17
  116. package/src/decorators/applyNode.ts +21 -20
  117. package/src/decorators/applyStyle.ts +17 -16
  118. package/src/decorators/attribute.ts +20 -19
  119. package/src/decorators/{changedAttributeHost.ts → changedAttributeThis.ts} +10 -12
  120. package/src/decorators/elementDefine.ts +21 -20
  121. package/src/decorators/emitCustomEvent.ts +21 -26
  122. package/src/decorators/index.ts +1 -1
  123. package/src/decorators/query.ts +51 -124
  124. package/src/decorators/queryAll.ts +30 -127
  125. package/src/decorators/setProperty.ts +12 -11
  126. package/src/elements/SwcAsync.ts +7 -7
  127. package/src/elements/SwcChoose.ts +6 -6
  128. package/src/elements/SwcIf.ts +8 -8
  129. package/src/elements/SwcLoop.ts +6 -6
  130. package/src/elements/register.ts +20 -20
  131. package/src/types.ts +5 -5
  132. package/src/utils/Utils.ts +17 -18
  133. package/dist/cjs/decorators/changedAttributeHost.js.map +0 -7
  134. package/dist/esm/decorators/changedAttributeHost.js.map +0 -7
  135. package/dist/types/decorators/changedAttributeHost.d.ts +0 -20
  136. package/dist/types/decorators/changedAttributeHost.d.ts.map +0 -1
@@ -5873,11 +5873,17 @@ var getAddEventListenerMetadata = (target) => {
5873
5873
  const constructor = target instanceof Function ? target : target.constructor;
5874
5874
  return ReflectUtils.getMetadata(ADD_EVENT_LISTENER_METADATA_KEY, constructor);
5875
5875
  };
5876
- function addEventListenerHost(type, options) {
5877
- return addEventListener(":host", type, options);
5876
+ function addEventListenerThis(type, options) {
5877
+ return addEventListener("$this", type, options);
5878
5878
  }
5879
5879
  function addEventListenerAppHost(type, options) {
5880
- return addEventListener(":appHost", type, options);
5880
+ return addEventListener("$appHost", type, options);
5881
+ }
5882
+ function addEventListenerWindow(type, options) {
5883
+ return addEventListener("$window", type, options);
5884
+ }
5885
+ function addEventListenerDocument(type, options) {
5886
+ return addEventListener("$document", type, options);
5881
5887
  }
5882
5888
 
5883
5889
  // src/decorators/lifecycles.ts
@@ -6127,7 +6133,7 @@ var SwcUtils;
6127
6133
  }
6128
6134
  return current;
6129
6135
  };
6130
- SwcUtils2.findNearestSwcHost = (el) => {
6136
+ SwcUtils2.findNearestSwcHostIncludingSelf = (el) => {
6131
6137
  const el1 = el;
6132
6138
  if (el1.__swc_host) return el1.__swc_host;
6133
6139
  let current = el.parentElement || el.getRootNode?.()?.host;
@@ -6140,26 +6146,26 @@ var SwcUtils;
6140
6146
  }
6141
6147
  return void 0;
6142
6148
  };
6143
- SwcUtils2.findAllSwcHosts = (el) => {
6149
+ SwcUtils2.findAllSwcHostsIncludingSelf = (el) => {
6144
6150
  const hosts = [];
6145
- let current = (0, SwcUtils2.findNearestSwcHost)(el);
6151
+ let current = (0, SwcUtils2.findNearestSwcHostIncludingSelf)(el);
6146
6152
  while (current) {
6147
6153
  hosts.push(current);
6148
- current = (0, SwcUtils2.findNearestSwcHost)(current);
6154
+ current = (0, SwcUtils2.findNearestSwcHostIncludingSelf)(current);
6149
6155
  }
6150
6156
  return hosts.reverse();
6151
6157
  };
6152
6158
  SwcUtils2.getHosts = (el) => {
6153
- const ancestors = (0, SwcUtils2.findAllSwcHosts)(el);
6159
+ const ancestors = (0, SwcUtils2.findAllSwcHostsIncludingSelf)(el);
6154
6160
  if (getElementConfig(el)) return [...ancestors, el];
6155
6161
  return ancestors;
6156
6162
  };
6157
6163
  SwcUtils2.getHost = (el) => {
6158
6164
  if (getElementConfig(el)) return el;
6159
- return (0, SwcUtils2.findNearestSwcHost)(el);
6165
+ return (0, SwcUtils2.findNearestSwcHostIncludingSelf)(el);
6160
6166
  };
6161
6167
  SwcUtils2.getAppHosts = (el) => {
6162
- const hosts = SwcUtils2.findAllParentAppHostsDirect(el);
6168
+ const hosts = SwcUtils2.findAllAppHostsIncludingSelfDirect(el);
6163
6169
  return hosts;
6164
6170
  };
6165
6171
  SwcUtils2.getAppHost = (el) => {
@@ -6167,11 +6173,11 @@ var SwcUtils;
6167
6173
  const appHostsWithoutSelf = appHosts.filter((h) => h !== el);
6168
6174
  return appHostsWithoutSelf.length > 0 ? appHostsWithoutSelf[appHostsWithoutSelf.length - 1] : void 0;
6169
6175
  };
6170
- SwcUtils2.findParentAppHostDirect = (el) => {
6171
- const appHosts = (0, SwcUtils2.findAllParentAppHostsDirect)(el);
6176
+ SwcUtils2.findAppHostIncludingSelfDirect = (el) => {
6177
+ const appHosts = (0, SwcUtils2.findAllAppHostsIncludingSelfDirect)(el);
6172
6178
  return appHosts.length > 0 ? appHosts[appHosts.length - 1] : null;
6173
6179
  };
6174
- SwcUtils2.findAllParentAppHostsDirect = (el) => {
6180
+ SwcUtils2.findAllAppHostsIncludingSelfDirect = (el) => {
6175
6181
  const appHosts = [];
6176
6182
  const w = el.ownerDocument?.defaultView || (typeof window !== "undefined" ? window : void 0);
6177
6183
  if (!w) {
@@ -6197,7 +6203,7 @@ var SwcUtils;
6197
6203
  return appHosts.reverse();
6198
6204
  };
6199
6205
  SwcUtils2.getHostSet = (el) => {
6200
- const ancestors = (0, SwcUtils2.findAllSwcHosts)(el);
6206
+ const ancestors = (0, SwcUtils2.findAllSwcHostsIncludingSelf)(el);
6201
6207
  const $host = ancestors.length > 0 ? ancestors[ancestors.length - 1] : null;
6202
6208
  const $parentHost = ancestors.length > 1 ? ancestors[ancestors.length - 2] : null;
6203
6209
  const $hosts = ancestors;
@@ -6211,7 +6217,7 @@ var SwcUtils;
6211
6217
  }
6212
6218
  curr = curr.parentElement || curr.getRootNode().host;
6213
6219
  }
6214
- const $appHosts = SwcUtils2.findAllParentAppHostsDirect(el);
6220
+ const $appHosts = SwcUtils2.findAllAppHostsIncludingSelfDirect(el);
6215
6221
  const $appHost = $appHosts.length > 0 ? $appHosts[$appHosts.length - 1] === el ? $appHosts.length > 1 ? $appHosts[$appHosts.length - 2] : null : $appHosts[$appHosts.length - 1] : null;
6216
6222
  const $firstAppHost = $appHosts.length > 0 ? $appHosts[0] : null;
6217
6223
  return {
@@ -6219,7 +6225,7 @@ var SwcUtils;
6219
6225
  $parentHost,
6220
6226
  $hosts,
6221
6227
  $firstHost,
6222
- $lastHost: $parentHost,
6228
+ $lastHost: $host,
6223
6229
  $templateHost: el.__swc_template_host,
6224
6230
  $appHost,
6225
6231
  $appHosts,
@@ -6277,25 +6283,27 @@ function emitCustomEvent(selectorOrTarget, type, options = {}) {
6277
6283
  const conf = getElementConfig(this);
6278
6284
  const currentWin = this._resolveWindow?.(conf) || (typeof window !== "undefined" ? window : void 0);
6279
6285
  const eventTargets = [];
6280
- if (selectorOrTarget === ":window") eventTargets.push(currentWin);
6281
- else if (selectorOrTarget === ":document") eventTargets.push(currentWin.document);
6282
- else if (selectorOrTarget === ":parentHost") {
6286
+ if (selectorOrTarget === "$window") eventTargets.push(currentWin);
6287
+ else if (selectorOrTarget === "$document") eventTargets.push(currentWin.document);
6288
+ else if (selectorOrTarget === "$host") {
6289
+ if (hostSet.$host) eventTargets.push(hostSet.$host);
6290
+ } else if (selectorOrTarget === "$parentHost") {
6283
6291
  if (hostSet.$parentHost) eventTargets.push(hostSet.$parentHost);
6284
- } else if (selectorOrTarget === ":appHost") {
6292
+ } else if (selectorOrTarget === "$appHost") {
6285
6293
  if (hostSet.$appHost) eventTargets.push(hostSet.$appHost);
6286
- } else if (selectorOrTarget === ":firstHost") {
6294
+ } else if (selectorOrTarget === "$firstHost") {
6287
6295
  if (hostSet.$firstHost) eventTargets.push(hostSet.$firstHost);
6288
- } else if (selectorOrTarget === ":lastHost") {
6296
+ } else if (selectorOrTarget === "$lastHost") {
6289
6297
  if (hostSet.$lastHost) eventTargets.push(hostSet.$lastHost);
6290
- } else if (selectorOrTarget === ":firstAppHost") {
6298
+ } else if (selectorOrTarget === "$firstAppHost") {
6291
6299
  if (hostSet.$firstAppHost) eventTargets.push(hostSet.$firstAppHost);
6292
- } else if (selectorOrTarget === ":lastAppHost") {
6300
+ } else if (selectorOrTarget === "$lastAppHost") {
6293
6301
  if (hostSet.$lastAppHost) eventTargets.push(hostSet.$lastAppHost);
6294
- } else if (selectorOrTarget === ":hosts") {
6302
+ } else if (selectorOrTarget === "$hosts") {
6295
6303
  hostSet.$hosts.forEach((h) => eventTargets.push(h));
6296
- } else if (selectorOrTarget === ":appHosts") {
6304
+ } else if (selectorOrTarget === "$appHosts") {
6297
6305
  hostSet.$appHosts.forEach((h) => eventTargets.push(h));
6298
- } else if (selectorOrTarget === ":host" || !selectorOrTarget) {
6306
+ } else if (selectorOrTarget === "$this" || !selectorOrTarget) {
6299
6307
  eventTargets.push(this);
6300
6308
  } else {
6301
6309
  const r = fullOptions.root || "auto";
@@ -6331,20 +6339,20 @@ var getEmitCustomEventMetadataList = (target) => {
6331
6339
  const constructor = target instanceof Function ? target : target.constructor;
6332
6340
  return ReflectUtils.getMetadata(EMIT_CUSTOM_EVENT_METADATA_KEY, constructor);
6333
6341
  };
6334
- function emitCustomEventHost(type, optionsOrAttributeaName) {
6342
+ function emitCustomEventThis(type, optionsOrAttributeaName) {
6335
6343
  if (optionsOrAttributeaName && typeof optionsOrAttributeaName === "string") {
6336
- return emitCustomEventHost(type, { attributeName: optionsOrAttributeaName });
6344
+ return emitCustomEventThis(type, { attributeName: optionsOrAttributeaName });
6337
6345
  } else if (optionsOrAttributeaName && typeof optionsOrAttributeaName === "object") {
6338
6346
  if (!optionsOrAttributeaName.attributeName) {
6339
6347
  optionsOrAttributeaName.attributeName = `on-emit-${type}`;
6340
6348
  }
6341
- return emitCustomEvent(":host", type, optionsOrAttributeaName);
6349
+ return emitCustomEvent("$this", type, optionsOrAttributeaName);
6342
6350
  } else {
6343
- return emitCustomEvent(":host", type, { attributeName: `on-emit-${type}` });
6351
+ return emitCustomEvent("$this", type, { attributeName: `on-emit-${type}` });
6344
6352
  }
6345
6353
  }
6346
6354
 
6347
- // src/decorators/changedAttributeHost.ts
6355
+ // src/decorators/changedAttributeThis.ts
6348
6356
  var ON_ATTRIBUTE_CHANGED_METADATA_KEY = Symbol.for("simple-web-component:on-attribute-changed");
6349
6357
  var convertValue = (val, type) => {
6350
6358
  if (val === null || val === void 0) return val;
@@ -6352,7 +6360,7 @@ var convertValue = (val, type) => {
6352
6360
  if (type === Boolean) return val === "false" || val === "0" ? false : true;
6353
6361
  return val;
6354
6362
  };
6355
- function changedAttributeHost(attributeName, options = {}) {
6363
+ function changedAttributeThis(attributeName, options = {}) {
6356
6364
  return (target, propertyKey) => {
6357
6365
  const constructor = target.constructor;
6358
6366
  let metaList = ReflectUtils.getOwnMetadata(ON_ATTRIBUTE_CHANGED_METADATA_KEY, constructor);
@@ -6419,25 +6427,26 @@ function createAttributeDecorator(action) {
6419
6427
  const handleResult = (resolvedValue) => {
6420
6428
  if (resolvedValue !== void 0) {
6421
6429
  const win = this.ownerDocument?.defaultView || window;
6422
- const host2 = this;
6423
- const hostSet = { ...SwcUtils.getHelperAndHostSet(win, host2), $this: this };
6430
+ const host = this;
6431
+ const hostSet = { ...SwcUtils.getHelperAndHostSet(win, host), $this: this };
6424
6432
  const r = finalOptions.root || "auto";
6425
6433
  const targetEls = [];
6426
6434
  const applyRoot = (t) => {
6427
6435
  if (!t || !(t instanceof win.HTMLElement)) return;
6428
6436
  targetEls.push(t);
6429
6437
  };
6430
- if (selector === ":parentHost") applyRoot(hostSet.$parentHost);
6431
- else if (selector === ":appHost") applyRoot(hostSet.$appHost);
6432
- else if (selector === ":firstHost") applyRoot(hostSet.$firstHost);
6433
- else if (selector === ":lastHost") applyRoot(hostSet.$lastHost);
6434
- else if (selector === ":firstAppHost") applyRoot(hostSet.$firstAppHost);
6435
- else if (selector === ":lastAppHost") applyRoot(hostSet.$lastAppHost);
6436
- else if (selector === ":hosts") hostSet.$hosts.forEach(applyRoot);
6437
- else if (selector === ":appHosts") hostSet.$appHosts.forEach(applyRoot);
6438
- else if (selector === ":host" || !selector) applyRoot(host2);
6438
+ if (selector === "$this" || !selector) applyRoot(host);
6439
+ else if (selector === "$host") applyRoot(hostSet.$host);
6440
+ else if (selector === "$parentHost") applyRoot(hostSet.$parentHost);
6441
+ else if (selector === "$appHost") applyRoot(hostSet.$appHost);
6442
+ else if (selector === "$firstHost") applyRoot(hostSet.$firstHost);
6443
+ else if (selector === "$lastHost") applyRoot(hostSet.$lastHost);
6444
+ else if (selector === "$firstAppHost") applyRoot(hostSet.$firstAppHost);
6445
+ else if (selector === "$lastAppHost") applyRoot(hostSet.$lastAppHost);
6446
+ else if (selector === "$hosts") hostSet.$hosts.forEach(applyRoot);
6447
+ else if (selector === "$appHosts") hostSet.$appHosts.forEach(applyRoot);
6439
6448
  else {
6440
- const targetRoot = r === "auto" ? host2.shadowRoot || host2 : r === "shadow" ? host2.shadowRoot : host2;
6449
+ const targetRoot = r === "auto" ? host.shadowRoot || host : r === "shadow" ? host.shadowRoot : host;
6441
6450
  if (targetRoot) {
6442
6451
  const found = targetRoot.querySelectorAll(selector);
6443
6452
  if (found) targetEls.push(...Array.from(found));
@@ -6498,12 +6507,12 @@ function applyAttribute(selector, action = "update", options = {}) {
6498
6507
  var setAttribute = (selector, nameOrOptions, options = {}) => createAttributeDecorator("set")(selector, nameOrOptions, options);
6499
6508
  var updateAttribute = (selector, nameOrOptions, options = {}) => createAttributeDecorator("update")(selector, nameOrOptions, options);
6500
6509
  var removeAttribute = (selector, nameOrOptions, options = {}) => createAttributeDecorator("remove")(selector, nameOrOptions, options);
6501
- function applyAttributeHost(action = "update", options = {}) {
6502
- return createAttributeDecorator(action)(":host", options);
6510
+ function applyAttributeThis(action = "update", options = {}) {
6511
+ return createAttributeDecorator(action)("$this", options);
6503
6512
  }
6504
- var setAttributeHost = (nameOrOptions, options = {}) => createAttributeDecorator("set")(":host", nameOrOptions, options);
6505
- var updateAttributeHost = (nameOrOptions, options = {}) => createAttributeDecorator("update")(":host", nameOrOptions, options);
6506
- var removeAttributeHost = (nameOrOptions, options = {}) => createAttributeDecorator("remove")(":host", nameOrOptions, options);
6513
+ var setAttributeThis = (nameOrOptions, options = {}) => createAttributeDecorator("set")("$this", nameOrOptions, options);
6514
+ var updateAttributeThis = (nameOrOptions, options = {}) => createAttributeDecorator("update")("$this", nameOrOptions, options);
6515
+ var removeAttributeThis = (nameOrOptions, options = {}) => createAttributeDecorator("remove")("$this", nameOrOptions, options);
6507
6516
  var findAllAttributeApplyMetadata = (target) => {
6508
6517
  const result = /* @__PURE__ */ new Map();
6509
6518
  const maps = ReflectUtils.findAllMetadata(ATTRIBUTE_APPLY_METADATA_KEY, target);
@@ -6548,26 +6557,28 @@ function query(selectorOrTarget, options = {}) {
6548
6557
  return t;
6549
6558
  };
6550
6559
  const hostSet = SwcUtils.getHostSet(this);
6551
- if (selector === ":parentHost")
6560
+ if (selector === "$this")
6561
+ return applyRoot(this);
6562
+ if (selector === "$host")
6563
+ return applyRoot(hostSet.$host);
6564
+ if (selector === "$parentHost")
6552
6565
  return applyRoot(hostSet.$parentHost);
6553
- if (selector === ":appHost")
6566
+ if (selector === "$appHost")
6554
6567
  return applyRoot(hostSet.$appHost);
6555
- if (selector === ":firstHost")
6568
+ if (selector === "$firstHost")
6556
6569
  return applyRoot(hostSet.$firstHost);
6557
- if (selector === ":lastHost")
6570
+ if (selector === "$lastHost")
6558
6571
  return applyRoot(hostSet.$lastHost);
6559
- if (selector === ":firstAppHost")
6572
+ if (selector === "$firstAppHost")
6560
6573
  return applyRoot(hostSet.$firstAppHost);
6561
- if (selector === ":lastAppHost")
6574
+ if (selector === "$lastAppHost")
6562
6575
  return applyRoot(hostSet.$lastAppHost);
6563
6576
  const config = getElementConfig(this);
6564
6577
  const win = config?.window || window;
6565
- if (selector === ":window")
6578
+ if (selector === "$window")
6566
6579
  return win;
6567
- if (selector === ":document")
6580
+ if (selector === "$document")
6568
6581
  return win.document;
6569
- if (selector === ":host")
6570
- return applyRoot(this);
6571
6582
  if (r === "shadow")
6572
6583
  return this.shadowRoot ? this.shadowRoot.querySelector(selector) : null;
6573
6584
  if (r === "light")
@@ -6582,7 +6593,7 @@ function query(selectorOrTarget, options = {}) {
6582
6593
  ensureInit(this);
6583
6594
  if (nv === null || nv === void 0) {
6584
6595
  const selector = selectorOrTarget;
6585
- if (selector.startsWith(":") && selector !== ":host")
6596
+ if (selector.startsWith("$") && selector !== "$this")
6586
6597
  return;
6587
6598
  const r = options.root || "auto";
6588
6599
  const targets = [];
@@ -6610,75 +6621,54 @@ function query(selectorOrTarget, options = {}) {
6610
6621
  });
6611
6622
  };
6612
6623
  }
6613
- function queryHost(targetOrOptions, propertyKey) {
6614
- if (propertyKey !== void 0 && (typeof propertyKey === "string" || typeof propertyKey === "symbol")) {
6615
- return query(":host", {})(targetOrOptions, propertyKey);
6616
- }
6617
- if (typeof targetOrOptions === "object" && targetOrOptions !== null) {
6618
- return query(":host", targetOrOptions);
6619
- } else {
6620
- return query(":host", {});
6621
- }
6622
- }
6623
- var host = queryHost;
6624
- function parentHost(targetOrOptions, propertyKey) {
6625
- if (propertyKey !== void 0 && (typeof propertyKey === "string" || typeof propertyKey === "symbol")) {
6626
- return query(":parentHost", {})(targetOrOptions, propertyKey);
6627
- }
6628
- if (typeof targetOrOptions === "object" && targetOrOptions !== null) {
6629
- return query(":parentHost", targetOrOptions);
6630
- } else {
6631
- return query(":parentHost", {});
6632
- }
6633
- }
6634
- function appHost(targetOrOptions, propertyKey) {
6624
+ function queryThis(targetOrOptions, propertyKey) {
6635
6625
  if (propertyKey !== void 0 && (typeof propertyKey === "string" || typeof propertyKey === "symbol")) {
6636
- return query(":appHost", {})(targetOrOptions, propertyKey);
6626
+ return query("$this", {})(targetOrOptions, propertyKey);
6637
6627
  }
6638
6628
  if (typeof targetOrOptions === "object" && targetOrOptions !== null) {
6639
- return query(":appHost", targetOrOptions);
6629
+ return query("$this", targetOrOptions);
6640
6630
  } else {
6641
- return query(":appHost", {});
6631
+ return query("$this", {});
6642
6632
  }
6643
6633
  }
6644
- function firstHost(targetOrOptions, propertyKey) {
6634
+ function queryWindow(targetOrOptions, propertyKey) {
6645
6635
  if (propertyKey !== void 0 && (typeof propertyKey === "string" || typeof propertyKey === "symbol")) {
6646
- return query(":firstHost", {})(targetOrOptions, propertyKey);
6636
+ return query("$window", {})(targetOrOptions, propertyKey);
6647
6637
  }
6648
6638
  if (typeof targetOrOptions === "object" && targetOrOptions !== null) {
6649
- return query(":firstHost", targetOrOptions);
6639
+ return query("$window", targetOrOptions);
6650
6640
  } else {
6651
- return query(":firstHost", {});
6641
+ return query("$window", {});
6652
6642
  }
6653
6643
  }
6654
- function lastHost(targetOrOptions, propertyKey) {
6644
+ function queryDocument(targetOrOptions, propertyKey) {
6655
6645
  if (propertyKey !== void 0 && (typeof propertyKey === "string" || typeof propertyKey === "symbol")) {
6656
- return query(":lastHost", {})(targetOrOptions, propertyKey);
6646
+ return query("$document", {})(targetOrOptions, propertyKey);
6657
6647
  }
6658
6648
  if (typeof targetOrOptions === "object" && targetOrOptions !== null) {
6659
- return query(":lastHost", targetOrOptions);
6649
+ return query("$document", targetOrOptions);
6660
6650
  } else {
6661
- return query(":lastHost", {});
6651
+ return query("$document", {});
6662
6652
  }
6663
6653
  }
6664
- function firstAppHost(targetOrOptions, propertyKey) {
6654
+ function queryHost(targetOrOptions, propertyKey) {
6665
6655
  if (propertyKey !== void 0 && (typeof propertyKey === "string" || typeof propertyKey === "symbol")) {
6666
- return query(":firstAppHost", {})(targetOrOptions, propertyKey);
6656
+ return query("$host", {})(targetOrOptions, propertyKey);
6667
6657
  }
6668
6658
  if (typeof targetOrOptions === "object" && targetOrOptions !== null) {
6669
- return query(":firstAppHost", targetOrOptions);
6659
+ return query("$host", targetOrOptions);
6670
6660
  } else {
6671
- return query(":firstAppHost", {});
6661
+ return query("$host", {});
6672
6662
  }
6673
6663
  }
6674
- function lastAppHost(targetOrOptions, propertyKey) {
6664
+ function queryAppHost(targetOrOptions, propertyKey) {
6675
6665
  if (propertyKey !== void 0 && (typeof propertyKey === "string" || typeof propertyKey === "symbol")) {
6676
- return query(":lastAppHost", {})(targetOrOptions, propertyKey);
6666
+ return query("$appHost", {})(targetOrOptions, propertyKey);
6677
6667
  }
6678
6668
  if (typeof targetOrOptions === "object" && targetOrOptions !== null) {
6679
- return query(":lastAppHost", targetOrOptions);
6669
+ return query("$appHost", targetOrOptions);
6680
6670
  } else {
6681
- return query(":lastAppHost", {});
6671
+ return query("$appHost", {});
6682
6672
  }
6683
6673
  }
6684
6674
  var getQueryMetadata = (target) => {
@@ -6727,17 +6717,31 @@ function queryAll(selectorOrTarget, options = {}) {
6727
6717
  return results;
6728
6718
  };
6729
6719
  const hostSet = SwcUtils.getHostSet(this);
6730
- if (selector === ":hosts")
6720
+ if (selector === "$hosts")
6731
6721
  return applyRoot(hostSet.$hosts);
6732
- if (selector === ":appHosts")
6722
+ if (selector === "$appHosts")
6733
6723
  return applyRoot(hostSet.$appHosts);
6724
+ if (selector === "$host")
6725
+ return applyRoot(hostSet.$host);
6726
+ if (selector === "$parentHost")
6727
+ return applyRoot(hostSet.$parentHost);
6728
+ if (selector === "$appHost")
6729
+ return applyRoot(hostSet.$appHost);
6730
+ if (selector === "$firstHost")
6731
+ return applyRoot(hostSet.$firstHost);
6732
+ if (selector === "$lastHost")
6733
+ return applyRoot(hostSet.$lastHost);
6734
+ if (selector === "$firstAppHost")
6735
+ return applyRoot(hostSet.$firstAppHost);
6736
+ if (selector === "$lastAppHost")
6737
+ return applyRoot(hostSet.$lastAppHost);
6734
6738
  const config = getElementConfig(this);
6735
6739
  const win = config?.window || window;
6736
- if (selector === ":window")
6740
+ if (selector === "$window")
6737
6741
  return [win];
6738
- if (selector === ":document")
6742
+ if (selector === "$document")
6739
6743
  return [win.document];
6740
- if (selector === ":host")
6744
+ if (selector === "$this")
6741
6745
  return applyRoot(this);
6742
6746
  if (r === "shadow")
6743
6747
  return this.shadowRoot ? Array.from(this.shadowRoot.querySelectorAll(selector)) : [];
@@ -6755,7 +6759,7 @@ function queryAll(selectorOrTarget, options = {}) {
6755
6759
  ensureInit(this);
6756
6760
  if (nv === null || nv === void 0 || Array.isArray(nv) && nv.length === 0) {
6757
6761
  const selector = selectorOrTarget;
6758
- if (selector.startsWith(":") && selector !== ":host")
6762
+ if (selector.startsWith("$") && selector !== "$this")
6759
6763
  return;
6760
6764
  const r = options.root || "auto";
6761
6765
  let targets = [];
@@ -6778,75 +6782,34 @@ function queryAll(selectorOrTarget, options = {}) {
6778
6782
  });
6779
6783
  };
6780
6784
  }
6781
- function queryAllHost(targetOrOptions, propertyKey) {
6785
+ function queryAllThis(targetOrOptions, propertyKey) {
6782
6786
  if (propertyKey !== void 0 && (typeof propertyKey === "string" || typeof propertyKey === "symbol")) {
6783
- return queryAll(":host", {})(targetOrOptions, propertyKey);
6787
+ return queryAll("$this", {})(targetOrOptions, propertyKey);
6784
6788
  }
6785
6789
  if (typeof targetOrOptions === "object" && targetOrOptions !== null) {
6786
- return queryAll(":host", targetOrOptions);
6790
+ return queryAll("$this", targetOrOptions);
6787
6791
  } else {
6788
- return queryAll(":host", {});
6792
+ return queryAll("$this", {});
6789
6793
  }
6790
6794
  }
6791
- var allHost = queryAllHost;
6792
6795
  function allParentHost(targetOrOptions, propertyKey) {
6793
6796
  if (propertyKey !== void 0 && (typeof propertyKey === "string" || typeof propertyKey === "symbol")) {
6794
- return queryAll(":parentHost", {})(targetOrOptions, propertyKey);
6797
+ return queryAll("$host", {})(targetOrOptions, propertyKey);
6795
6798
  }
6796
6799
  if (typeof targetOrOptions === "object" && targetOrOptions !== null) {
6797
- return queryAll(":parentHost", targetOrOptions);
6800
+ return queryAll("$host", targetOrOptions);
6798
6801
  } else {
6799
- return queryAll(":parentHost", {});
6802
+ return queryAll("$host", {});
6800
6803
  }
6801
6804
  }
6802
6805
  function allAppHost(targetOrOptions, propertyKey) {
6803
6806
  if (propertyKey !== void 0 && (typeof propertyKey === "string" || typeof propertyKey === "symbol")) {
6804
- return queryAll(":appHost", {})(targetOrOptions, propertyKey);
6805
- }
6806
- if (typeof targetOrOptions === "object" && targetOrOptions !== null) {
6807
- return queryAll(":appHost", targetOrOptions);
6808
- } else {
6809
- return queryAll(":appHost", {});
6810
- }
6811
- }
6812
- function allFirstHost(targetOrOptions, propertyKey) {
6813
- if (propertyKey !== void 0 && (typeof propertyKey === "string" || typeof propertyKey === "symbol")) {
6814
- return queryAll(":firstHost", {})(targetOrOptions, propertyKey);
6815
- }
6816
- if (typeof targetOrOptions === "object" && targetOrOptions !== null) {
6817
- return queryAll(":firstHost", targetOrOptions);
6818
- } else {
6819
- return queryAll(":firstHost", {});
6820
- }
6821
- }
6822
- function allLastHost(targetOrOptions, propertyKey) {
6823
- if (propertyKey !== void 0 && (typeof propertyKey === "string" || typeof propertyKey === "symbol")) {
6824
- return queryAll(":lastHost", {})(targetOrOptions, propertyKey);
6825
- }
6826
- if (typeof targetOrOptions === "object" && targetOrOptions !== null) {
6827
- return queryAll(":lastHost", targetOrOptions);
6828
- } else {
6829
- return queryAll(":lastHost", {});
6830
- }
6831
- }
6832
- function allFirstAppHost(targetOrOptions, propertyKey) {
6833
- if (propertyKey !== void 0 && (typeof propertyKey === "string" || typeof propertyKey === "symbol")) {
6834
- return queryAll(":firstAppHost", {})(targetOrOptions, propertyKey);
6835
- }
6836
- if (typeof targetOrOptions === "object" && targetOrOptions !== null) {
6837
- return queryAll(":firstAppHost", targetOrOptions);
6838
- } else {
6839
- return queryAll(":firstAppHost", {});
6840
- }
6841
- }
6842
- function allLastAppHost(targetOrOptions, propertyKey) {
6843
- if (propertyKey !== void 0 && (typeof propertyKey === "string" || typeof propertyKey === "symbol")) {
6844
- return queryAll(":lastAppHost", {})(targetOrOptions, propertyKey);
6807
+ return queryAll("$appHost", {})(targetOrOptions, propertyKey);
6845
6808
  }
6846
6809
  if (typeof targetOrOptions === "object" && targetOrOptions !== null) {
6847
- return queryAll(":lastAppHost", targetOrOptions);
6810
+ return queryAll("$appHost", targetOrOptions);
6848
6811
  } else {
6849
- return queryAll(":lastAppHost", {});
6812
+ return queryAll("$appHost", {});
6850
6813
  }
6851
6814
  }
6852
6815
  var getQueryAllMetadata = (target) => {
@@ -7756,7 +7719,7 @@ var ensureInit = (inst) => {
7756
7719
  });
7757
7720
  }
7758
7721
  const hostSet = SwcUtils.getHostSet(inst);
7759
- const appHosts = SwcUtils.findAllParentAppHostsDirect(inst);
7722
+ const appHosts = SwcUtils.findAllAppHostsIncludingSelfDirect(inst);
7760
7723
  inst._executeSwcScript?.("swc-on-constructor", hostSet);
7761
7724
  const cMethods = findAllLifecycleMetadata(inst, ON_INITIALIZE_METADATA_KEY);
7762
7725
  if (cMethods) {
@@ -7774,9 +7737,9 @@ var handleGlobalSwcEvent = async (event) => {
7774
7737
  if (!(node instanceof HTMLElement)) continue;
7775
7738
  const script = node.getAttribute?.(attrName);
7776
7739
  if (script && !getElementConfig(node)) {
7777
- const host2 = SwcUtils.findNearestSwcHost(node);
7778
- if (host2 && host2.isConnected && typeof host2.__swc_executeAttributeEvent === "function") {
7779
- await host2.__swc_executeAttributeEvent(node, attrName, script, event);
7740
+ const host = SwcUtils.findNearestSwcHostIncludingSelf(node);
7741
+ if (host && host.isConnected && typeof host.__swc_executeAttributeEvent === "function") {
7742
+ await host.__swc_executeAttributeEvent(node, attrName, script, event);
7780
7743
  event.__swc_handled = true;
7781
7744
  break;
7782
7745
  }
@@ -7818,7 +7781,7 @@ var setupPrototype = (proto) => {
7818
7781
  proto._resolveWindow = function(localConfig) {
7819
7782
  ensureInit(this);
7820
7783
  if (localConfig?.window) return localConfig.window;
7821
- const ancestors = SwcUtils.findAllSwcHosts(this);
7784
+ const ancestors = SwcUtils.findAllSwcHostsIncludingSelf(this);
7822
7785
  for (let i = ancestors.length - 1; i >= 0; i--) {
7823
7786
  const aConf = getElementConfig(ancestors[i]);
7824
7787
  if (aConf?.window) return aConf.window;
@@ -7922,7 +7885,7 @@ var elementDefine = (name, config = {}) => (constructor) => {
7922
7885
  metadata.extends = extendsTagName;
7923
7886
  }
7924
7887
  const emitCustomEventList = getEmitCustomEventMetadataList(constructor) || [];
7925
- const emitHostCustomEventList = emitCustomEventList.filter((meta) => meta.selector === ":host" || meta.selector === "");
7888
+ const emitHostCustomEventList = emitCustomEventList.filter((meta) => meta.selector === "$this" || meta.selector === "");
7926
7889
  const addEventListenerList = getAddEventListenerMetadata(constructor) || [];
7927
7890
  const attrChangeMap = findAllAttributeChangedMetadata(constructor);
7928
7891
  const attributeList = findAllAttributeMetadata(constructor);
@@ -7930,7 +7893,7 @@ var elementDefine = (name, config = {}) => (constructor) => {
7930
7893
  const swcLifecycleAttributes = ["swc-on-constructor", "swc-on-connected", "swc-on-disconnected", "swc-on-before-connected", "swc-on-after-connected", "swc-on-before-disconnected", "swc-on-after-disconnected", "swc-on-before-adopted", "swc-on-after-adopted", "swc-on-attribute-changed"];
7931
7894
  const swcOnEvents = DOM_EVENT_NAMES.map((e) => `swc-on-${e}`);
7932
7895
  const attributeApplyNames = Array.from(applyAttributeMap.values()).map((it) => it.options.name).filter(Boolean);
7933
- const hostAttributes = attributeList.filter((it) => it.selector === ":host").map((it) => it.options.name || String(it.propertyKey));
7896
+ const hostAttributes = attributeList.filter((it) => it.selector === "$this").map((it) => it.options.name || String(it.propertyKey));
7934
7897
  const originalStaticObservedAttributes = constructor.observedAttributes ?? [];
7935
7898
  const mergedObservedAttributes = [.../* @__PURE__ */ new Set([...metadata.observedAttributes ?? [], ...originalStaticObservedAttributes, ...attrChangeMap.keys(), ...attributeApplyNames, ...hostAttributes, ...emitHostCustomEventList.map((it) => it.options.attributeName).filter(Boolean), ...swcLifecycleAttributes, ...swcOnEvents])];
7936
7899
  const connectedInnerHtmlList = getOnConnectedInnerHtmlMetadata(constructor) || [];
@@ -7941,13 +7904,13 @@ var elementDefine = (name, config = {}) => (constructor) => {
7941
7904
  proto.connectedCallback = async function() {
7942
7905
  ensureInit(this);
7943
7906
  helperHostSet = SwcUtils.getHelperAndHostSet(win, this);
7944
- const appHost2 = helperHostSet.$appHost;
7907
+ const appHost = helperHostSet.$appHost;
7945
7908
  try {
7946
- if (appHost2 && typeof appHost2._connected === "function") {
7947
- await appHost2._connected(this);
7948
- } else if (appHost2 && typeof appHost2) {
7949
- appHost2._connected_safari ?? (appHost2._connected_safari = []);
7950
- appHost2._connected_safari.push(this);
7909
+ if (appHost && typeof appHost._connected === "function") {
7910
+ await appHost._connected(this);
7911
+ } else if (appHost && typeof appHost) {
7912
+ appHost._connected_safari ?? (appHost._connected_safari = []);
7913
+ appHost._connected_safari.push(this);
7951
7914
  }
7952
7915
  const conf = getElementConfig(this);
7953
7916
  const currentWin = this._resolveWindow(conf);
@@ -8016,7 +7979,7 @@ var elementDefine = (name, config = {}) => (constructor) => {
8016
7979
  const delegateListeners = [];
8017
7980
  const nonDelegateListeners = [];
8018
7981
  addEventListenerList.forEach((meta) => {
8019
- if (meta.options.delegate && meta.selector !== ":window" && meta.selector !== ":document" && meta.selector !== ":parentHost" && meta.selector !== ":appHost" && meta.selector !== ":firstHost" && meta.selector !== ":lastHost" && meta.selector !== ":firstAppHost" && meta.selector !== ":lastAppHost" && meta.selector !== ":hosts" && meta.selector !== ":appHosts" && meta.selector !== ":host" && meta.selector !== "") {
7982
+ if (meta.options.delegate && meta.selector !== "$window" && meta.selector !== "$document" && meta.selector !== "$host" && meta.selector !== "$appHost" && meta.selector !== "$firstHost" && meta.selector !== "$lastHost" && meta.selector !== "$firstAppHost" && meta.selector !== "$lastAppHost" && meta.selector !== "$hosts" && meta.selector !== "$appHosts" && meta.selector !== "$this" && meta.selector !== "") {
8020
7983
  delegateListeners.push(meta);
8021
7984
  } else {
8022
7985
  nonDelegateListeners.push(meta);
@@ -8088,17 +8051,18 @@ var elementDefine = (name, config = {}) => (constructor) => {
8088
8051
  if ((r === "shadow" || r === "all") && target.shadowRoot) bindTargets.push(target.shadowRoot);
8089
8052
  }
8090
8053
  };
8091
- if (selector === ":window") bindTargets.push(currentWin);
8092
- else if (selector === ":document") bindTargets.push(currentWin.document);
8093
- else if (selector === ":parentHost") applyRootOption(helperHostSet.$parentHost);
8094
- else if (selector === ":appHost") applyRootOption(helperHostSet.$appHost);
8095
- else if (selector === ":firstHost") applyRootOption(helperHostSet.$firstHost);
8096
- else if (selector === ":lastHost") applyRootOption(helperHostSet.$lastHost);
8097
- else if (selector === ":firstAppHost") applyRootOption(helperHostSet.$firstAppHost);
8098
- else if (selector === ":lastAppHost") applyRootOption(helperHostSet.$lastAppHost);
8099
- else if (selector === ":hosts") helperHostSet.$hosts.forEach(applyRootOption);
8100
- else if (selector === ":appHosts") helperHostSet.$appHosts.forEach(applyRootOption);
8101
- else if (selector === ":host" || !selector) applyRootOption(this);
8054
+ if (selector === "$window") bindTargets.push(currentWin);
8055
+ else if (selector === "$document") bindTargets.push(currentWin.document);
8056
+ else if (selector === "$host") applyRootOption(helperHostSet.$host);
8057
+ else if (selector === "$parentHost") applyRootOption(helperHostSet.$parentHost);
8058
+ else if (selector === "$appHost") applyRootOption(helperHostSet.$appHost);
8059
+ else if (selector === "$firstHost") applyRootOption(helperHostSet.$firstHost);
8060
+ else if (selector === "$lastHost") applyRootOption(helperHostSet.$lastHost);
8061
+ else if (selector === "$firstAppHost") applyRootOption(helperHostSet.$firstAppHost);
8062
+ else if (selector === "$lastAppHost") applyRootOption(helperHostSet.$lastAppHost);
8063
+ else if (selector === "$hosts") helperHostSet.$hosts.forEach(applyRootOption);
8064
+ else if (selector === "$appHosts") helperHostSet.$appHosts.forEach(applyRootOption);
8065
+ else if (selector === "$this" || !selector) applyRootOption(this);
8102
8066
  else {
8103
8067
  const searchRoots = [];
8104
8068
  if (r === "auto") searchRoots.push(this.shadowRoot || this);
@@ -8152,17 +8116,17 @@ var elementDefine = (name, config = {}) => (constructor) => {
8152
8116
  }
8153
8117
  }
8154
8118
  } finally {
8155
- if (appHost2 && typeof appHost2._connectedDone === "function") {
8156
- await appHost2._connectedDone(this);
8119
+ if (appHost && typeof appHost._connectedDone === "function") {
8120
+ await appHost._connectedDone(this);
8157
8121
  }
8158
8122
  }
8159
8123
  };
8160
8124
  const originalDisconnected = proto.disconnectedCallback;
8161
8125
  proto.disconnectedCallback = function() {
8162
8126
  console.log("disconnnnnnnnnnnnnnnnnnn", helperHostSet, this);
8163
- const appHost2 = helperHostSet.$appHost;
8164
- if (appHost2 && typeof appHost2._disconnected === "function") {
8165
- appHost2._disconnected(this);
8127
+ const appHost = helperHostSet.$appHost;
8128
+ if (appHost && typeof appHost._disconnected === "function") {
8129
+ appHost._disconnected(this);
8166
8130
  }
8167
8131
  this._executeSwcScript("swc-on-before-disconnected", helperHostSet);
8168
8132
  const bMethods = findAllLifecycleMetadata(this, ON_BEFORE_DISCONNECTED_METADATA_KEY);
@@ -8302,20 +8266,21 @@ var resolveTargetEls = (inst, selector, options, currentWin) => {
8302
8266
  if ((r === "shadow" || r === "all") && target.shadowRoot) results.push(target.shadowRoot);
8303
8267
  }
8304
8268
  };
8305
- if (selector === ":host" || !selector) {
8269
+ if (selector === "$this" || !selector) {
8306
8270
  applyRoot(inst);
8307
- } else if (selector === ":window") {
8271
+ } else if (selector === "$window") {
8308
8272
  results.push(currentWin);
8309
- } else if (selector === ":document") {
8273
+ } else if (selector === "$document") {
8310
8274
  results.push(currentWin.document);
8311
8275
  } else {
8312
8276
  const hostSet = SwcUtils.getHostSet(inst);
8313
- if (selector === ":parentHost") applyRoot(hostSet.$parentHost);
8314
- else if (selector === ":appHost") applyRoot(hostSet.$appHost);
8315
- else if (selector === ":firstHost") applyRoot(hostSet.$firstHost);
8316
- else if (selector === ":lastHost") applyRoot(hostSet.$lastHost);
8317
- else if (selector === ":firstAppHost") applyRoot(hostSet.$firstAppHost);
8318
- else if (selector === ":lastAppHost") applyRoot(hostSet.$lastAppHost);
8277
+ if (selector === "$host") applyRoot(hostSet.$host);
8278
+ else if (selector === "$parentHost") applyRoot(hostSet.$parentHost);
8279
+ else if (selector === "$appHost") applyRoot(hostSet.$appHost);
8280
+ else if (selector === "$firstHost") applyRoot(hostSet.$firstHost);
8281
+ else if (selector === "$lastHost") applyRoot(hostSet.$lastHost);
8282
+ else if (selector === "$firstAppHost") applyRoot(hostSet.$firstAppHost);
8283
+ else if (selector === "$lastAppHost") applyRoot(hostSet.$lastAppHost);
8319
8284
  else {
8320
8285
  if (r === "shadow") {
8321
8286
  const found = inst.shadowRoot?.querySelectorAll(selector);
@@ -8387,22 +8352,22 @@ function attribute(selector, options = {}) {
8387
8352
  }
8388
8353
  };
8389
8354
  }
8390
- function attributeHost(targetOrAttrOrOptions, propertyKeyOrOptions) {
8355
+ function attributeThis(targetOrAttrOrOptions, propertyKeyOrOptions) {
8391
8356
  if (propertyKeyOrOptions !== void 0 && (typeof propertyKeyOrOptions === "string" || typeof propertyKeyOrOptions === "symbol")) {
8392
- return attribute(":host", { name: String(propertyKeyOrOptions) })(targetOrAttrOrOptions, propertyKeyOrOptions);
8357
+ return attribute("$this", { name: String(propertyKeyOrOptions) })(targetOrAttrOrOptions, propertyKeyOrOptions);
8393
8358
  }
8394
8359
  if (typeof targetOrAttrOrOptions === "string") {
8395
8360
  const attrName = targetOrAttrOrOptions;
8396
8361
  const options = typeof propertyKeyOrOptions === "object" ? propertyKeyOrOptions : {};
8397
- return attribute(":host", { ...options, name: attrName });
8362
+ return attribute("$this", { ...options, name: attrName });
8398
8363
  } else if (typeof targetOrAttrOrOptions === "object") {
8399
8364
  const options = targetOrAttrOrOptions;
8400
8365
  return (target, propertyKey) => {
8401
- return attribute(":host", { ...options, name: String(propertyKey) })(target, propertyKey);
8366
+ return attribute("$this", { ...options, name: String(propertyKey) })(target, propertyKey);
8402
8367
  };
8403
8368
  } else {
8404
8369
  return (target, propertyKey) => {
8405
- return attribute(":host", { name: String(propertyKey) })(target, propertyKey);
8370
+ return attribute("$this", { name: String(propertyKey) })(target, propertyKey);
8406
8371
  };
8407
8372
  }
8408
8373
  }
@@ -8471,11 +8436,12 @@ function applyNode(selector, options = { position: "beforeEnd" }) {
8471
8436
  if (r === "all") return t.shadowRoot || t;
8472
8437
  return t;
8473
8438
  };
8474
- if (selector === ":host") return applyRoot(this);
8475
- if (selector === ":parentHost") return applyRoot(hostSet.$parentHost);
8476
- if (selector === ":appHost") return applyRoot(hostSet.$appHost);
8477
- if (selector === ":firstHost") return applyRoot(hostSet.$firstHost);
8478
- if (selector === ":lastHost") return applyRoot(hostSet.$lastHost);
8439
+ if (selector === "$this") return applyRoot(this);
8440
+ if (selector === "$host") return applyRoot(hostSet.$host);
8441
+ if (selector === "$parentHost") return applyRoot(hostSet.$parentHost);
8442
+ if (selector === "$appHost") return applyRoot(hostSet.$appHost);
8443
+ if (selector === "$firstHost") return applyRoot(hostSet.$firstHost);
8444
+ if (selector === "$lastHost") return applyRoot(hostSet.$lastHost);
8479
8445
  const targetRoot = applyRoot(this);
8480
8446
  return targetRoot ? targetRoot.querySelector(selector) : null;
8481
8447
  };
@@ -8513,20 +8479,20 @@ var findAllApplyNodeMetadata = (target) => {
8513
8479
  });
8514
8480
  return result;
8515
8481
  };
8516
- function applyNodeHost(targetOrOptions, propertyKey, descriptor) {
8517
- if (propertyKey !== void 0) return applyNode(":host", { position: "beforeEnd" })(targetOrOptions, propertyKey, descriptor);
8482
+ function applyNodeThis(targetOrOptions, propertyKey, descriptor) {
8483
+ if (propertyKey !== void 0) return applyNode("$this", { position: "beforeEnd" })(targetOrOptions, propertyKey, descriptor);
8518
8484
  const opt = targetOrOptions || {};
8519
- return applyNode(":host", { position: "beforeEnd", ...opt });
8485
+ return applyNode("$this", { position: "beforeEnd", ...opt });
8520
8486
  }
8521
- function applyReplaceChildrenNodeHost(targetOrOptions, propertyKey, descriptor) {
8522
- if (propertyKey !== void 0) return applyNode(":host", { position: "replaceChildren" })(targetOrOptions, propertyKey, descriptor);
8487
+ function applyReplaceChildrenNodeThis(targetOrOptions, propertyKey, descriptor) {
8488
+ if (propertyKey !== void 0) return applyNode("$this", { position: "replaceChildren" })(targetOrOptions, propertyKey, descriptor);
8523
8489
  const opt = targetOrOptions || {};
8524
- return applyNode(":host", { position: "replaceChildren", ...opt });
8490
+ return applyNode("$this", { position: "replaceChildren", ...opt });
8525
8491
  }
8526
- function applyInnerHtmlNodeHost(targetOrOptions, propertyKey, descriptor) {
8527
- if (propertyKey !== void 0) return applyNode(":host", { position: "innerHtml" })(targetOrOptions, propertyKey, descriptor);
8492
+ function applyInnerHtmlNodeThis(targetOrOptions, propertyKey, descriptor) {
8493
+ if (propertyKey !== void 0) return applyNode("$this", { position: "innerHtml" })(targetOrOptions, propertyKey, descriptor);
8528
8494
  const opt = targetOrOptions || {};
8529
- return applyNode(":host", { position: "innerHtml", ...opt });
8495
+ return applyNode("$this", { position: "innerHtml", ...opt });
8530
8496
  }
8531
8497
  function applyReplaceChildrenNode(selector, options = {}) {
8532
8498
  return applyNode(selector, { ...options, position: "replaceChildren" });
@@ -8564,25 +8530,26 @@ function createClassDecorator(action) {
8564
8530
  const handleResult = (resolvedValue) => {
8565
8531
  if (resolvedValue !== void 0) {
8566
8532
  const win = this.ownerDocument?.defaultView || window;
8567
- const host2 = this;
8568
- const hostSet = { ...SwcUtils.getHelperAndHostSet(win, host2), $this: this };
8533
+ const host = this;
8534
+ const hostSet = { ...SwcUtils.getHelperAndHostSet(win, host), $this: this };
8569
8535
  const r = finalOptions.root || "auto";
8570
8536
  const targetEls = [];
8571
8537
  const applyRoot = (t) => {
8572
8538
  if (!t || !(t instanceof win.HTMLElement)) return;
8573
8539
  targetEls.push(t);
8574
8540
  };
8575
- if (selector === ":parentHost") applyRoot(hostSet.$parentHost);
8576
- else if (selector === ":appHost") applyRoot(hostSet.$appHost);
8577
- else if (selector === ":firstHost") applyRoot(hostSet.$firstHost);
8578
- else if (selector === ":lastHost") applyRoot(hostSet.$lastHost);
8579
- else if (selector === ":firstAppHost") applyRoot(hostSet.$firstAppHost);
8580
- else if (selector === ":lastAppHost") applyRoot(hostSet.$lastAppHost);
8581
- else if (selector === ":hosts") hostSet.$hosts.forEach(applyRoot);
8582
- else if (selector === ":appHosts") hostSet.$appHosts.forEach(applyRoot);
8583
- else if (selector === ":host" || !selector) applyRoot(host2);
8541
+ if (selector === "$this" || !selector) applyRoot(host);
8542
+ else if (selector === "$host") applyRoot(hostSet.$host);
8543
+ else if (selector === "$parentHost") applyRoot(hostSet.$parentHost);
8544
+ else if (selector === "$appHost") applyRoot(hostSet.$appHost);
8545
+ else if (selector === "$firstHost") applyRoot(hostSet.$firstHost);
8546
+ else if (selector === "$lastHost") applyRoot(hostSet.$lastHost);
8547
+ else if (selector === "$firstAppHost") applyRoot(hostSet.$firstAppHost);
8548
+ else if (selector === "$lastAppHost") applyRoot(hostSet.$lastAppHost);
8549
+ else if (selector === "$hosts") hostSet.$hosts.forEach(applyRoot);
8550
+ else if (selector === "$appHosts") hostSet.$appHosts.forEach(applyRoot);
8584
8551
  else {
8585
- const targetRoot = r === "auto" ? host2.shadowRoot || host2 : r === "shadow" ? host2.shadowRoot : host2;
8552
+ const targetRoot = r === "auto" ? host.shadowRoot || host : r === "shadow" ? host.shadowRoot : host;
8586
8553
  if (targetRoot) {
8587
8554
  const found = targetRoot.querySelectorAll(selector);
8588
8555
  if (found) targetEls.push(...Array.from(found));
@@ -8656,14 +8623,14 @@ var updateClass = (selector, classMapOrOptions, options = {}) => createClassDeco
8656
8623
  var addClass = (selector, classMapOrOptions, options = {}) => createClassDecorator("add")(selector, classMapOrOptions, options);
8657
8624
  var removeClass = (selector, classMapOrOptions, options = {}) => createClassDecorator("remove")(selector, classMapOrOptions, options);
8658
8625
  var toggleClass = (selector, classMapOrOptions, options = {}) => createClassDecorator("toggle")(selector, classMapOrOptions, options);
8659
- function applyClassHost(action = "update", options = {}) {
8660
- return createClassDecorator(action)(":host", options);
8626
+ function applyClassThis(action = "update", options = {}) {
8627
+ return createClassDecorator(action)("$this", options);
8661
8628
  }
8662
- var setClassHost = (classMapOrOptions, options = {}) => createClassDecorator("set")(":host", classMapOrOptions, options);
8663
- var updateClassHost = (classMapOrOptions, options = {}) => createClassDecorator("update")(":host", classMapOrOptions, options);
8664
- var addClassHost = (classMapOrOptions, options = {}) => createClassDecorator("add")(":host", classMapOrOptions, options);
8665
- var removeClassHost = (classMapOrOptions, options = {}) => createClassDecorator("remove")(":host", classMapOrOptions, options);
8666
- var toggleClassHost = (classMapOrOptions, options = {}) => createClassDecorator("toggle")(":host", classMapOrOptions, options);
8629
+ var setClassThis = (classMapOrOptions, options = {}) => createClassDecorator("set")("$this", classMapOrOptions, options);
8630
+ var updateClassThis = (classMapOrOptions, options = {}) => createClassDecorator("update")("$this", classMapOrOptions, options);
8631
+ var addClassThis = (classMapOrOptions, options = {}) => createClassDecorator("add")("$this", classMapOrOptions, options);
8632
+ var removeClassThis = (classMapOrOptions, options = {}) => createClassDecorator("remove")("$this", classMapOrOptions, options);
8633
+ var toggleClassThis = (classMapOrOptions, options = {}) => createClassDecorator("toggle")("$this", classMapOrOptions, options);
8667
8634
  var findAllClassMetadata = (target) => {
8668
8635
  const result = /* @__PURE__ */ new Map();
8669
8636
  const maps = ReflectUtils.findAllMetadata(CLASS_METADATA_KEY, target);
@@ -8694,25 +8661,26 @@ function createStyleDecorator(action) {
8694
8661
  const handleResult = (resolvedValue) => {
8695
8662
  if (resolvedValue !== void 0) {
8696
8663
  const win = this.ownerDocument?.defaultView || window;
8697
- const host2 = this;
8698
- const hostSet = SwcUtils.getHelperAndHostSet(win, host2);
8664
+ const host = this;
8665
+ const hostSet = { ...SwcUtils.getHelperAndHostSet(win, host), $this: this };
8699
8666
  const r = options.root || "auto";
8700
8667
  const targetEls = [];
8701
8668
  const applyRoot = (t) => {
8702
8669
  if (!t || !(t instanceof win.HTMLElement)) return;
8703
8670
  targetEls.push(t);
8704
8671
  };
8705
- if (selector === ":parentHost") applyRoot(hostSet.$parentHost);
8706
- else if (selector === ":appHost") applyRoot(hostSet.$appHost);
8707
- else if (selector === ":firstHost") applyRoot(hostSet.$firstHost);
8708
- else if (selector === ":lastHost") applyRoot(hostSet.$lastHost);
8709
- else if (selector === ":firstAppHost") applyRoot(hostSet.$firstAppHost);
8710
- else if (selector === ":lastAppHost") applyRoot(hostSet.$lastAppHost);
8711
- else if (selector === ":hosts") hostSet.$hosts.forEach(applyRoot);
8712
- else if (selector === ":appHosts") hostSet.$appHosts.forEach(applyRoot);
8713
- else if (selector === ":host" || !selector) applyRoot(host2);
8672
+ if (selector === "$this" || !selector) applyRoot(host);
8673
+ else if (selector === "$host") applyRoot(hostSet.$host);
8674
+ else if (selector === "$parentHost") applyRoot(hostSet.$parentHost);
8675
+ else if (selector === "$appHost") applyRoot(hostSet.$appHost);
8676
+ else if (selector === "$firstHost") applyRoot(hostSet.$firstHost);
8677
+ else if (selector === "$lastHost") applyRoot(hostSet.$lastHost);
8678
+ else if (selector === "$firstAppHost") applyRoot(hostSet.$firstAppHost);
8679
+ else if (selector === "$lastAppHost") applyRoot(hostSet.$lastAppHost);
8680
+ else if (selector === "$hosts") hostSet.$hosts.forEach(applyRoot);
8681
+ else if (selector === "$appHosts") hostSet.$appHosts.forEach(applyRoot);
8714
8682
  else {
8715
- const targetRoot = r === "auto" ? host2.shadowRoot || host2 : r === "shadow" ? host2.shadowRoot : host2;
8683
+ const targetRoot = r === "auto" ? host.shadowRoot || host : r === "shadow" ? host.shadowRoot : host;
8716
8684
  if (targetRoot) {
8717
8685
  const found = targetRoot.querySelectorAll(selector);
8718
8686
  if (found) targetEls.push(...Array.from(found));
@@ -8770,12 +8738,12 @@ function applyStyle(selector, action = "update", options = {}) {
8770
8738
  var setStyle = (selector, options = {}) => createStyleDecorator("set")(selector, options);
8771
8739
  var updateStyle = (selector, options = {}) => createStyleDecorator("update")(selector, options);
8772
8740
  var removeStyle = (selector, options = {}) => createStyleDecorator("remove")(selector, options);
8773
- function applyStyleHost(action = "update", options = {}) {
8774
- return createStyleDecorator(action)(":host", options);
8741
+ function applyStyleThis(action = "update", options = {}) {
8742
+ return createStyleDecorator(action)("$this", options);
8775
8743
  }
8776
- var setStyleHost = (options = {}) => createStyleDecorator("set")(":host", options);
8777
- var updateStyleHost = (options = {}) => createStyleDecorator("update")(":host", options);
8778
- var removeStyleHost = (options = {}) => createStyleDecorator("remove")(":host", options);
8744
+ var setStyleThis = (options = {}) => createStyleDecorator("set")("$this", options);
8745
+ var updateStyleThis = (options = {}) => createStyleDecorator("update")("$this", options);
8746
+ var removeStyleThis = (options = {}) => createStyleDecorator("remove")("$this", options);
8779
8747
  var findAllStyleMetadata = (target) => {
8780
8748
  const result = /* @__PURE__ */ new Map();
8781
8749
  const maps = ReflectUtils.findAllMetadata(STYLE_METADATA_KEY, target);
@@ -8814,25 +8782,26 @@ var setProperty = (selector, propertyNameOrOptions, options = {}) => {
8814
8782
  const handleResult = (resolvedValue) => {
8815
8783
  if (resolvedValue !== void 0) {
8816
8784
  const win = this.ownerDocument?.defaultView || window;
8817
- const host2 = this;
8818
- const hostSet = { ...SwcUtils.getHelperAndHostSet(win, host2), $this: this };
8785
+ const host = this;
8786
+ const hostSet = { ...SwcUtils.getHelperAndHostSet(win, host), $this: this };
8819
8787
  const r = finalOptions.root || "auto";
8820
8788
  const targetEls = [];
8821
8789
  const applyRoot = (t) => {
8822
8790
  if (!t || !(t instanceof win.HTMLElement)) return;
8823
8791
  targetEls.push(t);
8824
8792
  };
8825
- if (selector === ":parentHost") applyRoot(hostSet.$parentHost);
8826
- else if (selector === ":appHost") applyRoot(hostSet.$appHost);
8827
- else if (selector === ":firstHost") applyRoot(hostSet.$firstHost);
8828
- else if (selector === ":lastHost") applyRoot(hostSet.$lastHost);
8829
- else if (selector === ":firstAppHost") applyRoot(hostSet.$firstAppHost);
8830
- else if (selector === ":lastAppHost") applyRoot(hostSet.$lastAppHost);
8831
- else if (selector === ":hosts") hostSet.$hosts.forEach(applyRoot);
8832
- else if (selector === ":appHosts") hostSet.$appHosts.forEach(applyRoot);
8833
- else if (selector === ":host" || !selector) applyRoot(host2);
8793
+ if (selector === "$this" || !selector) applyRoot(host);
8794
+ else if (selector === "$host") applyRoot(hostSet.$host);
8795
+ else if (selector === "$parentHost") applyRoot(hostSet.$parentHost);
8796
+ else if (selector === "$appHost") applyRoot(hostSet.$appHost);
8797
+ else if (selector === "$firstHost") applyRoot(hostSet.$firstHost);
8798
+ else if (selector === "$lastHost") applyRoot(hostSet.$lastHost);
8799
+ else if (selector === "$firstAppHost") applyRoot(hostSet.$firstAppHost);
8800
+ else if (selector === "$lastAppHost") applyRoot(hostSet.$lastAppHost);
8801
+ else if (selector === "$hosts") hostSet.$hosts.forEach(applyRoot);
8802
+ else if (selector === "$appHosts") hostSet.$appHosts.forEach(applyRoot);
8834
8803
  else {
8835
- const targetRoot = r === "auto" ? host2.shadowRoot || host2 : r === "shadow" ? host2.shadowRoot : host2;
8804
+ const targetRoot = r === "auto" ? host.shadowRoot || host : r === "shadow" ? host.shadowRoot : host;
8836
8805
  if (targetRoot) {
8837
8806
  const found = targetRoot.querySelectorAll(selector);
8838
8807
  if (found) targetEls.push(...Array.from(found));
@@ -8865,8 +8834,8 @@ var setProperty = (selector, propertyNameOrOptions, options = {}) => {
8865
8834
  };
8866
8835
  };
8867
8836
  };
8868
- var setPropertyHost = (propertyNameOrOptions, options = {}) => {
8869
- return setProperty(":host", propertyNameOrOptions, options);
8837
+ var setPropertyThis = (propertyNameOrOptions, options = {}) => {
8838
+ return setProperty("$this", propertyNameOrOptions, options);
8870
8839
  };
8871
8840
 
8872
8841
  // src/decorators/subscribeSwcAppRouteChangeWhileConnected.ts
@@ -8961,9 +8930,9 @@ function createPublishSwcAppMessage(messageType) {
8961
8930
  const result = originalMethod.apply(this, args);
8962
8931
  if (result instanceof Promise) {
8963
8932
  result.then((data) => {
8964
- const appHost2 = SwcUtils.getAppHost(this);
8965
- if (appHost2) {
8966
- appHost2.publishMessage({
8933
+ const appHost = SwcUtils.getAppHost(this);
8934
+ if (appHost) {
8935
+ appHost.publishMessage({
8967
8936
  publisher: this,
8968
8937
  data,
8969
8938
  type: messageType
@@ -8973,9 +8942,9 @@ function createPublishSwcAppMessage(messageType) {
8973
8942
  console.warn("publishSwcAppMessage async error:", err);
8974
8943
  });
8975
8944
  } else {
8976
- const appHost2 = SwcUtils.getAppHost(this);
8977
- if (appHost2) {
8978
- appHost2.publishMessage({
8945
+ const appHost = SwcUtils.getAppHost(this);
8946
+ if (appHost) {
8947
+ appHost.publishMessage({
8979
8948
  publisher: this,
8980
8949
  data: result,
8981
8950
  type: messageType
@@ -9088,41 +9057,37 @@ export {
9088
9057
  SWC_NOT_FOUND,
9089
9058
  SwcUtils,
9090
9059
  addClass,
9091
- addClassHost,
9060
+ addClassThis,
9092
9061
  addEventListener,
9093
9062
  addEventListenerAppHost,
9094
- addEventListenerHost,
9063
+ addEventListenerDocument,
9064
+ addEventListenerThis,
9065
+ addEventListenerWindow,
9095
9066
  allAppHost,
9096
- allFirstAppHost,
9097
- allFirstHost,
9098
- allHost,
9099
- allLastAppHost,
9100
- allLastHost,
9101
9067
  allParentHost,
9102
- appHost,
9103
9068
  applyAttribute,
9104
- applyAttributeHost,
9069
+ applyAttributeThis,
9105
9070
  applyClass,
9106
- applyClassHost,
9071
+ applyClassThis,
9107
9072
  applyInnerHtmlNode,
9108
- applyInnerHtmlNodeHost,
9073
+ applyInnerHtmlNodeThis,
9109
9074
  applyInnerTextNode,
9110
9075
  applyNode,
9111
- applyNodeHost,
9076
+ applyNodeThis,
9112
9077
  applyReplaceChildrenNode,
9113
- applyReplaceChildrenNodeHost,
9078
+ applyReplaceChildrenNodeThis,
9114
9079
  applyStyle,
9115
- applyStyleHost,
9080
+ applyStyleThis,
9116
9081
  attribute,
9117
- attributeHost,
9118
- changedAttributeHost,
9082
+ attributeThis,
9083
+ changedAttributeThis,
9119
9084
  commentNode,
9120
9085
  convertAttributeValue,
9121
9086
  convertValue2 as convertValue,
9122
9087
  createElement,
9123
9088
  elementDefine,
9124
9089
  emitCustomEvent,
9125
- emitCustomEventHost,
9090
+ emitCustomEventThis,
9126
9091
  ensureInit,
9127
9092
  findAllApplyNodeMetadata,
9128
9093
  findAllAttributeApplyMetadata,
@@ -9131,8 +9096,6 @@ export {
9131
9096
  findAllClassMetadata,
9132
9097
  findAllLifecycleMetadata,
9133
9098
  findAllStyleMetadata,
9134
- firstAppHost,
9135
- firstHost,
9136
9099
  getAddEventListenerMetadata,
9137
9100
  getAttributeValue,
9138
9101
  getChangedAttributeMetadata,
@@ -9144,7 +9107,6 @@ export {
9144
9107
  getQueryMetadata,
9145
9108
  getSubscribeSwcAppMessageWhileConnectedMetadata,
9146
9109
  getSubscribeSwcAppRouteChangeWhileConnectedMetadata,
9147
- host,
9148
9110
  htmlAElement,
9149
9111
  htmlArticleElement,
9150
9112
  htmlButtonElement,
@@ -9156,8 +9118,6 @@ export {
9156
9118
  htmlSectionElement,
9157
9119
  htmlSpanElement,
9158
9120
  htmlUlElement,
9159
- lastAppHost,
9160
- lastHost,
9161
9121
  onAddEventListener,
9162
9122
  onAdopted,
9163
9123
  onAdoptedAfter,
@@ -9170,38 +9130,41 @@ export {
9170
9130
  onDisconnectedAfter,
9171
9131
  onDisconnectedBefore,
9172
9132
  onInitialize,
9173
- parentHost,
9174
9133
  publishSwcAppMessage,
9175
9134
  query,
9176
9135
  queryAll,
9177
- queryAllHost,
9136
+ queryAllThis,
9137
+ queryAppHost,
9138
+ queryDocument,
9178
9139
  queryHost,
9140
+ queryThis,
9141
+ queryWindow,
9179
9142
  removeAttribute,
9180
- removeAttributeHost,
9143
+ removeAttributeThis,
9181
9144
  removeClass,
9182
- removeClassHost,
9145
+ removeClassThis,
9183
9146
  removeStyle,
9184
- removeStyleHost,
9147
+ removeStyleThis,
9185
9148
  resolveTargetEls,
9186
9149
  setAttribute,
9187
- setAttributeHost,
9150
+ setAttributeThis,
9188
9151
  setClass,
9189
- setClassHost,
9152
+ setClassThis,
9190
9153
  setProperty,
9191
- setPropertyHost,
9154
+ setPropertyThis,
9192
9155
  setStyle,
9193
- setStyleHost,
9156
+ setStyleThis,
9194
9157
  subscribeSwcAppMessageWhileConnected,
9195
9158
  subscribeSwcAppRouteChangeWhileConnected,
9196
9159
  textNode,
9197
9160
  toggleClass,
9198
- toggleClassHost,
9161
+ toggleClassThis,
9199
9162
  updateAttribute,
9200
- updateAttributeHost,
9163
+ updateAttributeThis,
9201
9164
  updateClass,
9202
- updateClassHost,
9165
+ updateClassThis,
9203
9166
  updateStyle,
9204
- updateStyleHost
9167
+ updateStyleThis
9205
9168
  };
9206
9169
  /*! Bundled license information:
9207
9170