@ferrlabs/ui-ng 1.58.1 → 1.60.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.
@@ -1258,6 +1258,66 @@ i0.ɵɵngDeclareClassMetadata({
1258
1258
  }]
1259
1259
  }
1260
1260
  });
1261
+ var CopyIconComponent = class CopyIconComponent {
1262
+ constructor() {
1263
+ this.copied = input(false, ...ngDevMode ? [{ debugName: "copied" }] : /* istanbul ignore next */ []);
1264
+ }
1265
+ static {
1266
+ this.ɵfac = i0.ɵɵngDeclareFactory({
1267
+ minVersion: "12.0.0",
1268
+ version: "22.2.6",
1269
+ ngImport: i0,
1270
+ type: CopyIconComponent,
1271
+ deps: [],
1272
+ target: i0.ɵɵFactoryTarget.Component
1273
+ });
1274
+ }
1275
+ static {
1276
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
1277
+ minVersion: "17.1.0",
1278
+ version: "22.2.6",
1279
+ type: CopyIconComponent,
1280
+ isStandalone: true,
1281
+ selector: "flr-copy-icon",
1282
+ inputs: { copied: {
1283
+ classPropertyName: "copied",
1284
+ publicName: "copied",
1285
+ isSignal: true,
1286
+ isRequired: false,
1287
+ transformFunction: null
1288
+ } },
1289
+ host: { properties: { "class.flr-copy-icon--copied": "copied()" } },
1290
+ ngImport: i0,
1291
+ template: "<svg\n class=\"flr-copy-icon\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.75\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n focusable=\"false\"\n>\n <g class=\"flr-copy-icon__sheets\">\n <rect x=\"8.5\" y=\"8.5\" width=\"12\" height=\"12\" rx=\"2\" />\n <path d=\"M15.5 8.5V5.5a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h3\" />\n </g>\n <path class=\"flr-copy-icon__check\" pathLength=\"1\" d=\"M4.5 12.5l5 5 10-11\" />\n</svg>\n",
1292
+ styles: [":host{display:inline-flex;width:1em;height:1em;flex:none}.flr-copy-icon{width:100%;height:100%;overflow:visible}.flr-copy-icon__sheets{transform-box:fill-box;transform-origin:center;transition:opacity .16s ease,transform .22s cubic-bezier(.4,0,.2,1)}.flr-copy-icon__check{stroke-dasharray:1 1;stroke-dashoffset:1;transform-box:fill-box;transform-origin:center;opacity:0}:host(.flr-copy-icon--copied) .flr-copy-icon__sheets{opacity:0;transform:scale(.6) rotate(-12deg)}:host(.flr-copy-icon--copied) .flr-copy-icon__check{opacity:1;animation:flr-copy-icon-draw .38s 90ms cubic-bezier(.65,0,.35,1) both,flr-copy-icon-pop .42s .3s cubic-bezier(.34,1.56,.64,1) both}@keyframes flr-copy-icon-draw{0%{stroke-dashoffset:1}to{stroke-dashoffset:0}}@keyframes flr-copy-icon-pop{0%,to{transform:scale(1)}45%{transform:scale(1.25)}}@media(prefers-reduced-motion:reduce){.flr-copy-icon__sheets{transition:none}:host(.flr-copy-icon--copied) .flr-copy-icon__sheets{transform:none}:host(.flr-copy-icon--copied) .flr-copy-icon__check{stroke-dashoffset:0;animation:none}}\n"],
1293
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
1294
+ });
1295
+ }
1296
+ };
1297
+ i0.ɵɵngDeclareClassMetadata({
1298
+ minVersion: "12.0.0",
1299
+ version: "22.2.6",
1300
+ ngImport: i0,
1301
+ type: CopyIconComponent,
1302
+ decorators: [{
1303
+ type: Component,
1304
+ args: [{
1305
+ selector: "flr-copy-icon",
1306
+ changeDetection: ChangeDetectionStrategy.OnPush,
1307
+ host: { "[class.flr-copy-icon--copied]": "copied()" },
1308
+ template: "<svg\n class=\"flr-copy-icon\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.75\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n focusable=\"false\"\n>\n <g class=\"flr-copy-icon__sheets\">\n <rect x=\"8.5\" y=\"8.5\" width=\"12\" height=\"12\" rx=\"2\" />\n <path d=\"M15.5 8.5V5.5a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h3\" />\n </g>\n <path class=\"flr-copy-icon__check\" pathLength=\"1\" d=\"M4.5 12.5l5 5 10-11\" />\n</svg>\n",
1309
+ styles: [":host{display:inline-flex;width:1em;height:1em;flex:none}.flr-copy-icon{width:100%;height:100%;overflow:visible}.flr-copy-icon__sheets{transform-box:fill-box;transform-origin:center;transition:opacity .16s ease,transform .22s cubic-bezier(.4,0,.2,1)}.flr-copy-icon__check{stroke-dasharray:1 1;stroke-dashoffset:1;transform-box:fill-box;transform-origin:center;opacity:0}:host(.flr-copy-icon--copied) .flr-copy-icon__sheets{opacity:0;transform:scale(.6) rotate(-12deg)}:host(.flr-copy-icon--copied) .flr-copy-icon__check{opacity:1;animation:flr-copy-icon-draw .38s 90ms cubic-bezier(.65,0,.35,1) both,flr-copy-icon-pop .42s .3s cubic-bezier(.34,1.56,.64,1) both}@keyframes flr-copy-icon-draw{0%{stroke-dashoffset:1}to{stroke-dashoffset:0}}@keyframes flr-copy-icon-pop{0%,to{transform:scale(1)}45%{transform:scale(1.25)}}@media(prefers-reduced-motion:reduce){.flr-copy-icon__sheets{transition:none}:host(.flr-copy-icon--copied) .flr-copy-icon__sheets{transform:none}:host(.flr-copy-icon--copied) .flr-copy-icon__check{stroke-dashoffset:0;animation:none}}\n"]
1310
+ }]
1311
+ }],
1312
+ propDecorators: { copied: [{
1313
+ type: i0.Input,
1314
+ args: [{
1315
+ isSignal: true,
1316
+ alias: "copied",
1317
+ required: false
1318
+ }]
1319
+ }] }
1320
+ });
1261
1321
  const SIZE$5 = {
1262
1322
  xs: {
1263
1323
  box: "12px",
@@ -4123,6 +4183,23 @@ i0.ɵɵngDeclareClassMetadata({
4123
4183
  }]
4124
4184
  }
4125
4185
  });
