@jdpo2008/ngx-ds 0.5.0 → 0.6.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.
@@ -1,8 +1,8 @@
1
1
  import * as i0 from '@angular/core';
2
- import { signal, Injectable, InjectionToken, inject, provideAppInitializer, makeEnvironmentProviders, DOCUMENT, DestroyRef, ElementRef, Directive, input, ChangeDetectionStrategy, Component, computed, output, ViewEncapsulation, ApplicationRef, EnvironmentInjector, createComponent, model, forwardRef, Renderer2, viewChild, Injector, afterNextRender, effect, untracked, viewChildren, contentChildren, afterRenderEffect, linkedSignal, TemplateRef, contentChild } from '@angular/core';
2
+ import { signal, Injectable, InjectionToken, inject, provideAppInitializer, makeEnvironmentProviders, DOCUMENT, DestroyRef, isDevMode, ElementRef, Directive, input, ChangeDetectionStrategy, Component, computed, output, ViewEncapsulation, ApplicationRef, EnvironmentInjector, createComponent, model, forwardRef, Renderer2, viewChild, Injector, afterNextRender, effect, untracked, viewChildren, contentChildren, afterRenderEffect, linkedSignal, TemplateRef, contentChild } from '@angular/core';
3
3
  import { DOCUMENT as DOCUMENT$1, NgTemplateOutlet, CommonModule } from '@angular/common';
4
4
  import * as i1 from 'lucide-angular';
5
- import { LucideAngularModule, X, EyeOff, Eye, ChevronDown, ChevronUp, Check, Search, Calendar, ChevronLeft, ChevronRight, AlertCircle, AlertTriangle, CheckCircle2, Info, Upload, FileImage, FileVideo, FileText, File, Plus, Minus, Star, Clock, Columns3, MoreVertical, ArrowUpDown, ArrowDown, ArrowUp, Inbox, CheckCircle, Bell, BellOff, PanelLeftOpen, PanelLeftClose, Play, Pause } from 'lucide-angular';
5
+ import { LucideAngularModule, X, EyeOff, Eye, ChevronDown, ChevronUp, Check, Search, Calendar, ChevronLeft, ChevronRight, AlertCircle, AlertTriangle, CheckCircle2, Info, Upload, FileImage, FileVideo, FileText, File, Plus, Minus, Star, Clock, Pencil, Columns3, MoreVertical, ArrowUpDown, ArrowDown, ArrowUp, Inbox, CheckCircle, Bell, BellOff, PanelLeftOpen, PanelLeftClose, Play, Pause } from 'lucide-angular';
6
6
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
7
7
  import { DomSanitizer } from '@angular/platform-browser';
8
8
 
