@absolutejs/absolute 0.19.0-beta.1082 → 0.19.0-beta.1083

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 (148) hide show
  1. package/dist/.absolutejs/generated/angular/indexes/angular-example.1g23yr9r.js +167 -0
  2. package/dist/.absolutejs/generated/react/indexes/ReactExample.e6kzvjqy.js +3 -0
  3. package/dist/.absolutejs/generated/svelte/client/pages/SvelteExample.5pq2wmw6.js +1 -0
  4. package/dist/.absolutejs/generated/svelte/indexes/pages/SvelteExample.9zcw5vtg.js +1 -0
  5. package/dist/.absolutejs/generated/vue/client/pages/VueExample.q47m56s4.js +1 -0
  6. package/dist/.absolutejs/generated/vue/indexes/VueExample.6bqszcxv.js +1 -0
  7. package/dist/_prerendered/angular.html +45 -0
  8. package/dist/_prerendered/angular.meta +1 -0
  9. package/dist/_prerendered/html.html +70 -0
  10. package/dist/_prerendered/html.meta +1 -0
  11. package/dist/_prerendered/htmx.html +239 -0
  12. package/dist/_prerendered/htmx.meta +1 -0
  13. package/dist/_prerendered/index.html +70 -0
  14. package/dist/_prerendered/index.meta +1 -0
  15. package/dist/_prerendered/react.html +1 -0
  16. package/dist/_prerendered/react.meta +1 -0
  17. package/dist/_prerendered/vue.html +41 -0
  18. package/dist/_prerendered/vue.meta +1 -0
  19. package/dist/angular/browser.js +18 -18
  20. package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
  21. package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
  22. package/dist/angular/components/defer-slot-templates.directive.js +2 -2
  23. package/dist/angular/components/defer-slot.component.js +3 -3
  24. package/dist/angular/components/image.component.js +3 -3
  25. package/dist/angular/components/stream-slot.component.js +3 -3
  26. package/dist/angular/example/angular/pages/angular-example.djr1v9hj.js +373 -0
  27. package/dist/angular/index.js +43 -43
  28. package/dist/angular/server.js +31 -31
  29. package/dist/angular/vendor/angular_common.js +310 -0
  30. package/dist/angular/vendor/angular_common_http.js +129 -0
  31. package/dist/angular/vendor/angular_core.js +1177 -0
  32. package/dist/angular/vendor/angular_core_primitives_di.js +36 -0
  33. package/dist/angular/vendor/angular_core_primitives_signals.js +132 -0
  34. package/dist/angular/vendor/angular_platform-browser.js +117 -0
  35. package/dist/angular/vendor/angular_router.js +6410 -0
  36. package/dist/angular/vendor/chunk-2c9evnn0.js +4764 -0
  37. package/dist/angular/vendor/chunk-3evcs0sk.js +2567 -0
  38. package/dist/angular/vendor/chunk-5h3qyvpj.js +729 -0
  39. package/dist/angular/vendor/chunk-hgg0w52m.js +62 -0
  40. package/dist/angular/vendor/chunk-n6rt7w2y.js +23 -0
  41. package/dist/angular/vendor/chunk-t4tc7c8b.js +28013 -0
  42. package/dist/angular/vendor/chunk-vqd7j0kb.js +1786 -0
  43. package/dist/angular/vendor/chunk-yqjkhk8j.js +145 -0
  44. package/dist/angular/vendor/server/angular_common.js +311 -0
  45. package/dist/angular/vendor/server/angular_common_http.js +130 -0
  46. package/dist/angular/vendor/server/angular_core.js +1178 -0
  47. package/dist/angular/vendor/server/angular_core_primitives_di.js +37 -0
  48. package/dist/angular/vendor/server/angular_core_primitives_signals.js +133 -0
  49. package/dist/angular/vendor/server/angular_platform-browser.js +118 -0
  50. package/dist/angular/vendor/server/angular_platform-server.js +59 -0
  51. package/dist/angular/vendor/server/angular_router.js +261 -0
  52. package/dist/angular/vendor/server/angular_ssr.js +11669 -0
  53. package/dist/angular/vendor/server/chunk-2akxms5e.js +2566 -0
  54. package/dist/angular/vendor/server/chunk-659a9c3p.js +6218 -0
  55. package/dist/angular/vendor/server/chunk-8eecnjd1.js +16686 -0
  56. package/dist/angular/vendor/server/chunk-9jz2apvp.js +743 -0
  57. package/dist/angular/vendor/server/chunk-dhs2bg35.js +48 -0
  58. package/dist/angular/vendor/server/chunk-hs2gc8sr.js +1787 -0
  59. package/dist/angular/vendor/server/chunk-k46n34mb.js +63 -0
  60. package/dist/angular/vendor/server/chunk-p2fdvyh1.js +4767 -0
  61. package/dist/angular/vendor/server/chunk-r0w9r4bg.js +730 -0
  62. package/dist/angular/vendor/server/chunk-vthxj7kd.js +146 -0
  63. package/dist/angular/vendor/server/chunk-xahr7f2f.js +35534 -0
  64. package/dist/assets/css/tailwind.generated.css +218 -0
  65. package/dist/assets/css/vue-example-compiled.abzaxheq.css +32 -0
  66. package/dist/assets/ico/favicon.ico +0 -0
  67. package/dist/assets/png/absolutejs-temp.png +0 -0
  68. package/dist/assets/svg/HTML5_Badge.svg +7 -0
  69. package/dist/assets/svg/angular.svg +18 -0
  70. package/dist/assets/svg/htmx-logo-black.svg +9 -0
  71. package/dist/assets/svg/htmx-logo-white.svg +9 -0
  72. package/dist/assets/svg/react.svg +1 -0
  73. package/dist/assets/svg/svelte-logo.svg +1 -0
  74. package/dist/assets/svg/vue-logo.svg +4 -0
  75. package/dist/build.js +42 -42
  76. package/dist/chunk-7pp6gkg8.js +2 -0
  77. package/dist/chunk-ek2qyx2c.js +11 -0
  78. package/dist/chunk-ysr5ycdt.js +2 -0
  79. package/dist/cli/config/server.js +11 -11
  80. package/dist/cli/index.js +12 -1
  81. package/dist/client/index.js +13 -13
  82. package/dist/client.tsx +15 -0
  83. package/dist/example/html/scripts/typescript-example.fqn9zkdh.js +1 -0
  84. package/dist/html/pages/HTMLExample.html +70 -0
  85. package/dist/htmx/htmx.min.js +1 -0
  86. package/dist/htmx/pages/HTMXExample.html +239 -0
  87. package/dist/htmx.min.js +1 -0
  88. package/dist/index.js +62 -62
  89. package/dist/indexes/angular-example.xsx88ph0.css +227 -0
  90. package/dist/indexes/html-example.s3banzdc.css +221 -0
  91. package/dist/indexes/htmx-example.5vgssc3f.css +221 -0
  92. package/dist/indexes/react-example.bz1k8xa2.css +245 -0
  93. package/dist/indexes/svelte-example.vy3015es.css +221 -0
  94. package/dist/indexes/vue-example.q4vf2wtq.css +228 -0
  95. package/dist/islands/index.js +14 -14
  96. package/dist/manifest.json +26 -0
  97. package/dist/nested/dynamic-module.txt +1 -0
  98. package/dist/package-asset.txt +1 -0
  99. package/dist/react/browser.js +3 -3
  100. package/dist/react/components/browser/index.js +5 -5
  101. package/dist/react/components/index.js +7 -7
  102. package/dist/react/hooks/index.js +2 -2
  103. package/dist/react/index.js +30 -30
  104. package/dist/react/jsxDevRuntimeCompat.js +1 -1
  105. package/dist/react/router/browser.js +2 -2
  106. package/dist/react/router/index.js +2 -2
  107. package/dist/react/server.js +13 -13
  108. package/dist/react/vendor/chunk-2kh60w9b.js +33 -0
  109. package/dist/react/vendor/chunk-9g12fvrw.js +236 -0
  110. package/dist/react/vendor/chunk-rejbymp5.js +837 -0
  111. package/dist/react/vendor/chunk-wwy122hz.js +200 -0
  112. package/dist/react/vendor/react-dom.js +44 -0
  113. package/dist/react/vendor/react-dom_client.js +15864 -0
  114. package/dist/react/vendor/react-refresh_runtime.js +304 -0
  115. package/dist/react/vendor/react.js +103 -0
  116. package/dist/react/vendor/react_jsx-dev-runtime.js +17 -0
  117. package/dist/react/vendor/react_jsx-runtime.js +22 -0
  118. package/dist/robots.txt +2 -0
  119. package/dist/runtime/blob.txt +1 -0
  120. package/dist/runtime/dir-join.txt +1 -0
  121. package/dist/runtime/nested/binary.bin +1 -0
  122. package/dist/runtime/nested/readfile.txt +1 -0
  123. package/dist/runtime/template.html +1 -0
  124. package/dist/server.js +92156 -0
  125. package/dist/sitemap.xml +48 -0
  126. package/dist/svelte/index.js +26 -26
  127. package/dist/svelte/router/page.js +1 -1
  128. package/dist/svelte/server/pages/SvelteExample.fxs20w1b.js +290 -0
  129. package/dist/svelte/server.js +13 -13
  130. package/dist/svelte/vendor/chunk-5qdxn1p3.js +4586 -0
  131. package/dist/svelte/vendor/chunk-8qdfbbez.js +12 -0
  132. package/dist/svelte/vendor/chunk-r2jyyfjt.js +4495 -0
  133. package/dist/svelte/vendor/svelte.js +49 -0
  134. package/dist/svelte/vendor/svelte_internal.js +2 -0
  135. package/dist/svelte/vendor/svelte_internal_client.js +395 -0
  136. package/dist/svelte/vendor/svelte_internal_disclose-version.js +7 -0
  137. package/dist/svelte/vendor/svelte_internal_flags_async.js +6 -0
  138. package/dist/svelte/vendor/svelte_internal_flags_legacy.js +6 -0
  139. package/dist/svelte/vendor/svelte_store.js +99 -0
  140. package/dist/vue/browser.js +3 -3
  141. package/dist/vue/components/Image.js +1 -1
  142. package/dist/vue/components/index.js +5 -5
  143. package/dist/vue/index.js +36 -36
  144. package/dist/vue/server/pages/VueExample.fyhmna2p.css +32 -0
  145. package/dist/vue/server/pages/VueExample.fyhmna2p.js +75 -0
  146. package/dist/vue/server.js +13 -13
  147. package/dist/vue/vendor/vue.js +11011 -0
  148. package/package.json +1 -1