4186
+ function fieldIds(sequence) {
4187
+ const fieldId = `flr-field-${sequence}`;
4188
+ return {
4189
+ fieldId,
4190
+ labelId: `${fieldId}-label`,
4191
+ hintId: `${fieldId}-hint`,
4192
+ errorId: `${fieldId}-error`
4193
+ };
4194
+ }
4195
+ function labelForTarget(group, ids) {
4196
+ return group ? null : ids.fieldId;
4197
+ }
4198
+ function mergeDescribedBy(existing, ownedIds, activeId) {
4199
+ const tokens = (existing ?? "").split(/\s+/).filter((token) => token !== "" && !ownedIds.includes(token));
4200
+ if (activeId) tokens.push(activeId);
4201
+ return tokens.length > 0 ? tokens.join(" ") : null;
4202
+ }
4126
4203
  let fieldCounter = 0;
4127
4204
  var FieldComponent = class FieldComponent {
4128
4205
  constructor() {
@@ -4132,10 +4209,14 @@ var FieldComponent = class FieldComponent {
4132
4209
  this.required = input(false, ...ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []);
4133
4210
  this.optional = input(false, ...ngDevMode ? [{ debugName: "optional" }] : /* istanbul ignore next */ []);
4134
4211
  this.optionalLabel = input("optional", ...ngDevMode ? [{ debugName: "optionalLabel" }] : /* istanbul ignore next */ []);
4212
+ this.group = input(false, ...ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []);
4135
4213
  this.host = inject(ElementRef);
4136
- this.fieldId = `flr-field-${++fieldCounter}`;
4137
- this.hintId = `${this.fieldId}-hint`;
4138
- this.errorId = `${this.fieldId}-error`;
4214
+ this.ids = fieldIds(++fieldCounter);
4215
+ this.fieldId = this.ids.fieldId;
4216
+ this.labelId = this.ids.labelId;
4217
+ this.hintId = this.ids.hintId;
4218
+ this.errorId = this.ids.errorId;
4219
+ this.labelFor = computed(() => labelForTarget(this.group(), this.ids), ...ngDevMode ? [{ debugName: "labelFor" }] : /* istanbul ignore next */ []);
4139
4220
  this.describedBy = computed(() => {
4140
4221
  if (this.error()) return this.errorId;
4141
4222
  if (this.hint()) return this.hintId;
@@ -4146,13 +4227,13 @@ var FieldComponent = class FieldComponent {
4146
4227
  return error != null && error !== "";
4147
4228
  }, ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
4148
4229
  afterRenderEffect(() => {
4230
+ if (this.group()) return;
4149
4231
  const describedBy = this.describedBy();
4150
4232
  const control = this.host.nativeElement.querySelector("input, textarea, select");
4151
4233
  if (!control) return;
4152
4234
  if (!control.id) control.id = this.fieldId;
4153
- const tokens = (control.getAttribute("aria-describedby") ?? "").split(/\s+/).filter((token) => token !== "" && token !== this.hintId && token !== this.errorId);
4154
- if (describedBy) tokens.push(describedBy);
4155
- if (tokens.length > 0) control.setAttribute("aria-describedby", tokens.join(" "));
4235
+ const merged = mergeDescribedBy(control.getAttribute("aria-describedby"), [this.hintId, this.errorId], describedBy);
4236
+ if (merged) control.setAttribute("aria-describedby", merged);
4156
4237
  else control.removeAttribute("aria-describedby");
4157
4238
  });
4158
4239
  }
@@ -4215,34 +4296,29 @@ var FieldComponent = class FieldComponent {
4215
4296
  isSignal: true,
4216
4297
  isRequired: false,
4217
4298
  transformFunction: null
4299
+ },
4300
+ group: {
4301
+ classPropertyName: "group",
4302
+ publicName: "group",
4303
+ isSignal: true,
4304
+ isRequired: false,
4305
+ transformFunction: null
4218
4306
  }
4219
4307
  },
4220
4308
  exportAs: ["flrField"],
4221
4309
  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,
4310
+ 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
4311
  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"],
4312
+ dependencies: [{
4313
+ kind: "directive",
4314
+ type: NgTemplateOutlet,
4315
+ selector: "[ngTemplateOutlet]",
4316
+ inputs: [
4317
+ "ngTemplateOutletContext",
4318
+ "ngTemplateOutlet",
4319
+ "ngTemplateOutletInjector"
4320
+ ]
4321
+ }],
4246
4322
  changeDetection: i0.ChangeDetectionStrategy.OnPush
4247
4323
  });
4248
4324
  }
