@forgeroute/ui 0.5.3 → 0.5.5

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.
@@ -2381,7 +2381,6 @@ const UI_DEFAULT_LABELS = {
2381
2381
  "paymentAttempt.offline": "You are offline. Reconnect to the internet to pay: nothing was sent.",
2382
2382
  "paymentAttempt.timeout": "Your payment is taking longer than expected. We are checking whether it went through: do not pay again.",
2383
2383
  "paymentAttempt.offlineInFlight": "You went offline while your payment was being sent. We are checking whether it went through: do not pay again.",
2384
- "paymentAttempt.succeededAfterCheck": "Your payment went through. Thank you.",
2385
2384
  "paymentAttempt.failedAfterCheck": "The earlier payment attempt did not go through. You can try again.",
2386
2385
  "paymentAttempt.authRequired": "Your bank needs to verify this payment. Complete the verification window and do not close it.",
2387
2386
  "paymentAttempt.authAbandoned": "The verification was not completed. We are checking whether the payment went through before you can try again.",
@@ -44906,6 +44905,12 @@ var ImageComponent = class ImageComponent {
44906
44905
  this.src = input(null, ...ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []);
44907
44906
  this.alt = input("", ...ngDevMode ? [{ debugName: "alt" }] : /* istanbul ignore next */ []);
44908
44907
  this.fit = input("contain", ...ngDevMode ? [{ debugName: "fit" }] : /* istanbul ignore next */ []);
44908
+ this.positionX = input(50, ...ngDevMode ? [{ debugName: "positionX" }] : /* istanbul ignore next */ []);
44909
+ this.positionY = input(50, ...ngDevMode ? [{ debugName: "positionY" }] : /* istanbul ignore next */ []);
44910
+ this.objectPosition = computed(() => imageObjectPosition({
44911
+ x: this.positionX(),
44912
+ y: this.positionY()
44913
+ }), ...ngDevMode ? [{ debugName: "objectPosition" }] : /* istanbul ignore next */ []);
44909
44914
  this.width = input("", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
44910
44915
  this.height = input("", ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
44911
44916
  this.maxWidth = input("100%", ...ngDevMode ? [{ debugName: "maxWidth" }] : /* istanbul ignore next */ []);
@@ -44987,6 +44992,20 @@ var ImageComponent = class ImageComponent {
44987
44992
  isRequired: false,
44988
44993
  transformFunction: null
44989
44994
  },
44995
+ positionX: {
44996
+ classPropertyName: "positionX",
44997
+ publicName: "positionX",
44998
+ isSignal: true,
44999
+ isRequired: false,
45000
+ transformFunction: null
45001
+ },
45002
+ positionY: {
45003
+ classPropertyName: "positionY",
45004
+ publicName: "positionY",
45005
+ isSignal: true,
45006
+ isRequired: false,
45007
+ transformFunction: null
45008
+ },
44990
45009
  width: {
44991
45010
  classPropertyName: "width",
44992
45011
  publicName: "width",
@@ -45105,7 +45124,7 @@ var ImageComponent = class ImageComponent {
45105
45124
  <img class="im-img" [src]="_url()" [attr.alt]="alt()" [attr.loading]="priority() ? 'eager' : 'lazy'"
45106
45125
  [attr.fetchpriority]="priority() ? 'high' : null" decoding="async"
45107
45126
  [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()"
45127
+ [style.aspect-ratio]="aspectRatio() || null" [style.object-fit]="fit()" [style.object-position]="objectPosition()" [style.border-radius]="radiusCss()"
45109
45128
  [class.im-bordered]="bordered()" (load)="loaded.emit()" (error)="_onError()" />
45110
45129
  } @else if (placeholder()) {
45111
45130
  <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 +45167,7 @@ i0.ɵɵngDeclareClassMetadata({
45148
45167
  <img class="im-img" [src]="_url()" [attr.alt]="alt()" [attr.loading]="priority() ? 'eager' : 'lazy'"
45149
45168
  [attr.fetchpriority]="priority() ? 'high' : null" decoding="async"
45150
45169
  [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()"
45170
+ [style.aspect-ratio]="aspectRatio() || null" [style.object-fit]="fit()" [style.object-position]="objectPosition()" [style.border-radius]="radiusCss()"
45152
45171
  [class.im-bordered]="bordered()" (load)="loaded.emit()" (error)="_onError()" />
45153
45172
  } @else if (placeholder()) {
45154
45173
  <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 +45206,22 @@ i0.ɵɵngDeclareClassMetadata({
45187
45206
  required: false
45188
45207
  }]
45189
45208
  }],
45209
+ positionX: [{
45210
+ type: i0.Input,
45211
+ args: [{
45212
+ isSignal: true,
45213
+ alias: "positionX",
45214
+ required: false
45215
+ }]
45216
+ }],
45217
+ positionY: [{
45218
+ type: i0.Input,
45219
+ args: [{
45220
+ isSignal: true,
45221
+ alias: "positionY",
45222
+ required: false
45223
+ }]
45224
+ }],
45190
45225
  width: [{
45191
45226
  type: i0.Input,
45192
45227
  args: [{
@@ -45473,7 +45508,7 @@ var ImageGalleryComponent = class ImageGalleryComponent {
45473
45508
  <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
45509
  </ui-button>
45475
45510
  }
45476
- <ui-image class="ig-img" [src]="current().src" [alt]="currentAlt()" [fit]="fit()" width="100%" [maxHeight]="maxHeight()" [aspectRatio]="aspectRatio()" data-testid="gallery-image" />
45511
+ <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
45512
  @if (count() > 1) {
45478
45513
  <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
45514
  <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 +45574,8 @@ var ImageGalleryComponent = class ImageGalleryComponent {
45539
45574
  "src",
45540
45575
  "alt",
45541
45576
  "fit",
45577
+ "positionX",
45578
+ "positionY",
45542
45579
  "width",
45543
45580
  "height",
45544
45581
  "maxWidth",
@@ -45600,7 +45637,7 @@ i0.ɵɵngDeclareClassMetadata({
45600
45637
  <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
45638
  </ui-button>
45602
45639
  }
45603
- <ui-image class="ig-img" [src]="current().src" [alt]="currentAlt()" [fit]="fit()" width="100%" [maxHeight]="maxHeight()" [aspectRatio]="aspectRatio()" data-testid="gallery-image" />
45640
+ <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
45641
  @if (count() > 1) {
45605
45642
  <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
45643
  <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>
@@ -70096,7 +70133,8 @@ const PAYMENT_NO_CHARGE_CODES = [
70096
70133
  "processor_account_changed",
70097
70134
  "reference_changed",
70098
70135
  "link_in_use",
70099
- "link_already_paid"
70136
+ "link_already_paid",
70137
+ "reader_busy"
70100
70138
  ];
70101
70139
  const PAYMENT_FAILURE_CODES = [
70102
70140
  "attempt_failed_use_new_key",
@@ -70109,7 +70147,8 @@ const PAYMENT_FAILURE_CODES = [
70109
70147
  "verification_amounts_mismatch",
70110
70148
  "verification_attempts_exceeded",
70111
70149
  "verification_timeout",
70112
- "verification_failed"
70150
+ "verification_failed",
70151
+ "location_required"
70113
70152
  ];
70114
70153
  const FAILURE_HOST_CODES = new Set(PAYMENT_FAILURE_CODES);
70115
70154
  const AMBIGUOUS_HOST_CODES = /* @__PURE__ */ new Set([
@@ -71787,7 +71826,7 @@ const BUILT_IN_ENDONYMS = {
71787
71826
  ko: "한국어",
71788
71827
  ru: "Русский"
71789
71828
  };
71790
- const BUILT_IN_LOADERS = /* @__PURE__ */ new Map([["es", () => import("./forgeroute-ui-ui-labels.es-DZlDY40a.mjs").then((m) => m.UI_LABELS_ES)]]);
71829
+ const BUILT_IN_LOADERS = /* @__PURE__ */ new Map([["es", () => import("./forgeroute-ui-ui-labels.es-CJy5qCse.mjs").then((m) => m.UI_LABELS_ES)]]);
71791
71830
  const normalizeTag = (tag) => tag.trim().toLowerCase().replace(/_/g, "-");
71792
71831
  const baseOf = (tag) => normalizeTag(tag).split("-")[0];
71793
71832
  const builtInLoader = (lang) => BUILT_IN_LOADERS.get(normalizeTag(lang)) ?? BUILT_IN_LOADERS.get(baseOf(lang));