@forgeroute/ui 0.5.26 → 0.5.28
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/fesm2022/forgeroute-ui-card-list-item.mjs +72 -35
- package/fesm2022/forgeroute-ui-card-list-item.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-checkbox.mjs +2 -2
- package/fesm2022/forgeroute-ui-checkbox.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-color-input.mjs +2 -2
- package/fesm2022/forgeroute-ui-color-input.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-combobox.mjs +2 -2
- package/fesm2022/forgeroute-ui-combobox.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-contact-picker.mjs +4 -4
- package/fesm2022/forgeroute-ui-contact-picker.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-conversations.mjs +2 -0
- package/fesm2022/forgeroute-ui-conversations.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-data-table-core.mjs +2 -2
- package/fesm2022/forgeroute-ui-data-table-core.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-date-input.mjs +2 -2
- package/fesm2022/forgeroute-ui-date-input.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-datetime-input.mjs +2 -2
- package/fesm2022/forgeroute-ui-datetime-input.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-detail-card.mjs +20 -4
- package/fesm2022/forgeroute-ui-detail-card.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-dropdown.mjs +16 -2
- package/fesm2022/forgeroute-ui-dropdown.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-file-input.mjs +7 -5
- package/fesm2022/forgeroute-ui-file-input.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-icon-picker.mjs +2 -2
- package/fesm2022/forgeroute-ui-icon-picker.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-media.mjs +67 -2
- package/fesm2022/forgeroute-ui-media.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-messaging.mjs +3 -0
- package/fesm2022/forgeroute-ui-messaging.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-multi-select.mjs +2 -2
- package/fesm2022/forgeroute-ui-multi-select.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-notes.mjs +1 -0
- package/fesm2022/forgeroute-ui-notes.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-option-card.mjs +1 -0
- package/fesm2022/forgeroute-ui-option-card.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-payments.mjs +3 -0
- package/fesm2022/forgeroute-ui-payments.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-pdf.mjs +1 -0
- package/fesm2022/forgeroute-ui-pdf.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-quickbooks.mjs +1 -0
- package/fesm2022/forgeroute-ui-quickbooks.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-radio-matrix.mjs +2 -2
- package/fesm2022/forgeroute-ui-radio-matrix.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-radio.mjs +2 -2
- package/fesm2022/forgeroute-ui-radio.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-select.mjs +2 -2
- package/fesm2022/forgeroute-ui-select.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-setup.mjs +1 -0
- package/fesm2022/forgeroute-ui-setup.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-square.mjs +1 -0
- package/fesm2022/forgeroute-ui-square.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-star-rating.mjs +2 -2
- package/fesm2022/forgeroute-ui-star-rating.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-stripe.mjs +1 -0
- package/fesm2022/forgeroute-ui-stripe.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-swatch-picker.mjs +2 -2
- package/fesm2022/forgeroute-ui-swatch-picker.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-table-toolbar.mjs +17 -5
- package/fesm2022/forgeroute-ui-table-toolbar.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-text-input.mjs +2 -2
- package/fesm2022/forgeroute-ui-text-input.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-textarea-input.mjs +23 -36
- package/fesm2022/forgeroute-ui-textarea-input.mjs.map +1 -1
- package/fesm2022/forgeroute-ui-time-input.mjs +2 -2
- package/fesm2022/forgeroute-ui-time-input.mjs.map +1 -1
- package/package.json +1 -1
- package/types/forgeroute-ui-card-list-item.d.ts +21 -11
- package/types/forgeroute-ui-detail-card.d.ts +7 -0
- package/types/forgeroute-ui-dropdown.d.ts +2 -0
- package/types/forgeroute-ui-media.d.ts +28 -0
- package/types/forgeroute-ui-quickbooks.d.ts +1 -1
- package/types/forgeroute-ui-square.d.ts +4 -4
- package/types/forgeroute-ui-stripe.d.ts +4 -4
- package/types/forgeroute-ui-textarea-input.d.ts +9 -9
|
@@ -2884,6 +2884,11 @@ var ImageGalleryComponent = class ImageGalleryComponent {
|
|
|
2884
2884
|
this.showDots = input(true, ...ngDevMode ? [{ debugName: "showDots" }] : /* istanbul ignore next */ []);
|
|
2885
2885
|
this.showCounter = input(true, ...ngDevMode ? [{ debugName: "showCounter" }] : /* istanbul ignore next */ []);
|
|
2886
2886
|
this.aspectRatio = input("4 / 3", ...ngDevMode ? [{ debugName: "aspectRatio" }] : /* istanbul ignore next */ []);
|
|
2887
|
+
this.aspectRatioCompact = input("", ...ngDevMode ? [{ debugName: "aspectRatioCompact" }] : /* istanbul ignore next */ []);
|
|
2888
|
+
this.compactBelow = input(640, ...ngDevMode ? [{ debugName: "compactBelow" }] : /* istanbul ignore next */ []);
|
|
2889
|
+
this.priority = input(false, ...ngDevMode ? [{ debugName: "priority" }] : /* istanbul ignore next */ []);
|
|
2890
|
+
this.narrow = signal(false, ...ngDevMode ? [{ debugName: "narrow" }] : /* istanbul ignore next */ []);
|
|
2891
|
+
this.ratio = computed(() => this.narrow() && this.aspectRatioCompact() ? this.aspectRatioCompact() : this.aspectRatio(), ...ngDevMode ? [{ debugName: "ratio" }] : /* istanbul ignore next */ []);
|
|
2887
2892
|
this.maxHeight = input("70vh", ...ngDevMode ? [{ debugName: "maxHeight" }] : /* istanbul ignore next */ []);
|
|
2888
2893
|
this.fit = input("contain", ...ngDevMode ? [{ debugName: "fit" }] : /* istanbul ignore next */ []);
|
|
2889
2894
|
this.ariaLabelInput = input(null, {
|
|
@@ -2916,6 +2921,17 @@ var ImageGalleryComponent = class ImageGalleryComponent {
|
|
|
2916
2921
|
n: this.position() + 1,
|
|
2917
2922
|
total: this.count()
|
|
2918
2923
|
}) : "", ...ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []);
|
|
2924
|
+
effect((onCleanup) => {
|
|
2925
|
+
if (!this.aspectRatioCompact() || typeof matchMedia !== "function") {
|
|
2926
|
+
this.narrow.set(false);
|
|
2927
|
+
return;
|
|
2928
|
+
}
|
|
2929
|
+
const query = matchMedia(`(max-width: ${Math.max(0, Math.trunc(Number(this.compactBelow()) || 0))}px)`);
|
|
2930
|
+
this.narrow.set(query.matches);
|
|
2931
|
+
const onChange = (e) => this.narrow.set(e.matches);
|
|
2932
|
+
query.addEventListener("change", onChange);
|
|
2933
|
+
onCleanup(() => query.removeEventListener("change", onChange));
|
|
2934
|
+
});
|
|
2919
2935
|
}
|
|
2920
2936
|
prev() {
|
|
2921
2937
|
if (this.canPrev()) this.index.set((this.position() - 1 + this.count()) % this.count());
|
|
@@ -3003,6 +3019,27 @@ var ImageGalleryComponent = class ImageGalleryComponent {
|
|
|
3003
3019
|
isRequired: false,
|
|
3004
3020
|
transformFunction: null
|
|
3005
3021
|
},
|
|
3022
|
+
aspectRatioCompact: {
|
|
3023
|
+
classPropertyName: "aspectRatioCompact",
|
|
3024
|
+
publicName: "aspectRatioCompact",
|
|
3025
|
+
isSignal: true,
|
|
3026
|
+
isRequired: false,
|
|
3027
|
+
transformFunction: null
|
|
3028
|
+
},
|
|
3029
|
+
compactBelow: {
|
|
3030
|
+
classPropertyName: "compactBelow",
|
|
3031
|
+
publicName: "compactBelow",
|
|
3032
|
+
isSignal: true,
|
|
3033
|
+
isRequired: false,
|
|
3034
|
+
transformFunction: null
|
|
3035
|
+
},
|
|
3036
|
+
priority: {
|
|
3037
|
+
classPropertyName: "priority",
|
|
3038
|
+
publicName: "priority",
|
|
3039
|
+
isSignal: true,
|
|
3040
|
+
isRequired: false,
|
|
3041
|
+
transformFunction: null
|
|
3042
|
+
},
|
|
3006
3043
|
maxHeight: {
|
|
3007
3044
|
classPropertyName: "maxHeight",
|
|
3008
3045
|
publicName: "maxHeight",
|
|
@@ -3043,7 +3080,7 @@ var ImageGalleryComponent = class ImageGalleryComponent {
|
|
|
3043
3080
|
<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>
|
|
3044
3081
|
</ui-button>
|
|
3045
3082
|
}
|
|
3046
|
-
<ui-image class="ig-img" [src]="current().src" [alt]="currentAlt()" [fit]="fit()" [positionX]="current().positionX" [positionY]="current().positionY" width="100%" [maxHeight]="maxHeight()" [aspectRatio]="
|
|
3083
|
+
<ui-image class="ig-img" [src]="current().src" [alt]="currentAlt()" [fit]="fit()" [positionX]="current().positionX" [positionY]="current().positionY" width="100%" [maxHeight]="maxHeight()" [aspectRatio]="ratio()" [priority]="priority()" data-testid="gallery-image" />
|
|
3047
3084
|
@if (count() > 1) {
|
|
3048
3085
|
<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">
|
|
3049
3086
|
<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>
|
|
@@ -3172,7 +3209,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3172
3209
|
<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>
|
|
3173
3210
|
</ui-button>
|
|
3174
3211
|
}
|
|
3175
|
-
<ui-image class="ig-img" [src]="current().src" [alt]="currentAlt()" [fit]="fit()" [positionX]="current().positionX" [positionY]="current().positionY" width="100%" [maxHeight]="maxHeight()" [aspectRatio]="
|
|
3212
|
+
<ui-image class="ig-img" [src]="current().src" [alt]="currentAlt()" [fit]="fit()" [positionX]="current().positionX" [positionY]="current().positionY" width="100%" [maxHeight]="maxHeight()" [aspectRatio]="ratio()" [priority]="priority()" data-testid="gallery-image" />
|
|
3176
3213
|
@if (count() > 1) {
|
|
3177
3214
|
<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">
|
|
3178
3215
|
<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>
|
|
@@ -3200,6 +3237,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3200
3237
|
styles: [":host{display:block}.ig{display:flex;flex-direction:column;gap:10px}.ig-stage{position:relative;display:flex;align-items:center;justify-content:center}.ig-img{flex:1 1 auto;min-width:0}.ig-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:1}.ig-prev{left:8px}.ig-next{right:8px}.ig-caption{margin:0;text-align:center;font-size:.875rem;color:#334155;overflow-wrap:anywhere}.ig-meta{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.ig-counter{font-size:.8125rem;color:#64748b}.ig-dots{display:flex;align-items:center;gap:4px;flex-wrap:wrap;justify-content:center}.ig-dot{box-sizing:content-box;width:8px;height:8px;padding:18px;margin:-14px;border:0;border-radius:50%;background:#cbd5e1;background-clip:content-box;cursor:pointer;-webkit-appearance:none;appearance:none}.ig-dot-on{background:var(--ui-accent, #3b82f6);background-clip:content-box}.ig-dot:focus-visible{outline:2px solid var(--ui-focus, #3b82f6);outline-offset:-4px}\n"]
|
|
3201
3238
|
}]
|
|
3202
3239
|
}],
|
|
3240
|
+
ctorParameters: () => [],
|
|
3203
3241
|
propDecorators: {
|
|
3204
3242
|
images: [{
|
|
3205
3243
|
type: i0.Input,
|
|
@@ -3252,6 +3290,30 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3252
3290
|
required: false
|
|
3253
3291
|
}]
|
|
3254
3292
|
}],
|
|
3293
|
+
aspectRatioCompact: [{
|
|
3294
|
+
type: i0.Input,
|
|
3295
|
+
args: [{
|
|
3296
|
+
isSignal: true,
|
|
3297
|
+
alias: "aspectRatioCompact",
|
|
3298
|
+
required: false
|
|
3299
|
+
}]
|
|
3300
|
+
}],
|
|
3301
|
+
compactBelow: [{
|
|
3302
|
+
type: i0.Input,
|
|
3303
|
+
args: [{
|
|
3304
|
+
isSignal: true,
|
|
3305
|
+
alias: "compactBelow",
|
|
3306
|
+
required: false
|
|
3307
|
+
}]
|
|
3308
|
+
}],
|
|
3309
|
+
priority: [{
|
|
3310
|
+
type: i0.Input,
|
|
3311
|
+
args: [{
|
|
3312
|
+
isSignal: true,
|
|
3313
|
+
alias: "priority",
|
|
3314
|
+
required: false
|
|
3315
|
+
}]
|
|
3316
|
+
}],
|
|
3255
3317
|
maxHeight: [{
|
|
3256
3318
|
type: i0.Input,
|
|
3257
3319
|
args: [{
|
|
@@ -4460,6 +4522,9 @@ var ImageGalleryDialogComponent = class ImageGalleryDialogComponent {
|
|
|
4460
4522
|
"showDots",
|
|
4461
4523
|
"showCounter",
|
|
4462
4524
|
"aspectRatio",
|
|
4525
|
+
"aspectRatioCompact",
|
|
4526
|
+
"compactBelow",
|
|
4527
|
+
"priority",
|
|
4463
4528
|
"maxHeight",
|
|
4464
4529
|
"fit",
|
|
4465
4530
|
"ariaLabel",
|