@@ -9342,7 +9342,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
9342
9342
  getWarningController()?.maybeWarn(primitiveName);
9343
9343
  };
9344
9344
  // src/angular/deterministicEnv.ts
9345
- import { InjectionToken } from "@angular/core";
9345
+ import { InjectionToken } from "../node_modules/@angular/core/fesm2022/core.mjs";
9346
9346
  var DEFAULT_DETERMINISTIC_SEED = "absolute-angular";
9347
9347
  var DEFAULT_DETERMINISTIC_NOW = 0;
9348
9348
  var HASH_MULTIPLIER = 31;
@@ -9395,10 +9395,10 @@ var provideDeterministicEnv = (options = {}) => {
9395
9395
  ];
9396
9396
  };
9397
9397
  // src/angular/composables/usePageContext.ts
9398
- import { inject, REQUEST_CONTEXT } from "@angular/core";
9398
+ import { inject, REQUEST_CONTEXT } from "../node_modules/@angular/core/fesm2022/core.mjs";
9399
9399
  var usePageContext = () => inject(REQUEST_CONTEXT);
9400
9400
  // src/angular/composables/useResource.ts
9401
- import { DestroyRef, inject as inject2, signal } from "@angular/core";
9401
+ import { DestroyRef, inject as inject2, signal } from "../node_modules/@angular/core/fesm2022/core.mjs";
9402
9402
  var useResource = (fetcher, options = {}) => {
9403
9403
  const destroyRef = inject2(DestroyRef);
9404
9404
  const start = options.start ?? "immediate";
@@ -9458,15 +9458,15 @@ var useResource = (fetcher, options = {}) => {
9458
9458
  return { cancel, data, error, loading, mutate, refresh };
9459
9459
  };
9460
9460
  // src/angular/composables/useSubscription.ts
9461
- import { DestroyRef as DestroyRef2, inject as inject3 } from "@angular/core";
9462
- import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
9461
+ import { DestroyRef as DestroyRef2, inject as inject3 } from "../node_modules/@angular/core/fesm2022/core.mjs";
9462
+ import { takeUntilDestroyed } from "../node_modules/@angular/core/fesm2022/rxjs-interop.mjs";
9463
9463
  function useSubscription(observable, observerOrNext, destroyRef) {
9464
9464
  const captured = destroyRef ?? inject3(DestroyRef2);
9465
9465
  const observer = typeof observerOrNext === "function" ? { next: observerOrNext } : observerOrNext;
9466
9466
  return observable.pipe(takeUntilDestroyed(captured)).subscribe(observer);
9467
9467
  }
9468
9468
  // src/angular/composables/useTimers.ts
9469
- import { DestroyRef as DestroyRef3, inject as inject4 } from "@angular/core";
9469
+ import { DestroyRef as DestroyRef3, inject as inject4 } from "../node_modules/@angular/core/fesm2022/core.mjs";
9470
9470
  var useTimers = () => {
9471
9471
  const destroyRef = inject4(DestroyRef3);
9472
9472
  const timeouts = new Set;
@@ -9508,7 +9508,7 @@ var useTimers = () => {
9508
9508
  };
9509
9509
  };
9510
9510
  // src/angular/preserveAcrossHmr.ts
9511
- import { ChangeDetectorRef, inject as inject5 } from "@angular/core";
9511
+ import { ChangeDetectorRef, inject as inject5 } from "../node_modules/@angular/core/fesm2022/core.mjs";
9512
9512
 
9513
9513
  // src/angular/hmrPreserveCore.ts
9514
9514
  var buildCacheKey = (instance, key) => {
@@ -9585,13 +9585,13 @@ var preserveAcrossHmr = (instance, key) => {
9585
9585
  } catch {}
9586
9586
  };
9587
9587
  // src/angular/Island.browser.ts
9588
- import"@angular/compiler";
9588
+ import"../node_modules/@angular/compiler/fesm2022/compiler.mjs";
9589
9589
  import {
9590
9590
  Component,
9591
9591
  ElementRef,
9592
9592
  Input,
9593
9593
  ViewChild
9594
- } from "@angular/core";
9594
+ } from "../node_modules/@angular/core/fesm2022/core.mjs";
9595
9595
 