@@ -87,6 +87,8 @@ const NGX_DS_LABELS_ES = {
87
87
  rangeStart: 'Valor mínimo',
88
88
  rangeEnd: 'Valor máximo',
89
89
  removeTag: (label) => `Eliminar ${label}`,
90
+ edit: (label) => (label ? `Editar ${label}` : 'Editar'),
91
+ save: 'Guardar',
90
92
  removeChip: (label) => `Quitar ${label}`,
91
93
  rating: 'Valoración',
92
94
  ratingStar: (n) => `${n} estrella${n > 1 ? 's' : ''}`,
@@ -202,6 +204,8 @@ const NGX_DS_LABELS_EN = {
202
204
  rangeStart: 'Minimum value',
203
205
  rangeEnd: 'Maximum value',
204
206
  removeTag: (label) => `Remove ${label}`,
207
+ edit: (label) => (label ? `Edit ${label}` : 'Edit'),
208
+ save: 'Save',
205
209
  removeChip: (label) => `Remove ${label}`,
206
210
  rating: 'Rating',
207
211
  ratingStar: (n) => `${n} star${n > 1 ? 's' : ''}`,
@@ -386,17 +390,167 @@ function formatDayLabel(date, locale) {
386
390
  return date.toLocaleDateString(locale, { day: 'numeric', month: 'long', year: 'numeric' });
387
391
  }
388
392
 
393
+ // Runtime primary colour: builds the --primary-* scale from one brand colour.
394
+ //
395
+ // The scale is computed in OKLCH. The brand colour is step 600 (the one behind
396
+ // --fill-primary) and the other steps keep the lightness/chroma ladder of the
397
+ // default indigo palette, so a brand colour of #4f46e5 reproduces the defaults.
398
+ /** Steps of `--primary-*` the components read, in the light and in the dark theme. */
399
+ const PRIMARY_STEPS = [50, 100, 200, 300, 400, 500, 600, 700];
400
+ // Lightness and chroma of each step of the reference ladder (Tailwind indigo in
401
+ // OKLCH), relative to step 600: lighter steps as a share of the way to white,
402
+ // darker ones as a share of the lightness of 600.
403
+ const L600 = 0.511;
404
+ const C600 = 0.262;
405
+ const LADDER = {
406
+ 50: [0.962, 0.018],
407
+ 100: [0.93, 0.034],
408
+ 200: [0.87, 0.065],
409
+ 300: [0.785, 0.115],
410
+ 400: [0.673, 0.182],
411
+ 500: [0.585, 0.233],
412
+ 600: [L600, C600],
413
+ 700: [0.457, 0.24],
414
+ 800: [0.398, 0.195],
415
+ 900: [0.359, 0.144],
416
+ 950: [0.257, 0.09],
417
+ };
418
+ // The dark theme uses deep shades for the soft backgrounds (50–200) and lighter
419
+ // ones for the accents (500–700), same as _themes.scss.
420
+ const DARK_MAP = {
421
+ 50: 950,
422
+ 100: 900,
423
+ 200: 800,
424
+ 500: 400,
425
+ 600: 500,
426
+ 700: 300,
427
+ };
428
+ /** Parses `#rgb` or `#rrggbb`. Returns `null` for anything else. */
429
+ function parseHex(color) {
430
+ const m = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(color.trim());
431
+ if (!m)
432
+ return null;
433
+ const hex = m[1].length === 3 ? [...m[1]].map((c) => c + c).join('') : m[1];
434
+ return [0, 2, 4].map((i) => parseInt(hex.slice(i, i + 2), 16) / 255);
435
+ }
436
+ const toLinear = (c) => (c <= 0.04045 ? c / 12.92 : ((c + 0.055) / 1.055) ** 2.4);
437
+ const fromLinear = (c) => (c <= 0.0031308 ? 12.92 * c : 1.055 * c ** (1 / 2.4) - 0.055);
438
+ function rgbToOklch([r, g, b]) {
439
+ const [lr, lg, lb] = [r, g, b].map(toLinear);
440
+ const l = Math.cbrt(0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb);
441
+ const m = Math.cbrt(0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb);
442
+ const s = Math.cbrt(0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb);
443
+ const L = 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s;
444
+ const a = 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s;
445
+ const bb = 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s;
446
+ return [L, Math.hypot(a, bb), (Math.atan2(bb, a) * 180) / Math.PI];
447
+ }
448
+ /** Linear sRGB of an OKLCH colour; may fall outside [0, 1]. */
449
+ function oklchToLinear([L, C, H]) {
450
+ const a = C * Math.cos((H * Math.PI) / 180);
451
+ const b = C * Math.sin((H * Math.PI) / 180);
452
+ const l = (L + 0.3963377774 * a + 0.2158037573 * b) ** 3;
453
+ const m = (L - 0.1055613458 * a - 0.0638541728 * b) ** 3;
454
+ const s = (L - 0.0894841775 * a - 1.291485548 * b) ** 3;
455
+ return [
456
+ 4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s,
457
+ -1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s,
458
+ -0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s,
459
+ ];
460
+ }
461
+ const inGamut = (rgb) => rgb.every((c) => c >= -1e-4 && c <= 1 + 1e-4);
462
+ /** Hex of an OKLCH colour, lowering the chroma until it fits in sRGB. */
463
+ function oklchToHex([L, C, H]) {
464
+ let lo = 0;
465
+ let hi = C;
466
+ if (!inGamut(oklchToLinear([L, C, H]))) {
467
+ for (let i = 0; i < 20; i++) {
468
+ const mid = (lo + hi) / 2;
469
+ if (inGamut(oklchToLinear([L, mid, H])))
470
+ lo = mid;
471
+ else
472
+ hi = mid;
473
+ }
474
+ C = lo;
475
+ }
476
+ return ('#' +
477
+ oklchToLinear([L, C, H])
478
+ .map((c) => Math.round(Math.min(1, Math.max(0, fromLinear(c))) * 255))
479
+ .map((c) => c.toString(16).padStart(2, '0'))
480
+ .join(''));
481
+ }
482
+ /** WCAG 2 contrast ratio between two hex colours. */
483
+ function contrastRatio(a, b) {
484
+ const lum = (hex) => {
485
+ const [r, g, bl] = (parseHex(hex) ?? [0, 0, 0]).map(toLinear);
486
+ return 0.2126 * r + 0.7152 * g + 0.0722 * bl;
487
+ };
488
+ const [x, y] = [lum(a), lum(b)].sort((p, q) => q - p);
489
+ return (x + 0.05) / (y + 0.05);
490
+ }
491
+ /**
492
+ * Builds the `--primary-*` scale from a brand colour (`#rgb` / `#rrggbb`), which
493
+ * becomes step 600 in the light theme. Throws on an invalid colour.
494
+ */
495
+ function createPrimaryPalette(color) {
496
+ const rgb = parseHex(color);
497
+ if (!rgb)
498
+ throw new Error(`ngx-ds: invalid primary colour "${color}", use #rgb or #rrggbb.`);
499
+ const [l, c, h] = rgbToOklch(rgb);
500
+ const exact = '#' +
501
+ rgb
502
+ .map((v) => Math.round(v * 255)
503
+ .toString(16)
504
+ .padStart(2, '0'))
505
+ .join('');
506
+ const step = (n) => {
507
+ if (n === 600)
508
+ return exact;
509
+ const [refL, refC] = LADDER[n];
510
+ const L = refL > L600 ? l + ((refL - L600) / (1 - L600)) * (1 - l) : (refL / L600) * l;
511
+ return oklchToHex([L, (refC / C600) * c, h]);
512
+ };
513
+ const light = Object.fromEntries(PRIMARY_STEPS.map((n) => [n, step(n)]));
514
+ const dark = Object.fromEntries(Object.entries(DARK_MAP).map(([n, ref]) => [n, step(ref)]));
515
+ return { light, dark };
516
+ }
517
+ /** CSS that sets the palette on `:root`, with the dark overrides for `data-theme="dark"` / `.dark`. */
518
+ function primaryPaletteCss({ light, dark }) {
519
+ const decls = (steps) => Object.entries(steps)
520
+ .map(([n, hex]) => `--primary-${n}:${hex};`)
521
+ .join('');
522
+ return `:root{${decls(light)}}:root[data-theme='dark'],.dark{${decls(dark)}}`;
523
+ }
524
+ const STYLE_ID = 'ngx-ds-primary';
525
+ /**
526
+ * Applies a brand colour as the primary colour of every ngx-ds component, at runtime.
527
+ * Call it again to change it, or with `null` to go back to the default indigo.
528
+ *
529
+ * The styles are not in a cascade layer, so they win over the tokens in `ngx-ds.scss`.
530
+ */
531
+ function applyPrimaryColor(color, doc = document) {
532
+ doc.getElementById(STYLE_ID)?.remove();
533
+ if (color === null)
534
+ return;
535
+ const style = doc.createElement('style');
536
+ style.id = STYLE_ID;
537
+ style.textContent = primaryPaletteCss(createPrimaryPalette(color));
538
+ doc.head.appendChild(style);
539
+ }
540
+
389
541
  /**
390
542
  * Configures ngx-ds in one call:
391
543
  *
392
544
  * ```ts
393
545
  * bootstrapApplication(AppComponent, {
394
- * providers: [provideNgxDs({ locale: 'en-US', theme: 'system' })],
546
+ * providers: [
547
+ * provideNgxDs({ locale: 'en-US', theme: 'system', colors: { primary: '#0d9488' } }),
548
+ * ],
395
549
  * });
396
550
  * ```
397
551
  */
398
552
  function provideNgxDs(config = {}) {
399
- const { locale, labels, theme } = config;
553
+ const { locale, labels, theme, colors } = config;
400
554
  const providers = [];
401
555
  if (locale)
402
556
  providers.push(provideNgxDsLocale(locale));
@@ -406,6 +560,9 @@ function provideNgxDs(config = {}) {
406
560
  }
407
561
  if (theme)
408
562
  providers.push(provideAppInitializer(() => applyTheme(theme)));
563
+ const primary = colors?.primary;
564
+ if (primary)
565
+ providers.push(provideAppInitializer(() => applyPrimary(primary)));
409
566
  return makeEnvironmentProviders(providers);
410
567
  }
411
568
  function applyTheme(theme) {
@@ -424,6 +581,17 @@ function applyTheme(theme) {
424
581
  query.addEventListener('change', sync);
425
582
  inject(DestroyRef).onDestroy(() => query.removeEventListener('change', sync));
426
583
  }
584
+ function applyPrimary(color) {
585
+ applyPrimaryColor(color, inject(DOCUMENT));
586
+ if (!isDevMode())
587
+ return;
588
+ const fill = createPrimaryPalette(color).light[600];
589
+ const ratio = contrastRatio(fill, '#ffffff');
590
+ if (ratio < 4.5) {
591
+ console.warn(`ngx-ds: white text on the primary colour ${fill} has a contrast of ${ratio.toFixed(2)}:1, ` +
592
+ 'below the 4.5:1 WCAG AA minimum. Use a darker colour.');
593
+ }
594
+ }
427
595
 
428
596
  const FOCUSABLE_SELECTOR = [
429
597
  'a[href]',
@@ -535,7 +703,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
535
703
  args: [{ selector: 'ngx-ds-spinner', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [class]=\"hostClasses()\" role=\"status\" [attr.aria-label]=\"i18n.loading\"></span>\n", styles: [":host{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;line-height:0}.spinner{display:inline-block;border-radius:50%;border-style:solid;border-top-color:transparent!important;animation:ngx-spin .8s linear infinite}.spinner--xs{width:.875rem;height:.875rem;border-width:1.5px}.spinner--sm{width:1rem;height:1rem;border-width:2px}.spinner--md{width:1.25rem;height:1.25rem;border-width:2px}.spinner--lg{width:1.75rem;height:1.75rem;border-width:2.5px}.spinner--current{border-color:currentColor}.spinner--primary{border-color:var(--primary-500, #6366f1)}.spinner--secondary{border-color:var(--gray-500, #6b7280)}.spinner--danger{border-color:var(--danger-500, #ef4444)}.spinner--success{border-color:var(--success-500, #10b981)}.spinner--warning{border-color:var(--warning-500, #f59e0b)}@keyframes ngx-spin{to{transform:rotate(360deg)}}\n"] }]
536
704
  }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
537
705
 
538
- const ICON_SIZE$e = { sm: 14, md: 16, lg: 20 };
706
+ const ICON_SIZE$f = { sm: 14, md: 16, lg: 20 };
539
707
  const SPINNER_SIZE = { sm: 'xs', md: 'sm', lg: 'md' };
540
708
  class ButtonComponent {
541
709
  variant = input('solid', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
@@ -562,7 +730,7 @@ class ButtonComponent {
562
730
  classes.push('btn--loading');
563
731
  return classes.join(' ');
564
732
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
565
- iconSize = computed(() => ICON_SIZE$e[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
733
+ iconSize = computed(() => ICON_SIZE$f[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
566
734
  spinnerSize = computed(() => SPINNER_SIZE[this.size()], ...(ngDevMode ? [{ debugName: "spinnerSize" }] : /* istanbul ignore next */ []));
567
735
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
568
736
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ButtonComponent, isStandalone: true, selector: "ngx-ds-button", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button\n [type]=\"type()\"\n [class]=\"hostClasses()\"\n [disabled]=\"disabled() || loading() || null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n>\n @if (loading()) {\n <ngx-ds-spinner class=\"btn__icon\" [size]=\"spinnerSize()\" color=\"current\" />\n } @else if (iconLeft()) {\n <ngx-ds-icon class=\"btn__icon\" [icon]=\"iconLeft()!\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n }\n <ng-content />\n @if (!loading() && iconRight()) {\n <ngx-ds-icon class=\"btn__icon\" [icon]=\"iconRight()!\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n }\n</button>\n", styles: [".btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif);font-weight:500;border-radius:.375rem;border:1.5px solid transparent;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease,filter .15s ease;white-space:nowrap;line-height:1;text-decoration:none;-webkit-user-select:none;user-select:none}.btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}.btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.btn--sm{padding:.375rem .75rem;font-size:.75rem}.btn--md{padding:.5rem 1rem;font-size:.875rem}.btn--lg{padding:.75rem 1.5rem;font-size:1rem}.btn--rounded{border-radius:9999px}.btn__icon{flex-shrink:0}.btn--loading{cursor:wait;pointer-events:none;opacity:.85}.btn--primary.btn--solid{background-color:var(--fill-primary, #4f46e5);border-color:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff)}.btn--primary.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--primary.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--primary.btn--outline{background-color:transparent;border-color:var(--fill-primary, #4f46e5);color:var(--fill-primary, #4f46e5)}.btn--primary.btn--outline:hover:not(:disabled){background-color:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff)}.btn--primary.btn--outline:active:not(:disabled){background-color:var(--fill-primary, #4f46e5);filter:brightness(.88);color:var(--text-on-color, #fff)}.btn--secondary.btn--solid{background-color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.btn--secondary.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--secondary.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--secondary.btn--outline{background-color:transparent;border-color:var(--fill-neutral, #6b7280);color:var(--fill-neutral, #6b7280)}.btn--secondary.btn--outline:hover:not(:disabled){background-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.btn--secondary.btn--outline:active:not(:disabled){background-color:var(--fill-neutral, #6b7280);filter:brightness(.88);color:var(--text-on-color, #fff)}.btn--danger.btn--solid{background-color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.btn--danger.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--danger.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--danger.btn--outline{background-color:transparent;border-color:var(--fill-danger, #dc2626);color:var(--fill-danger, #dc2626)}.btn--danger.btn--outline:hover:not(:disabled){background-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.btn--danger.btn--outline:active:not(:disabled){background-color:var(--fill-danger, #dc2626);filter:brightness(.88);color:var(--text-on-color, #fff)}.btn--success.btn--solid{background-color:var(--fill-success, #047857);border-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.btn--success.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--success.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--success.btn--outline{background-color:transparent;border-color:var(--fill-success, #047857);color:var(--fill-success, #047857)}.btn--success.btn--outline:hover:not(:disabled){background-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.btn--success.btn--outline:active:not(:disabled){background-color:var(--fill-success, #047857);filter:brightness(.88);color:var(--text-on-color, #fff)}.btn--warning.btn--solid{background-color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.btn--warning.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--warning.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--warning.btn--outline{background-color:transparent;border-color:var(--fill-warning, #b45309);color:var(--fill-warning, #b45309)}.btn--warning.btn--outline:hover:not(:disabled){background-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.btn--warning.btn--outline:active:not(:disabled){background-color:var(--fill-warning, #b45309);filter:brightness(.88);color:var(--text-on-color, #fff)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }, { kind: "component", type: SpinnerComponent, selector: "ngx-ds-spinner", inputs: ["size", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
@@ -572,7 +740,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
572
740
  args: [{ selector: 'ngx-ds-button', standalone: true, imports: [IconComponent, SpinnerComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n [type]=\"type()\"\n [class]=\"hostClasses()\"\n [disabled]=\"disabled() || loading() || null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n>\n @if (loading()) {\n <ngx-ds-spinner class=\"btn__icon\" [size]=\"spinnerSize()\" color=\"current\" />\n } @else if (iconLeft()) {\n <ngx-ds-icon class=\"btn__icon\" [icon]=\"iconLeft()!\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n }\n <ng-content />\n @if (!loading() && iconRight()) {\n <ngx-ds-icon class=\"btn__icon\" [icon]=\"iconRight()!\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n }\n</button>\n", styles: [".btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif);font-weight:500;border-radius:.375rem;border:1.5px solid transparent;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease,filter .15s ease;white-space:nowrap;line-height:1;text-decoration:none;-webkit-user-select:none;user-select:none}.btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}.btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.btn--sm{padding:.375rem .75rem;font-size:.75rem}.btn--md{padding:.5rem 1rem;font-size:.875rem}.btn--lg{padding:.75rem 1.5rem;font-size:1rem}.btn--rounded{border-radius:9999px}.btn__icon{flex-shrink:0}.btn--loading{cursor:wait;pointer-events:none;opacity:.85}.btn--primary.btn--solid{background-color:var(--fill-primary, #4f46e5);border-color:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff)}.btn--primary.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--primary.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--primary.btn--outline{background-color:transparent;border-color:var(--fill-primary, #4f46e5);color:var(--fill-primary, #4f46e5)}.btn--primary.btn--outline:hover:not(:disabled){background-color:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff)}.btn--primary.btn--outline:active:not(:disabled){background-color:var(--fill-primary, #4f46e5);filter:brightness(.88);color:var(--text-on-color, #fff)}.btn--secondary.btn--solid{background-color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.btn--secondary.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--secondary.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--secondary.btn--outline{background-color:transparent;border-color:var(--fill-neutral, #6b7280);color:var(--fill-neutral, #6b7280)}.btn--secondary.btn--outline:hover:not(:disabled){background-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.btn--secondary.btn--outline:active:not(:disabled){background-color:var(--fill-neutral, #6b7280);filter:brightness(.88);color:var(--text-on-color, #fff)}.btn--danger.btn--solid{background-color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.btn--danger.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--danger.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--danger.btn--outline{background-color:transparent;border-color:var(--fill-danger, #dc2626);color:var(--fill-danger, #dc2626)}.btn--danger.btn--outline:hover:not(:disabled){background-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.btn--danger.btn--outline:active:not(:disabled){background-color:var(--fill-danger, #dc2626);filter:brightness(.88);color:var(--text-on-color, #fff)}.btn--success.btn--solid{background-color:var(--fill-success, #047857);border-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.btn--success.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--success.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--success.btn--outline{background-color:transparent;border-color:var(--fill-success, #047857);color:var(--fill-success, #047857)}.btn--success.btn--outline:hover:not(:disabled){background-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.btn--success.btn--outline:active:not(:disabled){background-color:var(--fill-success, #047857);filter:brightness(.88);color:var(--text-on-color, #fff)}.btn--warning.btn--solid{background-color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.btn--warning.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--warning.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--warning.btn--outline{background-color:transparent;border-color:var(--fill-warning, #b45309);color:var(--fill-warning, #b45309)}.btn--warning.btn--outline:hover:not(:disabled){background-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.btn--warning.btn--outline:active:not(:disabled){background-color:var(--fill-warning, #b45309);filter:brightness(.88);color:var(--text-on-color, #fff)}\n"] }]
573
741
  }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], iconLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeft", required: false }] }], iconRight: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconRight", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
574
742
 
575
- const ICON_SIZE$d = { sm: 14, md: 18, lg: 22 };
743
+ const ICON_SIZE$e = { sm: 14, md: 18, lg: 22 };
576
744
  class IconButtonComponent {
577
745
  icon = input.required(...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
578
746
  ariaLabel = input.required(...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
@@ -596,7 +764,7 @@ class IconButtonComponent {
596
764
  classes.push('icon-btn--borderless');
597
765
  return classes.join(' ');
598
766
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
599
- iconSize = computed(() => ICON_SIZE$d[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
767
+ iconSize = computed(() => ICON_SIZE$e[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
600
768
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: IconButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
601
769
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: IconButtonComponent, isStandalone: true, selector: "ngx-ds-icon-button", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: true, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button\n [type]=\"type()\"\n [class]=\"hostClasses()\"\n [disabled]=\"disabled() || null\"\n [attr.aria-label]=\"ariaLabel()\"\n>\n <ngx-ds-icon [icon]=\"icon()\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n</button>\n", styles: [".icon-btn{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:.375rem;border:1.5px solid transparent;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease,filter .15s ease;-webkit-user-select:none;user-select:none}.icon-btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}.icon-btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.icon-btn--sm{width:1.75rem;height:1.75rem}.icon-btn--md{width:2.25rem;height:2.25rem}.icon-btn--lg{width:2.75rem;height:2.75rem}.icon-btn--rounded{border-radius:9999px}.icon-btn--primary.icon-btn--solid{background-color:var(--primary-500, #6366f1);border-color:var(--primary-500, #6366f1);color:var(--text-on-color, #fff)}.icon-btn--primary.icon-btn--solid:hover:not(:disabled){filter:brightness(.88)}.icon-btn--primary.icon-btn--solid:active:not(:disabled){filter:brightness(.78)}.icon-btn--primary.icon-btn--outline{background-color:transparent;border-color:var(--primary-500, #6366f1);color:var(--primary-500, #6366f1)}.icon-btn--primary.icon-btn--outline:hover:not(:disabled){background-color:var(--primary-500, #6366f1);color:var(--text-on-color, #fff)}.icon-btn--primary.icon-btn--outline:active:not(:disabled){background-color:var(--primary-500, #6366f1);filter:brightness(.88);color:var(--text-on-color, #fff)}.icon-btn--secondary.icon-btn--solid{background-color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.icon-btn--secondary.icon-btn--solid:hover:not(:disabled){filter:brightness(.88)}.icon-btn--secondary.icon-btn--solid:active:not(:disabled){filter:brightness(.78)}.icon-btn--secondary.icon-btn--outline{background-color:transparent;border-color:var(--fill-neutral, #6b7280);color:var(--fill-neutral, #6b7280)}.icon-btn--secondary.icon-btn--outline:hover:not(:disabled){background-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.icon-btn--secondary.icon-btn--outline:active:not(:disabled){background-color:var(--fill-neutral, #6b7280);filter:brightness(.88);color:var(--text-on-color, #fff)}.icon-btn--danger.icon-btn--solid{background-color:var(--danger-500, #ef4444);border-color:var(--danger-500, #ef4444);color:var(--text-on-color, #fff)}.icon-btn--danger.icon-btn--solid:hover:not(:disabled){filter:brightness(.88)}.icon-btn--danger.icon-btn--solid:active:not(:disabled){filter:brightness(.78)}.icon-btn--danger.icon-btn--outline{background-color:transparent;border-color:var(--danger-500, #ef4444);color:var(--danger-500, #ef4444)}.icon-btn--danger.icon-btn--outline:hover:not(:disabled){background-color:var(--danger-500, #ef4444);color:var(--text-on-color, #fff)}.icon-btn--danger.icon-btn--outline:active:not(:disabled){background-color:var(--danger-500, #ef4444);filter:brightness(.88);color:var(--text-on-color, #fff)}.icon-btn--success.icon-btn--solid{background-color:var(--success-500, #10b981);border-color:var(--success-500, #10b981);color:var(--text-on-color, #fff)}.icon-btn--success.icon-btn--solid:hover:not(:disabled){filter:brightness(.88)}.icon-btn--success.icon-btn--solid:active:not(:disabled){filter:brightness(.78)}.icon-btn--success.icon-btn--outline{background-color:transparent;border-color:var(--success-500, #10b981);color:var(--success-500, #10b981)}.icon-btn--success.icon-btn--outline:hover:not(:disabled){background-color:var(--success-500, #10b981);color:var(--text-on-color, #fff)}.icon-btn--success.icon-btn--outline:active:not(:disabled){background-color:var(--success-500, #10b981);filter:brightness(.88);color:var(--text-on-color, #fff)}.icon-btn--warning.icon-btn--solid{background-color:var(--warning-500, #f59e0b);border-color:var(--warning-500, #f59e0b);color:var(--text-on-color, #fff)}.icon-btn--warning.icon-btn--solid:hover:not(:disabled){filter:brightness(.88)}.icon-btn--warning.icon-btn--solid:active:not(:disabled){filter:brightness(.78)}.icon-btn--warning.icon-btn--outline{background-color:transparent;border-color:var(--warning-500, #f59e0b);color:var(--warning-500, #f59e0b)}.icon-btn--warning.icon-btn--outline:hover:not(:disabled){background-color:var(--warning-500, #f59e0b);color:var(--text-on-color, #fff)}.icon-btn--warning.icon-btn--outline:active:not(:disabled){background-color:var(--warning-500, #f59e0b);filter:brightness(.88);color:var(--text-on-color, #fff)}.icon-btn--borderless{border-color:transparent!important}.icon-btn--borderless:hover:not(:disabled),.icon-btn--borderless:active:not(:disabled){border-color:transparent!important}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
602
770
  }
@@ -670,7 +838,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
670
838
  args: [{ selector: 'ngx-ds-badge', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [class]=\"hostClasses()\">{{ displayText() }}</span>\n", styles: [".badge{display:inline-flex;align-items:center;justify-content:center;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif);font-weight:500;white-space:nowrap;line-height:1;border:1.5px solid transparent}.badge--rounded{border-radius:9999px}.badge:not(.badge--rounded){border-radius:.25rem}.badge--dot{padding:0;border-radius:9999px}.badge--dot.badge--sm{width:.5rem;height:.5rem}.badge--dot.badge--md{width:.625rem;height:.625rem}.badge--dot.badge--lg{width:.75rem;height:.75rem}.badge--sm:not(.badge--dot){font-size:.65rem;padding:.25rem .45rem}.badge--md:not(.badge--dot){font-size:.75rem;padding:.3rem .6rem}.badge--lg:not(.badge--dot){font-size:.875rem;padding:.4rem .75rem}.badge--primary.badge--solid{background-color:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff);border-color:var(--fill-primary, #4f46e5)}.badge--primary.badge--soft{background-color:var(--info-50, #eff6ff);color:var(--info-700, #1d4ed8);border-color:transparent}.badge--primary.badge--outline{background-color:transparent;color:var(--fill-primary, #4f46e5);border-color:var(--fill-primary, #4f46e5)}.badge--primary.badge--dot{background-color:var(--fill-primary, #4f46e5);border-color:var(--fill-primary, #4f46e5)}.badge--secondary.badge--solid{background-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff);border-color:var(--fill-neutral, #6b7280)}.badge--secondary.badge--soft{background-color:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #374151);border-color:transparent}.badge--secondary.badge--outline{background-color:transparent;color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280)}.badge--secondary.badge--dot{background-color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280)}.badge--danger.badge--solid{background-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff);border-color:var(--fill-danger, #dc2626)}.badge--danger.badge--soft{background-color:var(--danger-50, #fef2f2);color:var(--danger-700, #b91c1c);border-color:transparent}.badge--danger.badge--outline{background-color:transparent;color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626)}.badge--danger.badge--dot{background-color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626)}.badge--success.badge--solid{background-color:var(--fill-success, #047857);color:var(--text-on-color, #fff);border-color:var(--fill-success, #047857)}.badge--success.badge--soft{background-color:var(--success-50, #ecfdf5);color:var(--success-700, #047857);border-color:transparent}.badge--success.badge--outline{background-color:transparent;color:var(--fill-success, #047857);border-color:var(--fill-success, #047857)}.badge--success.badge--dot{background-color:var(--fill-success, #047857);border-color:var(--fill-success, #047857)}.badge--warning.badge--solid{background-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff);border-color:var(--fill-warning, #b45309)}.badge--warning.badge--soft{background-color:var(--warning-50, #fffbeb);color:var(--warning-700, #b45309);border-color:transparent}.badge--warning.badge--outline{background-color:transparent;color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309)}.badge--warning.badge--dot{background-color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309)}\n"] }]
671
839
  }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], count: [{ type: i0.Input, args: [{ isSignal: true, alias: "count", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], dot: [{ type: i0.Input, args: [{ isSignal: true, alias: "dot", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }] } });
672
840
 
673
- const ICON_SIZE$c = { sm: 12, md: 14, lg: 16 };
841
+ const ICON_SIZE$d = { sm: 12, md: 14, lg: 16 };
674
842
  class TagComponent {
675
843
  i18n = inject(NGX_DS_LABELS);
676
844
  label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
@@ -694,7 +862,7 @@ class TagComponent {
694
862
  classes.push('tag--rounded');
695
863
  return classes.join(' ');
696
864
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
697
- iconSize = computed(() => ICON_SIZE$c[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
865
+ iconSize = computed(() => ICON_SIZE$d[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
698
866
  onDismiss() {
699
867
  this.dismissed.emit();
700
868
  }
@@ -752,7 +920,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
752
920
  args: [{ selector: 'ngx-ds-progress-bar', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (label() || (showValue() && !indeterminate())) {\n <div class=\"progress__header\">\n @if (label()) {\n <span class=\"progress__label\">{{ label() }}</span>\n }\n @if (showValue() && !indeterminate()) {\n <span class=\"progress__value\">{{ displayValue() }}</span>\n }\n </div>\n}\n\n<div\n [class]=\"trackClasses()\"\n role=\"progressbar\"\n [attr.aria-valuenow]=\"indeterminate() ? null : value()\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-label]=\"label() || i18n.progress\"\n>\n <div [class]=\"barClasses()\" [style.width.%]=\"indeterminate() ? null : percentage()\"></div>\n</div>\n", styles: ["@keyframes progress-stripes{0%{background-position:1.5rem 0}to{background-position:0 0}}@keyframes progress-indeterminate{0%{margin-left:-40%}to{margin-left:100%}}.progress{width:100%;background-color:var(--surface-active, #e5e7eb);overflow:hidden;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.progress__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.375rem}.progress__label{font-size:.8125rem;font-weight:500;color:var(--text-secondary, #374151)}.progress__value{font-size:.8125rem;font-weight:600;color:var(--text-muted, #6b7280)}.progress--rounded{border-radius:9999px}.progress--sm{height:.25rem}.progress--md{height:.5rem}.progress--lg{height:.875rem}.progress__bar{height:100%;transition:width .4s ease}.progress__bar--rounded{border-radius:9999px}.progress__bar--striped{background-image:repeating-linear-gradient(45deg,transparent,transparent .625rem,rgba(255,255,255,.2) .625rem,rgba(255,255,255,.2) 1.25rem);background-size:1.5rem 1.5rem}.progress__bar--animated{animation:progress-stripes .8s linear infinite}.progress__bar--indeterminate{width:40%!important;animation:progress-indeterminate 1.2s ease-in-out infinite}.progress--primary .progress__bar{background-color:var(--primary-500, #6366f1)}.progress--secondary .progress__bar{background-color:var(--fill-neutral, #6b7280)}.progress--danger .progress__bar{background-color:var(--danger-500, #ef4444)}.progress--success .progress__bar{background-color:var(--success-500, #10b981)}.progress--warning .progress__bar{background-color:var(--warning-500, #f59e0b)}\n"] }]
753
921
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], showValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValue", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], animated: [{ type: i0.Input, args: [{ isSignal: true, alias: "animated", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }] } });
754
922
 
755
- const ICON_SIZE$b = { sm: 14, md: 16, lg: 18 };
923
+ const ICON_SIZE$c = { sm: 14, md: 16, lg: 18 };
756
924
  class MenuButtonComponent {
757
925
  iconLeft = input(undefined, ...(ngDevMode ? [{ debugName: "iconLeft" }] : /* istanbul ignore next */ []));
758
926
  iconRight = input(undefined, ...(ngDevMode ? [{ debugName: "iconRight" }] : /* istanbul ignore next */ []));
@@ -767,7 +935,7 @@ class MenuButtonComponent {
767
935
  classes.push('menu-btn--full');
768
936
  return classes.join(' ');
769
937
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
770
- iconSize = computed(() => ICON_SIZE$b[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
938
+ iconSize = computed(() => ICON_SIZE$c[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
771
939
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: MenuButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
772
940
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: MenuButtonComponent, isStandalone: true, selector: "ngx-ds-menu-button", inputs: { iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button [type]=\"type()\" [class]=\"hostClasses()\" [disabled]=\"disabled() || null\">\n @if (iconLeft()) {\n <ngx-ds-icon\n class=\"menu-btn__icon\"\n [icon]=\"iconLeft()!\"\n [size]=\"iconSize()\"\n aria-hidden=\"true\"\n />\n }\n <ng-content />\n @if (iconRight()) {\n <ngx-ds-icon\n class=\"menu-btn__icon\"\n [icon]=\"iconRight()!\"\n [size]=\"iconSize()\"\n aria-hidden=\"true\"\n />\n }\n</button>\n", styles: [".menu-btn{display:inline-flex;align-items:center;gap:.5rem;border:none;background:transparent;cursor:pointer;border-radius:.375rem;white-space:nowrap;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif);font-weight:400;line-height:1;-webkit-user-select:none;user-select:none;transition:background .12s ease,color .12s ease}.menu-btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}.menu-btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.menu-btn--sm{padding:.375rem .625rem;font-size:.8125rem}.menu-btn--md{padding:.5rem .75rem;font-size:.875rem}.menu-btn--lg{padding:.625rem 1rem;font-size:1rem}.menu-btn--full{width:100%;justify-content:flex-start}.menu-btn--default{color:var(--text-base, #111827)}.menu-btn--default:hover:not(:disabled){background:var(--surface-hover, #f3f4f6)}.menu-btn--primary{color:var(--fill-primary, #4f46e5)}.menu-btn--primary:hover:not(:disabled){background:var(--primary-50, #eef2ff)}.menu-btn--danger{color:var(--fill-danger, #dc2626)}.menu-btn--danger:hover:not(:disabled){background:var(--danger-50, #fef2f2)}.menu-btn--success{color:var(--fill-success, #047857)}.menu-btn--success:hover:not(:disabled){background:var(--success-50, #ecfdf5)}.menu-btn--warning{color:var(--fill-warning, #b45309)}.menu-btn--warning:hover:not(:disabled){background:var(--warning-50, #fffbeb)}.menu-btn__icon{flex-shrink:0}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
773
941
  }
@@ -950,7 +1118,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
950
1118
  args: [{ selector: 'ngx-ds-kbd', standalone: true, imports: [], template: `<kbd [class]="hostClasses()"><ng-content /></kbd>`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-flex;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.kbd{display:inline-flex;align-items:center;justify-content:center;font-family:ui-monospace,SFMono-Regular,Cascadia Code,Consolas,monospace;font-weight:500;background:var(--surface-muted, #f3f4f6);border:1px solid var(--border-input, #d1d5db);border-bottom-width:2px;border-radius:.3rem;color:var(--text-secondary, #374151);line-height:1;white-space:nowrap;box-shadow:inset 0 -1px 0 var(--border-input, #d1d5db)}.kbd--sm{font-size:.7rem;padding:.125rem .35rem}.kbd--md{font-size:.8125rem;padding:.2rem .5rem}.kbd--lg{font-size:.9375rem;padding:.25rem .625rem}\n"] }]
951
1119
  }], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
952
1120
 
953
- let nextId$j = 0;
1121
+ let nextId$k = 0;
954
1122
  class CheckboxComponent {
955
1123
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
956
1124
  /** Accessible name when there is no visible `label`. */
@@ -960,7 +1128,7 @@ class CheckboxComponent {
960
1128
  indeterminate = input(false, ...(ngDevMode ? [{ debugName: "indeterminate" }] : /* istanbul ignore next */ []));
961
1129
  labelPosition = input('right', ...(ngDevMode ? [{ debugName: "labelPosition" }] : /* istanbul ignore next */ []));
962
1130
  checked = model(false, ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
963
- id = `ngx-checkbox-${nextId$j++}`;
1131
+ id = `ngx-checkbox-${nextId$k++}`;
964
1132
  #disabled = signal(false, ...(ngDevMode ? [{ debugName: "#disabled" }] : /* istanbul ignore next */ []));
965
1133
  isDisabled = this.#disabled.asReadonly();
966
1134
  onChange = () => { };
@@ -1013,7 +1181,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
1013
1181
  ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label [for]=\"id\" [class]=\"hostClasses()\">\n <input\n type=\"checkbox\"\n [id]=\"id\"\n class=\"checkbox__input\"\n [attr.aria-label]=\"label() ? null : (ariaLabel() ?? null)\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate() && !checked()\"\n [disabled]=\"isDisabled()\"\n (change)=\"onNativeChange($event)\"\n />\n\n @if (labelPosition() === 'left' && label()) {\n <span class=\"checkbox__label\">{{ label() }}</span>\n }\n\n <span class=\"checkbox__box\" aria-hidden=\"true\"></span>\n\n @if (labelPosition() === 'right' && label()) {\n <span class=\"checkbox__label\">{{ label() }}</span>\n }\n</label>\n", styles: [".checkbox{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.checkbox--disabled{cursor:not-allowed;opacity:.5}.checkbox__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.checkbox__input:focus-visible~.checkbox__box{outline:2px solid var(--ngx-checkbox-color);outline-offset:2px}.checkbox__box{position:relative;flex-shrink:0;border:2px solid var(--border-input, #d1d5db);border-radius:.25rem;background:var(--surface-base, #fff);transition:background-color .15s ease,border-color .15s ease}.checkbox__box:after{content:\"\";position:absolute;display:none;left:50%;top:46%;width:35%;height:58%;border:2px solid var(--text-on-color, #fff);border-top:none;border-left:none;transform:translate(-50%,-50%) rotate(45deg)}.checkbox:hover:not(.checkbox--disabled):not(.checkbox--checked):not(.checkbox--indeterminate) .checkbox__box{border-color:var(--ngx-checkbox-color)}.checkbox--checked .checkbox__box{background-color:var(--ngx-checkbox-color);border-color:var(--ngx-checkbox-color)}.checkbox--checked .checkbox__box:after{display:block}.checkbox--indeterminate .checkbox__box{background-color:var(--ngx-checkbox-color);border-color:var(--ngx-checkbox-color)}.checkbox--indeterminate .checkbox__box:after{display:block;width:55%;height:2px;border:none;background:var(--text-on-color, #fff);top:50%;transform:translate(-50%,-50%)}.checkbox__label{font-size:.875rem;color:var(--text-secondary, #374151);line-height:1.25}.checkbox--sm .checkbox__box{width:.875rem;height:.875rem}.checkbox--md .checkbox__box{width:1.125rem;height:1.125rem}.checkbox--lg .checkbox__box{width:1.375rem;height:1.375rem}.checkbox--primary{--ngx-checkbox-color: var(--primary-500, #6366f1)}.checkbox--secondary{--ngx-checkbox-color: var(--fill-neutral, #6b7280)}.checkbox--danger{--ngx-checkbox-color: var(--danger-500, #ef4444)}.checkbox--success{--ngx-checkbox-color: var(--success-500, #10b981)}.checkbox--warning{--ngx-checkbox-color: var(--warning-500, #f59e0b)}\n"] }]
1014
1182
  }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }] } });
1015
1183
 
1016
- let nextId$i = 0;
1184
+ let nextId$j = 0;
1017
1185
  class RadioComponent {
1018
1186
  value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
1019
1187
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
@@ -1029,7 +1197,7 @@ class RadioComponent {
1029
1197
  disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
1030
1198
  /** Emits this radio's `value` when the user selects it. */
1031
1199
  valueSelect = output();
1032
- id = `ngx-radio-${nextId$i++}`;
1200
+ id = `ngx-radio-${nextId$j++}`;
1033
1201
  #modelValue = signal(null, ...(ngDevMode ? [{ debugName: "#modelValue" }] : /* istanbul ignore next */ []));
1034
1202
  #formDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#formDisabled" }] : /* istanbul ignore next */ []));
1035
1203
  isDisabled = computed(() => this.disabled() || this.#formDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
@@ -1085,7 +1253,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
1085
1253
  ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label [for]=\"id\" [class]=\"hostClasses()\">\n <input\n type=\"radio\"\n [id]=\"id\"\n [name]=\"name()\"\n [value]=\"value()\"\n class=\"radio__input\"\n [checked]=\"isChecked()\"\n [disabled]=\"isDisabled()\"\n (change)=\"onSelect()\"\n />\n\n @if (labelPosition() === 'left' && label()) {\n <span class=\"radio__label\">{{ label() }}</span>\n }\n\n <span class=\"radio__circle\" aria-hidden=\"true\">\n <span class=\"radio__dot\"></span>\n </span>\n\n @if (labelPosition() === 'right' && label()) {\n <span class=\"radio__label\">{{ label() }}</span>\n }\n</label>\n", styles: [".radio{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.radio--disabled{cursor:not-allowed;opacity:.5}.radio__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.radio__input:focus-visible~.radio__circle{outline:2px solid var(--ngx-radio-color);outline-offset:2px}.radio__circle{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:9999px;border:2px solid var(--border-input, #d1d5db);background:var(--surface-base, #fff);transition:border-color .15s ease,background-color .15s ease}.radio:hover:not(.radio--disabled):not(.radio--checked) .radio__circle{border-color:var(--ngx-radio-color)}.radio--checked .radio__circle{border-color:var(--ngx-radio-color);background-color:var(--ngx-radio-color)}.radio__dot{border-radius:9999px;background:var(--text-on-color, #fff);width:40%;height:40%;transform:scale(0);transition:transform .15s ease}.radio--checked .radio__dot{transform:scale(1)}.radio__label{font-size:.875rem;color:var(--text-secondary, #374151);line-height:1.25}.radio--sm .radio__circle{width:.875rem;height:.875rem}.radio--md .radio__circle{width:1.125rem;height:1.125rem}.radio--lg .radio__circle{width:1.375rem;height:1.375rem}.radio--primary{--ngx-radio-color: var(--primary-500, #6366f1)}.radio--secondary{--ngx-radio-color: var(--fill-neutral, #6b7280)}.radio--danger{--ngx-radio-color: var(--danger-500, #ef4444)}.radio--success{--ngx-radio-color: var(--success-500, #10b981)}.radio--warning{--ngx-radio-color: var(--warning-500, #f59e0b)}\n"] }]
1086
1254
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], valueSelect: [{ type: i0.Output, args: ["valueSelect"] }] } });
1087
1255
 
1088
- let nextId$h = 0;
1256
+ let nextId$i = 0;
1089
1257
  class SwitchComponent {
1090
1258
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1091
1259
  /** Accessible name when there is no visible `label`. */
@@ -1096,7 +1264,7 @@ class SwitchComponent {
1096
1264
  labelOn = input('', ...(ngDevMode ? [{ debugName: "labelOn" }] : /* istanbul ignore next */ []));
1097
1265
  labelOff = input('', ...(ngDevMode ? [{ debugName: "labelOff" }] : /* istanbul ignore next */ []));
1098
1266
  checked = model(false, ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
1099
- id = `ngx-switch-${nextId$h++}`;
1267
+ id = `ngx-switch-${nextId$i++}`;
1100
1268
  #disabled = signal(false, ...(ngDevMode ? [{ debugName: "#disabled" }] : /* istanbul ignore next */ []));
1101
1269
  isDisabled = this.#disabled.asReadonly();
1102
1270
  onChange = () => { };
@@ -1167,8 +1335,8 @@ function fieldErrorText(explicit, errors, touched) {
1167
1335
  return errors.find((e) => e.message)?.message ?? '';
1168
1336
  }
1169
1337
 
1170
- const ICON_SIZE$a = { sm: 14, md: 16, lg: 18 };
1171
- let nextId$g = 0;
1338
+ const ICON_SIZE$b = { sm: 14, md: 16, lg: 18 };
1339
+ let nextId$h = 0;
1172
1340
  class InputComponent {
1173
1341
  i18n = inject(NGX_DS_LABELS);
1174
1342
  // ── Configuration ────────────────────────────────────────────
@@ -1187,7 +1355,7 @@ class InputComponent {
1187
1355
  readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []));
1188
1356
  // ── Value — two-way bindable (signal forms) ──────────────────
1189
1357
  value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
1190
- id = `ngx-input-${nextId$g++}`;
1358
+ id = `ngx-input-${nextId$h++}`;
1191
1359
  messageId = `${this.id}-message`;
1192
1360
  // ── Internal state ───────────────────────────────────────────
1193
1361
  #disabled = signal(false, ...(ngDevMode ? [{ debugName: "#disabled" }] : /* istanbul ignore next */ []));
@@ -1201,7 +1369,7 @@ class InputComponent {
1201
1369
  isFloating = computed(() => this.#focused() || this.value().length > 0, ...(ngDevMode ? [{ debugName: "isFloating" }] : /* istanbul ignore next */ []));
1202
1370
  hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
1203
1371
  errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
1204
- iconSize = computed(() => ICON_SIZE$a[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
1372
+ iconSize = computed(() => ICON_SIZE$b[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
1205
1373
  // In floating mode the placeholder only appears once the label has floated up
1206
1374
  effectivePlaceholder = computed(() => this.floatingLabel() && this.label() && !this.isFloating() ? '' : this.placeholder(), ...(ngDevMode ? [{ debugName: "effectivePlaceholder" }] : /* istanbul ignore next */ []));
1207
1375
  fieldClasses = computed(() => {
@@ -1280,7 +1448,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
1280
1448
  ], template: "<!-- Static label (non-floating) -->\n@if (!floatingLabel() && label()) {\n <label [for]=\"id\" class=\"ngx-input__label\">{{ label() }}</label>\n}\n\n<!-- Field container -->\n<div [class]=\"fieldClasses()\">\n <!-- Floating label (lives inside the bordered field) -->\n @if (floatingLabel() && label()) {\n <label [for]=\"id\" [class]=\"floatLabelClasses()\">{{ label() }}</label>\n }\n\n <!-- Left icon -->\n @if (iconLeft()) {\n <span class=\"ngx-input__icon ngx-input__icon--left\" aria-hidden=\"true\">\n <ngx-ds-icon [icon]=\"iconLeft()!\" [size]=\"iconSize()\" />\n </span>\n }\n\n <!-- Native input -->\n <input\n class=\"ngx-input__native\"\n [id]=\"id\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"errorText() || hint() ? messageId : null\"\n [type]=\"effectiveType()\"\n [value]=\"value()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled() || null\"\n [attr.readonly]=\"readonly() || null\"\n (input)=\"onInput($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n />\n\n <!-- Password toggle -->\n @if (type() === 'password') {\n <button\n type=\"button\"\n class=\"ngx-input__password-toggle\"\n [attr.aria-label]=\"effectiveType() === 'text' ? i18n.hidePassword : i18n.showPassword\"\n (click)=\"togglePassword()\"\n tabindex=\"-1\"\n >\n <ngx-ds-icon [icon]=\"eyeIcon()\" [size]=\"iconSize()\" />\n </button>\n }\n\n <!-- Right icon (non-password) -->\n @if (iconRight() && type() !== 'password') {\n <span class=\"ngx-input__icon ngx-input__icon--right\" aria-hidden=\"true\">\n <ngx-ds-icon [icon]=\"iconRight()!\" [size]=\"iconSize()\" />\n </span>\n }\n</div>\n\n<!-- Error / Hint -->\n@if (errorText()) {\n <p [id]=\"messageId\" class=\"ngx-input__message ngx-input__message--error\" role=\"alert\">\n {{ errorText() }}\n </p>\n} @else if (hint()) {\n <p [id]=\"messageId\" class=\"ngx-input__message ngx-input__message--hint\">{{ hint() }}</p>\n}\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.ngx-input__label{display:block;margin-bottom:.375rem;font-size:.875rem;font-weight:500;color:var(--text-secondary, #374151)}.ngx-input__field{position:relative;display:flex;align-items:center;gap:.5rem;width:100%;background:var(--surface-base, #fff);border:1.5px solid var(--border-input, #d1d5db);border-radius:.375rem;transition:border-color .15s ease,box-shadow .15s ease}.ngx-input__field--focused{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f61f}.ngx-input__field--error{border-color:var(--danger-500, #ef4444)}.ngx-input__field--error.ngx-input__field--focused{box-shadow:0 0 0 3px #ef44441f}.ngx-input__field--disabled{background:var(--surface-subtle, #f9fafb);cursor:not-allowed}.ngx-input__field--sm{padding:.375rem .625rem;font-size:.8125rem}.ngx-input__field--md{padding:.5rem .75rem;font-size:.875rem}.ngx-input__field--lg{padding:.625rem 1rem;font-size:1rem}.ngx-input__native{flex:1;min-width:0;padding:0;background:transparent;border:none;outline:none;color:var(--text-base, #111827);font-family:inherit;font-size:inherit;line-height:1.5}.ngx-input__native::placeholder{color:var(--text-placeholder, #6b7280)}.ngx-input__native:disabled{cursor:not-allowed;color:var(--text-muted, #6b7280)}.ngx-input__native[readonly]{cursor:default}.ngx-input__float-label{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);font-size:inherit;color:var(--text-placeholder, #6b7280);pointer-events:none;white-space:nowrap;line-height:1;padding:0;background:transparent;transition:top .15s ease,font-size .15s ease,color .15s ease,background-color .15s ease,padding .15s ease}.ngx-input__float-label--offset{left:2.25rem}.ngx-input__float-label--active{top:0;font-size:.7rem;background:var(--surface-base, #fff);padding:0 .25rem;color:var(--fill-primary, #4f46e5)}.ngx-input__float-label--focused:not(.ngx-input__float-label--error){color:var(--fill-primary, #4f46e5)}.ngx-input__float-label--error{color:var(--fill-danger, #dc2626)}.ngx-input__icon{display:inline-flex;align-items:center;flex-shrink:0;color:var(--text-placeholder, #6b7280)}.ngx-input__password-toggle{display:inline-flex;align-items:center;flex-shrink:0;padding:0;background:transparent;border:none;cursor:pointer;color:var(--text-placeholder, #6b7280);transition:color .15s ease}.ngx-input__password-toggle:hover{color:var(--text-muted, #6b7280)}.ngx-input__message{margin-top:.375rem;font-size:.75rem;line-height:1.4}.ngx-input__message--hint{color:var(--text-muted, #6b7280)}.ngx-input__message--error{color:var(--fill-danger, #dc2626)}\n"] }]
1281
1449
  }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], floatingLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatingLabel", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], iconLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeft", required: false }] }], iconRight: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconRight", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }] } });
1282
1450
 
1283
- let nextId$f = 0;
1451
+ let nextId$g = 0;
1284
1452
  class TextareaComponent {
1285
1453
  // ── Configuration ────────────────────────────────────────────
1286
1454
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
@@ -1299,7 +1467,7 @@ class TextareaComponent {
1299
1467
  showCount = input(false, ...(ngDevMode ? [{ debugName: "showCount" }] : /* istanbul ignore next */ []));
1300
1468
  // ── Value ─────────────────────────────────────────────────────
1301
1469
  value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
1302
- id = `ngx-textarea-${nextId$f++}`;
1470
+ id = `ngx-textarea-${nextId$g++}`;
1303
1471
  messageId = `${this.id}-message`;
1304
1472
  // ── Internal state ────────────────────────────────────────────
1305
1473
  #disabled = signal(false, ...(ngDevMode ? [{ debugName: "#disabled" }] : /* istanbul ignore next */ []));
@@ -1457,8 +1625,8 @@ function moveOptionFocus(event) {
1457
1625
  return true;
1458
1626
  }
1459
1627
 
1460
- const ICON_SIZE$9 = { sm: 14, md: 16, lg: 18 };
1461
- let nextId$e = 0;
1628
+ const ICON_SIZE$a = { sm: 14, md: 16, lg: 18 };
1629
+ let nextId$f = 0;
1462
1630
  class SelectComponent {
1463
1631
  i18n = inject(NGX_DS_LABELS);
1464
1632
  // ── Configuration ──────────────────────────────────────────
@@ -1476,7 +1644,7 @@ class SelectComponent {
1476
1644
  touched = input(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
1477
1645
  // ── Value ─────────────────────────────────────────────────
1478
1646
  value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
1479
- id = `ngx-select-${nextId$e++}`;
1647
+ id = `ngx-select-${nextId$f++}`;
1480
1648
  messageId = `${this.id}-message`;
1481
1649
  // ── Icons ──────────────────────────────────────────────────
1482
1650
  ChevronDown = ChevronDown;
@@ -1492,7 +1660,7 @@ class SelectComponent {
1492
1660
  isOpen = this.#open.asReadonly();
1493
1661
  isDisabled = this.#disabled.asReadonly();
1494
1662
  searchText = this.#search.asReadonly();
1495
- iconSize = computed(() => ICON_SIZE$9[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
1663
+ iconSize = computed(() => ICON_SIZE$a[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
1496
1664
  hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
1497
1665
  errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
1498
1666
  // ── Derived ────────────────────────────────────────────────
@@ -1697,8 +1865,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
1697
1865
  ], template: "<!-- Static label -->\n@if (!floatingLabel() && label()) {\n <label [for]=\"id\" class=\"ngx-select__label\">{{ label() }}</label>\n}\n\n<!-- Trigger -->\n<div\n #trigger\n [class]=\"triggerClasses()\"\n (click)=\"togglePanel()\"\n (keydown)=\"onTriggerKeydown($event)\"\n [attr.id]=\"id\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"errorText() || hint() ? messageId : null\"\n role=\"combobox\"\n [attr.aria-label]=\"label() || null\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-controls]=\"id + '-panel'\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-disabled]=\"isDisabled()\"\n>\n <!-- Floating label -->\n @if (floatingLabel() && label()) {\n <span [class]=\"floatLabelClasses()\">{{ label() }}</span>\n }\n\n <!-- Display area -->\n <span class=\"ngx-select__display\">\n @if (multiple() && selectedValues().length) {\n <!-- Chips (\u22642) or count badge (>2) -->\n @if (selectedValues().length <= 2) {\n @for (val of selectedValues(); track val) {\n <span class=\"ngx-select__tag\">\n {{ tagLabel(val) }}\n @if (!isDisabled()) {\n <button\n type=\"button\"\n class=\"ngx-select__tag-remove\"\n [attr.aria-label]=\"i18n.removeChip(tagLabel(val))\"\n (click)=\"removeTag(val, $event)\"\n >\n <ngx-ds-icon [icon]=\"XIcon\" [size]=\"10\" />\n </button>\n }\n </span>\n }\n } @else {\n <span class=\"ngx-select__tag\"\n >{{ selectedValues().length }} seleccionados\n @if (!isDisabled()) {\n <button\n type=\"button\"\n class=\"ngx-select__tag-remove\"\n [attr.aria-label]=\"i18n.clearSelection\"\n (click)=\"clearAll($event)\"\n >\n <ngx-ds-icon [icon]=\"XIcon\" [size]=\"10\" />\n </button>\n }\n </span>\n }\n } @else if (!multiple() && displayText()) {\n <span class=\"ngx-select__value\">{{ displayText() }}</span>\n } @else {\n <span class=\"ngx-select__placeholder\">{{ placeholder() ?? i18n.selectPlaceholder }}</span>\n }\n </span>\n\n <!-- Clear button (single mode) -->\n @if (!multiple() && displayText() && !isDisabled()) {\n <button\n type=\"button\"\n class=\"ngx-select__clear\"\n [attr.aria-label]=\"i18n.clearSelection\"\n (click)=\"clearAll($event)\"\n >\n <ngx-ds-icon [icon]=\"XIcon\" [size]=\"iconSize()\" />\n </button>\n }\n\n <!-- Chevron -->\n <span class=\"ngx-select__chevron\" aria-hidden=\"true\">\n <ngx-ds-icon [icon]=\"isOpen() ? ChevronUp : ChevronDown\" [size]=\"iconSize()\" />\n </span>\n</div>\n\n<!-- Dropdown panel -->\n@if (isOpen()) {\n <div\n class=\"ngx-select__panel\"\n [id]=\"id + '-panel'\"\n role=\"listbox\"\n [attr.aria-multiselectable]=\"multiple()\"\n >\n <!-- Search -->\n @if (searchable()) {\n <div class=\"ngx-select__search\">\n <ngx-ds-icon [icon]=\"SearchIcon\" [size]=\"14\" class=\"ngx-select__search-icon\" />\n <input\n class=\"ngx-select__search-input\"\n type=\"text\"\n [placeholder]=\"i18n.searchPlaceholder\"\n [value]=\"searchText()\"\n (input)=\"onSearchChange($any($event.target).value)\"\n (click)=\"$event.stopPropagation()\"\n (keydown)=\"onSearchKeydown($event)\"\n autocomplete=\"off\"\n />\n </div>\n }\n\n <!-- Select all (multiple only) -->\n @if (multiple() && !searchText()) {\n <button\n type=\"button\"\n class=\"ngx-select__select-all\"\n (click)=\"selectAll(); $event.stopPropagation()\"\n >\n {{ i18n.selectAll }}\n </button>\n }\n\n <!-- Options -->\n <ul class=\"ngx-select__options\" role=\"presentation\">\n @for (option of filteredOptions(); track option.value) {\n <li\n class=\"ngx-select__option\"\n [class.ngx-select__option--selected]=\"isSelected(option.value)\"\n [class.ngx-select__option--disabled]=\"option.disabled\"\n role=\"option\"\n tabindex=\"-1\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [attr.aria-disabled]=\"option.disabled || null\"\n (click)=\"selectOption(option); $event.stopPropagation()\"\n (keydown)=\"onOptionKeydown($event, option)\"\n >\n @if (multiple()) {\n <span\n class=\"ngx-select__checkbox\"\n [class.ngx-select__checkbox--checked]=\"isSelected(option.value)\"\n aria-hidden=\"true\"\n ></span>\n } @else {\n <span class=\"ngx-select__check\">\n @if (isSelected(option.value)) {\n <ngx-ds-icon [icon]=\"CheckIcon\" [size]=\"14\" />\n }\n </span>\n }\n <span class=\"ngx-select__option-label\">{{ option.label }}</span>\n </li>\n } @empty {\n <li class=\"ngx-select__empty\">{{ i18n.noResults }}</li>\n }\n </ul>\n </div>\n}\n\n<!-- Hint / Error -->\n@if (errorText()) {\n <p [id]=\"messageId\" class=\"ngx-select__message ngx-select__message--error\" role=\"alert\">\n {{ errorText() }}\n </p>\n} @else if (hint()) {\n <p [id]=\"messageId\" class=\"ngx-select__message ngx-select__message--hint\">{{ hint() }}</p>\n}\n", styles: [":host{display:block;position:relative;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.ngx-select__label{display:block;margin-bottom:.375rem;font-size:.875rem;font-weight:500;color:var(--text-secondary, #374151)}.ngx-select__trigger{position:relative;display:flex;align-items:center;gap:.375rem;width:100%;background:var(--surface-base, #fff);border:1.5px solid var(--border-input, #d1d5db);border-radius:.375rem;cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .15s ease,box-shadow .15s ease;min-height:2.375rem}.ngx-select__trigger--focused,.ngx-select__trigger--open{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f61f}.ngx-select__trigger--error{border-color:var(--danger-500, #ef4444)}.ngx-select__trigger--error.ngx-select__trigger--open,.ngx-select__trigger--error.ngx-select__trigger--focused{box-shadow:0 0 0 3px #ef44441f}.ngx-select__trigger--disabled{background:var(--surface-subtle, #f9fafb);cursor:not-allowed;color:var(--text-placeholder, #6b7280)}.ngx-select__trigger--sm{padding:.375rem .625rem;font-size:.8125rem}.ngx-select__trigger--md{padding:.5rem .75rem;font-size:.875rem}.ngx-select__trigger--lg{padding:.625rem 1rem;font-size:1rem}.ngx-select__display{flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:.25rem;align-items:center}.ngx-select__value{color:var(--text-base, #111827);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ngx-select__placeholder{color:var(--text-placeholder, #6b7280);white-space:nowrap}.ngx-select__tag{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .375rem;background:var(--primary-100, #e0e7ff);color:var(--primary-700, #4338ca);border-radius:.25rem;font-size:.75rem;font-weight:500;white-space:nowrap}.ngx-select__tag-remove{display:inline-flex;align-items:center;padding:0;background:transparent;border:none;cursor:pointer;color:inherit;opacity:.7}.ngx-select__tag-remove:hover{opacity:1}.ngx-select__clear{display:inline-flex;align-items:center;padding:0;background:transparent;border:none;cursor:pointer;color:var(--text-placeholder, #6b7280);flex-shrink:0}.ngx-select__clear:hover{color:var(--text-muted, #6b7280)}.ngx-select__chevron{display:inline-flex;align-items:center;flex-shrink:0;color:var(--text-placeholder, #6b7280)}.ngx-select__float-label{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);font-size:inherit;color:var(--text-placeholder, #6b7280);pointer-events:none;white-space:nowrap;line-height:1;padding:0;background:transparent;transition:top .15s ease,font-size .15s ease,color .15s ease,background-color .15s ease,padding .15s ease}.ngx-select__float-label--active{top:0;font-size:.7rem;background:var(--surface-base, #fff);padding:0 .25rem;color:var(--fill-primary, #4f46e5)}.ngx-select__float-label--focused:not(.ngx-select__float-label--error){color:var(--fill-primary, #4f46e5)}.ngx-select__float-label--error{color:var(--fill-danger, #dc2626)}.ngx-select__panel{position:absolute;top:calc(100% + .25rem);left:0;right:0;z-index:100;background:var(--surface-base, #fff);border:1.5px solid var(--border-input, #d1d5db);border-radius:.375rem;box-shadow:0 4px 16px #0000001a;overflow:hidden}.ngx-select__search{display:flex;align-items:center;gap:.375rem;padding:.375rem .75rem;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.ngx-select__search-icon{color:var(--text-placeholder, #6b7280);flex-shrink:0}.ngx-select__search-input{flex:1;border:none;outline:none;font-size:.8125rem;color:var(--text-base, #111827);background:transparent;font-family:inherit}.ngx-select__search-input::placeholder{color:var(--text-placeholder, #6b7280)}.ngx-select__select-all{display:block;width:100%;padding:.375rem .75rem;text-align:left;background:transparent;border:none;border-bottom:1px solid var(--border-subtle, #f3f4f6);font-size:.8125rem;color:var(--fill-primary, #4f46e5);font-weight:500;cursor:pointer;font-family:inherit}.ngx-select__select-all:hover{background:var(--primary-50, #eef2ff)}.ngx-select__options{list-style:none;margin:0;padding:.25rem 0;max-height:14rem;overflow-y:auto}.ngx-select__option{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;font-size:.875rem;color:var(--text-secondary, #374151);cursor:pointer;transition:background .1s ease}.ngx-select__option:hover:not(.ngx-select__option--disabled){background:var(--surface-subtle, #f9fafb)}.ngx-select__option--selected:not(.ngx-select__option--disabled){color:var(--primary-700, #4338ca);background:var(--primary-50, #eef2ff)}.ngx-select__option--disabled{color:var(--text-placeholder, #6b7280);cursor:not-allowed}.ngx-select__option-label{flex:1}.ngx-select__checkbox{flex-shrink:0;width:1rem;height:1rem;border:1.5px solid var(--border-input, #d1d5db);border-radius:.2rem;background:var(--surface-base, #fff);position:relative;transition:border-color .1s,background .1s}.ngx-select__checkbox--checked{border-color:var(--primary-500, #6366f1);background:var(--primary-500, #6366f1)}.ngx-select__checkbox--checked:after{content:\"\";position:absolute;left:.2rem;top:.05rem;width:.35rem;height:.55rem;border:2px solid var(--text-on-color, #fff);border-top:none;border-left:none;transform:rotate(45deg)}.ngx-select__check{flex-shrink:0;width:1rem;height:1rem;display:flex;align-items:center;justify-content:center;color:var(--fill-primary, #4f46e5)}.ngx-select__empty{padding:.75rem;text-align:center;font-size:.875rem;color:var(--text-placeholder, #6b7280)}.ngx-select__message{margin-top:.375rem;font-size:.75rem;line-height:1.4}.ngx-select__message--hint{color:var(--text-muted, #6b7280)}.ngx-select__message--error{color:var(--fill-danger, #dc2626)}\n"] }]
1698
1866
  }], ctorParameters: () => [], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], floatingLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatingLabel", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], triggerRef: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }] } });
1699
1867
 
1700
- const ICON_SIZE$8 = { sm: 14, md: 16, lg: 18 };
1701
- let nextId$d = 0;
1868
+ const ICON_SIZE$9 = { sm: 14, md: 16, lg: 18 };
1869
+ let nextId$e = 0;
1702
1870
  class DropdownComponent {
1703
1871
  i18n = inject(NGX_DS_LABELS);
1704
1872
  // ── Configuration ──────────────────────────────────────────
@@ -1714,7 +1882,7 @@ class DropdownComponent {
1714
1882
  touched = input(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
1715
1883
  // ── Value ─────────────────────────────────────────────────
1716
1884
  value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
1717
- id = `ngx-dropdown-${nextId$d++}`;
1885
+ id = `ngx-dropdown-${nextId$e++}`;
1718
1886
  messageId = `${this.id}-message`;
1719
1887
  // ── Icons ──────────────────────────────────────────────────
1720
1888
  ChevronDown = ChevronDown;
@@ -1727,7 +1895,7 @@ class DropdownComponent {
1727
1895
  #focused = signal(false, ...(ngDevMode ? [{ debugName: "#focused" }] : /* istanbul ignore next */ []));
1728
1896
  isOpen = this.#open.asReadonly();
1729
1897
  isDisabled = this.#disabled.asReadonly();
1730
- iconSize = computed(() => ICON_SIZE$8[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
1898
+ iconSize = computed(() => ICON_SIZE$9[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
1731
1899
  hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
1732
1900
  errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
1733
1901
  hasValue = computed(() => this.value() !== null && this.value() !== undefined, ...(ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []));
@@ -1869,8 +2037,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
1869
2037
  ], template: "<!-- Static label -->\n@if (!floatingLabel() && label()) {\n <label [for]=\"id\" class=\"ngx-dropdown__label\">{{ label() }}</label>\n}\n\n<!-- Trigger -->\n<div\n #trigger\n [class]=\"triggerClasses()\"\n (click)=\"togglePanel()\"\n (keydown)=\"onTriggerKeydown($event)\"\n [attr.id]=\"id\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"errorText() || hint() ? messageId : null\"\n role=\"combobox\"\n [attr.aria-label]=\"label() || null\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-controls]=\"id + '-panel'\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-disabled]=\"isDisabled()\"\n>\n <!-- Floating label -->\n @if (floatingLabel() && label()) {\n <span [class]=\"floatLabelClasses()\">{{ label() }}</span>\n }\n\n <!-- Display area -->\n <span class=\"ngx-dropdown__display\">\n @if (displayText()) {\n <span class=\"ngx-dropdown__value\">{{ displayText() }}</span>\n } @else {\n <span class=\"ngx-dropdown__placeholder\">{{ placeholder() ?? i18n.selectPlaceholder }}</span>\n }\n </span>\n\n <!-- Clear button -->\n @if (hasValue() && !isDisabled()) {\n <button\n type=\"button\"\n class=\"ngx-dropdown__clear\"\n [attr.aria-label]=\"i18n.clearSelection\"\n (click)=\"clearValue($event)\"\n >\n <ngx-ds-icon [icon]=\"XIcon\" [size]=\"iconSize()\" />\n </button>\n }\n\n <!-- Chevron -->\n <span class=\"ngx-dropdown__chevron\" aria-hidden=\"true\">\n <ngx-ds-icon [icon]=\"isOpen() ? ChevronUp : ChevronDown\" [size]=\"iconSize()\" />\n </span>\n</div>\n\n<!-- Dropdown panel -->\n@if (isOpen()) {\n <div class=\"ngx-dropdown__panel\" [id]=\"id + '-panel'\" role=\"listbox\">\n <ul class=\"ngx-dropdown__options\" role=\"presentation\">\n @for (option of options(); track option.value) {\n <li\n class=\"ngx-dropdown__option\"\n [class.ngx-dropdown__option--selected]=\"isSelected(option.value)\"\n [class.ngx-dropdown__option--disabled]=\"option.disabled\"\n role=\"option\"\n tabindex=\"-1\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n [attr.aria-disabled]=\"option.disabled || null\"\n (click)=\"selectOption(option); $event.stopPropagation()\"\n (keydown)=\"onOptionKeydown($event, option)\"\n >\n <span class=\"ngx-dropdown__check\">\n @if (isSelected(option.value)) {\n <ngx-ds-icon [icon]=\"CheckIcon\" [size]=\"14\" />\n }\n </span>\n <span class=\"ngx-dropdown__option-label\">{{ option.label }}</span>\n </li>\n } @empty {\n <li class=\"ngx-dropdown__empty\">{{ i18n.noOptions }}</li>\n }\n </ul>\n </div>\n}\n\n<!-- Hint / Error -->\n@if (errorText()) {\n <p [id]=\"messageId\" class=\"ngx-dropdown__message ngx-dropdown__message--error\" role=\"alert\">\n {{ errorText() }}\n </p>\n} @else if (hint()) {\n <p [id]=\"messageId\" class=\"ngx-dropdown__message ngx-dropdown__message--hint\">{{ hint() }}</p>\n}\n", styles: [":host{display:block;position:relative;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.ngx-dropdown__label{display:block;margin-bottom:.375rem;font-size:.875rem;font-weight:500;color:var(--text-secondary, #374151)}.ngx-dropdown__trigger{position:relative;display:flex;align-items:center;gap:.5rem;width:100%;background:var(--surface-base, #fff);border:1.5px solid var(--border-input, #d1d5db);border-radius:.375rem;cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .15s ease,box-shadow .15s ease;min-height:2.375rem}.ngx-dropdown__trigger--focused,.ngx-dropdown__trigger--open{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f61f}.ngx-dropdown__trigger--error{border-color:var(--danger-500, #ef4444)}.ngx-dropdown__trigger--error.ngx-dropdown__trigger--open,.ngx-dropdown__trigger--error.ngx-dropdown__trigger--focused{box-shadow:0 0 0 3px #ef44441f}.ngx-dropdown__trigger--disabled{background:var(--surface-subtle, #f9fafb);cursor:not-allowed;color:var(--text-placeholder, #6b7280)}.ngx-dropdown__trigger--sm{padding:.375rem .625rem;font-size:.8125rem}.ngx-dropdown__trigger--md{padding:.5rem .75rem;font-size:.875rem}.ngx-dropdown__trigger--lg{padding:.625rem 1rem;font-size:1rem}.ngx-dropdown__display{flex:1;min-width:0;overflow:hidden}.ngx-dropdown__value{display:block;color:var(--text-base, #111827);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ngx-dropdown__placeholder{display:block;color:var(--text-placeholder, #6b7280);white-space:nowrap}.ngx-dropdown__clear{display:inline-flex;align-items:center;padding:0;background:transparent;border:none;cursor:pointer;color:var(--text-placeholder, #6b7280);flex-shrink:0}.ngx-dropdown__clear:hover{color:var(--text-muted, #6b7280)}.ngx-dropdown__chevron{display:inline-flex;align-items:center;flex-shrink:0;color:var(--text-placeholder, #6b7280)}.ngx-dropdown__float-label{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);font-size:inherit;color:var(--text-placeholder, #6b7280);pointer-events:none;white-space:nowrap;line-height:1;padding:0;background:transparent;transition:top .15s ease,font-size .15s ease,color .15s ease,background-color .15s ease,padding .15s ease}.ngx-dropdown__float-label--active{top:0;font-size:.7rem;background:var(--surface-base, #fff);padding:0 .25rem;color:var(--fill-primary, #4f46e5)}.ngx-dropdown__float-label--focused:not(.ngx-dropdown__float-label--error){color:var(--fill-primary, #4f46e5)}.ngx-dropdown__float-label--error{color:var(--fill-danger, #dc2626)}.ngx-dropdown__panel{position:absolute;top:calc(100% + .25rem);left:0;right:0;z-index:100;background:var(--surface-base, #fff);border:1.5px solid var(--border-input, #d1d5db);border-radius:.375rem;box-shadow:0 4px 16px #0000001a;overflow:hidden}.ngx-dropdown__options{list-style:none;margin:0;padding:.25rem 0;max-height:14rem;overflow-y:auto}.ngx-dropdown__option{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;font-size:.875rem;color:var(--text-secondary, #374151);cursor:pointer;transition:background .1s ease}.ngx-dropdown__option:hover:not(.ngx-dropdown__option--disabled){background:var(--surface-subtle, #f9fafb)}.ngx-dropdown__option--selected:not(.ngx-dropdown__option--disabled){color:var(--primary-700, #4338ca);background:var(--primary-50, #eef2ff)}.ngx-dropdown__option--disabled{color:var(--text-placeholder, #6b7280);cursor:not-allowed}.ngx-dropdown__option-label{flex:1}.ngx-dropdown__check{flex-shrink:0;width:1rem;height:1rem;display:flex;align-items:center;justify-content:center;color:var(--fill-primary, #4f46e5)}.ngx-dropdown__empty{padding:.75rem;text-align:center;font-size:.875rem;color:var(--text-placeholder, #6b7280)}.ngx-dropdown__message{margin-top:.375rem;font-size:.75rem;line-height:1.4}.ngx-dropdown__message--hint{color:var(--text-muted, #6b7280)}.ngx-dropdown__message--error{color:var(--fill-danger, #dc2626)}\n"] }]
1870
2038
  }], ctorParameters: () => [], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], floatingLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatingLabel", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], triggerRef: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }] } });
1871
2039
 
1872
- const ICON_SIZE$7 = { sm: 14, md: 16, lg: 18 };
1873
- let nextId$c = 0;
2040
+ const ICON_SIZE$8 = { sm: 14, md: 16, lg: 18 };
2041
+ let nextId$d = 0;
1874
2042
  class AutocompleteComponent {
1875
2043
  i18n = inject(NGX_DS_LABELS);
1876
2044
  sanitizer = inject(DomSanitizer);
@@ -1902,7 +2070,7 @@ class AutocompleteComponent {
1902
2070
  // ── Outputs ──────────────────────────────────────────────
1903
2071
  /** Emits the current search string (debounced) — use for async data loading */
1904
2072
  searchChange = output();
1905
- id = `ngx-autocomplete-${nextId$c++}`;
2073
+ id = `ngx-autocomplete-${nextId$d++}`;
1906
2074
  messageId = `${this.id}-message`;
1907
2075
  // ── Icons ────────────────────────────────────────────────
1908
2076
  SearchIcon = Search;
@@ -1919,7 +2087,7 @@ class AutocompleteComponent {
1919
2087
  searchTimer = null;
1920
2088
  inputEl = null;
1921
2089
  // ── Derived ──────────────────────────────────────────────
1922
- iconSize = computed(() => ICON_SIZE$7[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
2090
+ iconSize = computed(() => ICON_SIZE$8[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
1923
2091
  hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
1924
2092
  errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
1925
2093
  hasValue = computed(() => this.value() !== null && this.value() !== undefined, ...(ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []));
@@ -2173,8 +2341,8 @@ function moveFocusDate(date, event, firstDayOfWeek = 1) {
2173
2341
  }
2174
2342
  }
2175
2343
 
2176
- const ICON_SIZE$6 = { sm: 14, md: 16, lg: 18 };
2177
- let nextId$b = 0;
2344
+ const ICON_SIZE$7 = { sm: 14, md: 16, lg: 18 };
2345
+ let nextId$c = 0;
2178
2346
  class DatepickerComponent {
2179
2347
  i18n = inject(NGX_DS_LABELS);
2180
2348
  // ── Configuration ─────────────────────────────────────────
@@ -2195,7 +2363,7 @@ class DatepickerComponent {
2195
2363
  showToday = input(true, ...(ngDevMode ? [{ debugName: "showToday" }] : /* istanbul ignore next */ []));
2196
2364
  // ── Value ────────────────────────────────────────────────
2197
2365
  value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
2198
- id = `ngx-datepicker-${nextId$b++}`;
2366
+ id = `ngx-datepicker-${nextId$c++}`;
2199
2367
  messageId = `${this.id}-message`;
2200
2368
  // ── Icons ────────────────────────────────────────────────
2201
2369
  CalendarIcon = Calendar;
@@ -2218,7 +2386,7 @@ class DatepickerComponent {
2218
2386
  isDisabled = this.#disabled.asReadonly();
2219
2387
  isFocused = this.#focused.asReadonly();
2220
2388
  // ── Derived ───────────────────────────────────────────────
2221
- iconSize = computed(() => ICON_SIZE$6[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
2389
+ iconSize = computed(() => ICON_SIZE$7[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
2222
2390
  hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
2223
2391
  errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
2224
2392
  hasValue = computed(() => this.value() !== null, ...(ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []));
@@ -2697,7 +2865,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
2697
2865
  args: [{ selector: 'ngx-ds-file-upload', standalone: true, imports: [IconComponent, IconButtonComponent, ProgressBarComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'file-upload-host' }, template: "<label\n [class]=\"zoneClasses()\"\n (dragover)=\"onDragOver($event)\"\n (dragleave)=\"onDragLeave($event)\"\n (drop)=\"onDrop($event)\"\n>\n <input\n type=\"file\"\n class=\"upload-input\"\n [accept]=\"accept() || null\"\n [multiple]=\"multiple() || null\"\n [disabled]=\"disabled() || null\"\n (change)=\"onFileSelected($event)\"\n />\n\n <ngx-ds-icon class=\"upload-icon\" [icon]=\"icons.Upload\" [size]=\"32\" />\n <span class=\"upload-label\">{{ label() ?? i18n.fileUploadPrompt }}</span>\n @if (hint()) {\n <span class=\"upload-hint\">{{ hint() }}</span>\n }\n</label>\n\n@if (files().length > 0) {\n <ul class=\"upload-list\" role=\"list\">\n @for (file of files(); track file.id) {\n <li\n class=\"upload-file\"\n [class.upload-file--invalid]=\"file.status === 'invalid'\"\n [class.upload-file--error]=\"stateFor(file)?.status === 'error'\"\n >\n <ngx-ds-icon class=\"upload-file__icon\" [icon]=\"fileIcon(file)\" [size]=\"20\" />\n <div class=\"upload-file__info\">\n <span class=\"upload-file__name\">{{ file.name }}</span>\n <span class=\"upload-file__meta\">\n {{ formatSize(file.size) }}\n @if (file.error) {\n &nbsp;\u00B7&nbsp;{{ file.error }}\n }\n @if (stateFor(file)?.status === 'error' && stateFor(file)?.error) {\n &nbsp;\u00B7&nbsp;{{ stateFor(file)?.error }}\n }\n </span>\n\n @if (stateFor(file); as state) {\n @if (state.status === 'uploading') {\n <ngx-ds-progress-bar\n class=\"upload-file__progress\"\n size=\"sm\"\n color=\"primary\"\n [value]=\"state.progress ?? 0\"\n [indeterminate]=\"state.progress == null\"\n />\n }\n }\n </div>\n\n @if (stateFor(file); as state) {\n @if (state.status === 'done') {\n <ngx-ds-icon\n class=\"upload-file__status upload-file__status--done\"\n [icon]=\"icons.CheckCircle2\"\n [size]=\"18\"\n />\n } @else if (state.status === 'error') {\n <ngx-ds-icon\n class=\"upload-file__status upload-file__status--error\"\n [icon]=\"icons.AlertCircle\"\n [size]=\"18\"\n />\n }\n }\n\n <ngx-ds-icon-button\n [icon]=\"icons.X\"\n [ariaLabel]=\"i18n.removeFile\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"removeFile(file.id)\"\n />\n </li>\n }\n </ul>\n}\n", styles: [":host{display:block}.upload-zone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.375rem;padding:2rem 1.5rem;min-height:9rem;border:2px dashed var(--border-input, #d1d5db);border-radius:.75rem;cursor:pointer;text-align:center;transition:border-color .15s ease,background .15s ease;background:var(--surface-subtle, #f9fafb)}.upload-zone:hover:not(.upload-zone--disabled),.upload-zone--dragging{border-color:var(--primary-500, #6366f1);background:#3b82f60a}.upload-zone:hover:not(.upload-zone--disabled) .upload-icon,.upload-zone--dragging .upload-icon{color:var(--fill-primary, #4f46e5)}.upload-zone--disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.upload-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.upload-icon{color:var(--text-placeholder, #6b7280);transition:color .15s ease;margin-bottom:.25rem}.upload-label{font-size:.875rem;font-weight:500;color:var(--text-secondary, #374151)}.upload-hint{font-size:.75rem;color:var(--text-muted, #6b7280)}.upload-list{list-style:none;margin:.75rem 0 0;padding:0;display:flex;flex-direction:column;gap:.5rem}.upload-file{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem;padding:.625rem .875rem;border:1px solid var(--border-base, #e5e7eb);border-radius:.5rem;background:var(--surface-base, #fff)}.upload-file--invalid,.upload-file--error{border-color:#ef444480;background:#ef44440a}.upload-file--invalid .upload-file__meta,.upload-file--error .upload-file__meta{color:var(--fill-danger, #dc2626)}.upload-file__progress{flex-basis:100%}.upload-file__status{flex-shrink:0}.upload-file__status--done{color:var(--fill-success, #047857)}.upload-file__status--error{color:var(--fill-danger, #dc2626)}.upload-file__icon{color:var(--text-muted, #6b7280);flex-shrink:0}.upload-file__info{flex:1;min-width:0}.upload-file__name{display:block;font-size:.875rem;font-weight:500;color:var(--text-base, #111827);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-file__meta{display:block;font-size:.75rem;color:var(--text-muted, #6b7280);margin-top:.0625rem}\n"] }]
2698
2866
  }], propDecorators: { multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], maxSizeMb: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSizeMb", required: false }] }], maxFiles: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxFiles", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], uploadState: [{ type: i0.Input, args: [{ isSignal: true, alias: "uploadState", required: false }] }], filesChange: [{ type: i0.Output, args: ["filesChange"] }] } });
2699
2867
 
2700
- const ICON_SIZE$5 = { sm: 14, md: 16, lg: 18 };
2868
+ const ICON_SIZE$6 = { sm: 14, md: 16, lg: 18 };
2701
2869
  class SearchInputComponent {
2702
2870
  i18n = inject(NGX_DS_LABELS);
2703
2871
  value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
@@ -2713,7 +2881,7 @@ class SearchInputComponent {
2713
2881
  focused = signal(false, ...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
2714
2882
  searchIcon = Search;
2715
2883
  clearIcon = X;
2716
- iconSize = computed(() => ICON_SIZE$5[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
2884
+ iconSize = computed(() => ICON_SIZE$6[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
2717
2885
  showClear = computed(() => this.clearable() && this.value().length > 0 && !this.disabled() && !this.loading(), ...(ngDevMode ? [{ debugName: "showClear" }] : /* istanbul ignore next */ []));
2718
2886
  wrapperClasses = computed(() => {
2719
2887
  const b = 'search-input';
@@ -2903,9 +3071,9 @@ const TRACK_COLORS = {
2903
3071
  warning: 'var(--warning-500, #f59e0b)',
2904
3072
  danger: 'var(--danger-500, #ef4444)',
2905
3073
  };
2906
- let nextId$a = 0;
3074
+ let nextId$b = 0;
2907
3075
  class RangeSliderComponent {
2908
- id = `ngx-range-slider-${nextId$a++}`;
3076
+ id = `ngx-range-slider-${nextId$b++}`;
2909
3077
  i18n = inject(NGX_DS_LABELS);
2910
3078
  value = model(0, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
2911
3079
  // `undefined` is accepted so Signal Forms can bind the field's min/max.
@@ -3054,7 +3222,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
3054
3222
  args: [{ selector: 'ngx-ds-card', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"hostClasses()\">\n <!-- Header \u2014 hidden when empty -->\n <div class=\"card__header\">\n <ng-content select=\"[card-header]\" />\n </div>\n\n <!-- Body -->\n <div class=\"card__body\">\n <ng-content />\n </div>\n\n <!-- Footer \u2014 hidden when empty -->\n <div class=\"card__footer\">\n <ng-content select=\"[card-footer]\" />\n </div>\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.card{background:var(--surface-base, #fff);border-radius:.75rem;overflow:hidden}.card--bordered{border:1.5px solid var(--border-base, #e5e7eb)}.card--shadow-none{box-shadow:none}.card--shadow-sm{box-shadow:0 1px 3px #00000014,0 1px 2px #0000000d}.card--shadow-md{box-shadow:0 4px 6px #00000012,0 2px 4px #0000000d}.card--shadow-lg{box-shadow:0 10px 15px #00000014,0 4px 6px #0000000d}.card--hoverable{transition:box-shadow .2s ease,transform .2s ease;cursor:pointer}.card--hoverable:hover{box-shadow:0 8px 20px #0000001a,0 4px 8px #0000000f;transform:translateY(-2px)}.card__header{padding:0;border-bottom:1.5px solid var(--border-base, #e5e7eb)}.card__header:not(:has(*)){display:none}.card__body{color:var(--text-secondary, #374151);font-size:.875rem;line-height:1.6}.card__footer{border-top:1.5px solid var(--border-base, #e5e7eb)}.card__footer:not(:has(*)){display:none}.card--pad-none .card__header,.card--pad-none .card__body,.card--pad-none .card__footer{padding:0}.card--pad-sm .card__header,.card--pad-sm .card__footer{padding:.625rem .875rem}.card--pad-sm .card__body{padding:.875rem}.card--pad-md .card__header,.card--pad-md .card__footer{padding:.875rem 1.25rem}.card--pad-md .card__body{padding:1.25rem}.card--pad-lg .card__header,.card--pad-lg .card__footer{padding:1.25rem 1.5rem}.card--pad-lg .card__body{padding:1.5rem}\n"] }]
3055
3223
  }], propDecorators: { shadow: [{ type: i0.Input, args: [{ isSignal: true, alias: "shadow", required: false }] }], padding: [{ type: i0.Input, args: [{ isSignal: true, alias: "padding", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], hoverable: [{ type: i0.Input, args: [{ isSignal: true, alias: "hoverable", required: false }] }] } });
3056
3224
 
3057
- const ICON_SIZE$4 = { sm: 12, md: 14, lg: 16 };
3225
+ const ICON_SIZE$5 = { sm: 12, md: 14, lg: 16 };
3058
3226
  class BreadcrumbComponent {
3059
3227
  i18n = inject(NGX_DS_LABELS);
3060
3228
  items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
@@ -3065,7 +3233,7 @@ class BreadcrumbComponent {
3065
3233
  separatorIsIcon = computed(() => typeof this.separator() !== 'string', ...(ngDevMode ? [{ debugName: "separatorIsIcon" }] : /* istanbul ignore next */ []));
3066
3234
  separatorIcon = computed(() => typeof this.separator() === 'string' ? null : this.separator(), ...(ngDevMode ? [{ debugName: "separatorIcon" }] : /* istanbul ignore next */ []));
3067
3235
  separatorChar = computed(() => typeof this.separator() === 'string' ? this.separator() : '', ...(ngDevMode ? [{ debugName: "separatorChar" }] : /* istanbul ignore next */ []));
3068
- iconSize = computed(() => ICON_SIZE$4[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
3236
+ iconSize = computed(() => ICON_SIZE$5[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
3069
3237
  visibleItems = computed(() => {
3070
3238
  const all = this.items();
3071
3239
  const max = this.maxItems();
@@ -3168,7 +3336,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
3168
3336
  }], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
3169
3337
 
3170
3338
  const ICON_SIZES = { sm: 14, md: 16, lg: 18 };
3171
- let nextId$9 = 0;
3339
+ let nextId$a = 0;
3172
3340
  class NumberInputComponent {
3173
3341
  i18n = inject(NGX_DS_LABELS);
3174
3342
  value = model(0, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
@@ -3190,7 +3358,7 @@ class NumberInputComponent {
3190
3358
  disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
3191
3359
  #formDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#formDisabled" }] : /* istanbul ignore next */ []));
3192
3360
  isDisabled = computed(() => this.disabled() || this.#formDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
3193
- id = `ngx-number-${nextId$9++}`;
3361
+ id = `ngx-number-${nextId$a++}`;
3194
3362
  messageId = `${this.id}-message`;
3195
3363
  PlusIcon = Plus;
3196
3364
  MinusIcon = Minus;
@@ -3270,7 +3438,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
3270
3438
  ], template: "@if (label()) {\n <label class=\"number-input__label\" [for]=\"id\">{{ label() }}</label>\n}\n\n<div [class]=\"hostClasses()\">\n <button\n type=\"button\"\n class=\"number-input__btn\"\n [disabled]=\"!canDecrement() || null\"\n (click)=\"decrement()\"\n [attr.aria-label]=\"i18n.decrement\"\n >\n <ngx-ds-icon [icon]=\"MinusIcon\" [size]=\"iconSize()\" />\n </button>\n\n <input\n class=\"number-input__field\"\n type=\"number\"\n [id]=\"id\"\n [attr.aria-label]=\"label() ? null : (ariaLabel() ?? null)\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"errorText() || hint() ? messageId : null\"\n [value]=\"value()\"\n [min]=\"min() ?? null\"\n [max]=\"max() ?? null\"\n [step]=\"step()\"\n [disabled]=\"isDisabled() || null\"\n (change)=\"onInputChange($event)\"\n />\n\n <button\n type=\"button\"\n class=\"number-input__btn\"\n [disabled]=\"!canIncrement() || null\"\n (click)=\"increment()\"\n [attr.aria-label]=\"i18n.increment\"\n >\n <ngx-ds-icon [icon]=\"PlusIcon\" [size]=\"iconSize()\" />\n </button>\n</div>\n\n@if (errorText()) {\n <p [id]=\"messageId\" role=\"alert\" class=\"number-input__error\">{{ errorText() }}</p>\n} @else if (hint()) {\n <p [id]=\"messageId\" class=\"number-input__hint\">{{ hint() }}</p>\n}\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.number-input__label{display:block;margin-bottom:.375rem;font-size:.875rem;font-weight:500;color:var(--text-base, #111827)}.number-input{display:inline-flex;align-items:center;border:1px solid var(--border-input, #d1d5db);border-radius:.5rem;background:var(--surface-base, #ffffff);overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}.number-input:focus-within{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px var(--primary-100, #e0e7ff)}.number-input--error,.number-input--error:focus-within{border-color:var(--danger-500, #ef4444)}.number-input--error:focus-within{box-shadow:0 0 0 3px #ef44441f}.number-input__btn{display:inline-flex;align-items:center;justify-content:center;background:var(--surface-subtle, #f9fafb);border:none;cursor:pointer;color:var(--text-muted, #6b7280);flex-shrink:0;transition:background .15s ease,color .15s ease}.number-input__btn:hover:not(:disabled){background:var(--surface-hover, #f3f4f6);color:var(--text-base, #111827)}.number-input__btn:disabled{opacity:.4;cursor:not-allowed}.number-input__field{flex:1;min-width:0;border:none;background:transparent;font-family:inherit;font-weight:500;text-align:center;color:var(--text-base, #111827);outline:none;-moz-appearance:textfield}.number-input__field::-webkit-inner-spin-button,.number-input__field::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.number-input__field:disabled{opacity:.5;cursor:not-allowed}.number-input--sm .number-input__btn{width:2rem;height:2rem}.number-input--sm .number-input__field{font-size:.8125rem;height:2rem;width:3.5rem}.number-input--md .number-input__btn{width:2.5rem;height:2.5rem}.number-input--md .number-input__field{font-size:.9375rem;height:2.5rem;width:4rem}.number-input--lg .number-input__btn{width:3rem;height:3rem}.number-input--lg .number-input__field{font-size:1.0625rem;height:3rem;width:5rem}.number-input__hint{margin:.375rem 0 0;font-size:.8125rem;color:var(--text-muted, #6b7280)}.number-input__error{margin:.375rem 0 0;font-size:.8125rem;color:var(--danger-600, #dc2626)}\n"] }]
3271
3439
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
3272
3440
 
3273
- let nextId$8 = 0;
3441
+ let nextId$9 = 0;
3274
3442
  class MultiSelectComponent {
3275
3443
  i18n = inject(NGX_DS_LABELS);
3276
3444
  options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
@@ -3286,7 +3454,7 @@ class MultiSelectComponent {
3286
3454
  searchable = input(true, ...(ngDevMode ? [{ debugName: "searchable" }] : /* istanbul ignore next */ []));
3287
3455
  maxSelected = input(null, ...(ngDevMode ? [{ debugName: "maxSelected" }] : /* istanbul ignore next */ []));
3288
3456
  disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
3289
- id = `ngx-multi-${nextId$8++}`;
3457
+ id = `ngx-multi-${nextId$9++}`;
3290
3458
  messageId = `${this.id}-message`;
3291
3459
  ChevronDownIcon = ChevronDown;
3292
3460
  XIcon = X;
@@ -3593,7 +3761,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
3593
3761
  ], template: "<div [class]=\"hostClasses()\" role=\"group\">\n @for (chip of chips(); track chip.value) {\n <span\n class=\"chip\"\n [class.chip--selected]=\"isSelected(chip)\"\n [class.chip--disabled]=\"chip.disabled || isDisabled()\"\n >\n <button\n type=\"button\"\n class=\"chip__label\"\n [disabled]=\"chip.disabled || isDisabled() || null\"\n [attr.aria-pressed]=\"selectable() ? isSelected(chip) : null\"\n (click)=\"toggle(chip)\"\n >\n {{ chip.label }}\n </button>\n\n @if (removable()) {\n <button\n type=\"button\"\n class=\"chip__remove\"\n [disabled]=\"chip.disabled || isDisabled() || null\"\n [attr.aria-label]=\"i18n.removeChip(chip.label)\"\n (click)=\"remove(chip, $event)\"\n >\n <ngx-ds-icon [icon]=\"XIcon\" [size]=\"12\" />\n </button>\n }\n </span>\n }\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.chip-group{display:flex;flex-wrap:wrap;gap:.5rem}.chip{display:inline-flex;align-items:center;gap:.375rem;border-radius:999px;cursor:pointer;font-family:inherit;font-weight:500;transition:background .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease;white-space:nowrap;position:relative}.chip:has(.chip__label:focus-visible){box-shadow:0 0 0 2px var(--primary-300, #a5b4fc)}.chip--disabled{opacity:.45;cursor:not-allowed}.chip__label,.chip__remove{appearance:none;background:none;border:0;padding:0;margin:0;color:inherit;font:inherit;cursor:inherit}.chip__label:disabled,.chip__remove:disabled{cursor:not-allowed}.chip__label{outline:none}.chip__label:after{content:\"\";position:absolute;inset:0;border-radius:inherit}.chip__remove{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:1rem;height:1rem;line-height:0;opacity:.6}.chip__remove:hover:not(:disabled){opacity:1}.chip__remove:focus-visible{opacity:1;outline:2px solid var(--primary-300, #a5b4fc);outline-offset:1px}.chip-group--sm .chip{font-size:.75rem;padding:.2rem .625rem}.chip-group--md .chip{font-size:.8125rem;padding:.3rem .875rem}.chip-group--lg .chip{font-size:.9375rem;padding:.4rem 1.125rem}.chip-group--soft .chip{background:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #374151);border:1px solid transparent}.chip-group--soft .chip:hover:not(.chip--disabled){background:var(--surface-active, #e5e7eb);color:var(--text-base, #111827)}.chip-group--soft .chip--selected{background:var(--primary-100, #e0e7ff);color:var(--primary-700, #4338ca);border-color:var(--primary-200, #c7d2fe)}.chip-group--filled .chip{background:var(--surface-active, #e5e7eb);color:var(--text-secondary, #374151);border:1px solid transparent}.chip-group--filled .chip:hover:not(.chip--disabled){background:var(--border-input, #d1d5db)}.chip-group--filled .chip--selected{background:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff);border-color:var(--primary-600, #4f46e5)}.chip-group--outline .chip{background:transparent;color:var(--text-muted, #6b7280);border:1px solid var(--border-input, #d1d5db)}.chip-group--outline .chip:hover:not(.chip--disabled){border-color:var(--text-placeholder, #6b7280);color:var(--text-base, #111827)}.chip-group--outline .chip--selected{border-color:var(--primary-500, #6366f1);color:var(--primary-700, #4338ca);background:var(--primary-50, #eef2ff)}\n"] }]
3594
3762
  }], propDecorators: { chips: [{ type: i0.Input, args: [{ isSignal: true, alias: "chips", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], removable: [{ type: i0.Input, args: [{ isSignal: true, alias: "removable", required: false }] }], multiSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiSelect", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], removed: [{ type: i0.Output, args: ["removed"] }] } });
3595
3763
 
3596
- let nextId$7 = 0;
3764
+ let nextId$8 = 0;
3597
3765
  class DateRangePickerComponent {
3598
3766
  i18n = inject(NGX_DS_LABELS);
3599
3767
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
@@ -3611,7 +3779,7 @@ class DateRangePickerComponent {
3611
3779
  isDisabled = computed(() => this.disabled() || this.#formDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
3612
3780
  start = model(null, ...(ngDevMode ? [{ debugName: "start" }] : /* istanbul ignore next */ []));
3613
3781
  end = model(null, ...(ngDevMode ? [{ debugName: "end" }] : /* istanbul ignore next */ []));
3614
- id = `ngx-drp-${nextId$7++}`;
3782
+ id = `ngx-drp-${nextId$8++}`;
3615
3783
  messageId = `${this.id}-message`;
3616
3784
  CalendarIcon = Calendar;
3617
3785
  ChevronLeft = ChevronLeft;
@@ -3931,10 +4099,10 @@ function hslToHex(h, s, l) {
3931
4099
  };
3932
4100
  return `#${f(0)}${f(8)}${f(4)}`;
3933
4101
  }
3934
- let nextId$6 = 0;
4102
+ let nextId$7 = 0;
3935
4103
  class ColorPickerComponent {
3936
4104
  i18n = inject(NGX_DS_LABELS);
3937
- id = `ngx-color-picker-${nextId$6++}`;
4105
+ id = `ngx-color-picker-${nextId$7++}`;
3938
4106
  value = model('#6366f1', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
3939
4107
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
3940
4108
  disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
@@ -4076,7 +4244,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
4076
4244
  args: [{ selector: 'ngx-ds-avatar-group', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"avatar-group\" [style]=\"hostStyle()\">\n <ng-content />\n @if (hiddenCount() > 0) {\n <span class=\"avatar-group__count\" [class]=\"'avatar-group__count--' + size()\"\n >+{{ hiddenCount() }}</span\n >\n }\n</div>\n", styles: [":host{display:inline-flex;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.avatar-group{--ag-overlap: -.5rem;display:inline-flex;align-items:center}.avatar-group ::ng-deep ngx-ds-avatar{display:inline-flex;margin-left:var(--ag-overlap);outline:2px solid var(--surface-base, #fff);border-radius:9999px}.avatar-group ::ng-deep ngx-ds-avatar:first-child{margin-left:0}.avatar-group__count{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;margin-left:var(--ag-overlap);border-radius:9999px;outline:2px solid var(--surface-base, #fff);background:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #4b5563);font-weight:600;-webkit-user-select:none;user-select:none}.avatar-group__count--xs{width:1.5rem;height:1.5rem;font-size:.625rem}.avatar-group__count--sm{width:2rem;height:2rem;font-size:.75rem}.avatar-group__count--md{width:2.5rem;height:2.5rem;font-size:.875rem}.avatar-group__count--lg{width:3rem;height:3rem;font-size:1rem}.avatar-group__count--xl{width:4rem;height:4rem;font-size:1.25rem}\n"] }]
4077
4245
  }], ctorParameters: () => [], propDecorators: { max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], spacing: [{ type: i0.Input, args: [{ isSignal: true, alias: "spacing", required: false }] }], avatarRefs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AvatarComponent), { ...{ read: ElementRef }, isSignal: true }] }] } });
4078
4246
 
4079
- const ICON_SIZE$3 = { sm: 14, md: 16, lg: 18 };
4247
+ const ICON_SIZE$4 = { sm: 14, md: 16, lg: 18 };
4080
4248
  class MenuComponent {
4081
4249
  items = input.required(...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
4082
4250
  size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
@@ -4088,7 +4256,7 @@ class MenuComponent {
4088
4256
  activeIndex = signal(0, ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
4089
4257
  openSubmenu = signal(null, ...(ngDevMode ? [{ debugName: "openSubmenu" }] : /* istanbul ignore next */ []));
4090
4258
  chevronRight = ChevronRight;
4091
- iconSize = computed(() => ICON_SIZE$3[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
4259
+ iconSize = computed(() => ICON_SIZE$4[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
4092
4260
  constructor() {
4093
4261
  afterNextRender(() => {
4094
4262
  if (this.autofocus()) {
@@ -4182,7 +4350,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
4182
4350
  }, template: "@for (item of items(); track item.id; let i = $index) {\n @if (item.separator) {\n <ngx-ds-divider />\n }\n <div class=\"menu__item-wrapper\">\n <button\n #itemBtn\n type=\"button\"\n role=\"menuitem\"\n class=\"menu__item\"\n [class.menu__item--danger]=\"item.danger\"\n [class.menu__item--active]=\"activeIndex() === i\"\n [disabled]=\"item.disabled\"\n [attr.aria-haspopup]=\"item.children?.length ? 'menu' : null\"\n [attr.aria-expanded]=\"item.children?.length ? openSubmenu() === item.id : null\"\n [attr.tabindex]=\"activeIndex() === i ? 0 : -1\"\n (click)=\"onItemClick(item, i)\"\n >\n @if (item.icon) {\n <ngx-ds-icon [icon]=\"item.icon\" [size]=\"iconSize()\" class=\"menu__item-icon\" />\n }\n <span class=\"menu__item-label\">{{ item.label }}</span>\n @if (item.kbd) {\n <ngx-ds-kbd size=\"sm\" class=\"menu__item-kbd\">{{ item.kbd }}</ngx-ds-kbd>\n }\n @if (item.children?.length) {\n <ngx-ds-icon [icon]=\"chevronRight\" [size]=\"14\" class=\"menu__item-chevron\" />\n }\n </button>\n\n @if (item.children?.length && openSubmenu() === item.id) {\n <div class=\"menu__submenu\">\n <ngx-ds-menu\n [items]=\"item.children!\"\n [size]=\"size()\"\n [autofocus]=\"true\"\n (itemClick)=\"onSubmenuItemClick($event)\"\n (closed)=\"onSubmenuClosed(i)\"\n />\n </div>\n }\n </div>\n}\n", styles: [":host{display:inline-flex;flex-direction:column;min-width:12rem;padding:.375rem;background:var(--surface-base, #fff);border:1px solid var(--border-base, #e5e7eb);border-radius:.5rem;box-shadow:0 4px 12px #00000014;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif);outline:none}.menu__item-wrapper{position:relative}.menu__item{display:flex;align-items:center;gap:.5rem;width:100%;border:none;background:transparent;cursor:pointer;border-radius:.375rem;padding:.5rem .625rem;font-size:.875rem;color:var(--text-base, #111827);text-align:left;white-space:nowrap;transition:background .12s ease,color .12s ease}.menu__item:hover:not(:disabled),.menu__item--active{background:var(--surface-hover, #f3f4f6)}.menu__item:focus-visible{outline:2px solid var(--primary-600, #4f46e5);outline-offset:-2px}.menu__item:disabled{opacity:.5;cursor:not-allowed}.menu__item--danger{color:var(--danger-600, #dc2626)}.menu__item--danger:hover:not(:disabled){background:#ef444414}.menu__item-icon{flex-shrink:0}.menu__item-label{flex:1;overflow:hidden;text-overflow:ellipsis}.menu__item-kbd,.menu__item-chevron{flex-shrink:0}.menu__submenu{position:absolute;top:0;left:100%;z-index:10;padding-left:.25rem}\n"] }]
4183
4351
  }], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], closed: [{ type: i0.Output, args: ["closed"] }], itemBtns: [{ type: i0.ViewChildren, args: ['itemBtn', { isSignal: true }] }] } });
4184
4352
 
4185
- let nextId$5 = 0;
4353
+ let nextId$6 = 0;
4186
4354
  class FormFieldComponent {
4187
4355
  label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
4188
4356
  hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
@@ -4190,7 +4358,7 @@ class FormFieldComponent {
4190
4358
  required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
4191
4359
  disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
4192
4360
  for = input(null, ...(ngDevMode ? [{ debugName: "for" }] : /* istanbul ignore next */ []));
4193
- generatedId = `ngx-ff-${nextId$5++}`;
4361
+ generatedId = `ngx-ff-${nextId$6++}`;
4194
4362
  fieldId = computed(() => this.for() ?? this.generatedId, ...(ngDevMode ? [{ debugName: "fieldId" }] : /* istanbul ignore next */ []));
4195
4363
  hintId = computed(() => `${this.fieldId()}-hint`, ...(ngDevMode ? [{ debugName: "hintId" }] : /* istanbul ignore next */ []));
4196
4364
  errorId = computed(() => `${this.fieldId()}-error`, ...(ngDevMode ? [{ debugName: "errorId" }] : /* istanbul ignore next */ []));
@@ -4228,7 +4396,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
4228
4396
  args: [{ selector: 'ngx-ds-form-field', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (label()) {\n <label [for]=\"fieldId()\" class=\"ngx-ff__label\">\n {{ label() }}\n @if (required()) {\n <span class=\"ngx-ff__required\" aria-hidden=\"true\">*</span>\n }\n </label>\n}\n\n<div class=\"ngx-ff__control\" [class.ngx-ff__control--disabled]=\"disabled()\">\n <ng-content />\n</div>\n\n@if (error()) {\n <p [id]=\"errorId()\" class=\"ngx-ff__message ngx-ff__message--error\" role=\"alert\">{{ error() }}</p>\n} @else if (hint()) {\n <p [id]=\"hintId()\" class=\"ngx-ff__message ngx-ff__message--hint\">{{ hint() }}</p>\n}\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.ngx-ff__label{display:block;margin-bottom:.375rem;font-size:.875rem;font-weight:500;color:var(--text-secondary, #374151)}.ngx-ff__required{margin-left:.125rem;color:var(--fill-danger, #dc2626)}.ngx-ff__control--disabled{opacity:.6;pointer-events:none}.ngx-ff__message{margin-top:.375rem;font-size:.75rem;line-height:1.4}.ngx-ff__message--hint{color:var(--text-muted, #6b7280)}.ngx-ff__message--error{color:var(--fill-danger, #dc2626)}\n"] }]
4229
4397
  }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], for: [{ type: i0.Input, args: [{ isSignal: true, alias: "for", required: false }] }] } });
4230
4398
 
4231
- const ICON_SIZE$2 = { sm: 14, md: 16, lg: 18 };
4399
+ const ICON_SIZE$3 = { sm: 14, md: 16, lg: 18 };
4232
4400
  const LAST_MINUTE = 23 * 60 + 59;
4233
4401
  const pad = (n) => String(n).padStart(2, '0');
4234
4402
  /** Parses `HH:mm` into minutes since midnight, or `null` when it is not a valid time. */
@@ -4243,7 +4411,7 @@ function parseTime(value) {
4243
4411
  function formatTime(total) {
4244
4412
  return `${pad(Math.floor(total / 60))}:${pad(total % 60)}`;
4245
4413
  }
4246
- let nextId$4 = 0;
4414
+ let nextId$5 = 0;
4247
4415
  /**
4248
4416
  * Time field with an hour / minute (and AM/PM) panel.
4249
4417
  * The value is a 24-hour `HH:mm` string, like a native `<input type="time">`.
@@ -4271,7 +4439,7 @@ class TimePickerComponent {
4271
4439
  // ── Value ────────────────────────────────────────────────
4272
4440
  /** Selected time as `HH:mm` (24-hour), or `null`. */
4273
4441
  value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
4274
- id = `ngx-time-picker-${nextId$4++}`;
4442
+ id = `ngx-time-picker-${nextId$5++}`;
4275
4443
  messageId = `${this.id}-message`;
4276
4444
  ClockIcon = Clock;
4277
4445
  XIcon = X;
@@ -4304,7 +4472,7 @@ class TimePickerComponent {
4304
4472
  return values;
4305
4473
  }, ...(ngDevMode ? [{ debugName: "#minuteValues" }] : /* istanbul ignore next */ []));
4306
4474
  // ── Derived ───────────────────────────────────────────────
4307
- iconSize = computed(() => ICON_SIZE$2[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
4475
+ iconSize = computed(() => ICON_SIZE$3[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
4308
4476
  is12h = computed(() => this.hourFormat() === '12', ...(ngDevMode ? [{ debugName: "is12h" }] : /* istanbul ignore next */ []));
4309
4477
  hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
4310
4478
  errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
@@ -4553,7 +4721,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
4553
4721
  ], template: "<!-- Static label -->\n@if (!floatingLabel() && label()) {\n <label [for]=\"id\" class=\"ngx-time-picker__label\">{{ label() }}</label>\n}\n\n<!-- Field trigger. The clear button is a sibling: a button inside\n role=\"button\" would be a nested interactive control. -->\n<div class=\"ngx-time-picker__control\">\n <div\n #trigger\n [class]=\"fieldClasses()\"\n (click)=\"togglePanel()\"\n (keydown)=\"onTriggerKeydown($event)\"\n [attr.id]=\"id\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"errorText() || hint() ? messageId : null\"\n role=\"button\"\n aria-haspopup=\"dialog\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-disabled]=\"isDisabled()\"\n >\n @if (floatingLabel() && label()) {\n <span [class]=\"floatLabelClasses()\">{{ label() }}</span>\n }\n\n <span class=\"ngx-time-picker__icon\" aria-hidden=\"true\">\n <ngx-ds-icon [icon]=\"ClockIcon\" [size]=\"iconSize()\" />\n </span>\n\n <span class=\"ngx-time-picker__display\">\n @if (displayValue()) {\n <span class=\"ngx-time-picker__value\">{{ displayValue() }}</span>\n } @else {\n <span class=\"ngx-time-picker__placeholder\">{{\n placeholder() ?? i18n.timePlaceholder\n }}</span>\n }\n </span>\n </div>\n\n @if (hasValue() && !isDisabled()) {\n <button\n type=\"button\"\n class=\"ngx-time-picker__clear\"\n [attr.aria-label]=\"i18n.clearTime\"\n (click)=\"clearValue($event)\"\n >\n <ngx-ds-icon [icon]=\"XIcon\" [size]=\"iconSize()\" />\n </button>\n }\n</div>\n\n<!-- Panel -->\n@if (isOpen()) {\n <div #panel class=\"ngx-time-picker__panel\" role=\"dialog\" [attr.aria-label]=\"i18n.selectTime\">\n <ng-container\n *ngTemplateOutlet=\"\n column;\n context: { options: hourOptions(), label: i18n.hours, kind: 'hour' }\n \"\n />\n <ng-container\n *ngTemplateOutlet=\"\n column;\n context: { options: minuteOptions(), label: i18n.minutes, kind: 'minute' }\n \"\n />\n @if (is12h()) {\n <ng-container\n *ngTemplateOutlet=\"\n column;\n context: { options: periodOptions(), label: i18n.timePeriod, kind: 'period' }\n \"\n />\n }\n </div>\n}\n\n<ng-template #column let-options=\"options\" let-label=\"label\" let-kind=\"kind\">\n <div class=\"ngx-time-picker__column\" role=\"listbox\" [attr.aria-label]=\"label\">\n @for (option of options; track option.value) {\n <button\n type=\"button\"\n role=\"option\"\n class=\"ngx-time-picker__option\"\n [class.ngx-time-picker__option--selected]=\"option.selected\"\n [class.ngx-time-picker__option--disabled]=\"option.disabled\"\n [attr.aria-selected]=\"option.selected\"\n [attr.aria-disabled]=\"option.disabled || null\"\n [attr.tabindex]=\"isFocusTarget(options, option) ? 0 : -1\"\n (click)=\"select(kind, option); $event.stopPropagation()\"\n (keydown)=\"onOptionKeydown($event)\"\n >\n {{ option.label }}\n </button>\n }\n </div>\n</ng-template>\n\n<!-- Error / Hint -->\n@if (errorText()) {\n <p [id]=\"messageId\" class=\"ngx-time-picker__message ngx-time-picker__message--error\" role=\"alert\">\n {{ errorText() }}\n </p>\n} @else if (hint()) {\n <p [id]=\"messageId\" class=\"ngx-time-picker__message ngx-time-picker__message--hint\">\n {{ hint() }}\n </p>\n}\n", styles: [":host{display:block;position:relative;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.ngx-time-picker__label{display:block;margin-bottom:.375rem;font-size:.875rem;font-weight:500;color:var(--text-secondary, #374151)}.ngx-time-picker__field{position:relative;display:flex;align-items:center;gap:.5rem;width:100%;min-height:2.375rem;background:var(--surface-base, #fff);border:1.5px solid var(--border-input, #d1d5db);border-radius:.375rem;cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .15s ease,box-shadow .15s ease}.ngx-time-picker__field:focus-visible{outline:none;border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f61f}.ngx-time-picker__field--focused{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f61f}.ngx-time-picker__field--error{border-color:var(--danger-500, #ef4444)}.ngx-time-picker__field--error.ngx-time-picker__field--focused{box-shadow:0 0 0 3px #ef44441f}.ngx-time-picker__field--disabled{background:var(--surface-subtle, #f9fafb);color:var(--text-placeholder, #6b7280);cursor:not-allowed}.ngx-time-picker__field--sm{padding:.375rem .625rem;font-size:.8125rem}.ngx-time-picker__field--md{padding:.5rem .75rem;font-size:.875rem}.ngx-time-picker__field--lg{padding:.625rem 1rem;font-size:1rem}.ngx-time-picker__float-label{position:absolute;left:2.25rem;top:50%;transform:translateY(-50%);padding:0;font-size:inherit;line-height:1;white-space:nowrap;color:var(--text-placeholder, #6b7280);background:transparent;pointer-events:none;transition:top .15s ease,font-size .15s ease,color .15s ease,padding .15s ease}.ngx-time-picker__float-label--active{top:0;padding:0 .25rem;font-size:.7rem;color:var(--fill-primary, #4f46e5);background:var(--surface-base, #fff)}.ngx-time-picker__float-label--focused:not(.ngx-time-picker__float-label--error){color:var(--fill-primary, #4f46e5)}.ngx-time-picker__float-label--error{color:var(--fill-danger, #dc2626)}.ngx-time-picker__icon{display:inline-flex;flex-shrink:0;align-items:center;color:var(--text-placeholder, #6b7280)}.ngx-time-picker__display{flex:1;min-width:0}.ngx-time-picker__value{display:block;color:var(--text-base, #111827);font-variant-numeric:tabular-nums}.ngx-time-picker__placeholder{display:block;color:var(--text-placeholder, #6b7280)}.ngx-time-picker__control{position:relative}.ngx-time-picker__field.ngx-time-picker__field--clearable{padding-right:2.25rem}.ngx-time-picker__clear{position:absolute;top:50%;right:.375rem;display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;padding:0;color:var(--text-placeholder, #6b7280);background:transparent;border:none;border-radius:.25rem;transform:translateY(-50%);cursor:pointer;transition:color .15s ease}.ngx-time-picker__clear:hover{color:var(--text-muted, #6b7280)}.ngx-time-picker__clear:focus-visible{outline:2px solid var(--primary-500, #6366f1);outline-offset:1px}.ngx-time-picker__panel{position:absolute;top:calc(100% + .25rem);left:0;z-index:100;display:flex;padding:.375rem;gap:.25rem;background:var(--surface-base, #fff);border:1.5px solid var(--border-input, #d1d5db);border-radius:.5rem;box-shadow:0 8px 24px #0000001f}.ngx-time-picker__column{position:relative;display:flex;flex-direction:column;gap:2px;width:3.25rem;max-height:13.5rem;overflow-y:auto;scrollbar-width:none}.ngx-time-picker__column::-webkit-scrollbar{display:none}.ngx-time-picker__column+.ngx-time-picker__column{padding-left:.25rem;border-left:1px solid var(--border-subtle, #f3f4f6)}.ngx-time-picker__option{flex-shrink:0;height:2rem;padding:0;font-family:inherit;font-size:.8125rem;font-variant-numeric:tabular-nums;color:var(--text-secondary, #374151);background:transparent;border:none;border-radius:.375rem;cursor:pointer;transition:background .1s ease,color .1s ease}.ngx-time-picker__option:focus-visible{outline:2px solid var(--primary-300, #a5b4fc);outline-offset:-2px}.ngx-time-picker__option:hover:not(.ngx-time-picker__option--disabled):not(.ngx-time-picker__option--selected){color:var(--text-base, #111827);background:var(--surface-muted, #f3f4f6)}.ngx-time-picker__option--selected{font-weight:600;color:var(--text-on-color, #fff);background:var(--primary-500, #6366f1)}.ngx-time-picker__option--selected:hover{background:var(--primary-600, #4f46e5)}.ngx-time-picker__option--disabled{color:var(--text-disabled, #d1d5db);cursor:not-allowed}.ngx-time-picker__message{margin-top:.375rem;font-size:.75rem;line-height:1.4}.ngx-time-picker__message--hint{color:var(--text-muted, #6b7280)}.ngx-time-picker__message--error{color:var(--fill-danger, #dc2626)}\n"] }]
4554
4722
  }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], floatingLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatingLabel", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], hourFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourFormat", required: false }] }], minuteStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "minuteStep", required: false }] }], minTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "minTime", required: false }] }], maxTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxTime", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], triggerRef: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], panelRef: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }] } });
4555
4723
 
4556
- let nextId$3 = 0;
4724
+ let nextId$4 = 0;
4557
4725
  function escapeRegExp(text) {
4558
4726
  return text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
4559
4727
  }
@@ -4581,7 +4749,7 @@ class TagInputComponent {
4581
4749
  value = model([], ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
4582
4750
  added = output();
4583
4751
  removed = output();
4584
- id = `ngx-tag-input-${nextId$3++}`;
4752
+ id = `ngx-tag-input-${nextId$4++}`;
4585
4753
  messageId = `${this.id}-message`;
4586
4754
  native = viewChild.required('native');
4587
4755
  // ── Internal state ───────────────────────────────────────────
@@ -4756,6 +4924,563 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
4756
4924
  ], template: "@if (label()) {\n <label class=\"ngx-tag-input__label\" [for]=\"id\">{{ label() }}</label>\n}\n\n<!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n<div [class]=\"fieldClasses()\" (click)=\"focusInput()\">\n @if (value().length) {\n <ul class=\"ngx-tag-input__tags\" [attr.aria-label]=\"label() || null\">\n @for (tag of value(); track $index; let i = $index) {\n <li class=\"ngx-tag-input__tag\">\n <ngx-ds-tag\n [label]=\"tag\"\n size=\"sm\"\n color=\"primary\"\n [dismissible]=\"!isDisabled()\"\n (dismissed)=\"remove(i)\"\n />\n </li>\n }\n </ul>\n }\n\n <input\n #native\n class=\"ngx-tag-input__native\"\n type=\"text\"\n autocomplete=\"off\"\n [id]=\"id\"\n [value]=\"text()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled()\"\n [readOnly]=\"isFull()\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"errorText() || hint() ? messageId : null\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (paste)=\"onPaste($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n />\n</div>\n\n@if (errorText()) {\n <p [id]=\"messageId\" class=\"ngx-tag-input__message ngx-tag-input__message--error\" role=\"alert\">\n {{ errorText() }}\n </p>\n} @else if (hint()) {\n <p [id]=\"messageId\" class=\"ngx-tag-input__message ngx-tag-input__message--hint\">\n {{ hint() }}\n </p>\n}\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.ngx-tag-input__label{display:block;margin-bottom:.375rem;font-size:.875rem;font-weight:500;color:var(--text-secondary, #374151)}.ngx-tag-input__field{display:flex;flex-wrap:wrap;align-items:center;gap:.375rem;width:100%;min-height:2.375rem;background:var(--surface-base, #fff);border:1.5px solid var(--border-input, #d1d5db);border-radius:.375rem;cursor:text;transition:border-color .15s ease,box-shadow .15s ease}.ngx-tag-input__field--focused{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f61f}.ngx-tag-input__field--error{border-color:var(--danger-500, #ef4444)}.ngx-tag-input__field--error.ngx-tag-input__field--focused{box-shadow:0 0 0 3px #ef44441f}.ngx-tag-input__field--disabled{background:var(--surface-subtle, #f9fafb);cursor:not-allowed}.ngx-tag-input__field--sm{padding:.25rem .5rem;font-size:.8125rem}.ngx-tag-input__field--md{padding:.3125rem .625rem;font-size:.875rem}.ngx-tag-input__field--lg{padding:.4375rem .875rem;font-size:1rem}.ngx-tag-input__tags{display:contents;margin:0;padding:0;list-style:none}.ngx-tag-input__tag{display:inline-flex}.ngx-tag-input__native{flex:1 1 6rem;min-width:6rem;padding:.125rem 0;font:inherit;color:var(--text-base, #111827);background:transparent;border:none;outline:none}.ngx-tag-input__native::placeholder{color:var(--text-placeholder, #6b7280)}.ngx-tag-input__native:disabled{color:var(--text-placeholder, #6b7280);cursor:not-allowed}.ngx-tag-input__native:read-only{caret-color:transparent}.ngx-tag-input__message{margin-top:.375rem;font-size:.75rem;line-height:1.4}.ngx-tag-input__message--hint{color:var(--text-muted, #6b7280)}.ngx-tag-input__message--error{color:var(--fill-danger, #dc2626)}\n"] }]
4757
4925
  }], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], separators: [{ type: i0.Input, args: [{ isSignal: true, alias: "separators", required: false }] }], maxTags: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxTags", required: false }] }], allowDuplicates: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowDuplicates", required: false }] }], addOnBlur: [{ type: i0.Input, args: [{ isSignal: true, alias: "addOnBlur", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], added: [{ type: i0.Output, args: ["added"] }], removed: [{ type: i0.Output, args: ["removed"] }], native: [{ type: i0.ViewChild, args: ['native', { isSignal: true }] }] } });
4758
4926
 
4927
+ const ICON_SIZE$2 = { sm: 12, md: 14, lg: 16 };
4928
+ /**
4929
+ * Text that turns into a field on click. Enter (Ctrl/⌘+Enter when `multiline`) or
4930
+ * blur saves, Escape restores the previous value.
4931
+ *
4932
+ * Works with `[(value)]`, reactive forms and Signal Forms `[formField]`.
4933
+ */
4934
+ class InlineEditComponent {
4935
+ i18n = inject(NGX_DS_LABELS);
4936
+ #injector = inject(Injector);
4937
+ // ── Configuration ────────────────────────────────────────────
4938
+ /** Names the field for assistive tech ("Edit <label>"). Not shown. */
4939
+ label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
4940
+ /** Shown, muted, while the value is empty. */
4941
+ placeholder = input('', ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
4942
+ size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
4943
+ /** Uses a textarea. Enter adds a line, Ctrl/⌘+Enter saves. */
4944
+ multiline = input(false, ...(ngDevMode ? [{ debugName: "multiline" }] : /* istanbul ignore next */ []));
4945
+ /** An empty value is not saved: the previous one is restored. */
4946
+ required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
4947
+ /** Shows save and cancel buttons while editing. */
4948
+ showActions = input(false, ...(ngDevMode ? [{ debugName: "showActions" }] : /* istanbul ignore next */ []));
4949
+ /** Saves when the field loses focus. With `false`, leaving the field cancels. */
4950
+ saveOnBlur = input(true, ...(ngDevMode ? [{ debugName: "saveOnBlur" }] : /* istanbul ignore next */ []));
4951
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
4952
+ // ── Value ─────────────────────────────────────────────────────
4953
+ value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
4954
+ /** Whether the field is being edited. Bind it to start editing from outside. */
4955
+ editing = model(false, ...(ngDevMode ? [{ debugName: "editing" }] : /* istanbul ignore next */ []));
4956
+ /** Emits the new value when an edit is saved and the value changed. */
4957
+ saved = output();
4958
+ /** Emits when an edit is cancelled. */
4959
+ cancelled = output();
4960
+ fieldRef = viewChild('field', ...(ngDevMode ? [{ debugName: "fieldRef" }] : /* istanbul ignore next */ []));
4961
+ triggerRef = viewChild('trigger', ...(ngDevMode ? [{ debugName: "triggerRef" }] : /* istanbul ignore next */ []));
4962
+ #draft = signal('', ...(ngDevMode ? [{ debugName: "#draft" }] : /* istanbul ignore next */ []));
4963
+ #cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#cvaDisabled" }] : /* istanbul ignore next */ []));
4964
+ draft = this.#draft.asReadonly();
4965
+ isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
4966
+ isEmpty = computed(() => this.value().trim() === '', ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
4967
+ iconSize = computed(() => ICON_SIZE$2[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
4968
+ triggerLabel = computed(() => this.i18n.edit(this.label()), ...(ngDevMode ? [{ debugName: "triggerLabel" }] : /* istanbul ignore next */ []));
4969
+ hostClasses = computed(() => [
4970
+ 'ie',
4971
+ `ie--${this.size()}`,
4972
+ this.multiline() ? 'ie--multiline' : '',
4973
+ this.isDisabled() ? 'ie--disabled' : '',
4974
+ ]
4975
+ .filter(Boolean)
4976
+ .join(' '), ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
4977
+ icons = { Pencil, Check, X };
4978
+ constructor() {
4979
+ // Entering edit mode, from a click or from a bound `[(editing)]`, starts a draft
4980
+ // from the current value and focuses the field.
4981
+ let wasEditing = false;
4982
+ effect(() => {
4983
+ const editing = this.editing();
4984
+ if (editing && !wasEditing)
4985
+ untracked(() => this.#begin());
4986
+ wasEditing = editing;
4987
+ });
4988
+ }
4989
+ // ── Actions ──────────────────────────────────────────────────
4990
+ edit() {
4991
+ if (this.isDisabled())
4992
+ return;
4993
+ this.editing.set(true);
4994
+ }
4995
+ save() {
4996
+ if (!this.editing())
4997
+ return;
4998
+ const next = this.multiline() ? this.#draft() : this.#draft().trim();
4999
+ if (this.required() && next.trim() === '') {
5000
+ this.cancel();
5001
+ return;
5002
+ }
5003
+ this.#end();
5004
+ if (next !== this.value()) {
5005
+ this.value.set(next);
5006
+ this.onChange(next);
5007
+ this.saved.emit(next);
5008
+ }
5009
+ this.onTouched();
5010
+ }
5011
+ cancel() {
5012
+ if (!this.editing())
5013
+ return;
5014
+ this.#end();
5015
+ this.onTouched();
5016
+ this.cancelled.emit();
5017
+ }
5018
+ onInput(event) {
5019
+ this.#draft.set(event.target.value);
5020
+ }
5021
+ onKeydown(event) {
5022
+ if (event.key === 'Escape') {
5023
+ event.preventDefault();
5024
+ event.stopPropagation();
5025
+ this.cancel();
5026
+ this.#focusTrigger();
5027
+ }
5028
+ else if (event.key === 'Enter' && (!this.multiline() || event.ctrlKey || event.metaKey)) {
5029
+ event.preventDefault();
5030
+ this.save();
5031
+ this.#focusTrigger();
5032
+ }
5033
+ }
5034
+ onBlur(event) {
5035
+ // Moving to the save/cancel buttons is not leaving the field.
5036
+ const next = event.relatedTarget;
5037
+ if (next && event.currentTarget.parentElement?.contains(next))
5038
+ return;
5039
+ if (this.saveOnBlur())
5040
+ this.save();
5041
+ else
5042
+ this.cancel();
5043
+ }
5044
+ onAction(kind) {
5045
+ if (kind === 'save')
5046
+ this.save();
5047
+ else
5048
+ this.cancel();
5049
+ this.#focusTrigger();
5050
+ }
5051
+ #begin() {
5052
+ this.#draft.set(this.value());
5053
+ afterNextRender(() => {
5054
+ const field = this.fieldRef()?.nativeElement;
5055
+ field?.focus();
5056
+ field?.select();
5057
+ }, { injector: this.#injector });
5058
+ }
5059
+ #end() {
5060
+ this.editing.set(false);
5061
+ }
5062
+ #focusTrigger() {
5063
+ afterNextRender(() => this.triggerRef()?.nativeElement.focus(), { injector: this.#injector });
5064
+ }
5065
+ // ── CVA ──────────────────────────────────────────────────────
5066
+ onChange = () => { };
5067
+ onTouched = () => { };
5068
+ writeValue(v) {
5069
+ this.value.set(v ?? '');
5070
+ }
5071
+ registerOnChange(fn) {
5072
+ this.onChange = fn;
5073
+ }
5074
+ registerOnTouched(fn) {
5075
+ this.onTouched = fn;
5076
+ }
5077
+ setDisabledState(disabled) {
5078
+ this.#cvaDisabled.set(disabled);
5079
+ }
5080
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: InlineEditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5081
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: InlineEditComponent, isStandalone: true, selector: "ngx-ds-inline-edit", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, multiline: { classPropertyName: "multiline", publicName: "multiline", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, showActions: { classPropertyName: "showActions", publicName: "showActions", isSignal: true, isRequired: false, transformFunction: null }, saveOnBlur: { classPropertyName: "saveOnBlur", publicName: "saveOnBlur", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, editing: { classPropertyName: "editing", publicName: "editing", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", editing: "editingChange", saved: "saved", cancelled: "cancelled" }, providers: [
5082
+ {
5083
+ provide: NG_VALUE_ACCESSOR,
5084
+ useExisting: forwardRef(() => InlineEditComponent),
5085
+ multi: true,
5086
+ },
5087
+ ], viewQueries: [{ propertyName: "fieldRef", first: true, predicate: ["field"], descendants: true, isSignal: true }, { propertyName: "triggerRef", first: true, predicate: ["trigger"], descendants: true, isSignal: true }], ngImport: i0, template: "<div [class]=\"hostClasses()\">\n @if (editing()) {\n @if (multiline()) {\n <textarea\n #field\n class=\"ie__field ie__field--textarea\"\n rows=\"3\"\n [attr.aria-label]=\"label() || null\"\n [attr.aria-required]=\"required() || null\"\n [value]=\"draft()\"\n [placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur($event)\"\n ></textarea>\n } @else {\n <input\n #field\n class=\"ie__field\"\n type=\"text\"\n [attr.aria-label]=\"label() || null\"\n [attr.aria-required]=\"required() || null\"\n [value]=\"draft()\"\n [placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur($event)\"\n />\n }\n @if (showActions()) {\n <span class=\"ie__actions\">\n <button\n type=\"button\"\n class=\"ie__action ie__action--save\"\n [attr.aria-label]=\"i18n.save\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onAction('save')\"\n >\n <ngx-ds-icon [icon]=\"icons.Check\" [size]=\"iconSize()\" />\n </button>\n <button\n type=\"button\"\n class=\"ie__action\"\n [attr.aria-label]=\"i18n.cancel\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onAction('cancel')\"\n >\n <ngx-ds-icon [icon]=\"icons.X\" [size]=\"iconSize()\" />\n </button>\n </span>\n }\n } @else {\n <button\n #trigger\n type=\"button\"\n class=\"ie__trigger\"\n [disabled]=\"isDisabled() || null\"\n [attr.aria-label]=\"triggerLabel() + ': ' + (isEmpty() ? placeholder() : value())\"\n (click)=\"edit()\"\n >\n <span class=\"ie__text\" [class.ie__text--placeholder]=\"isEmpty()\">{{\n isEmpty() ? placeholder() : value()\n }}</span>\n <span class=\"ie__pencil\" aria-hidden=\"true\">\n <ngx-ds-icon [icon]=\"icons.Pencil\" [size]=\"iconSize()\" />\n </span>\n </button>\n }\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.ie{display:flex;align-items:center;gap:.375rem;color:var(--text-base, #111827)}.ie--sm{--ie-font: .8125rem;--ie-pad: .25rem .375rem}.ie--md{--ie-font: .875rem;--ie-pad: .375rem .5rem}.ie--lg{--ie-font: 1rem;--ie-pad: .5rem .625rem}.ie--multiline{align-items:flex-start}.ie__trigger,.ie__field{box-sizing:border-box;width:100%;min-width:0;padding:var(--ie-pad);font:inherit;font-size:var(--ie-font);line-height:1.5;color:inherit;border:1.5px solid transparent;border-radius:.375rem}.ie__trigger{display:flex;align-items:flex-start;gap:.5rem;text-align:left;background:transparent;cursor:text;transition:background-color .15s ease,border-color .15s ease}.ie__trigger:hover:not(:disabled){background:var(--surface-hover, #f3f4f6)}.ie__trigger:hover:not(:disabled) .ie__pencil{opacity:1}.ie__trigger:focus-visible{outline:none;border-color:var(--primary-600, #4f46e5);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary-600, #4f46e5) 20%,transparent)}.ie__trigger:focus-visible .ie__pencil{opacity:1}.ie__trigger:disabled{cursor:not-allowed;color:var(--text-muted, #6b7280)}.ie__text{flex:1;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}.ie__text--placeholder{color:var(--text-placeholder, #6b7280)}.ie__pencil{display:inline-flex;align-self:center;color:var(--text-muted, #6b7280);opacity:0;transition:opacity .15s ease}.ie--multiline .ie__pencil{align-self:flex-start;margin-top:.2em}.ie__field{background:var(--surface-base, #fff);border-color:var(--primary-600, #4f46e5);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary-600, #4f46e5) 20%,transparent);outline:none}.ie__field::placeholder{color:var(--text-placeholder, #6b7280)}.ie__field--textarea{resize:vertical}.ie__actions{display:inline-flex;gap:.25rem;flex-shrink:0}.ie__action{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;color:var(--text-secondary, #4b5563);background:var(--surface-base, #fff);border:1px solid var(--border-base, #e5e7eb);border-radius:.375rem;cursor:pointer}.ie__action:hover{background:var(--surface-hover, #f3f4f6)}.ie__action:focus-visible{outline:2px solid var(--primary-600, #4f46e5);outline-offset:2px}.ie__action--save{color:var(--text-on-color, #fff);background:var(--fill-primary, #4f46e5);border-color:var(--fill-primary, #4f46e5)}.ie__action--save:hover{background:var(--primary-700, #4338ca)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5088
+ }
5089
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: InlineEditComponent, decorators: [{
5090
+ type: Component,
5091
+ args: [{ selector: 'ngx-ds-inline-edit', standalone: true, imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
5092
+ {
5093
+ provide: NG_VALUE_ACCESSOR,
5094
+ useExisting: forwardRef(() => InlineEditComponent),
5095
+ multi: true,
5096
+ },
5097
+ ], template: "<div [class]=\"hostClasses()\">\n @if (editing()) {\n @if (multiline()) {\n <textarea\n #field\n class=\"ie__field ie__field--textarea\"\n rows=\"3\"\n [attr.aria-label]=\"label() || null\"\n [attr.aria-required]=\"required() || null\"\n [value]=\"draft()\"\n [placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur($event)\"\n ></textarea>\n } @else {\n <input\n #field\n class=\"ie__field\"\n type=\"text\"\n [attr.aria-label]=\"label() || null\"\n [attr.aria-required]=\"required() || null\"\n [value]=\"draft()\"\n [placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onBlur($event)\"\n />\n }\n @if (showActions()) {\n <span class=\"ie__actions\">\n <button\n type=\"button\"\n class=\"ie__action ie__action--save\"\n [attr.aria-label]=\"i18n.save\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onAction('save')\"\n >\n <ngx-ds-icon [icon]=\"icons.Check\" [size]=\"iconSize()\" />\n </button>\n <button\n type=\"button\"\n class=\"ie__action\"\n [attr.aria-label]=\"i18n.cancel\"\n (mousedown)=\"$event.preventDefault()\"\n (click)=\"onAction('cancel')\"\n >\n <ngx-ds-icon [icon]=\"icons.X\" [size]=\"iconSize()\" />\n </button>\n </span>\n }\n } @else {\n <button\n #trigger\n type=\"button\"\n class=\"ie__trigger\"\n [disabled]=\"isDisabled() || null\"\n [attr.aria-label]=\"triggerLabel() + ': ' + (isEmpty() ? placeholder() : value())\"\n (click)=\"edit()\"\n >\n <span class=\"ie__text\" [class.ie__text--placeholder]=\"isEmpty()\">{{\n isEmpty() ? placeholder() : value()\n }}</span>\n <span class=\"ie__pencil\" aria-hidden=\"true\">\n <ngx-ds-icon [icon]=\"icons.Pencil\" [size]=\"iconSize()\" />\n </span>\n </button>\n }\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.ie{display:flex;align-items:center;gap:.375rem;color:var(--text-base, #111827)}.ie--sm{--ie-font: .8125rem;--ie-pad: .25rem .375rem}.ie--md{--ie-font: .875rem;--ie-pad: .375rem .5rem}.ie--lg{--ie-font: 1rem;--ie-pad: .5rem .625rem}.ie--multiline{align-items:flex-start}.ie__trigger,.ie__field{box-sizing:border-box;width:100%;min-width:0;padding:var(--ie-pad);font:inherit;font-size:var(--ie-font);line-height:1.5;color:inherit;border:1.5px solid transparent;border-radius:.375rem}.ie__trigger{display:flex;align-items:flex-start;gap:.5rem;text-align:left;background:transparent;cursor:text;transition:background-color .15s ease,border-color .15s ease}.ie__trigger:hover:not(:disabled){background:var(--surface-hover, #f3f4f6)}.ie__trigger:hover:not(:disabled) .ie__pencil{opacity:1}.ie__trigger:focus-visible{outline:none;border-color:var(--primary-600, #4f46e5);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary-600, #4f46e5) 20%,transparent)}.ie__trigger:focus-visible .ie__pencil{opacity:1}.ie__trigger:disabled{cursor:not-allowed;color:var(--text-muted, #6b7280)}.ie__text{flex:1;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}.ie__text--placeholder{color:var(--text-placeholder, #6b7280)}.ie__pencil{display:inline-flex;align-self:center;color:var(--text-muted, #6b7280);opacity:0;transition:opacity .15s ease}.ie--multiline .ie__pencil{align-self:flex-start;margin-top:.2em}.ie__field{background:var(--surface-base, #fff);border-color:var(--primary-600, #4f46e5);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary-600, #4f46e5) 20%,transparent);outline:none}.ie__field::placeholder{color:var(--text-placeholder, #6b7280)}.ie__field--textarea{resize:vertical}.ie__actions{display:inline-flex;gap:.25rem;flex-shrink:0}.ie__action{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;color:var(--text-secondary, #4b5563);background:var(--surface-base, #fff);border:1px solid var(--border-base, #e5e7eb);border-radius:.375rem;cursor:pointer}.ie__action:hover{background:var(--surface-hover, #f3f4f6)}.ie__action:focus-visible{outline:2px solid var(--primary-600, #4f46e5);outline-offset:2px}.ie__action--save{color:var(--text-on-color, #fff);background:var(--fill-primary, #4f46e5);border-color:var(--fill-primary, #4f46e5)}.ie__action--save:hover{background:var(--primary-700, #4338ca)}\n"] }]
5098
+ }], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], multiline: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiline", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], showActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "showActions", required: false }] }], saveOnBlur: [{ type: i0.Input, args: [{ isSignal: true, alias: "saveOnBlur", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], editing: [{ type: i0.Input, args: [{ isSignal: true, alias: "editing", required: false }] }, { type: i0.Output, args: ["editingChange"] }], saved: [{ type: i0.Output, args: ["saved"] }], cancelled: [{ type: i0.Output, args: ["cancelled"] }], fieldRef: [{ type: i0.ViewChild, args: ['field', { isSignal: true }] }], triggerRef: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }] } });
5099
+
5100
+ let nextId$3 = 0;
5101
+ /**
5102
+ * A select whose options form a tree. Single mode picks one node; `multiple` adds
5103
+ * checkboxes that, with `cascade`, check every leaf under a parent.
5104
+ *
5105
+ * Works with `[(value)]`, reactive forms and Signal Forms `[formField]`.
5106
+ */
5107
+ class TreeSelectComponent {
5108
+ i18n = inject(NGX_DS_LABELS);
5109
+ #injector = inject(Injector);
5110
+ // ── Configuration ────────────────────────────────────────────
5111
+ nodes = input([], ...(ngDevMode ? [{ debugName: "nodes" }] : /* istanbul ignore next */ []));
5112
+ /** Checkboxes and an array value instead of a single id. */
5113
+ multiple = input(false, ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
5114
+ /**
5115
+ * With `multiple`, checking a parent checks every leaf under it, and the value
5116
+ * holds leaf ids only. With `false`, each node is checked on its own.
5117
+ */
5118
+ cascade = input(true, ...(ngDevMode ? [{ debugName: "cascade" }] : /* istanbul ignore next */ []));
5119
+ /** In single mode, parents can be picked too. By default a click on them expands. */
5120
+ selectableParents = input(false, ...(ngDevMode ? [{ debugName: "selectableParents" }] : /* istanbul ignore next */ []));
5121
+ /** Adds a box that filters the tree by label, keeping the ancestors of matches. */
5122
+ searchable = input(false, ...(ngDevMode ? [{ debugName: "searchable" }] : /* istanbul ignore next */ []));
5123
+ placeholder = input(undefined, ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
5124
+ label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
5125
+ hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
5126
+ errorMessage = input('', ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
5127
+ /** Set by Signal Forms `[formField]`. Its errors show once the field is touched. */
5128
+ errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
5129
+ touched = input(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
5130
+ size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
5131
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
5132
+ // ── State ────────────────────────────────────────────────────
5133
+ value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
5134
+ /** Ids of the expanded parents. */
5135
+ expanded = model([], ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
5136
+ id = `ngx-tree-select-${nextId$3++}`;
5137
+ panelId = `${this.id}-panel`;
5138
+ messageId = `${this.id}-message`;
5139
+ icons = { ChevronDown, ChevronRight, Check, Minus, X };
5140
+ #open = signal(false, ...(ngDevMode ? [{ debugName: "#open" }] : /* istanbul ignore next */ []));
5141
+ #search = signal('', ...(ngDevMode ? [{ debugName: "#search" }] : /* istanbul ignore next */ []));
5142
+ #cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#cvaDisabled" }] : /* istanbul ignore next */ []));
5143
+ #active = signal(null, ...(ngDevMode ? [{ debugName: "#active" }] : /* istanbul ignore next */ []));
5144
+ search = this.#search.asReadonly();
5145
+ activeId = this.#active.asReadonly();
5146
+ triggerRef = viewChild('trigger', ...(ngDevMode ? [{ debugName: "triggerRef" }] : /* istanbul ignore next */ []));
5147
+ isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
5148
+ /** Disabling the control while it is open hides the panel. */
5149
+ isOpen = computed(() => this.#open() && !this.isDisabled(), ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
5150
+ #index = computed(() => {
5151
+ const byId = new Map();
5152
+ const parentOf = new Map();
5153
+ const leavesOf = new Map();
5154
+ const walk = (node, parent) => {
5155
+ byId.set(node.id, node);
5156
+ parentOf.set(node.id, parent);
5157
+ const leaves = node.children?.length
5158
+ ? node.children.flatMap((child) => walk(child, node.id))
5159
+ : [node];
5160
+ leavesOf.set(node.id, leaves);
5161
+ return leaves;
5162
+ };
5163
+ for (const node of this.nodes())
5164
+ walk(node, null);
5165
+ return { byId, parentOf, leavesOf };
5166
+ }, ...(ngDevMode ? [{ debugName: "#index" }] : /* istanbul ignore next */ []));
5167
+ selectedIds = computed(() => {
5168
+ const v = this.value();
5169
+ if (v === null || v === undefined)
5170
+ return [];
5171
+ return Array.isArray(v) ? v : [v];
5172
+ }, ...(ngDevMode ? [{ debugName: "selectedIds" }] : /* istanbul ignore next */ []));
5173
+ #selectedSet = computed(() => new Set(this.selectedIds()), ...(ngDevMode ? [{ debugName: "#selectedSet" }] : /* istanbul ignore next */ []));
5174
+ /** Selected nodes, in value order. Unknown ids are skipped. */
5175
+ selectedNodes = computed(() => {
5176
+ const { byId } = this.#index();
5177
+ return this.selectedIds()
5178
+ .map((id) => byId.get(id))
5179
+ .filter((n) => !!n);
5180
+ }, ...(ngDevMode ? [{ debugName: "selectedNodes" }] : /* istanbul ignore next */ []));
5181
+ /** The visible rows: expanded branches, or the matches and their ancestors while searching. */
5182
+ rows = computed(() => {
5183
+ const query = this.#search().trim().toLowerCase();
5184
+ const expanded = new Set(this.expanded());
5185
+ const matches = (n) => n.label.toLowerCase().includes(query);
5186
+ const subtreeMatch = new Map();
5187
+ const hasMatch = (n) => {
5188
+ let hit = subtreeMatch.get(n.id);
5189
+ if (hit === undefined) {
5190
+ hit = matches(n) || !!n.children?.some(hasMatch);
5191
+ subtreeMatch.set(n.id, hit);
5192
+ }
5193
+ return hit;
5194
+ };
5195
+ const out = [];
5196
+ const walk = (list, level, parentId, showAll) => {
5197
+ const visible = query && !showAll ? list.filter(hasMatch) : list;
5198
+ visible.forEach((node, i) => {
5199
+ const hasChildren = !!node.children?.length;
5200
+ const descendantMatch = !!query && hasChildren && !!node.children.some((c) => hasMatch(c));
5201
+ const isExpanded = hasChildren && (expanded.has(node.id) || descendantMatch);
5202
+ out.push({
5203
+ node,
5204
+ level,
5205
+ parentId,
5206
+ hasChildren,
5207
+ expanded: isExpanded,
5208
+ posinset: i + 1,
5209
+ setsize: visible.length,
5210
+ });
5211
+ if (isExpanded) {
5212
+ walk(node.children, level + 1, node.id, showAll || (!!query && matches(node)));
5213
+ }
5214
+ });
5215
+ };
5216
+ walk(this.nodes(), 1, null, false);
5217
+ return out;
5218
+ }, ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
5219
+ /** The row that takes Tab focus: the active one, else the first selected, else the first. */
5220
+ focusableId = computed(() => {
5221
+ const rows = this.rows();
5222
+ const active = this.#active();
5223
+ if (active !== null && rows.some((r) => r.node.id === active))
5224
+ return active;
5225
+ const selected = this.#selectedSet();
5226
+ return (rows.find((r) => selected.has(r.node.id)) ?? rows[0])?.node.id ?? null;
5227
+ }, ...(ngDevMode ? [{ debugName: "focusableId" }] : /* istanbul ignore next */ []));
5228
+ hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
5229
+ errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
5230
+ triggerClasses = computed(() => {
5231
+ const cls = ['ts__trigger', `ts__trigger--${this.size()}`];
5232
+ if (this.isOpen())
5233
+ cls.push('ts__trigger--open');
5234
+ else if (this.hasError())
5235
+ cls.push('ts__trigger--error');
5236
+ if (this.isDisabled())
5237
+ cls.push('ts__trigger--disabled');
5238
+ return cls.join(' ');
5239
+ }, ...(ngDevMode ? [{ debugName: "triggerClasses" }] : /* istanbul ignore next */ []));
5240
+ constructor() {
5241
+ setupEscapeClose(() => {
5242
+ if (this.#open())
5243
+ this.close(true);
5244
+ });
5245
+ setupClickOutside(() => {
5246
+ if (this.#open())
5247
+ this.close(false);
5248
+ });
5249
+ }
5250
+ // ── Row state ────────────────────────────────────────────────
5251
+ checkState(node) {
5252
+ const selected = this.#selectedSet();
5253
+ if (!this.multiple() || !this.cascade() || !node.children?.length) {
5254
+ return selected.has(node.id) ? 'checked' : 'unchecked';
5255
+ }
5256
+ const leaves = this.#index().leavesOf.get(node.id) ?? [];
5257
+ const count = leaves.filter((l) => selected.has(l.id)).length;
5258
+ if (count === 0)
5259
+ return 'unchecked';
5260
+ return count === leaves.length ? 'checked' : 'mixed';
5261
+ }
5262
+ /** `aria-checked` in multiple mode. */
5263
+ ariaChecked(node) {
5264
+ const state = this.checkState(node);
5265
+ return state === 'checked' ? 'true' : state === 'mixed' ? 'mixed' : 'false';
5266
+ }
5267
+ rowDomId(index) {
5268
+ return `${this.id}-row-${index}`;
5269
+ }
5270
+ // ── Open / close ─────────────────────────────────────────────
5271
+ toggleOpen() {
5272
+ if (this.#open())
5273
+ this.close(false);
5274
+ else
5275
+ this.open();
5276
+ }
5277
+ open(focusTree = false) {
5278
+ if (this.isDisabled() || this.#open())
5279
+ return;
5280
+ this.#revealSelected();
5281
+ this.#active.set(null);
5282
+ this.#open.set(true);
5283
+ if (focusTree)
5284
+ this.#focusActiveAfterRender();
5285
+ }
5286
+ close(focusTrigger) {
5287
+ this.#open.set(false);
5288
+ this.#search.set('');
5289
+ this.#active.set(null);
5290
+ if (focusTrigger)
5291
+ this.triggerRef()?.nativeElement.focus();
5292
+ }
5293
+ /** Expands the ancestors of the selected nodes so they are visible on open. */
5294
+ #revealSelected() {
5295
+ const { parentOf } = this.#index();
5296
+ const next = new Set(this.expanded());
5297
+ const before = next.size;
5298
+ for (const id of this.selectedIds()) {
5299
+ let parent = parentOf.get(id) ?? null;
5300
+ while (parent !== null) {
5301
+ next.add(parent);
5302
+ parent = parentOf.get(parent) ?? null;
5303
+ }
5304
+ }
5305
+ if (next.size !== before)
5306
+ this.expanded.set([...next]);
5307
+ }
5308
+ // ── Actions ──────────────────────────────────────────────────
5309
+ toggleExpand(node, force) {
5310
+ if (!node.children?.length)
5311
+ return;
5312
+ const current = this.expanded();
5313
+ const isExpanded = current.includes(node.id);
5314
+ const next = force ?? !isExpanded;
5315
+ if (next === isExpanded)
5316
+ return;
5317
+ this.expanded.set(next ? [...current, node.id] : current.filter((id) => id !== node.id));
5318
+ }
5319
+ /** Click or Enter / Space on a row. */
5320
+ activate(row) {
5321
+ const { node } = row;
5322
+ this.#active.set(node.id);
5323
+ if (this.multiple()) {
5324
+ this.toggleCheck(node);
5325
+ }
5326
+ else if (row.hasChildren && !this.selectableParents()) {
5327
+ this.toggleExpand(node);
5328
+ }
5329
+ else {
5330
+ this.select(node);
5331
+ }
5332
+ }
5333
+ select(node) {
5334
+ if (node.disabled)
5335
+ return;
5336
+ this.#commit(node.id);
5337
+ this.close(true);
5338
+ }
5339
+ toggleCheck(node) {
5340
+ if (node.disabled)
5341
+ return;
5342
+ const selected = new Set(this.selectedIds());
5343
+ if (this.cascade() && node.children?.length) {
5344
+ const leaves = (this.#index().leavesOf.get(node.id) ?? []).filter((l) => !l.disabled);
5345
+ const allOn = leaves.every((l) => selected.has(l.id));
5346
+ for (const leaf of leaves) {
5347
+ if (allOn)
5348
+ selected.delete(leaf.id);
5349
+ else
5350
+ selected.add(leaf.id);
5351
+ }
5352
+ }
5353
+ else if (selected.has(node.id)) {
5354
+ selected.delete(node.id);
5355
+ }
5356
+ else {
5357
+ selected.add(node.id);
5358
+ }
5359
+ this.#commit([...selected]);
5360
+ }
5361
+ remove(id, event) {
5362
+ event.stopPropagation();
5363
+ this.#commit(this.selectedIds().filter((v) => v !== id));
5364
+ }
5365
+ #commit(next) {
5366
+ this.value.set(next);
5367
+ this.onChange(next);
5368
+ this.onTouched();
5369
+ }
5370
+ onSearch(event) {
5371
+ this.#search.set(event.target.value);
5372
+ this.#active.set(null);
5373
+ }
5374
+ // ── Keyboard ─────────────────────────────────────────────────
5375
+ onTriggerKeydown(event) {
5376
+ // Ignore keys from nested controls (chip remove buttons).
5377
+ if (event.target !== event.currentTarget)
5378
+ return;
5379
+ if (event.key === 'ArrowDown' || (isActivationKey(event) && !this.#open())) {
5380
+ event.preventDefault();
5381
+ if (this.#open())
5382
+ this.#focusActiveAfterRender();
5383
+ else
5384
+ this.open(true);
5385
+ }
5386
+ else if (isActivationKey(event)) {
5387
+ event.preventDefault();
5388
+ this.close(false);
5389
+ }
5390
+ }
5391
+ onSearchKeydown(event) {
5392
+ if (event.key !== 'ArrowDown')
5393
+ return;
5394
+ event.preventDefault();
5395
+ this.#focusActiveAfterRender();
5396
+ }
5397
+ onRowKeydown(event, row, index) {
5398
+ const rows = this.rows();
5399
+ let target = null;
5400
+ switch (event.key) {
5401
+ case 'ArrowDown':
5402
+ target = Math.min(index + 1, rows.length - 1);
5403
+ break;
5404
+ case 'ArrowUp':
5405
+ target = Math.max(index - 1, 0);
5406
+ break;
5407
+ case 'Home':
5408
+ target = 0;
5409
+ break;
5410
+ case 'End':
5411
+ target = rows.length - 1;
5412
+ break;
5413
+ case 'ArrowRight':
5414
+ if (row.hasChildren && !row.expanded)
5415
+ this.toggleExpand(row.node, true);
5416
+ else if (row.expanded)
5417
+ target = index + 1;
5418
+ break;
5419
+ case 'ArrowLeft':
5420
+ if (row.expanded && !this.#search().trim())
5421
+ this.toggleExpand(row.node, false);
5422
+ else if (row.parentId !== null)
5423
+ target = rows.findIndex((r) => r.node.id === row.parentId);
5424
+ break;
5425
+ case 'Enter':
5426
+ case ' ':
5427
+ this.activate(row);
5428
+ break;
5429
+ case 'Tab':
5430
+ this.close(false);
5431
+ return;
5432
+ default:
5433
+ return;
5434
+ }
5435
+ event.preventDefault();
5436
+ if (target !== null && rows[target]) {
5437
+ this.#active.set(rows[target].node.id);
5438
+ this.#focusActiveAfterRender();
5439
+ }
5440
+ }
5441
+ #focusActiveAfterRender() {
5442
+ afterNextRender(() => {
5443
+ const id = this.focusableId();
5444
+ const index = this.rows().findIndex((r) => r.node.id === id);
5445
+ if (index >= 0)
5446
+ document.getElementById(this.rowDomId(index))?.focus();
5447
+ }, { injector: this.#injector });
5448
+ }
5449
+ // ── CVA ──────────────────────────────────────────────────────
5450
+ onChange = () => { };
5451
+ onTouched = () => { };
5452
+ writeValue(v) {
5453
+ this.value.set(v ?? (this.multiple() ? [] : null));
5454
+ }
5455
+ registerOnChange(fn) {
5456
+ this.onChange = fn;
5457
+ }
5458
+ registerOnTouched(fn) {
5459
+ this.onTouched = fn;
5460
+ }
5461
+ setDisabledState(disabled) {
5462
+ this.#cvaDisabled.set(disabled);
5463
+ }
5464
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TreeSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5465
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TreeSelectComponent, isStandalone: true, selector: "ngx-ds-tree-select", inputs: { nodes: { classPropertyName: "nodes", publicName: "nodes", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, cascade: { classPropertyName: "cascade", publicName: "cascade", isSignal: true, isRequired: false, transformFunction: null }, selectableParents: { classPropertyName: "selectableParents", publicName: "selectableParents", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, errors: { classPropertyName: "errors", publicName: "errors", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", expanded: "expandedChange" }, providers: [
5466
+ {
5467
+ provide: NG_VALUE_ACCESSOR,
5468
+ useExisting: forwardRef(() => TreeSelectComponent),
5469
+ multi: true,
5470
+ },
5471
+ ], viewQueries: [{ propertyName: "triggerRef", first: true, predicate: ["trigger"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (label()) {\n <label class=\"ts__label\" [id]=\"id + '-label'\" [for]=\"id\">{{ label() }}</label>\n}\n\n<div class=\"ts\">\n <!-- Trigger -->\n <div\n #trigger\n [class]=\"triggerClasses()\"\n [id]=\"id\"\n role=\"combobox\"\n aria-haspopup=\"tree\"\n [attr.aria-labelledby]=\"label() ? id + '-label' : null\"\n [attr.aria-label]=\"label() ? null : (placeholder() ?? i18n.selectPlaceholder)\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId : null\"\n [attr.aria-disabled]=\"isDisabled() || null\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"errorText() || hint() ? messageId : null\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n (click)=\"toggleOpen()\"\n (keydown)=\"onTriggerKeydown($event)\"\n >\n <div class=\"ts__value\">\n @if (selectedNodes().length === 0) {\n <span class=\"ts__placeholder\">{{ placeholder() ?? i18n.selectPlaceholder }}</span>\n } @else if (multiple()) {\n @for (node of selectedNodes(); track node.id) {\n <span class=\"ts__chip\">\n {{ node.label }}\n @if (!isDisabled()) {\n <button\n type=\"button\"\n class=\"ts__chip-remove\"\n [attr.aria-label]=\"i18n.removeChip(node.label)\"\n (click)=\"remove(node.id, $event)\"\n >\n <ngx-ds-icon [icon]=\"icons.X\" [size]=\"12\" />\n </button>\n }\n </span>\n }\n } @else {\n <span class=\"ts__single\">{{ selectedNodes()[0].label }}</span>\n }\n </div>\n <ngx-ds-icon\n [icon]=\"icons.ChevronDown\"\n [size]=\"16\"\n class=\"ts__arrow\"\n [class.ts__arrow--open]=\"isOpen()\"\n />\n </div>\n\n <!-- Panel -->\n @if (isOpen()) {\n <div class=\"ts__dropdown\">\n @if (searchable()) {\n <div class=\"ts__search-wrap\">\n <input\n class=\"ts__search\"\n type=\"text\"\n [placeholder]=\"i18n.searchPlaceholder\"\n [attr.aria-label]=\"i18n.search\"\n [value]=\"search()\"\n (input)=\"onSearch($event)\"\n (keydown)=\"onSearchKeydown($event)\"\n />\n </div>\n }\n\n <div\n class=\"ts__tree\"\n role=\"tree\"\n [id]=\"panelId\"\n [attr.aria-label]=\"label() || placeholder() || i18n.selectPlaceholder\"\n [attr.aria-multiselectable]=\"multiple() || null\"\n >\n @for (row of rows(); track row.node.id; let i = $index) {\n @let state = checkState(row.node);\n <div\n class=\"ts__row\"\n role=\"treeitem\"\n [id]=\"rowDomId(i)\"\n [class.ts__row--selected]=\"!multiple() && state === 'checked'\"\n [class.ts__row--disabled]=\"row.node.disabled\"\n [style.padding-left.rem]=\"0.5 + (row.level - 1) * 1.25\"\n [attr.aria-level]=\"row.level\"\n [attr.aria-setsize]=\"row.setsize\"\n [attr.aria-posinset]=\"row.posinset\"\n [attr.aria-expanded]=\"row.hasChildren ? row.expanded : null\"\n [attr.aria-selected]=\"multiple() ? null : state === 'checked'\"\n [attr.aria-checked]=\"multiple() ? ariaChecked(row.node) : null\"\n [attr.aria-disabled]=\"row.node.disabled || null\"\n [attr.tabindex]=\"focusableId() === row.node.id ? 0 : -1\"\n (click)=\"activate(row)\"\n (keydown)=\"onRowKeydown($event, row, i)\"\n >\n <span\n class=\"ts__toggle\"\n [class.ts__toggle--expanded]=\"row.expanded\"\n [class.ts__toggle--hidden]=\"!row.hasChildren\"\n aria-hidden=\"true\"\n (click)=\"$event.stopPropagation(); toggleExpand(row.node)\"\n >\n <ngx-ds-icon [icon]=\"icons.ChevronRight\" [size]=\"14\" />\n </span>\n\n @if (multiple()) {\n <span\n class=\"ts__check\"\n [class.ts__check--on]=\"state !== 'unchecked'\"\n aria-hidden=\"true\"\n >\n @if (state === 'checked') {\n <ngx-ds-icon [icon]=\"icons.Check\" [size]=\"12\" />\n } @else if (state === 'mixed') {\n <ngx-ds-icon [icon]=\"icons.Minus\" [size]=\"12\" />\n }\n </span>\n }\n\n <span class=\"ts__row-label\">{{ row.node.label }}</span>\n\n @if (!multiple() && state === 'checked') {\n <ngx-ds-icon class=\"ts__row-mark\" [icon]=\"icons.Check\" [size]=\"14\" />\n }\n </div>\n } @empty {\n <div class=\"ts__empty\">{{ i18n.noResults }}</div>\n }\n </div>\n </div>\n }\n</div>\n\n@if (errorText()) {\n <p [id]=\"messageId\" role=\"alert\" class=\"ts__error\">{{ errorText() }}</p>\n} @else if (hint()) {\n <p [id]=\"messageId\" class=\"ts__hint\">{{ hint() }}</p>\n}\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.ts__label{display:block;margin-bottom:.375rem;font-size:.875rem;font-weight:500;color:var(--text-base, #111827)}.ts{position:relative}.ts__trigger{display:flex;align-items:center;gap:.5rem;border:1px solid var(--border-input, #d1d5db);border-radius:.5rem;background:var(--surface-base, #ffffff);color:var(--text-base, #111827);cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}.ts__trigger--sm{padding:.25rem .625rem;font-size:.8125rem;min-height:2rem}.ts__trigger--md{padding:.375rem .75rem;font-size:.875rem;min-height:2.5rem}.ts__trigger--lg{padding:.5rem 1rem;font-size:1rem;min-height:3rem}.ts__trigger--open,.ts__trigger:focus{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px var(--primary-100, #e0e7ff);outline:none}.ts__trigger--error{border-color:var(--danger-600, #dc2626)}.ts__trigger--disabled{cursor:not-allowed;opacity:.6;background:var(--surface-subtle, #f9fafb)}.ts__value{flex:1;display:flex;flex-wrap:wrap;gap:.25rem;min-width:0}.ts__placeholder{color:var(--text-placeholder, #6b7280)}.ts__single{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ts__chip{display:inline-flex;align-items:center;gap:.25rem;background:var(--primary-100, #e0e7ff);color:var(--primary-700, #4338ca);border-radius:.25rem;font-size:.75rem;font-weight:500;padding:.125rem .375rem}.ts__chip-remove{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;margin:-.25rem -.375rem -.25rem -.125rem;border-radius:.25rem;background:none;border:none;padding:0;cursor:pointer;color:inherit;opacity:.7;line-height:1}.ts__chip-remove:hover{opacity:1}.ts__arrow{flex-shrink:0;color:var(--text-placeholder, #6b7280);transition:transform .2s ease}.ts__arrow--open{transform:rotate(180deg)}.ts__dropdown{position:absolute;top:calc(100% + .25rem);left:0;right:0;background:var(--surface-base, #ffffff);border:1px solid var(--border-base, #e5e7eb);border-radius:.5rem;box-shadow:0 4px 16px #0000001a;z-index:1000;overflow:hidden}.ts__search-wrap{padding:.5rem;border-bottom:1px solid var(--border-base, #e5e7eb)}.ts__search{width:100%;border:1px solid var(--border-input, #d1d5db);border-radius:.375rem;padding:.375rem .5rem;font-family:inherit;font-size:.8125rem;outline:none;background:var(--surface-subtle, #f9fafb);color:var(--text-base, #111827);box-sizing:border-box}.ts__search:focus{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 2px var(--primary-100, #e0e7ff)}.ts__tree{padding:.25rem;max-height:16rem;overflow-y:auto}.ts__row{display:flex;align-items:center;gap:.375rem;padding-top:.375rem;padding-bottom:.375rem;padding-right:.625rem;border-radius:.375rem;cursor:pointer;font-size:.875rem;color:var(--text-base, #111827);transition:background .1s ease}.ts__row:hover:not(.ts__row--disabled){background:var(--surface-hover, #f3f4f6)}.ts__row:focus-visible{outline:2px solid var(--primary-500, #6366f1);outline-offset:-2px}.ts__row--selected{background:var(--primary-50, #eef2ff);color:var(--primary-700, #4338ca)}.ts__row--disabled{opacity:.45;cursor:not-allowed}.ts__toggle{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;flex-shrink:0;border-radius:.25rem;color:var(--text-muted, #6b7280);transition:transform .15s ease}.ts__toggle:hover{background:var(--surface-active, #e5e7eb)}.ts__toggle--expanded{transform:rotate(90deg)}.ts__toggle--hidden{visibility:hidden}.ts__check{display:inline-flex;align-items:center;justify-content:center;width:1rem;height:1rem;flex-shrink:0;border:1.5px solid var(--border-input, #d1d5db);border-radius:.25rem;background:var(--surface-base, #ffffff);color:var(--text-on-color, #ffffff)}.ts__check--on{border-color:var(--fill-primary, #4f46e5);background:var(--fill-primary, #4f46e5)}.ts__row-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ts__row-mark{flex-shrink:0}.ts__empty{padding:.75rem;text-align:center;font-size:.8125rem;color:var(--text-placeholder, #6b7280)}.ts__hint{margin:.375rem 0 0;font-size:.8125rem;color:var(--text-muted, #6b7280)}.ts__error{margin:.375rem 0 0;font-size:.8125rem;color:var(--danger-600, #dc2626)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5472
+ }
5473
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TreeSelectComponent, decorators: [{
5474
+ type: Component,
5475
+ args: [{ selector: 'ngx-ds-tree-select', standalone: true, imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
5476
+ {
5477
+ provide: NG_VALUE_ACCESSOR,
5478
+ useExisting: forwardRef(() => TreeSelectComponent),
5479
+ multi: true,
5480
+ },
5481
+ ], template: "@if (label()) {\n <label class=\"ts__label\" [id]=\"id + '-label'\" [for]=\"id\">{{ label() }}</label>\n}\n\n<div class=\"ts\">\n <!-- Trigger -->\n <div\n #trigger\n [class]=\"triggerClasses()\"\n [id]=\"id\"\n role=\"combobox\"\n aria-haspopup=\"tree\"\n [attr.aria-labelledby]=\"label() ? id + '-label' : null\"\n [attr.aria-label]=\"label() ? null : (placeholder() ?? i18n.selectPlaceholder)\"\n [attr.aria-expanded]=\"isOpen()\"\n [attr.aria-controls]=\"isOpen() ? panelId : null\"\n [attr.aria-disabled]=\"isDisabled() || null\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"errorText() || hint() ? messageId : null\"\n [attr.tabindex]=\"isDisabled() ? -1 : 0\"\n (click)=\"toggleOpen()\"\n (keydown)=\"onTriggerKeydown($event)\"\n >\n <div class=\"ts__value\">\n @if (selectedNodes().length === 0) {\n <span class=\"ts__placeholder\">{{ placeholder() ?? i18n.selectPlaceholder }}</span>\n } @else if (multiple()) {\n @for (node of selectedNodes(); track node.id) {\n <span class=\"ts__chip\">\n {{ node.label }}\n @if (!isDisabled()) {\n <button\n type=\"button\"\n class=\"ts__chip-remove\"\n [attr.aria-label]=\"i18n.removeChip(node.label)\"\n (click)=\"remove(node.id, $event)\"\n >\n <ngx-ds-icon [icon]=\"icons.X\" [size]=\"12\" />\n </button>\n }\n </span>\n }\n } @else {\n <span class=\"ts__single\">{{ selectedNodes()[0].label }}</span>\n }\n </div>\n <ngx-ds-icon\n [icon]=\"icons.ChevronDown\"\n [size]=\"16\"\n class=\"ts__arrow\"\n [class.ts__arrow--open]=\"isOpen()\"\n />\n </div>\n\n <!-- Panel -->\n @if (isOpen()) {\n <div class=\"ts__dropdown\">\n @if (searchable()) {\n <div class=\"ts__search-wrap\">\n <input\n class=\"ts__search\"\n type=\"text\"\n [placeholder]=\"i18n.searchPlaceholder\"\n [attr.aria-label]=\"i18n.search\"\n [value]=\"search()\"\n (input)=\"onSearch($event)\"\n (keydown)=\"onSearchKeydown($event)\"\n />\n </div>\n }\n\n <div\n class=\"ts__tree\"\n role=\"tree\"\n [id]=\"panelId\"\n [attr.aria-label]=\"label() || placeholder() || i18n.selectPlaceholder\"\n [attr.aria-multiselectable]=\"multiple() || null\"\n >\n @for (row of rows(); track row.node.id; let i = $index) {\n @let state = checkState(row.node);\n <div\n class=\"ts__row\"\n role=\"treeitem\"\n [id]=\"rowDomId(i)\"\n [class.ts__row--selected]=\"!multiple() && state === 'checked'\"\n [class.ts__row--disabled]=\"row.node.disabled\"\n [style.padding-left.rem]=\"0.5 + (row.level - 1) * 1.25\"\n [attr.aria-level]=\"row.level\"\n [attr.aria-setsize]=\"row.setsize\"\n [attr.aria-posinset]=\"row.posinset\"\n [attr.aria-expanded]=\"row.hasChildren ? row.expanded : null\"\n [attr.aria-selected]=\"multiple() ? null : state === 'checked'\"\n [attr.aria-checked]=\"multiple() ? ariaChecked(row.node) : null\"\n [attr.aria-disabled]=\"row.node.disabled || null\"\n [attr.tabindex]=\"focusableId() === row.node.id ? 0 : -1\"\n (click)=\"activate(row)\"\n (keydown)=\"onRowKeydown($event, row, i)\"\n >\n <span\n class=\"ts__toggle\"\n [class.ts__toggle--expanded]=\"row.expanded\"\n [class.ts__toggle--hidden]=\"!row.hasChildren\"\n aria-hidden=\"true\"\n (click)=\"$event.stopPropagation(); toggleExpand(row.node)\"\n >\n <ngx-ds-icon [icon]=\"icons.ChevronRight\" [size]=\"14\" />\n </span>\n\n @if (multiple()) {\n <span\n class=\"ts__check\"\n [class.ts__check--on]=\"state !== 'unchecked'\"\n aria-hidden=\"true\"\n >\n @if (state === 'checked') {\n <ngx-ds-icon [icon]=\"icons.Check\" [size]=\"12\" />\n } @else if (state === 'mixed') {\n <ngx-ds-icon [icon]=\"icons.Minus\" [size]=\"12\" />\n }\n </span>\n }\n\n <span class=\"ts__row-label\">{{ row.node.label }}</span>\n\n @if (!multiple() && state === 'checked') {\n <ngx-ds-icon class=\"ts__row-mark\" [icon]=\"icons.Check\" [size]=\"14\" />\n }\n </div>\n } @empty {\n <div class=\"ts__empty\">{{ i18n.noResults }}</div>\n }\n </div>\n </div>\n }\n</div>\n\n@if (errorText()) {\n <p [id]=\"messageId\" role=\"alert\" class=\"ts__error\">{{ errorText() }}</p>\n} @else if (hint()) {\n <p [id]=\"messageId\" class=\"ts__hint\">{{ hint() }}</p>\n}\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.ts__label{display:block;margin-bottom:.375rem;font-size:.875rem;font-weight:500;color:var(--text-base, #111827)}.ts{position:relative}.ts__trigger{display:flex;align-items:center;gap:.5rem;border:1px solid var(--border-input, #d1d5db);border-radius:.5rem;background:var(--surface-base, #ffffff);color:var(--text-base, #111827);cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}.ts__trigger--sm{padding:.25rem .625rem;font-size:.8125rem;min-height:2rem}.ts__trigger--md{padding:.375rem .75rem;font-size:.875rem;min-height:2.5rem}.ts__trigger--lg{padding:.5rem 1rem;font-size:1rem;min-height:3rem}.ts__trigger--open,.ts__trigger:focus{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px var(--primary-100, #e0e7ff);outline:none}.ts__trigger--error{border-color:var(--danger-600, #dc2626)}.ts__trigger--disabled{cursor:not-allowed;opacity:.6;background:var(--surface-subtle, #f9fafb)}.ts__value{flex:1;display:flex;flex-wrap:wrap;gap:.25rem;min-width:0}.ts__placeholder{color:var(--text-placeholder, #6b7280)}.ts__single{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ts__chip{display:inline-flex;align-items:center;gap:.25rem;background:var(--primary-100, #e0e7ff);color:var(--primary-700, #4338ca);border-radius:.25rem;font-size:.75rem;font-weight:500;padding:.125rem .375rem}.ts__chip-remove{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;margin:-.25rem -.375rem -.25rem -.125rem;border-radius:.25rem;background:none;border:none;padding:0;cursor:pointer;color:inherit;opacity:.7;line-height:1}.ts__chip-remove:hover{opacity:1}.ts__arrow{flex-shrink:0;color:var(--text-placeholder, #6b7280);transition:transform .2s ease}.ts__arrow--open{transform:rotate(180deg)}.ts__dropdown{position:absolute;top:calc(100% + .25rem);left:0;right:0;background:var(--surface-base, #ffffff);border:1px solid var(--border-base, #e5e7eb);border-radius:.5rem;box-shadow:0 4px 16px #0000001a;z-index:1000;overflow:hidden}.ts__search-wrap{padding:.5rem;border-bottom:1px solid var(--border-base, #e5e7eb)}.ts__search{width:100%;border:1px solid var(--border-input, #d1d5db);border-radius:.375rem;padding:.375rem .5rem;font-family:inherit;font-size:.8125rem;outline:none;background:var(--surface-subtle, #f9fafb);color:var(--text-base, #111827);box-sizing:border-box}.ts__search:focus{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 2px var(--primary-100, #e0e7ff)}.ts__tree{padding:.25rem;max-height:16rem;overflow-y:auto}.ts__row{display:flex;align-items:center;gap:.375rem;padding-top:.375rem;padding-bottom:.375rem;padding-right:.625rem;border-radius:.375rem;cursor:pointer;font-size:.875rem;color:var(--text-base, #111827);transition:background .1s ease}.ts__row:hover:not(.ts__row--disabled){background:var(--surface-hover, #f3f4f6)}.ts__row:focus-visible{outline:2px solid var(--primary-500, #6366f1);outline-offset:-2px}.ts__row--selected{background:var(--primary-50, #eef2ff);color:var(--primary-700, #4338ca)}.ts__row--disabled{opacity:.45;cursor:not-allowed}.ts__toggle{display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;flex-shrink:0;border-radius:.25rem;color:var(--text-muted, #6b7280);transition:transform .15s ease}.ts__toggle:hover{background:var(--surface-active, #e5e7eb)}.ts__toggle--expanded{transform:rotate(90deg)}.ts__toggle--hidden{visibility:hidden}.ts__check{display:inline-flex;align-items:center;justify-content:center;width:1rem;height:1rem;flex-shrink:0;border:1.5px solid var(--border-input, #d1d5db);border-radius:.25rem;background:var(--surface-base, #ffffff);color:var(--text-on-color, #ffffff)}.ts__check--on{border-color:var(--fill-primary, #4f46e5);background:var(--fill-primary, #4f46e5)}.ts__row-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ts__row-mark{flex-shrink:0}.ts__empty{padding:.75rem;text-align:center;font-size:.8125rem;color:var(--text-placeholder, #6b7280)}.ts__hint{margin:.375rem 0 0;font-size:.8125rem;color:var(--text-muted, #6b7280)}.ts__error{margin:.375rem 0 0;font-size:.8125rem;color:var(--danger-600, #dc2626)}\n"] }]
5482
+ }], ctorParameters: () => [], propDecorators: { nodes: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodes", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], cascade: [{ type: i0.Input, args: [{ isSignal: true, alias: "cascade", required: false }] }], selectableParents: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectableParents", required: false }] }], searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }, { type: i0.Output, args: ["expandedChange"] }], triggerRef: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }] } });
5483
+
4759
5484
  class PaginationComponent {
4760
5485
  i18n = inject(NGX_DS_LABELS);
4761
5486
  totalPages = input.required(...(ngDevMode ? [{ debugName: "totalPages" }] : /* istanbul ignore next */ []));
@@ -6640,5 +7365,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
6640
7365
  * Generated bundle index. Do not edit.
6641
7366
  */
6642
7367
 
6643
- export { ACCORDION_CONTROLLER, AccordionComponent, AccordionItemComponent, AlertComponent, AutocompleteComponent, AvatarComponent, AvatarGroupComponent, BadgeComponent, BreadcrumbComponent, ButtonComponent, ButtonGroupComponent, CalendarComponent, CardComponent, CarouselComponent, CheckboxComponent, ChipGroupComponent, ColorPickerComponent, CommandPaletteComponent, ConfirmationComponent, ConfirmationService, ContextMenuComponent, DateRangePickerComponent, DatepickerComponent, DividerComponent, DrawerComponent, DropdownComponent, EmptyStateComponent, FileUploadComponent, FocusTrapDirective, FormFieldComponent, IconButtonComponent, IconComponent, InputComponent, KbdComponent, LightboxComponent, MenuButtonComponent, MenuComponent, ModalComponent, MultiSelectComponent, NGX_DS_LABELS, NGX_DS_LABELS_EN, NGX_DS_LABELS_ES, NGX_DS_LOCALE, NotificationCenterComponent, NotificationItemComponent, NumberInputComponent, OtpInputComponent, PaginationComponent, PasswordStrengthComponent, PopoverComponent, ProgressBarComponent, RadioComponent, RangeSliderComponent, RatingComponent, SearchInputComponent, SegmentedControlComponent, SelectComponent, SidebarComponent, SkeletonComponent, SpinnerComponent, SplitterComponent, StepComponent, StepperComponent, SwitchComponent, TabComponent, TabContentDirective, TableComponent, TabsComponent, TagComponent, TagInputComponent, TextareaComponent, TimePickerComponent, TimelineComponent, TimelineItemComponent, ToastComponent, ToastrService, TooltipDirective, TreeNodeComponent, TreeViewComponent, UserMenuComponent, formatDayLabel, monthNames, parseTime, provideNgxDs, provideNgxDsLabels, provideNgxDsLocale, stepIndex, weekdayNames };
7368
+ export { ACCORDION_CONTROLLER, AccordionComponent, AccordionItemComponent, AlertComponent, AutocompleteComponent, AvatarComponent, AvatarGroupComponent, BadgeComponent, BreadcrumbComponent, ButtonComponent, ButtonGroupComponent, CalendarComponent, CardComponent, CarouselComponent, CheckboxComponent, ChipGroupComponent, ColorPickerComponent, CommandPaletteComponent, ConfirmationComponent, ConfirmationService, ContextMenuComponent, DateRangePickerComponent, DatepickerComponent, DividerComponent, DrawerComponent, DropdownComponent, EmptyStateComponent, FileUploadComponent, FocusTrapDirective, FormFieldComponent, IconButtonComponent, IconComponent, InlineEditComponent, InputComponent, KbdComponent, LightboxComponent, MenuButtonComponent, MenuComponent, ModalComponent, MultiSelectComponent, NGX_DS_LABELS, NGX_DS_LABELS_EN, NGX_DS_LABELS_ES, NGX_DS_LOCALE, NotificationCenterComponent, NotificationItemComponent, NumberInputComponent, OtpInputComponent, PRIMARY_STEPS, PaginationComponent, PasswordStrengthComponent, PopoverComponent, ProgressBarComponent, RadioComponent, RangeSliderComponent, RatingComponent, SearchInputComponent, SegmentedControlComponent, SelectComponent, SidebarComponent, SkeletonComponent, SpinnerComponent, SplitterComponent, StepComponent, StepperComponent, SwitchComponent, TabComponent, TabContentDirective, TableComponent, TabsComponent, TagComponent, TagInputComponent, TextareaComponent, TimePickerComponent, TimelineComponent, TimelineItemComponent, ToastComponent, ToastrService, TooltipDirective, TreeNodeComponent, TreeSelectComponent, TreeViewComponent, UserMenuComponent, applyPrimaryColor, contrastRatio, createPrimaryPalette, formatDayLabel, monthNames, parseHex, parseTime, primaryPaletteCss, provideNgxDs, provideNgxDsLabels, provideNgxDsLocale, stepIndex, weekdayNames };
6644
7369
  //# sourceMappingURL=jdpo2008-ngx-ds.mjs.map