@jdpo2008/ngx-ds 1.0.0-rc.1 → 1.1.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.
|
@@ -2,8 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
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, Pencil, Columns3, MoreVertical, ArrowUpDown, ArrowDown, ArrowUp, Inbox, CheckCircle, Bell, BellOff, PanelLeftOpen, PanelLeftClose, Play, Pause } from 'lucide-angular';
|
|
6
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
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, TrendingUp, TrendingDown, Copy, Columns3, MoreVertical, ArrowUpDown, ArrowDown, ArrowUp, Inbox, CheckCircle, Bell, BellOff, PanelLeftOpen, PanelLeftClose, Play, Pause, Menu } from 'lucide-angular';
|
|
6
|
+
import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
|
|
7
7
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
8
8
|
|
|
9
9
|
class ToastrService {
|
|
@@ -100,6 +100,8 @@ const NGX_DS_LABELS_ES = {
|
|
|
100
100
|
removeFile: 'Eliminar archivo',
|
|
101
101
|
fileTooLarge: (mb) => `Supera el máximo de ${mb} MB`,
|
|
102
102
|
closeAlert: 'Cerrar alerta',
|
|
103
|
+
copy: (label) => `Copiar ${label}`,
|
|
104
|
+
copied: 'Copiado',
|
|
103
105
|
passwordRequirements: 'Requisitos de contraseña',
|
|
104
106
|
passwordStrength: 'Fortaleza',
|
|
105
107
|
strengthWeak: 'Débil',
|
|
@@ -140,6 +142,8 @@ const NGX_DS_LABELS_ES = {
|
|
|
140
142
|
mainNavigation: 'Navegación principal',
|
|
141
143
|
expandMenu: 'Expandir menú',
|
|
142
144
|
collapseMenu: 'Colapsar menú',
|
|
145
|
+
openMenu: 'Abrir menú',
|
|
146
|
+
closeMenu: 'Cerrar menú',
|
|
143
147
|
commandPalette: 'Paleta de comandos',
|
|
144
148
|
commandPlaceholder: 'Buscar comandos...',
|
|
145
149
|
noResultsFor: (q) => `Sin resultados para "${q}"`,
|
|
@@ -175,6 +179,9 @@ const NGX_DS_LABELS_ES = {
|
|
|
175
179
|
playAutoplay: 'Reanudar la reproducción automática',
|
|
176
180
|
lightbox: 'Visor de imágenes',
|
|
177
181
|
resizePanels: 'Redimensionar paneles',
|
|
182
|
+
increase: 'Aumento',
|
|
183
|
+
decrease: 'Descenso',
|
|
184
|
+
noChange: 'Sin cambios',
|
|
178
185
|
};
|
|
179
186
|
const NGX_DS_LABELS_EN = {
|
|
180
187
|
close: 'Close',
|
|
@@ -217,6 +224,8 @@ const NGX_DS_LABELS_EN = {
|
|
|
217
224
|
removeFile: 'Remove file',
|
|
218
225
|
fileTooLarge: (mb) => `Exceeds the ${mb} MB limit`,
|
|
219
226
|
closeAlert: 'Close alert',
|
|
227
|
+
copy: (label) => `Copy ${label}`,
|
|
228
|
+
copied: 'Copied',
|
|
220
229
|
passwordRequirements: 'Password requirements',
|
|
221
230
|
passwordStrength: 'Strength',
|
|
222
231
|
strengthWeak: 'Weak',
|
|
@@ -257,6 +266,8 @@ const NGX_DS_LABELS_EN = {
|
|
|
257
266
|
mainNavigation: 'Main navigation',
|
|
258
267
|
expandMenu: 'Expand menu',
|
|
259
268
|
collapseMenu: 'Collapse menu',
|
|
269
|
+
openMenu: 'Open menu',
|
|
270
|
+
closeMenu: 'Close menu',
|
|
260
271
|
commandPalette: 'Command palette',
|
|
261
272
|
commandPlaceholder: 'Search commands...',
|
|
262
273
|
noResultsFor: (q) => `No results for "${q}"`,
|
|
@@ -292,6 +303,9 @@ const NGX_DS_LABELS_EN = {
|
|
|
292
303
|
playAutoplay: 'Resume autoplay',
|
|
293
304
|
lightbox: 'Image viewer',
|
|
294
305
|
resizePanels: 'Resize panels',
|
|
306
|
+
increase: 'Increase',
|
|
307
|
+
decrease: 'Decrease',
|
|
308
|
+
noChange: 'No change',
|
|
295
309
|
};
|
|
296
310
|
const NGX_DS_LABELS = new InjectionToken('NGX_DS_LABELS', {
|
|
297
311
|
providedIn: 'root',
|
|
@@ -703,7 +717,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
703
717
|
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)}.spinner--info{border-color:var(--info-500, #3b82f6)}@keyframes ngx-spin{to{transform:rotate(360deg)}}\n"] }]
|
|
704
718
|
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
|
|
705
719
|
|
|
706
|
-
const ICON_SIZE$
|
|
720
|
+
const ICON_SIZE$g = { sm: 14, md: 16, lg: 20 };
|
|
707
721
|
const SPINNER_SIZE = { sm: 'xs', md: 'sm', lg: 'md' };
|
|
708
722
|
class ButtonComponent {
|
|
709
723
|
variant = input('solid', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
@@ -730,7 +744,7 @@ class ButtonComponent {
|
|
|
730
744
|
classes.push('btn--loading');
|
|
731
745
|
return classes.join(' ');
|
|
732
746
|
}, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
733
|
-
iconSize = computed(() => ICON_SIZE$
|
|
747
|
+
iconSize = computed(() => ICON_SIZE$g[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
734
748
|
spinnerSize = computed(() => SPINNER_SIZE[this.size()], ...(ngDevMode ? [{ debugName: "spinnerSize" }] : /* istanbul ignore next */ []));
|
|
735
749
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
736
750
|
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)}.btn--info.btn--solid{background-color:var(--fill-info, #2563eb);border-color:var(--fill-info, #2563eb);color:var(--text-on-color, #fff)}.btn--info.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--info.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--info.btn--outline{background-color:transparent;border-color:var(--fill-info, #2563eb);color:var(--fill-info, #2563eb)}.btn--info.btn--outline:hover:not(:disabled){background-color:var(--fill-info, #2563eb);color:var(--text-on-color, #fff)}.btn--info.btn--outline:active:not(:disabled){background-color:var(--fill-info, #2563eb);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 });
|
|
@@ -740,7 +754,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
740
754
|
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)}.btn--info.btn--solid{background-color:var(--fill-info, #2563eb);border-color:var(--fill-info, #2563eb);color:var(--text-on-color, #fff)}.btn--info.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--info.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--info.btn--outline{background-color:transparent;border-color:var(--fill-info, #2563eb);color:var(--fill-info, #2563eb)}.btn--info.btn--outline:hover:not(:disabled){background-color:var(--fill-info, #2563eb);color:var(--text-on-color, #fff)}.btn--info.btn--outline:active:not(:disabled){background-color:var(--fill-info, #2563eb);filter:brightness(.88);color:var(--text-on-color, #fff)}\n"] }]
|
|
741
755
|
}], 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 }] }] } });
|
|
742
756
|
|
|
743
|
-
const ICON_SIZE$
|
|
757
|
+
const ICON_SIZE$f = { sm: 14, md: 18, lg: 22 };
|
|
744
758
|
class IconButtonComponent {
|
|
745
759
|
icon = input.required(...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
746
760
|
ariaLabel = input.required(...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
@@ -764,7 +778,7 @@ class IconButtonComponent {
|
|
|
764
778
|
classes.push('icon-btn--borderless');
|
|
765
779
|
return classes.join(' ');
|
|
766
780
|
}, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
767
|
-
iconSize = computed(() => ICON_SIZE$
|
|
781
|
+
iconSize = computed(() => ICON_SIZE$f[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
768
782
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: IconButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
769
783
|
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--info.icon-btn--solid{background-color:var(--info-500, #3b82f6);border-color:var(--info-500, #3b82f6);color:var(--text-on-color, #fff)}.icon-btn--info.icon-btn--solid:hover:not(:disabled){filter:brightness(.88)}.icon-btn--info.icon-btn--solid:active:not(:disabled){filter:brightness(.78)}.icon-btn--info.icon-btn--outline{background-color:transparent;border-color:var(--info-500, #3b82f6);color:var(--info-500, #3b82f6)}.icon-btn--info.icon-btn--outline:hover:not(:disabled){background-color:var(--info-500, #3b82f6);color:var(--text-on-color, #fff)}.icon-btn--info.icon-btn--outline:active:not(:disabled){background-color:var(--info-500, #3b82f6);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 });
|
|
770
784
|
}
|
|
@@ -838,7 +852,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
838
852
|
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)}.badge--info.badge--solid{background-color:var(--fill-info, #2563eb);color:var(--text-on-color, #fff);border-color:var(--fill-info, #2563eb)}.badge--info.badge--soft{background-color:var(--info-50, #eff6ff);color:var(--info-700, #1d4ed8);border-color:transparent}.badge--info.badge--outline{background-color:transparent;color:var(--fill-info, #2563eb);border-color:var(--fill-info, #2563eb)}.badge--info.badge--dot{background-color:var(--fill-info, #2563eb);border-color:var(--fill-info, #2563eb)}\n"] }]
|
|
839
853
|
}], 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 }] }] } });
|
|
840
854
|
|
|
841
|
-
const ICON_SIZE$
|
|
855
|
+
const ICON_SIZE$e = { sm: 12, md: 14, lg: 16 };
|
|
842
856
|
class TagComponent {
|
|
843
857
|
i18n = inject(NGX_DS_LABELS);
|
|
844
858
|
label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
@@ -862,7 +876,7 @@ class TagComponent {
|
|
|
862
876
|
classes.push('tag--rounded');
|
|
863
877
|
return classes.join(' ');
|
|
864
878
|
}, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
865
|
-
iconSize = computed(() => ICON_SIZE$
|
|
879
|
+
iconSize = computed(() => ICON_SIZE$e[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
866
880
|
onDismiss() {
|
|
867
881
|
this.dismissed.emit();
|
|
868
882
|
}
|
|
@@ -920,7 +934,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
920
934
|
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)}.progress--info .progress__bar{background-color:var(--info-500, #3b82f6)}\n"] }]
|
|
921
935
|
}], 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 }] }] } });
|
|
922
936
|
|
|
923
|
-
const ICON_SIZE$
|
|
937
|
+
const ICON_SIZE$d = { sm: 14, md: 16, lg: 18 };
|
|
924
938
|
class MenuButtonComponent {
|
|
925
939
|
iconLeft = input(undefined, ...(ngDevMode ? [{ debugName: "iconLeft" }] : /* istanbul ignore next */ []));
|
|
926
940
|
iconRight = input(undefined, ...(ngDevMode ? [{ debugName: "iconRight" }] : /* istanbul ignore next */ []));
|
|
@@ -935,7 +949,7 @@ class MenuButtonComponent {
|
|
|
935
949
|
classes.push('menu-btn--full');
|
|
936
950
|
return classes.join(' ');
|
|
937
951
|
}, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
938
|
-
iconSize = computed(() => ICON_SIZE$
|
|
952
|
+
iconSize = computed(() => ICON_SIZE$d[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
939
953
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: MenuButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
940
954
|
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--info{color:var(--fill-info, #2563eb)}.menu-btn--info:hover:not(:disabled){background:var(--info-50, #eff6ff)}.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 });
|
|
941
955
|
}
|
|
@@ -1118,7 +1132,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
1118
1132
|
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"] }]
|
|
1119
1133
|
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
1120
1134
|
|
|
1121
|
-
let nextId$
|
|
1135
|
+
let nextId$n = 0;
|
|
1122
1136
|
class CheckboxComponent {
|
|
1123
1137
|
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
1124
1138
|
/** Accessible name when there is no visible `label`. */
|
|
@@ -1128,7 +1142,7 @@ class CheckboxComponent {
|
|
|
1128
1142
|
indeterminate = input(false, ...(ngDevMode ? [{ debugName: "indeterminate" }] : /* istanbul ignore next */ []));
|
|
1129
1143
|
labelPosition = input('right', ...(ngDevMode ? [{ debugName: "labelPosition" }] : /* istanbul ignore next */ []));
|
|
1130
1144
|
checked = model(false, ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
|
|
1131
|
-
id = `ngx-checkbox-${nextId$
|
|
1145
|
+
id = `ngx-checkbox-${nextId$n++}`;
|
|
1132
1146
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
1133
1147
|
#cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#cvaDisabled" }] : /* istanbul ignore next */ []));
|
|
1134
1148
|
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
@@ -1182,7 +1196,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
1182
1196
|
], 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)}.checkbox--info{--ngx-checkbox-color: var(--info-500, #3b82f6)}\n"] }]
|
|
1183
1197
|
}], 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"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
|
|
1184
1198
|
|
|
1185
|
-
let nextId$
|
|
1199
|
+
let nextId$m = 0;
|
|
1186
1200
|
class RadioComponent {
|
|
1187
1201
|
value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1188
1202
|
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
@@ -1198,7 +1212,7 @@ class RadioComponent {
|
|
|
1198
1212
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
1199
1213
|
/** Emits this radio's `value` when the user selects it. */
|
|
1200
1214
|
valueSelect = output();
|
|
1201
|
-
id = `ngx-radio-${nextId$
|
|
1215
|
+
id = `ngx-radio-${nextId$m++}`;
|
|
1202
1216
|
#modelValue = signal(null, ...(ngDevMode ? [{ debugName: "#modelValue" }] : /* istanbul ignore next */ []));
|
|
1203
1217
|
#formDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#formDisabled" }] : /* istanbul ignore next */ []));
|
|
1204
1218
|
isDisabled = computed(() => this.disabled() || this.#formDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
@@ -1254,7 +1268,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
1254
1268
|
], 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)}.radio--info{--ngx-radio-color: var(--info-500, #3b82f6)}\n"] }]
|
|
1255
1269
|
}], 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"] }] } });
|
|
1256
1270
|
|
|
1257
|
-
let nextId$
|
|
1271
|
+
let nextId$l = 0;
|
|
1258
1272
|
class SwitchComponent {
|
|
1259
1273
|
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
1260
1274
|
/** Accessible name when there is no visible `label`. */
|
|
@@ -1265,7 +1279,7 @@ class SwitchComponent {
|
|
|
1265
1279
|
labelOn = input('', ...(ngDevMode ? [{ debugName: "labelOn" }] : /* istanbul ignore next */ []));
|
|
1266
1280
|
labelOff = input('', ...(ngDevMode ? [{ debugName: "labelOff" }] : /* istanbul ignore next */ []));
|
|
1267
1281
|
checked = model(false, ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
|
|
1268
|
-
id = `ngx-switch-${nextId$
|
|
1282
|
+
id = `ngx-switch-${nextId$l++}`;
|
|
1269
1283
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
1270
1284
|
#cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#cvaDisabled" }] : /* istanbul ignore next */ []));
|
|
1271
1285
|
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
@@ -1337,8 +1351,8 @@ function fieldErrorText(explicit, errors, touched) {
|
|
|
1337
1351
|
return errors.find((e) => e.message)?.message ?? '';
|
|
1338
1352
|
}
|
|
1339
1353
|
|
|
1340
|
-
const ICON_SIZE$
|
|
1341
|
-
let nextId$
|
|
1354
|
+
const ICON_SIZE$c = { sm: 14, md: 16, lg: 18 };
|
|
1355
|
+
let nextId$k = 0;
|
|
1342
1356
|
class InputComponent {
|
|
1343
1357
|
i18n = inject(NGX_DS_LABELS);
|
|
1344
1358
|
// ── Configuration ────────────────────────────────────────────
|
|
@@ -1357,7 +1371,7 @@ class InputComponent {
|
|
|
1357
1371
|
readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []));
|
|
1358
1372
|
// ── Value — two-way bindable (signal forms) ──────────────────
|
|
1359
1373
|
value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1360
|
-
id = `ngx-input-${nextId$
|
|
1374
|
+
id = `ngx-input-${nextId$k++}`;
|
|
1361
1375
|
messageId = `${this.id}-message`;
|
|
1362
1376
|
// ── Internal state ───────────────────────────────────────────
|
|
1363
1377
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
@@ -1372,7 +1386,7 @@ class InputComponent {
|
|
|
1372
1386
|
isFloating = computed(() => this.#focused() || this.value().length > 0, ...(ngDevMode ? [{ debugName: "isFloating" }] : /* istanbul ignore next */ []));
|
|
1373
1387
|
hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
1374
1388
|
errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
1375
|
-
iconSize = computed(() => ICON_SIZE$
|
|
1389
|
+
iconSize = computed(() => ICON_SIZE$c[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
1376
1390
|
// In floating mode the placeholder only appears once the label has floated up
|
|
1377
1391
|
effectivePlaceholder = computed(() => this.floatingLabel() && this.label() && !this.isFloating() ? '' : this.placeholder(), ...(ngDevMode ? [{ debugName: "effectivePlaceholder" }] : /* istanbul ignore next */ []));
|
|
1378
1392
|
fieldClasses = computed(() => {
|
|
@@ -1451,7 +1465,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
1451
1465
|
], 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"] }]
|
|
1452
1466
|
}], 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"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
|
|
1453
1467
|
|
|
1454
|
-
let nextId$
|
|
1468
|
+
let nextId$j = 0;
|
|
1455
1469
|
class TextareaComponent {
|
|
1456
1470
|
// ── Configuration ────────────────────────────────────────────
|
|
1457
1471
|
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
@@ -1470,7 +1484,7 @@ class TextareaComponent {
|
|
|
1470
1484
|
showCount = input(false, ...(ngDevMode ? [{ debugName: "showCount" }] : /* istanbul ignore next */ []));
|
|
1471
1485
|
// ── Value ─────────────────────────────────────────────────────
|
|
1472
1486
|
value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1473
|
-
id = `ngx-textarea-${nextId$
|
|
1487
|
+
id = `ngx-textarea-${nextId$j++}`;
|
|
1474
1488
|
messageId = `${this.id}-message`;
|
|
1475
1489
|
// ── Internal state ────────────────────────────────────────────
|
|
1476
1490
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
@@ -1629,8 +1643,8 @@ function moveOptionFocus(event) {
|
|
|
1629
1643
|
return true;
|
|
1630
1644
|
}
|
|
1631
1645
|
|
|
1632
|
-
const ICON_SIZE$
|
|
1633
|
-
let nextId$
|
|
1646
|
+
const ICON_SIZE$b = { sm: 14, md: 16, lg: 18 };
|
|
1647
|
+
let nextId$i = 0;
|
|
1634
1648
|
class SelectComponent {
|
|
1635
1649
|
i18n = inject(NGX_DS_LABELS);
|
|
1636
1650
|
// ── Configuration ──────────────────────────────────────────
|
|
@@ -1648,7 +1662,7 @@ class SelectComponent {
|
|
|
1648
1662
|
touched = input(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
|
|
1649
1663
|
// ── Value ─────────────────────────────────────────────────
|
|
1650
1664
|
value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1651
|
-
id = `ngx-select-${nextId$
|
|
1665
|
+
id = `ngx-select-${nextId$i++}`;
|
|
1652
1666
|
messageId = `${this.id}-message`;
|
|
1653
1667
|
// ── Icons ──────────────────────────────────────────────────
|
|
1654
1668
|
ChevronDown = ChevronDown;
|
|
@@ -1665,7 +1679,7 @@ class SelectComponent {
|
|
|
1665
1679
|
isOpen = this.#open.asReadonly();
|
|
1666
1680
|
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
1667
1681
|
searchText = this.#search.asReadonly();
|
|
1668
|
-
iconSize = computed(() => ICON_SIZE$
|
|
1682
|
+
iconSize = computed(() => ICON_SIZE$b[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
1669
1683
|
hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
1670
1684
|
errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
1671
1685
|
// ── Derived ────────────────────────────────────────────────
|
|
@@ -1870,8 +1884,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
1870
1884
|
], 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"] }]
|
|
1871
1885
|
}], 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"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], triggerRef: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }] } });
|
|
1872
1886
|
|
|
1873
|
-
const ICON_SIZE$
|
|
1874
|
-
let nextId$
|
|
1887
|
+
const ICON_SIZE$a = { sm: 14, md: 16, lg: 18 };
|
|
1888
|
+
let nextId$h = 0;
|
|
1875
1889
|
class DropdownComponent {
|
|
1876
1890
|
i18n = inject(NGX_DS_LABELS);
|
|
1877
1891
|
// ── Configuration ──────────────────────────────────────────
|
|
@@ -1887,7 +1901,7 @@ class DropdownComponent {
|
|
|
1887
1901
|
touched = input(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
|
|
1888
1902
|
// ── Value ─────────────────────────────────────────────────
|
|
1889
1903
|
value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1890
|
-
id = `ngx-dropdown-${nextId$
|
|
1904
|
+
id = `ngx-dropdown-${nextId$h++}`;
|
|
1891
1905
|
messageId = `${this.id}-message`;
|
|
1892
1906
|
// ── Icons ──────────────────────────────────────────────────
|
|
1893
1907
|
ChevronDown = ChevronDown;
|
|
@@ -1901,7 +1915,7 @@ class DropdownComponent {
|
|
|
1901
1915
|
#focused = signal(false, ...(ngDevMode ? [{ debugName: "#focused" }] : /* istanbul ignore next */ []));
|
|
1902
1916
|
isOpen = this.#open.asReadonly();
|
|
1903
1917
|
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
1904
|
-
iconSize = computed(() => ICON_SIZE$
|
|
1918
|
+
iconSize = computed(() => ICON_SIZE$a[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
1905
1919
|
hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
1906
1920
|
errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
1907
1921
|
hasValue = computed(() => this.value() !== null && this.value() !== undefined, ...(ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []));
|
|
@@ -2043,8 +2057,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
2043
2057
|
], 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"] }]
|
|
2044
2058
|
}], 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"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], triggerRef: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }] } });
|
|
2045
2059
|
|
|
2046
|
-
const ICON_SIZE$
|
|
2047
|
-
let nextId$
|
|
2060
|
+
const ICON_SIZE$9 = { sm: 14, md: 16, lg: 18 };
|
|
2061
|
+
let nextId$g = 0;
|
|
2048
2062
|
class AutocompleteComponent {
|
|
2049
2063
|
i18n = inject(NGX_DS_LABELS);
|
|
2050
2064
|
sanitizer = inject(DomSanitizer);
|
|
@@ -2076,7 +2090,7 @@ class AutocompleteComponent {
|
|
|
2076
2090
|
// ── Outputs ──────────────────────────────────────────────
|
|
2077
2091
|
/** Emits the current search string (debounced) — use for async data loading */
|
|
2078
2092
|
searchChange = output();
|
|
2079
|
-
id = `ngx-autocomplete-${nextId$
|
|
2093
|
+
id = `ngx-autocomplete-${nextId$g++}`;
|
|
2080
2094
|
messageId = `${this.id}-message`;
|
|
2081
2095
|
// ── Icons ────────────────────────────────────────────────
|
|
2082
2096
|
SearchIcon = Search;
|
|
@@ -2094,7 +2108,7 @@ class AutocompleteComponent {
|
|
|
2094
2108
|
searchTimer = null;
|
|
2095
2109
|
inputEl = null;
|
|
2096
2110
|
// ── Derived ──────────────────────────────────────────────
|
|
2097
|
-
iconSize = computed(() => ICON_SIZE$
|
|
2111
|
+
iconSize = computed(() => ICON_SIZE$9[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
2098
2112
|
hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
2099
2113
|
errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
2100
2114
|
hasValue = computed(() => this.value() !== null && this.value() !== undefined, ...(ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []));
|
|
@@ -2348,8 +2362,8 @@ function moveFocusDate(date, event, firstDayOfWeek = 1) {
|
|
|
2348
2362
|
}
|
|
2349
2363
|
}
|
|
2350
2364
|
|
|
2351
|
-
const ICON_SIZE$
|
|
2352
|
-
let nextId$
|
|
2365
|
+
const ICON_SIZE$8 = { sm: 14, md: 16, lg: 18 };
|
|
2366
|
+
let nextId$f = 0;
|
|
2353
2367
|
class DatepickerComponent {
|
|
2354
2368
|
i18n = inject(NGX_DS_LABELS);
|
|
2355
2369
|
// ── Configuration ─────────────────────────────────────────
|
|
@@ -2370,7 +2384,7 @@ class DatepickerComponent {
|
|
|
2370
2384
|
showToday = input(true, ...(ngDevMode ? [{ debugName: "showToday" }] : /* istanbul ignore next */ []));
|
|
2371
2385
|
// ── Value ────────────────────────────────────────────────
|
|
2372
2386
|
value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
2373
|
-
id = `ngx-datepicker-${nextId$
|
|
2387
|
+
id = `ngx-datepicker-${nextId$f++}`;
|
|
2374
2388
|
messageId = `${this.id}-message`;
|
|
2375
2389
|
// ── Icons ────────────────────────────────────────────────
|
|
2376
2390
|
CalendarIcon = Calendar;
|
|
@@ -2394,7 +2408,7 @@ class DatepickerComponent {
|
|
|
2394
2408
|
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
2395
2409
|
isFocused = this.#focused.asReadonly();
|
|
2396
2410
|
// ── Derived ───────────────────────────────────────────────
|
|
2397
|
-
iconSize = computed(() => ICON_SIZE$
|
|
2411
|
+
iconSize = computed(() => ICON_SIZE$8[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
2398
2412
|
hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
2399
2413
|
errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
2400
2414
|
hasValue = computed(() => this.value() !== null, ...(ngDevMode ? [{ debugName: "hasValue" }] : /* istanbul ignore next */ []));
|
|
@@ -2873,7 +2887,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
2873
2887
|
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 \u00B7 {{ file.error }}\n }\n @if (stateFor(file)?.status === 'error' && stateFor(file)?.error) {\n \u00B7 {{ 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"] }]
|
|
2874
2888
|
}], 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"] }] } });
|
|
2875
2889
|
|
|
2876
|
-
const ICON_SIZE$
|
|
2890
|
+
const ICON_SIZE$7 = { sm: 14, md: 16, lg: 18 };
|
|
2877
2891
|
class SearchInputComponent {
|
|
2878
2892
|
i18n = inject(NGX_DS_LABELS);
|
|
2879
2893
|
value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
@@ -2889,7 +2903,7 @@ class SearchInputComponent {
|
|
|
2889
2903
|
focused = signal(false, ...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
|
|
2890
2904
|
searchIcon = Search;
|
|
2891
2905
|
clearIcon = X;
|
|
2892
|
-
iconSize = computed(() => ICON_SIZE$
|
|
2906
|
+
iconSize = computed(() => ICON_SIZE$7[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
2893
2907
|
showClear = computed(() => this.clearable() && this.value().length > 0 && !this.disabled() && !this.loading(), ...(ngDevMode ? [{ debugName: "showClear" }] : /* istanbul ignore next */ []));
|
|
2894
2908
|
wrapperClasses = computed(() => {
|
|
2895
2909
|
const b = 'search-input';
|
|
@@ -2922,7 +2936,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
2922
2936
|
args: [{ selector: 'ngx-ds-search-input', standalone: true, imports: [IconComponent, SpinnerComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"wrapperClasses()\">\n <span class=\"search-input__icon\">\n @if (loading()) {\n <ngx-ds-spinner size=\"xs\" />\n } @else {\n <ngx-ds-icon [icon]=\"searchIcon\" [size]=\"iconSize()\" />\n }\n </span>\n\n <input\n class=\"search-input__native\"\n type=\"search\"\n [placeholder]=\"placeholder() ?? i18n.searchPlaceholder\"\n [attr.aria-label]=\"ariaLabel() ?? i18n.search\"\n [disabled]=\"disabled() || null\"\n [value]=\"value()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeydown($event)\"\n (focus)=\"focused.set(true)\"\n (blur)=\"focused.set(false)\"\n />\n\n @if (showClear()) {\n <button\n class=\"search-input__clear\"\n type=\"button\"\n [attr.aria-label]=\"i18n.clear\"\n (click)=\"clear()\"\n >\n <ngx-ds-icon [icon]=\"clearIcon\" [size]=\"iconSize()\" />\n </button>\n }\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.search-input{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;transition:border-color .15s ease,box-shadow .15s ease}.search-input--focused{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f61f}.search-input--disabled{background:var(--surface-subtle, #f9fafb);opacity:.6;cursor:not-allowed}.search-input--sm{padding:.375rem .625rem;font-size:.8125rem}.search-input--md{padding:.5rem .75rem;font-size:.875rem}.search-input--lg{padding:.625rem 1rem;font-size:1rem}.search-input__icon{display:inline-flex;align-items:center;flex-shrink:0;color:var(--text-placeholder, #6b7280)}.search-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}.search-input__native::placeholder{color:var(--text-placeholder, #6b7280)}.search-input__native:disabled{cursor:not-allowed;color:var(--text-muted, #6b7280)}.search-input__native::-webkit-search-cancel-button,.search-input__native::-webkit-search-decoration{-webkit-appearance:none;appearance:none}.search-input__clear{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}.search-input__clear:hover{color:var(--text-muted, #6b7280)}\n"] }]
|
|
2923
2937
|
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], searchSubmit: [{ type: i0.Output, args: ["searchSubmit"] }], cleared: [{ type: i0.Output, args: ["cleared"] }] } });
|
|
2924
2938
|
|
|
2925
|
-
let nextId$
|
|
2939
|
+
let nextId$e = 0;
|
|
2926
2940
|
const BOX_DIM = { sm: '2rem', md: '2.75rem', lg: '3.25rem' };
|
|
2927
2941
|
const BOX_FS = { sm: '0.875rem', md: '1rem', lg: '1.25rem' };
|
|
2928
2942
|
class OtpInputComponent {
|
|
@@ -2939,7 +2953,7 @@ class OtpInputComponent {
|
|
|
2939
2953
|
touched = input(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
|
|
2940
2954
|
hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
2941
2955
|
errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
2942
|
-
messageId = `ngx-otp-${nextId$
|
|
2956
|
+
messageId = `ngx-otp-${nextId$e++}-message`;
|
|
2943
2957
|
value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
2944
2958
|
complete = output();
|
|
2945
2959
|
#formDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#formDisabled" }] : /* istanbul ignore next */ []));
|
|
@@ -3084,9 +3098,9 @@ const TRACK_COLORS = {
|
|
|
3084
3098
|
danger: 'var(--danger-500, #ef4444)',
|
|
3085
3099
|
info: 'var(--info-500, #3b82f6)',
|
|
3086
3100
|
};
|
|
3087
|
-
let nextId$
|
|
3101
|
+
let nextId$d = 0;
|
|
3088
3102
|
class RangeSliderComponent {
|
|
3089
|
-
id = `ngx-range-slider-${nextId$
|
|
3103
|
+
id = `ngx-range-slider-${nextId$d++}`;
|
|
3090
3104
|
i18n = inject(NGX_DS_LABELS);
|
|
3091
3105
|
value = model(0, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
3092
3106
|
// `undefined` is accepted so Signal Forms can bind the field's min/max.
|
|
@@ -3235,7 +3249,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
3235
3249
|
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"] }]
|
|
3236
3250
|
}], 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 }] }] } });
|
|
3237
3251
|
|
|
3238
|
-
const ICON_SIZE$
|
|
3252
|
+
const ICON_SIZE$6 = { sm: 12, md: 14, lg: 16 };
|
|
3239
3253
|
class BreadcrumbComponent {
|
|
3240
3254
|
i18n = inject(NGX_DS_LABELS);
|
|
3241
3255
|
items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
@@ -3246,7 +3260,7 @@ class BreadcrumbComponent {
|
|
|
3246
3260
|
separatorIsIcon = computed(() => typeof this.separator() !== 'string', ...(ngDevMode ? [{ debugName: "separatorIsIcon" }] : /* istanbul ignore next */ []));
|
|
3247
3261
|
separatorIcon = computed(() => typeof this.separator() === 'string' ? null : this.separator(), ...(ngDevMode ? [{ debugName: "separatorIcon" }] : /* istanbul ignore next */ []));
|
|
3248
3262
|
separatorChar = computed(() => typeof this.separator() === 'string' ? this.separator() : '', ...(ngDevMode ? [{ debugName: "separatorChar" }] : /* istanbul ignore next */ []));
|
|
3249
|
-
iconSize = computed(() => ICON_SIZE$
|
|
3263
|
+
iconSize = computed(() => ICON_SIZE$6[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
3250
3264
|
visibleItems = computed(() => {
|
|
3251
3265
|
const all = this.items();
|
|
3252
3266
|
const max = this.maxItems();
|
|
@@ -3349,7 +3363,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
3349
3363
|
}], 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 }] }] } });
|
|
3350
3364
|
|
|
3351
3365
|
const ICON_SIZES = { sm: 14, md: 16, lg: 18 };
|
|
3352
|
-
let nextId$
|
|
3366
|
+
let nextId$c = 0;
|
|
3353
3367
|
class NumberInputComponent {
|
|
3354
3368
|
i18n = inject(NGX_DS_LABELS);
|
|
3355
3369
|
value = model(0, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
@@ -3371,7 +3385,7 @@ class NumberInputComponent {
|
|
|
3371
3385
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
3372
3386
|
#formDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#formDisabled" }] : /* istanbul ignore next */ []));
|
|
3373
3387
|
isDisabled = computed(() => this.disabled() || this.#formDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
3374
|
-
id = `ngx-number-${nextId$
|
|
3388
|
+
id = `ngx-number-${nextId$c++}`;
|
|
3375
3389
|
messageId = `${this.id}-message`;
|
|
3376
3390
|
PlusIcon = Plus;
|
|
3377
3391
|
MinusIcon = Minus;
|
|
@@ -3451,7 +3465,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
3451
3465
|
], 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"] }]
|
|
3452
3466
|
}], 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 }] }] } });
|
|
3453
3467
|
|
|
3454
|
-
let nextId$
|
|
3468
|
+
let nextId$b = 0;
|
|
3455
3469
|
class MultiSelectComponent {
|
|
3456
3470
|
i18n = inject(NGX_DS_LABELS);
|
|
3457
3471
|
options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
@@ -3467,7 +3481,7 @@ class MultiSelectComponent {
|
|
|
3467
3481
|
searchable = input(true, ...(ngDevMode ? [{ debugName: "searchable" }] : /* istanbul ignore next */ []));
|
|
3468
3482
|
maxSelected = input(null, ...(ngDevMode ? [{ debugName: "maxSelected" }] : /* istanbul ignore next */ []));
|
|
3469
3483
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
3470
|
-
id = `ngx-multi-${nextId$
|
|
3484
|
+
id = `ngx-multi-${nextId$b++}`;
|
|
3471
3485
|
messageId = `${this.id}-message`;
|
|
3472
3486
|
ChevronDownIcon = ChevronDown;
|
|
3473
3487
|
XIcon = X;
|
|
@@ -3774,7 +3788,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
3774
3788
|
], 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--solid .chip{background:var(--surface-active, #e5e7eb);color:var(--text-secondary, #374151);border:1px solid transparent}.chip-group--solid .chip:hover:not(.chip--disabled){background:var(--border-input, #d1d5db)}.chip-group--solid .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"] }]
|
|
3775
3789
|
}], 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 }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", 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"] }] } });
|
|
3776
3790
|
|
|
3777
|
-
let nextId$
|
|
3791
|
+
let nextId$a = 0;
|
|
3778
3792
|
class DateRangePickerComponent {
|
|
3779
3793
|
i18n = inject(NGX_DS_LABELS);
|
|
3780
3794
|
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
@@ -3792,7 +3806,7 @@ class DateRangePickerComponent {
|
|
|
3792
3806
|
isDisabled = computed(() => this.disabled() || this.#formDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
3793
3807
|
start = model(null, ...(ngDevMode ? [{ debugName: "start" }] : /* istanbul ignore next */ []));
|
|
3794
3808
|
end = model(null, ...(ngDevMode ? [{ debugName: "end" }] : /* istanbul ignore next */ []));
|
|
3795
|
-
id = `ngx-drp-${nextId$
|
|
3809
|
+
id = `ngx-drp-${nextId$a++}`;
|
|
3796
3810
|
messageId = `${this.id}-message`;
|
|
3797
3811
|
CalendarIcon = Calendar;
|
|
3798
3812
|
ChevronLeft = ChevronLeft;
|
|
@@ -4112,10 +4126,10 @@ function hslToHex(h, s, l) {
|
|
|
4112
4126
|
};
|
|
4113
4127
|
return `#${f(0)}${f(8)}${f(4)}`;
|
|
4114
4128
|
}
|
|
4115
|
-
let nextId$
|
|
4129
|
+
let nextId$9 = 0;
|
|
4116
4130
|
class ColorPickerComponent {
|
|
4117
4131
|
i18n = inject(NGX_DS_LABELS);
|
|
4118
|
-
id = `ngx-color-picker-${nextId$
|
|
4132
|
+
id = `ngx-color-picker-${nextId$9++}`;
|
|
4119
4133
|
value = model('#6366f1', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
4120
4134
|
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
4121
4135
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
@@ -4257,7 +4271,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
4257
4271
|
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"] }]
|
|
4258
4272
|
}], 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 }] }] } });
|
|
4259
4273
|
|
|
4260
|
-
const ICON_SIZE$
|
|
4274
|
+
const ICON_SIZE$5 = { sm: 14, md: 16, lg: 18 };
|
|
4261
4275
|
class MenuComponent {
|
|
4262
4276
|
items = input.required(...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
4263
4277
|
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
@@ -4269,7 +4283,7 @@ class MenuComponent {
|
|
|
4269
4283
|
activeIndex = signal(0, ...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
|
|
4270
4284
|
openSubmenu = signal(null, ...(ngDevMode ? [{ debugName: "openSubmenu" }] : /* istanbul ignore next */ []));
|
|
4271
4285
|
chevronRight = ChevronRight;
|
|
4272
|
-
iconSize = computed(() => ICON_SIZE$
|
|
4286
|
+
iconSize = computed(() => ICON_SIZE$5[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
4273
4287
|
constructor() {
|
|
4274
4288
|
afterNextRender(() => {
|
|
4275
4289
|
if (this.autofocus()) {
|
|
@@ -4363,7 +4377,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
4363
4377
|
}, 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"] }]
|
|
4364
4378
|
}], 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 }] }] } });
|
|
4365
4379
|
|
|
4366
|
-
let nextId$
|
|
4380
|
+
let nextId$8 = 0;
|
|
4367
4381
|
class FormFieldComponent {
|
|
4368
4382
|
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
4369
4383
|
hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
|
|
@@ -4371,7 +4385,7 @@ class FormFieldComponent {
|
|
|
4371
4385
|
required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
4372
4386
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
4373
4387
|
for = input(null, ...(ngDevMode ? [{ debugName: "for" }] : /* istanbul ignore next */ []));
|
|
4374
|
-
generatedId = `ngx-ff-${nextId$
|
|
4388
|
+
generatedId = `ngx-ff-${nextId$8++}`;
|
|
4375
4389
|
fieldId = computed(() => this.for() ?? this.generatedId, ...(ngDevMode ? [{ debugName: "fieldId" }] : /* istanbul ignore next */ []));
|
|
4376
4390
|
hintId = computed(() => `${this.fieldId()}-hint`, ...(ngDevMode ? [{ debugName: "hintId" }] : /* istanbul ignore next */ []));
|
|
4377
4391
|
errorId = computed(() => `${this.fieldId()}-error`, ...(ngDevMode ? [{ debugName: "errorId" }] : /* istanbul ignore next */ []));
|
|
@@ -4410,7 +4424,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
4410
4424
|
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 (errorText()) {\n <p [id]=\"errorId()\" class=\"ngx-ff__message ngx-ff__message--error\" role=\"alert\">\n {{ errorText() }}\n </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"] }]
|
|
4411
4425
|
}], ctorParameters: () => [], propDecorators: { 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 }] }], 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 }] }] } });
|
|
4412
4426
|
|
|
4413
|
-
const ICON_SIZE$
|
|
4427
|
+
const ICON_SIZE$4 = { sm: 14, md: 16, lg: 18 };
|
|
4414
4428
|
const LAST_MINUTE = 23 * 60 + 59;
|
|
4415
4429
|
const pad = (n) => String(n).padStart(2, '0');
|
|
4416
4430
|
/** Parses `HH:mm` into minutes since midnight, or `null` when it is not a valid time. */
|
|
@@ -4425,7 +4439,7 @@ function parseTime(value) {
|
|
|
4425
4439
|
function formatTime(total) {
|
|
4426
4440
|
return `${pad(Math.floor(total / 60))}:${pad(total % 60)}`;
|
|
4427
4441
|
}
|
|
4428
|
-
let nextId$
|
|
4442
|
+
let nextId$7 = 0;
|
|
4429
4443
|
/**
|
|
4430
4444
|
* Time field with an hour / minute (and AM/PM) panel.
|
|
4431
4445
|
* The value is a 24-hour `HH:mm` string, like a native `<input type="time">`.
|
|
@@ -4453,7 +4467,7 @@ class TimePickerComponent {
|
|
|
4453
4467
|
// ── Value ────────────────────────────────────────────────
|
|
4454
4468
|
/** Selected time as `HH:mm` (24-hour), or `null`. */
|
|
4455
4469
|
value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
4456
|
-
id = `ngx-time-picker-${nextId$
|
|
4470
|
+
id = `ngx-time-picker-${nextId$7++}`;
|
|
4457
4471
|
messageId = `${this.id}-message`;
|
|
4458
4472
|
ClockIcon = Clock;
|
|
4459
4473
|
XIcon = X;
|
|
@@ -4487,7 +4501,7 @@ class TimePickerComponent {
|
|
|
4487
4501
|
return values;
|
|
4488
4502
|
}, ...(ngDevMode ? [{ debugName: "#minuteValues" }] : /* istanbul ignore next */ []));
|
|
4489
4503
|
// ── Derived ───────────────────────────────────────────────
|
|
4490
|
-
iconSize = computed(() => ICON_SIZE$
|
|
4504
|
+
iconSize = computed(() => ICON_SIZE$4[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
4491
4505
|
is12h = computed(() => this.hourFormat() === '12', ...(ngDevMode ? [{ debugName: "is12h" }] : /* istanbul ignore next */ []));
|
|
4492
4506
|
hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
4493
4507
|
errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
@@ -4736,7 +4750,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
4736
4750
|
], 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"] }]
|
|
4737
4751
|
}], 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"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], triggerRef: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], panelRef: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }] } });
|
|
4738
4752
|
|
|
4739
|
-
let nextId$
|
|
4753
|
+
let nextId$6 = 0;
|
|
4740
4754
|
function escapeRegExp(text) {
|
|
4741
4755
|
return text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
4742
4756
|
}
|
|
@@ -4764,7 +4778,7 @@ class TagInputComponent {
|
|
|
4764
4778
|
value = model([], ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
4765
4779
|
added = output();
|
|
4766
4780
|
removed = output();
|
|
4767
|
-
id = `ngx-tag-input-${nextId$
|
|
4781
|
+
id = `ngx-tag-input-${nextId$6++}`;
|
|
4768
4782
|
messageId = `${this.id}-message`;
|
|
4769
4783
|
native = viewChild.required('native');
|
|
4770
4784
|
// ── Internal state ───────────────────────────────────────────
|
|
@@ -4940,7 +4954,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
4940
4954
|
], 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"] }]
|
|
4941
4955
|
}], 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 }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
|
|
4942
4956
|
|
|
4943
|
-
const ICON_SIZE$
|
|
4957
|
+
const ICON_SIZE$3 = { sm: 12, md: 14, lg: 16 };
|
|
4944
4958
|
/**
|
|
4945
4959
|
* Text that turns into a field on click. Enter (Ctrl/⌘+Enter when `multiline`) or
|
|
4946
4960
|
* blur saves, Escape restores the previous value.
|
|
@@ -4980,7 +4994,7 @@ class InlineEditComponent {
|
|
|
4980
4994
|
draft = this.#draft.asReadonly();
|
|
4981
4995
|
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
4982
4996
|
isEmpty = computed(() => this.value().trim() === '', ...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
|
|
4983
|
-
iconSize = computed(() => ICON_SIZE$
|
|
4997
|
+
iconSize = computed(() => ICON_SIZE$3[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
4984
4998
|
triggerLabel = computed(() => this.i18n.edit(this.label()), ...(ngDevMode ? [{ debugName: "triggerLabel" }] : /* istanbul ignore next */ []));
|
|
4985
4999
|
hostClasses = computed(() => [
|
|
4986
5000
|
'ie',
|
|
@@ -5113,7 +5127,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
5113
5127
|
], 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"] }]
|
|
5114
5128
|
}], 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 }] }] } });
|
|
5115
5129
|
|
|
5116
|
-
let nextId$
|
|
5130
|
+
let nextId$5 = 0;
|
|
5117
5131
|
/**
|
|
5118
5132
|
* A select whose options form a tree. Single mode picks one node; `multiple` adds
|
|
5119
5133
|
* checkboxes that, with `cascade`, check every leaf under a parent.
|
|
@@ -5149,7 +5163,7 @@ class TreeSelectComponent {
|
|
|
5149
5163
|
value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
5150
5164
|
/** Ids of the expanded parents. */
|
|
5151
5165
|
expanded = model([], ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
|
|
5152
|
-
id = `ngx-tree-select-${nextId$
|
|
5166
|
+
id = `ngx-tree-select-${nextId$5++}`;
|
|
5153
5167
|
panelId = `${this.id}-panel`;
|
|
5154
5168
|
messageId = `${this.id}-message`;
|
|
5155
5169
|
icons = { ChevronDown, ChevronRight, Check, Minus, X };
|
|
@@ -5497,6 +5511,357 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
5497
5511
|
], 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"] }]
|
|
5498
5512
|
}], 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 }] }] } });
|
|
5499
5513
|
|
|
5514
|
+
/**
|
|
5515
|
+
* Metric tile for dashboards: label, value, change against a previous period
|
|
5516
|
+
* and an optional icon. Use `invertTrend` for metrics where lower is better
|
|
5517
|
+
* (costs, errors, churn). Slot: `[stat-footer]` (sparkline, link, note).
|
|
5518
|
+
*/
|
|
5519
|
+
class StatCardComponent {
|
|
5520
|
+
i18n = inject(NGX_DS_LABELS);
|
|
5521
|
+
label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
5522
|
+
/** Already formatted value ("1.240", "12,5 k€") or a raw number. */
|
|
5523
|
+
value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
5524
|
+
/** Percentage change against the previous period, e.g. 12.5 or -3. */
|
|
5525
|
+
delta = input(null, ...(ngDevMode ? [{ debugName: "delta" }] : /* istanbul ignore next */ []));
|
|
5526
|
+
/** Context for the change, e.g. "vs. mes anterior". */
|
|
5527
|
+
deltaLabel = input(undefined, ...(ngDevMode ? [{ debugName: "deltaLabel" }] : /* istanbul ignore next */ []));
|
|
5528
|
+
/** Lower is better: a decrease is shown as positive. */
|
|
5529
|
+
invertTrend = input(false, ...(ngDevMode ? [{ debugName: "invertTrend" }] : /* istanbul ignore next */ []));
|
|
5530
|
+
icon = input(undefined, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
5531
|
+
/** Shows placeholders instead of the value and change. */
|
|
5532
|
+
loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
5533
|
+
trend = computed(() => {
|
|
5534
|
+
const d = this.delta();
|
|
5535
|
+
if (d === null || d === 0)
|
|
5536
|
+
return 'neutral';
|
|
5537
|
+
return d > 0 ? 'up' : 'down';
|
|
5538
|
+
}, ...(ngDevMode ? [{ debugName: "trend" }] : /* istanbul ignore next */ []));
|
|
5539
|
+
sentiment = computed(() => {
|
|
5540
|
+
const t = this.trend();
|
|
5541
|
+
if (t === 'neutral')
|
|
5542
|
+
return 'neutral';
|
|
5543
|
+
return (t === 'up') !== this.invertTrend() ? 'positive' : 'negative';
|
|
5544
|
+
}, ...(ngDevMode ? [{ debugName: "sentiment" }] : /* istanbul ignore next */ []));
|
|
5545
|
+
trendIcon = computed(() => {
|
|
5546
|
+
const t = this.trend();
|
|
5547
|
+
return t === 'up' ? TrendingUp : t === 'down' ? TrendingDown : Minus;
|
|
5548
|
+
}, ...(ngDevMode ? [{ debugName: "trendIcon" }] : /* istanbul ignore next */ []));
|
|
5549
|
+
deltaText = computed(() => {
|
|
5550
|
+
const d = this.delta();
|
|
5551
|
+
if (d === null)
|
|
5552
|
+
return '';
|
|
5553
|
+
// Round to one decimal to drop floating point noise (12.499999 → 12.5).
|
|
5554
|
+
const abs = Math.round(Math.abs(d) * 10) / 10;
|
|
5555
|
+
const sign = d > 0 ? '+' : d < 0 ? '−' : '';
|
|
5556
|
+
return `${sign}${abs}%`;
|
|
5557
|
+
}, ...(ngDevMode ? [{ debugName: "deltaText" }] : /* istanbul ignore next */ []));
|
|
5558
|
+
trendText = computed(() => {
|
|
5559
|
+
const t = this.trend();
|
|
5560
|
+
return t === 'up' ? this.i18n.increase : t === 'down' ? this.i18n.decrease : this.i18n.noChange;
|
|
5561
|
+
}, ...(ngDevMode ? [{ debugName: "trendText" }] : /* istanbul ignore next */ []));
|
|
5562
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: StatCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5563
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: StatCardComponent, isStandalone: true, selector: "ngx-ds-stat-card", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, delta: { classPropertyName: "delta", publicName: "delta", isSignal: true, isRequired: false, transformFunction: null }, deltaLabel: { classPropertyName: "deltaLabel", publicName: "deltaLabel", isSignal: true, isRequired: false, transformFunction: null }, invertTrend: { classPropertyName: "invertTrend", publicName: "invertTrend", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"stat\" [attr.aria-busy]=\"loading() || null\">\n <div class=\"stat__header\">\n <span class=\"stat__label\">{{ label() }}</span>\n @if (icon(); as ic) {\n <span class=\"stat__icon\" aria-hidden=\"true\">\n <ngx-ds-icon [icon]=\"ic\" [size]=\"20\" />\n </span>\n }\n </div>\n\n @if (loading()) {\n <div class=\"stat__skeleton stat__skeleton--value\"></div>\n <div class=\"stat__skeleton stat__skeleton--delta\"></div>\n } @else {\n <div class=\"stat__value\">{{ value() }}</div>\n\n @if (delta() !== null) {\n <div class=\"stat__change\">\n <span class=\"stat__delta\" [class]=\"'stat__delta stat__delta--' + sentiment()\">\n <ngx-ds-icon [icon]=\"trendIcon()\" [size]=\"14\" aria-hidden=\"true\" />\n <span class=\"stat__sr\">{{ trendText() }}</span>\n {{ deltaText() }}\n </span>\n @if (deltaLabel()) {\n <span class=\"stat__delta-label\">{{ deltaLabel() }}</span>\n }\n </div>\n }\n }\n\n <div class=\"stat__footer\">\n <ng-content select=\"[stat-footer]\" />\n </div>\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.stat{display:flex;flex-direction:column;gap:.5rem;height:100%;box-sizing:border-box;padding:1.25rem;background:var(--surface-base, #ffffff);border:1.5px solid var(--border-base, #e5e7eb);border-radius:.75rem;box-shadow:0 1px 3px #00000014,0 1px 2px #0000000d}.stat__header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.stat__label{color:var(--text-muted, #6b7280);font-size:.875rem;font-weight:500}.stat__icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:2.25rem;height:2.25rem;border-radius:.5rem;background:var(--primary-50, #eef2ff);color:var(--primary-700, #4338ca)}.stat__value{color:var(--text-base, #111827);font-size:1.75rem;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}.stat__change{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-size:.8125rem}.stat__delta{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:999px;font-weight:600;font-variant-numeric:tabular-nums}.stat__delta--positive{background:var(--success-50, #f0fdf4);color:var(--success-700, #15803d)}.stat__delta--negative{background:var(--danger-50, #fef2f2);color:var(--danger-700, #b91c1c)}.stat__delta--neutral{background:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #374151)}.stat__delta-label{color:var(--text-muted, #6b7280)}.stat__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.stat__skeleton{border-radius:.375rem;background:var(--surface-muted, #f3f4f6);animation:stat-pulse 1.5s ease-in-out infinite}.stat__skeleton--value{width:60%;height:2.1rem}.stat__skeleton--delta{width:40%;height:1.25rem}.stat__footer{margin-top:auto}.stat__footer:not(:has(*)){display:none}@keyframes stat-pulse{50%{opacity:.5}}@media(prefers-reduced-motion:reduce){.stat__skeleton{animation:none}}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5564
|
+
}
|
|
5565
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: StatCardComponent, decorators: [{
|
|
5566
|
+
type: Component,
|
|
5567
|
+
args: [{ selector: 'ngx-ds-stat-card', standalone: true, imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"stat\" [attr.aria-busy]=\"loading() || null\">\n <div class=\"stat__header\">\n <span class=\"stat__label\">{{ label() }}</span>\n @if (icon(); as ic) {\n <span class=\"stat__icon\" aria-hidden=\"true\">\n <ngx-ds-icon [icon]=\"ic\" [size]=\"20\" />\n </span>\n }\n </div>\n\n @if (loading()) {\n <div class=\"stat__skeleton stat__skeleton--value\"></div>\n <div class=\"stat__skeleton stat__skeleton--delta\"></div>\n } @else {\n <div class=\"stat__value\">{{ value() }}</div>\n\n @if (delta() !== null) {\n <div class=\"stat__change\">\n <span class=\"stat__delta\" [class]=\"'stat__delta stat__delta--' + sentiment()\">\n <ngx-ds-icon [icon]=\"trendIcon()\" [size]=\"14\" aria-hidden=\"true\" />\n <span class=\"stat__sr\">{{ trendText() }}</span>\n {{ deltaText() }}\n </span>\n @if (deltaLabel()) {\n <span class=\"stat__delta-label\">{{ deltaLabel() }}</span>\n }\n </div>\n }\n }\n\n <div class=\"stat__footer\">\n <ng-content select=\"[stat-footer]\" />\n </div>\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.stat{display:flex;flex-direction:column;gap:.5rem;height:100%;box-sizing:border-box;padding:1.25rem;background:var(--surface-base, #ffffff);border:1.5px solid var(--border-base, #e5e7eb);border-radius:.75rem;box-shadow:0 1px 3px #00000014,0 1px 2px #0000000d}.stat__header{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.stat__label{color:var(--text-muted, #6b7280);font-size:.875rem;font-weight:500}.stat__icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:2.25rem;height:2.25rem;border-radius:.5rem;background:var(--primary-50, #eef2ff);color:var(--primary-700, #4338ca)}.stat__value{color:var(--text-base, #111827);font-size:1.75rem;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}.stat__change{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-size:.8125rem}.stat__delta{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:999px;font-weight:600;font-variant-numeric:tabular-nums}.stat__delta--positive{background:var(--success-50, #f0fdf4);color:var(--success-700, #15803d)}.stat__delta--negative{background:var(--danger-50, #fef2f2);color:var(--danger-700, #b91c1c)}.stat__delta--neutral{background:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #374151)}.stat__delta-label{color:var(--text-muted, #6b7280)}.stat__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.stat__skeleton{border-radius:.375rem;background:var(--surface-muted, #f3f4f6);animation:stat-pulse 1.5s ease-in-out infinite}.stat__skeleton--value{width:60%;height:2.1rem}.stat__skeleton--delta{width:40%;height:1.25rem}.stat__footer{margin-top:auto}.stat__footer:not(:has(*)){display:none}@keyframes stat-pulse{50%{opacity:.5}}@media(prefers-reduced-motion:reduce){.stat__skeleton{animation:none}}\n"] }]
|
|
5568
|
+
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], delta: [{ type: i0.Input, args: [{ isSignal: true, alias: "delta", required: false }] }], deltaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "deltaLabel", required: false }] }], invertTrend: [{ type: i0.Input, args: [{ isSignal: true, alias: "invertTrend", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }] } });
|
|
5569
|
+
|
|
5570
|
+
/**
|
|
5571
|
+
* Mask tokens: `9` digit, `a` letter, `A` letter shown in upper case, `*` letter or digit.
|
|
5572
|
+
* Any other character in the mask is a literal that is inserted automatically.
|
|
5573
|
+
*/
|
|
5574
|
+
const TOKENS = {
|
|
5575
|
+
'9': /\d/,
|
|
5576
|
+
a: /\p{L}/u,
|
|
5577
|
+
A: /\p{L}/u,
|
|
5578
|
+
'*': /[\p{L}\d]/u,
|
|
5579
|
+
};
|
|
5580
|
+
const ACCEPTABLE = /[\p{L}\d]/u;
|
|
5581
|
+
function isMaskToken(char) {
|
|
5582
|
+
return char in TOKENS;
|
|
5583
|
+
}
|
|
5584
|
+
/** Literal characters before the first token, such as `+34 `. */
|
|
5585
|
+
function maskPrefix(mask) {
|
|
5586
|
+
let prefix = '';
|
|
5587
|
+
for (const char of mask) {
|
|
5588
|
+
if (isMaskToken(char))
|
|
5589
|
+
break;
|
|
5590
|
+
prefix += char;
|
|
5591
|
+
}
|
|
5592
|
+
return prefix;
|
|
5593
|
+
}
|
|
5594
|
+
/**
|
|
5595
|
+
* Keeps the letters and digits a user typed or pasted. A leading literal prefix of the
|
|
5596
|
+
* mask is removed first, so a prefix with digits (`+34 `) is not read as input.
|
|
5597
|
+
*/
|
|
5598
|
+
function extractRaw(text, mask) {
|
|
5599
|
+
const prefix = maskPrefix(mask);
|
|
5600
|
+
const body = prefix && text.startsWith(prefix) ? text.slice(prefix.length) : text;
|
|
5601
|
+
return [...body].filter((char) => ACCEPTABLE.test(char)).join('');
|
|
5602
|
+
}
|
|
5603
|
+
/**
|
|
5604
|
+
* Fits `raw` into `mask`. Characters that don't match their slot are dropped, and
|
|
5605
|
+
* literals are only written when a character follows them, so deleting stays natural.
|
|
5606
|
+
*/
|
|
5607
|
+
function applyMask(raw, mask) {
|
|
5608
|
+
const chars = [...raw];
|
|
5609
|
+
let masked = '';
|
|
5610
|
+
let clean = '';
|
|
5611
|
+
let pending = '';
|
|
5612
|
+
let i = 0;
|
|
5613
|
+
for (const slot of mask) {
|
|
5614
|
+
if (i >= chars.length)
|
|
5615
|
+
break;
|
|
5616
|
+
const pattern = TOKENS[slot];
|
|
5617
|
+
if (!pattern) {
|
|
5618
|
+
pending += slot;
|
|
5619
|
+
continue;
|
|
5620
|
+
}
|
|
5621
|
+
while (i < chars.length && !pattern.test(chars[i]))
|
|
5622
|
+
i++;
|
|
5623
|
+
if (i >= chars.length)
|
|
5624
|
+
break;
|
|
5625
|
+
const char = slot === 'A' ? chars[i].toUpperCase() : chars[i];
|
|
5626
|
+
i++;
|
|
5627
|
+
masked += pending + char;
|
|
5628
|
+
pending = '';
|
|
5629
|
+
clean += char;
|
|
5630
|
+
}
|
|
5631
|
+
return { masked, raw: clean };
|
|
5632
|
+
}
|
|
5633
|
+
/** Caret position right after the `count`-th accepted character of `masked`. */
|
|
5634
|
+
function caretAfter(masked, mask, count) {
|
|
5635
|
+
if (count <= 0)
|
|
5636
|
+
return 0;
|
|
5637
|
+
let seen = 0;
|
|
5638
|
+
for (let k = 0; k < masked.length; k++) {
|
|
5639
|
+
if (isMaskToken(mask[k]) && ++seen === count)
|
|
5640
|
+
return k + 1;
|
|
5641
|
+
}
|
|
5642
|
+
return masked.length;
|
|
5643
|
+
}
|
|
5644
|
+
/** Number of characters the mask accepts. */
|
|
5645
|
+
function tokenCount(mask) {
|
|
5646
|
+
return [...mask].filter(isMaskToken).length;
|
|
5647
|
+
}
|
|
5648
|
+
/** Placeholder that shows the shape of the mask, e.g. `(___) ___-____`. */
|
|
5649
|
+
function maskGuide(mask, slotChar = '_') {
|
|
5650
|
+
return [...mask].map((char) => (isMaskToken(char) ? slotChar : char)).join('');
|
|
5651
|
+
}
|
|
5652
|
+
|
|
5653
|
+
const ICON_SIZE$2 = { sm: 14, md: 16, lg: 18 };
|
|
5654
|
+
let nextId$4 = 0;
|
|
5655
|
+
/**
|
|
5656
|
+
* Text field that formats what the user types with a mask such as `(999) 999-9999`.
|
|
5657
|
+
* Tokens: `9` digit, `a` letter, `A` letter in upper case, `*` letter or digit;
|
|
5658
|
+
* every other character is a literal inserted automatically.
|
|
5659
|
+
*/
|
|
5660
|
+
class MaskedInputComponent {
|
|
5661
|
+
// ── Configuration ────────────────────────────────────────────
|
|
5662
|
+
mask = input.required(...(ngDevMode ? [{ debugName: "mask" }] : /* istanbul ignore next */ []));
|
|
5663
|
+
/** When true, `value` includes the literals (`(555) 123-4567`); otherwise only `5551234567`. */
|
|
5664
|
+
keepLiterals = input(false, ...(ngDevMode ? [{ debugName: "keepLiterals" }] : /* istanbul ignore next */ []));
|
|
5665
|
+
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
5666
|
+
floatingLabel = input(false, ...(ngDevMode ? [{ debugName: "floatingLabel" }] : /* istanbul ignore next */ []));
|
|
5667
|
+
/** Defaults to the shape of the mask, e.g. `(___) ___-____`. */
|
|
5668
|
+
placeholder = input(undefined, ...(ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
5669
|
+
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
5670
|
+
hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
|
|
5671
|
+
errorMessage = input('', ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
|
|
5672
|
+
/** Set by Signal Forms `[formField]`. Its errors show once the field is touched. */
|
|
5673
|
+
errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
5674
|
+
touched = input(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
|
|
5675
|
+
iconLeft = input(undefined, ...(ngDevMode ? [{ debugName: "iconLeft" }] : /* istanbul ignore next */ []));
|
|
5676
|
+
autocomplete = input(null, ...(ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []));
|
|
5677
|
+
readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []));
|
|
5678
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
5679
|
+
// ── Value — two-way bindable (signal forms) ──────────────────
|
|
5680
|
+
value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
5681
|
+
id = `ngx-masked-input-${nextId$4++}`;
|
|
5682
|
+
messageId = `${this.id}-message`;
|
|
5683
|
+
// ── Internal state ───────────────────────────────────────────
|
|
5684
|
+
#cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#cvaDisabled" }] : /* istanbul ignore next */ []));
|
|
5685
|
+
#focused = signal(false, ...(ngDevMode ? [{ debugName: "#focused" }] : /* istanbul ignore next */ []));
|
|
5686
|
+
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
5687
|
+
isFocused = this.#focused.asReadonly();
|
|
5688
|
+
// ── Derived ──────────────────────────────────────────────────
|
|
5689
|
+
#result = computed(() => applyMask(extractRaw(this.value(), this.mask()), this.mask()), ...(ngDevMode ? [{ debugName: "#result" }] : /* istanbul ignore next */ []));
|
|
5690
|
+
/** Formatted text shown in the field. */
|
|
5691
|
+
display = computed(() => this.#result().masked, ...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
|
|
5692
|
+
/** True when every slot of the mask is filled. */
|
|
5693
|
+
isComplete = computed(() => this.#result().raw.length === tokenCount(this.mask()), ...(ngDevMode ? [{ debugName: "isComplete" }] : /* istanbul ignore next */ []));
|
|
5694
|
+
inputMode = computed(() => [...this.mask()].filter(isMaskToken).every((t) => t === '9') ? 'numeric' : 'text', ...(ngDevMode ? [{ debugName: "inputMode" }] : /* istanbul ignore next */ []));
|
|
5695
|
+
isFloating = computed(() => this.#focused() || this.display().length > 0, ...(ngDevMode ? [{ debugName: "isFloating" }] : /* istanbul ignore next */ []));
|
|
5696
|
+
hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
5697
|
+
errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
5698
|
+
iconSize = computed(() => ICON_SIZE$2[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
5699
|
+
effectivePlaceholder = computed(() => {
|
|
5700
|
+
if (this.floatingLabel() && this.label() && !this.isFloating())
|
|
5701
|
+
return '';
|
|
5702
|
+
return this.placeholder() ?? maskGuide(this.mask());
|
|
5703
|
+
}, ...(ngDevMode ? [{ debugName: "effectivePlaceholder" }] : /* istanbul ignore next */ []));
|
|
5704
|
+
fieldClasses = computed(() => {
|
|
5705
|
+
const base = 'ngx-input__field';
|
|
5706
|
+
return [
|
|
5707
|
+
base,
|
|
5708
|
+
`${base}--${this.size()}`,
|
|
5709
|
+
this.isFocused() ? `${base}--focused` : '',
|
|
5710
|
+
this.hasError() ? `${base}--error` : '',
|
|
5711
|
+
this.isDisabled() ? `${base}--disabled` : '',
|
|
5712
|
+
this.floatingLabel() ? `${base}--floating` : '',
|
|
5713
|
+
this.iconLeft() ? `${base}--icon-left` : '',
|
|
5714
|
+
]
|
|
5715
|
+
.filter(Boolean)
|
|
5716
|
+
.join(' ');
|
|
5717
|
+
}, ...(ngDevMode ? [{ debugName: "fieldClasses" }] : /* istanbul ignore next */ []));
|
|
5718
|
+
floatLabelClasses = computed(() => {
|
|
5719
|
+
const base = 'ngx-input__float-label';
|
|
5720
|
+
return [
|
|
5721
|
+
base,
|
|
5722
|
+
this.isFloating() ? `${base}--active` : '',
|
|
5723
|
+
this.isFocused() ? `${base}--focused` : '',
|
|
5724
|
+
this.hasError() ? `${base}--error` : '',
|
|
5725
|
+
this.iconLeft() ? `${base}--offset` : '',
|
|
5726
|
+
]
|
|
5727
|
+
.filter(Boolean)
|
|
5728
|
+
.join(' ');
|
|
5729
|
+
}, ...(ngDevMode ? [{ debugName: "floatLabelClasses" }] : /* istanbul ignore next */ []));
|
|
5730
|
+
// ── Events ───────────────────────────────────────────────────
|
|
5731
|
+
onChange = () => { };
|
|
5732
|
+
onTouched = () => { };
|
|
5733
|
+
onInput(event) {
|
|
5734
|
+
const el = event.target;
|
|
5735
|
+
const mask = this.mask();
|
|
5736
|
+
const caret = el.selectionStart ?? el.value.length;
|
|
5737
|
+
const result = applyMask(extractRaw(el.value, mask), mask);
|
|
5738
|
+
const before = applyMask(extractRaw(el.value.slice(0, caret), mask), mask).raw.length;
|
|
5739
|
+
// Write the formatted text now: when it is unchanged (a rejected key) the binding won't.
|
|
5740
|
+
el.value = result.masked;
|
|
5741
|
+
const pos = caretAfter(result.masked, mask, before);
|
|
5742
|
+
el.setSelectionRange(pos, pos);
|
|
5743
|
+
const next = this.keepLiterals() ? result.masked : result.raw;
|
|
5744
|
+
if (next !== this.value()) {
|
|
5745
|
+
this.value.set(next);
|
|
5746
|
+
this.onChange(next);
|
|
5747
|
+
}
|
|
5748
|
+
}
|
|
5749
|
+
onFocus() {
|
|
5750
|
+
this.#focused.set(true);
|
|
5751
|
+
}
|
|
5752
|
+
onBlur() {
|
|
5753
|
+
this.#focused.set(false);
|
|
5754
|
+
this.onTouched();
|
|
5755
|
+
}
|
|
5756
|
+
// ── CVA ──────────────────────────────────────────────────────
|
|
5757
|
+
writeValue(v) {
|
|
5758
|
+
this.value.set(v ?? '');
|
|
5759
|
+
}
|
|
5760
|
+
registerOnChange(fn) {
|
|
5761
|
+
this.onChange = fn;
|
|
5762
|
+
}
|
|
5763
|
+
registerOnTouched(fn) {
|
|
5764
|
+
this.onTouched = fn;
|
|
5765
|
+
}
|
|
5766
|
+
setDisabledState(disabled) {
|
|
5767
|
+
this.#cvaDisabled.set(disabled);
|
|
5768
|
+
}
|
|
5769
|
+
// ── Validator (reactive / template-driven forms) ─────────────
|
|
5770
|
+
validate(control) {
|
|
5771
|
+
const mask = this.mask();
|
|
5772
|
+
const raw = applyMask(extractRaw(String(control.value ?? ''), mask), mask).raw;
|
|
5773
|
+
const required = tokenCount(mask);
|
|
5774
|
+
if (raw.length === 0 || raw.length === required)
|
|
5775
|
+
return null;
|
|
5776
|
+
return { mask: { requiredLength: required, actualLength: raw.length } };
|
|
5777
|
+
}
|
|
5778
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: MaskedInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5779
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: MaskedInputComponent, isStandalone: true, selector: "ngx-ds-masked-input", inputs: { mask: { classPropertyName: "mask", publicName: "mask", isSignal: true, isRequired: true, transformFunction: null }, keepLiterals: { classPropertyName: "keepLiterals", publicName: "keepLiterals", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, floatingLabel: { classPropertyName: "floatingLabel", publicName: "floatingLabel", 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 }, 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 }, iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", 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 } }, outputs: { value: "valueChange" }, providers: [
|
|
5780
|
+
{
|
|
5781
|
+
provide: NG_VALUE_ACCESSOR,
|
|
5782
|
+
useExisting: forwardRef(() => MaskedInputComponent),
|
|
5783
|
+
multi: true,
|
|
5784
|
+
},
|
|
5785
|
+
{
|
|
5786
|
+
provide: NG_VALIDATORS,
|
|
5787
|
+
useExisting: forwardRef(() => MaskedInputComponent),
|
|
5788
|
+
multi: true,
|
|
5789
|
+
},
|
|
5790
|
+
], ngImport: i0, template: "<!-- Static label (non-floating) -->\n@if (!floatingLabel() && label()) {\n <label [for]=\"id\" class=\"ngx-input__label\">{{ label() }}</label>\n}\n\n<div [class]=\"fieldClasses()\">\n @if (floatingLabel() && label()) {\n <label [for]=\"id\" [class]=\"floatLabelClasses()\">{{ label() }}</label>\n }\n\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 <input\n class=\"ngx-input__native\"\n type=\"text\"\n [id]=\"id\"\n [attr.inputmode]=\"inputMode()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"errorText() || hint() ? messageId : null\"\n [value]=\"display()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled() || null\"\n [attr.readonly]=\"readonly() || null\"\n (input)=\"onInput($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n />\n</div>\n\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"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5791
|
+
}
|
|
5792
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: MaskedInputComponent, decorators: [{
|
|
5793
|
+
type: Component,
|
|
5794
|
+
args: [{ selector: 'ngx-ds-masked-input', standalone: true, imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
5795
|
+
{
|
|
5796
|
+
provide: NG_VALUE_ACCESSOR,
|
|
5797
|
+
useExisting: forwardRef(() => MaskedInputComponent),
|
|
5798
|
+
multi: true,
|
|
5799
|
+
},
|
|
5800
|
+
{
|
|
5801
|
+
provide: NG_VALIDATORS,
|
|
5802
|
+
useExisting: forwardRef(() => MaskedInputComponent),
|
|
5803
|
+
multi: true,
|
|
5804
|
+
},
|
|
5805
|
+
], template: "<!-- Static label (non-floating) -->\n@if (!floatingLabel() && label()) {\n <label [for]=\"id\" class=\"ngx-input__label\">{{ label() }}</label>\n}\n\n<div [class]=\"fieldClasses()\">\n @if (floatingLabel() && label()) {\n <label [for]=\"id\" [class]=\"floatLabelClasses()\">{{ label() }}</label>\n }\n\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 <input\n class=\"ngx-input__native\"\n type=\"text\"\n [id]=\"id\"\n [attr.inputmode]=\"inputMode()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"errorText() || hint() ? messageId : null\"\n [value]=\"display()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled() || null\"\n [attr.readonly]=\"readonly() || null\"\n (input)=\"onInput($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n />\n</div>\n\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"] }]
|
|
5806
|
+
}], propDecorators: { mask: [{ type: i0.Input, args: [{ isSignal: true, alias: "mask", required: true }] }], keepLiterals: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepLiterals", 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 }] }], iconLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeft", required: false }] }], autocomplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "autocomplete", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", 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"] }] } });
|
|
5807
|
+
|
|
5808
|
+
const COPIED_MS = 2000;
|
|
5809
|
+
/** Label/value pairs for detail views, rendered as a semantic `<dl>`. */
|
|
5810
|
+
class DescriptionListComponent {
|
|
5811
|
+
items = input.required(...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
5812
|
+
/** `horizontal`: label and value side by side. `vertical`: label above the value. */
|
|
5813
|
+
layout = input('horizontal', ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
5814
|
+
/** Number of columns on wide screens; it collapses to one on narrow ones. */
|
|
5815
|
+
columns = input(1, ...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
|
|
5816
|
+
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
5817
|
+
/** Draws a line between items. */
|
|
5818
|
+
divided = input(true, ...(ngDevMode ? [{ debugName: "divided" }] : /* istanbul ignore next */ []));
|
|
5819
|
+
/** Shown when a value is empty, `null` or `undefined`. */
|
|
5820
|
+
emptyValue = input('—', ...(ngDevMode ? [{ debugName: "emptyValue" }] : /* istanbul ignore next */ []));
|
|
5821
|
+
/** Emits the item whose value was copied. */
|
|
5822
|
+
copied = output();
|
|
5823
|
+
i18n = inject(NGX_DS_LABELS);
|
|
5824
|
+
copyIcon = Copy;
|
|
5825
|
+
checkIcon = Check;
|
|
5826
|
+
#copiedIndex = signal(null, ...(ngDevMode ? [{ debugName: "#copiedIndex" }] : /* istanbul ignore next */ []));
|
|
5827
|
+
copiedIndex = this.#copiedIndex.asReadonly();
|
|
5828
|
+
#timer;
|
|
5829
|
+
classes = computed(() => [
|
|
5830
|
+
'dl',
|
|
5831
|
+
`dl--${this.layout()}`,
|
|
5832
|
+
`dl--${this.size()}`,
|
|
5833
|
+
this.divided() ? 'dl--divided' : '',
|
|
5834
|
+
this.columns() > 1 ? 'dl--grid' : '',
|
|
5835
|
+
]
|
|
5836
|
+
.filter(Boolean)
|
|
5837
|
+
.join(' '), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
5838
|
+
constructor() {
|
|
5839
|
+
inject(DestroyRef).onDestroy(() => clearTimeout(this.#timer));
|
|
5840
|
+
}
|
|
5841
|
+
isEmpty(item) {
|
|
5842
|
+
return item.value === null || item.value === undefined || item.value === '';
|
|
5843
|
+
}
|
|
5844
|
+
async copy(item, index) {
|
|
5845
|
+
try {
|
|
5846
|
+
await navigator.clipboard.writeText(String(item.value));
|
|
5847
|
+
}
|
|
5848
|
+
catch {
|
|
5849
|
+
// Clipboard denied or unavailable: no "copied" feedback.
|
|
5850
|
+
return;
|
|
5851
|
+
}
|
|
5852
|
+
this.#copiedIndex.set(index);
|
|
5853
|
+
this.copied.emit(item);
|
|
5854
|
+
clearTimeout(this.#timer);
|
|
5855
|
+
this.#timer = setTimeout(() => this.#copiedIndex.set(null), COPIED_MS);
|
|
5856
|
+
}
|
|
5857
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DescriptionListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5858
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: DescriptionListComponent, isStandalone: true, selector: "ngx-ds-description-list", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, divided: { classPropertyName: "divided", publicName: "divided", isSignal: true, isRequired: false, transformFunction: null }, emptyValue: { classPropertyName: "emptyValue", publicName: "emptyValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { copied: "copied" }, ngImport: i0, template: "<dl [class]=\"classes()\" [style.--dl-columns]=\"columns()\">\n @for (item of items(); track $index) {\n <div class=\"dl__item\" [class.dl__item--full]=\"item.fullWidth\">\n <dt class=\"dl__term\">{{ item.label }}</dt>\n <dd class=\"dl__desc\">\n @if (isEmpty(item)) {\n <span class=\"dl__value dl__value--empty\">{{ emptyValue() }}</span>\n } @else {\n <span class=\"dl__value\">{{ item.value }}</span>\n @if (item.copyable) {\n <button\n type=\"button\"\n class=\"dl__copy\"\n [class.dl__copy--done]=\"copiedIndex() === $index\"\n [attr.aria-label]=\"i18n.copy(item.label)\"\n (click)=\"copy(item, $index)\"\n >\n <ngx-ds-icon\n [icon]=\"copiedIndex() === $index ? checkIcon : copyIcon\"\n [size]=\"14\"\n aria-hidden=\"true\"\n />\n </button>\n }\n }\n </dd>\n </div>\n }\n</dl>\n\n<span class=\"dl__status\" aria-live=\"polite\">{{ copiedIndex() !== null ? i18n.copied : '' }}</span>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.dl{--dl-font: .875rem;--dl-pad: .75rem;margin:0;font-size:var(--dl-font)}.dl--sm{--dl-font: .8125rem;--dl-pad: .5rem}.dl--lg{--dl-font: 1rem;--dl-pad: 1rem}.dl--grid{display:grid;grid-template-columns:repeat(var(--dl-columns, 1),minmax(0,1fr));column-gap:1.5rem}@media(max-width:640px){.dl--grid{grid-template-columns:minmax(0,1fr)}}.dl__item{display:grid;gap:.25rem;padding:var(--dl-pad) 0}.dl__item--full{grid-column:1/-1}.dl--divided .dl__item{border-bottom:1px solid var(--border-base, #e5e7eb)}.dl--horizontal .dl__item{grid-template-columns:minmax(7rem,1fr) 2fr;align-items:baseline;column-gap:1rem}@media(max-width:480px){.dl--horizontal .dl__item{grid-template-columns:minmax(0,1fr)}}.dl__term{color:var(--text-muted, #6b7280);font-weight:500}.dl__desc{display:flex;align-items:center;gap:.375rem;min-width:0;margin:0;color:var(--text-base, #111827)}.dl__value{min-width:0;overflow-wrap:anywhere}.dl__value--empty{color:var(--text-muted, #6b7280)}.dl__copy{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:1.75rem;height:1.75rem;padding:0;border:none;border-radius:.375rem;background:transparent;color:var(--text-muted, #6b7280);cursor:pointer;transition:background-color .15s,color .15s}.dl__copy:hover{background:var(--surface-hover, #f3f4f6);color:var(--text-base, #111827)}.dl__copy:focus-visible{outline:2px solid var(--primary-500, #6366f1);outline-offset:1px}.dl__copy--done,.dl__copy--done:hover{color:var(--success-600, #059669)}.dl__status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5859
|
+
}
|
|
5860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DescriptionListComponent, decorators: [{
|
|
5861
|
+
type: Component,
|
|
5862
|
+
args: [{ selector: 'ngx-ds-description-list', standalone: true, imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<dl [class]=\"classes()\" [style.--dl-columns]=\"columns()\">\n @for (item of items(); track $index) {\n <div class=\"dl__item\" [class.dl__item--full]=\"item.fullWidth\">\n <dt class=\"dl__term\">{{ item.label }}</dt>\n <dd class=\"dl__desc\">\n @if (isEmpty(item)) {\n <span class=\"dl__value dl__value--empty\">{{ emptyValue() }}</span>\n } @else {\n <span class=\"dl__value\">{{ item.value }}</span>\n @if (item.copyable) {\n <button\n type=\"button\"\n class=\"dl__copy\"\n [class.dl__copy--done]=\"copiedIndex() === $index\"\n [attr.aria-label]=\"i18n.copy(item.label)\"\n (click)=\"copy(item, $index)\"\n >\n <ngx-ds-icon\n [icon]=\"copiedIndex() === $index ? checkIcon : copyIcon\"\n [size]=\"14\"\n aria-hidden=\"true\"\n />\n </button>\n }\n }\n </dd>\n </div>\n }\n</dl>\n\n<span class=\"dl__status\" aria-live=\"polite\">{{ copiedIndex() !== null ? i18n.copied : '' }}</span>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.dl{--dl-font: .875rem;--dl-pad: .75rem;margin:0;font-size:var(--dl-font)}.dl--sm{--dl-font: .8125rem;--dl-pad: .5rem}.dl--lg{--dl-font: 1rem;--dl-pad: 1rem}.dl--grid{display:grid;grid-template-columns:repeat(var(--dl-columns, 1),minmax(0,1fr));column-gap:1.5rem}@media(max-width:640px){.dl--grid{grid-template-columns:minmax(0,1fr)}}.dl__item{display:grid;gap:.25rem;padding:var(--dl-pad) 0}.dl__item--full{grid-column:1/-1}.dl--divided .dl__item{border-bottom:1px solid var(--border-base, #e5e7eb)}.dl--horizontal .dl__item{grid-template-columns:minmax(7rem,1fr) 2fr;align-items:baseline;column-gap:1rem}@media(max-width:480px){.dl--horizontal .dl__item{grid-template-columns:minmax(0,1fr)}}.dl__term{color:var(--text-muted, #6b7280);font-weight:500}.dl__desc{display:flex;align-items:center;gap:.375rem;min-width:0;margin:0;color:var(--text-base, #111827)}.dl__value{min-width:0;overflow-wrap:anywhere}.dl__value--empty{color:var(--text-muted, #6b7280)}.dl__copy{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:1.75rem;height:1.75rem;padding:0;border:none;border-radius:.375rem;background:transparent;color:var(--text-muted, #6b7280);cursor:pointer;transition:background-color .15s,color .15s}.dl__copy:hover{background:var(--surface-hover, #f3f4f6);color:var(--text-base, #111827)}.dl__copy:focus-visible{outline:2px solid var(--primary-500, #6366f1);outline-offset:1px}.dl__copy--done,.dl__copy--done:hover{color:var(--success-600, #059669)}.dl__status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}\n"] }]
|
|
5863
|
+
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], divided: [{ type: i0.Input, args: [{ isSignal: true, alias: "divided", required: false }] }], emptyValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyValue", required: false }] }], copied: [{ type: i0.Output, args: ["copied"] }] } });
|
|
5864
|
+
|
|
5500
5865
|
class PaginationComponent {
|
|
5501
5866
|
i18n = inject(NGX_DS_LABELS);
|
|
5502
5867
|
totalPages = input.required(...(ngDevMode ? [{ debugName: "totalPages" }] : /* istanbul ignore next */ []));
|
|
@@ -6129,7 +6494,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
6129
6494
|
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], contentTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => TabContentDirective), { isSignal: true }] }] } });
|
|
6130
6495
|
|
|
6131
6496
|
const ICON_SIZE$1 = { sm: 14, md: 16, lg: 18 };
|
|
6132
|
-
let nextId$
|
|
6497
|
+
let nextId$3 = 0;
|
|
6133
6498
|
class TabsComponent {
|
|
6134
6499
|
tabButtons = viewChildren('tabBtn', ...(ngDevMode ? [{ debugName: "tabButtons" }] : /* istanbul ignore next */ []));
|
|
6135
6500
|
tabs = contentChildren(TabComponent, ...(ngDevMode ? [{ debugName: "tabs" }] : /* istanbul ignore next */ []));
|
|
@@ -6137,7 +6502,7 @@ class TabsComponent {
|
|
|
6137
6502
|
variant = input('line', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
6138
6503
|
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
6139
6504
|
fullWidth = input(false, ...(ngDevMode ? [{ debugName: "fullWidth" }] : /* istanbul ignore next */ []));
|
|
6140
|
-
id = `ngx-tabs-${nextId$
|
|
6505
|
+
id = `ngx-tabs-${nextId$3++}`;
|
|
6141
6506
|
tabId(index) {
|
|
6142
6507
|
return `${this.id}-tab-${index}`;
|
|
6143
6508
|
}
|
|
@@ -6685,7 +7050,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
6685
7050
|
args: [{ selector: 'ngx-ds-calendar', standalone: true, imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"calendar\" [class.calendar--disabled]=\"disabled()\">\n <!-- Header -->\n <div class=\"calendar__header\">\n <button\n type=\"button\"\n class=\"calendar__nav-btn\"\n (click)=\"prevMonth()\"\n [attr.aria-label]=\"i18n.prevMonth\"\n >\n <ngx-ds-icon [icon]=\"ChevronLeft\" [size]=\"18\" />\n </button>\n <span class=\"calendar__title\">{{ title() }}</span>\n <button\n type=\"button\"\n class=\"calendar__nav-btn\"\n (click)=\"nextMonth()\"\n [attr.aria-label]=\"i18n.nextMonth\"\n >\n <ngx-ds-icon [icon]=\"ChevronRight\" [size]=\"18\" />\n </button>\n </div>\n\n <!-- Weekday headers -->\n <div class=\"calendar__weekdays\" aria-hidden=\"true\">\n @for (d of weekdays; track d) {\n <span class=\"calendar__weekday\">{{ d }}</span>\n }\n </div>\n\n <!-- Day grid (WAI-ARIA grid with roving tabindex) -->\n <div #grid class=\"calendar__grid\" role=\"grid\" [attr.aria-label]=\"title()\">\n @for (week of weeks(); track $index) {\n <div class=\"calendar__week\" role=\"row\">\n @for (cell of week; track cell.date.getTime()) {\n <button\n type=\"button\"\n class=\"calendar__day\"\n role=\"gridcell\"\n [class.calendar__day--other]=\"!cell.inMonth\"\n [class.calendar__day--today]=\"cell.isToday\"\n [class.calendar__day--selected]=\"cell.isSelected\"\n [class.calendar__day--disabled]=\"cell.isDisabled\"\n [disabled]=\"disabled() || null\"\n [attr.aria-disabled]=\"cell.isDisabled || null\"\n [attr.aria-label]=\"dayLabel(cell.date)\"\n [attr.aria-selected]=\"cell.isSelected\"\n [attr.aria-current]=\"cell.isToday ? 'date' : null\"\n [attr.tabindex]=\"isFocusTarget(cell) ? 0 : -1\"\n (click)=\"selectDay(cell)\"\n (keydown)=\"onDayKeydown($event, cell)\"\n >\n {{ cell.date.getDate() }}\n </button>\n }\n </div>\n }\n </div>\n</div>\n", styles: [":host{display:inline-block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.calendar{width:20rem;padding:1rem;background:var(--surface-base, #ffffff);border:1px solid var(--border-base, #e5e7eb);border-radius:.75rem;box-shadow:0 2px 8px #0000000f}.calendar--disabled{opacity:.5;pointer-events:none}.calendar__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.calendar__title{font-size:1rem;font-weight:600;color:var(--text-base, #111827)}.calendar__nav-btn{background:none;border:none;cursor:pointer;padding:.375rem;border-radius:.375rem;display:flex;align-items:center;color:var(--text-muted, #6b7280);transition:background .1s ease}.calendar__nav-btn:hover{background:var(--surface-hover, #f3f4f6);color:var(--text-base, #111827)}.calendar__weekdays{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:.25rem}.calendar__weekday{text-align:center;font-size:.75rem;font-weight:600;color:var(--text-placeholder, #6b7280);padding:.25rem 0}.calendar__grid{display:grid;grid-template-columns:repeat(7,1fr);gap:.125rem}.calendar__day{display:flex;align-items:center;justify-content:center;aspect-ratio:1;border:none;background:transparent;border-radius:.5rem;font-size:.875rem;font-family:inherit;cursor:pointer;color:var(--text-base, #111827);transition:background .1s ease,color .1s ease}.calendar__day:focus-visible{outline:2px solid var(--primary-300, #a5b4fc);outline-offset:1px}.calendar__day:hover:not(:disabled):not(.calendar__day--disabled):not(.calendar__day--selected){background:var(--surface-hover, #f3f4f6)}.calendar__day--other{color:var(--text-muted, #6b7280)}.calendar__day--today{color:var(--fill-primary, #4f46e5);font-weight:700}.calendar__day--selected{background:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff);font-weight:600}.calendar__day--disabled{opacity:.35;cursor:not-allowed}.calendar__week{display:contents}\n"] }]
|
|
6686
7051
|
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }, { type: i0.Output, args: ["minDateChange"] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }, { type: i0.Output, args: ["maxDateChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }, { type: i0.Output, args: ["disabledChange"] }], dateSelect: [{ type: i0.Output, args: ["dateSelect"] }], gridRef: [{ type: i0.ViewChild, args: ['grid', { isSignal: true }] }] } });
|
|
6687
7052
|
|
|
6688
|
-
let nextId$
|
|
7053
|
+
let nextId$2 = 0;
|
|
6689
7054
|
class CommandPaletteComponent {
|
|
6690
7055
|
i18n = inject(NGX_DS_LABELS);
|
|
6691
7056
|
open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
@@ -6716,7 +7081,7 @@ class CommandPaletteComponent {
|
|
|
6716
7081
|
return Array.from(cats.entries()).map(([cat, items]) => ({ cat, items }));
|
|
6717
7082
|
}, ...(ngDevMode ? [{ debugName: "categories" }] : /* istanbul ignore next */ []));
|
|
6718
7083
|
flatItems = computed(() => this.filteredItems(), ...(ngDevMode ? [{ debugName: "flatItems" }] : /* istanbul ignore next */ []));
|
|
6719
|
-
listboxId = `ngx-cp-listbox-${nextId$
|
|
7084
|
+
listboxId = `ngx-cp-listbox-${nextId$2++}`;
|
|
6720
7085
|
optionId(item) {
|
|
6721
7086
|
return `${this.listboxId}-option-${item.id}`;
|
|
6722
7087
|
}
|
|
@@ -7259,7 +7624,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
7259
7624
|
args: [{ selector: 'ngx-ds-lightbox', standalone: true, imports: [IconComponent, FocusTrapDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (open() && item(); as img) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- backdrop click is a mouse shortcut; keyboard users close with Escape -->\n <div\n class=\"lightbox\"\n (click)=\"$event.target === $event.currentTarget && close()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerCancel()\"\n >\n <div\n class=\"lightbox__dialog\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"i18n.lightbox\"\n ngxFocusTrap\n tabindex=\"-1\"\n (keydown)=\"onKeydown($event)\"\n >\n <div class=\"lightbox__toolbar\">\n @if (count() > 1) {\n <span class=\"lightbox__counter\" aria-live=\"polite\">\n {{ i18n.slideOf(current() + 1, count()) }}\n </span>\n }\n <button\n type=\"button\"\n class=\"lightbox__btn lightbox__close\"\n [attr.aria-label]=\"i18n.close\"\n (click)=\"close()\"\n >\n <ngx-ds-icon [icon]=\"icons.X\" [size]=\"20\" />\n </button>\n </div>\n\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- clicks around the image close it, like the backdrop -->\n <figure class=\"lightbox__figure\" (click)=\"$event.target === $event.currentTarget && close()\">\n <img class=\"lightbox__image\" [src]=\"img.src\" [alt]=\"img.alt\" draggable=\"false\" />\n @if (img.caption) {\n <figcaption class=\"lightbox__caption\">{{ img.caption }}</figcaption>\n }\n </figure>\n\n @if (count() > 1) {\n <button\n type=\"button\"\n class=\"lightbox__btn lightbox__nav lightbox__nav--prev\"\n [disabled]=\"!canPrev()\"\n [attr.aria-label]=\"i18n.prevSlide\"\n (click)=\"prev()\"\n >\n <ngx-ds-icon [icon]=\"icons.ChevronLeft\" [size]=\"24\" />\n </button>\n <button\n type=\"button\"\n class=\"lightbox__btn lightbox__nav lightbox__nav--next\"\n [disabled]=\"!canNext()\"\n [attr.aria-label]=\"i18n.nextSlide\"\n (click)=\"next()\"\n >\n <ngx-ds-icon [icon]=\"icons.ChevronRight\" [size]=\"24\" />\n </button>\n }\n </div>\n </div>\n}\n", styles: [":host{display:contents;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.lightbox{position:fixed;inset:0;z-index:1100;background:#000000e6;touch-action:pan-y;animation:lightbox-in .18s ease}@media(prefers-reduced-motion:reduce){.lightbox{animation:none}}.lightbox__dialog{position:relative;width:100%;height:100%;outline:none}.lightbox__toolbar{position:absolute;inset:0 0 auto;z-index:1;display:flex;align-items:center;justify-content:flex-end;gap:1rem;padding:.75rem 1rem}.lightbox__counter{font-size:.875rem;color:#ffffffd9}.lightbox__figure{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;width:100%;height:100%;margin:0;padding:4rem 4.5rem 2rem;box-sizing:border-box}@media(max-width:640px){.lightbox__figure{padding:4rem .5rem 1.5rem}}.lightbox__image{display:block;max-width:100%;max-height:100%;min-height:0;flex:0 1 auto;object-fit:contain;border-radius:.25rem;-webkit-user-select:none;user-select:none}.lightbox__caption{max-width:48rem;font-size:.875rem;text-align:center;color:#ffffffe6}.lightbox__btn{display:inline-flex;align-items:center;justify-content:center;padding:0;color:#fff;background:#ffffff1f;border:none;border-radius:9999px;cursor:pointer;transition:background .15s ease,opacity .15s ease}.lightbox__btn:hover:not(:disabled){background:#ffffff3d}.lightbox__btn:focus-visible{outline:2px solid #fff;outline-offset:2px}.lightbox__btn:disabled{opacity:.3;cursor:not-allowed}.lightbox__close{width:2.5rem;height:2.5rem}.lightbox__nav{position:absolute;top:50%;width:3rem;height:3rem;transform:translateY(-50%)}.lightbox__nav--prev{left:1rem}.lightbox__nav--next{right:1rem}@media(max-width:640px){.lightbox__nav{top:auto;bottom:1rem;transform:none}}@keyframes lightbox-in{0%{opacity:0}}\n"] }]
|
|
7260
7625
|
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: false }] }, { type: i0.Output, args: ["indexChange"] }], loop: [{ type: i0.Input, args: [{ isSignal: true, alias: "loop", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
7261
7626
|
|
|
7262
|
-
let nextId = 0;
|
|
7627
|
+
let nextId$1 = 0;
|
|
7263
7628
|
/**
|
|
7264
7629
|
* Two resizable panes with a draggable divider. Project the panes with the
|
|
7265
7630
|
* `splitter-start` and `splitter-end` attributes.
|
|
@@ -7282,7 +7647,7 @@ class SplitterComponent {
|
|
|
7282
7647
|
/** Emitted with the final size after a drag or a keyboard change. */
|
|
7283
7648
|
resizeEnd = output();
|
|
7284
7649
|
// ── State ────────────────────────────────────────────────────
|
|
7285
|
-
paneId = `ngx-ds-splitter-${nextId++}`;
|
|
7650
|
+
paneId = `ngx-ds-splitter-${nextId$1++}`;
|
|
7286
7651
|
#dragging = signal(false, ...(ngDevMode ? [{ debugName: "#dragging" }] : /* istanbul ignore next */ []));
|
|
7287
7652
|
isDragging = this.#dragging.asReadonly();
|
|
7288
7653
|
/** Size before Enter collapsed the first pane. */
|
|
@@ -7376,6 +7741,60 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
7376
7741
|
args: [{ selector: 'ngx-ds-splitter', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"splitter\"\n [class.splitter--vertical]=\"!isHorizontal()\"\n [class.splitter--dragging]=\"isDragging()\"\n [style.grid-template-columns]=\"isHorizontal() ? template() : null\"\n [style.grid-template-rows]=\"isHorizontal() ? null : template()\"\n>\n <div class=\"splitter__pane\" [id]=\"paneId\">\n <ng-content select=\"[splitter-start]\" />\n </div>\n\n <div\n class=\"splitter__handle\"\n role=\"separator\"\n [attr.tabindex]=\"disabled() ? null : 0\"\n [attr.aria-label]=\"ariaLabel() || i18n.resizePanels\"\n [attr.aria-orientation]=\"separatorOrientation()\"\n [attr.aria-controls]=\"paneId\"\n [attr.aria-valuenow]=\"current()\"\n [attr.aria-valuemin]=\"min()\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-disabled]=\"disabled() || null\"\n (keydown)=\"onKeydown($event)\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n >\n <span class=\"splitter__grip\" aria-hidden=\"true\"></span>\n </div>\n\n <div class=\"splitter__pane\">\n <ng-content select=\"[splitter-end]\" />\n </div>\n</div>\n", styles: [":host{display:block;height:100%;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.splitter{display:grid;width:100%;height:100%}.splitter--dragging{cursor:col-resize;-webkit-user-select:none;user-select:none}.splitter--vertical.splitter--dragging{cursor:row-resize}.splitter__pane{min-width:0;min-height:0;overflow:auto}.splitter__handle{position:relative;display:flex;align-items:center;justify-content:center;width:.5rem;cursor:col-resize;touch-action:none}.splitter__handle:before{content:\"\";position:absolute;inset:0 calc(50% - .5px);background:var(--border-base, #e5e7eb);transition:background .15s ease}.splitter__handle:hover:before,.splitter--dragging>.splitter__handle:before{inset:0 calc(50% - 1px);background:var(--primary-500, #6366f1)}.splitter__handle:focus-visible{outline:2px solid var(--primary-500, #6366f1);outline-offset:-2px;border-radius:.25rem}.splitter__handle[aria-disabled=true]{cursor:default}.splitter__handle[aria-disabled=true]:before{background:var(--border-base, #e5e7eb)}.splitter__handle[aria-disabled=true] .splitter__grip{display:none}.splitter__grip{position:relative;width:.25rem;height:1.5rem;background:var(--surface-base, #ffffff);border:1px solid var(--border-strong, #d1d5db);border-radius:9999px}.splitter--vertical .splitter__handle{width:auto;height:.5rem;cursor:row-resize}.splitter--vertical .splitter__handle:before{inset:calc(50% - .5px) 0}.splitter--vertical .splitter__handle:hover:before{inset:calc(50% - 1px) 0}.splitter--vertical.splitter--dragging>.splitter__handle:before{inset:calc(50% - 1px) 0}.splitter--vertical .splitter__grip{width:1.5rem;height:.25rem}\n"] }]
|
|
7377
7742
|
}], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }, { type: i0.Output, args: ["sizeChange"] }], 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 }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], resizeEnd: [{ type: i0.Output, args: ["resizeEnd"] }] } });
|
|
7378
7743
|
|
|
7744
|
+
let nextId = 0;
|
|
7745
|
+
/**
|
|
7746
|
+
* Top application bar with brand, navigation links and actions. When the bar
|
|
7747
|
+
* is narrower than 768px the links move into a menu opened by a toggle button.
|
|
7748
|
+
*
|
|
7749
|
+
* Slots: `[navbar-brand]` (logo, app name) and `[navbar-actions]`
|
|
7750
|
+
* (NotificationCenter, UserMenu, buttons).
|
|
7751
|
+
*/
|
|
7752
|
+
class NavbarComponent {
|
|
7753
|
+
i18n = inject(NGX_DS_LABELS);
|
|
7754
|
+
items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
7755
|
+
activeId = input(null, ...(ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []));
|
|
7756
|
+
/** Sticks the bar to the top of its scroll container. */
|
|
7757
|
+
sticky = input(false, ...(ngDevMode ? [{ debugName: "sticky" }] : /* istanbul ignore next */ []));
|
|
7758
|
+
ariaLabel = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
7759
|
+
/** Whether the compact menu is open. */
|
|
7760
|
+
menuOpen = model(false, ...(ngDevMode ? [{ debugName: "menuOpen" }] : /* istanbul ignore next */ []));
|
|
7761
|
+
itemClick = output();
|
|
7762
|
+
panelId = `ngx-navbar-panel-${nextId++}`;
|
|
7763
|
+
menuIcon = Menu;
|
|
7764
|
+
closeIcon = X;
|
|
7765
|
+
toggle = viewChild('toggle', ...(ngDevMode ? [{ debugName: "toggle" }] : /* istanbul ignore next */ []));
|
|
7766
|
+
constructor() {
|
|
7767
|
+
setupClickOutside(() => this.menuOpen.set(false));
|
|
7768
|
+
setupEscapeClose(() => {
|
|
7769
|
+
if (!this.menuOpen())
|
|
7770
|
+
return;
|
|
7771
|
+
this.menuOpen.set(false);
|
|
7772
|
+
this.toggle()?.nativeElement.focus();
|
|
7773
|
+
});
|
|
7774
|
+
}
|
|
7775
|
+
toggleMenu() {
|
|
7776
|
+
this.menuOpen.update((open) => !open);
|
|
7777
|
+
}
|
|
7778
|
+
onItemClick(item) {
|
|
7779
|
+
if (item.disabled)
|
|
7780
|
+
return;
|
|
7781
|
+
this.itemClick.emit(item);
|
|
7782
|
+
this.menuOpen.set(false);
|
|
7783
|
+
}
|
|
7784
|
+
badgeCount(item) {
|
|
7785
|
+
return typeof item.badge === 'number' ? item.badge : undefined;
|
|
7786
|
+
}
|
|
7787
|
+
badgeLabel(item) {
|
|
7788
|
+
return typeof item.badge === 'string' ? item.badge : '';
|
|
7789
|
+
}
|
|
7790
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: NavbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7791
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: NavbarComponent, isStandalone: true, selector: "ngx-ds-navbar", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, activeId: { classPropertyName: "activeId", publicName: "activeId", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, menuOpen: { classPropertyName: "menuOpen", publicName: "menuOpen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { menuOpen: "menuOpenChange", itemClick: "itemClick" }, host: { properties: { "class.navbar-host--sticky": "sticky()" } }, viewQueries: [{ propertyName: "toggle", first: true, predicate: ["toggle"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #links>\n @for (item of items(); track item.id) {\n <button\n type=\"button\"\n class=\"navbar__link\"\n [class.navbar__link--active]=\"activeId() === item.id\"\n [disabled]=\"item.disabled\"\n [attr.aria-current]=\"activeId() === item.id ? 'page' : null\"\n (click)=\"onItemClick(item)\"\n >\n @if (item.icon) {\n <ngx-ds-icon [icon]=\"item.icon\" [size]=\"18\" class=\"navbar__link-icon\" />\n }\n <span class=\"navbar__link-label\">{{ item.label }}</span>\n @if (item.badge !== undefined) {\n <ngx-ds-badge size=\"sm\" [count]=\"badgeCount(item)\" [label]=\"badgeLabel(item)\" />\n }\n </button>\n }\n</ng-template>\n\n<header class=\"navbar\">\n <div class=\"navbar__bar\">\n @if (items().length) {\n <button\n #toggle\n type=\"button\"\n class=\"navbar__toggle\"\n [attr.aria-expanded]=\"menuOpen()\"\n [attr.aria-controls]=\"panelId\"\n [attr.aria-label]=\"menuOpen() ? i18n.closeMenu : i18n.openMenu\"\n (click)=\"toggleMenu()\"\n >\n <ngx-ds-icon [icon]=\"menuOpen() ? closeIcon : menuIcon\" [size]=\"20\" />\n </button>\n }\n\n <div class=\"navbar__brand\">\n <ng-content select=\"[navbar-brand]\" />\n </div>\n\n @if (items().length) {\n <nav class=\"navbar__nav\" [attr.aria-label]=\"ariaLabel() ?? i18n.mainNavigation\">\n <ng-container [ngTemplateOutlet]=\"links\" />\n </nav>\n }\n\n <div class=\"navbar__actions\">\n <ng-content select=\"[navbar-actions]\" />\n </div>\n </div>\n\n @if (menuOpen() && items().length) {\n <nav\n class=\"navbar__panel\"\n [id]=\"panelId\"\n [attr.aria-label]=\"ariaLabel() ?? i18n.mainNavigation\"\n >\n <ng-container [ngTemplateOutlet]=\"links\" />\n </nav>\n }\n</header>\n", styles: [":host{display:block;position:relative;container:navbar/inline-size;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}:host(.navbar-host--sticky){position:sticky;top:0;z-index:100}.navbar{background:var(--surface-base, #ffffff);border-bottom:1px solid var(--border-base, #e5e7eb)}.navbar__bar{display:flex;align-items:center;gap:1rem;height:3.5rem;padding:0 1rem}.navbar__brand{display:flex;align-items:center;flex-shrink:0;gap:.5rem;color:var(--text-base, #111827);font-weight:600}.navbar__brand:not(:has(*)){display:none}.navbar__nav{display:flex;align-items:center;gap:.25rem;min-width:0;overflow-x:auto}.navbar__actions{display:flex;align-items:center;gap:.5rem;margin-left:auto}.navbar__actions:not(:has(*)){display:none}.navbar__toggle{display:none;align-items:center;justify-content:center;flex-shrink:0;width:2.25rem;height:2.25rem;padding:0;border:none;border-radius:.375rem;background:transparent;color:var(--text-base, #111827);cursor:pointer}.navbar__toggle:hover{background:var(--surface-hover, #f3f4f6)}.navbar__toggle:focus-visible{outline:2px solid var(--primary-600, #4f46e5);outline-offset:2px}.navbar__link{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border:none;border-radius:.375rem;background:transparent;color:var(--text-muted, #6b7280);font:inherit;font-size:.875rem;font-weight:500;white-space:nowrap;cursor:pointer}.navbar__link:hover:not(:disabled){background:var(--surface-hover, #f3f4f6);color:var(--text-base, #111827)}.navbar__link:focus-visible{outline:2px solid var(--primary-600, #4f46e5);outline-offset:-2px}.navbar__link:disabled{color:var(--text-disabled, #9ca3af);cursor:not-allowed}.navbar__link--active,.navbar__link--active:hover:not(:disabled){background:var(--primary-50, #eef2ff);color:var(--primary-700, #4338ca)}.navbar__link-icon{flex-shrink:0}.navbar__panel{position:absolute;top:100%;left:0;right:0;z-index:1000;display:none;flex-direction:column;gap:.125rem;padding:.5rem;background:var(--surface-base, #ffffff);border-bottom:1px solid var(--border-base, #e5e7eb);box-shadow:0 4px 16px #0000001f}.navbar__panel .navbar__link{width:100%;text-align:left}.navbar__panel .navbar__link-label{flex:1}@container navbar (max-width: 767px){.navbar__nav{display:none}.navbar__toggle{display:inline-flex}.navbar__panel{display:flex}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }, { kind: "component", type: BadgeComponent, selector: "ngx-ds-badge", inputs: ["label", "count", "max", "dot", "size", "color", "variant", "rounded"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7792
|
+
}
|
|
7793
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: NavbarComponent, decorators: [{
|
|
7794
|
+
type: Component,
|
|
7795
|
+
args: [{ selector: 'ngx-ds-navbar', standalone: true, imports: [NgTemplateOutlet, IconComponent, BadgeComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: { '[class.navbar-host--sticky]': 'sticky()' }, template: "<ng-template #links>\n @for (item of items(); track item.id) {\n <button\n type=\"button\"\n class=\"navbar__link\"\n [class.navbar__link--active]=\"activeId() === item.id\"\n [disabled]=\"item.disabled\"\n [attr.aria-current]=\"activeId() === item.id ? 'page' : null\"\n (click)=\"onItemClick(item)\"\n >\n @if (item.icon) {\n <ngx-ds-icon [icon]=\"item.icon\" [size]=\"18\" class=\"navbar__link-icon\" />\n }\n <span class=\"navbar__link-label\">{{ item.label }}</span>\n @if (item.badge !== undefined) {\n <ngx-ds-badge size=\"sm\" [count]=\"badgeCount(item)\" [label]=\"badgeLabel(item)\" />\n }\n </button>\n }\n</ng-template>\n\n<header class=\"navbar\">\n <div class=\"navbar__bar\">\n @if (items().length) {\n <button\n #toggle\n type=\"button\"\n class=\"navbar__toggle\"\n [attr.aria-expanded]=\"menuOpen()\"\n [attr.aria-controls]=\"panelId\"\n [attr.aria-label]=\"menuOpen() ? i18n.closeMenu : i18n.openMenu\"\n (click)=\"toggleMenu()\"\n >\n <ngx-ds-icon [icon]=\"menuOpen() ? closeIcon : menuIcon\" [size]=\"20\" />\n </button>\n }\n\n <div class=\"navbar__brand\">\n <ng-content select=\"[navbar-brand]\" />\n </div>\n\n @if (items().length) {\n <nav class=\"navbar__nav\" [attr.aria-label]=\"ariaLabel() ?? i18n.mainNavigation\">\n <ng-container [ngTemplateOutlet]=\"links\" />\n </nav>\n }\n\n <div class=\"navbar__actions\">\n <ng-content select=\"[navbar-actions]\" />\n </div>\n </div>\n\n @if (menuOpen() && items().length) {\n <nav\n class=\"navbar__panel\"\n [id]=\"panelId\"\n [attr.aria-label]=\"ariaLabel() ?? i18n.mainNavigation\"\n >\n <ng-container [ngTemplateOutlet]=\"links\" />\n </nav>\n }\n</header>\n", styles: [":host{display:block;position:relative;container:navbar/inline-size;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}:host(.navbar-host--sticky){position:sticky;top:0;z-index:100}.navbar{background:var(--surface-base, #ffffff);border-bottom:1px solid var(--border-base, #e5e7eb)}.navbar__bar{display:flex;align-items:center;gap:1rem;height:3.5rem;padding:0 1rem}.navbar__brand{display:flex;align-items:center;flex-shrink:0;gap:.5rem;color:var(--text-base, #111827);font-weight:600}.navbar__brand:not(:has(*)){display:none}.navbar__nav{display:flex;align-items:center;gap:.25rem;min-width:0;overflow-x:auto}.navbar__actions{display:flex;align-items:center;gap:.5rem;margin-left:auto}.navbar__actions:not(:has(*)){display:none}.navbar__toggle{display:none;align-items:center;justify-content:center;flex-shrink:0;width:2.25rem;height:2.25rem;padding:0;border:none;border-radius:.375rem;background:transparent;color:var(--text-base, #111827);cursor:pointer}.navbar__toggle:hover{background:var(--surface-hover, #f3f4f6)}.navbar__toggle:focus-visible{outline:2px solid var(--primary-600, #4f46e5);outline-offset:2px}.navbar__link{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border:none;border-radius:.375rem;background:transparent;color:var(--text-muted, #6b7280);font:inherit;font-size:.875rem;font-weight:500;white-space:nowrap;cursor:pointer}.navbar__link:hover:not(:disabled){background:var(--surface-hover, #f3f4f6);color:var(--text-base, #111827)}.navbar__link:focus-visible{outline:2px solid var(--primary-600, #4f46e5);outline-offset:-2px}.navbar__link:disabled{color:var(--text-disabled, #9ca3af);cursor:not-allowed}.navbar__link--active,.navbar__link--active:hover:not(:disabled){background:var(--primary-50, #eef2ff);color:var(--primary-700, #4338ca)}.navbar__link-icon{flex-shrink:0}.navbar__panel{position:absolute;top:100%;left:0;right:0;z-index:1000;display:none;flex-direction:column;gap:.125rem;padding:.5rem;background:var(--surface-base, #ffffff);border-bottom:1px solid var(--border-base, #e5e7eb);box-shadow:0 4px 16px #0000001f}.navbar__panel .navbar__link{width:100%;text-align:left}.navbar__panel .navbar__link-label{flex:1}@container navbar (max-width: 767px){.navbar__nav{display:none}.navbar__toggle{display:inline-flex}.navbar__panel{display:flex}}\n"] }]
|
|
7796
|
+
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], activeId: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeId", required: false }] }], sticky: [{ type: i0.Input, args: [{ isSignal: true, alias: "sticky", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], menuOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuOpen", required: false }] }, { type: i0.Output, args: ["menuOpenChange"] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], toggle: [{ type: i0.ViewChild, args: ['toggle', { isSignal: true }] }] } });
|
|
7797
|
+
|
|
7379
7798
|
// Public API Surface of ngx-ds
|
|
7380
7799
|
// ── Services ────────────────────────────────────────────────
|
|
7381
7800
|
|
|
@@ -7383,5 +7802,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
7383
7802
|
* Generated bundle index. Do not edit.
|
|
7384
7803
|
*/
|
|
7385
7804
|
|
|
7386
|
-
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, 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, createPrimaryPalette, parseTime, provideNgxDs, provideNgxDsLabels, provideNgxDsLocale, stepIndex };
|
|
7805
|
+
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, DescriptionListComponent, DividerComponent, DrawerComponent, DropdownComponent, EmptyStateComponent, FileUploadComponent, FocusTrapDirective, FormFieldComponent, IconButtonComponent, IconComponent, InlineEditComponent, InputComponent, KbdComponent, LightboxComponent, MaskedInputComponent, MenuButtonComponent, MenuComponent, ModalComponent, MultiSelectComponent, NGX_DS_LABELS, NGX_DS_LABELS_EN, NGX_DS_LABELS_ES, NGX_DS_LOCALE, NavbarComponent, NotificationCenterComponent, NotificationItemComponent, NumberInputComponent, OtpInputComponent, PaginationComponent, PasswordStrengthComponent, PopoverComponent, ProgressBarComponent, RadioComponent, RangeSliderComponent, RatingComponent, SearchInputComponent, SegmentedControlComponent, SelectComponent, SidebarComponent, SkeletonComponent, SpinnerComponent, SplitterComponent, StatCardComponent, StepComponent, StepperComponent, SwitchComponent, TabComponent, TabContentDirective, TableComponent, TabsComponent, TagComponent, TagInputComponent, TextareaComponent, TimePickerComponent, TimelineComponent, TimelineItemComponent, ToastComponent, ToastrService, TooltipDirective, TreeNodeComponent, TreeSelectComponent, TreeViewComponent, UserMenuComponent, applyPrimaryColor, createPrimaryPalette, parseTime, provideNgxDs, provideNgxDsLabels, provideNgxDsLocale, stepIndex };
|
|
7387
7806
|
//# sourceMappingURL=jdpo2008-ngx-ds.mjs.map
|