@forgeroute/ui 0.4.94 → 0.4.96

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.
@@ -2137,7 +2137,8 @@ const UI_DEFAULT_LABELS = {
2137
2137
  "rangeFilter.atMost": "At most {{ max }}",
2138
2138
  "rangeFilter.filterByActive": "Filter by {{ label }}: {{ range }}",
2139
2139
  "rangeFilter.percent": "{{ value }}%",
2140
- "rangeFilter.withUnit": "{{ value }} {{ unit }}"
2140
+ "rangeFilter.withUnit": "{{ value }} {{ unit }}",
2141
+ "rangeFilter.badNumber": "Please enter a valid number"
2141
2142
  };
2142
2143
  function interpolate$1(text, params) {
2143
2144
  if (!params) return text;
@@ -4343,7 +4344,7 @@ function createFieldReveal(showErrors) {
4343
4344
  });
4344
4345
  return {
4345
4346
  touched,
4346
- revealed: computed(() => touched())
4347
+ revealed: computed(() => touched() || showErrors())
4347
4348
  };
4348
4349
  }
4349
4350
  const isEnglishLocale = (locale) => {
@@ -4542,7 +4543,8 @@ var TextInputComponent = class TextInputComponent {
4542
4543
  this._defaultRules = DEFAULT_PASSWORD_RULES;
4543
4544
  this._warned = false;
4544
4545
  this._formatting = computed(() => this.phoneFormat() || this.type() === "tel", ...ngDevMode ? [{ debugName: "_formatting" }] : /* istanbul ignore next */ []);
4545
- this._issue = computed(() => this._check(this._value()), ...ngDevMode ? [{ debugName: "_issue" }] : /* istanbul ignore next */ []);
4546
+ this._hostText = signal(null, ...ngDevMode ? [{ debugName: "_hostText" }] : /* istanbul ignore next */ []);
4547
+ this._issue = computed(() => this._check(this._hostText() ?? this._value()), ...ngDevMode ? [{ debugName: "_issue" }] : /* istanbul ignore next */ []);
4546
4548
  this.invalid = computed(() => !!this.error() || !!this._issue(), ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
4547
4549
  this.errorMessage = computed(() => this._issue()?.message ?? "", ...ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []);
4548
4550
  this._activeError = computed(() => this._reveal.revealed() ? this.error() || this.errorMessage() : "", ...ngDevMode ? [{ debugName: "_activeError" }] : /* istanbul ignore next */ []);
@@ -4565,7 +4567,9 @@ var TextInputComponent = class TextInputComponent {
4565
4567
  }
4566
4568
  writeValue(val) {
4567
4569
  const text = val == null || typeof val === "number" && Number.isNaN(val) && this._numeric() ? "" : String(val);
4568
- this._value.set(this._formatting() ? TextInputComponent._formatPhone(text) : text);
4570
+ const shown = this._formatting() ? TextInputComponent._formatPhone(text) : text;
4571
+ this._value.set(shown);
4572
+ this._hostText.set(this._formatting() && shown !== text && this.type() === "tel" ? text : null);
4569
4573
  if (text === "") this._typed.set(false);
4570
4574
  }
4571
4575
  validate(control) {
@@ -4601,6 +4605,7 @@ var TextInputComponent = class TextInputComponent {
4601
4605
  if (this.integer()) val = val.replace(/[.eE].*$/, "");
4602
4606
  const format = this.formatter();
4603
4607
  if (format) val = format(val);
4608
+ this._hostText.set(null);
4604
4609
  this._value.set(val);
4605
4610
  const emitted = this._numeric() ? TextInputComponent._parse(val) : val;
4606
4611
  this._onChange(emitted);
@@ -5427,7 +5432,11 @@ var ColumnFilterComponent = class ColumnFilterComponent {
5427
5432
  const a = this.pendingMin(), b = this.pendingMax();
5428
5433
  return a != null && b != null && a > b ? this.labels.t("rangeFilter.minAboveMax") : "";
5429
5434
  }, ...ngDevMode ? [{ debugName: "_crossError" }] : /* istanbul ignore next */ []);
5430
- this._rangeInvalid = computed(() => this._crossError() !== "" || this._fields().some((f) => f.invalid()), ...ngDevMode ? [{ debugName: "_rangeInvalid" }] : /* istanbul ignore next */ []);
5435
+ this.badMin = signal(false, ...ngDevMode ? [{ debugName: "badMin" }] : /* istanbul ignore next */ []);
5436
+ this.badMax = signal(false, ...ngDevMode ? [{ debugName: "badMax" }] : /* istanbul ignore next */ []);
5437
+ this._minError = computed(() => this.badMin() ? this.labels.t("rangeFilter.badNumber") : this._crossError(), ...ngDevMode ? [{ debugName: "_minError" }] : /* istanbul ignore next */ []);
5438
+ this._maxError = computed(() => this.badMax() ? this.labels.t("rangeFilter.badNumber") : "", ...ngDevMode ? [{ debugName: "_maxError" }] : /* istanbul ignore next */ []);
5439
+ this._rangeInvalid = computed(() => this._crossError() !== "" || this.badMin() || this.badMax() || this._fields().some((f) => f.invalid()), ...ngDevMode ? [{ debugName: "_rangeInvalid" }] : /* istanbul ignore next */ []);
5431
5440
  this._visibleOptions = computed(() => this.options().filter((o) => o.count == null || o.count > 0 || this.activeValues().includes(o.value)), ...ngDevMode ? [{ debugName: "_visibleOptions" }] : /* istanbul ignore next */ []);
5432
5441
  this.pendingHasChanges = computed(() => {
5433
5442
  const p = this.pendingValues();
@@ -5496,9 +5505,6 @@ var ColumnFilterComponent = class ColumnFilterComponent {
5496
5505
  unit: r.unit
5497
5506
  }) : n;
5498
5507
  }
5499
- _boundHint(v) {
5500
- return this._formatBound(v);
5501
- }
5502
5508
  toggle(event) {
5503
5509
  event.stopPropagation();
5504
5510
  if (!this.open()) {
@@ -5506,6 +5512,8 @@ var ColumnFilterComponent = class ColumnFilterComponent {
5506
5512
  this.pendingValues.set([...this.activeValues()]);
5507
5513
  this.pendingMin.set(this.rangeValue().min);
5508
5514
  this.pendingMax.set(this.rangeValue().max);
5515
+ this.badMin.set(false);
5516
+ this.badMax.set(false);
5509
5517
  this._reposition();
5510
5518
  afterNextRender(() => this._reposition(), { injector: this._injector });
5511
5519
  setTimeout(() => (this.range() ? this._el.nativeElement.querySelector(".cf-range input") : this._optionEls()[0])?.focus(), 30);
@@ -5539,6 +5547,8 @@ var ColumnFilterComponent = class ColumnFilterComponent {
5539
5547
  if (this.range()) {
5540
5548
  this.pendingMin.set(null);
5541
5549
  this.pendingMax.set(null);
5550
+ this.badMin.set(false);
5551
+ this.badMax.set(false);
5542
5552
  this.rangeChange.emit({
5543
5553
  min: null,
5544
5554
  max: null
@@ -5555,8 +5565,18 @@ var ColumnFilterComponent = class ColumnFilterComponent {
5555
5565
  onEnter(event) {
5556
5566
  if (!this.open() || !this.range()) return;
5557
5567
  event.preventDefault();
5568
+ event.stopPropagation();
5558
5569
  if (!this._rangeInvalid()) this.apply();
5559
5570
  }
5571
+ _isBadInput(el) {
5572
+ return !!el && el.validity?.badInput === true;
5573
+ }
5574
+ onRangeInput(event) {
5575
+ const el = event.target;
5576
+ const id = el?.dataset?.["testid"];
5577
+ if (id === "cf-range-min") this.badMin.set(this._isBadInput(el));
5578
+ else if (id === "cf-range-max") this.badMax.set(this._isBadInput(el));
5579
+ }
5560
5580
  onDocumentClick(_event) {
5561
5581
  if (this.open()) this.open.set(false);
5562
5582
  }
@@ -5713,16 +5733,16 @@ var ColumnFilterComponent = class ColumnFilterComponent {
5713
5733
  </button>
5714
5734
  </div>
5715
5735
  @if (range(); as r) {
5716
- <div class="cf-range" role="group" [attr.aria-label]="labels.t('rangeFilter.group', { label: label() })" (keydown.enter)="onEnter($event)">
5736
+ <div class="cf-range" role="group" [attr.aria-label]="labels.t('rangeFilter.group', { label: label() })" (keydown.enter)="onEnter($event)" (input)="onRangeInput($event)">
5717
5737
  <ui-text-input type="number" valueType="number" inputTestId="cf-range-min"
5718
5738
  [label]="labels.t('rangeFilter.min')" [ariaLabel]="labels.t('rangeFilter.minFor', { label: label() })"
5719
- [min]="r.min" [max]="r.max" [step]="r.step" [maxDecimals]="_decimals()" [error]="_crossError()"
5720
- [placeholder]="_boundHint(r.min)"
5739
+ [min]="r.min" [max]="r.max" [step]="r.step" [maxDecimals]="_decimals()" [error]="_minError()" [showErrors]="!!_minError()"
5740
+ [placeholder]="_formatBound(r.min)"
5721
5741
  [ngModel]="pendingMin()" (ngModelChange)="pendingMin.set($event)" />
5722
5742
  <ui-text-input type="number" valueType="number" inputTestId="cf-range-max"
5723
5743
  [label]="labels.t('rangeFilter.max')" [ariaLabel]="labels.t('rangeFilter.maxFor', { label: label() })"
5724
- [min]="r.min" [max]="r.max" [step]="r.step" [maxDecimals]="_decimals()" [error]="_crossError()"
5725
- [placeholder]="r.max != null ? _boundHint(r.max) : ''"
5744
+ [min]="r.min" [max]="r.max" [step]="r.step" [maxDecimals]="_decimals()" [error]="_maxError()" [showErrors]="_maxError() !== ''"
5745
+ [placeholder]="r.max != null ? _formatBound(r.max) : ''"
5726
5746
  [ngModel]="pendingMax()" (ngModelChange)="pendingMax.set($event)" />
5727
5747
  </div>
5728
5748
  <div class="cf-footer cf-footer--range">
@@ -5767,7 +5787,7 @@ var ColumnFilterComponent = class ColumnFilterComponent {
5767
5787
  </div>
5768
5788
  `,
5769
5789
  isInline: true,
5770
- styles: [":host{display:inline-block;position:relative}.cf-wrapper{position:relative}.cf-trigger{display:inline-flex;align-items:center;gap:4px;background:none;border:none;cursor:pointer;color:#94a3b8;padding:2px 4px;border-radius:4px;font-family:inherit;font-size:.75rem;transition:color .15s}.cf-trigger:hover{color:#1e293b}.cf-trigger.cf-active{color:#3b82f6}.cf-trigger:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}@media(max-width:640px),(pointer:coarse){.cf-trigger{position:relative}.cf-trigger:after{content:\"\";position:absolute;top:50%;left:50%;width:44px;height:44px;transform:translate(-50%,-50%)}}.cf-active-label{font-size:.75rem;font-weight:500;color:#3b82f6}.cf-trigger--chip{min-height:44px;padding:0 14px;gap:6px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#334155;font-size:.8125rem;font-weight:500}.cf-trigger--chip.cf-active{border-color:#bfdbfe;background:#eff6ff}.cf-trigger--chip:after{display:none}.cf-chip-label{white-space:nowrap}.cf-dropdown{position:fixed;display:flex;flex-direction:column;max-height:calc(100vh - 16px);z-index:9999;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 6px #0000000a,0 12px 28px #0000001a;min-width:220px;animation:cf-drop .16s cubic-bezier(.16,1,.3,1)}.cf-header{display:flex;align-items:center;justify-content:space-between;padding:12px 12px 10px 16px;border-bottom:1px solid #f1f5f9}.cf-header-label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#64748b}.cf-close{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;background:none;border:none;cursor:pointer;color:#94a3b8;flex-shrink:0;transition:background .13s,color .13s}.cf-close:hover{background:#f1f5f9;color:#1e293b}@media(max-width:640px),(pointer:coarse){.cf-close{position:relative}.cf-close:after{content:\"\";position:absolute;inset:-10px}}.cf-options{padding:6px 8px;overflow-y:auto;min-height:0}.cf-option{display:flex;align-items:center;gap:10px;width:100%;padding:10px;background:none;border:none;border-bottom:1px solid #e2e8f0;cursor:pointer;font-size:.875rem;font-weight:400;color:#1e293b;font-family:inherit;text-align:left;border-radius:0;transition:background .12s}.cf-option:last-child{border-bottom:none}.cf-option:hover{background:#f8fafc}.cf-option.cf-selected{background:#eff6ff;color:#1d4ed8;font-weight:500}.cf-option:focus-visible{outline:2px solid #3b82f6;outline-offset:-2px}.cf-checkbox{flex-shrink:0;width:16px;height:16px;border-radius:4px;border:1.5px solid #7c8ba1;display:flex;align-items:center;justify-content:center;background:#fff;transition:background .12s,border-color .12s}.cf-checkbox.cf-checkbox--checked{background:#3b82f6;border-color:#3b82f6;color:#fff}.cf-count{margin-left:auto;font-size:.7rem;font-weight:600;line-height:1;background:#f1f5f9;color:#475569;border-radius:999px;padding:2px 7px;min-width:22px;text-align:center}.cf-option.cf-selected .cf-count{background:#dbeafe;color:#1d4ed8}.cf-range{display:flex;flex-direction:column;gap:12px;padding:12px 16px;min-width:220px}.cf-footer--range .cf-clear:disabled,.cf-footer--range .cf-apply:disabled{opacity:.5;cursor:not-allowed}.cf-footer{display:flex;gap:8px;padding:10px 12px 12px;border-top:1px solid #f1f5f9}.cf-clear{flex:1;padding:8px;border-radius:8px;border:1px solid #e2e8f0;background:#fff;font-size:.8125rem;color:#64748b;cursor:pointer;font-family:inherit;font-weight:500;transition:background .12s,color .12s}.cf-clear:hover{background:#f8fafc;color:#1e293b}.cf-apply{flex:1;padding:8px;border-radius:8px;border:none;background:#0f172a;color:#fff;font-size:.8125rem;cursor:pointer;font-family:inherit;font-weight:600;transition:background .12s}.cf-apply:hover{background:#1e293b}@keyframes cf-drop{0%{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:1024px){.cf-trigger{padding:6px 8px}.cf-option{padding:11px 10px;min-height:40px}.cf-clear,.cf-apply{padding:10px}}@media(max-width:640px){.cf-dropdown{min-width:200px;max-width:calc(100vw - 16px)}.cf-option{padding:12px 10px;min-height:44px}.cf-clear,.cf-apply{padding:11px}}@media(prefers-reduced-motion:reduce){.cf-dropdown{animation:none}}\n"],
5790
+ styles: [":host{display:inline-block;position:relative}.cf-wrapper{position:relative}.cf-trigger{display:inline-flex;align-items:center;gap:4px;background:none;border:none;cursor:pointer;color:#94a3b8;padding:2px 4px;border-radius:4px;font-family:inherit;font-size:.75rem;transition:color .15s}.cf-trigger:hover{color:#1e293b}.cf-trigger.cf-active{color:#3b82f6}.cf-trigger:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}@media(max-width:640px),(pointer:coarse){.cf-trigger{position:relative}.cf-trigger:after{content:\"\";position:absolute;top:50%;left:50%;width:44px;height:44px;transform:translate(-50%,-50%)}}.cf-active-label{font-size:.75rem;font-weight:500;color:#3b82f6}.cf-trigger--chip{min-height:44px;padding:0 14px;gap:6px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#334155;font-size:.8125rem;font-weight:500}.cf-trigger--chip.cf-active{border-color:#bfdbfe;background:#eff6ff}.cf-trigger--chip:after{display:none}.cf-chip-label{white-space:nowrap}.cf-dropdown{position:fixed;display:flex;flex-direction:column;max-height:calc(100vh - 16px);z-index:9999;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 6px #0000000a,0 12px 28px #0000001a;min-width:220px;animation:cf-drop .16s cubic-bezier(.16,1,.3,1)}.cf-header{display:flex;align-items:center;justify-content:space-between;padding:12px 12px 10px 16px;border-bottom:1px solid #f1f5f9}.cf-header-label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#64748b}.cf-close{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;background:none;border:none;cursor:pointer;color:#94a3b8;flex-shrink:0;transition:background .13s,color .13s}.cf-close:hover{background:#f1f5f9;color:#1e293b}@media(max-width:640px),(pointer:coarse){.cf-close{position:relative}.cf-close:after{content:\"\";position:absolute;inset:-10px}}.cf-options{padding:6px 8px;overflow-y:auto;min-height:0}.cf-option{display:flex;align-items:center;gap:10px;width:100%;padding:10px;background:none;border:none;border-bottom:1px solid #e2e8f0;cursor:pointer;font-size:.875rem;font-weight:400;color:#1e293b;font-family:inherit;text-align:left;border-radius:0;transition:background .12s}.cf-option:last-child{border-bottom:none}.cf-option:hover{background:#f8fafc}.cf-option.cf-selected{background:#eff6ff;color:#1d4ed8;font-weight:500}.cf-option:focus-visible{outline:2px solid #3b82f6;outline-offset:-2px}.cf-checkbox{flex-shrink:0;width:16px;height:16px;border-radius:4px;border:1.5px solid #7c8ba1;display:flex;align-items:center;justify-content:center;background:#fff;transition:background .12s,border-color .12s}.cf-checkbox.cf-checkbox--checked{background:#3b82f6;border-color:#3b82f6;color:#fff}.cf-count{margin-left:auto;font-size:.7rem;font-weight:600;line-height:1;background:#f1f5f9;color:#475569;border-radius:999px;padding:2px 7px;min-width:22px;text-align:center}.cf-option.cf-selected .cf-count{background:#dbeafe;color:#1d4ed8}.cf-range{display:flex;flex-direction:column;gap:12px;padding:12px 16px;min-width:220px}.cf-footer--range .cf-clear:disabled,.cf-footer--range .cf-apply:disabled{opacity:.5;cursor:not-allowed}.cf-footer{display:flex;gap:8px;padding:10px 12px 12px;border-top:1px solid #f1f5f9}.cf-clear{flex:1;padding:8px;border-radius:8px;border:1px solid #e2e8f0;background:#fff;font-size:.8125rem;color:#64748b;cursor:pointer;font-family:inherit;font-weight:500;transition:background .12s,color .12s}.cf-clear:hover{background:#f8fafc;color:#1e293b}.cf-apply{flex:1;padding:8px;border-radius:8px;border:none;background:#0f172a;color:#fff;font-size:.8125rem;cursor:pointer;font-family:inherit;font-weight:600;transition:background .12s}.cf-apply:hover{background:#1e293b}@keyframes cf-drop{0%{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:1024px){.cf-trigger{padding:6px 8px}.cf-option{padding:11px 10px;min-height:40px}.cf-clear,.cf-apply{padding:10px}}@media(pointer:coarse),(max-width:640px){.cf-footer--range .cf-clear,.cf-footer--range .cf-apply{min-height:44px}}@media(max-width:640px){.cf-dropdown{min-width:200px;max-width:calc(100vw - 16px)}.cf-option{padding:12px 10px;min-height:44px}.cf-clear,.cf-apply{padding:11px}}@media(prefers-reduced-motion:reduce){.cf-dropdown{animation:none}}\n"],
5771
5791
  dependencies: [
5772
5792
  {
5773
5793
  kind: "ngmodule",
@@ -5890,16 +5910,16 @@ i0.ɵɵngDeclareClassMetadata({
5890
5910
  </button>
5891
5911
  </div>
5892
5912
  @if (range(); as r) {
5893
- <div class="cf-range" role="group" [attr.aria-label]="labels.t('rangeFilter.group', { label: label() })" (keydown.enter)="onEnter($event)">
5913
+ <div class="cf-range" role="group" [attr.aria-label]="labels.t('rangeFilter.group', { label: label() })" (keydown.enter)="onEnter($event)" (input)="onRangeInput($event)">
5894
5914
  <ui-text-input type="number" valueType="number" inputTestId="cf-range-min"
5895
5915
  [label]="labels.t('rangeFilter.min')" [ariaLabel]="labels.t('rangeFilter.minFor', { label: label() })"
5896
- [min]="r.min" [max]="r.max" [step]="r.step" [maxDecimals]="_decimals()" [error]="_crossError()"
5897
- [placeholder]="_boundHint(r.min)"
5916
+ [min]="r.min" [max]="r.max" [step]="r.step" [maxDecimals]="_decimals()" [error]="_minError()" [showErrors]="!!_minError()"
5917
+ [placeholder]="_formatBound(r.min)"
5898
5918
  [ngModel]="pendingMin()" (ngModelChange)="pendingMin.set($event)" />
5899
5919
  <ui-text-input type="number" valueType="number" inputTestId="cf-range-max"
5900
5920
  [label]="labels.t('rangeFilter.max')" [ariaLabel]="labels.t('rangeFilter.maxFor', { label: label() })"
5901
- [min]="r.min" [max]="r.max" [step]="r.step" [maxDecimals]="_decimals()" [error]="_crossError()"
5902
- [placeholder]="r.max != null ? _boundHint(r.max) : ''"
5921
+ [min]="r.min" [max]="r.max" [step]="r.step" [maxDecimals]="_decimals()" [error]="_maxError()" [showErrors]="_maxError() !== ''"
5922
+ [placeholder]="r.max != null ? _formatBound(r.max) : ''"
5903
5923
  [ngModel]="pendingMax()" (ngModelChange)="pendingMax.set($event)" />
5904
5924
  </div>
5905
5925
  <div class="cf-footer cf-footer--range">
@@ -5943,7 +5963,7 @@ i0.ɵɵngDeclareClassMetadata({
5943
5963
  }
5944
5964
  </div>
5945
5965
  `,
5946
- styles: [":host{display:inline-block;position:relative}.cf-wrapper{position:relative}.cf-trigger{display:inline-flex;align-items:center;gap:4px;background:none;border:none;cursor:pointer;color:#94a3b8;padding:2px 4px;border-radius:4px;font-family:inherit;font-size:.75rem;transition:color .15s}.cf-trigger:hover{color:#1e293b}.cf-trigger.cf-active{color:#3b82f6}.cf-trigger:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}@media(max-width:640px),(pointer:coarse){.cf-trigger{position:relative}.cf-trigger:after{content:\"\";position:absolute;top:50%;left:50%;width:44px;height:44px;transform:translate(-50%,-50%)}}.cf-active-label{font-size:.75rem;font-weight:500;color:#3b82f6}.cf-trigger--chip{min-height:44px;padding:0 14px;gap:6px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#334155;font-size:.8125rem;font-weight:500}.cf-trigger--chip.cf-active{border-color:#bfdbfe;background:#eff6ff}.cf-trigger--chip:after{display:none}.cf-chip-label{white-space:nowrap}.cf-dropdown{position:fixed;display:flex;flex-direction:column;max-height:calc(100vh - 16px);z-index:9999;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 6px #0000000a,0 12px 28px #0000001a;min-width:220px;animation:cf-drop .16s cubic-bezier(.16,1,.3,1)}.cf-header{display:flex;align-items:center;justify-content:space-between;padding:12px 12px 10px 16px;border-bottom:1px solid #f1f5f9}.cf-header-label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#64748b}.cf-close{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;background:none;border:none;cursor:pointer;color:#94a3b8;flex-shrink:0;transition:background .13s,color .13s}.cf-close:hover{background:#f1f5f9;color:#1e293b}@media(max-width:640px),(pointer:coarse){.cf-close{position:relative}.cf-close:after{content:\"\";position:absolute;inset:-10px}}.cf-options{padding:6px 8px;overflow-y:auto;min-height:0}.cf-option{display:flex;align-items:center;gap:10px;width:100%;padding:10px;background:none;border:none;border-bottom:1px solid #e2e8f0;cursor:pointer;font-size:.875rem;font-weight:400;color:#1e293b;font-family:inherit;text-align:left;border-radius:0;transition:background .12s}.cf-option:last-child{border-bottom:none}.cf-option:hover{background:#f8fafc}.cf-option.cf-selected{background:#eff6ff;color:#1d4ed8;font-weight:500}.cf-option:focus-visible{outline:2px solid #3b82f6;outline-offset:-2px}.cf-checkbox{flex-shrink:0;width:16px;height:16px;border-radius:4px;border:1.5px solid #7c8ba1;display:flex;align-items:center;justify-content:center;background:#fff;transition:background .12s,border-color .12s}.cf-checkbox.cf-checkbox--checked{background:#3b82f6;border-color:#3b82f6;color:#fff}.cf-count{margin-left:auto;font-size:.7rem;font-weight:600;line-height:1;background:#f1f5f9;color:#475569;border-radius:999px;padding:2px 7px;min-width:22px;text-align:center}.cf-option.cf-selected .cf-count{background:#dbeafe;color:#1d4ed8}.cf-range{display:flex;flex-direction:column;gap:12px;padding:12px 16px;min-width:220px}.cf-footer--range .cf-clear:disabled,.cf-footer--range .cf-apply:disabled{opacity:.5;cursor:not-allowed}.cf-footer{display:flex;gap:8px;padding:10px 12px 12px;border-top:1px solid #f1f5f9}.cf-clear{flex:1;padding:8px;border-radius:8px;border:1px solid #e2e8f0;background:#fff;font-size:.8125rem;color:#64748b;cursor:pointer;font-family:inherit;font-weight:500;transition:background .12s,color .12s}.cf-clear:hover{background:#f8fafc;color:#1e293b}.cf-apply{flex:1;padding:8px;border-radius:8px;border:none;background:#0f172a;color:#fff;font-size:.8125rem;cursor:pointer;font-family:inherit;font-weight:600;transition:background .12s}.cf-apply:hover{background:#1e293b}@keyframes cf-drop{0%{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:1024px){.cf-trigger{padding:6px 8px}.cf-option{padding:11px 10px;min-height:40px}.cf-clear,.cf-apply{padding:10px}}@media(max-width:640px){.cf-dropdown{min-width:200px;max-width:calc(100vw - 16px)}.cf-option{padding:12px 10px;min-height:44px}.cf-clear,.cf-apply{padding:11px}}@media(prefers-reduced-motion:reduce){.cf-dropdown{animation:none}}\n"]
5966
+ styles: [":host{display:inline-block;position:relative}.cf-wrapper{position:relative}.cf-trigger{display:inline-flex;align-items:center;gap:4px;background:none;border:none;cursor:pointer;color:#94a3b8;padding:2px 4px;border-radius:4px;font-family:inherit;font-size:.75rem;transition:color .15s}.cf-trigger:hover{color:#1e293b}.cf-trigger.cf-active{color:#3b82f6}.cf-trigger:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}@media(max-width:640px),(pointer:coarse){.cf-trigger{position:relative}.cf-trigger:after{content:\"\";position:absolute;top:50%;left:50%;width:44px;height:44px;transform:translate(-50%,-50%)}}.cf-active-label{font-size:.75rem;font-weight:500;color:#3b82f6}.cf-trigger--chip{min-height:44px;padding:0 14px;gap:6px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;color:#334155;font-size:.8125rem;font-weight:500}.cf-trigger--chip.cf-active{border-color:#bfdbfe;background:#eff6ff}.cf-trigger--chip:after{display:none}.cf-chip-label{white-space:nowrap}.cf-dropdown{position:fixed;display:flex;flex-direction:column;max-height:calc(100vh - 16px);z-index:9999;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 4px 6px #0000000a,0 12px 28px #0000001a;min-width:220px;animation:cf-drop .16s cubic-bezier(.16,1,.3,1)}.cf-header{display:flex;align-items:center;justify-content:space-between;padding:12px 12px 10px 16px;border-bottom:1px solid #f1f5f9}.cf-header-label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#64748b}.cf-close{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;background:none;border:none;cursor:pointer;color:#94a3b8;flex-shrink:0;transition:background .13s,color .13s}.cf-close:hover{background:#f1f5f9;color:#1e293b}@media(max-width:640px),(pointer:coarse){.cf-close{position:relative}.cf-close:after{content:\"\";position:absolute;inset:-10px}}.cf-options{padding:6px 8px;overflow-y:auto;min-height:0}.cf-option{display:flex;align-items:center;gap:10px;width:100%;padding:10px;background:none;border:none;border-bottom:1px solid #e2e8f0;cursor:pointer;font-size:.875rem;font-weight:400;color:#1e293b;font-family:inherit;text-align:left;border-radius:0;transition:background .12s}.cf-option:last-child{border-bottom:none}.cf-option:hover{background:#f8fafc}.cf-option.cf-selected{background:#eff6ff;color:#1d4ed8;font-weight:500}.cf-option:focus-visible{outline:2px solid #3b82f6;outline-offset:-2px}.cf-checkbox{flex-shrink:0;width:16px;height:16px;border-radius:4px;border:1.5px solid #7c8ba1;display:flex;align-items:center;justify-content:center;background:#fff;transition:background .12s,border-color .12s}.cf-checkbox.cf-checkbox--checked{background:#3b82f6;border-color:#3b82f6;color:#fff}.cf-count{margin-left:auto;font-size:.7rem;font-weight:600;line-height:1;background:#f1f5f9;color:#475569;border-radius:999px;padding:2px 7px;min-width:22px;text-align:center}.cf-option.cf-selected .cf-count{background:#dbeafe;color:#1d4ed8}.cf-range{display:flex;flex-direction:column;gap:12px;padding:12px 16px;min-width:220px}.cf-footer--range .cf-clear:disabled,.cf-footer--range .cf-apply:disabled{opacity:.5;cursor:not-allowed}.cf-footer{display:flex;gap:8px;padding:10px 12px 12px;border-top:1px solid #f1f5f9}.cf-clear{flex:1;padding:8px;border-radius:8px;border:1px solid #e2e8f0;background:#fff;font-size:.8125rem;color:#64748b;cursor:pointer;font-family:inherit;font-weight:500;transition:background .12s,color .12s}.cf-clear:hover{background:#f8fafc;color:#1e293b}.cf-apply{flex:1;padding:8px;border-radius:8px;border:none;background:#0f172a;color:#fff;font-size:.8125rem;cursor:pointer;font-family:inherit;font-weight:600;transition:background .12s}.cf-apply:hover{background:#1e293b}@keyframes cf-drop{0%{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:1024px){.cf-trigger{padding:6px 8px}.cf-option{padding:11px 10px;min-height:40px}.cf-clear,.cf-apply{padding:10px}}@media(pointer:coarse),(max-width:640px){.cf-footer--range .cf-clear,.cf-footer--range .cf-apply{min-height:44px}}@media(max-width:640px){.cf-dropdown{min-width:200px;max-width:calc(100vw - 16px)}.cf-option{padding:12px 10px;min-height:44px}.cf-clear,.cf-apply{padding:11px}}@media(prefers-reduced-motion:reduce){.cf-dropdown{animation:none}}\n"]
5947
5967
  }]
5948
5968
  }],
5949
5969
  ctorParameters: () => [],
@@ -15662,7 +15682,14 @@ var DataTableComponent = class DataTableComponent {
15662
15682
  const keys = this._rangeSpecs();
15663
15683
  untracked(() => {
15664
15684
  const cur = this._rangeValues();
15665
- if (Object.keys(cur).filter((k) => !keys.has(k)).length) this._rangeValues.set(Object.fromEntries(Object.entries(cur).filter(([k]) => keys.has(k))));
15685
+ const stale = Object.keys(cur).filter((k) => !keys.has(k));
15686
+ if (!stale.length) return;
15687
+ const hadBound = stale.some((k) => cur[k]?.min != null || cur[k]?.max != null);
15688
+ this._rangeValues.set(Object.fromEntries(Object.entries(cur).filter(([k]) => keys.has(k))));
15689
+ if (hadBound) {
15690
+ this._page.set(1);
15691
+ this.load();
15692
+ }
15666
15693
  });
15667
15694
  }, ...ngDevMode ? [{ debugName: "_pruneRanges" }] : /* istanbul ignore next */ []);
15668
15695
  this._rangeParams = computed(() => {
@@ -15957,7 +15984,7 @@ var DataTableComponent = class DataTableComponent {
15957
15984
  return opts;
15958
15985
  }, ...ngDevMode ? [{ debugName: "_phoneSortOptions" }] : /* istanbul ignore next */ []);
15959
15986
  this._phoneSortValue = computed(() => this._sortField() ? `${this._sortField()}:${this._sortDir()}` : "", ...ngDevMode ? [{ debugName: "_phoneSortValue" }] : /* istanbul ignore next */ []);
15960
- this._phoneFilterCols = computed(() => this.visibleCols().map((col) => ({
15987
+ this._phoneFilterCols = computed(() => this.visibleCols().filter((col) => this.getRangeFilter(col) === null).map((col) => ({
15961
15988
  col,
15962
15989
  cf: this.getColFilter(col)
15963
15990
  })).filter((f) => f.cf !== null), ...ngDevMode ? [{ debugName: "_phoneFilterCols" }] : /* istanbul ignore next */ []);
@@ -34043,8 +34070,10 @@ var MultiSelectComponent = class MultiSelectComponent {
34043
34070
  return q ? this.options().filter((o) => fold(o.label).includes(q)) : this.options();
34044
34071
  }, ...ngDevMode ? [{ debugName: "_filteredOptions" }] : /* istanbul ignore next */ []);
34045
34072
  this._onChange = (_) => {};
34046
- this._touched = signal(false, ...ngDevMode ? [{ debugName: "_touched" }] : /* istanbul ignore next */ []);
34047
- this._shownError = computed(() => this._touched() ? this.error() : "", ...ngDevMode ? [{ debugName: "_shownError" }] : /* istanbul ignore next */ []);
34073
+ this.showErrors = input(false, ...ngDevMode ? [{ debugName: "showErrors" }] : /* istanbul ignore next */ []);
34074
+ this._reveal = createFieldReveal(this.showErrors);
34075
+ this._touched = this._reveal.touched;
34076
+ this._shownError = computed(() => this._reveal.revealed() ? this.error() : "", ...ngDevMode ? [{ debugName: "_shownError" }] : /* istanbul ignore next */ []);
34048
34077
  this._onTouched = () => {};
34049
34078
  }
34050
34079
  resetTouched() {
@@ -34189,6 +34218,13 @@ var MultiSelectComponent = class MultiSelectComponent {
34189
34218
  isSignal: true,
34190
34219
  isRequired: false,
34191
34220
  transformFunction: null
34221
+ },
34222
+ showErrors: {
34223
+ classPropertyName: "showErrors",
34224
+ publicName: "showErrors",
34225
+ isSignal: true,
34226
+ isRequired: false,
34227
+ transformFunction: null
34192
34228
  }
34193
34229
  },
34194
34230
  outputs: { selected: "selectedChange" },
@@ -34501,6 +34537,14 @@ i0.ɵɵngDeclareClassMetadata({
34501
34537
  required: false
34502
34538
  }]
34503
34539
  }],
34540
+ showErrors: [{
34541
+ type: i0.Input,
34542
+ args: [{
34543
+ isSignal: true,
34544
+ alias: "showErrors",
34545
+ required: false
34546
+ }]
34547
+ }],
34504
34548
  onDocumentClick: [{
34505
34549
  type: HostListener,
34506
34550
  args: ["document:click", ["$event"]]
@@ -42932,7 +42976,7 @@ var AddressInputComponent = class AddressInputComponent {
42932
42976
  this.invalid = computed(() => !!this.error() || this._firstIssue(this._issues()) !== null, ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
42933
42977
  this.errorMessage = computed(() => this._firstIssue(this._issues())?.message ?? "", ...ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []);
42934
42978
  this._req = computed(() => this.required() || this.requireComplete() && this._hasText(this._v()), ...ngDevMode ? [{ debugName: "_req" }] : /* istanbul ignore next */ []);
42935
- this._shownError = computed(() => this._touched().size > 0 ? this.error() : "", ...ngDevMode ? [{ debugName: "_shownError" }] : /* istanbul ignore next */ []);
42979
+ this._shownError = computed(() => this.showErrors() || this._touched().size > 0 ? this.error() : "", ...ngDevMode ? [{ debugName: "_shownError" }] : /* istanbul ignore next */ []);
42936
42980
  this._describedBy = computed(() => this._shownError() ? this._errorId : this.hint() ? this._hintId : null, ...ngDevMode ? [{ debugName: "_describedBy" }] : /* istanbul ignore next */ []);
42937
42981
  this._onChange = (_) => {};
42938
42982
  this._textModel = false;
@@ -43008,7 +43052,7 @@ var AddressInputComponent = class AddressInputComponent {
43008
43052
  if (!next || !this.host.nativeElement.contains(next)) this._onTouched();
43009
43053
  }
43010
43054
  _revealed(field) {
43011
- return this._touched().has(field);
43055
+ return this.showErrors() || this._touched().has(field);
43012
43056
  }
43013
43057
  _fieldError(field) {
43014
43058
  if (this.disabled() || this.readonly()) return "";
@@ -46145,8 +46189,10 @@ var RichTextEditorComponent = class RichTextEditorComponent {
46145
46189
  this.readonly = input(false, ...ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []);
46146
46190
  this.hint = input("", ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
46147
46191
  this.error = input("", ...ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []);
46148
- this._touched = signal(false, ...ngDevMode ? [{ debugName: "_touched" }] : /* istanbul ignore next */ []);
46149
- this._activeError = computed(() => this._touched() ? this.error() : "", ...ngDevMode ? [{ debugName: "_activeError" }] : /* istanbul ignore next */ []);
46192
+ this.showErrors = input(false, ...ngDevMode ? [{ debugName: "showErrors" }] : /* istanbul ignore next */ []);
46193
+ this._reveal = createFieldReveal(this.showErrors);
46194
+ this._touched = this._reveal.touched;
46195
+ this._activeError = computed(() => this._reveal.revealed() ? this.error() : "", ...ngDevMode ? [{ debugName: "_activeError" }] : /* istanbul ignore next */ []);
46150
46196
  this.minHeight = input(200, ...ngDevMode ? [{ debugName: "minHeight" }] : /* istanbul ignore next */ []);
46151
46197
  this.maxHeight = input(600, ...ngDevMode ? [{ debugName: "maxHeight" }] : /* istanbul ignore next */ []);
46152
46198
  this.hide = input([], ...ngDevMode ? [{ debugName: "hide" }] : /* istanbul ignore next */ []);
@@ -46493,6 +46539,13 @@ var RichTextEditorComponent = class RichTextEditorComponent {
46493
46539
  isRequired: false,
46494
46540
  transformFunction: null
46495
46541
  },
46542
+ showErrors: {
46543
+ classPropertyName: "showErrors",
46544
+ publicName: "showErrors",
46545
+ isSignal: true,
46546
+ isRequired: false,
46547
+ transformFunction: null
46548
+ },
46496
46549
  minHeight: {
46497
46550
  classPropertyName: "minHeight",
46498
46551
  publicName: "minHeight",
@@ -47096,6 +47149,14 @@ i0.ɵɵngDeclareClassMetadata({
47096
47149
  required: false
47097
47150
  }]
47098
47151
  }],
47152
+ showErrors: [{
47153
+ type: i0.Input,
47154
+ args: [{
47155
+ isSignal: true,
47156
+ alias: "showErrors",
47157
+ required: false
47158
+ }]
47159
+ }],
47099
47160
  minHeight: [{
47100
47161
  type: i0.Input,
47101
47162
  args: [{
@@ -48433,8 +48494,10 @@ var SignaturePadComponent = class SignaturePadComponent {
48433
48494
  this.ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
48434
48495
  this.hint = input("", ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
48435
48496
  this.error = input("", ...ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []);
48436
- this._touched = signal(false, ...ngDevMode ? [{ debugName: "_touched" }] : /* istanbul ignore next */ []);
48437
- this._activeError = computed(() => this._touched() ? this.error() : "", ...ngDevMode ? [{ debugName: "_activeError" }] : /* istanbul ignore next */ []);
48497
+ this.showErrors = input(false, ...ngDevMode ? [{ debugName: "showErrors" }] : /* istanbul ignore next */ []);
48498
+ this._reveal = createFieldReveal(this.showErrors);
48499
+ this._touched = this._reveal.touched;
48500
+ this._activeError = computed(() => this._reveal.revealed() ? this.error() : "", ...ngDevMode ? [{ debugName: "_activeError" }] : /* istanbul ignore next */ []);
48438
48501
  this.width = input(600, ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
48439
48502
  this.height = input(120, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
48440
48503
  this.outputWidth = input(600, ...ngDevMode ? [{ debugName: "outputWidth" }] : /* istanbul ignore next */ []);
@@ -48785,6 +48848,13 @@ var SignaturePadComponent = class SignaturePadComponent {
48785
48848
  isRequired: false,
48786
48849
  transformFunction: null
48787
48850
  },
48851
+ showErrors: {
48852
+ classPropertyName: "showErrors",
48853
+ publicName: "showErrors",
48854
+ isSignal: true,
48855
+ isRequired: false,
48856
+ transformFunction: null
48857
+ },
48788
48858
  width: {
48789
48859
  classPropertyName: "width",
48790
48860
  publicName: "width",
@@ -49039,6 +49109,14 @@ i0.ɵɵngDeclareClassMetadata({
49039
49109
  required: false
49040
49110
  }]
49041
49111
  }],
49112
+ showErrors: [{
49113
+ type: i0.Input,
49114
+ args: [{
49115
+ isSignal: true,
49116
+ alias: "showErrors",
49117
+ required: false
49118
+ }]
49119
+ }],
49042
49120
  width: [{
49043
49121
  type: i0.Input,
49044
49122
  args: [{
@@ -65436,6 +65514,7 @@ var ConversationsComponent = class ConversationsComponent {
65436
65514
  "readonly",
65437
65515
  "hint",
65438
65516
  "error",
65517
+ "showErrors",
65439
65518
  "minHeight",
65440
65519
  "maxHeight",
65441
65520
  "hide",
@@ -69014,7 +69093,7 @@ const BUILT_IN_ENDONYMS = {
69014
69093
  ko: "한국어",
69015
69094
  ru: "Русский"
69016
69095
  };
69017
- const BUILT_IN_LOADERS = /* @__PURE__ */ new Map([["es", () => import("./forgeroute-ui-ui-labels.es-YdWyQXrS.mjs").then((m) => m.UI_LABELS_ES)]]);
69096
+ const BUILT_IN_LOADERS = /* @__PURE__ */ new Map([["es", () => import("./forgeroute-ui-ui-labels.es-Bdh64Ql6.mjs").then((m) => m.UI_LABELS_ES)]]);
69018
69097
  const normalizeTag = (tag) => tag.trim().toLowerCase().replace(/_/g, "-");
69019
69098
  const baseOf = (tag) => normalizeTag(tag).split("-")[0];
69020
69099
  const builtInLoader = (lang) => BUILT_IN_LOADERS.get(normalizeTag(lang)) ?? BUILT_IN_LOADERS.get(baseOf(lang));