@eagami/ui 5.71.0 → 5.71.2

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.
@@ -2,6 +2,10 @@ import * as i0 from "@angular/core";
2
2
  import { ApplicationRef, CSP_NONCE, ChangeDetectionStrategy, Component, DOCUMENT, DestroyRef, Directive, ElementRef, EnvironmentInjector, HostAttributeToken, HostBinding, HostListener, Injectable, InjectionToken, Injector, NgZone, PLATFORM_ID, Renderer2, RendererStyleFlags2, TemplateRef, ViewContainerRef, ViewEncapsulation, afterNextRender, afterRenderEffect, computed, contentChild, createComponent, effect, forwardRef, inject, input, linkedSignal, makeEnvironmentProviders, model, output, provideEnvironmentInitializer, signal, untracked, viewChild, viewChildren } from "@angular/core";
3
3
  import { NgClass, NgComponentOutlet, NgTemplateOutlet, isPlatformBrowser } from "@angular/common";
4
4
  import { FormResetEvent, FormSubmittedEvent, NG_VALUE_ACCESSOR, NgControl, TouchedChangeEvent } from "@angular/forms";
5
+ const EAGAMI_FORMS_CONFIG = new InjectionToken("EAGAMI_FORMS_CONFIG", {
6
+ providedIn: "root",
7
+ factory: () => ({})
8
+ });
5
9
  const EAGAMI_I18N_CONFIG = new InjectionToken("EAGAMI_I18N_CONFIG");
6
10
  const STYLE_TAG_ID = "eagami-palette";
7
11
  function applyPalette(palette, nonce) {
@@ -299,16 +303,23 @@ function provideEagamiUi(config = {}) {
299
303
  localeLoaders: config.localeLoaders,
300
304
  messages: config.messages
301
305
  };
302
- return makeEnvironmentProviders([{
303
- provide: EAGAMI_I18N_CONFIG,
304
- useValue: i18nConfig
305
- }, provideEnvironmentInitializer(() => {
306
- if (!config.palette) return;
307
- const palette = derivePalette(config.palette);
308
- const violations = validatePalette(palette);
309
- if (violations.length > 0) throw new Error(formatViolations(violations));
310
- applyPalette(palette, inject(CSP_NONCE, { optional: true }));
311
- })]);
306
+ return makeEnvironmentProviders([
307
+ {
308
+ provide: EAGAMI_I18N_CONFIG,
309
+ useValue: i18nConfig
310
+ },
311
+ {
312
+ provide: EAGAMI_FORMS_CONFIG,
313
+ useValue: config.forms ?? {}
314
+ },
315
+ provideEnvironmentInitializer(() => {
316
+ if (!config.palette) return;
317
+ const palette = derivePalette(config.palette);
318
+ const violations = validatePalette(palette);
319
+ if (violations.length > 0) throw new Error(formatViolations(violations));
320
+ applyPalette(palette, inject(CSP_NONCE, { optional: true }));
321
+ })
322
+ ]);
312
323
  }
