@su-labs/fields 20.2.0 → 21.2.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.
package/README.md CHANGED
@@ -16,10 +16,10 @@ Every animation stops for visitors who ask their device for less motion.
16
16
  ## Installation
17
17
 
18
18
  ```bash
19
- npm install @su-labs/fields@ng20
19
+ npm install @su-labs/fields@ng21
20
20
  ```
21
21
 
22
- This is the Angular 20 version. For the newest Angular, install `@su-labs/fields` without a tag.
22
+ This is the Angular 21 version. For the newest Angular, install `@su-labs/fields` without a tag.
23
23
 
24
24
  ## Code boxes
25
25
 
@@ -6,12 +6,12 @@ import { model, input, computed, ChangeDetectionStrategy, Component, signal, eff
6
6
  * One real text field lies over the boxes, so typing, pasting, the phone keyboard and screen readers all work as usual.
7
7
  */
8
8
  class SuCodeBoxesComponent {
9
- value = model('', ...(ngDevMode ? [{ debugName: "value" }] : []));
10
- length = input.required(...(ngDevMode ? [{ debugName: "length" }] : []));
11
- label = input.required(...(ngDevMode ? [{ debugName: "label" }] : []));
9
+ value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
10
+ length = input.required(...(ngDevMode ? [{ debugName: "length" }] : /* istanbul ignore next */ []));
11
+ label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
12
12
  /** The code is whole and well-formed: the boxes turn green */
13
- complete = input(false, ...(ngDevMode ? [{ debugName: "complete" }] : []));
14
- boxes = computed(() => Array.from({ length: this.length() }, (_, index) => index), ...(ngDevMode ? [{ debugName: "boxes" }] : []));
13
+ complete = input(false, ...(ngDevMode ? [{ debugName: "complete" }] : /* istanbul ignore next */ []));
14
+ boxes = computed(() => Array.from({ length: this.length() }, (_, index) => index), ...(ngDevMode ? [{ debugName: "boxes" }] : /* istanbul ignore next */ []));
15
15
  /** Capitals without spaces, never longer than the boxes */
16
16
  onInput(field) {
17
17
  const code = field.value
@@ -21,10 +21,10 @@ class SuCodeBoxesComponent {
21
21
  field.value = code;
22
22
  this.value.set(code);
23
23
  }
24
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: SuCodeBoxesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
25
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.35", type: SuCodeBoxesComponent, isStandalone: true, selector: "su-lib-code-boxes", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, complete: { classPropertyName: "complete", publicName: "complete", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, ngImport: i0, template: "<input\n #field\n class=\"field\"\n type=\"text\"\n inputmode=\"text\"\n autocomplete=\"off\"\n autocapitalize=\"characters\"\n spellcheck=\"false\"\n required\n [attr.maxlength]=\"length()\"\n [attr.aria-label]=\"label()\"\n [value]=\"value()\"\n (input)=\"onInput(field)\"\n/>\n<span class=\"boxes\" [class.is-complete]=\"complete()\" aria-hidden=\"true\">\n @for (index of boxes(); track index) {\n <span\n class=\"box\"\n [class.is-filled]=\"index < value().length\"\n [class.is-current]=\"index === value().length\"\n [style.--index]=\"index\"\n >{{ value()[index] }}</span\n >\n }\n</span>\n", styles: [":host{display:block;position:relative;width:fit-content}.field{background:transparent;border:0;caret-color:transparent;color:transparent;cursor:text;font-size:1rem;inset:0;opacity:.01;position:absolute;width:100%;z-index:1}.boxes{display:flex;gap:.5rem}.box{align-items:center;background:var(--su-field-surface, transparent);border:1px solid var(--su-field-border, rgba(127, 127, 127, .4));border-radius:.5rem;color:var(--su-field-text, currentColor);display:flex;font-family:var(--su-field-font-mono, monospace);font-size:1.375rem;height:3rem;justify-content:center;transition:border-color .2s ease,background-color .2s ease,color .2s ease;width:2.5rem}.box.is-filled{animation:box-pop .22s cubic-bezier(.34,1.56,.64,1);border-color:var(--su-field-filled-border, currentColor)}.field:focus-visible+.boxes .box.is-current,.field:focus+.boxes .box.is-current{border-color:var(--su-field-accent, #3b82f6);box-shadow:0 0 0 3px color-mix(in srgb,var(--su-field-accent, #3b82f6) 25%,transparent)}.boxes.is-complete .box{animation:box-done .36s ease calc(var(--index) * 60ms) both;background:var(--su-field-success-bg, #e6f4ea);border-color:var(--su-field-success, #2e8b57);color:var(--su-field-success, #2e8b57);transition-delay:calc(var(--index) * 60ms)}@keyframes box-pop{0%{transform:scale(.85)}}@keyframes box-done{50%{transform:translateY(-4px)}}@media(prefers-reduced-motion:reduce){.box,.boxes.is-complete .box{animation:none;transition:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
24
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: SuCodeBoxesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
25
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.26", type: SuCodeBoxesComponent, isStandalone: true, selector: "su-lib-code-boxes", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, complete: { classPropertyName: "complete", publicName: "complete", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, ngImport: i0, template: "<input\n #field\n class=\"field\"\n type=\"text\"\n inputmode=\"text\"\n autocomplete=\"off\"\n autocapitalize=\"characters\"\n spellcheck=\"false\"\n required\n [attr.maxlength]=\"length()\"\n [attr.aria-label]=\"label()\"\n [value]=\"value()\"\n (input)=\"onInput(field)\"\n/>\n<span class=\"boxes\" [class.is-complete]=\"complete()\" aria-hidden=\"true\">\n @for (index of boxes(); track index) {\n <span\n class=\"box\"\n [class.is-filled]=\"index < value().length\"\n [class.is-current]=\"index === value().length\"\n [style.--index]=\"index\"\n >{{ value()[index] }}</span\n >\n }\n</span>\n", styles: [":host{display:block;position:relative;width:fit-content}.field{background:transparent;border:0;caret-color:transparent;color:transparent;cursor:text;font-size:1rem;inset:0;opacity:.01;position:absolute;width:100%;z-index:1}.boxes{display:flex;gap:.5rem}.box{align-items:center;background:var(--su-field-surface, transparent);border:1px solid var(--su-field-border, rgba(127, 127, 127, .4));border-radius:.5rem;color:var(--su-field-text, currentColor);display:flex;font-family:var(--su-field-font-mono, monospace);font-size:1.375rem;height:3rem;justify-content:center;transition:border-color .2s ease,background-color .2s ease,color .2s ease;width:2.5rem}.box.is-filled{animation:box-pop .22s cubic-bezier(.34,1.56,.64,1);border-color:var(--su-field-filled-border, currentColor)}.field:focus-visible+.boxes .box.is-current,.field:focus+.boxes .box.is-current{border-color:var(--su-field-accent, #3b82f6);box-shadow:0 0 0 3px color-mix(in srgb,var(--su-field-accent, #3b82f6) 25%,transparent)}.boxes.is-complete .box{animation:box-done .36s ease calc(var(--index) * 60ms) both;background:var(--su-field-success-bg, #e6f4ea);border-color:var(--su-field-success, #2e8b57);color:var(--su-field-success, #2e8b57);transition-delay:calc(var(--index) * 60ms)}@keyframes box-pop{0%{transform:scale(.85)}}@keyframes box-done{50%{transform:translateY(-4px)}}@media(prefers-reduced-motion:reduce){.box,.boxes.is-complete .box{animation:none;transition:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
26
26
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: SuCodeBoxesComponent, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: SuCodeBoxesComponent, decorators: [{
28
28
  type: Component,
29
29
  args: [{ selector: 'su-lib-code-boxes', changeDetection: ChangeDetectionStrategy.OnPush, template: "<input\n #field\n class=\"field\"\n type=\"text\"\n inputmode=\"text\"\n autocomplete=\"off\"\n autocapitalize=\"characters\"\n spellcheck=\"false\"\n required\n [attr.maxlength]=\"length()\"\n [attr.aria-label]=\"label()\"\n [value]=\"value()\"\n (input)=\"onInput(field)\"\n/>\n<span class=\"boxes\" [class.is-complete]=\"complete()\" aria-hidden=\"true\">\n @for (index of boxes(); track index) {\n <span\n class=\"box\"\n [class.is-filled]=\"index < value().length\"\n [class.is-current]=\"index === value().length\"\n [style.--index]=\"index\"\n >{{ value()[index] }}</span\n >\n }\n</span>\n", styles: [":host{display:block;position:relative;width:fit-content}.field{background:transparent;border:0;caret-color:transparent;color:transparent;cursor:text;font-size:1rem;inset:0;opacity:.01;position:absolute;width:100%;z-index:1}.boxes{display:flex;gap:.5rem}.box{align-items:center;background:var(--su-field-surface, transparent);border:1px solid var(--su-field-border, rgba(127, 127, 127, .4));border-radius:.5rem;color:var(--su-field-text, currentColor);display:flex;font-family:var(--su-field-font-mono, monospace);font-size:1.375rem;height:3rem;justify-content:center;transition:border-color .2s ease,background-color .2s ease,color .2s ease;width:2.5rem}.box.is-filled{animation:box-pop .22s cubic-bezier(.34,1.56,.64,1);border-color:var(--su-field-filled-border, currentColor)}.field:focus-visible+.boxes .box.is-current,.field:focus+.boxes .box.is-current{border-color:var(--su-field-accent, #3b82f6);box-shadow:0 0 0 3px color-mix(in srgb,var(--su-field-accent, #3b82f6) 25%,transparent)}.boxes.is-complete .box{animation:box-done .36s ease calc(var(--index) * 60ms) both;background:var(--su-field-success-bg, #e6f4ea);border-color:var(--su-field-success, #2e8b57);color:var(--su-field-success, #2e8b57);transition-delay:calc(var(--index) * 60ms)}@keyframes box-pop{0%{transform:scale(.85)}}@keyframes box-done{50%{transform:translateY(-4px)}}@media(prefers-reduced-motion:reduce){.box,.boxes.is-complete .box{animation:none;transition:none}}\n"] }]
30
30
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], length: [{ type: i0.Input, args: [{ isSignal: true, alias: "length", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], complete: [{ type: i0.Input, args: [{ isSignal: true, alias: "complete", required: false }] }] } });
@@ -62,20 +62,20 @@ const suStrengthLevel = (bars) => SU_STRENGTH_LEVELS[bars - 1] ?? null;
62
62
  * Its texts come in as inputs, so it fits any language.
63
63
  */
64
64
  class SuStrengthMeterComponent {
65
- field = input.required(...(ngDevMode ? [{ debugName: "field" }] : []));
65
+ field = input.required(...(ngDevMode ? [{ debugName: "field" }] : /* istanbul ignore next */ []));
66
66
  /** The meter's name for screen readers, e.g. "Password strength" */
67
- label = input.required(...(ngDevMode ? [{ debugName: "label" }] : []));
67
+ label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
68
68
  /** The word shown for each step */
69
- levelNames = input.required(...(ngDevMode ? [{ debugName: "levelNames" }] : []));
70
- minLength = input(SU_DEFAULT_MIN_PASSWORD_LENGTH, ...(ngDevMode ? [{ debugName: "minLength" }] : []));
71
- password = signal('', ...(ngDevMode ? [{ debugName: "password" }] : []));
69
+ levelNames = input.required(...(ngDevMode ? [{ debugName: "levelNames" }] : /* istanbul ignore next */ []));
70
+ minLength = input(SU_DEFAULT_MIN_PASSWORD_LENGTH, ...(ngDevMode ? [{ debugName: "minLength" }] : /* istanbul ignore next */ []));
71
+ password = signal('', ...(ngDevMode ? [{ debugName: "password" }] : /* istanbul ignore next */ []));
72
72
  steps = SU_STRENGTH_LEVELS;
73
- bars = computed(() => suPasswordStrength(this.password(), this.minLength()), ...(ngDevMode ? [{ debugName: "bars" }] : []));
74
- level = computed(() => suStrengthLevel(this.bars()), ...(ngDevMode ? [{ debugName: "level" }] : []));
73
+ bars = computed(() => suPasswordStrength(this.password(), this.minLength()), ...(ngDevMode ? [{ debugName: "bars" }] : /* istanbul ignore next */ []));
74
+ level = computed(() => suStrengthLevel(this.bars()), ...(ngDevMode ? [{ debugName: "level" }] : /* istanbul ignore next */ []));
75
75
  levelName = computed(() => {
76
76
  const level = this.level();
77
77
  return level ? this.levelNames()[level] : null;
78
- }, ...(ngDevMode ? [{ debugName: "levelName" }] : []));
78
+ }, ...(ngDevMode ? [{ debugName: "levelName" }] : /* istanbul ignore next */ []));
79
79
  constructor() {
80
80
  effect(onCleanup => {
81
81
  const field = this.field();
@@ -85,10 +85,10 @@ class SuStrengthMeterComponent {
85
85
  onCleanup(() => field.removeEventListener('input', read));
86
86
  });
87
87
  }
88
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: SuStrengthMeterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
89
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.35", type: SuStrengthMeterComponent, isStandalone: true, selector: "su-lib-strength-meter", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, levelNames: { classPropertyName: "levelNames", publicName: "levelNames", isSignal: true, isRequired: true, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div\n class=\"bars\"\n role=\"meter\"\n [attr.aria-label]=\"label()\"\n aria-valuemin=\"0\"\n [attr.aria-valuemax]=\"steps.length\"\n [attr.aria-valuenow]=\"bars()\"\n [attr.aria-valuetext]=\"levelName()\"\n>\n @for (step of steps; track step; let index = $index) {\n <span class=\"bar\" [class.is-filled]=\"index < bars()\" [style.--index]=\"index\"></span>\n }\n</div>\n@if (levelName(); as name) {\n <small class=\"level\" [attr.data-level]=\"level()\" aria-hidden=\"true\">{{ name }}</small>\n}\n", styles: [":host{display:grid;gap:.375rem}.bars{display:grid;gap:.375rem;grid-template-columns:repeat(4,1fr)}.bar{background:var(--su-field-track, rgba(127, 127, 127, .2));border-radius:9999px;height:.3125rem;overflow:hidden;position:relative}.bar:after{background:var(--meter-colour, var(--su-field-danger, #c0392b));border-radius:inherit;content:\"\";inset:0;position:absolute;transform:scaleX(0);transform-origin:left;transition:transform .26s cubic-bezier(.34,1.56,.64,1) calc(var(--index) * 40ms),background-color .26s ease}.bar.is-filled:after{transform:scaleX(1)}:host:has(.level[data-level=fair]){--meter-colour: var(--su-field-warning, #c98a00)}:host:has(.level[data-level=good]),:host:has(.level[data-level=strong]){--meter-colour: var(--su-field-success, #2e8b57)}.level{color:var(--meter-colour, var(--su-field-danger, #c0392b));font-size:.75rem;font-weight:600;justify-self:end}@media(prefers-reduced-motion:reduce){.bar:after{transition:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
88
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: SuStrengthMeterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
89
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.26", type: SuStrengthMeterComponent, isStandalone: true, selector: "su-lib-strength-meter", inputs: { field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, levelNames: { classPropertyName: "levelNames", publicName: "levelNames", isSignal: true, isRequired: true, transformFunction: null }, minLength: { classPropertyName: "minLength", publicName: "minLength", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div\n class=\"bars\"\n role=\"meter\"\n [attr.aria-label]=\"label()\"\n aria-valuemin=\"0\"\n [attr.aria-valuemax]=\"steps.length\"\n [attr.aria-valuenow]=\"bars()\"\n [attr.aria-valuetext]=\"levelName()\"\n>\n @for (step of steps; track step; let index = $index) {\n <span class=\"bar\" [class.is-filled]=\"index < bars()\" [style.--index]=\"index\"></span>\n }\n</div>\n@if (levelName(); as name) {\n <small class=\"level\" [attr.data-level]=\"level()\" aria-hidden=\"true\">{{ name }}</small>\n}\n", styles: [":host{display:grid;gap:.375rem}.bars{display:grid;gap:.375rem;grid-template-columns:repeat(4,1fr)}.bar{background:var(--su-field-track, rgba(127, 127, 127, .2));border-radius:9999px;height:.3125rem;overflow:hidden;position:relative}.bar:after{background:var(--meter-colour, var(--su-field-danger, #c0392b));border-radius:inherit;content:\"\";inset:0;position:absolute;transform:scaleX(0);transform-origin:left;transition:transform .26s cubic-bezier(.34,1.56,.64,1) calc(var(--index) * 40ms),background-color .26s ease}.bar.is-filled:after{transform:scaleX(1)}:host:has(.level[data-level=fair]){--meter-colour: var(--su-field-warning, #c98a00)}:host:has(.level[data-level=good]),:host:has(.level[data-level=strong]){--meter-colour: var(--su-field-success, #2e8b57)}.level{color:var(--meter-colour, var(--su-field-danger, #c0392b));font-size:.75rem;font-weight:600;justify-self:end}@media(prefers-reduced-motion:reduce){.bar:after{transition:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
90
90
  }
91
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: SuStrengthMeterComponent, decorators: [{
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: SuStrengthMeterComponent, decorators: [{
92
92
  type: Component,
93
93
  args: [{ selector: 'su-lib-strength-meter', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"bars\"\n role=\"meter\"\n [attr.aria-label]=\"label()\"\n aria-valuemin=\"0\"\n [attr.aria-valuemax]=\"steps.length\"\n [attr.aria-valuenow]=\"bars()\"\n [attr.aria-valuetext]=\"levelName()\"\n>\n @for (step of steps; track step; let index = $index) {\n <span class=\"bar\" [class.is-filled]=\"index < bars()\" [style.--index]=\"index\"></span>\n }\n</div>\n@if (levelName(); as name) {\n <small class=\"level\" [attr.data-level]=\"level()\" aria-hidden=\"true\">{{ name }}</small>\n}\n", styles: [":host{display:grid;gap:.375rem}.bars{display:grid;gap:.375rem;grid-template-columns:repeat(4,1fr)}.bar{background:var(--su-field-track, rgba(127, 127, 127, .2));border-radius:9999px;height:.3125rem;overflow:hidden;position:relative}.bar:after{background:var(--meter-colour, var(--su-field-danger, #c0392b));border-radius:inherit;content:\"\";inset:0;position:absolute;transform:scaleX(0);transform-origin:left;transition:transform .26s cubic-bezier(.34,1.56,.64,1) calc(var(--index) * 40ms),background-color .26s ease}.bar.is-filled:after{transform:scaleX(1)}:host:has(.level[data-level=fair]){--meter-colour: var(--su-field-warning, #c98a00)}:host:has(.level[data-level=good]),:host:has(.level[data-level=strong]){--meter-colour: var(--su-field-success, #2e8b57)}.level{color:var(--meter-colour, var(--su-field-danger, #c0392b));font-size:.75rem;font-weight:600;justify-self:end}@media(prefers-reduced-motion:reduce){.bar:after{transition:none}}\n"] }]
94
94
  }], ctorParameters: () => [], propDecorators: { field: [{ type: i0.Input, args: [{ isSignal: true, alias: "field", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], levelNames: [{ type: i0.Input, args: [{ isSignal: true, alias: "levelNames", required: true }] }], minLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "minLength", required: false }] }] } });
@@ -100,7 +100,7 @@ const SPRING = 'height 240ms cubic-bezier(0.34, 1.56, 0.64, 1)';
100
100
  * spring (none for visitors who asked their device for less motion). `[suAutoGrow]="false"` leaves it as it is.
101
101
  */
102
102
  class SuAutoGrowDirective {
103
- isOn = input(true, ...(ngDevMode ? [{ debugName: "isOn", alias: 'suAutoGrow', transform: booleanAttribute }] : [{ alias: 'suAutoGrow', transform: booleanAttribute }]));
103
+ isOn = input(true, { ...(ngDevMode ? { debugName: "isOn" } : /* istanbul ignore next */ {}), alias: 'suAutoGrow', transform: booleanAttribute });
104
104
  box = inject(ElementRef).nativeElement;
105
105
  constructor() {
106
106
  const destroyRef = inject(DestroyRef);
@@ -128,10 +128,10 @@ class SuAutoGrowDirective {
128
128
  : SPRING;
129
129
  box.style.height = `${to}px`;
130
130
  }
131
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: SuAutoGrowDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
132
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.35", type: SuAutoGrowDirective, isStandalone: true, selector: "textarea[suAutoGrow]", inputs: { isOn: { classPropertyName: "isOn", publicName: "suAutoGrow", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "input": "fit()" } }, ngImport: i0 });
131
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: SuAutoGrowDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
132
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.26", type: SuAutoGrowDirective, isStandalone: true, selector: "textarea[suAutoGrow]", inputs: { isOn: { classPropertyName: "isOn", publicName: "suAutoGrow", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "input": "fit()" } }, ngImport: i0 });
133
133
  }
134
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: SuAutoGrowDirective, decorators: [{
134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: SuAutoGrowDirective, decorators: [{
135
135
  type: Directive,
136
136
  args: [{
137
137
  selector: 'textarea[suAutoGrow]',
@@ -147,17 +147,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImpo
147
147
  * clicks, and once no longer busy it shows `checked` again, so a change that failed to save flips back.
148
148
  */
149
149
  class SuSwitchComponent {
150
- checked = input(false, ...(ngDevMode ? [{ debugName: "checked", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
151
- disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
150
+ checked = input(false, { ...(ngDevMode ? { debugName: "checked" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
151
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
152
152
  /** Busy saving the change: clicks are ignored, and `aria-busy` is set */
153
- busy = input(false, ...(ngDevMode ? [{ debugName: "busy", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
153
+ busy = input(false, { ...(ngDevMode ? { debugName: "busy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
154
154
  /** @default 'end' */
155
- labelPosition = input('end', ...(ngDevMode ? [{ debugName: "labelPosition" }] : []));
155
+ labelPosition = input('end', ...(ngDevMode ? [{ debugName: "labelPosition" }] : /* istanbul ignore next */ []));
156
156
  /** @default 'medium' */
157
- size = input('medium', ...(ngDevMode ? [{ debugName: "size" }] : []));
157
+ size = input('medium', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
158
158
  /** Switched by the user: the new value */
159
159
  checkedChange = output();
160
- shown = linkedSignal(() => this.checked(), ...(ngDevMode ? [{ debugName: "shown" }] : []));
160
+ shown = linkedSignal(() => this.checked(), ...(ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []));
161
161
  constructor() {
162
162
  effect(() => {
163
163
  if (!this.busy()) {
@@ -176,12 +176,12 @@ class SuSwitchComponent {
176
176
  this.checkedChange.emit(event.target.checked);
177
177
  }
178
178
  }
179
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: SuSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
180
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.35", type: SuSwitchComponent, isStandalone: true, selector: "su-lib-switch", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, busy: { classPropertyName: "busy", publicName: "busy", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChange: "checkedChange" }, ngImport: i0, template: "<label class=\"su-switch su-switch-{{ size() }}\" [class.is-label-start]=\"labelPosition() === 'start'\">\n <input\n type=\"checkbox\"\n role=\"switch\"\n [checked]=\"shown()\"\n [disabled]=\"disabled()\"\n [attr.aria-busy]=\"busy() ? true : null\"\n (click)=\"onClick($event)\"\n (change)=\"onChange($event)\"\n />\n <span class=\"su-switch-track\" aria-hidden=\"true\"></span>\n <span class=\"su-switch-label\"><ng-content /></span>\n</label>\n", styles: [":host{display:block}.su-switch{align-items:center;cursor:pointer;display:inline-flex;font-weight:var(--su-switch-label-weight, 500);gap:.75rem}.su-switch input{height:1px;opacity:0;position:absolute;width:1px}.su-switch.is-label-start{display:flex;flex-direction:row-reverse;gap:1rem;justify-content:space-between;width:100%}.su-switch-label{display:grid;gap:.125rem}.is-label-start .su-switch-label{flex:1}.su-switch-label:empty{display:none}.su-switch-track{--switch-width: var(--su-switch-width, 3rem);--switch-height: var(--su-switch-height, 1.75rem);--switch-inset: .1875rem;--switch-knob: calc(var(--switch-height) - 2 * var(--switch-inset));--switch-travel: calc(var(--switch-width) - var(--switch-height));--switch-stretch: calc(var(--switch-knob) * .3);--knob-width: var(--switch-knob);--knob-move: 0rem;--knob-scale: .7;--knob-colour: var(--su-switch-knob-off, #9b9a97);background:var(--su-switch-track-off, rgba(0, 0, 0, .06));border-radius:9999px;box-shadow:inset 0 0 0 2px var(--su-switch-border, rgba(0, 0, 0, .14));flex-shrink:0;height:var(--switch-height);position:relative;transition:background-color .2s ease,box-shadow .2s ease;width:var(--switch-width)}.su-switch-small .su-switch-track{--switch-width: var(--su-switch-small-width, 2.125rem);--switch-height: var(--su-switch-small-height, 1.25rem)}.su-switch-track:after{background:var(--knob-colour);border-radius:9999px;box-shadow:0 1px 3px #00000040;content:\"\";height:var(--switch-knob);left:var(--switch-inset);position:absolute;scale:var(--knob-scale);top:var(--switch-inset);transition:translate .25s cubic-bezier(.34,1.56,.64,1),width .2s ease,scale .25s cubic-bezier(.34,1.56,.64,1),background-color .2s ease;translate:var(--knob-move) 0;width:var(--knob-width)}.su-switch-track:before{background:var(--su-switch-tick, #fff);content:\"\";height:var(--switch-knob);left:calc(var(--switch-inset) + var(--switch-travel));mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/55% no-repeat;opacity:0;position:absolute;scale:.3;top:var(--switch-inset);transition:opacity .15s ease,scale .25s cubic-bezier(.34,1.56,.64,1);width:var(--switch-knob);z-index:1}.su-switch:active input:not(:disabled)+.su-switch-track{--knob-scale: 1;--knob-width: calc(var(--switch-knob) + var(--switch-stretch))}.su-switch input:checked+.su-switch-track{--knob-move: var(--switch-travel);--knob-scale: 1;--knob-colour: var(--su-switch-on, #111);background:var(--su-switch-track-on, color-mix(in srgb, var(--su-switch-on, #111) 35%, Canvas));box-shadow:none}.su-switch input:checked+.su-switch-track:before{opacity:1;scale:1}.su-switch:active input:checked:not(:disabled)+.su-switch-track{--knob-move: calc(var(--switch-travel) - var(--switch-stretch))}.su-switch:active input:checked:not(:disabled)+.su-switch-track:before{opacity:0}.su-switch input:focus-visible+.su-switch-track{outline:var(--su-switch-focus-outline, 2px solid currentColor);outline-offset:2px}.su-switch:has(input:disabled){cursor:not-allowed}.su-switch input:disabled+.su-switch-track{opacity:.5}@media(prefers-reduced-motion:reduce){.su-switch-track,.su-switch-track:after,.su-switch-track:before{transition:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
179
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: SuSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
180
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.26", type: SuSwitchComponent, isStandalone: true, selector: "su-lib-switch", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, busy: { classPropertyName: "busy", publicName: "busy", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChange: "checkedChange" }, ngImport: i0, template: "<label class=\"su-switch su-switch-{{ size() }}\" [class.is-label-start]=\"labelPosition() === 'start'\">\n <input\n type=\"checkbox\"\n role=\"switch\"\n [checked]=\"shown()\"\n [disabled]=\"disabled()\"\n [attr.aria-busy]=\"busy() ? true : null\"\n (click)=\"onClick($event)\"\n (change)=\"onChange($event)\"\n />\n <span class=\"su-switch-track\" aria-hidden=\"true\"></span>\n <span class=\"su-switch-label\"><ng-content /></span>\n</label>\n", styles: [":host{display:block}.su-switch{align-items:center;cursor:pointer;display:inline-flex;font-weight:var(--su-switch-label-weight, 500);gap:.75rem}.su-switch input{height:1px;opacity:0;position:absolute;width:1px}.su-switch.is-label-start{display:flex;flex-direction:row-reverse;gap:1rem;justify-content:space-between;width:100%}.su-switch-label{display:grid;gap:.125rem}.is-label-start .su-switch-label{flex:1}.su-switch-label:empty{display:none}.su-switch-track{--switch-width: var(--su-switch-width, 3rem);--switch-height: var(--su-switch-height, 1.75rem);--switch-inset: .1875rem;--switch-knob: calc(var(--switch-height) - 2 * var(--switch-inset));--switch-travel: calc(var(--switch-width) - var(--switch-height));--switch-stretch: calc(var(--switch-knob) * .3);--knob-width: var(--switch-knob);--knob-move: 0rem;--knob-scale: .7;--knob-colour: var(--su-switch-knob-off, #9b9a97);background:var(--su-switch-track-off, rgba(0, 0, 0, .06));border-radius:9999px;box-shadow:inset 0 0 0 2px var(--su-switch-border, rgba(0, 0, 0, .14));flex-shrink:0;height:var(--switch-height);position:relative;transition:background-color .2s ease,box-shadow .2s ease;width:var(--switch-width)}.su-switch-small .su-switch-track{--switch-width: var(--su-switch-small-width, 2.125rem);--switch-height: var(--su-switch-small-height, 1.25rem)}.su-switch-track:after{background:var(--knob-colour);border-radius:9999px;box-shadow:0 1px 3px #00000040;content:\"\";height:var(--switch-knob);left:var(--switch-inset);position:absolute;scale:var(--knob-scale);top:var(--switch-inset);transition:translate .25s cubic-bezier(.34,1.56,.64,1),width .2s ease,scale .25s cubic-bezier(.34,1.56,.64,1),background-color .2s ease;translate:var(--knob-move) 0;width:var(--knob-width)}.su-switch-track:before{background:var(--su-switch-tick, #fff);content:\"\";height:var(--switch-knob);left:calc(var(--switch-inset) + var(--switch-travel));-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/55% no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/55% no-repeat;opacity:0;position:absolute;scale:.3;top:var(--switch-inset);transition:opacity .15s ease,scale .25s cubic-bezier(.34,1.56,.64,1);width:var(--switch-knob);z-index:1}.su-switch:active input:not(:disabled)+.su-switch-track{--knob-scale: 1;--knob-width: calc(var(--switch-knob) + var(--switch-stretch))}.su-switch input:checked+.su-switch-track{--knob-move: var(--switch-travel);--knob-scale: 1;--knob-colour: var(--su-switch-on, #111);background:var(--su-switch-track-on, color-mix(in srgb, var(--su-switch-on, #111) 35%, Canvas));box-shadow:none}.su-switch input:checked+.su-switch-track:before{opacity:1;scale:1}.su-switch:active input:checked:not(:disabled)+.su-switch-track{--knob-move: calc(var(--switch-travel) - var(--switch-stretch))}.su-switch:active input:checked:not(:disabled)+.su-switch-track:before{opacity:0}.su-switch input:focus-visible+.su-switch-track{outline:var(--su-switch-focus-outline, 2px solid currentColor);outline-offset:2px}.su-switch:has(input:disabled){cursor:not-allowed}.su-switch input:disabled+.su-switch-track{opacity:.5}@media(prefers-reduced-motion:reduce){.su-switch-track,.su-switch-track:after,.su-switch-track:before{transition:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
181
181
  }
182
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: SuSwitchComponent, decorators: [{
182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: SuSwitchComponent, decorators: [{
183
183
  type: Component,
184
- args: [{ selector: 'su-lib-switch', changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"su-switch su-switch-{{ size() }}\" [class.is-label-start]=\"labelPosition() === 'start'\">\n <input\n type=\"checkbox\"\n role=\"switch\"\n [checked]=\"shown()\"\n [disabled]=\"disabled()\"\n [attr.aria-busy]=\"busy() ? true : null\"\n (click)=\"onClick($event)\"\n (change)=\"onChange($event)\"\n />\n <span class=\"su-switch-track\" aria-hidden=\"true\"></span>\n <span class=\"su-switch-label\"><ng-content /></span>\n</label>\n", styles: [":host{display:block}.su-switch{align-items:center;cursor:pointer;display:inline-flex;font-weight:var(--su-switch-label-weight, 500);gap:.75rem}.su-switch input{height:1px;opacity:0;position:absolute;width:1px}.su-switch.is-label-start{display:flex;flex-direction:row-reverse;gap:1rem;justify-content:space-between;width:100%}.su-switch-label{display:grid;gap:.125rem}.is-label-start .su-switch-label{flex:1}.su-switch-label:empty{display:none}.su-switch-track{--switch-width: var(--su-switch-width, 3rem);--switch-height: var(--su-switch-height, 1.75rem);--switch-inset: .1875rem;--switch-knob: calc(var(--switch-height) - 2 * var(--switch-inset));--switch-travel: calc(var(--switch-width) - var(--switch-height));--switch-stretch: calc(var(--switch-knob) * .3);--knob-width: var(--switch-knob);--knob-move: 0rem;--knob-scale: .7;--knob-colour: var(--su-switch-knob-off, #9b9a97);background:var(--su-switch-track-off, rgba(0, 0, 0, .06));border-radius:9999px;box-shadow:inset 0 0 0 2px var(--su-switch-border, rgba(0, 0, 0, .14));flex-shrink:0;height:var(--switch-height);position:relative;transition:background-color .2s ease,box-shadow .2s ease;width:var(--switch-width)}.su-switch-small .su-switch-track{--switch-width: var(--su-switch-small-width, 2.125rem);--switch-height: var(--su-switch-small-height, 1.25rem)}.su-switch-track:after{background:var(--knob-colour);border-radius:9999px;box-shadow:0 1px 3px #00000040;content:\"\";height:var(--switch-knob);left:var(--switch-inset);position:absolute;scale:var(--knob-scale);top:var(--switch-inset);transition:translate .25s cubic-bezier(.34,1.56,.64,1),width .2s ease,scale .25s cubic-bezier(.34,1.56,.64,1),background-color .2s ease;translate:var(--knob-move) 0;width:var(--knob-width)}.su-switch-track:before{background:var(--su-switch-tick, #fff);content:\"\";height:var(--switch-knob);left:calc(var(--switch-inset) + var(--switch-travel));mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/55% no-repeat;opacity:0;position:absolute;scale:.3;top:var(--switch-inset);transition:opacity .15s ease,scale .25s cubic-bezier(.34,1.56,.64,1);width:var(--switch-knob);z-index:1}.su-switch:active input:not(:disabled)+.su-switch-track{--knob-scale: 1;--knob-width: calc(var(--switch-knob) + var(--switch-stretch))}.su-switch input:checked+.su-switch-track{--knob-move: var(--switch-travel);--knob-scale: 1;--knob-colour: var(--su-switch-on, #111);background:var(--su-switch-track-on, color-mix(in srgb, var(--su-switch-on, #111) 35%, Canvas));box-shadow:none}.su-switch input:checked+.su-switch-track:before{opacity:1;scale:1}.su-switch:active input:checked:not(:disabled)+.su-switch-track{--knob-move: calc(var(--switch-travel) - var(--switch-stretch))}.su-switch:active input:checked:not(:disabled)+.su-switch-track:before{opacity:0}.su-switch input:focus-visible+.su-switch-track{outline:var(--su-switch-focus-outline, 2px solid currentColor);outline-offset:2px}.su-switch:has(input:disabled){cursor:not-allowed}.su-switch input:disabled+.su-switch-track{opacity:.5}@media(prefers-reduced-motion:reduce){.su-switch-track,.su-switch-track:after,.su-switch-track:before{transition:none}}\n"] }]
184
+ args: [{ selector: 'su-lib-switch', changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"su-switch su-switch-{{ size() }}\" [class.is-label-start]=\"labelPosition() === 'start'\">\n <input\n type=\"checkbox\"\n role=\"switch\"\n [checked]=\"shown()\"\n [disabled]=\"disabled()\"\n [attr.aria-busy]=\"busy() ? true : null\"\n (click)=\"onClick($event)\"\n (change)=\"onChange($event)\"\n />\n <span class=\"su-switch-track\" aria-hidden=\"true\"></span>\n <span class=\"su-switch-label\"><ng-content /></span>\n</label>\n", styles: [":host{display:block}.su-switch{align-items:center;cursor:pointer;display:inline-flex;font-weight:var(--su-switch-label-weight, 500);gap:.75rem}.su-switch input{height:1px;opacity:0;position:absolute;width:1px}.su-switch.is-label-start{display:flex;flex-direction:row-reverse;gap:1rem;justify-content:space-between;width:100%}.su-switch-label{display:grid;gap:.125rem}.is-label-start .su-switch-label{flex:1}.su-switch-label:empty{display:none}.su-switch-track{--switch-width: var(--su-switch-width, 3rem);--switch-height: var(--su-switch-height, 1.75rem);--switch-inset: .1875rem;--switch-knob: calc(var(--switch-height) - 2 * var(--switch-inset));--switch-travel: calc(var(--switch-width) - var(--switch-height));--switch-stretch: calc(var(--switch-knob) * .3);--knob-width: var(--switch-knob);--knob-move: 0rem;--knob-scale: .7;--knob-colour: var(--su-switch-knob-off, #9b9a97);background:var(--su-switch-track-off, rgba(0, 0, 0, .06));border-radius:9999px;box-shadow:inset 0 0 0 2px var(--su-switch-border, rgba(0, 0, 0, .14));flex-shrink:0;height:var(--switch-height);position:relative;transition:background-color .2s ease,box-shadow .2s ease;width:var(--switch-width)}.su-switch-small .su-switch-track{--switch-width: var(--su-switch-small-width, 2.125rem);--switch-height: var(--su-switch-small-height, 1.25rem)}.su-switch-track:after{background:var(--knob-colour);border-radius:9999px;box-shadow:0 1px 3px #00000040;content:\"\";height:var(--switch-knob);left:var(--switch-inset);position:absolute;scale:var(--knob-scale);top:var(--switch-inset);transition:translate .25s cubic-bezier(.34,1.56,.64,1),width .2s ease,scale .25s cubic-bezier(.34,1.56,.64,1),background-color .2s ease;translate:var(--knob-move) 0;width:var(--knob-width)}.su-switch-track:before{background:var(--su-switch-tick, #fff);content:\"\";height:var(--switch-knob);left:calc(var(--switch-inset) + var(--switch-travel));-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/55% no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/55% no-repeat;opacity:0;position:absolute;scale:.3;top:var(--switch-inset);transition:opacity .15s ease,scale .25s cubic-bezier(.34,1.56,.64,1);width:var(--switch-knob);z-index:1}.su-switch:active input:not(:disabled)+.su-switch-track{--knob-scale: 1;--knob-width: calc(var(--switch-knob) + var(--switch-stretch))}.su-switch input:checked+.su-switch-track{--knob-move: var(--switch-travel);--knob-scale: 1;--knob-colour: var(--su-switch-on, #111);background:var(--su-switch-track-on, color-mix(in srgb, var(--su-switch-on, #111) 35%, Canvas));box-shadow:none}.su-switch input:checked+.su-switch-track:before{opacity:1;scale:1}.su-switch:active input:checked:not(:disabled)+.su-switch-track{--knob-move: calc(var(--switch-travel) - var(--switch-stretch))}.su-switch:active input:checked:not(:disabled)+.su-switch-track:before{opacity:0}.su-switch input:focus-visible+.su-switch-track{outline:var(--su-switch-focus-outline, 2px solid currentColor);outline-offset:2px}.su-switch:has(input:disabled){cursor:not-allowed}.su-switch input:disabled+.su-switch-track{opacity:.5}@media(prefers-reduced-motion:reduce){.su-switch-track,.su-switch-track:after,.su-switch-track:before{transition:none}}\n"] }]
185
185
  }], ctorParameters: () => [], propDecorators: { checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], busy: [{ type: i0.Input, args: [{ isSignal: true, alias: "busy", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], checkedChange: [{ type: i0.Output, args: ["checkedChange"] }] } });
186
186
 
187
187
  /** Domains `suCheckEmail` suggests when one is mistyped */
@@ -283,25 +283,25 @@ let nextId = 0;
283
283
  * is left; a tick shows when the address looks right.
284
284
  */
285
285
  class SuEmailFieldComponent {
286
- value = model('', ...(ngDevMode ? [{ debugName: "value" }] : []));
286
+ value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
287
287
  /** The visible label */
288
- label = input.required(...(ngDevMode ? [{ debugName: "label" }] : []));
289
- placeholder = input(...(ngDevMode ? [undefined, { debugName: "placeholder" }] : []));
288
+ label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
289
+ placeholder = input(...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
290
290
  /** An empty field counts as a problem @default false */
291
- required = input(false, ...(ngDevMode ? [{ debugName: "required", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
292
- messages = input({}, ...(ngDevMode ? [{ debugName: "messages" }] : []));
291
+ required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
292
+ messages = input({}, ...(ngDevMode ? [{ debugName: "messages" }] : /* istanbul ignore next */ []));
293
293
  /** The label sits inside the field and moves up onto its border when the field is focused or filled @default false */
294
- floating = input(false, ...(ngDevMode ? [{ debugName: "floating", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
294
+ floating = input(false, { ...(ngDevMode ? { debugName: "floating" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
295
295
  /** Shows the problem before the field was left, e.g. when its form is sent @default false */
296
- showProblem = input(false, ...(ngDevMode ? [{ debugName: "showProblem", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
296
+ showProblem = input(false, { ...(ngDevMode ? { debugName: "showProblem" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
297
297
  /** Domains to suggest when one is mistyped */
298
- domains = input(SU_COMMON_EMAIL_DOMAINS, ...(ngDevMode ? [{ debugName: "domains" }] : []));
298
+ domains = input(SU_COMMON_EMAIL_DOMAINS, ...(ngDevMode ? [{ debugName: "domains" }] : /* istanbul ignore next */ []));
299
299
  /** Whether the address is valid, on every change */
300
300
  validityChange = output();
301
301
  id = `su-email-${nextId++}`;
302
- touched = signal(false, ...(ngDevMode ? [{ debugName: "touched" }] : []));
303
- check = computed(() => suCheckEmail(this.value(), this.domains()), ...(ngDevMode ? [{ debugName: "check" }] : []));
304
- text = computed(() => ({ ...SU_EMAIL_MESSAGES, ...this.messages() }), ...(ngDevMode ? [{ debugName: "text" }] : []));
302
+ touched = signal(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
303
+ check = computed(() => suCheckEmail(this.value(), this.domains()), ...(ngDevMode ? [{ debugName: "check" }] : /* istanbul ignore next */ []));
304
+ text = computed(() => ({ ...SU_EMAIL_MESSAGES, ...this.messages() }), ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
305
305
  /** The problem to show: once the field was left or `showProblem` is on, and an empty field only when it's required */
306
306
  problem = computed(() => {
307
307
  const { problem } = this.check();
@@ -310,7 +310,7 @@ class SuEmailFieldComponent {
310
310
  return null;
311
311
  }
312
312
  return problem;
313
- }, ...(ngDevMode ? [{ debugName: "problem" }] : []));
313
+ }, ...(ngDevMode ? [{ debugName: "problem" }] : /* istanbul ignore next */ []));
314
314
  constructor() {
315
315
  effect(() => this.validityChange.emit(this.check().valid));
316
316
  }
@@ -323,12 +323,12 @@ class SuEmailFieldComponent {
323
323
  this.value.set(suggestion);
324
324
  this.touched.set(true);
325
325
  }
326
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: SuEmailFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
327
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.35", type: SuEmailFieldComponent, isStandalone: true, selector: "su-lib-email-field", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, floating: { classPropertyName: "floating", publicName: "floating", isSignal: true, isRequired: false, transformFunction: null }, showProblem: { classPropertyName: "showProblem", publicName: "showProblem", isSignal: true, isRequired: false, transformFunction: null }, domains: { classPropertyName: "domains", publicName: "domains", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", validityChange: "validityChange" }, host: { properties: { "class.is-floating": "floating()" } }, ngImport: i0, template: "@let result = check();\n@let t = text();\n@if (!floating()) {\n <label class=\"su-email-label\" [for]=\"id\">{{ label() }}</label>\n}\n<div class=\"su-email-box\" [class.is-valid]=\"result.valid\" [class.is-invalid]=\"problem() !== null\">\n <input\n class=\"su-email-input\"\n type=\"email\"\n inputmode=\"email\"\n autocomplete=\"email\"\n autocapitalize=\"off\"\n spellcheck=\"false\"\n [id]=\"id\"\n [value]=\"value()\"\n [required]=\"required()\"\n [attr.placeholder]=\"floating() ? ' ' : (placeholder() ?? null)\"\n [attr.aria-invalid]=\"problem() !== null ? true : null\"\n [attr.aria-describedby]=\"id + '-message'\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n />\n @if (floating()) {\n <label class=\"su-email-label su-email-floating-label\" [for]=\"id\">{{ label() }}</label>\n }\n <span class=\"su-email-tick\" aria-hidden=\"true\"></span>\n</div>\n<p class=\"su-email-message\" aria-live=\"polite\" [id]=\"id + '-message'\">\n @if (problem(); as problem) {\n <span class=\"su-email-problem\">{{ t[problem] }}</span>\n }\n @if (result.suggestion; as suggestion) {\n <span class=\"su-email-suggestion\">\n {{ t.suggestion }}\n <button type=\"button\" class=\"su-email-fix\" (click)=\"apply(suggestion)\">{{ suggestion }}</button>?\n </span>\n }\n</p>\n", styles: [":host{display:grid;gap:.375rem}.su-email-label{font-size:.875rem}.su-email-box{position:relative}.su-email-input{background:var(--su-field-surface, transparent);border:1px solid var(--su-field-border, rgba(127, 127, 127, .4));border-radius:.5rem;box-sizing:border-box;color:var(--su-field-text, currentColor);font:inherit;min-height:2.75rem;padding:.5rem 2.5rem .5rem .75rem;transition:border-color .2s ease,box-shadow .2s ease;width:100%}.su-email-input:focus-visible{border-color:var(--su-field-accent, #3b82f6);box-shadow:0 0 0 3px color-mix(in srgb,var(--su-field-accent, #3b82f6) 25%,transparent);outline:none}.is-valid .su-email-input{border-color:var(--su-field-success, #2e8b57)}.is-invalid .su-email-input{animation:su-email-nudge .26s ease;border-color:var(--su-field-danger, #c0392b)}.su-email-tick{background:var(--su-field-success, #2e8b57);height:1.1rem;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/contain no-repeat;opacity:0;pointer-events:none;position:absolute;right:.75rem;scale:.3;top:50%;transition:opacity .15s ease,scale .25s cubic-bezier(.34,1.56,.64,1);translate:0 -50%;width:1.1rem}.is-valid .su-email-tick{opacity:1;scale:1}.su-email-message{display:grid;font-size:.8125rem;gap:.25rem;margin:0;min-height:1.25rem}.su-email-message:empty{min-height:0}.su-email-problem{color:var(--su-field-danger, #c0392b)}.su-email-suggestion{color:var(--su-field-text, currentColor)}.su-email-fix{background:none;border:0;border-radius:4px;color:var(--su-field-accent, #3b82f6);cursor:pointer;font:inherit;font-weight:600;padding:0;text-decoration:underline;text-underline-offset:2px}.su-email-fix:focus-visible{outline:2px solid var(--su-field-accent, #3b82f6);outline-offset:2px}:host(.is-floating) .su-email-input{line-height:1.25rem;min-height:3.25rem;padding-block:1.375rem .375rem}.su-email-floating-label{color:var(--su-field-label, color-mix(in srgb, var(--su-field-text, currentColor) 60%, transparent));font-size:1rem;left:.75rem;line-height:1.25rem;pointer-events:none;position:absolute;top:1rem;transform-origin:left top;transition:translate .2s cubic-bezier(.22,1,.36,1),scale .2s cubic-bezier(.22,1,.36,1),color .2s ease}.su-email-box:focus-within .su-email-floating-label,.su-email-box:has(.su-email-input:not(:placeholder-shown)) .su-email-floating-label{scale:.75;translate:0 -.6875rem}.su-email-box:focus-within .su-email-floating-label{color:var(--su-field-accent, #3b82f6)}.is-invalid .su-email-floating-label{color:var(--su-field-danger, #c0392b)}@keyframes su-email-nudge{25%{translate:-3px 0}75%{translate:3px 0}}@media(prefers-reduced-motion:reduce){.is-invalid .su-email-input{animation:none}.su-email-tick,.su-email-floating-label{transition:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
326
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: SuEmailFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
327
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.26", type: SuEmailFieldComponent, isStandalone: true, selector: "su-lib-email-field", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, floating: { classPropertyName: "floating", publicName: "floating", isSignal: true, isRequired: false, transformFunction: null }, showProblem: { classPropertyName: "showProblem", publicName: "showProblem", isSignal: true, isRequired: false, transformFunction: null }, domains: { classPropertyName: "domains", publicName: "domains", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", validityChange: "validityChange" }, host: { properties: { "class.is-floating": "floating()" } }, ngImport: i0, template: "@let result = check();\n@let t = text();\n@if (!floating()) {\n <label class=\"su-email-label\" [for]=\"id\">{{ label() }}</label>\n}\n<div class=\"su-email-box\" [class.is-valid]=\"result.valid\" [class.is-invalid]=\"problem() !== null\">\n <input\n class=\"su-email-input\"\n type=\"email\"\n inputmode=\"email\"\n autocomplete=\"email\"\n autocapitalize=\"off\"\n spellcheck=\"false\"\n [id]=\"id\"\n [value]=\"value()\"\n [required]=\"required()\"\n [attr.placeholder]=\"floating() ? ' ' : (placeholder() ?? null)\"\n [attr.aria-invalid]=\"problem() !== null ? true : null\"\n [attr.aria-describedby]=\"id + '-message'\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n />\n @if (floating()) {\n <label class=\"su-email-label su-email-floating-label\" [for]=\"id\">{{ label() }}</label>\n }\n <span class=\"su-email-tick\" aria-hidden=\"true\"></span>\n</div>\n<p class=\"su-email-message\" aria-live=\"polite\" [id]=\"id + '-message'\">\n @if (problem(); as problem) {\n <span class=\"su-email-problem\">{{ t[problem] }}</span>\n }\n @if (result.suggestion; as suggestion) {\n <span class=\"su-email-suggestion\">\n {{ t.suggestion }}\n <button type=\"button\" class=\"su-email-fix\" (click)=\"apply(suggestion)\">{{ suggestion }}</button>?\n </span>\n }\n</p>\n", styles: [":host{display:grid;gap:.375rem}.su-email-label{font-size:.875rem}.su-email-box{position:relative}.su-email-input{background:var(--su-field-surface, transparent);border:1px solid var(--su-field-border, rgba(127, 127, 127, .4));border-radius:.5rem;box-sizing:border-box;color:var(--su-field-text, currentColor);font:inherit;min-height:2.75rem;padding:.5rem 2.5rem .5rem .75rem;transition:border-color .2s ease,box-shadow .2s ease;width:100%}.su-email-input:focus-visible{border-color:var(--su-field-accent, #3b82f6);box-shadow:0 0 0 3px color-mix(in srgb,var(--su-field-accent, #3b82f6) 25%,transparent);outline:none}.is-valid .su-email-input{border-color:var(--su-field-success, #2e8b57)}.is-invalid .su-email-input{animation:su-email-nudge .26s ease;border-color:var(--su-field-danger, #c0392b)}.su-email-tick{background:var(--su-field-success, #2e8b57);height:1.1rem;-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/contain no-repeat;opacity:0;pointer-events:none;position:absolute;right:.75rem;scale:.3;top:50%;transition:opacity .15s ease,scale .25s cubic-bezier(.34,1.56,.64,1);translate:0 -50%;width:1.1rem}.is-valid .su-email-tick{opacity:1;scale:1}.su-email-message{display:grid;font-size:.8125rem;gap:.25rem;margin:0;min-height:1.25rem}.su-email-message:empty{min-height:0}.su-email-problem{color:var(--su-field-danger, #c0392b)}.su-email-suggestion{color:var(--su-field-text, currentColor)}.su-email-fix{background:none;border:0;border-radius:4px;color:var(--su-field-accent, #3b82f6);cursor:pointer;font:inherit;font-weight:600;padding:0;text-decoration:underline;text-underline-offset:2px}.su-email-fix:focus-visible{outline:2px solid var(--su-field-accent, #3b82f6);outline-offset:2px}:host(.is-floating) .su-email-input{line-height:1.25rem;min-height:3.25rem;padding-block:1.375rem .375rem}.su-email-floating-label{color:var(--su-field-label, color-mix(in srgb, var(--su-field-text, currentColor) 60%, transparent));font-size:1rem;left:.75rem;line-height:1.25rem;pointer-events:none;position:absolute;top:1rem;transform-origin:left top;transition:translate .2s cubic-bezier(.22,1,.36,1),scale .2s cubic-bezier(.22,1,.36,1),color .2s ease}.su-email-box:focus-within .su-email-floating-label,.su-email-box:has(.su-email-input:not(:placeholder-shown)) .su-email-floating-label{scale:.75;translate:0 -.6875rem}.su-email-box:focus-within .su-email-floating-label{color:var(--su-field-accent, #3b82f6)}.is-invalid .su-email-floating-label{color:var(--su-field-danger, #c0392b)}@keyframes su-email-nudge{25%{translate:-3px 0}75%{translate:3px 0}}@media(prefers-reduced-motion:reduce){.is-invalid .su-email-input{animation:none}.su-email-tick,.su-email-floating-label{transition:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
328
328
  }
329
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: SuEmailFieldComponent, decorators: [{
329
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: SuEmailFieldComponent, decorators: [{
330
330
  type: Component,
331
- args: [{ selector: 'su-lib-email-field', changeDetection: ChangeDetectionStrategy.OnPush, host: { '[class.is-floating]': 'floating()' }, template: "@let result = check();\n@let t = text();\n@if (!floating()) {\n <label class=\"su-email-label\" [for]=\"id\">{{ label() }}</label>\n}\n<div class=\"su-email-box\" [class.is-valid]=\"result.valid\" [class.is-invalid]=\"problem() !== null\">\n <input\n class=\"su-email-input\"\n type=\"email\"\n inputmode=\"email\"\n autocomplete=\"email\"\n autocapitalize=\"off\"\n spellcheck=\"false\"\n [id]=\"id\"\n [value]=\"value()\"\n [required]=\"required()\"\n [attr.placeholder]=\"floating() ? ' ' : (placeholder() ?? null)\"\n [attr.aria-invalid]=\"problem() !== null ? true : null\"\n [attr.aria-describedby]=\"id + '-message'\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n />\n @if (floating()) {\n <label class=\"su-email-label su-email-floating-label\" [for]=\"id\">{{ label() }}</label>\n }\n <span class=\"su-email-tick\" aria-hidden=\"true\"></span>\n</div>\n<p class=\"su-email-message\" aria-live=\"polite\" [id]=\"id + '-message'\">\n @if (problem(); as problem) {\n <span class=\"su-email-problem\">{{ t[problem] }}</span>\n }\n @if (result.suggestion; as suggestion) {\n <span class=\"su-email-suggestion\">\n {{ t.suggestion }}\n <button type=\"button\" class=\"su-email-fix\" (click)=\"apply(suggestion)\">{{ suggestion }}</button>?\n </span>\n }\n</p>\n", styles: [":host{display:grid;gap:.375rem}.su-email-label{font-size:.875rem}.su-email-box{position:relative}.su-email-input{background:var(--su-field-surface, transparent);border:1px solid var(--su-field-border, rgba(127, 127, 127, .4));border-radius:.5rem;box-sizing:border-box;color:var(--su-field-text, currentColor);font:inherit;min-height:2.75rem;padding:.5rem 2.5rem .5rem .75rem;transition:border-color .2s ease,box-shadow .2s ease;width:100%}.su-email-input:focus-visible{border-color:var(--su-field-accent, #3b82f6);box-shadow:0 0 0 3px color-mix(in srgb,var(--su-field-accent, #3b82f6) 25%,transparent);outline:none}.is-valid .su-email-input{border-color:var(--su-field-success, #2e8b57)}.is-invalid .su-email-input{animation:su-email-nudge .26s ease;border-color:var(--su-field-danger, #c0392b)}.su-email-tick{background:var(--su-field-success, #2e8b57);height:1.1rem;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/contain no-repeat;opacity:0;pointer-events:none;position:absolute;right:.75rem;scale:.3;top:50%;transition:opacity .15s ease,scale .25s cubic-bezier(.34,1.56,.64,1);translate:0 -50%;width:1.1rem}.is-valid .su-email-tick{opacity:1;scale:1}.su-email-message{display:grid;font-size:.8125rem;gap:.25rem;margin:0;min-height:1.25rem}.su-email-message:empty{min-height:0}.su-email-problem{color:var(--su-field-danger, #c0392b)}.su-email-suggestion{color:var(--su-field-text, currentColor)}.su-email-fix{background:none;border:0;border-radius:4px;color:var(--su-field-accent, #3b82f6);cursor:pointer;font:inherit;font-weight:600;padding:0;text-decoration:underline;text-underline-offset:2px}.su-email-fix:focus-visible{outline:2px solid var(--su-field-accent, #3b82f6);outline-offset:2px}:host(.is-floating) .su-email-input{line-height:1.25rem;min-height:3.25rem;padding-block:1.375rem .375rem}.su-email-floating-label{color:var(--su-field-label, color-mix(in srgb, var(--su-field-text, currentColor) 60%, transparent));font-size:1rem;left:.75rem;line-height:1.25rem;pointer-events:none;position:absolute;top:1rem;transform-origin:left top;transition:translate .2s cubic-bezier(.22,1,.36,1),scale .2s cubic-bezier(.22,1,.36,1),color .2s ease}.su-email-box:focus-within .su-email-floating-label,.su-email-box:has(.su-email-input:not(:placeholder-shown)) .su-email-floating-label{scale:.75;translate:0 -.6875rem}.su-email-box:focus-within .su-email-floating-label{color:var(--su-field-accent, #3b82f6)}.is-invalid .su-email-floating-label{color:var(--su-field-danger, #c0392b)}@keyframes su-email-nudge{25%{translate:-3px 0}75%{translate:3px 0}}@media(prefers-reduced-motion:reduce){.is-invalid .su-email-input{animation:none}.su-email-tick,.su-email-floating-label{transition:none}}\n"] }]
331
+ args: [{ selector: 'su-lib-email-field', changeDetection: ChangeDetectionStrategy.OnPush, host: { '[class.is-floating]': 'floating()' }, template: "@let result = check();\n@let t = text();\n@if (!floating()) {\n <label class=\"su-email-label\" [for]=\"id\">{{ label() }}</label>\n}\n<div class=\"su-email-box\" [class.is-valid]=\"result.valid\" [class.is-invalid]=\"problem() !== null\">\n <input\n class=\"su-email-input\"\n type=\"email\"\n inputmode=\"email\"\n autocomplete=\"email\"\n autocapitalize=\"off\"\n spellcheck=\"false\"\n [id]=\"id\"\n [value]=\"value()\"\n [required]=\"required()\"\n [attr.placeholder]=\"floating() ? ' ' : (placeholder() ?? null)\"\n [attr.aria-invalid]=\"problem() !== null ? true : null\"\n [attr.aria-describedby]=\"id + '-message'\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n />\n @if (floating()) {\n <label class=\"su-email-label su-email-floating-label\" [for]=\"id\">{{ label() }}</label>\n }\n <span class=\"su-email-tick\" aria-hidden=\"true\"></span>\n</div>\n<p class=\"su-email-message\" aria-live=\"polite\" [id]=\"id + '-message'\">\n @if (problem(); as problem) {\n <span class=\"su-email-problem\">{{ t[problem] }}</span>\n }\n @if (result.suggestion; as suggestion) {\n <span class=\"su-email-suggestion\">\n {{ t.suggestion }}\n <button type=\"button\" class=\"su-email-fix\" (click)=\"apply(suggestion)\">{{ suggestion }}</button>?\n </span>\n }\n</p>\n", styles: [":host{display:grid;gap:.375rem}.su-email-label{font-size:.875rem}.su-email-box{position:relative}.su-email-input{background:var(--su-field-surface, transparent);border:1px solid var(--su-field-border, rgba(127, 127, 127, .4));border-radius:.5rem;box-sizing:border-box;color:var(--su-field-text, currentColor);font:inherit;min-height:2.75rem;padding:.5rem 2.5rem .5rem .75rem;transition:border-color .2s ease,box-shadow .2s ease;width:100%}.su-email-input:focus-visible{border-color:var(--su-field-accent, #3b82f6);box-shadow:0 0 0 3px color-mix(in srgb,var(--su-field-accent, #3b82f6) 25%,transparent);outline:none}.is-valid .su-email-input{border-color:var(--su-field-success, #2e8b57)}.is-invalid .su-email-input{animation:su-email-nudge .26s ease;border-color:var(--su-field-danger, #c0392b)}.su-email-tick{background:var(--su-field-success, #2e8b57);height:1.1rem;-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/contain no-repeat;opacity:0;pointer-events:none;position:absolute;right:.75rem;scale:.3;top:50%;transition:opacity .15s ease,scale .25s cubic-bezier(.34,1.56,.64,1);translate:0 -50%;width:1.1rem}.is-valid .su-email-tick{opacity:1;scale:1}.su-email-message{display:grid;font-size:.8125rem;gap:.25rem;margin:0;min-height:1.25rem}.su-email-message:empty{min-height:0}.su-email-problem{color:var(--su-field-danger, #c0392b)}.su-email-suggestion{color:var(--su-field-text, currentColor)}.su-email-fix{background:none;border:0;border-radius:4px;color:var(--su-field-accent, #3b82f6);cursor:pointer;font:inherit;font-weight:600;padding:0;text-decoration:underline;text-underline-offset:2px}.su-email-fix:focus-visible{outline:2px solid var(--su-field-accent, #3b82f6);outline-offset:2px}:host(.is-floating) .su-email-input{line-height:1.25rem;min-height:3.25rem;padding-block:1.375rem .375rem}.su-email-floating-label{color:var(--su-field-label, color-mix(in srgb, var(--su-field-text, currentColor) 60%, transparent));font-size:1rem;left:.75rem;line-height:1.25rem;pointer-events:none;position:absolute;top:1rem;transform-origin:left top;transition:translate .2s cubic-bezier(.22,1,.36,1),scale .2s cubic-bezier(.22,1,.36,1),color .2s ease}.su-email-box:focus-within .su-email-floating-label,.su-email-box:has(.su-email-input:not(:placeholder-shown)) .su-email-floating-label{scale:.75;translate:0 -.6875rem}.su-email-box:focus-within .su-email-floating-label{color:var(--su-field-accent, #3b82f6)}.is-invalid .su-email-floating-label{color:var(--su-field-danger, #c0392b)}@keyframes su-email-nudge{25%{translate:-3px 0}75%{translate:3px 0}}@media(prefers-reduced-motion:reduce){.is-invalid .su-email-input{animation:none}.su-email-tick,.su-email-floating-label{transition:none}}\n"] }]
332
332
  }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], floating: [{ type: i0.Input, args: [{ isSignal: true, alias: "floating", required: false }] }], showProblem: [{ type: i0.Input, args: [{ isSignal: true, alias: "showProblem", required: false }] }], domains: [{ type: i0.Input, args: [{ isSignal: true, alias: "domains", required: false }] }], validityChange: [{ type: i0.Output, args: ["validityChange"] }] } });
333
333
 
334
334
  /**
@@ -336,23 +336,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImpo
336
336
  * label inside: `<su-lib-checkbox [(checked)]="agree">I agree</su-lib-checkbox>`.
337
337
  */
338
338
  class SuCheckboxComponent {
339
- checked = input(false, ...(ngDevMode ? [{ debugName: "checked", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
339
+ checked = input(false, { ...(ngDevMode ? { debugName: "checked" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
340
340
  /** Partly checked, e.g. some of a group; a click checks it */
341
- indeterminate = input(false, ...(ngDevMode ? [{ debugName: "indeterminate", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
342
- disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
341
+ indeterminate = input(false, { ...(ngDevMode ? { debugName: "indeterminate" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
342
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
343
343
  /** Ticked or unticked by the user: the new value */
344
344
  checkedChange = output();
345
- shown = linkedSignal(() => this.checked(), ...(ngDevMode ? [{ debugName: "shown" }] : []));
345
+ shown = linkedSignal(() => this.checked(), ...(ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []));
346
346
  onChange(event) {
347
347
  if (event.target instanceof HTMLInputElement) {
348
348
  this.shown.set(event.target.checked);
349
349
  this.checkedChange.emit(event.target.checked);
350
350
  }
351
351
  }
352
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: SuCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
353
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.35", type: SuCheckboxComponent, isStandalone: true, selector: "su-lib-checkbox", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChange: "checkedChange" }, ngImport: i0, template: "<label class=\"su-checkbox\" [class.is-mixed]=\"indeterminate() && !shown()\">\n <input\n type=\"checkbox\"\n [checked]=\"shown()\"\n [indeterminate]=\"indeterminate() && !shown()\"\n [disabled]=\"disabled()\"\n (change)=\"onChange($event)\"\n />\n <span class=\"su-checkbox-box\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\">\n <path class=\"su-checkbox-tick\" d=\"M5 12.5l4.5 4.5L19 7.5\" />\n <path class=\"su-checkbox-dash\" d=\"M6 12h12\" />\n </svg>\n </span>\n <span class=\"su-checkbox-label\"><ng-content /></span>\n</label>\n", styles: [":host{display:block}.su-checkbox{align-items:center;cursor:pointer;display:inline-flex;gap:.625rem}.su-checkbox input{height:1px;opacity:0;position:absolute;width:1px}.su-checkbox-box{align-items:center;background:var(--su-field-surface, transparent);border:2px solid var(--su-field-border, rgba(127, 127, 127, .5));border-radius:.375rem;box-sizing:border-box;display:inline-flex;flex-shrink:0;height:var(--su-checkbox-size, 1.25rem);justify-content:center;transition:background-color .18s ease,border-color .18s ease,scale .25s cubic-bezier(.34,1.56,.64,1);width:var(--su-checkbox-size, 1.25rem)}.su-checkbox-box svg{fill:none;height:80%;stroke:var(--su-checkbox-tick, #fff);stroke-linecap:round;stroke-linejoin:round;stroke-width:3.5;width:80%}.su-checkbox-tick,.su-checkbox-dash{stroke-dasharray:24;stroke-dashoffset:24;transition:stroke-dashoffset .22s ease-out 60ms}.su-checkbox:active input:not(:disabled)+.su-checkbox-box{scale:.86}.su-checkbox input:checked+.su-checkbox-box,.is-mixed .su-checkbox-box{background:var(--su-field-accent, #3b82f6);border-color:var(--su-field-accent, #3b82f6)}.su-checkbox input:checked+.su-checkbox-box .su-checkbox-tick,.is-mixed .su-checkbox-dash{stroke-dashoffset:0}.su-checkbox input:focus-visible+.su-checkbox-box{outline:2px solid var(--su-field-accent, #3b82f6);outline-offset:2px}.su-checkbox:has(input:disabled){cursor:not-allowed;opacity:.5}.su-checkbox-label:empty{display:none}@media(prefers-reduced-motion:reduce){.su-checkbox-box,.su-checkbox-tick,.su-checkbox-dash{transition:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
352
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: SuCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
353
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.26", type: SuCheckboxComponent, isStandalone: true, selector: "su-lib-checkbox", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChange: "checkedChange" }, ngImport: i0, template: "<label class=\"su-checkbox\" [class.is-mixed]=\"indeterminate() && !shown()\">\n <input\n type=\"checkbox\"\n [checked]=\"shown()\"\n [indeterminate]=\"indeterminate() && !shown()\"\n [disabled]=\"disabled()\"\n (change)=\"onChange($event)\"\n />\n <span class=\"su-checkbox-box\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\">\n <path class=\"su-checkbox-tick\" d=\"M5 12.5l4.5 4.5L19 7.5\" />\n <path class=\"su-checkbox-dash\" d=\"M6 12h12\" />\n </svg>\n </span>\n <span class=\"su-checkbox-label\"><ng-content /></span>\n</label>\n", styles: [":host{display:block}.su-checkbox{align-items:center;cursor:pointer;display:inline-flex;gap:.625rem}.su-checkbox input{height:1px;opacity:0;position:absolute;width:1px}.su-checkbox-box{align-items:center;background:var(--su-field-surface, transparent);border:2px solid var(--su-field-border, rgba(127, 127, 127, .5));border-radius:.375rem;box-sizing:border-box;display:inline-flex;flex-shrink:0;height:var(--su-checkbox-size, 1.25rem);justify-content:center;transition:background-color .18s ease,border-color .18s ease,scale .25s cubic-bezier(.34,1.56,.64,1);width:var(--su-checkbox-size, 1.25rem)}.su-checkbox-box svg{fill:none;height:80%;stroke:var(--su-checkbox-tick, #fff);stroke-linecap:round;stroke-linejoin:round;stroke-width:3.5;width:80%}.su-checkbox-tick,.su-checkbox-dash{stroke-dasharray:24;stroke-dashoffset:24;transition:stroke-dashoffset .22s ease-out 60ms}.su-checkbox:active input:not(:disabled)+.su-checkbox-box{scale:.86}.su-checkbox input:checked+.su-checkbox-box,.is-mixed .su-checkbox-box{background:var(--su-field-accent, #3b82f6);border-color:var(--su-field-accent, #3b82f6)}.su-checkbox input:checked+.su-checkbox-box .su-checkbox-tick,.is-mixed .su-checkbox-dash{stroke-dashoffset:0}.su-checkbox input:focus-visible+.su-checkbox-box{outline:2px solid var(--su-field-accent, #3b82f6);outline-offset:2px}.su-checkbox:has(input:disabled){cursor:not-allowed;opacity:.5}.su-checkbox-label:empty{display:none}@media(prefers-reduced-motion:reduce){.su-checkbox-box,.su-checkbox-tick,.su-checkbox-dash{transition:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
354
354
  }
355
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: SuCheckboxComponent, decorators: [{
355
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: SuCheckboxComponent, decorators: [{
356
356
  type: Component,
357
357
  args: [{ selector: 'su-lib-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"su-checkbox\" [class.is-mixed]=\"indeterminate() && !shown()\">\n <input\n type=\"checkbox\"\n [checked]=\"shown()\"\n [indeterminate]=\"indeterminate() && !shown()\"\n [disabled]=\"disabled()\"\n (change)=\"onChange($event)\"\n />\n <span class=\"su-checkbox-box\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\">\n <path class=\"su-checkbox-tick\" d=\"M5 12.5l4.5 4.5L19 7.5\" />\n <path class=\"su-checkbox-dash\" d=\"M6 12h12\" />\n </svg>\n </span>\n <span class=\"su-checkbox-label\"><ng-content /></span>\n</label>\n", styles: [":host{display:block}.su-checkbox{align-items:center;cursor:pointer;display:inline-flex;gap:.625rem}.su-checkbox input{height:1px;opacity:0;position:absolute;width:1px}.su-checkbox-box{align-items:center;background:var(--su-field-surface, transparent);border:2px solid var(--su-field-border, rgba(127, 127, 127, .5));border-radius:.375rem;box-sizing:border-box;display:inline-flex;flex-shrink:0;height:var(--su-checkbox-size, 1.25rem);justify-content:center;transition:background-color .18s ease,border-color .18s ease,scale .25s cubic-bezier(.34,1.56,.64,1);width:var(--su-checkbox-size, 1.25rem)}.su-checkbox-box svg{fill:none;height:80%;stroke:var(--su-checkbox-tick, #fff);stroke-linecap:round;stroke-linejoin:round;stroke-width:3.5;width:80%}.su-checkbox-tick,.su-checkbox-dash{stroke-dasharray:24;stroke-dashoffset:24;transition:stroke-dashoffset .22s ease-out 60ms}.su-checkbox:active input:not(:disabled)+.su-checkbox-box{scale:.86}.su-checkbox input:checked+.su-checkbox-box,.is-mixed .su-checkbox-box{background:var(--su-field-accent, #3b82f6);border-color:var(--su-field-accent, #3b82f6)}.su-checkbox input:checked+.su-checkbox-box .su-checkbox-tick,.is-mixed .su-checkbox-dash{stroke-dashoffset:0}.su-checkbox input:focus-visible+.su-checkbox-box{outline:2px solid var(--su-field-accent, #3b82f6);outline-offset:2px}.su-checkbox:has(input:disabled){cursor:not-allowed;opacity:.5}.su-checkbox-label:empty{display:none}@media(prefers-reduced-motion:reduce){.su-checkbox-box,.su-checkbox-tick,.su-checkbox-dash{transition:none}}\n"] }]
358
358
  }], propDecorators: { checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], checkedChange: [{ type: i0.Output, args: ["checkedChange"] }] } });
@@ -362,13 +362,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImpo
362
362
  * picked. `<su-lib-chips label="Categories" [options]="categories" [(value)]="picked" />`
363
363
  */
364
364
  class SuChipsComponent {
365
- options = input.required(...(ngDevMode ? [{ debugName: "options" }] : []));
365
+ options = input.required(...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
366
366
  /** The picked values, in the options' order */
367
- value = model([], ...(ngDevMode ? [{ debugName: "value" }] : []));
367
+ value = model([], ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
368
368
  /** The group's name for screen readers */
369
- label = input.required(...(ngDevMode ? [{ debugName: "label" }] : []));
369
+ label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
370
370
  /** Several can be picked; off, picking one replaces the other @default true */
371
- multiple = input(true, ...(ngDevMode ? [{ debugName: "multiple", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
371
+ multiple = input(true, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
372
372
  isPicked(value) {
373
373
  return this.value().includes(value);
374
374
  }
@@ -382,12 +382,12 @@ class SuChipsComponent {
382
382
  : [...this.value(), option.value];
383
383
  this.value.set(this.options().map((item) => item.value).filter((value) => picked.includes(value)));
384
384
  }
385
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: SuChipsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
386
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.35", type: SuChipsComponent, isStandalone: true, selector: "su-lib-chips", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, ngImport: i0, template: "<div class=\"su-chips\" role=\"group\" [attr.aria-label]=\"label()\">\n @for (option of options(); track option.value) {\n <button\n type=\"button\"\n class=\"su-chip\"\n [attr.aria-pressed]=\"isPicked(option.value)\"\n [disabled]=\"option.disabled ?? false\"\n (click)=\"toggle(option)\"\n >\n <span class=\"su-chip-tick\" aria-hidden=\"true\"></span>\n {{ option.label }}\n </button>\n }\n</div>\n", styles: [":host{display:block}.su-chips{display:flex;flex-wrap:wrap;gap:var(--su-chips-gap, .5rem)}.su-chip{align-items:center;background:var(--su-field-surface, transparent);border:1px solid var(--su-field-border, rgba(127, 127, 127, .4));border-radius:9999px;color:var(--su-field-text, currentColor);cursor:pointer;display:inline-flex;font:inherit;font-size:.875rem;gap:0;padding:.35rem .85rem;transition:background-color .18s ease,border-color .18s ease,color .18s ease,gap .22s cubic-bezier(.34,1.56,.64,1),scale .22s cubic-bezier(.34,1.56,.64,1)}.su-chip:active:not(:disabled){scale:.94}.su-chip[aria-pressed=true]{background:color-mix(in srgb,var(--su-field-accent, #3b82f6) 14%,transparent);border-color:var(--su-field-accent, #3b82f6);gap:.35rem}.su-chip:focus-visible{outline:2px solid var(--su-field-accent, #3b82f6);outline-offset:2px}.su-chip:disabled{cursor:not-allowed;opacity:.5}.su-chip-tick{background:var(--su-field-accent, #3b82f6);height:.9rem;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/contain no-repeat;opacity:0;scale:.3;transition:opacity .15s ease,scale .25s cubic-bezier(.34,1.56,.64,1),width .22s cubic-bezier(.34,1.56,.64,1);width:0}[aria-pressed=true] .su-chip-tick{opacity:1;scale:1;width:.9rem}@media(prefers-reduced-motion:reduce){.su-chip,.su-chip-tick{transition:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
385
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: SuChipsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
386
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.26", type: SuChipsComponent, isStandalone: true, selector: "su-lib-chips", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, ngImport: i0, template: "<div class=\"su-chips\" role=\"group\" [attr.aria-label]=\"label()\">\n @for (option of options(); track option.value) {\n <button\n type=\"button\"\n class=\"su-chip\"\n [attr.aria-pressed]=\"isPicked(option.value)\"\n [disabled]=\"option.disabled ?? false\"\n (click)=\"toggle(option)\"\n >\n <span class=\"su-chip-tick\" aria-hidden=\"true\"></span>\n {{ option.label }}\n </button>\n }\n</div>\n", styles: [":host{display:block}.su-chips{display:flex;flex-wrap:wrap;gap:var(--su-chips-gap, .5rem)}.su-chip{align-items:center;background:var(--su-field-surface, transparent);border:1px solid var(--su-field-border, rgba(127, 127, 127, .4));border-radius:9999px;color:var(--su-field-text, currentColor);cursor:pointer;display:inline-flex;font:inherit;font-size:.875rem;gap:0;padding:.35rem .85rem;transition:background-color .18s ease,border-color .18s ease,color .18s ease,gap .22s cubic-bezier(.34,1.56,.64,1),scale .22s cubic-bezier(.34,1.56,.64,1)}.su-chip:active:not(:disabled){scale:.94}.su-chip[aria-pressed=true]{background:color-mix(in srgb,var(--su-field-accent, #3b82f6) 14%,transparent);border-color:var(--su-field-accent, #3b82f6);gap:.35rem}.su-chip:focus-visible{outline:2px solid var(--su-field-accent, #3b82f6);outline-offset:2px}.su-chip:disabled{cursor:not-allowed;opacity:.5}.su-chip-tick{background:var(--su-field-accent, #3b82f6);height:.9rem;-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/contain no-repeat;opacity:0;scale:.3;transition:opacity .15s ease,scale .25s cubic-bezier(.34,1.56,.64,1),width .22s cubic-bezier(.34,1.56,.64,1);width:0}[aria-pressed=true] .su-chip-tick{opacity:1;scale:1;width:.9rem}@media(prefers-reduced-motion:reduce){.su-chip,.su-chip-tick{transition:none}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
387
387
  }
388
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: SuChipsComponent, decorators: [{
388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.26", ngImport: i0, type: SuChipsComponent, decorators: [{
389
389
  type: Component,
390
- args: [{ selector: 'su-lib-chips', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"su-chips\" role=\"group\" [attr.aria-label]=\"label()\">\n @for (option of options(); track option.value) {\n <button\n type=\"button\"\n class=\"su-chip\"\n [attr.aria-pressed]=\"isPicked(option.value)\"\n [disabled]=\"option.disabled ?? false\"\n (click)=\"toggle(option)\"\n >\n <span class=\"su-chip-tick\" aria-hidden=\"true\"></span>\n {{ option.label }}\n </button>\n }\n</div>\n", styles: [":host{display:block}.su-chips{display:flex;flex-wrap:wrap;gap:var(--su-chips-gap, .5rem)}.su-chip{align-items:center;background:var(--su-field-surface, transparent);border:1px solid var(--su-field-border, rgba(127, 127, 127, .4));border-radius:9999px;color:var(--su-field-text, currentColor);cursor:pointer;display:inline-flex;font:inherit;font-size:.875rem;gap:0;padding:.35rem .85rem;transition:background-color .18s ease,border-color .18s ease,color .18s ease,gap .22s cubic-bezier(.34,1.56,.64,1),scale .22s cubic-bezier(.34,1.56,.64,1)}.su-chip:active:not(:disabled){scale:.94}.su-chip[aria-pressed=true]{background:color-mix(in srgb,var(--su-field-accent, #3b82f6) 14%,transparent);border-color:var(--su-field-accent, #3b82f6);gap:.35rem}.su-chip:focus-visible{outline:2px solid var(--su-field-accent, #3b82f6);outline-offset:2px}.su-chip:disabled{cursor:not-allowed;opacity:.5}.su-chip-tick{background:var(--su-field-accent, #3b82f6);height:.9rem;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/contain no-repeat;opacity:0;scale:.3;transition:opacity .15s ease,scale .25s cubic-bezier(.34,1.56,.64,1),width .22s cubic-bezier(.34,1.56,.64,1);width:0}[aria-pressed=true] .su-chip-tick{opacity:1;scale:1;width:.9rem}@media(prefers-reduced-motion:reduce){.su-chip,.su-chip-tick{transition:none}}\n"] }]
390
+ args: [{ selector: 'su-lib-chips', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"su-chips\" role=\"group\" [attr.aria-label]=\"label()\">\n @for (option of options(); track option.value) {\n <button\n type=\"button\"\n class=\"su-chip\"\n [attr.aria-pressed]=\"isPicked(option.value)\"\n [disabled]=\"option.disabled ?? false\"\n (click)=\"toggle(option)\"\n >\n <span class=\"su-chip-tick\" aria-hidden=\"true\"></span>\n {{ option.label }}\n </button>\n }\n</div>\n", styles: [":host{display:block}.su-chips{display:flex;flex-wrap:wrap;gap:var(--su-chips-gap, .5rem)}.su-chip{align-items:center;background:var(--su-field-surface, transparent);border:1px solid var(--su-field-border, rgba(127, 127, 127, .4));border-radius:9999px;color:var(--su-field-text, currentColor);cursor:pointer;display:inline-flex;font:inherit;font-size:.875rem;gap:0;padding:.35rem .85rem;transition:background-color .18s ease,border-color .18s ease,color .18s ease,gap .22s cubic-bezier(.34,1.56,.64,1),scale .22s cubic-bezier(.34,1.56,.64,1)}.su-chip:active:not(:disabled){scale:.94}.su-chip[aria-pressed=true]{background:color-mix(in srgb,var(--su-field-accent, #3b82f6) 14%,transparent);border-color:var(--su-field-accent, #3b82f6);gap:.35rem}.su-chip:focus-visible{outline:2px solid var(--su-field-accent, #3b82f6);outline-offset:2px}.su-chip:disabled{cursor:not-allowed;opacity:.5}.su-chip-tick{background:var(--su-field-accent, #3b82f6);height:.9rem;-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/contain no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E\") center/contain no-repeat;opacity:0;scale:.3;transition:opacity .15s ease,scale .25s cubic-bezier(.34,1.56,.64,1),width .22s cubic-bezier(.34,1.56,.64,1);width:0}[aria-pressed=true] .su-chip-tick{opacity:1;scale:1;width:.9rem}@media(prefers-reduced-motion:reduce){.su-chip,.su-chip-tick{transition:none}}\n"] }]
391
391
  }], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }] } });
392
392
 
393
393
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"su-labs-fields.mjs","sources":["../../../../compat/angular-20/build/fields/src/lib/code-boxes/code-boxes.component.ts","../../../../compat/angular-20/build/fields/src/lib/code-boxes/code-boxes.component.html","../../../../compat/angular-20/build/fields/src/lib/strength-meter/password-strength.ts","../../../../compat/angular-20/build/fields/src/lib/strength-meter/strength-meter.component.ts","../../../../compat/angular-20/build/fields/src/lib/strength-meter/strength-meter.component.html","../../../../compat/angular-20/build/fields/src/lib/auto-grow/auto-grow.directive.ts","../../../../compat/angular-20/build/fields/src/lib/switch/switch.component.ts","../../../../compat/angular-20/build/fields/src/lib/switch/switch.component.html","../../../../compat/angular-20/build/fields/src/lib/email-field/email-check.ts","../../../../compat/angular-20/build/fields/src/lib/email-field/email-field.component.ts","../../../../compat/angular-20/build/fields/src/lib/email-field/email-field.component.html","../../../../compat/angular-20/build/fields/src/lib/checkbox/checkbox.component.ts","../../../../compat/angular-20/build/fields/src/lib/checkbox/checkbox.component.html","../../../../compat/angular-20/build/fields/src/lib/chips/chips.component.ts","../../../../compat/angular-20/build/fields/src/lib/chips/chips.component.html","../../../../compat/angular-20/build/fields/src/su-labs-fields.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input, model } from '@angular/core';\n\n/**\n * A short code typed into a row of boxes that fill one by one, then turn green in a wave once the code is complete.\n * One real text field lies over the boxes, so typing, pasting, the phone keyboard and screen readers all work as usual.\n */\n@Component({\n selector: 'su-lib-code-boxes',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './code-boxes.component.html',\n styleUrl: './code-boxes.component.scss',\n})\nexport class SuCodeBoxesComponent {\n readonly value = model('');\n readonly length = input.required<number>();\n readonly label = input.required<string>();\n /** The code is whole and well-formed: the boxes turn green */\n readonly complete = input(false);\n\n protected readonly boxes = computed(() =>\n Array.from({ length: this.length() }, (_, index) => index)\n );\n\n /** Capitals without spaces, never longer than the boxes */\n protected onInput(field: HTMLInputElement): void {\n const code = field.value\n .replace(/\\s/g, '')\n .toUpperCase()\n .slice(0, this.length());\n field.value = code;\n this.value.set(code);\n }\n}\n","<input\n #field\n class=\"field\"\n type=\"text\"\n inputmode=\"text\"\n autocomplete=\"off\"\n autocapitalize=\"characters\"\n spellcheck=\"false\"\n required\n [attr.maxlength]=\"length()\"\n [attr.aria-label]=\"label()\"\n [value]=\"value()\"\n (input)=\"onInput(field)\"\n/>\n<span class=\"boxes\" [class.is-complete]=\"complete()\" aria-hidden=\"true\">\n @for (index of boxes(); track index) {\n <span\n class=\"box\"\n [class.is-filled]=\"index < value().length\"\n [class.is-current]=\"index === value().length\"\n [style.--index]=\"index\"\n >{{ value()[index] }}</span\n >\n }\n</span>\n","/** How strong a new password looks, one step per bar of the meter */\nexport const SU_STRENGTH_LEVELS = ['weak', 'fair', 'good', 'strong'] as const;\nexport type SuStrengthLevel = (typeof SU_STRENGTH_LEVELS)[number];\n\n/** Shortest password the meter counts as more than weak, unless told otherwise */\nexport const SU_DEFAULT_MIN_PASSWORD_LENGTH = 8;\n\n/**\n * Bars of the strength meter a password fills, from 0 (empty) to 4. Under the minimum length it stays at one bar,\n * whatever else it has. Then one bar each for: four characters past the minimum, letters with digits, and symbols or\n * mixed case.\n */\nexport function suPasswordStrength(\n password: string,\n minLength = SU_DEFAULT_MIN_PASSWORD_LENGTH\n): number {\n if (password.length === 0) {\n return 0;\n }\n if (password.length < minLength) {\n return 1;\n }\n const extras = [\n password.length >= minLength + 4,\n /\\p{L}/u.test(password) && /\\d/.test(password),\n /[^\\p{L}\\d]/u.test(password) ||\n (/\\p{Lu}/u.test(password) && /\\p{Ll}/u.test(password)),\n ].filter(Boolean).length;\n return 1 + extras;\n}\n\n/** The meter's word for a number of bars, or null for an empty password */\nexport const suStrengthLevel = (bars: number): SuStrengthLevel | null =>\n SU_STRENGTH_LEVELS[bars - 1] ?? null;\n","import { ChangeDetectionStrategy, Component, computed, effect, input, signal } from '@angular/core';\nimport { SU_DEFAULT_MIN_PASSWORD_LENGTH, SU_STRENGTH_LEVELS, suPasswordStrength, SuStrengthLevel, suStrengthLevel } from './password-strength';\n\n/**\n * Four bars under a new password that fill, and change colour, as the password gets stronger. It follows the field's\n * own typing, so forms keep their plain fields; a form that empties the field by code sends it an `input` event.\n * Its texts come in as inputs, so it fits any language.\n */\n@Component({\n selector: 'su-lib-strength-meter',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './strength-meter.component.html',\n styleUrl: './strength-meter.component.scss',\n})\nexport class SuStrengthMeterComponent {\n readonly field = input.required<HTMLInputElement>();\n /** The meter's name for screen readers, e.g. \"Password strength\" */\n readonly label = input.required<string>();\n /** The word shown for each step */\n readonly levelNames =\n input.required<Readonly<Record<SuStrengthLevel, string>>>();\n readonly minLength = input(SU_DEFAULT_MIN_PASSWORD_LENGTH);\n\n private readonly password = signal('');\n protected readonly steps = SU_STRENGTH_LEVELS;\n protected readonly bars = computed(() =>\n suPasswordStrength(this.password(), this.minLength())\n );\n protected readonly level = computed(() => suStrengthLevel(this.bars()));\n protected readonly levelName = computed(() => {\n const level = this.level();\n return level ? this.levelNames()[level] : null;\n });\n\n constructor() {\n effect(onCleanup => {\n const field = this.field();\n const read = () => this.password.set(field.value);\n read();\n field.addEventListener('input', read);\n onCleanup(() => field.removeEventListener('input', read));\n });\n }\n}\n","<div\n class=\"bars\"\n role=\"meter\"\n [attr.aria-label]=\"label()\"\n aria-valuemin=\"0\"\n [attr.aria-valuemax]=\"steps.length\"\n [attr.aria-valuenow]=\"bars()\"\n [attr.aria-valuetext]=\"levelName()\"\n>\n @for (step of steps; track step; let index = $index) {\n <span class=\"bar\" [class.is-filled]=\"index < bars()\" [style.--index]=\"index\"></span>\n }\n</div>\n@if (levelName(); as name) {\n <small class=\"level\" [attr.data-level]=\"level()\" aria-hidden=\"true\">{{ name }}</small>\n}\n","import { afterNextRender, booleanAttribute, DestroyRef, Directive, ElementRef, inject, input } from '@angular/core';\n\n/** A soft spring that overshoots a little, as the box settles on its new height */\nconst SPRING = 'height 240ms cubic-bezier(0.34, 1.56, 0.64, 1)';\n\n/**\n * A text box that grows a line at a time as the text gets longer, and shrinks back when it is emptied, with a soft\n * spring (none for visitors who asked their device for less motion). `[suAutoGrow]=\"false\"` leaves it as it is.\n */\n@Directive({\n selector: 'textarea[suAutoGrow]',\n host: { '(input)': 'fit()' },\n})\nexport class SuAutoGrowDirective {\n readonly isOn = input(true, { alias: 'suAutoGrow', transform: booleanAttribute });\n\n private readonly box: HTMLTextAreaElement = inject(ElementRef).nativeElement;\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n afterNextRender(() => {\n const onReset = () => setTimeout(() => this.fit());\n this.box.form?.addEventListener('reset', onReset);\n destroyRef.onDestroy(() =>\n this.box.form?.removeEventListener('reset', onReset)\n );\n });\n }\n\n protected fit(): void {\n if (!this.isOn()) {\n return;\n }\n const box = this.box;\n const from = box.offsetHeight;\n box.style.transition = 'none';\n box.style.height = 'auto';\n const to = box.scrollHeight + box.offsetHeight - box.clientHeight;\n box.style.height = `${from}px`;\n void box.offsetHeight;\n box.style.overflowY = 'hidden';\n box.style.transition = matchMedia('(prefers-reduced-motion: reduce)')\n .matches\n ? 'none'\n : SPRING;\n box.style.height = `${to}px`;\n }\n}\n","import { booleanAttribute, ChangeDetectionStrategy, Component, effect, input, linkedSignal, output, untracked } from '@angular/core';\n\n/** Where the label sits: after the switch, or before it with the switch at the end of the row */\nexport type SuSwitchLabelPosition = 'start' | 'end';\n\nexport type SuSwitchSize = 'small' | 'medium';\n\n/**\n * A real checkbox (`role=\"switch\"`) drawn as a sliding switch: the knob stretches while pressed, springs across and a\n * tick pops in when it's on. Put the label inside: `<su-lib-switch [(checked)]=\"on\">Reduce motion</su-lib-switch>`.\n *\n * It shows a click at once and follows `checked` whenever it changes. While `busy` (e.g. saving the change) it ignores\n * clicks, and once no longer busy it shows `checked` again, so a change that failed to save flips back.\n */\n@Component({\n selector: 'su-lib-switch',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './switch.component.html',\n styleUrl: './switch.component.scss',\n})\nexport class SuSwitchComponent {\n readonly checked = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Busy saving the change: clicks are ignored, and `aria-busy` is set */\n readonly busy = input(false, { transform: booleanAttribute });\n /** @default 'end' */\n readonly labelPosition = input<SuSwitchLabelPosition>('end');\n /** @default 'medium' */\n readonly size = input<SuSwitchSize>('medium');\n /** Switched by the user: the new value */\n readonly checkedChange = output<boolean>();\n\n protected readonly shown = linkedSignal(() => this.checked());\n\n constructor() {\n effect(() => {\n if (!this.busy()) {\n untracked(() => this.shown.set(this.checked()));\n }\n });\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.busy()) {\n event.preventDefault();\n }\n }\n\n protected onChange(event: Event): void {\n if (event.target instanceof HTMLInputElement) {\n this.shown.set(event.target.checked);\n this.checkedChange.emit(event.target.checked);\n }\n }\n}\n","<label class=\"su-switch su-switch-{{ size() }}\" [class.is-label-start]=\"labelPosition() === 'start'\">\n <input\n type=\"checkbox\"\n role=\"switch\"\n [checked]=\"shown()\"\n [disabled]=\"disabled()\"\n [attr.aria-busy]=\"busy() ? true : null\"\n (click)=\"onClick($event)\"\n (change)=\"onChange($event)\"\n />\n <span class=\"su-switch-track\" aria-hidden=\"true\"></span>\n <span class=\"su-switch-label\"><ng-content /></span>\n</label>\n","/** What's wrong with an email address, in the order it's checked */\nexport type SuEmailProblem = 'empty' | 'spaces' | 'at' | 'name' | 'domain' | 'dot' | 'ending';\n\n/** The outcome of `suCheckEmail` */\nexport interface SuEmailCheck {\n readonly valid: boolean;\n readonly problem: SuEmailProblem | null;\n /** The address with a common domain in place of a likely typo, e.g. `jo@gmail.com` for `jo@gmial.com`, or null */\n readonly suggestion: string | null;\n}\n\n/** Domains `suCheckEmail` suggests when one is mistyped */\nexport const SU_COMMON_EMAIL_DOMAINS: readonly string[] = [\n 'gmail.com',\n 'hotmail.com',\n 'outlook.com',\n 'live.com',\n 'yahoo.com',\n 'icloud.com',\n 'me.com',\n 'aol.com',\n 'proton.me',\n 'protonmail.com',\n 'gmx.com',\n 'yandex.com',\n 'hotmail.es',\n 'yahoo.es',\n];\n\n/** How far a typed domain may be from a common one, in single-letter edits, to suggest it */\nconst MAX_TYPO_DISTANCE = 2;\n\nfunction editDistance(a: string, b: string): number {\n let previous = Array.from({ length: b.length + 1 }, (_, index) => index);\n for (let i = 1; i <= a.length; i++) {\n const current = [i];\n for (let j = 1; j <= b.length; j++) {\n current[j] = Math.min(previous[j] + 1, current[j - 1] + 1, previous[j - 1] + (a[i - 1] === b[j - 1] ? 0 : 1));\n }\n previous = current;\n }\n return previous[b.length];\n}\n\n/** The common domain a typed one most likely meant, or null when it's already common or nothing is close */\nfunction closestDomain(domain: string, domains: readonly string[]): string | null {\n if (!domain || domains.includes(domain)) {\n return null;\n }\n let best: { readonly domain: string; readonly distance: number } | null = null;\n for (const candidate of domains) {\n const distance = editDistance(domain, candidate);\n if (distance <= MAX_TYPO_DISTANCE && (!best || distance < best.distance)) {\n best = { domain: candidate, distance };\n }\n }\n return best?.domain ?? null;\n}\n\nfunction problemOf(email: string): SuEmailProblem | null {\n if (email === '') {\n return 'empty';\n }\n if (/\\s/.test(email)) {\n return 'spaces';\n }\n const parts = email.split('@');\n if (parts.length !== 2) {\n return 'at';\n }\n const [name, domain] = parts;\n if (!name) {\n return 'name';\n }\n if (!domain) {\n return 'domain';\n }\n const labels = domain.split('.');\n if (labels.length < 2 || labels.some((label) => label === '')) {\n return 'dot';\n }\n return /^\\p{L}{2,}$/u.test(labels[labels.length - 1]) ? null : 'ending';\n}\n\n/**\n * Checks an email address the way people mistype them: empty, spaces, not exactly one @, nothing before or after it,\n * a domain without a proper dot, or an ending shorter than two letters. It also suggests a common domain for a\n * likely typo (`gmial.com` → `gmail.com`), even when the address is otherwise valid.\n */\nexport function suCheckEmail(value: string, domains: readonly string[] = SU_COMMON_EMAIL_DOMAINS): SuEmailCheck {\n const email = value.trim();\n const problem = problemOf(email);\n const [name = '', domain = ''] = email.split('@');\n const fixable = problem === null || problem === 'dot' || problem === 'ending';\n const fix = fixable && name ? closestDomain(domain.toLowerCase(), domains) : null;\n return { valid: problem === null, problem, suggestion: fix ? `${name}@${fix}` : null };\n}\n","import { booleanAttribute, ChangeDetectionStrategy, Component, computed, effect, input, model, output, signal } from '@angular/core';\nimport { SU_COMMON_EMAIL_DOMAINS, suCheckEmail, SuEmailProblem } from './email-check';\n\n/** The field's texts, e.g. in the page's language */\nexport interface SuEmailMessages extends Readonly<Record<SuEmailProblem, string>> {\n /** Before a suggested address: \"Did you mean jo@gmail.com?\" */\n readonly suggestion: string;\n}\n\nexport const SU_EMAIL_MESSAGES: SuEmailMessages = {\n empty: 'Enter your email address',\n spaces: 'An email address has no spaces',\n at: 'An email address has one @, like name@example.com',\n name: 'Add the part before the @',\n domain: 'Add the part after the @, like example.com',\n dot: 'The part after the @ needs a dot, like example.com',\n ending: 'The ending after the last dot needs at least two letters',\n suggestion: 'Did you mean',\n};\n\nlet nextId = 0;\n\n/**\n * An email field that checks the address the way people mistype it, and suggests a common domain for a likely typo\n * (`gmial.com` → `gmail.com`, applied with one tap). It stays quiet while typing and says what's wrong once the field\n * is left; a tick shows when the address looks right.\n */\n@Component({\n selector: 'su-lib-email-field',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class.is-floating]': 'floating()' },\n templateUrl: './email-field.component.html',\n styleUrl: './email-field.component.scss',\n})\nexport class SuEmailFieldComponent {\n readonly value = model('');\n /** The visible label */\n readonly label = input.required<string>();\n readonly placeholder = input<string>();\n /** An empty field counts as a problem @default false */\n readonly required = input(false, { transform: booleanAttribute });\n readonly messages = input<Partial<SuEmailMessages>>({});\n /** The label sits inside the field and moves up onto its border when the field is focused or filled @default false */\n readonly floating = input(false, { transform: booleanAttribute });\n /** Shows the problem before the field was left, e.g. when its form is sent @default false */\n readonly showProblem = input(false, { transform: booleanAttribute });\n /** Domains to suggest when one is mistyped */\n readonly domains = input<readonly string[]>(SU_COMMON_EMAIL_DOMAINS);\n /** Whether the address is valid, on every change */\n readonly validityChange = output<boolean>();\n\n protected readonly id = `su-email-${nextId++}`;\n protected readonly touched = signal(false);\n protected readonly check = computed(() => suCheckEmail(this.value(), this.domains()));\n protected readonly text = computed<SuEmailMessages>(() => ({ ...SU_EMAIL_MESSAGES, ...this.messages() }));\n /** The problem to show: once the field was left or `showProblem` is on, and an empty field only when it's required */\n protected readonly problem = computed(() => {\n const { problem } = this.check();\n const isShown = this.touched() || this.showProblem();\n if (!isShown || !problem || (problem === 'empty' && !this.required())) {\n return null;\n }\n return problem;\n });\n\n constructor() {\n effect(() => this.validityChange.emit(this.check().valid));\n }\n\n protected onInput(event: Event): void {\n if (event.target instanceof HTMLInputElement) {\n this.value.set(event.target.value);\n }\n }\n\n protected apply(suggestion: string): void {\n this.value.set(suggestion);\n this.touched.set(true);\n }\n}\n","@let result = check();\n@let t = text();\n@if (!floating()) {\n <label class=\"su-email-label\" [for]=\"id\">{{ label() }}</label>\n}\n<div class=\"su-email-box\" [class.is-valid]=\"result.valid\" [class.is-invalid]=\"problem() !== null\">\n <input\n class=\"su-email-input\"\n type=\"email\"\n inputmode=\"email\"\n autocomplete=\"email\"\n autocapitalize=\"off\"\n spellcheck=\"false\"\n [id]=\"id\"\n [value]=\"value()\"\n [required]=\"required()\"\n [attr.placeholder]=\"floating() ? ' ' : (placeholder() ?? null)\"\n [attr.aria-invalid]=\"problem() !== null ? true : null\"\n [attr.aria-describedby]=\"id + '-message'\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n />\n @if (floating()) {\n <label class=\"su-email-label su-email-floating-label\" [for]=\"id\">{{ label() }}</label>\n }\n <span class=\"su-email-tick\" aria-hidden=\"true\"></span>\n</div>\n<p class=\"su-email-message\" aria-live=\"polite\" [id]=\"id + '-message'\">\n @if (problem(); as problem) {\n <span class=\"su-email-problem\">{{ t[problem] }}</span>\n }\n @if (result.suggestion; as suggestion) {\n <span class=\"su-email-suggestion\">\n {{ t.suggestion }}\n <button type=\"button\" class=\"su-email-fix\" (click)=\"apply(suggestion)\">{{ suggestion }}</button>?\n </span>\n }\n</p>\n","import { booleanAttribute, ChangeDetectionStrategy, Component, input, linkedSignal, output } from '@angular/core';\n\n/**\n * A real checkbox whose tick draws itself in, with a small squash when pressed and a dash when partly checked. Put the\n * label inside: `<su-lib-checkbox [(checked)]=\"agree\">I agree</su-lib-checkbox>`.\n */\n@Component({\n selector: 'su-lib-checkbox',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './checkbox.component.html',\n styleUrl: './checkbox.component.scss',\n})\nexport class SuCheckboxComponent {\n readonly checked = input(false, { transform: booleanAttribute });\n /** Partly checked, e.g. some of a group; a click checks it */\n readonly indeterminate = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Ticked or unticked by the user: the new value */\n readonly checkedChange = output<boolean>();\n\n protected readonly shown = linkedSignal(() => this.checked());\n\n protected onChange(event: Event): void {\n if (event.target instanceof HTMLInputElement) {\n this.shown.set(event.target.checked);\n this.checkedChange.emit(event.target.checked);\n }\n }\n}\n","<label class=\"su-checkbox\" [class.is-mixed]=\"indeterminate() && !shown()\">\n <input\n type=\"checkbox\"\n [checked]=\"shown()\"\n [indeterminate]=\"indeterminate() && !shown()\"\n [disabled]=\"disabled()\"\n (change)=\"onChange($event)\"\n />\n <span class=\"su-checkbox-box\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\">\n <path class=\"su-checkbox-tick\" d=\"M5 12.5l4.5 4.5L19 7.5\" />\n <path class=\"su-checkbox-dash\" d=\"M6 12h12\" />\n </svg>\n </span>\n <span class=\"su-checkbox-label\"><ng-content /></span>\n</label>\n","import { booleanAttribute, ChangeDetectionStrategy, Component, input, model } from '@angular/core';\n\n/** One chip: the value it stands for and its text */\nexport interface SuChipOption<TValue extends string> {\n readonly value: TValue;\n readonly label: string;\n readonly disabled?: boolean;\n}\n\n/**\n * Toggle chips to pick several options (or one, with `multiple` off): each is a button that pops a tick in when\n * picked. `<su-lib-chips label=\"Categories\" [options]=\"categories\" [(value)]=\"picked\" />`\n */\n@Component({\n selector: 'su-lib-chips',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './chips.component.html',\n styleUrl: './chips.component.scss',\n})\nexport class SuChipsComponent<TValue extends string> {\n readonly options = input.required<readonly SuChipOption<TValue>[]>();\n /** The picked values, in the options' order */\n readonly value = model<readonly TValue[]>([]);\n /** The group's name for screen readers */\n readonly label = input.required<string>();\n /** Several can be picked; off, picking one replaces the other @default true */\n readonly multiple = input(true, { transform: booleanAttribute });\n\n protected isPicked(value: TValue): boolean {\n return this.value().includes(value);\n }\n\n protected toggle(option: SuChipOption<TValue>): void {\n if (!this.multiple()) {\n this.value.set([option.value]);\n return;\n }\n const picked = this.isPicked(option.value)\n ? this.value().filter((value) => value !== option.value)\n : [...this.value(), option.value];\n this.value.set(this.options().map((item) => item.value).filter((value) => picked.includes(value)));\n }\n}\n","<div class=\"su-chips\" role=\"group\" [attr.aria-label]=\"label()\">\n @for (option of options(); track option.value) {\n <button\n type=\"button\"\n class=\"su-chip\"\n [attr.aria-pressed]=\"isPicked(option.value)\"\n [disabled]=\"option.disabled ?? false\"\n (click)=\"toggle(option)\"\n >\n <span class=\"su-chip-tick\" aria-hidden=\"true\"></span>\n {{ option.label }}\n </button>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAEA;;;AAGG;MAOU,oBAAoB,CAAA;AACtB,IAAA,KAAK,GAAG,KAAK,CAAC,EAAE,iDAAC;AACjB,IAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,iDAAU;AACjC,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,gDAAU;;AAEhC,IAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,oDAAC;AAEb,IAAA,KAAK,GAAG,QAAQ,CAAC,MAClC,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,KAAK,CAAC,iDAC3D;;AAGS,IAAA,OAAO,CAAC,KAAuB,EAAA;AACvC,QAAA,MAAM,IAAI,GAAG,KAAK,CAAC;AAChB,aAAA,OAAO,CAAC,KAAK,EAAE,EAAE;AACjB,aAAA,WAAW;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EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,omBCnB7B,+bAcA,EAAA,MAAA,EAAA,CAAA,49CAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FDKa,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;+BACE,cAAc,EAAA,eAAA,EACP,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,+bAAA,EAAA,MAAA,EAAA,CAAA,49CAAA,CAAA,EAAA;;;AEfjD;;AAEG;;;;"}
1
+ {"version":3,"file":"su-labs-fields.mjs","sources":["../../../../compat/angular-21/build/fields/src/lib/code-boxes/code-boxes.component.ts","../../../../compat/angular-21/build/fields/src/lib/code-boxes/code-boxes.component.html","../../../../compat/angular-21/build/fields/src/lib/strength-meter/password-strength.ts","../../../../compat/angular-21/build/fields/src/lib/strength-meter/strength-meter.component.ts","../../../../compat/angular-21/build/fields/src/lib/strength-meter/strength-meter.component.html","../../../../compat/angular-21/build/fields/src/lib/auto-grow/auto-grow.directive.ts","../../../../compat/angular-21/build/fields/src/lib/switch/switch.component.ts","../../../../compat/angular-21/build/fields/src/lib/switch/switch.component.html","../../../../compat/angular-21/build/fields/src/lib/email-field/email-check.ts","../../../../compat/angular-21/build/fields/src/lib/email-field/email-field.component.ts","../../../../compat/angular-21/build/fields/src/lib/email-field/email-field.component.html","../../../../compat/angular-21/build/fields/src/lib/checkbox/checkbox.component.ts","../../../../compat/angular-21/build/fields/src/lib/checkbox/checkbox.component.html","../../../../compat/angular-21/build/fields/src/lib/chips/chips.component.ts","../../../../compat/angular-21/build/fields/src/lib/chips/chips.component.html","../../../../compat/angular-21/build/fields/src/su-labs-fields.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input, model } from '@angular/core';\n\n/**\n * A short code typed into a row of boxes that fill one by one, then turn green in a wave once the code is complete.\n * One real text field lies over the boxes, so typing, pasting, the phone keyboard and screen readers all work as usual.\n */\n@Component({\n selector: 'su-lib-code-boxes',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './code-boxes.component.html',\n styleUrl: './code-boxes.component.scss',\n})\nexport class SuCodeBoxesComponent {\n readonly value = model('');\n readonly length = input.required<number>();\n readonly label = input.required<string>();\n /** The code is whole and well-formed: the boxes turn green */\n readonly complete = input(false);\n\n protected readonly boxes = computed(() =>\n Array.from({ length: this.length() }, (_, index) => index)\n );\n\n /** Capitals without spaces, never longer than the boxes */\n protected onInput(field: HTMLInputElement): void {\n const code = field.value\n .replace(/\\s/g, '')\n .toUpperCase()\n .slice(0, this.length());\n field.value = code;\n this.value.set(code);\n }\n}\n","<input\n #field\n class=\"field\"\n type=\"text\"\n inputmode=\"text\"\n autocomplete=\"off\"\n autocapitalize=\"characters\"\n spellcheck=\"false\"\n required\n [attr.maxlength]=\"length()\"\n [attr.aria-label]=\"label()\"\n [value]=\"value()\"\n (input)=\"onInput(field)\"\n/>\n<span class=\"boxes\" [class.is-complete]=\"complete()\" aria-hidden=\"true\">\n @for (index of boxes(); track index) {\n <span\n class=\"box\"\n [class.is-filled]=\"index < value().length\"\n [class.is-current]=\"index === value().length\"\n [style.--index]=\"index\"\n >{{ value()[index] }}</span\n >\n }\n</span>\n","/** How strong a new password looks, one step per bar of the meter */\nexport const SU_STRENGTH_LEVELS = ['weak', 'fair', 'good', 'strong'] as const;\nexport type SuStrengthLevel = (typeof SU_STRENGTH_LEVELS)[number];\n\n/** Shortest password the meter counts as more than weak, unless told otherwise */\nexport const SU_DEFAULT_MIN_PASSWORD_LENGTH = 8;\n\n/**\n * Bars of the strength meter a password fills, from 0 (empty) to 4. Under the minimum length it stays at one bar,\n * whatever else it has. Then one bar each for: four characters past the minimum, letters with digits, and symbols or\n * mixed case.\n */\nexport function suPasswordStrength(\n password: string,\n minLength = SU_DEFAULT_MIN_PASSWORD_LENGTH\n): number {\n if (password.length === 0) {\n return 0;\n }\n if (password.length < minLength) {\n return 1;\n }\n const extras = [\n password.length >= minLength + 4,\n /\\p{L}/u.test(password) && /\\d/.test(password),\n /[^\\p{L}\\d]/u.test(password) ||\n (/\\p{Lu}/u.test(password) && /\\p{Ll}/u.test(password)),\n ].filter(Boolean).length;\n return 1 + extras;\n}\n\n/** The meter's word for a number of bars, or null for an empty password */\nexport const suStrengthLevel = (bars: number): SuStrengthLevel | null =>\n SU_STRENGTH_LEVELS[bars - 1] ?? null;\n","import { ChangeDetectionStrategy, Component, computed, effect, input, signal } from '@angular/core';\nimport { SU_DEFAULT_MIN_PASSWORD_LENGTH, SU_STRENGTH_LEVELS, suPasswordStrength, SuStrengthLevel, suStrengthLevel } from './password-strength';\n\n/**\n * Four bars under a new password that fill, and change colour, as the password gets stronger. It follows the field's\n * own typing, so forms keep their plain fields; a form that empties the field by code sends it an `input` event.\n * Its texts come in as inputs, so it fits any language.\n */\n@Component({\n selector: 'su-lib-strength-meter',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './strength-meter.component.html',\n styleUrl: './strength-meter.component.scss',\n})\nexport class SuStrengthMeterComponent {\n readonly field = input.required<HTMLInputElement>();\n /** The meter's name for screen readers, e.g. \"Password strength\" */\n readonly label = input.required<string>();\n /** The word shown for each step */\n readonly levelNames =\n input.required<Readonly<Record<SuStrengthLevel, string>>>();\n readonly minLength = input(SU_DEFAULT_MIN_PASSWORD_LENGTH);\n\n private readonly password = signal('');\n protected readonly steps = SU_STRENGTH_LEVELS;\n protected readonly bars = computed(() =>\n suPasswordStrength(this.password(), this.minLength())\n );\n protected readonly level = computed(() => suStrengthLevel(this.bars()));\n protected readonly levelName = computed(() => {\n const level = this.level();\n return level ? this.levelNames()[level] : null;\n });\n\n constructor() {\n effect(onCleanup => {\n const field = this.field();\n const read = () => this.password.set(field.value);\n read();\n field.addEventListener('input', read);\n onCleanup(() => field.removeEventListener('input', read));\n });\n }\n}\n","<div\n class=\"bars\"\n role=\"meter\"\n [attr.aria-label]=\"label()\"\n aria-valuemin=\"0\"\n [attr.aria-valuemax]=\"steps.length\"\n [attr.aria-valuenow]=\"bars()\"\n [attr.aria-valuetext]=\"levelName()\"\n>\n @for (step of steps; track step; let index = $index) {\n <span class=\"bar\" [class.is-filled]=\"index < bars()\" [style.--index]=\"index\"></span>\n }\n</div>\n@if (levelName(); as name) {\n <small class=\"level\" [attr.data-level]=\"level()\" aria-hidden=\"true\">{{ name }}</small>\n}\n","import { afterNextRender, booleanAttribute, DestroyRef, Directive, ElementRef, inject, input } from '@angular/core';\n\n/** A soft spring that overshoots a little, as the box settles on its new height */\nconst SPRING = 'height 240ms cubic-bezier(0.34, 1.56, 0.64, 1)';\n\n/**\n * A text box that grows a line at a time as the text gets longer, and shrinks back when it is emptied, with a soft\n * spring (none for visitors who asked their device for less motion). `[suAutoGrow]=\"false\"` leaves it as it is.\n */\n@Directive({\n selector: 'textarea[suAutoGrow]',\n host: { '(input)': 'fit()' },\n})\nexport class SuAutoGrowDirective {\n readonly isOn = input(true, { alias: 'suAutoGrow', transform: booleanAttribute });\n\n private readonly box: HTMLTextAreaElement = inject(ElementRef).nativeElement;\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n afterNextRender(() => {\n const onReset = () => setTimeout(() => this.fit());\n this.box.form?.addEventListener('reset', onReset);\n destroyRef.onDestroy(() =>\n this.box.form?.removeEventListener('reset', onReset)\n );\n });\n }\n\n protected fit(): void {\n if (!this.isOn()) {\n return;\n }\n const box = this.box;\n const from = box.offsetHeight;\n box.style.transition = 'none';\n box.style.height = 'auto';\n const to = box.scrollHeight + box.offsetHeight - box.clientHeight;\n box.style.height = `${from}px`;\n void box.offsetHeight;\n box.style.overflowY = 'hidden';\n box.style.transition = matchMedia('(prefers-reduced-motion: reduce)')\n .matches\n ? 'none'\n : SPRING;\n box.style.height = `${to}px`;\n }\n}\n","import { booleanAttribute, ChangeDetectionStrategy, Component, effect, input, linkedSignal, output, untracked } from '@angular/core';\n\n/** Where the label sits: after the switch, or before it with the switch at the end of the row */\nexport type SuSwitchLabelPosition = 'start' | 'end';\n\nexport type SuSwitchSize = 'small' | 'medium';\n\n/**\n * A real checkbox (`role=\"switch\"`) drawn as a sliding switch: the knob stretches while pressed, springs across and a\n * tick pops in when it's on. Put the label inside: `<su-lib-switch [(checked)]=\"on\">Reduce motion</su-lib-switch>`.\n *\n * It shows a click at once and follows `checked` whenever it changes. While `busy` (e.g. saving the change) it ignores\n * clicks, and once no longer busy it shows `checked` again, so a change that failed to save flips back.\n */\n@Component({\n selector: 'su-lib-switch',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './switch.component.html',\n styleUrl: './switch.component.scss',\n})\nexport class SuSwitchComponent {\n readonly checked = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Busy saving the change: clicks are ignored, and `aria-busy` is set */\n readonly busy = input(false, { transform: booleanAttribute });\n /** @default 'end' */\n readonly labelPosition = input<SuSwitchLabelPosition>('end');\n /** @default 'medium' */\n readonly size = input<SuSwitchSize>('medium');\n /** Switched by the user: the new value */\n readonly checkedChange = output<boolean>();\n\n protected readonly shown = linkedSignal(() => this.checked());\n\n constructor() {\n effect(() => {\n if (!this.busy()) {\n untracked(() => this.shown.set(this.checked()));\n }\n });\n }\n\n protected onClick(event: MouseEvent): void {\n if (this.busy()) {\n event.preventDefault();\n }\n }\n\n protected onChange(event: Event): void {\n if (event.target instanceof HTMLInputElement) {\n this.shown.set(event.target.checked);\n this.checkedChange.emit(event.target.checked);\n }\n }\n}\n","<label class=\"su-switch su-switch-{{ size() }}\" [class.is-label-start]=\"labelPosition() === 'start'\">\n <input\n type=\"checkbox\"\n role=\"switch\"\n [checked]=\"shown()\"\n [disabled]=\"disabled()\"\n [attr.aria-busy]=\"busy() ? true : null\"\n (click)=\"onClick($event)\"\n (change)=\"onChange($event)\"\n />\n <span class=\"su-switch-track\" aria-hidden=\"true\"></span>\n <span class=\"su-switch-label\"><ng-content /></span>\n</label>\n","/** What's wrong with an email address, in the order it's checked */\nexport type SuEmailProblem = 'empty' | 'spaces' | 'at' | 'name' | 'domain' | 'dot' | 'ending';\n\n/** The outcome of `suCheckEmail` */\nexport interface SuEmailCheck {\n readonly valid: boolean;\n readonly problem: SuEmailProblem | null;\n /** The address with a common domain in place of a likely typo, e.g. `jo@gmail.com` for `jo@gmial.com`, or null */\n readonly suggestion: string | null;\n}\n\n/** Domains `suCheckEmail` suggests when one is mistyped */\nexport const SU_COMMON_EMAIL_DOMAINS: readonly string[] = [\n 'gmail.com',\n 'hotmail.com',\n 'outlook.com',\n 'live.com',\n 'yahoo.com',\n 'icloud.com',\n 'me.com',\n 'aol.com',\n 'proton.me',\n 'protonmail.com',\n 'gmx.com',\n 'yandex.com',\n 'hotmail.es',\n 'yahoo.es',\n];\n\n/** How far a typed domain may be from a common one, in single-letter edits, to suggest it */\nconst MAX_TYPO_DISTANCE = 2;\n\nfunction editDistance(a: string, b: string): number {\n let previous = Array.from({ length: b.length + 1 }, (_, index) => index);\n for (let i = 1; i <= a.length; i++) {\n const current = [i];\n for (let j = 1; j <= b.length; j++) {\n current[j] = Math.min(previous[j] + 1, current[j - 1] + 1, previous[j - 1] + (a[i - 1] === b[j - 1] ? 0 : 1));\n }\n previous = current;\n }\n return previous[b.length];\n}\n\n/** The common domain a typed one most likely meant, or null when it's already common or nothing is close */\nfunction closestDomain(domain: string, domains: readonly string[]): string | null {\n if (!domain || domains.includes(domain)) {\n return null;\n }\n let best: { readonly domain: string; readonly distance: number } | null = null;\n for (const candidate of domains) {\n const distance = editDistance(domain, candidate);\n if (distance <= MAX_TYPO_DISTANCE && (!best || distance < best.distance)) {\n best = { domain: candidate, distance };\n }\n }\n return best?.domain ?? null;\n}\n\nfunction problemOf(email: string): SuEmailProblem | null {\n if (email === '') {\n return 'empty';\n }\n if (/\\s/.test(email)) {\n return 'spaces';\n }\n const parts = email.split('@');\n if (parts.length !== 2) {\n return 'at';\n }\n const [name, domain] = parts;\n if (!name) {\n return 'name';\n }\n if (!domain) {\n return 'domain';\n }\n const labels = domain.split('.');\n if (labels.length < 2 || labels.some((label) => label === '')) {\n return 'dot';\n }\n return /^\\p{L}{2,}$/u.test(labels[labels.length - 1]) ? null : 'ending';\n}\n\n/**\n * Checks an email address the way people mistype them: empty, spaces, not exactly one @, nothing before or after it,\n * a domain without a proper dot, or an ending shorter than two letters. It also suggests a common domain for a\n * likely typo (`gmial.com` → `gmail.com`), even when the address is otherwise valid.\n */\nexport function suCheckEmail(value: string, domains: readonly string[] = SU_COMMON_EMAIL_DOMAINS): SuEmailCheck {\n const email = value.trim();\n const problem = problemOf(email);\n const [name = '', domain = ''] = email.split('@');\n const fixable = problem === null || problem === 'dot' || problem === 'ending';\n const fix = fixable && name ? closestDomain(domain.toLowerCase(), domains) : null;\n return { valid: problem === null, problem, suggestion: fix ? `${name}@${fix}` : null };\n}\n","import { booleanAttribute, ChangeDetectionStrategy, Component, computed, effect, input, model, output, signal } from '@angular/core';\nimport { SU_COMMON_EMAIL_DOMAINS, suCheckEmail, SuEmailProblem } from './email-check';\n\n/** The field's texts, e.g. in the page's language */\nexport interface SuEmailMessages extends Readonly<Record<SuEmailProblem, string>> {\n /** Before a suggested address: \"Did you mean jo@gmail.com?\" */\n readonly suggestion: string;\n}\n\nexport const SU_EMAIL_MESSAGES: SuEmailMessages = {\n empty: 'Enter your email address',\n spaces: 'An email address has no spaces',\n at: 'An email address has one @, like name@example.com',\n name: 'Add the part before the @',\n domain: 'Add the part after the @, like example.com',\n dot: 'The part after the @ needs a dot, like example.com',\n ending: 'The ending after the last dot needs at least two letters',\n suggestion: 'Did you mean',\n};\n\nlet nextId = 0;\n\n/**\n * An email field that checks the address the way people mistype it, and suggests a common domain for a likely typo\n * (`gmial.com` → `gmail.com`, applied with one tap). It stays quiet while typing and says what's wrong once the field\n * is left; a tick shows when the address looks right.\n */\n@Component({\n selector: 'su-lib-email-field',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class.is-floating]': 'floating()' },\n templateUrl: './email-field.component.html',\n styleUrl: './email-field.component.scss',\n})\nexport class SuEmailFieldComponent {\n readonly value = model('');\n /** The visible label */\n readonly label = input.required<string>();\n readonly placeholder = input<string>();\n /** An empty field counts as a problem @default false */\n readonly required = input(false, { transform: booleanAttribute });\n readonly messages = input<Partial<SuEmailMessages>>({});\n /** The label sits inside the field and moves up onto its border when the field is focused or filled @default false */\n readonly floating = input(false, { transform: booleanAttribute });\n /** Shows the problem before the field was left, e.g. when its form is sent @default false */\n readonly showProblem = input(false, { transform: booleanAttribute });\n /** Domains to suggest when one is mistyped */\n readonly domains = input<readonly string[]>(SU_COMMON_EMAIL_DOMAINS);\n /** Whether the address is valid, on every change */\n readonly validityChange = output<boolean>();\n\n protected readonly id = `su-email-${nextId++}`;\n protected readonly touched = signal(false);\n protected readonly check = computed(() => suCheckEmail(this.value(), this.domains()));\n protected readonly text = computed<SuEmailMessages>(() => ({ ...SU_EMAIL_MESSAGES, ...this.messages() }));\n /** The problem to show: once the field was left or `showProblem` is on, and an empty field only when it's required */\n protected readonly problem = computed(() => {\n const { problem } = this.check();\n const isShown = this.touched() || this.showProblem();\n if (!isShown || !problem || (problem === 'empty' && !this.required())) {\n return null;\n }\n return problem;\n });\n\n constructor() {\n effect(() => this.validityChange.emit(this.check().valid));\n }\n\n protected onInput(event: Event): void {\n if (event.target instanceof HTMLInputElement) {\n this.value.set(event.target.value);\n }\n }\n\n protected apply(suggestion: string): void {\n this.value.set(suggestion);\n this.touched.set(true);\n }\n}\n","@let result = check();\n@let t = text();\n@if (!floating()) {\n <label class=\"su-email-label\" [for]=\"id\">{{ label() }}</label>\n}\n<div class=\"su-email-box\" [class.is-valid]=\"result.valid\" [class.is-invalid]=\"problem() !== null\">\n <input\n class=\"su-email-input\"\n type=\"email\"\n inputmode=\"email\"\n autocomplete=\"email\"\n autocapitalize=\"off\"\n spellcheck=\"false\"\n [id]=\"id\"\n [value]=\"value()\"\n [required]=\"required()\"\n [attr.placeholder]=\"floating() ? ' ' : (placeholder() ?? null)\"\n [attr.aria-invalid]=\"problem() !== null ? true : null\"\n [attr.aria-describedby]=\"id + '-message'\"\n (input)=\"onInput($event)\"\n (blur)=\"touched.set(true)\"\n />\n @if (floating()) {\n <label class=\"su-email-label su-email-floating-label\" [for]=\"id\">{{ label() }}</label>\n }\n <span class=\"su-email-tick\" aria-hidden=\"true\"></span>\n</div>\n<p class=\"su-email-message\" aria-live=\"polite\" [id]=\"id + '-message'\">\n @if (problem(); as problem) {\n <span class=\"su-email-problem\">{{ t[problem] }}</span>\n }\n @if (result.suggestion; as suggestion) {\n <span class=\"su-email-suggestion\">\n {{ t.suggestion }}\n <button type=\"button\" class=\"su-email-fix\" (click)=\"apply(suggestion)\">{{ suggestion }}</button>?\n </span>\n }\n</p>\n","import { booleanAttribute, ChangeDetectionStrategy, Component, input, linkedSignal, output } from '@angular/core';\n\n/**\n * A real checkbox whose tick draws itself in, with a small squash when pressed and a dash when partly checked. Put the\n * label inside: `<su-lib-checkbox [(checked)]=\"agree\">I agree</su-lib-checkbox>`.\n */\n@Component({\n selector: 'su-lib-checkbox',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './checkbox.component.html',\n styleUrl: './checkbox.component.scss',\n})\nexport class SuCheckboxComponent {\n readonly checked = input(false, { transform: booleanAttribute });\n /** Partly checked, e.g. some of a group; a click checks it */\n readonly indeterminate = input(false, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n /** Ticked or unticked by the user: the new value */\n readonly checkedChange = output<boolean>();\n\n protected readonly shown = linkedSignal(() => this.checked());\n\n protected onChange(event: Event): void {\n if (event.target instanceof HTMLInputElement) {\n this.shown.set(event.target.checked);\n this.checkedChange.emit(event.target.checked);\n }\n }\n}\n","<label class=\"su-checkbox\" [class.is-mixed]=\"indeterminate() && !shown()\">\n <input\n type=\"checkbox\"\n [checked]=\"shown()\"\n [indeterminate]=\"indeterminate() && !shown()\"\n [disabled]=\"disabled()\"\n (change)=\"onChange($event)\"\n />\n <span class=\"su-checkbox-box\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 24 24\">\n <path class=\"su-checkbox-tick\" d=\"M5 12.5l4.5 4.5L19 7.5\" />\n <path class=\"su-checkbox-dash\" d=\"M6 12h12\" />\n </svg>\n </span>\n <span class=\"su-checkbox-label\"><ng-content /></span>\n</label>\n","import { booleanAttribute, ChangeDetectionStrategy, Component, input, model } from '@angular/core';\n\n/** One chip: the value it stands for and its text */\nexport interface SuChipOption<TValue extends string> {\n readonly value: TValue;\n readonly label: string;\n readonly disabled?: boolean;\n}\n\n/**\n * Toggle chips to pick several options (or one, with `multiple` off): each is a button that pops a tick in when\n * picked. `<su-lib-chips label=\"Categories\" [options]=\"categories\" [(value)]=\"picked\" />`\n */\n@Component({\n selector: 'su-lib-chips',\n changeDetection: ChangeDetectionStrategy.OnPush,\n templateUrl: './chips.component.html',\n styleUrl: './chips.component.scss',\n})\nexport class SuChipsComponent<TValue extends string> {\n readonly options = input.required<readonly SuChipOption<TValue>[]>();\n /** The picked values, in the options' order */\n readonly value = model<readonly TValue[]>([]);\n /** The group's name for screen readers */\n readonly label = input.required<string>();\n /** Several can be picked; off, picking one replaces the other @default true */\n readonly multiple = input(true, { transform: booleanAttribute });\n\n protected isPicked(value: TValue): boolean {\n return this.value().includes(value);\n }\n\n protected toggle(option: SuChipOption<TValue>): void {\n if (!this.multiple()) {\n this.value.set([option.value]);\n return;\n }\n const picked = this.isPicked(option.value)\n ? this.value().filter((value) => value !== option.value)\n : [...this.value(), option.value];\n this.value.set(this.options().map((item) => item.value).filter((value) => picked.includes(value)));\n }\n}\n","<div class=\"su-chips\" role=\"group\" [attr.aria-label]=\"label()\">\n @for (option of options(); track option.value) {\n <button\n type=\"button\"\n class=\"su-chip\"\n [attr.aria-pressed]=\"isPicked(option.value)\"\n [disabled]=\"option.disabled ?? false\"\n (click)=\"toggle(option)\"\n >\n <span class=\"su-chip-tick\" aria-hidden=\"true\"></span>\n {{ option.label }}\n </button>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport *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,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,omBCnB7B,+bAcA,EAAA,MAAA,EAAA,CAAA,4uDAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FDKa,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;+BACE,cAAc,EAAA,eAAA,EACP,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,+bAAA,EAAA,MAAA,EAAA,CAAA,4uDAAA,CAAA,EAAA;;;AEfjD;;AAEG;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@su-labs/fields",
3
- "version": "20.2.0",
3
+ "version": "21.2.0",
4
4
  "description": "Animated Angular form fields: code boxes that fill one by one, a password strength meter, an email field that catches typos, a sliding switch, checkboxes, chips, and a text box that grows as you type.",
5
5
  "keywords": [
6
6
  "angular",
@@ -34,8 +34,8 @@
34
34
  "url": "https://github.com/Greezaaa/settings-utils-lib/issues"
35
35
  },
36
36
  "peerDependencies": {
37
- "@angular/common": "^20.0.0",
38
- "@angular/core": "^20.0.0"
37
+ "@angular/common": "^21.0.0",
38
+ "@angular/core": "^21.0.0"
39
39
  },
40
40
  "dependencies": {
41
41
  "tslib": "^2.3.0"
@@ -43,14 +43,15 @@
43
43
  "sideEffects": false,
44
44
  "license": "MIT",
45
45
  "module": "fesm2022/su-labs-fields.mjs",
46
- "typings": "index.d.ts",
46
+ "typings": "types/su-labs-fields.d.ts",
47
47
  "exports": {
48
48
  "./package.json": {
49
49
  "default": "./package.json"
50
50
  },
51
51
  ".": {
52
- "types": "./index.d.ts",
52
+ "types": "./types/su-labs-fields.d.ts",
53
53
  "default": "./fesm2022/su-labs-fields.mjs"
54
54
  }
55
- }
55
+ },
56
+ "type": "module"
56
57
  }
File without changes