@absolutejs/absolute 0.19.0-beta.370 → 0.19.0-beta.372
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 +73 -52
- package/dist/angular/browser.js.map +3 -3
- package/dist/angular/components/stream-slot.component.js +29 -20
- package/dist/angular/index.js +73 -52
- package/dist/angular/index.js.map +3 -3
- package/dist/build.js +1 -12
- package/dist/build.js.map +3 -3
- package/dist/index.js +1 -12
- package/dist/index.js.map +3 -3
- package/dist/src/angular/components/stream-slot.component.d.ts +6 -6
- package/package.json +1 -1
package/dist/angular/browser.js
CHANGED
|
@@ -9102,13 +9102,13 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY = 75, OPTIMIZATIO
|
|
|
9102
9102
|
return actual.startsWith(prefix);
|
|
9103
9103
|
}
|
|
9104
9104
|
return actual === pattern;
|
|
9105
|
-
}, MIME_MAP, callSharp = (sharpRef,
|
|
9105
|
+
}, MIME_MAP, callSharp = (sharpRef, input2) => {
|
|
9106
9106
|
const factory = sharpRef;
|
|
9107
|
-
return factory(
|
|
9108
|
-
}, toBuffer = (
|
|
9109
|
-
if (Buffer.isBuffer(
|
|
9110
|
-
return
|
|
9111
|
-
return Buffer.from(
|
|
9107
|
+
return factory(input2);
|
|
9108
|
+
}, toBuffer = (input2) => {
|
|
9109
|
+
if (Buffer.isBuffer(input2))
|
|
9110
|
+
return input2;
|
|
9111
|
+
return Buffer.from(input2);
|
|
9112
9112
|
}, buildOptimizedUrl = (src, width, quality, basePath = OPTIMIZATION_ENDPOINT) => `${basePath}?url=${encodeURIComponent(src)}&w=${width}&q=${quality}`, formatToMime = (format) => MIME_MAP[format], generateBlurSvg = (base64Thumbnail) => {
|
|
9113
9113
|
const svg = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 320"><filter id="b" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="${BLUR_DEVIATION}"/><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1"/></filter><image filter="url(#b)" x="0" y="0" width="100%" height="100%" href="${base64Thumbnail}"/></svg>`;
|
|
9114
9114
|
const encoded = encodeURIComponent(svg);
|
|
@@ -9538,11 +9538,11 @@ Injectable({
|
|
|
9538
9538
|
})(IslandStoreImpl);
|
|
9539
9539
|
var IslandStore = IslandStoreImpl;
|
|
9540
9540
|
// src/angular/components/defer-slot.component.ts
|
|
9541
|
-
import { Component as Component3, computed, input
|
|
9541
|
+
import { Component as Component3, computed, input } from "@angular/core";
|
|
9542
9542
|
|
|
9543
9543
|
// src/angular/components/stream-slot.component.ts
|
|
9544
9544
|
import"@angular/compiler";
|
|
9545
|
-
import { Component as Component2,
|
|
9545
|
+
import { Component as Component2, Input as Input2 } from "@angular/core";
|
|
9546
9546
|
|
|
9547
9547
|
// src/core/streamingSlotRegistrar.ts
|
|
9548
9548
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
@@ -9556,34 +9556,55 @@ var registerStreamingSlot = (slot) => {
|
|
|
9556
9556
|
|
|
9557
9557
|
// src/angular/components/stream-slot.component.ts
|
|
9558
9558
|
class StreamSlotComponent {
|
|
9559
|
-
|
|
9560
|
-
|
|
9561
|
-
|
|
9562
|
-
id = input.required();
|
|
9563
|
-
resolve = input.required();
|
|
9564
|
-
timeoutMs = input();
|
|
9559
|
+
constructor() {
|
|
9560
|
+
this.fallbackHtml = "";
|
|
9561
|
+
}
|
|
9565
9562
|
ngOnInit() {
|
|
9566
9563
|
if (typeof window !== "undefined")
|
|
9567
9564
|
return;
|
|
9568
9565
|
registerStreamingSlot({
|
|
9569
|
-
errorHtml: this.errorHtml
|
|
9570
|
-
fallbackHtml: this.fallbackHtml
|
|
9571
|
-
id: this.id
|
|
9572
|
-
resolve: this.resolve
|
|
9573
|
-
timeoutMs: this.timeoutMs
|
|
9566
|
+
errorHtml: this.errorHtml,
|
|
9567
|
+
fallbackHtml: this.fallbackHtml,
|
|
9568
|
+
id: this.id,
|
|
9569
|
+
resolve: this.resolve,
|
|
9570
|
+
timeoutMs: this.timeoutMs
|
|
9574
9571
|
});
|
|
9575
9572
|
}
|
|
9576
9573
|
}
|
|
9574
|
+
__legacyDecorateClassTS([
|
|
9575
|
+
Input2(),
|
|
9576
|
+
__legacyMetadataTS("design:type", String)
|
|
9577
|
+
], StreamSlotComponent.prototype, "className", undefined);
|
|
9578
|
+
__legacyDecorateClassTS([
|
|
9579
|
+
Input2(),
|
|
9580
|
+
__legacyMetadataTS("design:type", String)
|
|
9581
|
+
], StreamSlotComponent.prototype, "errorHtml", undefined);
|
|
9582
|
+
__legacyDecorateClassTS([
|
|
9583
|
+
Input2(),
|
|
9584
|
+
__legacyMetadataTS("design:type", Object)
|
|
9585
|
+
], StreamSlotComponent.prototype, "fallbackHtml", undefined);
|
|
9586
|
+
__legacyDecorateClassTS([
|
|
9587
|
+
Input2({ required: true }),
|
|
9588
|
+
__legacyMetadataTS("design:type", String)
|
|
9589
|
+
], StreamSlotComponent.prototype, "id", undefined);
|
|
9590
|
+
__legacyDecorateClassTS([
|
|
9591
|
+
Input2({ required: true }),
|
|
9592
|
+
__legacyMetadataTS("design:type", typeof SlotResolver === "undefined" ? Object : SlotResolver)
|
|
9593
|
+
], StreamSlotComponent.prototype, "resolve", undefined);
|
|
9594
|
+
__legacyDecorateClassTS([
|
|
9595
|
+
Input2(),
|
|
9596
|
+
__legacyMetadataTS("design:type", Number)
|
|
9597
|
+
], StreamSlotComponent.prototype, "timeoutMs", undefined);
|
|
9577
9598
|
StreamSlotComponent = __legacyDecorateClassTS([
|
|
9578
9599
|
Component2({
|
|
9579
9600
|
selector: "abs-stream-slot",
|
|
9580
9601
|
standalone: true,
|
|
9581
9602
|
template: `
|
|
9582
9603
|
<div
|
|
9583
|
-
[attr.id]="'slot-' + id
|
|
9584
|
-
[attr.class]="className
|
|
9604
|
+
[attr.id]="'slot-' + id"
|
|
9605
|
+
[attr.class]="className"
|
|
9585
9606
|
data-absolute-slot="true"
|
|
9586
|
-
[innerHTML]="fallbackHtml
|
|
9607
|
+
[innerHTML]="fallbackHtml"
|
|
9587
9608
|
></div>
|
|
9588
9609
|
`
|
|
9589
9610
|
})
|
|
@@ -9591,13 +9612,13 @@ StreamSlotComponent = __legacyDecorateClassTS([
|
|
|
9591
9612
|
|
|
9592
9613
|
// src/angular/components/defer-slot.component.ts
|
|
9593
9614
|
class DeferSlotComponent {
|
|
9594
|
-
className =
|
|
9595
|
-
errorHtml =
|
|
9596
|
-
fallbackHtml =
|
|
9597
|
-
id =
|
|
9598
|
-
promise =
|
|
9599
|
-
resolve =
|
|
9600
|
-
timeoutMs =
|
|
9615
|
+
className = input();
|
|
9616
|
+
errorHtml = input();
|
|
9617
|
+
fallbackHtml = input("");
|
|
9618
|
+
id = input.required();
|
|
9619
|
+
promise = input();
|
|
9620
|
+
resolve = input();
|
|
9621
|
+
timeoutMs = input();
|
|
9601
9622
|
resolvedResolver = computed(() => {
|
|
9602
9623
|
const resolver = this.resolve();
|
|
9603
9624
|
if (resolver)
|
|
@@ -9627,7 +9648,7 @@ DeferSlotComponent = __legacyDecorateClassTS([
|
|
|
9627
9648
|
], DeferSlotComponent);
|
|
9628
9649
|
// src/angular/components/image.component.ts
|
|
9629
9650
|
init_imageProcessing();
|
|
9630
|
-
import { Component as Component4, computed as computed2, input as
|
|
9651
|
+
import { Component as Component4, computed as computed2, input as input2, signal } from "@angular/core";
|
|
9631
9652
|
import { NgStyle } from "@angular/common";
|
|
9632
9653
|
var resolveBlurBg = (placeholderValue, blurDataUrl) => {
|
|
9633
9654
|
if (typeof placeholderValue === "string" && placeholderValue !== "blur" && placeholderValue.startsWith("data:")) {
|
|
@@ -9639,27 +9660,27 @@ var resolveBlurBg = (placeholderValue, blurDataUrl) => {
|
|
|
9639
9660
|
};
|
|
9640
9661
|
|
|
9641
9662
|
class ImageComponent {
|
|
9642
|
-
alt =
|
|
9643
|
-
blurDataURL =
|
|
9644
|
-
className =
|
|
9645
|
-
crossOrigin =
|
|
9646
|
-
fetchPriority =
|
|
9647
|
-
fill =
|
|
9648
|
-
height =
|
|
9649
|
-
loader =
|
|
9650
|
-
loading =
|
|
9651
|
-
onError =
|
|
9652
|
-
onLoad =
|
|
9653
|
-
overrideSrc =
|
|
9654
|
-
placeholder =
|
|
9655
|
-
priority =
|
|
9656
|
-
quality =
|
|
9657
|
-
referrerPolicy =
|
|
9658
|
-
sizes =
|
|
9659
|
-
src =
|
|
9660
|
-
style =
|
|
9661
|
-
unoptimized =
|
|
9662
|
-
width =
|
|
9663
|
+
alt = input2.required();
|
|
9664
|
+
blurDataURL = input2();
|
|
9665
|
+
className = input2();
|
|
9666
|
+
crossOrigin = input2();
|
|
9667
|
+
fetchPriority = input2();
|
|
9668
|
+
fill = input2(false);
|
|
9669
|
+
height = input2();
|
|
9670
|
+
loader = input2();
|
|
9671
|
+
loading = input2("lazy");
|
|
9672
|
+
onError = input2();
|
|
9673
|
+
onLoad = input2();
|
|
9674
|
+
overrideSrc = input2();
|
|
9675
|
+
placeholder = input2("empty");
|
|
9676
|
+
priority = input2(false);
|
|
9677
|
+
quality = input2(DEFAULT_QUALITY);
|
|
9678
|
+
referrerPolicy = input2();
|
|
9679
|
+
sizes = input2();
|
|
9680
|
+
src = input2.required();
|
|
9681
|
+
style = input2();
|
|
9682
|
+
unoptimized = input2(false);
|
|
9683
|
+
width = input2();
|
|
9663
9684
|
blurRemoved = signal(false);
|
|
9664
9685
|
resolvedSrc = computed2(() => {
|
|
9665
9686
|
const override = this.overrideSrc();
|
|
@@ -9783,5 +9804,5 @@ export {
|
|
|
9783
9804
|
DeferSlotComponent
|
|
9784
9805
|
};
|
|
9785
9806
|
|
|
9786
|
-
//# debugId=
|
|
9807
|
+
//# debugId=D35724C4AC63971E64756E2164756E21
|
|
9787
9808
|
//# sourceMappingURL=browser.js.map
|