@ferrlabs/ui-ng 1.58.0 → 1.59.0
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.
|
@@ -4123,6 +4123,23 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4123
4123
|
}]
|
|
4124
4124
|
}
|
|
4125
4125
|
});
|
|
4126
|
+
function fieldIds(sequence) {
|
|
4127
|
+
const fieldId = `flr-field-${sequence}`;
|
|
4128
|
+
return {
|
|
4129
|
+
fieldId,
|
|
4130
|
+
labelId: `${fieldId}-label`,
|
|
4131
|
+
hintId: `${fieldId}-hint`,
|
|
4132
|
+
errorId: `${fieldId}-error`
|
|
4133
|
+
};
|
|
4134
|
+
}
|
|
4135
|
+
function labelForTarget(group, ids) {
|
|
4136
|
+
return group ? null : ids.fieldId;
|
|
4137
|
+
}
|
|
4138
|
+
function mergeDescribedBy(existing, ownedIds, activeId) {
|
|
4139
|
+
const tokens = (existing ?? "").split(/\s+/).filter((token) => token !== "" && !ownedIds.includes(token));
|
|
4140
|
+
if (activeId) tokens.push(activeId);
|
|
4141
|
+
return tokens.length > 0 ? tokens.join(" ") : null;
|
|
4142
|
+
}
|
|
4126
4143
|
let fieldCounter = 0;
|
|
4127
4144
|
var FieldComponent = class FieldComponent {
|
|
4128
4145
|
constructor() {
|
|
@@ -4132,10 +4149,14 @@ var FieldComponent = class FieldComponent {
|
|
|
4132
4149
|
this.required = input(false, ...ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []);
|
|
4133
4150
|
this.optional = input(false, ...ngDevMode ? [{ debugName: "optional" }] : /* istanbul ignore next */ []);
|
|
4134
4151
|
this.optionalLabel = input("optional", ...ngDevMode ? [{ debugName: "optionalLabel" }] : /* istanbul ignore next */ []);
|
|
4152
|
+
this.group = input(false, ...ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []);
|
|
4135
4153
|
this.host = inject(ElementRef);
|
|
4136
|
-
this.
|
|
4137
|
-
this.
|
|
4138
|
-
this.
|
|
4154
|
+
this.ids = fieldIds(++fieldCounter);
|
|
4155
|
+
this.fieldId = this.ids.fieldId;
|
|
4156
|
+
this.labelId = this.ids.labelId;
|
|
4157
|
+
this.hintId = this.ids.hintId;
|
|
4158
|
+
this.errorId = this.ids.errorId;
|
|
4159
|
+
this.labelFor = computed(() => labelForTarget(this.group(), this.ids), ...ngDevMode ? [{ debugName: "labelFor" }] : /* istanbul ignore next */ []);
|
|
4139
4160
|
this.describedBy = computed(() => {
|
|
4140
4161
|
if (this.error()) return this.errorId;
|
|
4141
4162
|
if (this.hint()) return this.hintId;
|
|
@@ -4146,13 +4167,13 @@ var FieldComponent = class FieldComponent {
|
|
|
4146
4167
|
return error != null && error !== "";
|
|
4147
4168
|
}, ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
|
|
4148
4169
|
afterRenderEffect(() => {
|
|
4170
|
+
if (this.group()) return;
|
|
4149
4171
|
const describedBy = this.describedBy();
|
|
4150
4172
|
const control = this.host.nativeElement.querySelector("input, textarea, select");
|
|
4151
4173
|
if (!control) return;
|
|
4152
4174
|
if (!control.id) control.id = this.fieldId;
|
|
4153
|
-
const
|
|
4154
|
-
if (
|
|
4155
|
-
if (tokens.length > 0) control.setAttribute("aria-describedby", tokens.join(" "));
|
|
4175
|
+
const merged = mergeDescribedBy(control.getAttribute("aria-describedby"), [this.hintId, this.errorId], describedBy);
|
|
4176
|
+
if (merged) control.setAttribute("aria-describedby", merged);
|
|
4156
4177
|
else control.removeAttribute("aria-describedby");
|
|
4157
4178
|
});
|
|
4158
4179
|
}
|
|
@@ -4215,34 +4236,29 @@ var FieldComponent = class FieldComponent {
|
|
|
4215
4236
|
isSignal: true,
|
|
4216
4237
|
isRequired: false,
|
|
4217
4238
|
transformFunction: null
|
|
4239
|
+
},
|
|
4240
|
+
group: {
|
|
4241
|
+
classPropertyName: "group",
|
|
4242
|
+
publicName: "group",
|
|
4243
|
+
isSignal: true,
|
|
4244
|
+
isRequired: false,
|
|
4245
|
+
transformFunction: null
|
|
4218
4246
|
}
|
|
4219
4247
|
},
|
|
4220
4248
|
exportAs: ["flrField"],
|
|
4221
4249
|
ngImport: i0,
|
|
4222
|
-
template:
|
|
4223
|
-
<div class="flr-field">
|
|
4224
|
-
<div class="flr-field__head">
|
|
4225
|
-
<label class="flr-field__label mono" [attr.for]="fieldId">
|
|
4226
|
-
{{ label() }}
|
|
4227
|
-
@if (required()) {
|
|
4228
|
-
<span class="flr-field__required" aria-hidden="true">*</span>
|
|
4229
|
-
}
|
|
4230
|
-
@if (optional() && !required()) {
|
|
4231
|
-
<span class="flr-field__optional">({{ optionalLabel() }})</span>
|
|
4232
|
-
}
|
|
4233
|
-
</label>
|
|
4234
|
-
<div class="flr-field__trailing"><ng-content select="[field-trailing]" /></div>
|
|
4235
|
-
</div>
|
|
4236
|
-
<ng-content />
|
|
4237
|
-
@if (error(); as e) {
|
|
4238
|
-
<p class="flr-field__error" [id]="errorId">{{ e }}</p>
|
|
4239
|
-
} @else if (hint(); as h) {
|
|
4240
|
-
<p class="flr-field__hint" [id]="hintId">{{ h }}</p>
|
|
4241
|
-
}
|
|
4242
|
-
</div>
|
|
4243
|
-
`,
|
|
4244
|
-
isInline: true,
|
|
4250
|
+
template: "<div class=\"flr-field\">\n <div class=\"flr-field__head\">\n @if (group()) {\n <span class=\"flr-field__label mono\" [id]=\"labelId\">\n <ng-container *ngTemplateOutlet=\"labelContent\" />\n </span>\n } @else {\n <label class=\"flr-field__label mono\" [attr.for]=\"labelFor()\">\n <ng-container *ngTemplateOutlet=\"labelContent\" />\n </label>\n }\n <div class=\"flr-field__trailing\"><ng-content select=\"[field-trailing]\" /></div>\n </div>\n <ng-content />\n @if (error(); as e) {\n <p class=\"flr-field__error\" [id]=\"errorId\">{{ e }}</p>\n } @else if (hint(); as h) {\n <p class=\"flr-field__hint\" [id]=\"hintId\">{{ h }}</p>\n }\n</div>\n\n<ng-template #labelContent>\n {{ label() }}\n @if (required()) {\n <span class=\"flr-field__required\" aria-hidden=\"true\">*</span>\n }\n @if (optional() && !required()) {\n <span class=\"flr-field__optional\">({{ optionalLabel() }})</span>\n }\n</ng-template>\n",
|
|
4245
4251
|
styles: [":host{display:contents}.flr-field{display:flex;flex-direction:column;gap:8px}.flr-field__head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.flr-field__label{font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--color-ink-3, #64748b)}.flr-field__required{margin-left:4px;color:var(--color-danger, #dc2626)}.flr-field__optional{margin-left:6px;color:var(--color-ink-3, #64748b);font-weight:400}.flr-field__trailing{font-size:12px}.flr-field__error{margin:0;font-size:12px;color:var(--color-danger, #dc2626)}.flr-field__hint{margin:0;font-size:12px;color:var(--color-ink-3, #64748b)}\n"],
|
|
4252
|
+
dependencies: [{
|
|
4253
|
+
kind: "directive",
|
|
4254
|
+
type: NgTemplateOutlet,
|
|
4255
|
+
selector: "[ngTemplateOutlet]",
|
|
4256
|
+
inputs: [
|
|
4257
|
+
"ngTemplateOutletContext",
|
|
4258
|
+
"ngTemplateOutlet",
|
|
4259
|
+
"ngTemplateOutletInjector"
|
|
4260
|
+
]
|
|
4261
|
+
}],
|
|
4246
4262
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
4247
4263
|
});
|
|
4248
4264
|
}
|
|
@@ -4257,29 +4273,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4257
4273
|
args: [{
|
|
4258
4274
|
selector: "flr-field",
|
|
4259
4275
|
exportAs: "flrField",
|
|
4276
|
+
imports: [NgTemplateOutlet],
|
|
4260
4277
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4261
|
-
template:
|
|
4262
|
-
<div class="flr-field">
|
|
4263
|
-
<div class="flr-field__head">
|
|
4264
|
-
<label class="flr-field__label mono" [attr.for]="fieldId">
|
|
4265
|
-
{{ label() }}
|
|
4266
|
-
@if (required()) {
|
|
4267
|
-
<span class="flr-field__required" aria-hidden="true">*</span>
|
|
4268
|
-
}
|
|
4269
|
-
@if (optional() && !required()) {
|
|
4270
|
-
<span class="flr-field__optional">({{ optionalLabel() }})</span>
|
|
4271
|
-
}
|
|
4272
|
-
</label>
|
|
4273
|
-
<div class="flr-field__trailing"><ng-content select="[field-trailing]" /></div>
|
|
4274
|
-
</div>
|
|
4275
|
-
<ng-content />
|
|
4276
|
-
@if (error(); as e) {
|
|
4277
|
-
<p class="flr-field__error" [id]="errorId">{{ e }}</p>
|
|
4278
|
-
} @else if (hint(); as h) {
|
|
4279
|
-
<p class="flr-field__hint" [id]="hintId">{{ h }}</p>
|
|
4280
|
-
}
|
|
4281
|
-
</div>
|
|
4282
|
-
`,
|
|
4278
|
+
template: "<div class=\"flr-field\">\n <div class=\"flr-field__head\">\n @if (group()) {\n <span class=\"flr-field__label mono\" [id]=\"labelId\">\n <ng-container *ngTemplateOutlet=\"labelContent\" />\n </span>\n } @else {\n <label class=\"flr-field__label mono\" [attr.for]=\"labelFor()\">\n <ng-container *ngTemplateOutlet=\"labelContent\" />\n </label>\n }\n <div class=\"flr-field__trailing\"><ng-content select=\"[field-trailing]\" /></div>\n </div>\n <ng-content />\n @if (error(); as e) {\n <p class=\"flr-field__error\" [id]=\"errorId\">{{ e }}</p>\n } @else if (hint(); as h) {\n <p class=\"flr-field__hint\" [id]=\"hintId\">{{ h }}</p>\n }\n</div>\n\n<ng-template #labelContent>\n {{ label() }}\n @if (required()) {\n <span class=\"flr-field__required\" aria-hidden=\"true\">*</span>\n }\n @if (optional() && !required()) {\n <span class=\"flr-field__optional\">({{ optionalLabel() }})</span>\n }\n</ng-template>\n",
|
|
4283
4279
|
styles: [":host{display:contents}.flr-field{display:flex;flex-direction:column;gap:8px}.flr-field__head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.flr-field__label{font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--color-ink-3, #64748b)}.flr-field__required{margin-left:4px;color:var(--color-danger, #dc2626)}.flr-field__optional{margin-left:6px;color:var(--color-ink-3, #64748b);font-weight:400}.flr-field__trailing{font-size:12px}.flr-field__error{margin:0;font-size:12px;color:var(--color-danger, #dc2626)}.flr-field__hint{margin:0;font-size:12px;color:var(--color-ink-3, #64748b)}\n"]
|
|
4284
4280
|
}]
|
|
4285
4281
|
}],
|
|
@@ -4332,6 +4328,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4332
4328
|
alias: "optionalLabel",
|
|
4333
4329
|
required: false
|
|
4334
4330
|
}]
|
|
4331
|
+
}],
|
|
4332
|
+
group: [{
|
|
4333
|
+
type: i0.Input,
|
|
4334
|
+
args: [{
|
|
4335
|
+
isSignal: true,
|
|
4336
|
+
alias: "group",
|
|
4337
|
+
required: false
|
|
4338
|
+
}]
|
|
4335
4339
|
}]
|
|
4336
4340
|
}
|
|
4337
4341
|
});
|
|
@@ -6933,7 +6937,7 @@ var TreeSelectComponent = class TreeSelectComponent {
|
|
|
6933
6937
|
</div>
|
|
6934
6938
|
`,
|
|
6935
6939
|
isInline: true,
|
|
6936
|
-
styles: [":host{display:block}.flr-ts{border:1px solid var(--flr-rule, #e2e8f0);border-radius:var(--radius-card, 8px);overflow:hidden;background:var(--flr-bg, #fff)}.flr-ts--invalid{border-color:var(--color-danger, #dc2626)}.flr-ts__search{width:100%;box-sizing:border-box;border:0;border-bottom:1px solid var(--flr-rule, #e2e8f0);padding:9px 12px;font:400 13px/1.4 var(--flr-font-sans, system-ui);color:inherit;background:transparent}.flr-ts__search::placeholder{color:var(--color-ink-3, #5d6b80);opacity:1}.flr-ts__search:focus{outline:none;border-bottom-color:var(--flr-accent, #f59e0b)}.flr-ts__tree{max-height:320px;overflow-y:auto}.flr-ts__group+.flr-ts__group{border-top:1px solid var(--flr-rule, #e2e8f0)}.flr-ts__grouprow{display:flex;align-items:center;gap:9px;padding:8px 12px}.flr-ts__toggle{display:flex;align-items:baseline;gap:8px;flex:1;min-width:0;border:0;background:transparent;color:inherit;cursor:pointer;padding:0;text-align:left;font:500 13px/1.4 var(--flr-font-sans, system-ui)}.flr-ts__chev{display:inline-block;transition:transform .12s ease;opacity:.55}.flr-ts__chev--open{transform:rotate(90deg)}.flr-ts__grouplabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flr-ts__groupmeta{font-size:11.5px;color:var(--color-ink-3, #5d6b80);white-space:nowrap}.flr-ts__leaves{padding-bottom:4px}.flr-ts__row{display:flex;align-items:flex-start;gap:9px;padding:6px 12px 6px 33px;cursor:pointer;font:400 13px/1.4 var(--flr-font-sans, system-ui)}.flr-ts__row:hover{background:color-mix(in oklab,currentColor 5%,transparent)}.flr-ts__row--on{background:color-mix(in oklab,var(--flr-accent, #f59e0b) 8%,transparent)}.flr-ts__box{margin-top:2px;flex-shrink:0}.flr-ts__text{display:flex;flex-direction:column;min-width:0}.flr-ts__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flr-ts__hint{font-size:11.5px;opacity:.65;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flr-ts__empty{margin:0;padding:14px 12px;font:400 12.5px/1.4 var(--flr-font-sans, system-ui);opacity:.6}.flr-ts__foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 12px;border-top:1px solid var(--flr-rule, #e2e8f0);font:400 11.5px/1 var(--flr-font-sans, system-ui);opacity:.75}.flr-ts__clear{border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;text-decoration:underline;padding:0}\n"],
|
|
6940
|
+
styles: [":host{display:block}.flr-ts{border:1px solid var(--flr-rule, var(--color-rule, #e2e8f0));border-radius:var(--radius-card, 8px);overflow:hidden;background:var(--flr-bg, var(--color-card, #fff))}.flr-ts--invalid{border-color:var(--color-danger, #dc2626)}.flr-ts__search{width:100%;box-sizing:border-box;border:0;border-bottom:1px solid var(--flr-rule, var(--color-rule, #e2e8f0));padding:9px 12px;font:400 13px/1.4 var(--flr-font-sans, system-ui);color:inherit;background:transparent}.flr-ts__search::placeholder{color:var(--color-ink-3, #5d6b80);opacity:1}.flr-ts__search:focus{outline:none;border-bottom-color:var(--flr-accent, #f59e0b)}.flr-ts__tree{max-height:320px;overflow-y:auto}.flr-ts__group+.flr-ts__group{border-top:1px solid var(--flr-rule, var(--color-rule, #e2e8f0))}.flr-ts__grouprow{display:flex;align-items:center;gap:9px;padding:8px 12px}.flr-ts__toggle{display:flex;align-items:baseline;gap:8px;flex:1;min-width:0;border:0;background:transparent;color:inherit;cursor:pointer;padding:0;text-align:left;font:500 13px/1.4 var(--flr-font-sans, system-ui)}.flr-ts__chev{display:inline-block;transition:transform .12s ease;opacity:.55}.flr-ts__chev--open{transform:rotate(90deg)}.flr-ts__grouplabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flr-ts__groupmeta{font-size:11.5px;color:var(--color-ink-3, #5d6b80);white-space:nowrap}.flr-ts__leaves{padding-bottom:4px}.flr-ts__row{display:flex;align-items:flex-start;gap:9px;padding:6px 12px 6px 33px;cursor:pointer;font:400 13px/1.4 var(--flr-font-sans, system-ui)}.flr-ts__row:hover{background:color-mix(in oklab,currentColor 5%,transparent)}.flr-ts__row--on{background:color-mix(in oklab,var(--flr-accent, #f59e0b) 8%,transparent)}.flr-ts__box{margin-top:2px;flex-shrink:0}.flr-ts__text{display:flex;flex-direction:column;min-width:0}.flr-ts__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flr-ts__hint{font-size:11.5px;opacity:.65;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flr-ts__empty{margin:0;padding:14px 12px;font:400 12.5px/1.4 var(--flr-font-sans, system-ui);opacity:.6}.flr-ts__foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 12px;border-top:1px solid var(--flr-rule, var(--color-rule, #e2e8f0));font:400 11.5px/1 var(--flr-font-sans, system-ui);opacity:.75}.flr-ts__clear{border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;text-decoration:underline;padding:0}\n"],
|
|
6937
6941
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
6938
6942
|
});
|
|
6939
6943
|
}
|
|
@@ -7037,7 +7041,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7037
7041
|
</div>
|
|
7038
7042
|
</div>
|
|
7039
7043
|
`,
|
|
7040
|
-
styles: [":host{display:block}.flr-ts{border:1px solid var(--flr-rule, #e2e8f0);border-radius:var(--radius-card, 8px);overflow:hidden;background:var(--flr-bg, #fff)}.flr-ts--invalid{border-color:var(--color-danger, #dc2626)}.flr-ts__search{width:100%;box-sizing:border-box;border:0;border-bottom:1px solid var(--flr-rule, #e2e8f0);padding:9px 12px;font:400 13px/1.4 var(--flr-font-sans, system-ui);color:inherit;background:transparent}.flr-ts__search::placeholder{color:var(--color-ink-3, #5d6b80);opacity:1}.flr-ts__search:focus{outline:none;border-bottom-color:var(--flr-accent, #f59e0b)}.flr-ts__tree{max-height:320px;overflow-y:auto}.flr-ts__group+.flr-ts__group{border-top:1px solid var(--flr-rule, #e2e8f0)}.flr-ts__grouprow{display:flex;align-items:center;gap:9px;padding:8px 12px}.flr-ts__toggle{display:flex;align-items:baseline;gap:8px;flex:1;min-width:0;border:0;background:transparent;color:inherit;cursor:pointer;padding:0;text-align:left;font:500 13px/1.4 var(--flr-font-sans, system-ui)}.flr-ts__chev{display:inline-block;transition:transform .12s ease;opacity:.55}.flr-ts__chev--open{transform:rotate(90deg)}.flr-ts__grouplabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flr-ts__groupmeta{font-size:11.5px;color:var(--color-ink-3, #5d6b80);white-space:nowrap}.flr-ts__leaves{padding-bottom:4px}.flr-ts__row{display:flex;align-items:flex-start;gap:9px;padding:6px 12px 6px 33px;cursor:pointer;font:400 13px/1.4 var(--flr-font-sans, system-ui)}.flr-ts__row:hover{background:color-mix(in oklab,currentColor 5%,transparent)}.flr-ts__row--on{background:color-mix(in oklab,var(--flr-accent, #f59e0b) 8%,transparent)}.flr-ts__box{margin-top:2px;flex-shrink:0}.flr-ts__text{display:flex;flex-direction:column;min-width:0}.flr-ts__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flr-ts__hint{font-size:11.5px;opacity:.65;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flr-ts__empty{margin:0;padding:14px 12px;font:400 12.5px/1.4 var(--flr-font-sans, system-ui);opacity:.6}.flr-ts__foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 12px;border-top:1px solid var(--flr-rule, #e2e8f0);font:400 11.5px/1 var(--flr-font-sans, system-ui);opacity:.75}.flr-ts__clear{border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;text-decoration:underline;padding:0}\n"]
|
|
7044
|
+
styles: [":host{display:block}.flr-ts{border:1px solid var(--flr-rule, var(--color-rule, #e2e8f0));border-radius:var(--radius-card, 8px);overflow:hidden;background:var(--flr-bg, var(--color-card, #fff))}.flr-ts--invalid{border-color:var(--color-danger, #dc2626)}.flr-ts__search{width:100%;box-sizing:border-box;border:0;border-bottom:1px solid var(--flr-rule, var(--color-rule, #e2e8f0));padding:9px 12px;font:400 13px/1.4 var(--flr-font-sans, system-ui);color:inherit;background:transparent}.flr-ts__search::placeholder{color:var(--color-ink-3, #5d6b80);opacity:1}.flr-ts__search:focus{outline:none;border-bottom-color:var(--flr-accent, #f59e0b)}.flr-ts__tree{max-height:320px;overflow-y:auto}.flr-ts__group+.flr-ts__group{border-top:1px solid var(--flr-rule, var(--color-rule, #e2e8f0))}.flr-ts__grouprow{display:flex;align-items:center;gap:9px;padding:8px 12px}.flr-ts__toggle{display:flex;align-items:baseline;gap:8px;flex:1;min-width:0;border:0;background:transparent;color:inherit;cursor:pointer;padding:0;text-align:left;font:500 13px/1.4 var(--flr-font-sans, system-ui)}.flr-ts__chev{display:inline-block;transition:transform .12s ease;opacity:.55}.flr-ts__chev--open{transform:rotate(90deg)}.flr-ts__grouplabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flr-ts__groupmeta{font-size:11.5px;color:var(--color-ink-3, #5d6b80);white-space:nowrap}.flr-ts__leaves{padding-bottom:4px}.flr-ts__row{display:flex;align-items:flex-start;gap:9px;padding:6px 12px 6px 33px;cursor:pointer;font:400 13px/1.4 var(--flr-font-sans, system-ui)}.flr-ts__row:hover{background:color-mix(in oklab,currentColor 5%,transparent)}.flr-ts__row--on{background:color-mix(in oklab,var(--flr-accent, #f59e0b) 8%,transparent)}.flr-ts__box{margin-top:2px;flex-shrink:0}.flr-ts__text{display:flex;flex-direction:column;min-width:0}.flr-ts__label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flr-ts__hint{font-size:11.5px;opacity:.65;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flr-ts__empty{margin:0;padding:14px 12px;font:400 12.5px/1.4 var(--flr-font-sans, system-ui);opacity:.6}.flr-ts__foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 12px;border-top:1px solid var(--flr-rule, var(--color-rule, #e2e8f0));font:400 11.5px/1 var(--flr-font-sans, system-ui);opacity:.75}.flr-ts__clear{border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;text-decoration:underline;padding:0}\n"]
|
|
7041
7045
|
}]
|
|
7042
7046
|
}],
|
|
7043
7047
|
propDecorators: {
|
|
@@ -7147,6 +7151,14 @@ var RadioGroupComponent = class RadioGroupComponent {
|
|
|
7147
7151
|
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
7148
7152
|
alias: "aria-label"
|
|
7149
7153
|
});
|
|
7154
|
+
this.ariaLabelledby = input(null, {
|
|
7155
|
+
...ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {},
|
|
7156
|
+
alias: "aria-labelledby"
|
|
7157
|
+
});
|
|
7158
|
+
this.ariaDescribedby = input(null, {
|
|
7159
|
+
...ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {},
|
|
7160
|
+
alias: "aria-describedby"
|
|
7161
|
+
});
|
|
7150
7162
|
this.name = input(`flr-radio-${++radioGroupCounter}`, ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
7151
7163
|
this.value = signal(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
7152
7164
|
this.disabled = signal(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
|
|
@@ -7202,6 +7214,20 @@ var RadioGroupComponent = class RadioGroupComponent {
|
|
|
7202
7214
|
isRequired: false,
|
|
7203
7215
|
transformFunction: null
|
|
7204
7216
|
},
|
|
7217
|
+
ariaLabelledby: {
|
|
7218
|
+
classPropertyName: "ariaLabelledby",
|
|
7219
|
+
publicName: "aria-labelledby",
|
|
7220
|
+
isSignal: true,
|
|
7221
|
+
isRequired: false,
|
|
7222
|
+
transformFunction: null
|
|
7223
|
+
},
|
|
7224
|
+
ariaDescribedby: {
|
|
7225
|
+
classPropertyName: "ariaDescribedby",
|
|
7226
|
+
publicName: "aria-describedby",
|
|
7227
|
+
isSignal: true,
|
|
7228
|
+
isRequired: false,
|
|
7229
|
+
transformFunction: null
|
|
7230
|
+
},
|
|
7205
7231
|
name: {
|
|
7206
7232
|
classPropertyName: "name",
|
|
7207
7233
|
publicName: "name",
|
|
@@ -7222,6 +7248,8 @@ var RadioGroupComponent = class RadioGroupComponent {
|
|
|
7222
7248
|
class="flr-radio-group"
|
|
7223
7249
|
role="radiogroup"
|
|
7224
7250
|
[attr.aria-label]="ariaLabel()"
|
|
7251
|
+
[attr.aria-labelledby]="ariaLabelledby()"
|
|
7252
|
+
[attr.aria-describedby]="ariaDescribedby()"
|
|
7225
7253
|
[class.flr-radio-group--horizontal]="orientation() === 'horizontal'"
|
|
7226
7254
|
>
|
|
7227
7255
|
<ng-content />
|
|
@@ -7254,6 +7282,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7254
7282
|
class="flr-radio-group"
|
|
7255
7283
|
role="radiogroup"
|
|
7256
7284
|
[attr.aria-label]="ariaLabel()"
|
|
7285
|
+
[attr.aria-labelledby]="ariaLabelledby()"
|
|
7286
|
+
[attr.aria-describedby]="ariaDescribedby()"
|
|
7257
7287
|
[class.flr-radio-group--horizontal]="orientation() === 'horizontal'"
|
|
7258
7288
|
>
|
|
7259
7289
|
<ng-content />
|
|
@@ -7279,6 +7309,22 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7279
7309
|
required: false
|
|
7280
7310
|
}]
|
|
7281
7311
|
}],
|
|
7312
|
+
ariaLabelledby: [{
|
|
7313
|
+
type: i0.Input,
|
|
7314
|
+
args: [{
|
|
7315
|
+
isSignal: true,
|
|
7316
|
+
alias: "aria-labelledby",
|
|
7317
|
+
required: false
|
|
7318
|
+
}]
|
|
7319
|
+
}],
|
|
7320
|
+
ariaDescribedby: [{
|
|
7321
|
+
type: i0.Input,
|
|
7322
|
+
args: [{
|
|
7323
|
+
isSignal: true,
|
|
7324
|
+
alias: "aria-describedby",
|
|
7325
|
+
required: false
|
|
7326
|
+
}]
|
|
7327
|
+
}],
|
|
7282
7328
|
name: [{
|
|
7283
7329
|
type: i0.Input,
|
|
7284
7330
|
args: [{
|
|
@@ -15877,6 +15923,14 @@ var SegmentedComponent = class SegmentedComponent {
|
|
|
15877
15923
|
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
15878
15924
|
alias: "aria-label"
|
|
15879
15925
|
});
|
|
15926
|
+
this.ariaLabelledby = input(null, {
|
|
15927
|
+
...ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {},
|
|
15928
|
+
alias: "aria-labelledby"
|
|
15929
|
+
});
|
|
15930
|
+
this.ariaDescribedby = input(null, {
|
|
15931
|
+
...ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {},
|
|
15932
|
+
alias: "aria-describedby"
|
|
15933
|
+
});
|
|
15880
15934
|
this.group = viewChild.required("group", ...ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []);
|
|
15881
15935
|
this.thumb = viewChild.required("thumb", ...ngDevMode ? [{ debugName: "thumb" }] : /* istanbul ignore next */ []);
|
|
15882
15936
|
this.buttons = viewChildren("optionButton", ...ngDevMode ? [{ debugName: "buttons" }] : /* istanbul ignore next */ []);
|
|
@@ -15963,6 +16017,20 @@ var SegmentedComponent = class SegmentedComponent {
|
|
|
15963
16017
|
isSignal: true,
|
|
15964
16018
|
isRequired: false,
|
|
15965
16019
|
transformFunction: null
|
|
16020
|
+
},
|
|
16021
|
+
ariaLabelledby: {
|
|
16022
|
+
classPropertyName: "ariaLabelledby",
|
|
16023
|
+
publicName: "aria-labelledby",
|
|
16024
|
+
isSignal: true,
|
|
16025
|
+
isRequired: false,
|
|
16026
|
+
transformFunction: null
|
|
16027
|
+
},
|
|
16028
|
+
ariaDescribedby: {
|
|
16029
|
+
classPropertyName: "ariaDescribedby",
|
|
16030
|
+
publicName: "aria-describedby",
|
|
16031
|
+
isSignal: true,
|
|
16032
|
+
isRequired: false,
|
|
16033
|
+
transformFunction: null
|
|
15966
16034
|
}
|
|
15967
16035
|
},
|
|
15968
16036
|
outputs: { value: "valueChange" },
|
|
@@ -15989,7 +16057,7 @@ var SegmentedComponent = class SegmentedComponent {
|
|
|
15989
16057
|
}
|
|
15990
16058
|
],
|
|
15991
16059
|
ngImport: i0,
|
|
15992
|
-
template: "<div
|
|
16060
|
+
template: "<div\n #group\n class=\"flr-seg\"\n role=\"radiogroup\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-describedby]=\"ariaDescribedby()\"\n>\n <span #thumb class=\"flr-seg__thumb\" aria-hidden=\"true\" hidden></span>\n @for (option of options(); track option.value; let i = $index) {\n @let selected = option.value === value();\n <button\n #optionButton\n type=\"button\"\n role=\"radio\"\n class=\"flr-seg__option\"\n [class.flr-seg__option--selected]=\"selected\"\n [class.flr-seg__option--icon-only]=\"iconOnly() && option.icon\"\n [attr.aria-checked]=\"selected\"\n [attr.aria-label]=\"iconOnly() && option.icon ? option.label : null\"\n [attr.title]=\"iconOnly() && option.icon ? option.label : null\"\n [tabindex]=\"selected ? 0 : -1\"\n (click)=\"select(option)\"\n (keydown)=\"handleKeydown($event, i)\"\n >\n @let icon = trustedIcon(option.icon);\n @if (icon) {\n <span class=\"flr-seg__icon\" aria-hidden=\"true\" [innerHTML]=\"icon\"></span>\n }\n @if (!iconOnly() || !icon) {\n <span>{{ option.label }}</span>\n }\n </button>\n }\n</div>\n",
|
|
15993
16061
|
styles: [":host{display:inline-block}.flr-seg{position:relative;display:inline-flex;overflow:hidden;gap:2px;padding:3px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));border-radius:var(--radius-card, 8px);background:var(--color-app-bg-2, #f1f5f9)}.flr-seg__thumb{position:absolute;top:3px;bottom:3px;left:0;box-sizing:border-box;border:1px solid var(--color-ink-3, #5d6b80);border-radius:var(--radius-control, 4px);background:var(--color-card, #ffffff);box-shadow:0 1px 2px #1e293b1f;pointer-events:none}.flr-seg__thumb[hidden]{display:none}.flr-seg__thumb--animated{transition:transform .26s cubic-bezier(.3,0,0,1),width .26s cubic-bezier(.3,0,0,1)}@media(prefers-reduced-motion:reduce){.flr-seg__thumb--animated{transition:none}}.flr-seg__option{position:relative;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:0;border-radius:var(--radius-control, 4px);background:transparent;color:var(--color-ink-3, #64748b);font:inherit;font-size:13px;cursor:pointer;transition:color .12s ease,background-color .12s ease}.flr-seg__option:hover{color:var(--color-ink, #1e293b)}.flr-seg__option:focus-visible{outline:2px solid var(--color-accent, currentColor);outline-offset:-2px}.flr-seg__option--selected{color:var(--color-ink, #1e293b)}.flr-seg__option--icon-only{width:30px;padding:0;justify-content:center}.flr-seg__icon{display:inline-flex}.flr-seg__icon ::ng-deep svg{width:16px;height:16px}\n"],
|
|
15994
16062
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
15995
16063
|
});
|
|
@@ -16005,7 +16073,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
16005
16073
|
args: [{
|
|
16006
16074
|
selector: "flr-segmented",
|
|
16007
16075
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16008
|
-
template: "<div
|
|
16076
|
+
template: "<div\n #group\n class=\"flr-seg\"\n role=\"radiogroup\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-describedby]=\"ariaDescribedby()\"\n>\n <span #thumb class=\"flr-seg__thumb\" aria-hidden=\"true\" hidden></span>\n @for (option of options(); track option.value; let i = $index) {\n @let selected = option.value === value();\n <button\n #optionButton\n type=\"button\"\n role=\"radio\"\n class=\"flr-seg__option\"\n [class.flr-seg__option--selected]=\"selected\"\n [class.flr-seg__option--icon-only]=\"iconOnly() && option.icon\"\n [attr.aria-checked]=\"selected\"\n [attr.aria-label]=\"iconOnly() && option.icon ? option.label : null\"\n [attr.title]=\"iconOnly() && option.icon ? option.label : null\"\n [tabindex]=\"selected ? 0 : -1\"\n (click)=\"select(option)\"\n (keydown)=\"handleKeydown($event, i)\"\n >\n @let icon = trustedIcon(option.icon);\n @if (icon) {\n <span class=\"flr-seg__icon\" aria-hidden=\"true\" [innerHTML]=\"icon\"></span>\n }\n @if (!iconOnly() || !icon) {\n <span>{{ option.label }}</span>\n }\n </button>\n }\n</div>\n",
|
|
16009
16077
|
styles: [":host{display:inline-block}.flr-seg{position:relative;display:inline-flex;overflow:hidden;gap:2px;padding:3px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));border-radius:var(--radius-card, 8px);background:var(--color-app-bg-2, #f1f5f9)}.flr-seg__thumb{position:absolute;top:3px;bottom:3px;left:0;box-sizing:border-box;border:1px solid var(--color-ink-3, #5d6b80);border-radius:var(--radius-control, 4px);background:var(--color-card, #ffffff);box-shadow:0 1px 2px #1e293b1f;pointer-events:none}.flr-seg__thumb[hidden]{display:none}.flr-seg__thumb--animated{transition:transform .26s cubic-bezier(.3,0,0,1),width .26s cubic-bezier(.3,0,0,1)}@media(prefers-reduced-motion:reduce){.flr-seg__thumb--animated{transition:none}}.flr-seg__option{position:relative;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:0;border-radius:var(--radius-control, 4px);background:transparent;color:var(--color-ink-3, #64748b);font:inherit;font-size:13px;cursor:pointer;transition:color .12s ease,background-color .12s ease}.flr-seg__option:hover{color:var(--color-ink, #1e293b)}.flr-seg__option:focus-visible{outline:2px solid var(--color-accent, currentColor);outline-offset:-2px}.flr-seg__option--selected{color:var(--color-ink, #1e293b)}.flr-seg__option--icon-only{width:30px;padding:0;justify-content:center}.flr-seg__icon{display:inline-flex}.flr-seg__icon ::ng-deep svg{width:16px;height:16px}\n"]
|
|
16010
16078
|
}]
|
|
16011
16079
|
}],
|
|
@@ -16046,6 +16114,22 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
16046
16114
|
required: false
|
|
16047
16115
|
}]
|
|
16048
16116
|
}],
|
|
16117
|
+
ariaLabelledby: [{
|
|
16118
|
+
type: i0.Input,
|
|
16119
|
+
args: [{
|
|
16120
|
+
isSignal: true,
|
|
16121
|
+
alias: "aria-labelledby",
|
|
16122
|
+
required: false
|
|
16123
|
+
}]
|
|
16124
|
+
}],
|
|
16125
|
+
ariaDescribedby: [{
|
|
16126
|
+
type: i0.Input,
|
|
16127
|
+
args: [{
|
|
16128
|
+
isSignal: true,
|
|
16129
|
+
alias: "aria-describedby",
|
|
16130
|
+
required: false
|
|
16131
|
+
}]
|
|
16132
|
+
}],
|
|
16049
16133
|
group: [{
|
|
16050
16134
|
type: i0.ViewChild,
|
|
16051
16135
|
args: ["group", { isSignal: true }]
|
|
@@ -16918,7 +17002,8 @@ var ContactFormComponent = class ContactFormComponent {
|
|
|
16918
17002
|
"error",
|
|
16919
17003
|
"required",
|
|
16920
17004
|
"optional",
|
|
16921
|
-
"optionalLabel"
|
|
17005
|
+
"optionalLabel",
|
|
17006
|
+
"group"
|
|
16922
17007
|
],
|
|
16923
17008
|
exportAs: ["flrField"]
|
|
16924
17009
|
},
|