9596
9596
  // src/client/preserveIslandMarkup.ts
9597
9597
  init_islandMarkupAttributes();
@@ -9733,7 +9733,7 @@ Island = __legacyDecorateClassTS([
9733
9733
  })
9734
9734
  ], Island);
9735
9735
  // src/angular/pendingTask.ts
9736
- import { inject as inject6, PendingTasks } from "@angular/core";
9736
+ import { inject as inject6, PendingTasks } from "../node_modules/@angular/core/fesm2022/core.mjs";
9737
9737
  var withPendingTask = async (work) => {
9738
9738
  const removeTask = inject6(PendingTasks).add();
9739
9739
  try {
@@ -9750,7 +9750,7 @@ var createTypedIsland = (_registry) => (props) => {
9750
9750
  };
9751
9751
  // src/angular/islandStore.ts
9752
9752
  var import_rxjs = __toESM(require_cjs(), 1);
9753
- import { Injectable } from "@angular/core";
9753
+ import { Injectable } from "../node_modules/@angular/core/fesm2022/core.mjs";
9754
9754
 
9755
9755
  // node_modules/zustand/esm/vanilla.mjs
9756
9756
  var createStoreImpl = (createState) => {
@@ -9892,8 +9892,8 @@ import {
9892
9892
  Input as Input2,
9893
9893
  inject as inject8,
9894
9894
  signal as signal2
9895
- } from "@angular/core";
9896
- import { NgTemplateOutlet } from "@angular/common";
9895
+ } from "../node_modules/@angular/core/fesm2022/core.mjs";
9896
+ import { NgTemplateOutlet } from "../node_modules/@angular/common/fesm2022/common.mjs";
9897
9897
 
9898
9898
  // src/angular/components/defer-slot-payload.ts
9899
9899
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
@@ -9904,7 +9904,7 @@ var isAngularDeferSlotPayload = (value) => {
9904
9904
  };
9905
9905
 
9906
9906
  // src/angular/components/defer-slot-templates.directive.ts
9907
- import { Directive, TemplateRef, inject as inject7 } from "@angular/core";
9907
+ import { Directive, TemplateRef, inject as inject7 } from "../node_modules/@angular/core/fesm2022/core.mjs";
9908
9908
  class DeferErrorTemplateDirective {
9909
9909
  templateRef = inject7(TemplateRef);
9910
9910
  }
@@ -10076,8 +10076,8 @@ DeferSlotComponent = __legacyDecorateClassTS([
10076
10076
  ], DeferSlotComponent);
10077
10077
  // src/angular/components/image.component.ts
10078
10078
  init_imageProcessing();
10079
- import { Component as Component3, computed, input, signal as signal3 } from "@angular/core";
10080
- import { NgStyle } from "@angular/common";
10079
+ import { Component as Component3, computed, input, signal as signal3 } from "../node_modules/@angular/core/fesm2022/core.mjs";
10080
+ import { NgStyle } from "../node_modules/@angular/common/fesm2022/common.mjs";
10081
10081
  var resolveBlurBg = (placeholderValue, blurDataUrl) => {
10082
10082
  if (typeof placeholderValue === "string" && placeholderValue !== "blur" && placeholderValue.startsWith("data:")) {
10083
10083
  return generateBlurSvg(placeholderValue);
@@ -10225,8 +10225,8 @@ import {
10225
10225
  Input as Input3,
10226
10226
  inject as inject9,
10227
10227
  signal as signal4
10228
- } from "@angular/core";
10229
- import { DomSanitizer } from "@angular/platform-browser";
10228
+ } from "../node_modules/@angular/core/fesm2022/core.mjs";
10229
+ import { DomSanitizer } from "../node_modules/@angular/platform-browser/fesm2022/platform-browser.mjs";
10230
10230
  var isObjectRecord3 = (value) => Boolean(value) && typeof value === "object";
10231
10231
  var isHtmlPayload = (payload) => isObjectRecord3(payload) && typeof payload.html === "string";
10232
10232
  var resolvePayloadHtml = (payload) => {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-1N12Mn/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-3DHvwX/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-1N12Mn/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-3DHvwX/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-1N12Mn/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-3DHvwX/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
@@ -1,5 +1,5 @@
1
- import { Directive, TemplateRef, inject } from '@angular/core';
2
- import * as i0 from "@angular/core";
1
+ import { Directive, TemplateRef, inject } from '../../node_modules/@angular/core/fesm2022/core.mjs';
2
+ import * as i0 from "../../node_modules/@angular/core/fesm2022/core.mjs";
3
3
  export class DeferErrorTemplateDirective {
4
4
  constructor() {
5
5
  this.templateRef = inject(TemplateRef);
@@ -1,9 +1,9 @@
1
- import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, Input, inject, signal } from '@angular/core';
2
- import { NgTemplateOutlet } from '@angular/common';
1
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, Input, inject, signal } from '../../node_modules/@angular/core/fesm2022/core.mjs';
2
+ import { NgTemplateOutlet } from '../../node_modules/@angular/common/fesm2022/common.mjs';
3
3
  import { isStreamingSlotCollectionActive, registerStreamingSlot, warnMissingStreamingSlotCollector } from './core/streamingSlotRegistrar.js';
4
4
  import { isAngularDeferSlotPayload } from './defer-slot-payload.js';
5
5
  import { DeferErrorTemplateDirective, DeferFallbackTemplateDirective, DeferResolvedTemplateDirective } from './defer-slot-templates.directive.js';
6
- import * as i0 from "@angular/core";
6
+ import * as i0 from "../../node_modules/@angular/core/fesm2022/core.mjs";
7
7
  export class DeferSlotComponent {
8
8
  constructor() {
9
9
  this.cdr = inject(ChangeDetectorRef);
@@ -1,7 +1,7 @@
1
- import { Component, computed, input, signal } from '@angular/core';
2
- import { NgStyle } from '@angular/common';
1
+ import { Component, computed, input, signal } from '../../node_modules/@angular/core/fesm2022/core.mjs';
2
+ import { NgStyle } from '../../node_modules/@angular/common/fesm2022/common.mjs';
3
3
  import { DEFAULT_QUALITY, buildOptimizedUrl, generateBlurSvg, generateSrcSet } from '@absolutejs/absolute/image';
4
- import * as i0 from "@angular/core";
4
+ import * as i0 from "../../node_modules/@angular/core/fesm2022/core.mjs";
5
5
  /** Resolve the blur background CSS value from placeholder config */
6
6
  const resolveBlurBg = (placeholderValue, blurDataUrl) => {
7
7
  if (typeof placeholderValue === 'string' &&
@@ -1,7 +1,7 @@
1
- import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, inject, signal } from '@angular/core';
2
- import { DomSanitizer } from '@angular/platform-browser';
1
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, inject, signal } from '../../node_modules/@angular/core/fesm2022/core.mjs';
2
+ import { DomSanitizer } from '../../node_modules/@angular/platform-browser/fesm2022/platform-browser.mjs';
3
3
  import { isStreamingSlotCollectionActive, registerStreamingSlot, warnMissingStreamingSlotCollector } from './core/streamingSlotRegistrar.js';
4
- import * as i0 from "@angular/core";
4
+ import * as i0 from "../../node_modules/@angular/core/fesm2022/core.mjs";
5
5
  const isObjectRecord = (value) => Boolean(value) && typeof value === 'object';
6
6
  const isHtmlPayload = (payload) => isObjectRecord(payload) && typeof payload.html === 'string';
7
7
  const resolvePayloadHtml = (payload) => {
@@ -0,0 +1,373 @@
1
+ // @bun
2
+ // .absolutejs/generated/angular/example/angular/pages/angular-example.js
3
+ import"../../../../node_modules/@angular/compiler/fesm2022/compiler.mjs";
4
+ import { Component as Component4 } from "../../../vendor/server/angular_core.js";
5
+ import { CommonModule as CommonModule4 } from "../../../vendor/server/angular_common.js";
6
+
7
+ // .absolutejs/generated/angular/src/angular/composables/usePageContext.js
8
+ import { inject, REQUEST_CONTEXT } from "../../../vendor/server/angular_core.js";
9
+ var usePageContext = () => inject(REQUEST_CONTEXT);
10
+
11
+ // .absolutejs/generated/angular/example/angular/components/dropdown.component.js
12
+ import { Component } from "../../../vendor/server/angular_core.js";
13
+ import { CommonModule } from "../../../vendor/server/angular_common.js";
14
+ import * as i0 from "../../../vendor/server/angular_core.js";
15
+
16
+ class DropdownComponent {
17
+ constructor() {
18
+ this.isOpen = false;
19
+ }
20
+ static {
21
+ this.\u{275}fac = function DropdownComponent_Factory(__ngFactoryType__) {
22
+ return new (__ngFactoryType__ || DropdownComponent);
23
+ };
24
+ }
25
+ static {
26
+ this.\u{275}cmp = /* @__PURE__ */ i0.\u{275}\u{275}defineComponent({ type: DropdownComponent, selectors: [["app-dropdown"]], decls: 16, vars: 1, consts: [[1, "dropdown", 3, "mouseenter", "mouseleave"], [1, "menu"], ["href", "/"], ["href", "/react"], ["href", "/svelte"], ["href", "/vue"], ["href", "/angular"], ["href", "/htmx"]], template: function DropdownComponent_Template(rf, ctx) {
27
+ if (rf & 1) {
28
+ i0.\u{275}\u{275}elementStart(0, "details", 0);
29
+ i0.\u{275}\u{275}listener("mouseenter", function DropdownComponent_Template_details_mouseenter_0_listener() {
30
+ return ctx.isOpen = true;
31
+ })("mouseleave", function DropdownComponent_Template_details_mouseleave_0_listener() {
32
+ return ctx.isOpen = false;
33
+ });
34
+ i0.\u{275}\u{275}elementStart(1, "summary");
35
+ i0.\u{275}\u{275}text(2, "Pages");
36
+ i0.\u{275}\u{275}elementEnd();
37
+ i0.\u{275}\u{275}elementStart(3, "nav", 1)(4, "a", 2);
38
+ i0.\u{275}\u{275}text(5, "HTML");
39
+ i0.\u{275}\u{275}elementEnd();
40
+ i0.\u{275}\u{275}elementStart(6, "a", 3);
41
+ i0.\u{275}\u{275}text(7, "React");
42
+ i0.\u{275}\u{275}elementEnd();
43
+ i0.\u{275}\u{275}elementStart(8, "a", 4);
44
+ i0.\u{275}\u{275}text(9, "Svelte");
45
+ i0.\u{275}\u{275}elementEnd();
46
+ i0.\u{275}\u{275}elementStart(10, "a", 5);
47
+ i0.\u{275}\u{275}text(11, "Vue");
48
+ i0.\u{275}\u{275}elementEnd();
49
+ i0.\u{275}\u{275}elementStart(12, "a", 6);
50
+ i0.\u{275}\u{275}text(13, "Angular");
51
+ i0.\u{275}\u{275}elementEnd();
52
+ i0.\u{275}\u{275}elementStart(14, "a", 7);
53
+ i0.\u{275}\u{275}text(15, "HTMX");
54
+ i0.\u{275}\u{275}elementEnd()()();
55
+ }
56
+ if (rf & 2) {
57
+ i0.\u{275}\u{275}attribute("open", ctx.isOpen ? "" : null);
58
+ }
59
+ }, dependencies: [CommonModule], encapsulation: 2 });
60
+ }
61
+ }
62
+ (() => {
63
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.\u{275}setClassMetadata(DropdownComponent, [{
64
+ type: Component,
65
+ args: [{
66
+ imports: [CommonModule],
67
+ selector: "app-dropdown",
68
+ standalone: true,
69
+ template: `<details
70
+ class="dropdown"
71
+ [attr.open]="isOpen ? '' : null"
72
+ (mouseenter)="isOpen = true"
73
+ (mouseleave)="isOpen = false"
74
+ >
75
+ <summary>Pages</summary>
76
+ <nav class="menu">
77
+ <a href="/">HTML</a>
78
+ <a href="/react">React</a>
79
+ <a href="/svelte">Svelte</a>
80
+ <a href="/vue">Vue</a>
81
+ <a href="/angular">Angular</a>
82
+ <a href="/htmx">HTMX</a>
83
+ </nav>
84
+ </details>
85
+ `
86
+ }]
87
+ }], null, null);
88
+ })();
89
+ (() => {
90
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0.\u{275}setClassDebugInfo(DropdownComponent, { className: "DropdownComponent", filePath: "example/angular/components/dropdown.component.ts", lineNumber: 26 });
91
+ })();
92
+
93
+ // .absolutejs/generated/angular/example/angular/components/app.component.js
94
+ import { Component as Component3, Input as Input2, ViewEncapsulation } from "../../../vendor/server/angular_core.js";
95
+ import { CommonModule as CommonModule3 } from "../../../vendor/server/angular_common.js";
96
+
97
+ // .absolutejs/generated/angular/example/angular/components/counter.component.js
98
+ import { Component as Component2, Input } from "../../../vendor/server/angular_core.js";
99
+ import { CommonModule as CommonModule2 } from "../../../vendor/server/angular_common.js";
100
+ import * as i02 from "../../../vendor/server/angular_core.js";
101
+
102
+ class CounterComponent {
103
+ constructor() {
104
+ this.initialCount = 0;
105
+ this.count = 0;
106
+ }
107
+ ngOnInit() {
108
+ this.count = this.initialCount;
109
+ }
110
+ increment() {
111
+ this.count++;
112
+ }
113
+ static {
114
+ this.\u{275}fac = function CounterComponent_Factory(__ngFactoryType__) {
115
+ return new (__ngFactoryType__ || CounterComponent);
116
+ };
117
+ }
118
+ static {
119
+ this.\u{275}cmp = /* @__PURE__ */ i02.\u{275}\u{275}defineComponent({ type: CounterComponent, selectors: [["app-counter"]], inputs: { initialCount: "initialCount" }, decls: 4, vars: 1, consts: [[3, "click"], [1, "counter-value"]], template: function CounterComponent_Template(rf, ctx) {
120
+ if (rf & 1) {
121
+ i02.\u{275}\u{275}elementStart(0, "button", 0);
122
+ i02.\u{275}\u{275}listener("click", function CounterComponent_Template_button_click_0_listener() {
123
+ return ctx.increment();
124
+ });
125
+ i02.\u{275}\u{275}text(1, " count is ");
126
+ i02.\u{275}\u{275}elementStart(2, "span", 1);
127
+ i02.\u{275}\u{275}text(3);
128
+ i02.\u{275}\u{275}elementEnd()();
129
+ }
130
+ if (rf & 2) {
131
+ i02.\u{275}\u{275}advance(3);
132
+ i02.\u{275}\u{275}textInterpolate(ctx.count);
133
+ }
134
+ }, dependencies: [CommonModule2], styles: [`button[_ngcontent-%COMP%] {
135
+ background-color: #1a1a1a;
136
+ border: 1px solid transparent;
137
+ border-radius: 0.5rem;
138
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
139
+ cursor: pointer;
140
+ font-family: inherit;
141
+ font-size: 1.1rem;
142
+ font-weight: 500;
143
+ margin: 2rem 0;
144
+ padding: 0.6rem 1.2rem;
145
+ transition: border-color 0.25s;
146
+ }
147
+ button[_ngcontent-%COMP%]:hover {
148
+ border-color: #dd0031;
149
+ }
150
+ button[_ngcontent-%COMP%]:focus,
151
+ button[_ngcontent-%COMP%]:focus-visible {
152
+ outline: 4px auto -webkit-focus-ring-color;
153
+ }
154
+
155
+ @media (prefers-color-scheme: light) {
156
+ button[_ngcontent-%COMP%] {
157
+ background-color: #ffffff;
158
+ }
159
+ }`] });
160
+ }
161
+ }
162
+ (() => {
163
+ (typeof ngDevMode === "undefined" || ngDevMode) && i02.\u{275}setClassMetadata(CounterComponent, [{
164
+ type: Component2,
165
+ args: [{ imports: [CommonModule2], selector: "app-counter", standalone: true, template: `<button (click)="increment()">
166
+ count is <span class="counter-value">{{ count }}</span>
167
+ </button>
168
+ `, styles: [`button {
169
+ background-color: #1a1a1a;
170
+ border: 1px solid transparent;
171
+ border-radius: 0.5rem;
172
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
173
+ cursor: pointer;
174
+ font-family: inherit;
175
+ font-size: 1.1rem;
176
+ font-weight: 500;
177
+ margin: 2rem 0;
178
+ padding: 0.6rem 1.2rem;
179
+ transition: border-color 0.25s;
180
+ }
181
+ button:hover {
182
+ border-color: #dd0031;
183
+ }
184
+ button:focus,
185
+ button:focus-visible {
186
+ outline: 4px auto -webkit-focus-ring-color;
187
+ }
188
+
189
+ @media (prefers-color-scheme: light) {
190
+ button {
191
+ background-color: #ffffff;
192
+ }
193
+ }
194
+ `] }]
195
+ }], null, { initialCount: [{
196
+ type: Input
197
+ }] });
198
+ })();
199
+ (() => {
200
+ (typeof ngDevMode === "undefined" || ngDevMode) && i02.\u{275}setClassDebugInfo(CounterComponent, { className: "CounterComponent", filePath: "example/angular/components/counter.component.ts", lineNumber: 40 });
201
+ })();
202
+
203
+ // .absolutejs/generated/angular/example/angular/components/app.component.js
204
+ import * as i03 from "../../../vendor/server/angular_core.js";
205
+
206
+ class AppComponent {
207
+ constructor() {
208
+ this.initialCount = 0;
209
+ }
210
+ static {
211
+ this.\u{275}fac = function AppComponent_Factory(__ngFactoryType__) {
212
+ return new (__ngFactoryType__ || AppComponent);
213
+ };
214
+ }
215
+ static {
216
+ this.\u{275}cmp = /* @__PURE__ */ i03.\u{275}\u{275}defineComponent({ type: AppComponent, selectors: [["app-root"]], inputs: { initialCount: "initialCount" }, decls: 18, vars: 1, consts: [["href", "https://absolutejs.com", "target", "_blank"], ["src", "/assets/png/absolutejs-temp.png", "alt", "AbsoluteJS Logo", 1, "logo"], ["href", "https://angular.dev/"], ["src", "/assets/svg/angular.svg", "alt", "Angular Logo", 1, "logo", "angular"], [3, "initialCount"], [2, "margin-top", "2rem"], [2, "color", "#777", "font-size", "1rem", "margin-top", "2rem"]], template: function AppComponent_Template(rf, ctx) {
217
+ if (rf & 1) {
218
+ i03.\u{275}\u{275}elementStart(0, "main")(1, "nav")(2, "a", 0);
219
+ i03.\u{275}\u{275}element(3, "img", 1);
220
+ i03.\u{275}\u{275}elementEnd();
221
+ i03.\u{275}\u{275}elementStart(4, "a", 2);
222
+ i03.\u{275}\u{275}element(5, "img", 3);
223
+ i03.\u{275}\u{275}elementEnd()();
224
+ i03.\u{275}\u{275}elementStart(6, "h1");
225
+ i03.\u{275}\u{275}text(7, "AbsoluteJS + Angular");
226
+ i03.\u{275}\u{275}elementEnd();
227
+ i03.\u{275}\u{275}element(8, "app-counter", 4);
228
+ i03.\u{275}\u{275}elementStart(9, "p");
229
+ i03.\u{275}\u{275}text(10, " Edit ");
230
+ i03.\u{275}\u{275}elementStart(11, "code");
231
+ i03.\u{275}\u{275}text(12, "example/angular/pages/angular-example.ts");
232
+ i03.\u{275}\u{275}elementEnd();
233
+ i03.\u{275}\u{275}text(13, " and save to test HMR. ");
234
+ i03.\u{275}\u{275}elementEnd();
235
+ i03.\u{275}\u{275}elementStart(14, "p", 5);
236
+ i03.\u{275}\u{275}text(15, " Explore the other pages to see how AbsoluteJS seamlessly unifies multiple frameworks on a single server. ");
237
+ i03.\u{275}\u{275}elementEnd();
238
+ i03.\u{275}\u{275}elementStart(16, "p", 6);
239
+ i03.\u{275}\u{275}text(17, " Click on the AbsoluteJS and Angular logos to learn more. ");
240
+ i03.\u{275}\u{275}elementEnd()();
241
+ }
242
+ if (rf & 2) {
243
+ i03.\u{275}\u{275}advance(8);
244
+ i03.\u{275}\u{275}property("initialCount", ctx.initialCount);
245
+ }
246
+ }, dependencies: [CommonModule3, CounterComponent], styles: [`code {
247
+ background-color: #1a1a1a;
248
+ padding: 0.2rem 0.4rem;
249
+ border-radius: 0.25rem;
250
+ font-size: 0.9em;
251
+ }
252
+
253
+ @media (prefers-color-scheme: light) {
254
+ code {
255
+ background-color: #f0f0f0;
256
+ }
257
+ }
258
+ `], encapsulation: 2 });
259
+ }
260
+ }
261
+ (() => {
262
+ (typeof ngDevMode === "undefined" || ngDevMode) && i03.\u{275}setClassMetadata(AppComponent, [{
263
+ type: Component3,
264
+ args: [{ encapsulation: ViewEncapsulation.None, imports: [CommonModule3, CounterComponent], selector: "app-root", standalone: true, template: `<main>
265
+ <nav>
266
+ <a href="https://absolutejs.com" target="_blank">
267
+ <img
268
+ class="logo"
269
+ src="/assets/png/absolutejs-temp.png"
270
+ alt="AbsoluteJS Logo"
271
+ />
272
+ </a>
273
+ <a href="https://angular.dev/">
274
+ <img
275
+ class="logo angular"
276
+ src="/assets/svg/angular.svg"
277
+ alt="Angular Logo"
278
+ />
279
+ </a>
280
+ </nav>
281
+ <h1>AbsoluteJS + Angular</h1>
282
+ <app-counter [initialCount]="initialCount"></app-counter>
283
+ <p>
284
+ Edit <code>example/angular/pages/angular-example.ts</code> and save to
285
+ test HMR.
286
+ </p>
287
+ <p style="margin-top: 2rem">
288
+ Explore the other pages to see how AbsoluteJS seamlessly unifies
289
+ multiple frameworks on a single server.
290
+ </p>
291
+ <p style="color: #777; font-size: 1rem; margin-top: 2rem">
292
+ Click on the AbsoluteJS and Angular logos to learn more.
293
+ </p>
294
+ </main>
295
+ `, styles: [`code {
296
+ background-color: #1a1a1a;
297
+ padding: 0.2rem 0.4rem;
298
+ border-radius: 0.25rem;
299
+ font-size: 0.9em;
300
+ }
301
+
302
+ @media (prefers-color-scheme: light) {
303
+ code {
304
+ background-color: #f0f0f0;
305
+ }
306
+ }
307
+ `] }]
308
+ }], null, { initialCount: [{
309
+ type: Input2
310
+ }] });
311
+ })();
312
+ (() => {
313
+ (typeof ngDevMode === "undefined" || ngDevMode) && i03.\u{275}setClassDebugInfo(AppComponent, { className: "AppComponent", filePath: "example/angular/components/app.component.ts", lineNumber: 56 });
314
+ })();
315
+
316
+ // .absolutejs/generated/angular/example/angular/pages/angular-example.js
317
+ import * as i04 from "../../../vendor/server/angular_core.js";
318
+
319
+ class AngularExampleComponent {
320
+ constructor() {
321
+ this.ctx = usePageContext();
322
+ this.initialCount = this.ctx.initialCount;
323
+ }
324
+ static {
325
+ this.\u{275}fac = function AngularExampleComponent_Factory(__ngFactoryType__) {
326
+ return new (__ngFactoryType__ || AngularExampleComponent);
327
+ };
328
+ }
329
+ static {
330
+ this.\u{275}cmp = /* @__PURE__ */ i04.\u{275}\u{275}defineComponent({ type: AngularExampleComponent, selectors: [["angular-page"]], decls: 5, vars: 1, consts: [["href", "/"], [3, "initialCount"]], template: function AngularExampleComponent_Template(rf, ctx) {
331
+ if (rf & 1) {
332
+ i04.\u{275}\u{275}elementStart(0, "header")(1, "a", 0);
333
+ i04.\u{275}\u{275}text(2, "AbsoluteJS");
334
+ i04.\u{275}\u{275}elementEnd();
335
+ i04.\u{275}\u{275}element(3, "app-dropdown");
336
+ i04.\u{275}\u{275}elementEnd();
337
+ i04.\u{275}\u{275}element(4, "app-root", 1);
338
+ }
339
+ if (rf & 2) {
340
+ i04.\u{275}\u{275}advance(4);
341
+ i04.\u{275}\u{275}property("initialCount", ctx.initialCount);
342
+ }
343
+ }, dependencies: [CommonModule4, DropdownComponent, AppComponent], encapsulation: 2 });
344
+ }
345
+ }
346
+ (() => {
347
+ (typeof ngDevMode === "undefined" || ngDevMode) && i04.\u{275}setClassMetadata(AngularExampleComponent, [{
348
+ type: Component4,
349
+ args: [{
350
+ imports: [CommonModule4, DropdownComponent, AppComponent],
351
+ selector: "angular-page",
352
+ standalone: true,
353
+ template: `<header>
354
+ <a href="/">AbsoluteJS</a>
355
+ <app-dropdown></app-dropdown>
356
+ </header>
357
+ <app-root [initialCount]="initialCount"></app-root>
358
+ `
359
+ }]
360
+ }], null, null);
361
+ })();
362
+ (() => {
363
+ (typeof ngDevMode === "undefined" || ngDevMode) && i04.\u{275}setClassDebugInfo(AngularExampleComponent, { className: "AngularExampleComponent", filePath: "example/angular/pages/angular-example.ts", lineNumber: 22 });
364
+ })();
365
+ var __ABSOLUTE_PAGE_ISLANDS__ = [];
366
+ var __ABSOLUTE_PAGE_HAS_ISLANDS__ = false;
367
+ var angular_example_default = AngularExampleComponent;
368
+ export {
369
+ angular_example_default as default,
370
+ __ABSOLUTE_PAGE_ISLANDS__,
371
+ __ABSOLUTE_PAGE_HAS_ISLANDS__,
372
+ AngularExampleComponent
373
+ };