@forgeroute/ui 0.5.3 → 0.5.4
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.
|
@@ -44906,6 +44906,12 @@ var ImageComponent = class ImageComponent {
|
|
|
44906
44906
|
this.src = input(null, ...ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []);
|
|
44907
44907
|
this.alt = input("", ...ngDevMode ? [{ debugName: "alt" }] : /* istanbul ignore next */ []);
|
|
44908
44908
|
this.fit = input("contain", ...ngDevMode ? [{ debugName: "fit" }] : /* istanbul ignore next */ []);
|
|
44909
|
+
this.positionX = input(50, ...ngDevMode ? [{ debugName: "positionX" }] : /* istanbul ignore next */ []);
|
|
44910
|
+
this.positionY = input(50, ...ngDevMode ? [{ debugName: "positionY" }] : /* istanbul ignore next */ []);
|
|
44911
|
+
this.objectPosition = computed(() => imageObjectPosition({
|
|
44912
|
+
x: this.positionX(),
|
|
44913
|
+
y: this.positionY()
|
|
44914
|
+
}), ...ngDevMode ? [{ debugName: "objectPosition" }] : /* istanbul ignore next */ []);
|
|
44909
44915
|
this.width = input("", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
44910
44916
|
this.height = input("", ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
44911
44917
|
this.maxWidth = input("100%", ...ngDevMode ? [{ debugName: "maxWidth" }] : /* istanbul ignore next */ []);
|
|
@@ -44987,6 +44993,20 @@ var ImageComponent = class ImageComponent {
|
|
|
44987
44993
|
isRequired: false,
|
|
44988
44994
|
transformFunction: null
|
|
44989
44995
|
},
|
|
44996
|
+
positionX: {
|
|
44997
|
+
classPropertyName: "positionX",
|
|
44998
|
+
publicName: "positionX",
|
|
44999
|
+
isSignal: true,
|
|
45000
|
+
isRequired: false,
|
|
45001
|
+
transformFunction: null
|
|
45002
|
+
},
|
|
45003
|
+
positionY: {
|
|
45004
|
+
classPropertyName: "positionY",
|
|
45005
|
+
publicName: "positionY",
|
|
45006
|
+
isSignal: true,
|
|
45007
|
+
isRequired: false,
|
|
45008
|
+
transformFunction: null
|
|
45009
|
+
},
|
|
44990
45010
|
width: {
|
|
44991
45011
|
classPropertyName: "width",
|
|
44992
45012
|
publicName: "width",
|
|
@@ -45105,7 +45125,7 @@ var ImageComponent = class ImageComponent {
|
|
|
45105
45125
|
<img class="im-img" [src]="_url()" [attr.alt]="alt()" [attr.loading]="priority() ? 'eager' : 'lazy'"
|
|
45106
45126
|
[attr.fetchpriority]="priority() ? 'high' : null" decoding="async"
|
|
45107
45127
|
[style.width]="imgWidth()" [style.height]="imgHeight()" [style.max-width]="maxWidth()" [style.max-height]="maxHeight() || null" [style.min-height]="minHeight() || null"
|
|
45108
|
-
[style.aspect-ratio]="aspectRatio() || null" [style.object-fit]="fit()" [style.border-radius]="radiusCss()"
|
|
45128
|
+
[style.aspect-ratio]="aspectRatio() || null" [style.object-fit]="fit()" [style.object-position]="objectPosition()" [style.border-radius]="radiusCss()"
|
|
45109
45129
|
[class.im-bordered]="bordered()" (load)="loaded.emit()" (error)="_onError()" />
|
|
45110
45130
|
} @else if (placeholder()) {
|
|
45111
45131
|
<span class="im-ph" [class.im-bordered]="bordered()" [attr.role]="alt() ? 'img' : null" [attr.aria-label]="alt() || null" [attr.aria-hidden]="alt() ? null : 'true'"
|
|
@@ -45148,7 +45168,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
45148
45168
|
<img class="im-img" [src]="_url()" [attr.alt]="alt()" [attr.loading]="priority() ? 'eager' : 'lazy'"
|
|
45149
45169
|
[attr.fetchpriority]="priority() ? 'high' : null" decoding="async"
|
|
45150
45170
|
[style.width]="imgWidth()" [style.height]="imgHeight()" [style.max-width]="maxWidth()" [style.max-height]="maxHeight() || null" [style.min-height]="minHeight() || null"
|
|
45151
|
-
[style.aspect-ratio]="aspectRatio() || null" [style.object-fit]="fit()" [style.border-radius]="radiusCss()"
|
|
45171
|
+
[style.aspect-ratio]="aspectRatio() || null" [style.object-fit]="fit()" [style.object-position]="objectPosition()" [style.border-radius]="radiusCss()"
|
|
45152
45172
|
[class.im-bordered]="bordered()" (load)="loaded.emit()" (error)="_onError()" />
|
|
45153
45173
|
} @else if (placeholder()) {
|
|
45154
45174
|
<span class="im-ph" [class.im-bordered]="bordered()" [attr.role]="alt() ? 'img' : null" [attr.aria-label]="alt() || null" [attr.aria-hidden]="alt() ? null : 'true'"
|
|
@@ -45187,6 +45207,22 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
45187
45207
|
required: false
|
|
45188
45208
|
}]
|
|
45189
45209
|
}],
|
|
45210
|
+
positionX: [{
|
|
45211
|
+
type: i0.Input,
|
|
45212
|
+
args: [{
|
|
45213
|
+
isSignal: true,
|
|
45214
|
+
alias: "positionX",
|
|
45215
|
+
required: false
|
|
45216
|
+
}]
|
|
45217
|
+
}],
|
|
45218
|
+
positionY: [{
|
|
45219
|
+
type: i0.Input,
|
|
45220
|
+
args: [{
|
|
45221
|
+
isSignal: true,
|
|
45222
|
+
alias: "positionY",
|
|
45223
|
+
required: false
|
|
45224
|
+
}]
|
|
45225
|
+
}],
|
|
45190
45226
|
width: [{
|
|
45191
45227
|
type: i0.Input,
|
|
45192
45228
|
args: [{
|
|
@@ -45473,7 +45509,7 @@ var ImageGalleryComponent = class ImageGalleryComponent {
|
|
|
45473
45509
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 18l-6-6 6-6"/></svg>
|
|
45474
45510
|
</ui-button>
|
|
45475
45511
|
}
|
|
45476
|
-
<ui-image class="ig-img" [src]="current().src" [alt]="currentAlt()" [fit]="fit()" width="100%" [maxHeight]="maxHeight()" [aspectRatio]="aspectRatio()" data-testid="gallery-image" />
|
|
45512
|
+
<ui-image class="ig-img" [src]="current().src" [alt]="currentAlt()" [fit]="fit()" [positionX]="current().positionX" [positionY]="current().positionY" width="100%" [maxHeight]="maxHeight()" [aspectRatio]="aspectRatio()" data-testid="gallery-image" />
|
|
45477
45513
|
@if (count() > 1) {
|
|
45478
45514
|
<ui-button class="ig-nav ig-next" variant="secondary" size="sm" [ariaLabel]="labels.t('imageGallery.nextImage')" [disabled]="!canNext()" [attr.data-autofocus]="autofocusNext() ? '' : null" (click)="next()" data-testid="gallery-next">
|
|
45479
45515
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 18l6-6-6-6"/></svg>
|
|
@@ -45539,6 +45575,8 @@ var ImageGalleryComponent = class ImageGalleryComponent {
|
|
|
45539
45575
|
"src",
|
|
45540
45576
|
"alt",
|
|
45541
45577
|
"fit",
|
|
45578
|
+
"positionX",
|
|
45579
|
+
"positionY",
|
|
45542
45580
|
"width",
|
|
45543
45581
|
"height",
|
|
45544
45582
|
"maxWidth",
|
|
@@ -45600,7 +45638,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
45600
45638
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 18l-6-6 6-6"/></svg>
|
|
45601
45639
|
</ui-button>
|
|
45602
45640
|
}
|
|
45603
|
-
<ui-image class="ig-img" [src]="current().src" [alt]="currentAlt()" [fit]="fit()" width="100%" [maxHeight]="maxHeight()" [aspectRatio]="aspectRatio()" data-testid="gallery-image" />
|
|
45641
|
+
<ui-image class="ig-img" [src]="current().src" [alt]="currentAlt()" [fit]="fit()" [positionX]="current().positionX" [positionY]="current().positionY" width="100%" [maxHeight]="maxHeight()" [aspectRatio]="aspectRatio()" data-testid="gallery-image" />
|
|
45604
45642
|
@if (count() > 1) {
|
|
45605
45643
|
<ui-button class="ig-nav ig-next" variant="secondary" size="sm" [ariaLabel]="labels.t('imageGallery.nextImage')" [disabled]="!canNext()" [attr.data-autofocus]="autofocusNext() ? '' : null" (click)="next()" data-testid="gallery-next">
|
|
45606
45644
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 18l6-6-6-6"/></svg>
|