@@ -4257,29 +4333,9 @@ i0.ɵɵngDeclareClassMetadata({
4257
4333
  args: [{
4258
4334
  selector: "flr-field",
4259
4335
  exportAs: "flrField",
4336
+ imports: [NgTemplateOutlet],
4260
4337
  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
- `,
4338
+ 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
4339
  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
4340
  }]
4285
4341
  }],
@@ -4332,6 +4388,14 @@ i0.ɵɵngDeclareClassMetadata({
4332
4388
  alias: "optionalLabel",
4333
4389
  required: false
4334
4390
  }]
4391
+ }],
4392
+ group: [{
4393
+ type: i0.Input,
4394
+ args: [{
4395
+ isSignal: true,
4396
+ alias: "group",
4397
+ required: false
4398
+ }]
4335
4399
  }]
4336
4400
  }
4337
4401
  });
@@ -7147,6 +7211,14 @@ var RadioGroupComponent = class RadioGroupComponent {
7147
7211
  ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
7148
7212
  alias: "aria-label"
7149
7213
  });
7214
+ this.ariaLabelledby = input(null, {
7215
+ ...ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {},
7216
+ alias: "aria-labelledby"
7217
+ });
7218
+ this.ariaDescribedby = input(null, {
7219
+ ...ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {},
7220
+ alias: "aria-describedby"
7221
+ });
7150
7222
  this.name = input(`flr-radio-${++radioGroupCounter}`, ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
7151
7223
  this.value = signal(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
7152
7224
  this.disabled = signal(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
@@ -7202,6 +7274,20 @@ var RadioGroupComponent = class RadioGroupComponent {
7202
7274
  isRequired: false,
7203
7275
  transformFunction: null
7204
7276
  },
7277
+ ariaLabelledby: {
7278
+ classPropertyName: "ariaLabelledby",
7279
+ publicName: "aria-labelledby",
7280
+ isSignal: true,
7281
+ isRequired: false,
7282
+ transformFunction: null
7283
+ },
7284
+ ariaDescribedby: {
7285
+ classPropertyName: "ariaDescribedby",
7286
+ publicName: "aria-describedby",
7287
+ isSignal: true,
7288
+ isRequired: false,
7289
+ transformFunction: null
7290
+ },
7205
7291
  name: {
7206
7292
  classPropertyName: "name",
7207
7293
  publicName: "name",
@@ -7222,6 +7308,8 @@ var RadioGroupComponent = class RadioGroupComponent {
7222
7308
  class="flr-radio-group"
7223
7309
  role="radiogroup"
7224
7310
  [attr.aria-label]="ariaLabel()"
7311
+ [attr.aria-labelledby]="ariaLabelledby()"
7312
+ [attr.aria-describedby]="ariaDescribedby()"
7225
7313
  [class.flr-radio-group--horizontal]="orientation() === 'horizontal'"
7226
7314
  >
7227
7315
  <ng-content />
@@ -7254,6 +7342,8 @@ i0.ɵɵngDeclareClassMetadata({
7254
7342
  class="flr-radio-group"
7255
7343
  role="radiogroup"
7256
7344
  [attr.aria-label]="ariaLabel()"
7345
+ [attr.aria-labelledby]="ariaLabelledby()"
7346
+ [attr.aria-describedby]="ariaDescribedby()"
7257
7347
  [class.flr-radio-group--horizontal]="orientation() === 'horizontal'"
7258
7348
  >
7259
7349
  <ng-content />
@@ -7279,6 +7369,22 @@ i0.ɵɵngDeclareClassMetadata({
7279
7369
  required: false
7280
7370
  }]
7281
7371
  }],
7372
+ ariaLabelledby: [{
7373
+ type: i0.Input,
7374
+ args: [{
7375
+ isSignal: true,
7376
+ alias: "aria-labelledby",
7377
+ required: false
7378
+ }]
7379
+ }],
7380
+ ariaDescribedby: [{
7381
+ type: i0.Input,
7382
+ args: [{
7383
+ isSignal: true,
7384
+ alias: "aria-describedby",
7385
+ required: false
7386
+ }]
7387
+ }],
7282
7388
  name: [{
7283
7389
  type: i0.Input,
7284
7390
  args: [{
@@ -15877,6 +15983,14 @@ var SegmentedComponent = class SegmentedComponent {
15877
15983
  ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
15878
15984
  alias: "aria-label"
15879
15985
  });
15986
+ this.ariaLabelledby = input(null, {
15987
+ ...ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {},
15988
+ alias: "aria-labelledby"
15989
+ });
15990
+ this.ariaDescribedby = input(null, {
15991
+ ...ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {},
15992
+ alias: "aria-describedby"
15993
+ });
15880
15994
  this.group = viewChild.required("group", ...ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []);
15881
15995
  this.thumb = viewChild.required("thumb", ...ngDevMode ? [{ debugName: "thumb" }] : /* istanbul ignore next */ []);
15882
15996
  this.buttons = viewChildren("optionButton", ...ngDevMode ? [{ debugName: "buttons" }] : /* istanbul ignore next */ []);
@@ -15963,6 +16077,20 @@ var SegmentedComponent = class SegmentedComponent {
15963
16077
  isSignal: true,
15964
16078
  isRequired: false,
15965
16079
  transformFunction: null
16080
+ },
16081
+ ariaLabelledby: {
16082
+ classPropertyName: "ariaLabelledby",
16083
+ publicName: "aria-labelledby",
16084
+ isSignal: true,
16085
+ isRequired: false,
16086
+ transformFunction: null
16087
+ },
16088
+ ariaDescribedby: {
16089
+ classPropertyName: "ariaDescribedby",
16090
+ publicName: "aria-describedby",
16091
+ isSignal: true,
16092
+ isRequired: false,
16093
+ transformFunction: null
15966
16094
  }
15967
16095
  },
15968
16096
  outputs: { value: "valueChange" },
@@ -15989,7 +16117,7 @@ var SegmentedComponent = class SegmentedComponent {
15989
16117
  }
15990
16118
  ],
15991
16119
  ngImport: i0,
15992
- template: "<div #group class=\"flr-seg\" role=\"radiogroup\" [attr.aria-label]=\"ariaLabel()\">\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",
16120
+ 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
16121
  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
16122
  changeDetection: i0.ChangeDetectionStrategy.OnPush
15995
16123
  });
@@ -16005,7 +16133,7 @@ i0.ɵɵngDeclareClassMetadata({
16005
16133
  args: [{
16006
16134
  selector: "flr-segmented",
16007
16135
  changeDetection: ChangeDetectionStrategy.OnPush,
16008
- template: "<div #group class=\"flr-seg\" role=\"radiogroup\" [attr.aria-label]=\"ariaLabel()\">\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",
16136
+ 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
16137
  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
16138
  }]
16011
16139
  }],
@@ -16046,6 +16174,22 @@ i0.ɵɵngDeclareClassMetadata({
16046
16174
  required: false
16047
16175
  }]
16048
16176
  }],
16177
+ ariaLabelledby: [{
16178
+ type: i0.Input,
16179
+ args: [{
16180
+ isSignal: true,
16181
+ alias: "aria-labelledby",
16182
+ required: false
16183
+ }]
16184
+ }],
16185
+ ariaDescribedby: [{
16186
+ type: i0.Input,
16187
+ args: [{
16188
+ isSignal: true,
16189
+ alias: "aria-describedby",
16190
+ required: false
16191
+ }]
16192
+ }],
16049
16193
  group: [{
16050
16194
  type: i0.ViewChild,
16051
16195
  args: ["group", { isSignal: true }]
@@ -16918,7 +17062,8 @@ var ContactFormComponent = class ContactFormComponent {
16918
17062
  "error",
16919
17063
  "required",
16920
17064
  "optional",
16921
- "optionalLabel"
17065
+ "optionalLabel",
17066
+ "group"
16922
17067
  ],
16923
17068
  exportAs: ["flrField"]
16924
17069
  },
@@ -18438,6 +18583,6 @@ i0.ɵɵngDeclareClassMetadata({
18438
18583
  }]
18439
18584
  }
18440
18585
  });
18441
- export { ACCESS_PICKER_LABELS_EN, ACCESS_PICKER_LABELS_FR, ALL_SITE_LOCALES, AccessPickerComponent, AnnotatedTextareaComponent, AppRailComponent, AppSwitcherComponent, AvatarComponent, BannerComponent, BarChartComponent, BrandDropdownComponent, ButtonComponent, CONTACT_FORM_LABELS_EN, CONTACT_FORM_LABELS_FR, CONTACT_KINDS, CONTACT_PRODUCTS, CardComponent, CardHeaderComponent, CheckboxComponent, ComboboxComponent, ComparisonTableComponent, ConnectionCardComponent, ContactFormComponent, ContainerComponent, DEFAULT_APPS, DEFAULT_LOCALE, DEFAULT_PAGE_SIZE, DEFAULT_PAGINATION_LABELS, DividerComponent, DrawerComponent, EmptyStateComponent, ErrorStateComponent, FieldComponent, InputComponent, LOCALE_CATALOG, LoadingStateComponent, LogoMarkComponent, MenuComponent, MenuItemComponent, MenuLabelComponent, MenuSeparatorComponent, ModalComponent, MultiSelectComponent, PageHeaderComponent, PaginationComponent, ProgressBarComponent, ProjectSwitcherComponent, RadioComponent, RadioGroupComponent, RailToggleComponent, SHELL_CONTEXT, SITE_CHROME, SITE_LOCALES, SearchFieldComponent, SectionComponent, SegmentedComponent, SelectComponent, ShellComponent, SidebarComponent, SidebarItemComponent, SidebarSectionComponent, SiteCardComponent, SiteFooterComponent, SiteLocaleBannerComponent, SiteLocalePickerComponent, SiteNavbarComponent, SiteShellComponent, SiteSwitcherComponent, SkeletonComponent, SpinnerComponent, SplitterComponent, SplitterPaneComponent, StatComponent, StatusBarsComponent, SubmitComponent, SwitchComponent, TabComponent, TabsComponent, TagComponent, TextareaComponent, ToastContainerComponent, ToastService, TreeSelectComponent, UserMenuComponent, WAITLIST_FORM_LABELS_EN, WAITLIST_FORM_LABELS_FR, WaitlistFormComponent, accountUrl, brandApps, entitledApps, hiddenAppsFromPreferences, injectSitePath, isSiteLocale, localeBase, localeEntry, localeSwitchHref, marketingUrl, matchSiteLocale, orgCreateUrl, paged, provideSiteChrome, readContactPrefill, readRuntimeEnv, resolveLocale, resolveSiteLocale, runtimeUrl, siteLocales, stripLocalePrefix, switcherState, toLocaleOptions, userMenuItems, withHiddenApps, withLocaleBase };
18586
+ export { ACCESS_PICKER_LABELS_EN, ACCESS_PICKER_LABELS_FR, ALL_SITE_LOCALES, AccessPickerComponent, AnnotatedTextareaComponent, AppRailComponent, AppSwitcherComponent, AvatarComponent, BannerComponent, BarChartComponent, BrandDropdownComponent, ButtonComponent, CONTACT_FORM_LABELS_EN, CONTACT_FORM_LABELS_FR, CONTACT_KINDS, CONTACT_PRODUCTS, CardComponent, CardHeaderComponent, CheckboxComponent, ComboboxComponent, ComparisonTableComponent, ConnectionCardComponent, ContactFormComponent, ContainerComponent, CopyIconComponent, DEFAULT_APPS, DEFAULT_LOCALE, DEFAULT_PAGE_SIZE, DEFAULT_PAGINATION_LABELS, DividerComponent, DrawerComponent, EmptyStateComponent, ErrorStateComponent, FieldComponent, InputComponent, LOCALE_CATALOG, LoadingStateComponent, LogoMarkComponent, MenuComponent, MenuItemComponent, MenuLabelComponent, MenuSeparatorComponent, ModalComponent, MultiSelectComponent, PageHeaderComponent, PaginationComponent, ProgressBarComponent, ProjectSwitcherComponent, RadioComponent, RadioGroupComponent, RailToggleComponent, SHELL_CONTEXT, SITE_CHROME, SITE_LOCALES, SearchFieldComponent, SectionComponent, SegmentedComponent, SelectComponent, ShellComponent, SidebarComponent, SidebarItemComponent, SidebarSectionComponent, SiteCardComponent, SiteFooterComponent, SiteLocaleBannerComponent, SiteLocalePickerComponent, SiteNavbarComponent, SiteShellComponent, SiteSwitcherComponent, SkeletonComponent, SpinnerComponent, SplitterComponent, SplitterPaneComponent, StatComponent, StatusBarsComponent, SubmitComponent, SwitchComponent, TabComponent, TabsComponent, TagComponent, TextareaComponent, ToastContainerComponent, ToastService, TreeSelectComponent, UserMenuComponent, WAITLIST_FORM_LABELS_EN, WAITLIST_FORM_LABELS_FR, WaitlistFormComponent, accountUrl, brandApps, entitledApps, hiddenAppsFromPreferences, injectSitePath, isSiteLocale, localeBase, localeEntry, localeSwitchHref, marketingUrl, matchSiteLocale, orgCreateUrl, paged, provideSiteChrome, readContactPrefill, readRuntimeEnv, resolveLocale, resolveSiteLocale, runtimeUrl, siteLocales, stripLocalePrefix, switcherState, toLocaleOptions, userMenuItems, withHiddenApps, withLocaleBase };
18442
18587
 
18443
18588
  //# sourceMappingURL=ferrlabs-ui-ng.mjs.map