@absolutejs/absolute 0.19.0-beta.329 → 0.19.0-beta.330
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.
package/dist/angular/browser.js
CHANGED
|
@@ -38297,12 +38297,10 @@ var require_cjs = __commonJS((exports) => {
|
|
|
38297
38297
|
init_compiler();
|
|
38298
38298
|
import {
|
|
38299
38299
|
Component as Component3,
|
|
38300
|
+
ElementRef,
|
|
38300
38301
|
Input,
|
|
38301
|
-
|
|
38302
|
+
ViewChild
|
|
38302
38303
|
} from "@angular/core";
|
|
38303
|
-
import {
|
|
38304
|
-
DomSanitizer
|
|
38305
|
-
} from "@angular/platform-browser";
|
|
38306
38304
|
|
|
38307
38305
|
// src/client/preserveIslandMarkup.ts
|
|
38308
38306
|
init_islandMarkupAttributes();
|
|
@@ -38396,7 +38394,6 @@ class IslandComponent {
|
|
|
38396
38394
|
this.hydrate = "load";
|
|
38397
38395
|
this.props = {};
|
|
38398
38396
|
}
|
|
38399
|
-
sanitizer = inject(DomSanitizer);
|
|
38400
38397
|
markup = "";
|
|
38401
38398
|
ngOnChanges() {
|
|
38402
38399
|
const runtimeProps = {
|
|
@@ -38406,7 +38403,19 @@ class IslandComponent {
|
|
|
38406
38403
|
props: this.props
|
|
38407
38404
|
};
|
|
38408
38405
|
const { attributes, innerHTML } = preserveIslandMarkup(runtimeProps);
|
|
38409
|
-
this.markup =
|
|
38406
|
+
this.markup = `<div ${serializeIslandAttributes(attributes)}>${innerHTML}</div>`;
|
|
38407
|
+
this.applyMarkup();
|
|
38408
|
+
}
|
|
38409
|
+
ngAfterViewInit() {
|
|
38410
|
+
this.applyMarkup();
|
|
38411
|
+
}
|
|
38412
|
+
applyMarkup() {
|
|
38413
|
+
const container = this.container?.nativeElement;
|
|
38414
|
+
if (!container)
|
|
38415
|
+
return;
|
|
38416
|
+
if (container.innerHTML === this.markup)
|
|
38417
|
+
return;
|
|
38418
|
+
container.innerHTML = this.markup;
|
|
38410
38419
|
}
|
|
38411
38420
|
}
|
|
38412
38421
|
__legacyDecorateClassTS([
|
|
@@ -38425,11 +38434,15 @@ __legacyDecorateClassTS([
|
|
|
38425
38434
|
Input(),
|
|
38426
38435
|
__legacyMetadataTS("design:type", Object)
|
|
38427
38436
|
], IslandComponent.prototype, "props", undefined);
|
|
38437
|
+
__legacyDecorateClassTS([
|
|
38438
|
+
ViewChild("container", { static: true }),
|
|
38439
|
+
__legacyMetadataTS("design:type", typeof ElementRef === "undefined" ? Object : ElementRef)
|
|
38440
|
+
], IslandComponent.prototype, "container", undefined);
|
|
38428
38441
|
IslandComponent = __legacyDecorateClassTS([
|
|
38429
38442
|
Component3({
|
|
38430
38443
|
selector: "absolute-island",
|
|
38431
38444
|
standalone: true,
|
|
38432
|
-
template: '<div [attr.ngSkipHydration]="true"
|
|
38445
|
+
template: '<div #container [attr.ngSkipHydration]="true"></div>'
|
|
38433
38446
|
})
|
|
38434
38447
|
], IslandComponent);
|
|
38435
38448
|
var Island = IslandComponent;
|
|
@@ -38556,5 +38569,5 @@ export {
|
|
|
38556
38569
|
Island
|
|
38557
38570
|
};
|
|
38558
38571
|
|
|
38559
|
-
//# debugId=
|
|
38572
|
+
//# debugId=584D411021FFA90364756E2164756E21
|
|
38560
38573
|
//# sourceMappingURL=browser.js.map
|