@forgeroute/ui 0.4.5 → 0.4.6
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.
|
@@ -14030,8 +14030,10 @@ var RadioComponent = class RadioComponent {
|
|
|
14030
14030
|
alias: "disabled"
|
|
14031
14031
|
});
|
|
14032
14032
|
this.disabled = this._disabledInput;
|
|
14033
|
-
this.
|
|
14034
|
-
this.
|
|
14033
|
+
this.labelId = input("", ...ngDevMode ? [{ debugName: "labelId" }] : /* istanbul ignore next */ []);
|
|
14034
|
+
this._generatedLabelId = `rd-${Math.random().toString(36).slice(2, 8)}-label`;
|
|
14035
|
+
this._labelId = computed(() => this.labelId() || this._generatedLabelId, ...ngDevMode ? [{ debugName: "_labelId" }] : /* istanbul ignore next */ []);
|
|
14036
|
+
this._labelledBy = computed(() => this.label() && this.description() && !this.ariaLabel() ? this._labelId() : null, ...ngDevMode ? [{ debugName: "_labelledBy" }] : /* istanbul ignore next */ []);
|
|
14035
14037
|
this._descriptionId = `rd-${Math.random().toString(36).slice(2, 8)}-desc`;
|
|
14036
14038
|
this._describedByIds = computed(() => {
|
|
14037
14039
|
return [this.describedBy(), this.description() ? this._descriptionId : ""].filter(Boolean).join(" ") || null;
|
|
@@ -14128,6 +14130,13 @@ var RadioComponent = class RadioComponent {
|
|
|
14128
14130
|
isSignal: true,
|
|
14129
14131
|
isRequired: false,
|
|
14130
14132
|
transformFunction: null
|
|
14133
|
+
},
|
|
14134
|
+
labelId: {
|
|
14135
|
+
classPropertyName: "labelId",
|
|
14136
|
+
publicName: "labelId",
|
|
14137
|
+
isSignal: true,
|
|
14138
|
+
isRequired: false,
|
|
14139
|
+
transformFunction: null
|
|
14131
14140
|
}
|
|
14132
14141
|
},
|
|
14133
14142
|
outputs: { selected: "selected" },
|
|
@@ -14152,7 +14161,7 @@ var RadioComponent = class RadioComponent {
|
|
|
14152
14161
|
(change)="onChange($event)"
|
|
14153
14162
|
/>
|
|
14154
14163
|
<span class="rd-text">
|
|
14155
|
-
@if (label()) { <span class="rd-label" [id]="_labelId">{{ label() }}</span> }
|
|
14164
|
+
@if (label()) { <span class="rd-label" [id]="_labelId()">{{ label() }}</span> }
|
|
14156
14165
|
@if (description()) { <span class="rd-description" [id]="_descriptionId">{{ description() }}</span> }
|
|
14157
14166
|
<ng-content />
|
|
14158
14167
|
</span>
|
|
@@ -14195,7 +14204,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
14195
14204
|
(change)="onChange($event)"
|
|
14196
14205
|
/>
|
|
14197
14206
|
<span class="rd-text">
|
|
14198
|
-
@if (label()) { <span class="rd-label" [id]="_labelId">{{ label() }}</span> }
|
|
14207
|
+
@if (label()) { <span class="rd-label" [id]="_labelId()">{{ label() }}</span> }
|
|
14199
14208
|
@if (description()) { <span class="rd-description" [id]="_descriptionId">{{ description() }}</span> }
|
|
14200
14209
|
<ng-content />
|
|
14201
14210
|
</span>
|
|
@@ -14285,6 +14294,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
14285
14294
|
required: false
|
|
14286
14295
|
}]
|
|
14287
14296
|
}],
|
|
14297
|
+
labelId: [{
|
|
14298
|
+
type: i0.Input,
|
|
14299
|
+
args: [{
|
|
14300
|
+
isSignal: true,
|
|
14301
|
+
alias: "labelId",
|
|
14302
|
+
required: false
|
|
14303
|
+
}]
|
|
14304
|
+
}],
|
|
14288
14305
|
selected: [{
|
|
14289
14306
|
type: i0.Output,
|
|
14290
14307
|
args: ["selected"]
|
|
@@ -14352,6 +14369,9 @@ var RadioGroupComponent = class RadioGroupComponent {
|
|
|
14352
14369
|
get _name() {
|
|
14353
14370
|
return this.name() || this._generatedName;
|
|
14354
14371
|
}
|
|
14372
|
+
_optionLabelId(index) {
|
|
14373
|
+
return `${this._generatedName}-opt-${index}-label`;
|
|
14374
|
+
}
|
|
14355
14375
|
constructor() {
|
|
14356
14376
|
this.label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
14357
14377
|
this.options = input([], ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
@@ -14567,9 +14587,10 @@ var RadioGroupComponent = class RadioGroupComponent {
|
|
|
14567
14587
|
[invalid]="!!_activeError()"
|
|
14568
14588
|
[describedBy]="(_activeError() || hint()) ? _descId : ''"
|
|
14569
14589
|
[controls]="(_value() === opt.value && _nestedContent().has(opt.value)) ? _nestedId : ''"
|
|
14590
|
+
[labelId]="_nestedContent().has(opt.value) ? _optionLabelId($index) : ''"
|
|
14570
14591
|
(selected)="onSelect($event)" />
|
|
14571
14592
|
@if (_value() === opt.value && _nestedContent().get(opt.value); as nested) {
|
|
14572
|
-
<div class="rg-nested" [id]="_nestedId"><ng-container [ngTemplateOutlet]="nested" /></div>
|
|
14593
|
+
<div class="rg-nested" role="group" [id]="_nestedId" [attr.aria-labelledby]="opt.label ? _optionLabelId($index) : null"><ng-container [ngTemplateOutlet]="nested" /></div>
|
|
14573
14594
|
}
|
|
14574
14595
|
}
|
|
14575
14596
|
</div>
|
|
@@ -14596,7 +14617,8 @@ var RadioGroupComponent = class RadioGroupComponent {
|
|
|
14596
14617
|
"invalid",
|
|
14597
14618
|
"describedBy",
|
|
14598
14619
|
"controls",
|
|
14599
|
-
"disabled"
|
|
14620
|
+
"disabled",
|
|
14621
|
+
"labelId"
|
|
14600
14622
|
],
|
|
14601
14623
|
outputs: ["selected"]
|
|
14602
14624
|
}, {
|
|
@@ -14670,9 +14692,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
14670
14692
|
[invalid]="!!_activeError()"
|
|
14671
14693
|
[describedBy]="(_activeError() || hint()) ? _descId : ''"
|
|
14672
14694
|
[controls]="(_value() === opt.value && _nestedContent().has(opt.value)) ? _nestedId : ''"
|
|
14695
|
+
[labelId]="_nestedContent().has(opt.value) ? _optionLabelId($index) : ''"
|
|
14673
14696
|
(selected)="onSelect($event)" />
|
|
14674
14697
|
@if (_value() === opt.value && _nestedContent().get(opt.value); as nested) {
|
|
14675
|
-
<div class="rg-nested" [id]="_nestedId"><ng-container [ngTemplateOutlet]="nested" /></div>
|
|
14698
|
+
<div class="rg-nested" role="group" [id]="_nestedId" [attr.aria-labelledby]="opt.label ? _optionLabelId($index) : null"><ng-container [ngTemplateOutlet]="nested" /></div>
|
|
14676
14699
|
}
|
|
14677
14700
|
}
|
|
14678
14701
|
</div>
|
|
@@ -29099,7 +29122,8 @@ var RadioMatrixComponent = class RadioMatrixComponent {
|
|
|
29099
29122
|
"invalid",
|
|
29100
29123
|
"describedBy",
|
|
29101
29124
|
"controls",
|
|
29102
|
-
"disabled"
|
|
29125
|
+
"disabled",
|
|
29126
|
+
"labelId"
|
|
29103
29127
|
],
|
|
29104
29128
|
outputs: ["selected"]
|
|
29105
29129
|
}],
|
|
@@ -29979,7 +30003,12 @@ var PdfHotspotComponent = class PdfHotspotComponent {
|
|
|
29979
30003
|
this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
29980
30004
|
this.image = input(null, ...ngDevMode ? [{ debugName: "image" }] : /* istanbul ignore next */ []);
|
|
29981
30005
|
this.imageAlt = input("Applied signature", ...ngDevMode ? [{ debugName: "imageAlt" }] : /* istanbul ignore next */ []);
|
|
30006
|
+
this.scale = input(1, ...ngDevMode ? [{ debugName: "scale" }] : /* istanbul ignore next */ []);
|
|
29982
30007
|
this.activate = output();
|
|
30008
|
+
this._scaleVar = computed(() => {
|
|
30009
|
+
const s = this.scale();
|
|
30010
|
+
return typeof s === "number" && Number.isFinite(s) && s > 0 && s !== 1 ? String(s) : null;
|
|
30011
|
+
}, ...ngDevMode ? [{ debugName: "_scaleVar" }] : /* istanbul ignore next */ []);
|
|
29983
30012
|
this.fontSize = computed(() => Math.min(11, Math.max(7, this.height() * .25)), ...ngDevMode ? [{ debugName: "fontSize" }] : /* istanbul ignore next */ []);
|
|
29984
30013
|
}
|
|
29985
30014
|
static {
|
|
@@ -30076,6 +30105,13 @@ var PdfHotspotComponent = class PdfHotspotComponent {
|
|
|
30076
30105
|
isSignal: true,
|
|
30077
30106
|
isRequired: false,
|
|
30078
30107
|
transformFunction: null
|
|
30108
|
+
},
|
|
30109
|
+
scale: {
|
|
30110
|
+
classPropertyName: "scale",
|
|
30111
|
+
publicName: "scale",
|
|
30112
|
+
isSignal: true,
|
|
30113
|
+
isRequired: false,
|
|
30114
|
+
transformFunction: null
|
|
30079
30115
|
}
|
|
30080
30116
|
},
|
|
30081
30117
|
outputs: { activate: "activate" },
|
|
@@ -30084,7 +30120,8 @@ var PdfHotspotComponent = class PdfHotspotComponent {
|
|
|
30084
30120
|
"style.top.px": "y()",
|
|
30085
30121
|
"style.width.px": "width()",
|
|
30086
30122
|
"style.height.px": "height()",
|
|
30087
|
-
"attr.data-state": "state()"
|
|
30123
|
+
"attr.data-state": "state()",
|
|
30124
|
+
"style.--ph-scale": "_scaleVar()"
|
|
30088
30125
|
} },
|
|
30089
30126
|
ngImport: i0,
|
|
30090
30127
|
template: `
|
|
@@ -30103,7 +30140,7 @@ var PdfHotspotComponent = class PdfHotspotComponent {
|
|
|
30103
30140
|
}
|
|
30104
30141
|
`,
|
|
30105
30142
|
isInline: true,
|
|
30106
|
-
styles: [":host{position:absolute;display:block;box-sizing:border-box}.ph-image{display:block;width:100%;height:100%;object-fit:contain;object-position:left}.ph-button{position:relative;box-sizing:border-box;width:100%;height:100%;white-space:nowrap;font:inherit;font-weight:500;line-height:1;border:2px solid #d1d5db;background:#f3f4f6;color:#9ca3af;cursor:not-allowed;box-shadow:0 4px 10px #0000002e;transition:background-color .15s,border-color .15s}.ph-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2}.ph-button.ph-ready{border-color:#2563eb;background:#dbeafe;color:#1d4ed8;cursor:pointer}.ph-button.ph-ready:hover{background:#bfdbfe}.ph-button.ph-ready.ph-warning{border-color:#f59e0b;background:#fffbeb;color:#b45309}.ph-button.ph-ready.ph-warning:hover{background:#fef3c7}.ph-button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}@media(pointer:coarse){.ph-button:after{content:\"\";position:absolute;left:0;right:0;top:50%;height:100%;min-height:44px;transform:translateY(-50%)}}\n"],
|
|
30143
|
+
styles: [":host{position:absolute;display:block;box-sizing:border-box}.ph-image{display:block;width:100%;height:100%;object-fit:contain;object-position:left}.ph-button{position:relative;box-sizing:border-box;width:100%;height:100%;white-space:nowrap;font:inherit;font-weight:500;line-height:1;border:2px solid #d1d5db;background:#f3f4f6;color:#9ca3af;cursor:not-allowed;box-shadow:0 4px 10px #0000002e;transition:background-color .15s,border-color .15s}.ph-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2}.ph-button.ph-ready{border-color:#2563eb;background:#dbeafe;color:#1d4ed8;cursor:pointer}.ph-button.ph-ready:hover{background:#bfdbfe}.ph-button.ph-ready.ph-warning{border-color:#f59e0b;background:#fffbeb;color:#b45309}.ph-button.ph-ready.ph-warning:hover{background:#fef3c7}.ph-button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}@media(pointer:coarse){.ph-button:after{content:\"\";position:absolute;left:0;right:0;top:50%;height:100%;min-height:calc(44px / var(--ph-scale, 1));transform:translateY(-50%)}}\n"],
|
|
30107
30144
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
30108
30145
|
});
|
|
30109
30146
|
}
|
|
@@ -30124,7 +30161,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
30124
30161
|
"[style.top.px]": "y()",
|
|
30125
30162
|
"[style.width.px]": "width()",
|
|
30126
30163
|
"[style.height.px]": "height()",
|
|
30127
|
-
"[attr.data-state]": "state()"
|
|
30164
|
+
"[attr.data-state]": "state()",
|
|
30165
|
+
"[style.--ph-scale]": "_scaleVar()"
|
|
30128
30166
|
},
|
|
30129
30167
|
template: `
|
|
30130
30168
|
@if (state() === 'signed' && image()) {
|
|
@@ -30141,7 +30179,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
30141
30179
|
(click)="activate.emit()"><span class="ph-text">{{ state() === 'blocked' ? blockedLabel() : label() }}</span></button>
|
|
30142
30180
|
}
|
|
30143
30181
|
`,
|
|
30144
|
-
styles: [":host{position:absolute;display:block;box-sizing:border-box}.ph-image{display:block;width:100%;height:100%;object-fit:contain;object-position:left}.ph-button{position:relative;box-sizing:border-box;width:100%;height:100%;white-space:nowrap;font:inherit;font-weight:500;line-height:1;border:2px solid #d1d5db;background:#f3f4f6;color:#9ca3af;cursor:not-allowed;box-shadow:0 4px 10px #0000002e;transition:background-color .15s,border-color .15s}.ph-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2}.ph-button.ph-ready{border-color:#2563eb;background:#dbeafe;color:#1d4ed8;cursor:pointer}.ph-button.ph-ready:hover{background:#bfdbfe}.ph-button.ph-ready.ph-warning{border-color:#f59e0b;background:#fffbeb;color:#b45309}.ph-button.ph-ready.ph-warning:hover{background:#fef3c7}.ph-button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}@media(pointer:coarse){.ph-button:after{content:\"\";position:absolute;left:0;right:0;top:50%;height:100%;min-height:44px;transform:translateY(-50%)}}\n"]
|
|
30182
|
+
styles: [":host{position:absolute;display:block;box-sizing:border-box}.ph-image{display:block;width:100%;height:100%;object-fit:contain;object-position:left}.ph-button{position:relative;box-sizing:border-box;width:100%;height:100%;white-space:nowrap;font:inherit;font-weight:500;line-height:1;border:2px solid #d1d5db;background:#f3f4f6;color:#9ca3af;cursor:not-allowed;box-shadow:0 4px 10px #0000002e;transition:background-color .15s,border-color .15s}.ph-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2}.ph-button.ph-ready{border-color:#2563eb;background:#dbeafe;color:#1d4ed8;cursor:pointer}.ph-button.ph-ready:hover{background:#bfdbfe}.ph-button.ph-ready.ph-warning{border-color:#f59e0b;background:#fffbeb;color:#b45309}.ph-button.ph-ready.ph-warning:hover{background:#fef3c7}.ph-button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}@media(pointer:coarse){.ph-button:after{content:\"\";position:absolute;left:0;right:0;top:50%;height:100%;min-height:calc(44px / var(--ph-scale, 1));transform:translateY(-50%)}}\n"]
|
|
30145
30183
|
}]
|
|
30146
30184
|
}],
|
|
30147
30185
|
propDecorators: {
|
|
@@ -30233,6 +30271,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
30233
30271
|
required: false
|
|
30234
30272
|
}]
|
|
30235
30273
|
}],
|
|
30274
|
+
scale: [{
|
|
30275
|
+
type: i0.Input,
|
|
30276
|
+
args: [{
|
|
30277
|
+
isSignal: true,
|
|
30278
|
+
alias: "scale",
|
|
30279
|
+
required: false
|
|
30280
|
+
}]
|
|
30281
|
+
}],
|
|
30236
30282
|
activate: [{
|
|
30237
30283
|
type: i0.Output,
|
|
30238
30284
|
args: ["activate"]
|