313
324
  const LOCALE_DISPLAY = {
314
325
  en: {
@@ -5558,6 +5569,8 @@ function controlErrorStateFrom(control, config) {
5558
5569
  const injector = inject(Injector);
5559
5570
  const destroyRef = inject(DestroyRef);
5560
5571
  const host = inject(ElementRef, { optional: true });
5572
+ const formsConfig = inject(EAGAMI_FORMS_CONFIG);
5573
+ const showErrorsOn = computed(() => config.showErrorsOn?.() ?? formsConfig.showErrorsOn ?? "change", ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
5561
5574
  const revision = signal(0, ...ngDevMode ? [{ debugName: "revision" }] : /* istanbul ignore next */ []);
5562
5575
  const editing = signal(false, ...ngDevMode ? [{ debugName: "editing" }] : /* istanbul ignore next */ []);
5563
5576
  const revealedBySubmit = signal(false, ...ngDevMode ? [{ debugName: "revealedBySubmit" }] : /* istanbul ignore next */ []);
@@ -5621,14 +5634,14 @@ function controlErrorStateFrom(control, config) {
5621
5634
  revision();
5622
5635
  const ctrl = control();
5623
5636
  if (!ctrl || !ctrl.invalid || !ctrl.touched || !ctrl.errors) return null;
5624
- if (ctrl.pristine && passedThrough()) return null;
5637
+ if (ctrl.pristine && passedThrough() && showErrorsOn() === "change") return null;
5625
5638
  return resolveValidationMessage(ctrl.errors, config.errorMessages(), i18n.messages());
5626
5639
  }, ...ngDevMode ? [{ debugName: "validationError" }] : /* istanbul ignore next */ []);
5627
5640
  const autoError = linkedSignal({
5628
5641
  ...ngDevMode ? { debugName: "autoError" } : /* istanbul ignore next */ {},
5629
5642
  source: () => ({
5630
5643
  message: validationError(),
5631
- holding: revealPending() || editing() && !revealedBySubmit()
5644
+ holding: revealPending() || editing() && !revealedBySubmit() && showErrorsOn() !== "touch"
5632
5645
  }),
5633
5646
  computation: ({ message, holding }, previous) => previous?.value || !holding ? message : null
5634
5647
  });
@@ -6407,6 +6420,7 @@ var AutocompleteComponent = class AutocompleteComponent {
6407
6420
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
6408
6421
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
6409
6422
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
6423
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
6410
6424
  minLength = input(0, ...ngDevMode ? [{ debugName: "minLength" }] : /* istanbul ignore next */ []);
6411
6425
  maxLength = input(void 0, ...ngDevMode ? [{ debugName: "maxLength" }] : /* istanbul ignore next */ []);
6412
6426
  maxResults = input(10, ...ngDevMode ? [{ debugName: "maxResults" }] : /* istanbul ignore next */ []);
@@ -6427,7 +6441,8 @@ var AutocompleteComponent = class AutocompleteComponent {
6427
6441
  isDisabled = computed(() => this.disabled() || this._formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
6428
6442
  errorState = injectControlErrorState({
6429
6443
  errorMsg: this.errorMsg,
6430
- errorMessages: this.errorMessages
6444
+ errorMessages: this.errorMessages,
6445
+ showErrorsOn: this.showErrorsOn
6431
6446
  });
6432
6447
  errorText = this.errorState.error;
6433
6448
  hasError = this.errorState.hasError;
@@ -6655,6 +6670,13 @@ var AutocompleteComponent = class AutocompleteComponent {
6655
6670
  isRequired: false,
6656
6671
  transformFunction: null
6657
6672
  },
6673
+ showErrorsOn: {
6674
+ classPropertyName: "showErrorsOn",
6675
+ publicName: "showErrorsOn",
6676
+ isSignal: true,
6677
+ isRequired: false,
6678
+ transformFunction: null
6679
+ },
6658
6680
  minLength: {
6659
6681
  classPropertyName: "minLength",
6660
6682
  publicName: "minLength",
@@ -6923,6 +6945,14 @@ i0.ɵɵngDeclareClassMetadata({
6923
6945
  required: false
6924
6946
  }]
6925
6947
  }],
6948
+ showErrorsOn: [{
6949
+ type: i0.Input,
6950
+ args: [{
6951
+ isSignal: true,
6952
+ alias: "showErrorsOn",
6953
+ required: false
6954
+ }]
6955
+ }],
6926
6956
  minLength: [{
6927
6957
  type: i0.Input,
6928
6958
  args: [{
@@ -11697,6 +11727,7 @@ var CheckboxComponent = class CheckboxComponent {
11697
11727
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
11698
11728
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
11699
11729
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
11730
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
11700
11731
  size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
11701
11732
  truncate = input(false, ...ngDevMode ? [{ debugName: "truncate" }] : /* istanbul ignore next */ []);
11702
11733
  disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
@@ -11713,7 +11744,8 @@ var CheckboxComponent = class CheckboxComponent {
11713
11744
  isDisabled = computed(() => this.disabled() || this._formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
11714
11745
  errorState = injectControlErrorState({
11715
11746
  errorMsg: this.errorMsg,
11716
- errorMessages: this.errorMessages
11747
+ errorMessages: this.errorMessages,
11748
+ showErrorsOn: this.showErrorsOn
11717
11749
  });
11718
11750
  errorText = this.errorState.error;
11719
11751
  hasError = this.errorState.hasError;
@@ -11810,6 +11842,13 @@ var CheckboxComponent = class CheckboxComponent {
11810
11842
  isRequired: false,
11811
11843
  transformFunction: null
11812
11844
  },
11845
+ showErrorsOn: {
11846
+ classPropertyName: "showErrorsOn",
11847
+ publicName: "showErrorsOn",
11848
+ isSignal: true,
11849
+ isRequired: false,
11850
+ transformFunction: null
11851
+ },
11813
11852
  size: {
11814
11853
  classPropertyName: "size",
11815
11854
  publicName: "size",
@@ -11982,6 +12021,14 @@ i0.ɵɵngDeclareClassMetadata({
11982
12021
  required: false
11983
12022
  }]
11984
12023
  }],
12024
+ showErrorsOn: [{
12025
+ type: i0.Input,
12026
+ args: [{
12027
+ isSignal: true,
12028
+ alias: "showErrorsOn",
12029
+ required: false
12030
+ }]
12031
+ }],
11985
12032
  size: [{
11986
12033
  type: i0.Input,
11987
12034
  args: [{
@@ -12518,6 +12565,7 @@ var InputComponent = class InputComponent {
12518
12565
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
12519
12566
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
12520
12567
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
12568
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
12521
12569
  disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
12522
12570
  readonly = input(false, ...ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []);
12523
12571
  required = input(false, ...ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []);
@@ -12548,7 +12596,8 @@ var InputComponent = class InputComponent {
12548
12596
  effectiveType = computed(() => this.type() === "password" && this.passwordVisible() ? "text" : this.type(), ...ngDevMode ? [{ debugName: "effectiveType" }] : /* istanbul ignore next */ []);
12549
12597
  errorState = injectControlErrorState({
12550
12598
  errorMsg: this.errorMsg,
12551
- errorMessages: this.errorMessages
12599
+ errorMessages: this.errorMessages,
12600
+ showErrorsOn: this.showErrorsOn
12552
12601
  });
12553
12602
  errorText = this.errorState.error;
12554
12603
  hasError = this.errorState.hasError;
@@ -12801,6 +12850,13 @@ var InputComponent = class InputComponent {
12801
12850
  isRequired: false,
12802
12851
  transformFunction: null
12803
12852
  },
12853
+ showErrorsOn: {
12854
+ classPropertyName: "showErrorsOn",
12855
+ publicName: "showErrorsOn",
12856
+ isSignal: true,
12857
+ isRequired: false,
12858
+ transformFunction: null
12859
+ },
12804
12860
  disabled: {
12805
12861
  classPropertyName: "disabled",
12806
12862
  publicName: "disabled",
@@ -13191,6 +13247,14 @@ i0.ɵɵngDeclareClassMetadata({
13191
13247
  required: false
13192
13248
  }]
13193
13249
  }],
13250
+ showErrorsOn: [{
13251
+ type: i0.Input,
13252
+ args: [{
13253
+ isSignal: true,
13254
+ alias: "showErrorsOn",
13255
+ required: false
13256
+ }]
13257
+ }],
13194
13258
  disabled: [{
13195
13259
  type: i0.Input,
13196
13260
  args: [{
@@ -13630,6 +13694,7 @@ var CommandPaletteComponent = class CommandPaletteComponent {
13630
13694
  "hint",
13631
13695
  "errorMsg",
13632
13696
  "errorMessages",
13697
+ "showErrorsOn",
13633
13698
  "disabled",
13634
13699
  "readonly",
13635
13700
  "required",
@@ -13857,6 +13922,7 @@ var ColorPickerComponent = class ColorPickerComponent {
13857
13922
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
13858
13923
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
13859
13924
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
13925
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
13860
13926
  showAlpha = input(true, ...ngDevMode ? [{ debugName: "showAlpha" }] : /* istanbul ignore next */ []);
13861
13927
  clearable = input(true, ...ngDevMode ? [{ debugName: "clearable" }] : /* istanbul ignore next */ []);
13862
13928
  compact = input(false, ...ngDevMode ? [{ debugName: "compact" }] : /* istanbul ignore next */ []);
@@ -13891,7 +13957,8 @@ var ColorPickerComponent = class ColorPickerComponent {
13891
13957
  isDisabled = computed(() => this.disabled() || this._formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
13892
13958
  errorState = injectControlErrorState({
13893
13959
  errorMsg: this.errorMsg,
13894
- errorMessages: this.errorMessages
13960
+ errorMessages: this.errorMessages,
13961
+ showErrorsOn: this.showErrorsOn
13895
13962
  });
13896
13963
  errorText = this.errorState.error;
13897
13964
  hasError = this.errorState.hasError;
@@ -14378,6 +14445,13 @@ var ColorPickerComponent = class ColorPickerComponent {
14378
14445
  isRequired: false,
14379
14446
  transformFunction: null
14380
14447
  },
14448
+ showErrorsOn: {
14449
+ classPropertyName: "showErrorsOn",
14450
+ publicName: "showErrorsOn",
14451
+ isSignal: true,
14452
+ isRequired: false,
14453
+ transformFunction: null
14454
+ },
14381
14455
  showAlpha: {
14382
14456
  classPropertyName: "showAlpha",
14383
14457
  publicName: "showAlpha",
@@ -14681,6 +14755,14 @@ i0.ɵɵngDeclareClassMetadata({
14681
14755
  required: false
14682
14756
  }]
14683
14757
  }],
14758
+ showErrorsOn: [{
14759
+ type: i0.Input,
14760
+ args: [{
14761
+ isSignal: true,
14762
+ alias: "showErrorsOn",
14763
+ required: false
14764
+ }]
14765
+ }],
14684
14766
  showAlpha: [{
14685
14767
  type: i0.Input,
14686
14768
  args: [{
@@ -16334,6 +16416,7 @@ var CodeInputComponent = class CodeInputComponent {
16334
16416
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
16335
16417
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
16336
16418
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
16419
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
16337
16420
  disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
16338
16421
  readonly = input(false, ...ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []);
16339
16422
  required = input(false, ...ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []);
@@ -16348,7 +16431,8 @@ var CodeInputComponent = class CodeInputComponent {
16348
16431
  isDisabled = computed(() => this.disabled() || this._formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
16349
16432
  errorState = injectControlErrorState({
16350
16433
  errorMsg: this.errorMsg,
16351
- errorMessages: this.errorMessages
16434
+ errorMessages: this.errorMessages,
16435
+ showErrorsOn: this.showErrorsOn
16352
16436
  });
16353
16437
  errorText = this.errorState.error;
16354
16438
  hasError = this.errorState.hasError;
@@ -16534,6 +16618,13 @@ var CodeInputComponent = class CodeInputComponent {
16534
16618
  isRequired: false,
16535
16619
  transformFunction: null
16536
16620
  },
16621
+ showErrorsOn: {
16622
+ classPropertyName: "showErrorsOn",
16623
+ publicName: "showErrorsOn",
16624
+ isSignal: true,
16625
+ isRequired: false,
16626
+ transformFunction: null
16627
+ },
16537
16628
  disabled: {
16538
16629
  classPropertyName: "disabled",
16539
16630
  publicName: "disabled",
@@ -16736,6 +16827,14 @@ i0.ɵɵngDeclareClassMetadata({
16736
16827
  required: false
16737
16828
  }]
16738
16829
  }],
16830
+ showErrorsOn: [{
16831
+ type: i0.Input,
16832
+ args: [{
16833
+ isSignal: true,
16834
+ alias: "showErrorsOn",
16835
+ required: false
16836
+ }]
16837
+ }],
16739
16838
  disabled: [{
16740
16839
  type: i0.Input,
16741
16840
  args: [{
@@ -17119,6 +17218,7 @@ var DatePickerComponent = class DatePickerComponent {
17119
17218
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
17120
17219
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
17121
17220
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
17221
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
17122
17222
  minDate = input(null, ...ngDevMode ? [{ debugName: "minDate" }] : /* istanbul ignore next */ []);
17123
17223
  maxDate = input(null, ...ngDevMode ? [{ debugName: "maxDate" }] : /* istanbul ignore next */ []);
17124
17224
  disabledWeekdays = input([], ...ngDevMode ? [{ debugName: "disabledWeekdays" }] : /* istanbul ignore next */ []);
@@ -17141,7 +17241,8 @@ var DatePickerComponent = class DatePickerComponent {
17141
17241
  isDisabled = computed(() => this.disabled() || this._formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
17142
17242
  errorState = injectControlErrorState({
17143
17243
  errorMsg: this.errorMsg,
17144
- errorMessages: this.errorMessages
17244
+ errorMessages: this.errorMessages,
17245
+ showErrorsOn: this.showErrorsOn
17145
17246
  });
17146
17247
  errorText = this.errorState.error;
17147
17248
  hasError = this.errorState.hasError;
@@ -17594,6 +17695,13 @@ var DatePickerComponent = class DatePickerComponent {
17594
17695
  isRequired: false,
17595
17696
  transformFunction: null
17596
17697
  },
17698
+ showErrorsOn: {
17699
+ classPropertyName: "showErrorsOn",
17700
+ publicName: "showErrorsOn",
17701
+ isSignal: true,
17702
+ isRequired: false,
17703
+ transformFunction: null
17704
+ },
17597
17705
  minDate: {
17598
17706
  classPropertyName: "minDate",
17599
17707
  publicName: "minDate",
@@ -17908,6 +18016,14 @@ i0.ɵɵngDeclareClassMetadata({
17908
18016
  required: false
17909
18017
  }]
17910
18018
  }],
18019
+ showErrorsOn: [{
18020
+ type: i0.Input,
18021
+ args: [{
18022
+ isSignal: true,
18023
+ alias: "showErrorsOn",
18024
+ required: false
18025
+ }]
18026
+ }],
17911
18027
  minDate: [{
17912
18028
  type: i0.Input,
17913
18029
  args: [{
@@ -19088,6 +19204,7 @@ var DropdownComponent = class DropdownComponent {
19088
19204
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
19089
19205
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
19090
19206
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
19207
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
19091
19208
  id = input(uniqueId("ea-dropdown"), ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
19092
19209
  value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
19093
19210
  changed = output();
@@ -19108,7 +19225,8 @@ var DropdownComponent = class DropdownComponent {
19108
19225
  isDisabled = computed(() => this.disabled() || this._formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
19109
19226
  errorState = injectControlErrorState({
19110
19227
  errorMsg: this.errorMsg,
19111
- errorMessages: this.errorMessages
19228
+ errorMessages: this.errorMessages,
19229
+ showErrorsOn: this.showErrorsOn
19112
19230
  });
19113
19231
  errorText = this.errorState.error;
19114
19232
  hasError = this.errorState.hasError;
@@ -19429,6 +19547,13 @@ var DropdownComponent = class DropdownComponent {
19429
19547
  isRequired: false,
19430
19548
  transformFunction: null
19431
19549
  },
19550
+ showErrorsOn: {
19551
+ classPropertyName: "showErrorsOn",
19552
+ publicName: "showErrorsOn",
19553
+ isSignal: true,
19554
+ isRequired: false,
19555
+ transformFunction: null
19556
+ },
19432
19557
  id: {
19433
19558
  classPropertyName: "id",
19434
19559
  publicName: "id",
@@ -19717,6 +19842,14 @@ i0.ɵɵngDeclareClassMetadata({
19717
19842
  required: false
19718
19843
  }]
19719
19844
  }],
19845
+ showErrorsOn: [{
19846
+ type: i0.Input,
19847
+ args: [{
19848
+ isSignal: true,
19849
+ alias: "showErrorsOn",
19850
+ required: false
19851
+ }]
19852
+ }],
19720
19853
  id: [{
19721
19854
  type: i0.Input,
19722
19855
  args: [{
@@ -20498,6 +20631,7 @@ var FormFieldComponent = class FormFieldComponent {
20498
20631
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
20499
20632
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
20500
20633
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
20634
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
20501
20635
  required = input(false, ...ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []);
20502
20636
  size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
20503
20637
  id = input(uniqueId("ea-form-field"), ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
@@ -20509,7 +20643,8 @@ var FormFieldComponent = class FormFieldComponent {
20509
20643
  boundControl = computed(() => this.rendered() ? this.ngControl()?.control ?? null : null, ...ngDevMode ? [{ debugName: "boundControl" }] : /* istanbul ignore next */ []);
20510
20644
  errorState = controlErrorStateFrom(this.boundControl, {
20511
20645
  errorMsg: this.errorMsg,
20512
- errorMessages: this.errorMessages
20646
+ errorMessages: this.errorMessages,
20647
+ showErrorsOn: this.showErrorsOn
20513
20648
  });
20514
20649
  errorText = this.errorState.error;
20515
20650
  hasError = this.errorState.hasError;
@@ -20603,6 +20738,13 @@ var FormFieldComponent = class FormFieldComponent {
20603
20738
  isRequired: false,
20604
20739
  transformFunction: null
20605
20740
  },
20741
+ showErrorsOn: {
20742
+ classPropertyName: "showErrorsOn",
20743
+ publicName: "showErrorsOn",
20744
+ isSignal: true,
20745
+ isRequired: false,
20746
+ transformFunction: null
20747
+ },
20606
20748
  required: {
20607
20749
  classPropertyName: "required",
20608
20750
  publicName: "required",
@@ -20736,6 +20878,14 @@ i0.ɵɵngDeclareClassMetadata({
20736
20878
  required: false
20737
20879
  }]
20738
20880
  }],
20881
+ showErrorsOn: [{
20882
+ type: i0.Input,
20883
+ args: [{
20884
+ isSignal: true,
20885
+ alias: "showErrorsOn",
20886
+ required: false
20887
+ }]
20888
+ }],
20739
20889
  required: [{
20740
20890
  type: i0.Input,
20741
20891
  args: [{
@@ -21505,6 +21655,7 @@ var FileUploaderComponent = class FileUploaderComponent {
21505
21655
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
21506
21656
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
21507
21657
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
21658
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
21508
21659
  size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
21509
21660
  variant = input("dropzone", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
21510
21661
  buttonLabel = input(void 0, ...ngDevMode ? [{ debugName: "buttonLabel" }] : /* istanbul ignore next */ []);
@@ -21535,7 +21686,8 @@ var FileUploaderComponent = class FileUploaderComponent {
21535
21686
  isDisabled = computed(() => this.disabled() || this._formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
21536
21687
  errorState = injectControlErrorState({
21537
21688
  errorMsg: this.errorMsg,
21538
- errorMessages: this.errorMessages
21689
+ errorMessages: this.errorMessages,
21690
+ showErrorsOn: this.showErrorsOn
21539
21691
  });
21540
21692
  errorText = this.errorState.error;
21541
21693
  hasError = this.errorState.hasError;
@@ -21786,6 +21938,13 @@ var FileUploaderComponent = class FileUploaderComponent {
21786
21938
  isRequired: false,
21787
21939
  transformFunction: null
21788
21940
  },
21941
+ showErrorsOn: {
21942
+ classPropertyName: "showErrorsOn",
21943
+ publicName: "showErrorsOn",
21944
+ isSignal: true,
21945
+ isRequired: false,
21946
+ transformFunction: null
21947
+ },
21789
21948
  size: {
21790
21949
  classPropertyName: "size",
21791
21950
  publicName: "size",
@@ -22136,6 +22295,14 @@ i0.ɵɵngDeclareClassMetadata({
22136
22295
  required: false
22137
22296
  }]
22138
22297
  }],
22298
+ showErrorsOn: [{
22299
+ type: i0.Input,
22300
+ args: [{
22301
+ isSignal: true,
22302
+ alias: "showErrorsOn",
22303
+ required: false
22304
+ }]
22305
+ }],
22139
22306
  size: [{
22140
22307
  type: i0.Input,
22141
22308
  args: [{
@@ -24057,6 +24224,7 @@ var MultiSelectComponent = class MultiSelectComponent {
24057
24224
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
24058
24225
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
24059
24226
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
24227
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
24060
24228
  searchable = input(true, ...ngDevMode ? [{ debugName: "searchable" }] : /* istanbul ignore next */ []);
24061
24229
  selectAll = input(true, ...ngDevMode ? [{ debugName: "selectAll" }] : /* istanbul ignore next */ []);
24062
24230
  allowCreate = input(false, ...ngDevMode ? [{ debugName: "allowCreate" }] : /* istanbul ignore next */ []);
@@ -24077,7 +24245,8 @@ var MultiSelectComponent = class MultiSelectComponent {
24077
24245
  isDisabled = computed(() => this.disabled() || this._formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
24078
24246
  errorState = injectControlErrorState({
24079
24247
  errorMsg: this.errorMsg,
24080
- errorMessages: this.errorMessages
24248
+ errorMessages: this.errorMessages,
24249
+ showErrorsOn: this.showErrorsOn
24081
24250
  });
24082
24251
  errorText = this.errorState.error;
24083
24252
  hasError = this.errorState.hasError;
@@ -24482,6 +24651,13 @@ var MultiSelectComponent = class MultiSelectComponent {
24482
24651
  isRequired: false,
24483
24652
  transformFunction: null
24484
24653
  },
24654
+ showErrorsOn: {
24655
+ classPropertyName: "showErrorsOn",
24656
+ publicName: "showErrorsOn",
24657
+ isSignal: true,
24658
+ isRequired: false,
24659
+ transformFunction: null
24660
+ },
24485
24661
  searchable: {
24486
24662
  classPropertyName: "searchable",
24487
24663
  publicName: "searchable",
@@ -24614,6 +24790,7 @@ var MultiSelectComponent = class MultiSelectComponent {
24614
24790
  "hint",
24615
24791
  "errorMsg",
24616
24792
  "errorMessages",
24793
+ "showErrorsOn",
24617
24794
  "size",
24618
24795
  "truncate",
24619
24796
  "disabled",
@@ -24927,6 +25104,14 @@ i0.ɵɵngDeclareClassMetadata({
24927
25104
  required: false
24928
25105
  }]
24929
25106
  }],
25107
+ showErrorsOn: [{
25108
+ type: i0.Input,
25109
+ args: [{
25110
+ isSignal: true,
25111
+ alias: "showErrorsOn",
25112
+ required: false
25113
+ }]
25114
+ }],
24930
25115
  searchable: [{
24931
25116
  type: i0.Input,
24932
25117
  args: [{
@@ -25024,6 +25209,7 @@ var NumberInputComponent = class NumberInputComponent {
25024
25209
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
25025
25210
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
25026
25211
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
25212
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
25027
25213
  disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
25028
25214
  readonly = input(false, ...ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []);
25029
25215
  required = input(false, ...ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []);
@@ -25054,7 +25240,8 @@ var NumberInputComponent = class NumberInputComponent {
25054
25240
  }, ...ngDevMode ? [{ debugName: "effectiveMin" }] : /* istanbul ignore next */ []);
25055
25241
  errorState = injectControlErrorState({
25056
25242
  errorMsg: this.errorMsg,
25057
- errorMessages: this.errorMessages
25243
+ errorMessages: this.errorMessages,
25244
+ showErrorsOn: this.showErrorsOn
25058
25245
  });
25059
25246
  errorText = this.errorState.error;
25060
25247
  hasError = this.errorState.hasError;
@@ -25217,6 +25404,13 @@ var NumberInputComponent = class NumberInputComponent {
25217
25404
  isRequired: false,
25218
25405
  transformFunction: null
25219
25406
  },
25407
+ showErrorsOn: {
25408
+ classPropertyName: "showErrorsOn",
25409
+ publicName: "showErrorsOn",
25410
+ isSignal: true,
25411
+ isRequired: false,
25412
+ transformFunction: null
25413
+ },
25220
25414
  disabled: {
25221
25415
  classPropertyName: "disabled",
25222
25416
  publicName: "disabled",
@@ -25453,6 +25647,14 @@ i0.ɵɵngDeclareClassMetadata({
25453
25647
  required: false
25454
25648
  }]
25455
25649
  }],
25650
+ showErrorsOn: [{
25651
+ type: i0.Input,
25652
+ args: [{
25653
+ isSignal: true,
25654
+ alias: "showErrorsOn",
25655
+ required: false
25656
+ }]
25657
+ }],
25456
25658
  disabled: [{
25457
25659
  type: i0.Input,
25458
25660
  args: [{
@@ -26627,6 +26829,7 @@ var RadioGroupComponent = class RadioGroupComponent {
26627
26829
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
26628
26830
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
26629
26831
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
26832
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
26630
26833
  ariaLabel = input(void 0, {
26631
26834
  ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
26632
26835
  alias: "aria-label"
@@ -26641,7 +26844,8 @@ var RadioGroupComponent = class RadioGroupComponent {
26641
26844
  isDisabled = computed(() => this.disabled() || this._formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
26642
26845
  errorState = injectControlErrorState({
26643
26846
  errorMsg: this.errorMsg,
26644
- errorMessages: this.errorMessages
26847
+ errorMessages: this.errorMessages,
26848
+ showErrorsOn: this.showErrorsOn
26645
26849
  });
26646
26850
  errorText = this.errorState.error;
26647
26851
  hasError = this.errorState.hasError;
@@ -26774,6 +26978,13 @@ var RadioGroupComponent = class RadioGroupComponent {
26774
26978
  isRequired: false,
26775
26979
  transformFunction: null
26776
26980
  },
26981
+ showErrorsOn: {
26982
+ classPropertyName: "showErrorsOn",
26983
+ publicName: "showErrorsOn",
26984
+ isSignal: true,
26985
+ isRequired: false,
26986
+ transformFunction: null
26987
+ },
26777
26988
  ariaLabel: {
26778
26989
  classPropertyName: "ariaLabel",
26779
26990
  publicName: "aria-label",
@@ -26961,6 +27172,14 @@ i0.ɵɵngDeclareClassMetadata({
26961
27172
  required: false
26962
27173
  }]
26963
27174
  }],
27175
+ showErrorsOn: [{
27176
+ type: i0.Input,
27177
+ args: [{
27178
+ isSignal: true,
27179
+ alias: "showErrorsOn",
27180
+ required: false
27181
+ }]
27182
+ }],
26964
27183
  ariaLabel: [{
26965
27184
  type: i0.Input,
26966
27185
  args: [{
@@ -27130,6 +27349,7 @@ var RangeSliderComponent = class RangeSliderComponent {
27130
27349
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
27131
27350
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
27132
27351
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
27352
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
27133
27353
  min = input(0, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
27134
27354
  max = input(100, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
27135
27355
  step = input(1, ...ngDevMode ? [{ debugName: "step" }] : /* istanbul ignore next */ []);
@@ -27184,7 +27404,8 @@ var RangeSliderComponent = class RangeSliderComponent {
27184
27404
  }
27185
27405
  errorState = injectControlErrorState({
27186
27406
  errorMsg: this.errorMsg,
27187
- errorMessages: this.errorMessages
27407
+ errorMessages: this.errorMessages,
27408
+ showErrorsOn: this.showErrorsOn
27188
27409
  });
27189
27410
  errorText = this.errorState.error;
27190
27411
  hasError = this.errorState.hasError;
@@ -27371,6 +27592,13 @@ var RangeSliderComponent = class RangeSliderComponent {
27371
27592
  isRequired: false,
27372
27593
  transformFunction: null
27373
27594
  },
27595
+ showErrorsOn: {
27596
+ classPropertyName: "showErrorsOn",
27597
+ publicName: "showErrorsOn",
27598
+ isSignal: true,
27599
+ isRequired: false,
27600
+ transformFunction: null
27601
+ },
27374
27602
  min: {
27375
27603
  classPropertyName: "min",
27376
27604
  publicName: "min",
@@ -27618,6 +27846,14 @@ i0.ɵɵngDeclareClassMetadata({
27618
27846
  required: false
27619
27847
  }]
27620
27848
  }],
27849
+ showErrorsOn: [{
27850
+ type: i0.Input,
27851
+ args: [{
27852
+ isSignal: true,
27853
+ alias: "showErrorsOn",
27854
+ required: false
27855
+ }]
27856
+ }],
27621
27857
  min: [{
27622
27858
  type: i0.Input,
27623
27859
  args: [{
@@ -27936,6 +28172,7 @@ var RatingComponent = class RatingComponent {
27936
28172
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
27937
28173
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
27938
28174
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
28175
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
27939
28176
  size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
27940
28177
  min = input(0, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
27941
28178
  max = input(5, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
@@ -27958,7 +28195,8 @@ var RatingComponent = class RatingComponent {
27958
28195
  isInteractive = computed(() => !this.isDisabled() && !this.readonly(), ...ngDevMode ? [{ debugName: "isInteractive" }] : /* istanbul ignore next */ []);
27959
28196
  errorState = injectControlErrorState({
27960
28197
  errorMsg: this.errorMsg,
27961
- errorMessages: this.errorMessages
28198
+ errorMessages: this.errorMessages,
28199
+ showErrorsOn: this.showErrorsOn
27962
28200
  });
27963
28201
  errorText = this.errorState.error;
27964
28202
  hasError = this.errorState.hasError;
@@ -28162,6 +28400,13 @@ var RatingComponent = class RatingComponent {
28162
28400
  isRequired: false,
28163
28401
  transformFunction: null
28164
28402
  },
28403
+ showErrorsOn: {
28404
+ classPropertyName: "showErrorsOn",
28405
+ publicName: "showErrorsOn",
28406
+ isSignal: true,
28407
+ isRequired: false,
28408
+ transformFunction: null
28409
+ },
28165
28410
  size: {
28166
28411
  classPropertyName: "size",
28167
28412
  publicName: "size",
@@ -28412,6 +28657,14 @@ i0.ɵɵngDeclareClassMetadata({
28412
28657
  required: false
28413
28658
  }]
28414
28659
  }],
28660
+ showErrorsOn: [{
28661
+ type: i0.Input,
28662
+ args: [{
28663
+ isSignal: true,
28664
+ alias: "showErrorsOn",
28665
+ required: false
28666
+ }]
28667
+ }],
28415
28668
  size: [{
28416
28669
  type: i0.Input,
28417
28670
  args: [{
@@ -28527,6 +28780,7 @@ var SegmentedComponent = class SegmentedComponent {
28527
28780
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
28528
28781
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
28529
28782
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
28783
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
28530
28784
  size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
28531
28785
  disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
28532
28786
  required = input(false, ...ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []);
@@ -28548,7 +28802,8 @@ var SegmentedComponent = class SegmentedComponent {
28548
28802
  isDisabled = computed(() => this.disabled() || this._formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
28549
28803
  errorState = injectControlErrorState({
28550
28804
  errorMsg: this.errorMsg,
28551
- errorMessages: this.errorMessages
28805
+ errorMessages: this.errorMessages,
28806
+ showErrorsOn: this.showErrorsOn
28552
28807
  });
28553
28808
  errorText = this.errorState.error;
28554
28809
  hasError = this.errorState.hasError;
@@ -28713,6 +28968,13 @@ var SegmentedComponent = class SegmentedComponent {
28713
28968
  isRequired: false,
28714
28969
  transformFunction: null
28715
28970
  },
28971
+ showErrorsOn: {
28972
+ classPropertyName: "showErrorsOn",
28973
+ publicName: "showErrorsOn",
28974
+ isSignal: true,
28975
+ isRequired: false,
28976
+ transformFunction: null
28977
+ },
28716
28978
  size: {
28717
28979
  classPropertyName: "size",
28718
28980
  publicName: "size",
@@ -28924,6 +29186,14 @@ i0.ɵɵngDeclareClassMetadata({
28924
29186
  required: false
28925
29187
  }]
28926
29188
  }],
29189
+ showErrorsOn: [{
29190
+ type: i0.Input,
29191
+ args: [{
29192
+ isSignal: true,
29193
+ alias: "showErrorsOn",
29194
+ required: false
29195
+ }]
29196
+ }],
28927
29197
  size: [{
28928
29198
  type: i0.Input,
28929
29199
  args: [{
@@ -29009,6 +29279,7 @@ var SliderComponent = class SliderComponent {
29009
29279
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
29010
29280
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
29011
29281
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
29282
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
29012
29283
  hasError = input(false, ...ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []);
29013
29284
  min = input(0, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
29014
29285
  max = input(100, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
@@ -29058,7 +29329,8 @@ var SliderComponent = class SliderComponent {
29058
29329
  }
29059
29330
  errorState = injectControlErrorState({
29060
29331
  errorMsg: this.errorMsg,
29061
- errorMessages: this.errorMessages
29332
+ errorMessages: this.errorMessages,
29333
+ showErrorsOn: this.showErrorsOn
29062
29334
  });
29063
29335
  errorText = this.errorState.error;
29064
29336
  errored = computed(() => this.hasError() || this.showError(), ...ngDevMode ? [{ debugName: "errored" }] : /* istanbul ignore next */ []);
@@ -29247,6 +29519,13 @@ var SliderComponent = class SliderComponent {
29247
29519
  isRequired: false,
29248
29520
  transformFunction: null
29249
29521
  },
29522
+ showErrorsOn: {
29523
+ classPropertyName: "showErrorsOn",
29524
+ publicName: "showErrorsOn",
29525
+ isSignal: true,
29526
+ isRequired: false,
29527
+ transformFunction: null
29528
+ },
29250
29529
  hasError: {
29251
29530
  classPropertyName: "hasError",
29252
29531
  publicName: "hasError",
@@ -29501,6 +29780,14 @@ i0.ɵɵngDeclareClassMetadata({
29501
29780
  required: false
29502
29781
  }]
29503
29782
  }],
29783
+ showErrorsOn: [{
29784
+ type: i0.Input,
29785
+ args: [{
29786
+ isSignal: true,
29787
+ alias: "showErrorsOn",
29788
+ required: false
29789
+ }]
29790
+ }],
29504
29791
  hasError: [{
29505
29792
  type: i0.Input,
29506
29793
  args: [{
@@ -30548,6 +30835,7 @@ var SwitchComponent = class SwitchComponent {
30548
30835
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
30549
30836
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
30550
30837
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
30838
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
30551
30839
  size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
30552
30840
  variant = input("default", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
30553
30841
  onIcon = input(void 0, ...ngDevMode ? [{ debugName: "onIcon" }] : /* istanbul ignore next */ []);
@@ -30567,7 +30855,8 @@ var SwitchComponent = class SwitchComponent {
30567
30855
  isDisabled = computed(() => this.disabled() || this._formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
30568
30856
  errorState = injectControlErrorState({
30569
30857
  errorMsg: this.errorMsg,
30570
- errorMessages: this.errorMessages
30858
+ errorMessages: this.errorMessages,
30859
+ showErrorsOn: this.showErrorsOn
30571
30860
  });
30572
30861
  errorText = this.errorState.error;
30573
30862
  hasError = this.errorState.hasError;
@@ -30644,6 +30933,13 @@ var SwitchComponent = class SwitchComponent {
30644
30933
  isRequired: false,
30645
30934
  transformFunction: null
30646
30935
  },
30936
+ showErrorsOn: {
30937
+ classPropertyName: "showErrorsOn",
30938
+ publicName: "showErrorsOn",
30939
+ isSignal: true,
30940
+ isRequired: false,
30941
+ transformFunction: null
30942
+ },
30647
30943
  size: {
30648
30944
  classPropertyName: "size",
30649
30945
  publicName: "size",
@@ -30812,6 +31108,14 @@ i0.ɵɵngDeclareClassMetadata({
30812
31108
  required: false
30813
31109
  }]
30814
31110
  }],
31111
+ showErrorsOn: [{
31112
+ type: i0.Input,
31113
+ args: [{
31114
+ isSignal: true,
31115
+ alias: "showErrorsOn",
31116
+ required: false
31117
+ }]
31118
+ }],
30815
31119
  size: [{
30816
31120
  type: i0.Input,
30817
31121
  args: [{
@@ -31227,6 +31531,7 @@ var TextareaComponent = class TextareaComponent {
31227
31531
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
31228
31532
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
31229
31533
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
31534
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
31230
31535
  disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
31231
31536
  readonly = input(false, ...ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []);
31232
31537
  required = input(false, ...ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []);
@@ -31249,7 +31554,8 @@ var TextareaComponent = class TextareaComponent {
31249
31554
  nativePlaceholder = computed(() => this.typedPlaceholder().length > 0 ? this.typed.hint() : this.placeholder(), ...ngDevMode ? [{ debugName: "nativePlaceholder" }] : /* istanbul ignore next */ []);
31250
31555
  errorState = injectControlErrorState({
31251
31556
  errorMsg: this.errorMsg,
31252
- errorMessages: this.errorMessages
31557
+ errorMessages: this.errorMessages,
31558
+ showErrorsOn: this.showErrorsOn
31253
31559
  });
31254
31560
  errorText = this.errorState.error;
31255
31561
  hasError = this.errorState.hasError;
@@ -31414,6 +31720,13 @@ var TextareaComponent = class TextareaComponent {
31414
31720
  isRequired: false,
31415
31721
  transformFunction: null
31416
31722
  },
31723
+ showErrorsOn: {
31724
+ classPropertyName: "showErrorsOn",
31725
+ publicName: "showErrorsOn",
31726
+ isSignal: true,
31727
+ isRequired: false,
31728
+ transformFunction: null
31729
+ },
31417
31730
  disabled: {
31418
31731
  classPropertyName: "disabled",
31419
31732
  publicName: "disabled",
@@ -31675,6 +31988,14 @@ i0.ɵɵngDeclareClassMetadata({
31675
31988
  required: false
31676
31989
  }]
31677
31990
  }],
31991
+ showErrorsOn: [{
31992
+ type: i0.Input,
31993
+ args: [{
31994
+ isSignal: true,
31995
+ alias: "showErrorsOn",
31996
+ required: false
31997
+ }]
31998
+ }],
31678
31999
  disabled: [{
31679
32000
  type: i0.Input,
31680
32001
  args: [{
@@ -31950,6 +32271,7 @@ var TimePickerComponent = class TimePickerComponent {
31950
32271
  hint = input(void 0, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
31951
32272
  errorMsg = input(void 0, ...ngDevMode ? [{ debugName: "errorMsg" }] : /* istanbul ignore next */ []);
31952
32273
  errorMessages = input(void 0, ...ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []);
32274
+ showErrorsOn = input(void 0, ...ngDevMode ? [{ debugName: "showErrorsOn" }] : /* istanbul ignore next */ []);
31953
32275
  format = input("24h", ...ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []);
31954
32276
  includeSeconds = input(false, ...ngDevMode ? [{ debugName: "includeSeconds" }] : /* istanbul ignore next */ []);
31955
32277
  minuteStep = input(1, ...ngDevMode ? [{ debugName: "minuteStep" }] : /* istanbul ignore next */ []);
@@ -31970,7 +32292,8 @@ var TimePickerComponent = class TimePickerComponent {
31970
32292
  isDisabled = computed(() => this.disabled() || this._formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
31971
32293
  errorState = injectControlErrorState({
31972
32294
  errorMsg: this.errorMsg,
31973
- errorMessages: this.errorMessages
32295
+ errorMessages: this.errorMessages,
32296
+ showErrorsOn: this.showErrorsOn
31974
32297
  });
31975
32298
  errorText = this.errorState.error;
31976
32299
  hasError = this.errorState.hasError;
@@ -32392,6 +32715,13 @@ var TimePickerComponent = class TimePickerComponent {
32392
32715
  isRequired: false,
32393
32716
  transformFunction: null
32394
32717
  },
32718
+ showErrorsOn: {
32719
+ classPropertyName: "showErrorsOn",
32720
+ publicName: "showErrorsOn",
32721
+ isSignal: true,
32722
+ isRequired: false,
32723
+ transformFunction: null
32724
+ },
32395
32725
  format: {
32396
32726
  classPropertyName: "format",
32397
32727
  publicName: "format",
@@ -32712,6 +33042,14 @@ i0.ɵɵngDeclareClassMetadata({
32712
33042
  required: false
32713
33043
  }]
32714
33044
  }],
33045
+ showErrorsOn: [{
33046
+ type: i0.Input,
33047
+ args: [{
33048
+ isSignal: true,
33049
+ alias: "showErrorsOn",
33050
+ required: false
33051
+ }]
33052
+ }],
32715
33053
  format: [{
32716
33054
  type: i0.Input,
32717
33055
  args: [{