@jdpo2008/ngx-ds 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/fesm2022/jdpo2008-ngx-ds.mjs +195 -144
- package/fesm2022/jdpo2008-ngx-ds.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/ngx-ds.scss +2 -3
- package/types/jdpo2008-ngx-ds.d.ts +91 -54
- package/styles/_legacy.scss +0 -53
|
@@ -14,7 +14,7 @@ class ToastrService {
|
|
|
14
14
|
const toast = {
|
|
15
15
|
...options,
|
|
16
16
|
id,
|
|
17
|
-
type: options.type || 'info',
|
|
17
|
+
type: options.type === 'error' ? 'danger' : options.type || 'info',
|
|
18
18
|
duration: options.duration || 5000,
|
|
19
19
|
position: options.position || 'top-right',
|
|
20
20
|
timestamp: Date.now(),
|
|
@@ -31,8 +31,12 @@ class ToastrService {
|
|
|
31
31
|
success(message, title, duration) {
|
|
32
32
|
return this.show({ message, type: 'success', title, duration });
|
|
33
33
|
}
|
|
34
|
+
danger(message, title, duration) {
|
|
35
|
+
return this.show({ message, type: 'danger', title, duration });
|
|
36
|
+
}
|
|
37
|
+
/** @deprecated Use `danger()`. Will be removed in 1.0. */
|
|
34
38
|
error(message, title, duration) {
|
|
35
|
-
return this.
|
|
39
|
+
return this.danger(message, title, duration);
|
|
36
40
|
}
|
|
37
41
|
warning(message, title, duration) {
|
|
38
42
|
return this.show({ message, type: 'warning', title, duration });
|
|
@@ -696,11 +700,11 @@ class SpinnerComponent {
|
|
|
696
700
|
return classes.join(' ');
|
|
697
701
|
}, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
698
702
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
699
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: SpinnerComponent, isStandalone: true, selector: "ngx-ds-spinner", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span [class]=\"hostClasses()\" role=\"status\" [attr.aria-label]=\"i18n.loading\"></span>\n", styles: [":host{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;line-height:0}.spinner{display:inline-block;border-radius:50%;border-style:solid;border-top-color:transparent!important;animation:ngx-spin .8s linear infinite}.spinner--xs{width:.875rem;height:.875rem;border-width:1.5px}.spinner--sm{width:1rem;height:1rem;border-width:2px}.spinner--md{width:1.25rem;height:1.25rem;border-width:2px}.spinner--lg{width:1.75rem;height:1.75rem;border-width:2.5px}.spinner--current{border-color:currentColor}.spinner--primary{border-color:var(--primary-500, #6366f1)}.spinner--secondary{border-color:var(--gray-500, #6b7280)}.spinner--danger{border-color:var(--danger-500, #ef4444)}.spinner--success{border-color:var(--success-500, #10b981)}.spinner--warning{border-color:var(--warning-500, #f59e0b)}@keyframes ngx-spin{to{transform:rotate(360deg)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
703
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: SpinnerComponent, isStandalone: true, selector: "ngx-ds-spinner", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, 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"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
700
704
|
}
|
|
701
705
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SpinnerComponent, decorators: [{
|
|
702
706
|
type: Component,
|
|
703
|
-
args: [{ selector: 'ngx-ds-spinner', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [class]=\"hostClasses()\" role=\"status\" [attr.aria-label]=\"i18n.loading\"></span>\n", styles: [":host{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;line-height:0}.spinner{display:inline-block;border-radius:50%;border-style:solid;border-top-color:transparent!important;animation:ngx-spin .8s linear infinite}.spinner--xs{width:.875rem;height:.875rem;border-width:1.5px}.spinner--sm{width:1rem;height:1rem;border-width:2px}.spinner--md{width:1.25rem;height:1.25rem;border-width:2px}.spinner--lg{width:1.75rem;height:1.75rem;border-width:2.5px}.spinner--current{border-color:currentColor}.spinner--primary{border-color:var(--primary-500, #6366f1)}.spinner--secondary{border-color:var(--gray-500, #6b7280)}.spinner--danger{border-color:var(--danger-500, #ef4444)}.spinner--success{border-color:var(--success-500, #10b981)}.spinner--warning{border-color:var(--warning-500, #f59e0b)}@keyframes ngx-spin{to{transform:rotate(360deg)}}\n"] }]
|
|
707
|
+
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
708
|
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
|
|
705
709
|
|
|
706
710
|
const ICON_SIZE$f = { sm: 14, md: 16, lg: 20 };
|
|
@@ -733,11 +737,11 @@ class ButtonComponent {
|
|
|
733
737
|
iconSize = computed(() => ICON_SIZE$f[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
734
738
|
spinnerSize = computed(() => SPINNER_SIZE[this.size()], ...(ngDevMode ? [{ debugName: "spinnerSize" }] : /* istanbul ignore next */ []));
|
|
735
739
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
736
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ButtonComponent, isStandalone: true, selector: "ngx-ds-button", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button\n [type]=\"type()\"\n [class]=\"hostClasses()\"\n [disabled]=\"disabled() || loading() || null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n>\n @if (loading()) {\n <ngx-ds-spinner class=\"btn__icon\" [size]=\"spinnerSize()\" color=\"current\" />\n } @else if (iconLeft()) {\n <ngx-ds-icon class=\"btn__icon\" [icon]=\"iconLeft()!\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n }\n <ng-content />\n @if (!loading() && iconRight()) {\n <ngx-ds-icon class=\"btn__icon\" [icon]=\"iconRight()!\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n }\n</button>\n", styles: [".btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif);font-weight:500;border-radius:.375rem;border:1.5px solid transparent;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease,filter .15s ease;white-space:nowrap;line-height:1;text-decoration:none;-webkit-user-select:none;user-select:none}.btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}.btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.btn--sm{padding:.375rem .75rem;font-size:.75rem}.btn--md{padding:.5rem 1rem;font-size:.875rem}.btn--lg{padding:.75rem 1.5rem;font-size:1rem}.btn--rounded{border-radius:9999px}.btn__icon{flex-shrink:0}.btn--loading{cursor:wait;pointer-events:none;opacity:.85}.btn--primary.btn--solid{background-color:var(--fill-primary, #4f46e5);border-color:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff)}.btn--primary.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--primary.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--primary.btn--outline{background-color:transparent;border-color:var(--fill-primary, #4f46e5);color:var(--fill-primary, #4f46e5)}.btn--primary.btn--outline:hover:not(:disabled){background-color:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff)}.btn--primary.btn--outline:active:not(:disabled){background-color:var(--fill-primary, #4f46e5);filter:brightness(.88);color:var(--text-on-color, #fff)}.btn--secondary.btn--solid{background-color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.btn--secondary.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--secondary.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--secondary.btn--outline{background-color:transparent;border-color:var(--fill-neutral, #6b7280);color:var(--fill-neutral, #6b7280)}.btn--secondary.btn--outline:hover:not(:disabled){background-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.btn--secondary.btn--outline:active:not(:disabled){background-color:var(--fill-neutral, #6b7280);filter:brightness(.88);color:var(--text-on-color, #fff)}.btn--danger.btn--solid{background-color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.btn--danger.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--danger.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--danger.btn--outline{background-color:transparent;border-color:var(--fill-danger, #dc2626);color:var(--fill-danger, #dc2626)}.btn--danger.btn--outline:hover:not(:disabled){background-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.btn--danger.btn--outline:active:not(:disabled){background-color:var(--fill-danger, #dc2626);filter:brightness(.88);color:var(--text-on-color, #fff)}.btn--success.btn--solid{background-color:var(--fill-success, #047857);border-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.btn--success.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--success.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--success.btn--outline{background-color:transparent;border-color:var(--fill-success, #047857);color:var(--fill-success, #047857)}.btn--success.btn--outline:hover:not(:disabled){background-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.btn--success.btn--outline:active:not(:disabled){background-color:var(--fill-success, #047857);filter:brightness(.88);color:var(--text-on-color, #fff)}.btn--warning.btn--solid{background-color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.btn--warning.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--warning.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--warning.btn--outline{background-color:transparent;border-color:var(--fill-warning, #b45309);color:var(--fill-warning, #b45309)}.btn--warning.btn--outline:hover:not(:disabled){background-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.btn--warning.btn--outline:active:not(:disabled){background-color:var(--fill-warning, #b45309);filter:brightness(.88);color:var(--text-on-color, #fff)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }, { kind: "component", type: SpinnerComponent, selector: "ngx-ds-spinner", inputs: ["size", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
740
|
+
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 });
|
|
737
741
|
}
|
|
738
742
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
739
743
|
type: Component,
|
|
740
|
-
args: [{ selector: 'ngx-ds-button', standalone: true, imports: [IconComponent, SpinnerComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n [type]=\"type()\"\n [class]=\"hostClasses()\"\n [disabled]=\"disabled() || loading() || null\"\n [attr.aria-label]=\"ariaLabel() ?? null\"\n>\n @if (loading()) {\n <ngx-ds-spinner class=\"btn__icon\" [size]=\"spinnerSize()\" color=\"current\" />\n } @else if (iconLeft()) {\n <ngx-ds-icon class=\"btn__icon\" [icon]=\"iconLeft()!\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n }\n <ng-content />\n @if (!loading() && iconRight()) {\n <ngx-ds-icon class=\"btn__icon\" [icon]=\"iconRight()!\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n }\n</button>\n", styles: [".btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif);font-weight:500;border-radius:.375rem;border:1.5px solid transparent;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease,filter .15s ease;white-space:nowrap;line-height:1;text-decoration:none;-webkit-user-select:none;user-select:none}.btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}.btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.btn--sm{padding:.375rem .75rem;font-size:.75rem}.btn--md{padding:.5rem 1rem;font-size:.875rem}.btn--lg{padding:.75rem 1.5rem;font-size:1rem}.btn--rounded{border-radius:9999px}.btn__icon{flex-shrink:0}.btn--loading{cursor:wait;pointer-events:none;opacity:.85}.btn--primary.btn--solid{background-color:var(--fill-primary, #4f46e5);border-color:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff)}.btn--primary.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--primary.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--primary.btn--outline{background-color:transparent;border-color:var(--fill-primary, #4f46e5);color:var(--fill-primary, #4f46e5)}.btn--primary.btn--outline:hover:not(:disabled){background-color:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff)}.btn--primary.btn--outline:active:not(:disabled){background-color:var(--fill-primary, #4f46e5);filter:brightness(.88);color:var(--text-on-color, #fff)}.btn--secondary.btn--solid{background-color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.btn--secondary.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--secondary.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--secondary.btn--outline{background-color:transparent;border-color:var(--fill-neutral, #6b7280);color:var(--fill-neutral, #6b7280)}.btn--secondary.btn--outline:hover:not(:disabled){background-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.btn--secondary.btn--outline:active:not(:disabled){background-color:var(--fill-neutral, #6b7280);filter:brightness(.88);color:var(--text-on-color, #fff)}.btn--danger.btn--solid{background-color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.btn--danger.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--danger.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--danger.btn--outline{background-color:transparent;border-color:var(--fill-danger, #dc2626);color:var(--fill-danger, #dc2626)}.btn--danger.btn--outline:hover:not(:disabled){background-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.btn--danger.btn--outline:active:not(:disabled){background-color:var(--fill-danger, #dc2626);filter:brightness(.88);color:var(--text-on-color, #fff)}.btn--success.btn--solid{background-color:var(--fill-success, #047857);border-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.btn--success.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--success.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--success.btn--outline{background-color:transparent;border-color:var(--fill-success, #047857);color:var(--fill-success, #047857)}.btn--success.btn--outline:hover:not(:disabled){background-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.btn--success.btn--outline:active:not(:disabled){background-color:var(--fill-success, #047857);filter:brightness(.88);color:var(--text-on-color, #fff)}.btn--warning.btn--solid{background-color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.btn--warning.btn--solid:hover:not(:disabled){filter:brightness(.88)}.btn--warning.btn--solid:active:not(:disabled){filter:brightness(.78)}.btn--warning.btn--outline{background-color:transparent;border-color:var(--fill-warning, #b45309);color:var(--fill-warning, #b45309)}.btn--warning.btn--outline:hover:not(:disabled){background-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.btn--warning.btn--outline:active:not(:disabled){background-color:var(--fill-warning, #b45309);filter:brightness(.88);color:var(--text-on-color, #fff)}\n"] }]
|
|
744
|
+
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
745
|
}], 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
746
|
|
|
743
747
|
const ICON_SIZE$e = { sm: 14, md: 18, lg: 22 };
|
|
@@ -766,11 +770,11 @@ class IconButtonComponent {
|
|
|
766
770
|
}, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
767
771
|
iconSize = computed(() => ICON_SIZE$e[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
768
772
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: IconButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
769
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: IconButtonComponent, isStandalone: true, selector: "ngx-ds-icon-button", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: true, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button\n [type]=\"type()\"\n [class]=\"hostClasses()\"\n [disabled]=\"disabled() || null\"\n [attr.aria-label]=\"ariaLabel()\"\n>\n <ngx-ds-icon [icon]=\"icon()\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n</button>\n", styles: [".icon-btn{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:.375rem;border:1.5px solid transparent;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease,filter .15s ease;-webkit-user-select:none;user-select:none}.icon-btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}.icon-btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.icon-btn--sm{width:1.75rem;height:1.75rem}.icon-btn--md{width:2.25rem;height:2.25rem}.icon-btn--lg{width:2.75rem;height:2.75rem}.icon-btn--rounded{border-radius:9999px}.icon-btn--primary.icon-btn--solid{background-color:var(--primary-500, #6366f1);border-color:var(--primary-500, #6366f1);color:var(--text-on-color, #fff)}.icon-btn--primary.icon-btn--solid:hover:not(:disabled){filter:brightness(.88)}.icon-btn--primary.icon-btn--solid:active:not(:disabled){filter:brightness(.78)}.icon-btn--primary.icon-btn--outline{background-color:transparent;border-color:var(--primary-500, #6366f1);color:var(--primary-500, #6366f1)}.icon-btn--primary.icon-btn--outline:hover:not(:disabled){background-color:var(--primary-500, #6366f1);color:var(--text-on-color, #fff)}.icon-btn--primary.icon-btn--outline:active:not(:disabled){background-color:var(--primary-500, #6366f1);filter:brightness(.88);color:var(--text-on-color, #fff)}.icon-btn--secondary.icon-btn--solid{background-color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.icon-btn--secondary.icon-btn--solid:hover:not(:disabled){filter:brightness(.88)}.icon-btn--secondary.icon-btn--solid:active:not(:disabled){filter:brightness(.78)}.icon-btn--secondary.icon-btn--outline{background-color:transparent;border-color:var(--fill-neutral, #6b7280);color:var(--fill-neutral, #6b7280)}.icon-btn--secondary.icon-btn--outline:hover:not(:disabled){background-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.icon-btn--secondary.icon-btn--outline:active:not(:disabled){background-color:var(--fill-neutral, #6b7280);filter:brightness(.88);color:var(--text-on-color, #fff)}.icon-btn--danger.icon-btn--solid{background-color:var(--danger-500, #ef4444);border-color:var(--danger-500, #ef4444);color:var(--text-on-color, #fff)}.icon-btn--danger.icon-btn--solid:hover:not(:disabled){filter:brightness(.88)}.icon-btn--danger.icon-btn--solid:active:not(:disabled){filter:brightness(.78)}.icon-btn--danger.icon-btn--outline{background-color:transparent;border-color:var(--danger-500, #ef4444);color:var(--danger-500, #ef4444)}.icon-btn--danger.icon-btn--outline:hover:not(:disabled){background-color:var(--danger-500, #ef4444);color:var(--text-on-color, #fff)}.icon-btn--danger.icon-btn--outline:active:not(:disabled){background-color:var(--danger-500, #ef4444);filter:brightness(.88);color:var(--text-on-color, #fff)}.icon-btn--success.icon-btn--solid{background-color:var(--success-500, #10b981);border-color:var(--success-500, #10b981);color:var(--text-on-color, #fff)}.icon-btn--success.icon-btn--solid:hover:not(:disabled){filter:brightness(.88)}.icon-btn--success.icon-btn--solid:active:not(:disabled){filter:brightness(.78)}.icon-btn--success.icon-btn--outline{background-color:transparent;border-color:var(--success-500, #10b981);color:var(--success-500, #10b981)}.icon-btn--success.icon-btn--outline:hover:not(:disabled){background-color:var(--success-500, #10b981);color:var(--text-on-color, #fff)}.icon-btn--success.icon-btn--outline:active:not(:disabled){background-color:var(--success-500, #10b981);filter:brightness(.88);color:var(--text-on-color, #fff)}.icon-btn--warning.icon-btn--solid{background-color:var(--warning-500, #f59e0b);border-color:var(--warning-500, #f59e0b);color:var(--text-on-color, #fff)}.icon-btn--warning.icon-btn--solid:hover:not(:disabled){filter:brightness(.88)}.icon-btn--warning.icon-btn--solid:active:not(:disabled){filter:brightness(.78)}.icon-btn--warning.icon-btn--outline{background-color:transparent;border-color:var(--warning-500, #f59e0b);color:var(--warning-500, #f59e0b)}.icon-btn--warning.icon-btn--outline:hover:not(:disabled){background-color:var(--warning-500, #f59e0b);color:var(--text-on-color, #fff)}.icon-btn--warning.icon-btn--outline:active:not(:disabled){background-color:var(--warning-500, #f59e0b);filter:brightness(.88);color:var(--text-on-color, #fff)}.icon-btn--borderless{border-color:transparent!important}.icon-btn--borderless:hover:not(:disabled),.icon-btn--borderless:active:not(:disabled){border-color:transparent!important}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
773
|
+
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
774
|
}
|
|
771
775
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: IconButtonComponent, decorators: [{
|
|
772
776
|
type: Component,
|
|
773
|
-
args: [{ selector: 'ngx-ds-icon-button', standalone: true, imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n [type]=\"type()\"\n [class]=\"hostClasses()\"\n [disabled]=\"disabled() || null\"\n [attr.aria-label]=\"ariaLabel()\"\n>\n <ngx-ds-icon [icon]=\"icon()\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n</button>\n", styles: [".icon-btn{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:.375rem;border:1.5px solid transparent;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease,filter .15s ease;-webkit-user-select:none;user-select:none}.icon-btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}.icon-btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.icon-btn--sm{width:1.75rem;height:1.75rem}.icon-btn--md{width:2.25rem;height:2.25rem}.icon-btn--lg{width:2.75rem;height:2.75rem}.icon-btn--rounded{border-radius:9999px}.icon-btn--primary.icon-btn--solid{background-color:var(--primary-500, #6366f1);border-color:var(--primary-500, #6366f1);color:var(--text-on-color, #fff)}.icon-btn--primary.icon-btn--solid:hover:not(:disabled){filter:brightness(.88)}.icon-btn--primary.icon-btn--solid:active:not(:disabled){filter:brightness(.78)}.icon-btn--primary.icon-btn--outline{background-color:transparent;border-color:var(--primary-500, #6366f1);color:var(--primary-500, #6366f1)}.icon-btn--primary.icon-btn--outline:hover:not(:disabled){background-color:var(--primary-500, #6366f1);color:var(--text-on-color, #fff)}.icon-btn--primary.icon-btn--outline:active:not(:disabled){background-color:var(--primary-500, #6366f1);filter:brightness(.88);color:var(--text-on-color, #fff)}.icon-btn--secondary.icon-btn--solid{background-color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.icon-btn--secondary.icon-btn--solid:hover:not(:disabled){filter:brightness(.88)}.icon-btn--secondary.icon-btn--solid:active:not(:disabled){filter:brightness(.78)}.icon-btn--secondary.icon-btn--outline{background-color:transparent;border-color:var(--fill-neutral, #6b7280);color:var(--fill-neutral, #6b7280)}.icon-btn--secondary.icon-btn--outline:hover:not(:disabled){background-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.icon-btn--secondary.icon-btn--outline:active:not(:disabled){background-color:var(--fill-neutral, #6b7280);filter:brightness(.88);color:var(--text-on-color, #fff)}.icon-btn--danger.icon-btn--solid{background-color:var(--danger-500, #ef4444);border-color:var(--danger-500, #ef4444);color:var(--text-on-color, #fff)}.icon-btn--danger.icon-btn--solid:hover:not(:disabled){filter:brightness(.88)}.icon-btn--danger.icon-btn--solid:active:not(:disabled){filter:brightness(.78)}.icon-btn--danger.icon-btn--outline{background-color:transparent;border-color:var(--danger-500, #ef4444);color:var(--danger-500, #ef4444)}.icon-btn--danger.icon-btn--outline:hover:not(:disabled){background-color:var(--danger-500, #ef4444);color:var(--text-on-color, #fff)}.icon-btn--danger.icon-btn--outline:active:not(:disabled){background-color:var(--danger-500, #ef4444);filter:brightness(.88);color:var(--text-on-color, #fff)}.icon-btn--success.icon-btn--solid{background-color:var(--success-500, #10b981);border-color:var(--success-500, #10b981);color:var(--text-on-color, #fff)}.icon-btn--success.icon-btn--solid:hover:not(:disabled){filter:brightness(.88)}.icon-btn--success.icon-btn--solid:active:not(:disabled){filter:brightness(.78)}.icon-btn--success.icon-btn--outline{background-color:transparent;border-color:var(--success-500, #10b981);color:var(--success-500, #10b981)}.icon-btn--success.icon-btn--outline:hover:not(:disabled){background-color:var(--success-500, #10b981);color:var(--text-on-color, #fff)}.icon-btn--success.icon-btn--outline:active:not(:disabled){background-color:var(--success-500, #10b981);filter:brightness(.88);color:var(--text-on-color, #fff)}.icon-btn--warning.icon-btn--solid{background-color:var(--warning-500, #f59e0b);border-color:var(--warning-500, #f59e0b);color:var(--text-on-color, #fff)}.icon-btn--warning.icon-btn--solid:hover:not(:disabled){filter:brightness(.88)}.icon-btn--warning.icon-btn--solid:active:not(:disabled){filter:brightness(.78)}.icon-btn--warning.icon-btn--outline{background-color:transparent;border-color:var(--warning-500, #f59e0b);color:var(--warning-500, #f59e0b)}.icon-btn--warning.icon-btn--outline:hover:not(:disabled){background-color:var(--warning-500, #f59e0b);color:var(--text-on-color, #fff)}.icon-btn--warning.icon-btn--outline:active:not(:disabled){background-color:var(--warning-500, #f59e0b);filter:brightness(.88);color:var(--text-on-color, #fff)}.icon-btn--borderless{border-color:transparent!important}.icon-btn--borderless:hover:not(:disabled),.icon-btn--borderless:active:not(:disabled){border-color:transparent!important}\n"] }]
|
|
777
|
+
args: [{ selector: 'ngx-ds-icon-button', standalone: true, imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, 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"] }]
|
|
774
778
|
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: true }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: true }] }], 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 }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
|
|
775
779
|
|
|
776
780
|
class AvatarComponent {
|
|
@@ -792,11 +796,11 @@ class AvatarComponent {
|
|
|
792
796
|
}, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
793
797
|
displayInitials = computed(() => this.initials().slice(0, 2).toUpperCase(), ...(ngDevMode ? [{ debugName: "displayInitials" }] : /* istanbul ignore next */ []));
|
|
794
798
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: AvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
795
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: AvatarComponent, isStandalone: true, selector: "ngx-ds-avatar", inputs: { src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span [class]=\"hostClasses()\">\n @if (src()) {\n <img [src]=\"src()\" [alt]=\"alt()\" class=\"avatar__img\" />\n } @else {\n <span class=\"avatar__initials\">{{ displayInitials() }}</span>\n }\n\n @if (status()) {\n <span class=\"avatar__status avatar__status--{{ status() }}\" aria-hidden=\"true\"></span>\n }\n</span>\n", styles: [".avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;-webkit-user-select:none;user-select:none;background-color:var(--surface-active, #e5e7eb)}.avatar--circle{border-radius:9999px}.avatar--square{border-radius:.375rem}.avatar--xs{width:1.5rem;height:1.5rem}.avatar--xs .avatar__initials{font-size:.625rem}.avatar--xs.avatar--bordered{outline:1px solid var(--surface-base, #fff);outline-offset:1px}.avatar--xs .avatar__status{width:.5rem;height:.5rem}.avatar--sm{width:2rem;height:2rem}.avatar--sm .avatar__initials{font-size:.75rem}.avatar--sm.avatar--bordered{outline:1.5px solid var(--surface-base, #fff);outline-offset:1.5px}.avatar--sm .avatar__status{width:.625rem;height:.625rem}.avatar--md{width:2.5rem;height:2.5rem}.avatar--md .avatar__initials{font-size:.875rem}.avatar--md.avatar--bordered{outline:2px solid var(--surface-base, #fff);outline-offset:2px}.avatar--md .avatar__status{width:.75rem;height:.75rem}.avatar--lg{width:3rem;height:3rem}.avatar--lg .avatar__initials{font-size:1rem}.avatar--lg.avatar--bordered{outline:2px solid var(--surface-base, #fff);outline-offset:2px}.avatar--lg .avatar__status{width:.875rem;height:.875rem}.avatar--xl{width:4rem;height:4rem}.avatar--xl .avatar__initials{font-size:1.25rem}.avatar--xl.avatar--bordered{outline:2.5px solid var(--surface-base, #fff);outline-offset:2.5px}.avatar--xl .avatar__status{width:1rem;height:1rem}.avatar--neutral{background-color:var(--surface-active, #e5e7eb);color:var(--text-base, #111827)}.avatar--primary{background-color:var(--info-100, #dbeafe);color:var(--info-700, #1d4ed8)}.avatar--secondary{background-color:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #374151)}.avatar--danger{background-color:var(--danger-100, #fee2e2);color:var(--danger-700, #b91c1c)}.avatar--success{background-color:var(--success-100, #d1fae5);color:var(--success-800, #065f46)}.avatar--warning{background-color:var(--warning-100, #fef3c7);color:var(--warning-800, #92400e)}.avatar__img{width:100%;height:100%;object-fit:cover}.avatar__initials{font-weight:600;line-height:1;letter-spacing:.02em}.avatar__status{position:absolute;bottom:0;right:0;border-radius:9999px;border:1.5px solid var(--surface-base, #fff)}.avatar__status--online{background-color:var(--success-500, #10b981)}.avatar__status--offline{background-color:var(--gray-400, #9ca3af)}.avatar__status--away{background-color:var(--warning-500, #f59e0b)}.avatar__status--busy{background-color:var(--danger-500, #ef4444)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
799
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: AvatarComponent, isStandalone: true, selector: "ngx-ds-avatar", inputs: { src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null }, initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span [class]=\"hostClasses()\">\n @if (src()) {\n <img [src]=\"src()\" [alt]=\"alt()\" class=\"avatar__img\" />\n } @else {\n <span class=\"avatar__initials\">{{ displayInitials() }}</span>\n }\n\n @if (status()) {\n <span class=\"avatar__status avatar__status--{{ status() }}\" aria-hidden=\"true\"></span>\n }\n</span>\n", styles: [".avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;-webkit-user-select:none;user-select:none;background-color:var(--surface-active, #e5e7eb)}.avatar--circle{border-radius:9999px}.avatar--square{border-radius:.375rem}.avatar--xs{width:1.5rem;height:1.5rem}.avatar--xs .avatar__initials{font-size:.625rem}.avatar--xs.avatar--bordered{outline:1px solid var(--surface-base, #fff);outline-offset:1px}.avatar--xs .avatar__status{width:.5rem;height:.5rem}.avatar--sm{width:2rem;height:2rem}.avatar--sm .avatar__initials{font-size:.75rem}.avatar--sm.avatar--bordered{outline:1.5px solid var(--surface-base, #fff);outline-offset:1.5px}.avatar--sm .avatar__status{width:.625rem;height:.625rem}.avatar--md{width:2.5rem;height:2.5rem}.avatar--md .avatar__initials{font-size:.875rem}.avatar--md.avatar--bordered{outline:2px solid var(--surface-base, #fff);outline-offset:2px}.avatar--md .avatar__status{width:.75rem;height:.75rem}.avatar--lg{width:3rem;height:3rem}.avatar--lg .avatar__initials{font-size:1rem}.avatar--lg.avatar--bordered{outline:2px solid var(--surface-base, #fff);outline-offset:2px}.avatar--lg .avatar__status{width:.875rem;height:.875rem}.avatar--xl{width:4rem;height:4rem}.avatar--xl .avatar__initials{font-size:1.25rem}.avatar--xl.avatar--bordered{outline:2.5px solid var(--surface-base, #fff);outline-offset:2.5px}.avatar--xl .avatar__status{width:1rem;height:1rem}.avatar--neutral{background-color:var(--surface-active, #e5e7eb);color:var(--text-base, #111827)}.avatar--primary{background-color:var(--info-100, #dbeafe);color:var(--info-700, #1d4ed8)}.avatar--secondary{background-color:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #374151)}.avatar--danger{background-color:var(--danger-100, #fee2e2);color:var(--danger-700, #b91c1c)}.avatar--success{background-color:var(--success-100, #d1fae5);color:var(--success-800, #065f46)}.avatar--warning{background-color:var(--warning-100, #fef3c7);color:var(--warning-800, #92400e)}.avatar--info{background-color:var(--info-100, #dbeafe);color:var(--info-800, #1e40af)}.avatar__img{width:100%;height:100%;object-fit:cover}.avatar__initials{font-weight:600;line-height:1;letter-spacing:.02em}.avatar__status{position:absolute;bottom:0;right:0;border-radius:9999px;border:1.5px solid var(--surface-base, #fff)}.avatar__status--online{background-color:var(--success-500, #10b981)}.avatar__status--offline{background-color:var(--gray-400, #9ca3af)}.avatar__status--away{background-color:var(--warning-500, #f59e0b)}.avatar__status--busy{background-color:var(--danger-500, #ef4444)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
796
800
|
}
|
|
797
801
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: AvatarComponent, decorators: [{
|
|
798
802
|
type: Component,
|
|
799
|
-
args: [{ selector: 'ngx-ds-avatar', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [class]=\"hostClasses()\">\n @if (src()) {\n <img [src]=\"src()\" [alt]=\"alt()\" class=\"avatar__img\" />\n } @else {\n <span class=\"avatar__initials\">{{ displayInitials() }}</span>\n }\n\n @if (status()) {\n <span class=\"avatar__status avatar__status--{{ status() }}\" aria-hidden=\"true\"></span>\n }\n</span>\n", styles: [".avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;-webkit-user-select:none;user-select:none;background-color:var(--surface-active, #e5e7eb)}.avatar--circle{border-radius:9999px}.avatar--square{border-radius:.375rem}.avatar--xs{width:1.5rem;height:1.5rem}.avatar--xs .avatar__initials{font-size:.625rem}.avatar--xs.avatar--bordered{outline:1px solid var(--surface-base, #fff);outline-offset:1px}.avatar--xs .avatar__status{width:.5rem;height:.5rem}.avatar--sm{width:2rem;height:2rem}.avatar--sm .avatar__initials{font-size:.75rem}.avatar--sm.avatar--bordered{outline:1.5px solid var(--surface-base, #fff);outline-offset:1.5px}.avatar--sm .avatar__status{width:.625rem;height:.625rem}.avatar--md{width:2.5rem;height:2.5rem}.avatar--md .avatar__initials{font-size:.875rem}.avatar--md.avatar--bordered{outline:2px solid var(--surface-base, #fff);outline-offset:2px}.avatar--md .avatar__status{width:.75rem;height:.75rem}.avatar--lg{width:3rem;height:3rem}.avatar--lg .avatar__initials{font-size:1rem}.avatar--lg.avatar--bordered{outline:2px solid var(--surface-base, #fff);outline-offset:2px}.avatar--lg .avatar__status{width:.875rem;height:.875rem}.avatar--xl{width:4rem;height:4rem}.avatar--xl .avatar__initials{font-size:1.25rem}.avatar--xl.avatar--bordered{outline:2.5px solid var(--surface-base, #fff);outline-offset:2.5px}.avatar--xl .avatar__status{width:1rem;height:1rem}.avatar--neutral{background-color:var(--surface-active, #e5e7eb);color:var(--text-base, #111827)}.avatar--primary{background-color:var(--info-100, #dbeafe);color:var(--info-700, #1d4ed8)}.avatar--secondary{background-color:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #374151)}.avatar--danger{background-color:var(--danger-100, #fee2e2);color:var(--danger-700, #b91c1c)}.avatar--success{background-color:var(--success-100, #d1fae5);color:var(--success-800, #065f46)}.avatar--warning{background-color:var(--warning-100, #fef3c7);color:var(--warning-800, #92400e)}.avatar__img{width:100%;height:100%;object-fit:cover}.avatar__initials{font-weight:600;line-height:1;letter-spacing:.02em}.avatar__status{position:absolute;bottom:0;right:0;border-radius:9999px;border:1.5px solid var(--surface-base, #fff)}.avatar__status--online{background-color:var(--success-500, #10b981)}.avatar__status--offline{background-color:var(--gray-400, #9ca3af)}.avatar__status--away{background-color:var(--warning-500, #f59e0b)}.avatar__status--busy{background-color:var(--danger-500, #ef4444)}\n"] }]
|
|
803
|
+
args: [{ selector: 'ngx-ds-avatar', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [class]=\"hostClasses()\">\n @if (src()) {\n <img [src]=\"src()\" [alt]=\"alt()\" class=\"avatar__img\" />\n } @else {\n <span class=\"avatar__initials\">{{ displayInitials() }}</span>\n }\n\n @if (status()) {\n <span class=\"avatar__status avatar__status--{{ status() }}\" aria-hidden=\"true\"></span>\n }\n</span>\n", styles: [".avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;-webkit-user-select:none;user-select:none;background-color:var(--surface-active, #e5e7eb)}.avatar--circle{border-radius:9999px}.avatar--square{border-radius:.375rem}.avatar--xs{width:1.5rem;height:1.5rem}.avatar--xs .avatar__initials{font-size:.625rem}.avatar--xs.avatar--bordered{outline:1px solid var(--surface-base, #fff);outline-offset:1px}.avatar--xs .avatar__status{width:.5rem;height:.5rem}.avatar--sm{width:2rem;height:2rem}.avatar--sm .avatar__initials{font-size:.75rem}.avatar--sm.avatar--bordered{outline:1.5px solid var(--surface-base, #fff);outline-offset:1.5px}.avatar--sm .avatar__status{width:.625rem;height:.625rem}.avatar--md{width:2.5rem;height:2.5rem}.avatar--md .avatar__initials{font-size:.875rem}.avatar--md.avatar--bordered{outline:2px solid var(--surface-base, #fff);outline-offset:2px}.avatar--md .avatar__status{width:.75rem;height:.75rem}.avatar--lg{width:3rem;height:3rem}.avatar--lg .avatar__initials{font-size:1rem}.avatar--lg.avatar--bordered{outline:2px solid var(--surface-base, #fff);outline-offset:2px}.avatar--lg .avatar__status{width:.875rem;height:.875rem}.avatar--xl{width:4rem;height:4rem}.avatar--xl .avatar__initials{font-size:1.25rem}.avatar--xl.avatar--bordered{outline:2.5px solid var(--surface-base, #fff);outline-offset:2.5px}.avatar--xl .avatar__status{width:1rem;height:1rem}.avatar--neutral{background-color:var(--surface-active, #e5e7eb);color:var(--text-base, #111827)}.avatar--primary{background-color:var(--info-100, #dbeafe);color:var(--info-700, #1d4ed8)}.avatar--secondary{background-color:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #374151)}.avatar--danger{background-color:var(--danger-100, #fee2e2);color:var(--danger-700, #b91c1c)}.avatar--success{background-color:var(--success-100, #d1fae5);color:var(--success-800, #065f46)}.avatar--warning{background-color:var(--warning-100, #fef3c7);color:var(--warning-800, #92400e)}.avatar--info{background-color:var(--info-100, #dbeafe);color:var(--info-800, #1e40af)}.avatar__img{width:100%;height:100%;object-fit:cover}.avatar__initials{font-weight:600;line-height:1;letter-spacing:.02em}.avatar__status{position:absolute;bottom:0;right:0;border-radius:9999px;border:1.5px solid var(--surface-base, #fff)}.avatar__status--online{background-color:var(--success-500, #10b981)}.avatar__status--offline{background-color:var(--gray-400, #9ca3af)}.avatar__status--away{background-color:var(--warning-500, #f59e0b)}.avatar__status--busy{background-color:var(--danger-500, #ef4444)}\n"] }]
|
|
800
804
|
}], propDecorators: { src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: false }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }], initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], shape: [{ type: i0.Input, args: [{ isSignal: true, alias: "shape", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }] } });
|
|
801
805
|
|
|
802
806
|
class BadgeComponent {
|
|
@@ -831,11 +835,11 @@ class BadgeComponent {
|
|
|
831
835
|
return parts.join(' ');
|
|
832
836
|
}, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
833
837
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: BadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
834
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: BadgeComponent, isStandalone: true, selector: "ngx-ds-badge", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, count: { classPropertyName: "count", publicName: "count", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, dot: { classPropertyName: "dot", publicName: "dot", 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 }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<span [class]=\"hostClasses()\">{{ displayText() }}</span>\n", styles: [".badge{display:inline-flex;align-items:center;justify-content:center;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif);font-weight:500;white-space:nowrap;line-height:1;border:1.5px solid transparent}.badge--rounded{border-radius:9999px}.badge:not(.badge--rounded){border-radius:.25rem}.badge--dot{padding:0;border-radius:9999px}.badge--dot.badge--sm{width:.5rem;height:.5rem}.badge--dot.badge--md{width:.625rem;height:.625rem}.badge--dot.badge--lg{width:.75rem;height:.75rem}.badge--sm:not(.badge--dot){font-size:.65rem;padding:.25rem .45rem}.badge--md:not(.badge--dot){font-size:.75rem;padding:.3rem .6rem}.badge--lg:not(.badge--dot){font-size:.875rem;padding:.4rem .75rem}.badge--primary.badge--solid{background-color:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff);border-color:var(--fill-primary, #4f46e5)}.badge--primary.badge--soft{background-color:var(--info-50, #eff6ff);color:var(--info-700, #1d4ed8);border-color:transparent}.badge--primary.badge--outline{background-color:transparent;color:var(--fill-primary, #4f46e5);border-color:var(--fill-primary, #4f46e5)}.badge--primary.badge--dot{background-color:var(--fill-primary, #4f46e5);border-color:var(--fill-primary, #4f46e5)}.badge--secondary.badge--solid{background-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff);border-color:var(--fill-neutral, #6b7280)}.badge--secondary.badge--soft{background-color:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #374151);border-color:transparent}.badge--secondary.badge--outline{background-color:transparent;color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280)}.badge--secondary.badge--dot{background-color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280)}.badge--danger.badge--solid{background-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff);border-color:var(--fill-danger, #dc2626)}.badge--danger.badge--soft{background-color:var(--danger-50, #fef2f2);color:var(--danger-700, #b91c1c);border-color:transparent}.badge--danger.badge--outline{background-color:transparent;color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626)}.badge--danger.badge--dot{background-color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626)}.badge--success.badge--solid{background-color:var(--fill-success, #047857);color:var(--text-on-color, #fff);border-color:var(--fill-success, #047857)}.badge--success.badge--soft{background-color:var(--success-50, #ecfdf5);color:var(--success-700, #047857);border-color:transparent}.badge--success.badge--outline{background-color:transparent;color:var(--fill-success, #047857);border-color:var(--fill-success, #047857)}.badge--success.badge--dot{background-color:var(--fill-success, #047857);border-color:var(--fill-success, #047857)}.badge--warning.badge--solid{background-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff);border-color:var(--fill-warning, #b45309)}.badge--warning.badge--soft{background-color:var(--warning-50, #fffbeb);color:var(--warning-700, #b45309);border-color:transparent}.badge--warning.badge--outline{background-color:transparent;color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309)}.badge--warning.badge--dot{background-color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
838
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.12", type: BadgeComponent, isStandalone: true, selector: "ngx-ds-badge", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, count: { classPropertyName: "count", publicName: "count", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, dot: { classPropertyName: "dot", publicName: "dot", 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 }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, 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"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
835
839
|
}
|
|
836
840
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: BadgeComponent, decorators: [{
|
|
837
841
|
type: Component,
|
|
838
|
-
args: [{ selector: 'ngx-ds-badge', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [class]=\"hostClasses()\">{{ displayText() }}</span>\n", styles: [".badge{display:inline-flex;align-items:center;justify-content:center;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif);font-weight:500;white-space:nowrap;line-height:1;border:1.5px solid transparent}.badge--rounded{border-radius:9999px}.badge:not(.badge--rounded){border-radius:.25rem}.badge--dot{padding:0;border-radius:9999px}.badge--dot.badge--sm{width:.5rem;height:.5rem}.badge--dot.badge--md{width:.625rem;height:.625rem}.badge--dot.badge--lg{width:.75rem;height:.75rem}.badge--sm:not(.badge--dot){font-size:.65rem;padding:.25rem .45rem}.badge--md:not(.badge--dot){font-size:.75rem;padding:.3rem .6rem}.badge--lg:not(.badge--dot){font-size:.875rem;padding:.4rem .75rem}.badge--primary.badge--solid{background-color:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff);border-color:var(--fill-primary, #4f46e5)}.badge--primary.badge--soft{background-color:var(--info-50, #eff6ff);color:var(--info-700, #1d4ed8);border-color:transparent}.badge--primary.badge--outline{background-color:transparent;color:var(--fill-primary, #4f46e5);border-color:var(--fill-primary, #4f46e5)}.badge--primary.badge--dot{background-color:var(--fill-primary, #4f46e5);border-color:var(--fill-primary, #4f46e5)}.badge--secondary.badge--solid{background-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff);border-color:var(--fill-neutral, #6b7280)}.badge--secondary.badge--soft{background-color:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #374151);border-color:transparent}.badge--secondary.badge--outline{background-color:transparent;color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280)}.badge--secondary.badge--dot{background-color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280)}.badge--danger.badge--solid{background-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff);border-color:var(--fill-danger, #dc2626)}.badge--danger.badge--soft{background-color:var(--danger-50, #fef2f2);color:var(--danger-700, #b91c1c);border-color:transparent}.badge--danger.badge--outline{background-color:transparent;color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626)}.badge--danger.badge--dot{background-color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626)}.badge--success.badge--solid{background-color:var(--fill-success, #047857);color:var(--text-on-color, #fff);border-color:var(--fill-success, #047857)}.badge--success.badge--soft{background-color:var(--success-50, #ecfdf5);color:var(--success-700, #047857);border-color:transparent}.badge--success.badge--outline{background-color:transparent;color:var(--fill-success, #047857);border-color:var(--fill-success, #047857)}.badge--success.badge--dot{background-color:var(--fill-success, #047857);border-color:var(--fill-success, #047857)}.badge--warning.badge--solid{background-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff);border-color:var(--fill-warning, #b45309)}.badge--warning.badge--soft{background-color:var(--warning-50, #fffbeb);color:var(--warning-700, #b45309);border-color:transparent}.badge--warning.badge--outline{background-color:transparent;color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309)}.badge--warning.badge--dot{background-color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309)}\n"] }]
|
|
842
|
+
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
843
|
}], 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
844
|
|
|
841
845
|
const ICON_SIZE$d = { sm: 12, md: 14, lg: 16 };
|
|
@@ -867,11 +871,11 @@ class TagComponent {
|
|
|
867
871
|
this.dismissed.emit();
|
|
868
872
|
}
|
|
869
873
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
870
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TagComponent, isStandalone: true, selector: "ngx-ds-tag", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", 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 }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dismissed: "dismissed" }, ngImport: i0, template: "<span [class]=\"hostClasses()\">\n @if (iconLeft()) {\n <ngx-ds-icon class=\"tag__icon\" [icon]=\"iconLeft()!\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n }\n\n <span class=\"tag__label\">{{ label() }}</span>\n\n @if (iconRight()) {\n <ngx-ds-icon class=\"tag__icon\" [icon]=\"iconRight()!\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n }\n\n @if (dismissible()) {\n <button\n type=\"button\"\n class=\"tag__dismiss\"\n [attr.aria-label]=\"i18n.removeTag(label())\"\n (click)=\"onDismiss()\"\n >\n <ngx-ds-icon [icon]=\"closeIcon\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n </button>\n }\n</span>\n", styles: [".tag{display:inline-flex;align-items:center;gap:.25rem;font-weight:500;line-height:1;white-space:nowrap;border:1.5px solid transparent;border-radius:.25rem;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.tag--rounded{border-radius:9999px}.tag--sm{padding:.125rem .5rem;font-size:.6875rem}.tag--md{padding:.25rem .625rem;font-size:.75rem}.tag--lg{padding:.375rem .75rem;font-size:.875rem}.tag__icon{flex-shrink:0}.tag__label{line-height:1}.tag__dismiss{display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;border:none;background:transparent;color:inherit;cursor:pointer;opacity:.7;transition:opacity .15s ease;flex-shrink:0}.tag__dismiss:hover{opacity:1}.tag__dismiss:focus-visible{outline:2px solid currentColor;outline-offset:1px;border-radius:2px}.tag--primary.tag--solid{background-color:var(--fill-primary, #4f46e5);border-color:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff)}.tag--primary.tag--outline{background-color:transparent;border-color:var(--fill-primary, #4f46e5);color:var(--fill-primary, #4f46e5)}.tag--primary.tag--soft{background-color:var(--info-100, #dbeafe);border-color:var(--info-100, #dbeafe);color:var(--info-700, #1d4ed8)}.tag--secondary.tag--solid{background-color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.tag--secondary.tag--outline{background-color:transparent;border-color:var(--fill-neutral, #6b7280);color:var(--fill-neutral, #6b7280)}.tag--secondary.tag--soft{background-color:var(--surface-muted, #f3f4f6);border-color:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #374151)}.tag--danger.tag--solid{background-color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.tag--danger.tag--outline{background-color:transparent;border-color:var(--fill-danger, #dc2626);color:var(--fill-danger, #dc2626)}.tag--danger.tag--soft{background-color:var(--danger-100, #fee2e2);border-color:var(--danger-100, #fee2e2);color:var(--danger-700, #b91c1c)}.tag--success.tag--solid{background-color:var(--fill-success, #047857);border-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.tag--success.tag--outline{background-color:transparent;border-color:var(--fill-success, #047857);color:var(--fill-success, #047857)}.tag--success.tag--soft{background-color:var(--success-100, #d1fae5);border-color:var(--success-100, #d1fae5);color:var(--success-800, #065f46)}.tag--warning.tag--solid{background-color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.tag--warning.tag--outline{background-color:transparent;border-color:var(--fill-warning, #b45309);color:var(--fill-warning, #b45309)}.tag--warning.tag--soft{background-color:var(--warning-100, #fef3c7);border-color:var(--warning-100, #fef3c7);color:var(--warning-800, #92400e)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
874
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TagComponent, isStandalone: true, selector: "ngx-ds-tag", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", 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 }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dismissed: "dismissed" }, ngImport: i0, template: "<span [class]=\"hostClasses()\">\n @if (iconLeft()) {\n <ngx-ds-icon class=\"tag__icon\" [icon]=\"iconLeft()!\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n }\n\n <span class=\"tag__label\">{{ label() }}</span>\n\n @if (iconRight()) {\n <ngx-ds-icon class=\"tag__icon\" [icon]=\"iconRight()!\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n }\n\n @if (dismissible()) {\n <button\n type=\"button\"\n class=\"tag__dismiss\"\n [attr.aria-label]=\"i18n.removeTag(label())\"\n (click)=\"onDismiss()\"\n >\n <ngx-ds-icon [icon]=\"closeIcon\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n </button>\n }\n</span>\n", styles: [".tag{display:inline-flex;align-items:center;gap:.25rem;font-weight:500;line-height:1;white-space:nowrap;border:1.5px solid transparent;border-radius:.25rem;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.tag--rounded{border-radius:9999px}.tag--sm{padding:.125rem .5rem;font-size:.6875rem}.tag--md{padding:.25rem .625rem;font-size:.75rem}.tag--lg{padding:.375rem .75rem;font-size:.875rem}.tag__icon{flex-shrink:0}.tag__label{line-height:1}.tag__dismiss{display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;border:none;background:transparent;color:inherit;cursor:pointer;opacity:.7;transition:opacity .15s ease;flex-shrink:0}.tag__dismiss:hover{opacity:1}.tag__dismiss:focus-visible{outline:2px solid currentColor;outline-offset:1px;border-radius:2px}.tag--primary.tag--solid{background-color:var(--fill-primary, #4f46e5);border-color:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff)}.tag--primary.tag--outline{background-color:transparent;border-color:var(--fill-primary, #4f46e5);color:var(--fill-primary, #4f46e5)}.tag--primary.tag--soft{background-color:var(--info-100, #dbeafe);border-color:var(--info-100, #dbeafe);color:var(--info-700, #1d4ed8)}.tag--secondary.tag--solid{background-color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.tag--secondary.tag--outline{background-color:transparent;border-color:var(--fill-neutral, #6b7280);color:var(--fill-neutral, #6b7280)}.tag--secondary.tag--soft{background-color:var(--surface-muted, #f3f4f6);border-color:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #374151)}.tag--danger.tag--solid{background-color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.tag--danger.tag--outline{background-color:transparent;border-color:var(--fill-danger, #dc2626);color:var(--fill-danger, #dc2626)}.tag--danger.tag--soft{background-color:var(--danger-100, #fee2e2);border-color:var(--danger-100, #fee2e2);color:var(--danger-700, #b91c1c)}.tag--success.tag--solid{background-color:var(--fill-success, #047857);border-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.tag--success.tag--outline{background-color:transparent;border-color:var(--fill-success, #047857);color:var(--fill-success, #047857)}.tag--success.tag--soft{background-color:var(--success-100, #d1fae5);border-color:var(--success-100, #d1fae5);color:var(--success-800, #065f46)}.tag--warning.tag--solid{background-color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.tag--warning.tag--outline{background-color:transparent;border-color:var(--fill-warning, #b45309);color:var(--fill-warning, #b45309)}.tag--warning.tag--soft{background-color:var(--warning-100, #fef3c7);border-color:var(--warning-100, #fef3c7);color:var(--warning-800, #92400e)}.tag--info.tag--solid{background-color:var(--fill-info, #2563eb);border-color:var(--fill-info, #2563eb);color:var(--text-on-color, #fff)}.tag--info.tag--outline{background-color:transparent;border-color:var(--fill-info, #2563eb);color:var(--fill-info, #2563eb)}.tag--info.tag--soft{background-color:var(--info-100, #dbeafe);border-color:var(--info-100, #dbeafe);color:var(--info-800, #1e40af)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
871
875
|
}
|
|
872
876
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TagComponent, decorators: [{
|
|
873
877
|
type: Component,
|
|
874
|
-
args: [{ selector: 'ngx-ds-tag', standalone: true, imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [class]=\"hostClasses()\">\n @if (iconLeft()) {\n <ngx-ds-icon class=\"tag__icon\" [icon]=\"iconLeft()!\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n }\n\n <span class=\"tag__label\">{{ label() }}</span>\n\n @if (iconRight()) {\n <ngx-ds-icon class=\"tag__icon\" [icon]=\"iconRight()!\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n }\n\n @if (dismissible()) {\n <button\n type=\"button\"\n class=\"tag__dismiss\"\n [attr.aria-label]=\"i18n.removeTag(label())\"\n (click)=\"onDismiss()\"\n >\n <ngx-ds-icon [icon]=\"closeIcon\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n </button>\n }\n</span>\n", styles: [".tag{display:inline-flex;align-items:center;gap:.25rem;font-weight:500;line-height:1;white-space:nowrap;border:1.5px solid transparent;border-radius:.25rem;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.tag--rounded{border-radius:9999px}.tag--sm{padding:.125rem .5rem;font-size:.6875rem}.tag--md{padding:.25rem .625rem;font-size:.75rem}.tag--lg{padding:.375rem .75rem;font-size:.875rem}.tag__icon{flex-shrink:0}.tag__label{line-height:1}.tag__dismiss{display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;border:none;background:transparent;color:inherit;cursor:pointer;opacity:.7;transition:opacity .15s ease;flex-shrink:0}.tag__dismiss:hover{opacity:1}.tag__dismiss:focus-visible{outline:2px solid currentColor;outline-offset:1px;border-radius:2px}.tag--primary.tag--solid{background-color:var(--fill-primary, #4f46e5);border-color:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff)}.tag--primary.tag--outline{background-color:transparent;border-color:var(--fill-primary, #4f46e5);color:var(--fill-primary, #4f46e5)}.tag--primary.tag--soft{background-color:var(--info-100, #dbeafe);border-color:var(--info-100, #dbeafe);color:var(--info-700, #1d4ed8)}.tag--secondary.tag--solid{background-color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.tag--secondary.tag--outline{background-color:transparent;border-color:var(--fill-neutral, #6b7280);color:var(--fill-neutral, #6b7280)}.tag--secondary.tag--soft{background-color:var(--surface-muted, #f3f4f6);border-color:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #374151)}.tag--danger.tag--solid{background-color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.tag--danger.tag--outline{background-color:transparent;border-color:var(--fill-danger, #dc2626);color:var(--fill-danger, #dc2626)}.tag--danger.tag--soft{background-color:var(--danger-100, #fee2e2);border-color:var(--danger-100, #fee2e2);color:var(--danger-700, #b91c1c)}.tag--success.tag--solid{background-color:var(--fill-success, #047857);border-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.tag--success.tag--outline{background-color:transparent;border-color:var(--fill-success, #047857);color:var(--fill-success, #047857)}.tag--success.tag--soft{background-color:var(--success-100, #d1fae5);border-color:var(--success-100, #d1fae5);color:var(--success-800, #065f46)}.tag--warning.tag--solid{background-color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.tag--warning.tag--outline{background-color:transparent;border-color:var(--fill-warning, #b45309);color:var(--fill-warning, #b45309)}.tag--warning.tag--soft{background-color:var(--warning-100, #fef3c7);border-color:var(--warning-100, #fef3c7);color:var(--warning-800, #92400e)}\n"] }]
|
|
878
|
+
args: [{ selector: 'ngx-ds-tag', standalone: true, imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<span [class]=\"hostClasses()\">\n @if (iconLeft()) {\n <ngx-ds-icon class=\"tag__icon\" [icon]=\"iconLeft()!\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n }\n\n <span class=\"tag__label\">{{ label() }}</span>\n\n @if (iconRight()) {\n <ngx-ds-icon class=\"tag__icon\" [icon]=\"iconRight()!\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n }\n\n @if (dismissible()) {\n <button\n type=\"button\"\n class=\"tag__dismiss\"\n [attr.aria-label]=\"i18n.removeTag(label())\"\n (click)=\"onDismiss()\"\n >\n <ngx-ds-icon [icon]=\"closeIcon\" [size]=\"iconSize()\" aria-hidden=\"true\" />\n </button>\n }\n</span>\n", styles: [".tag{display:inline-flex;align-items:center;gap:.25rem;font-weight:500;line-height:1;white-space:nowrap;border:1.5px solid transparent;border-radius:.25rem;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.tag--rounded{border-radius:9999px}.tag--sm{padding:.125rem .5rem;font-size:.6875rem}.tag--md{padding:.25rem .625rem;font-size:.75rem}.tag--lg{padding:.375rem .75rem;font-size:.875rem}.tag__icon{flex-shrink:0}.tag__label{line-height:1}.tag__dismiss{display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;border:none;background:transparent;color:inherit;cursor:pointer;opacity:.7;transition:opacity .15s ease;flex-shrink:0}.tag__dismiss:hover{opacity:1}.tag__dismiss:focus-visible{outline:2px solid currentColor;outline-offset:1px;border-radius:2px}.tag--primary.tag--solid{background-color:var(--fill-primary, #4f46e5);border-color:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff)}.tag--primary.tag--outline{background-color:transparent;border-color:var(--fill-primary, #4f46e5);color:var(--fill-primary, #4f46e5)}.tag--primary.tag--soft{background-color:var(--info-100, #dbeafe);border-color:var(--info-100, #dbeafe);color:var(--info-700, #1d4ed8)}.tag--secondary.tag--solid{background-color:var(--fill-neutral, #6b7280);border-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.tag--secondary.tag--outline{background-color:transparent;border-color:var(--fill-neutral, #6b7280);color:var(--fill-neutral, #6b7280)}.tag--secondary.tag--soft{background-color:var(--surface-muted, #f3f4f6);border-color:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #374151)}.tag--danger.tag--solid{background-color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.tag--danger.tag--outline{background-color:transparent;border-color:var(--fill-danger, #dc2626);color:var(--fill-danger, #dc2626)}.tag--danger.tag--soft{background-color:var(--danger-100, #fee2e2);border-color:var(--danger-100, #fee2e2);color:var(--danger-700, #b91c1c)}.tag--success.tag--solid{background-color:var(--fill-success, #047857);border-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.tag--success.tag--outline{background-color:transparent;border-color:var(--fill-success, #047857);color:var(--fill-success, #047857)}.tag--success.tag--soft{background-color:var(--success-100, #d1fae5);border-color:var(--success-100, #d1fae5);color:var(--success-800, #065f46)}.tag--warning.tag--solid{background-color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.tag--warning.tag--outline{background-color:transparent;border-color:var(--fill-warning, #b45309);color:var(--fill-warning, #b45309)}.tag--warning.tag--soft{background-color:var(--warning-100, #fef3c7);border-color:var(--warning-100, #fef3c7);color:var(--warning-800, #92400e)}.tag--info.tag--solid{background-color:var(--fill-info, #2563eb);border-color:var(--fill-info, #2563eb);color:var(--text-on-color, #fff)}.tag--info.tag--outline{background-color:transparent;border-color:var(--fill-info, #2563eb);color:var(--fill-info, #2563eb)}.tag--info.tag--soft{background-color:var(--info-100, #dbeafe);border-color:var(--info-100, #dbeafe);color:var(--info-800, #1e40af)}\n"] }]
|
|
875
879
|
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], 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 }] }], iconLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeft", required: false }] }], iconRight: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconRight", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], dismissed: [{ type: i0.Output, args: ["dismissed"] }] } });
|
|
876
880
|
|
|
877
881
|
class ProgressBarComponent {
|
|
@@ -913,11 +917,11 @@ class ProgressBarComponent {
|
|
|
913
917
|
.join(' ');
|
|
914
918
|
}, ...(ngDevMode ? [{ debugName: "barClasses" }] : /* istanbul ignore next */ []));
|
|
915
919
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
916
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ProgressBarComponent, isStandalone: true, selector: "ngx-ds-progress-bar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", 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 }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, animated: { classPropertyName: "animated", publicName: "animated", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@if (label() || (showValue() && !indeterminate())) {\n <div class=\"progress__header\">\n @if (label()) {\n <span class=\"progress__label\">{{ label() }}</span>\n }\n @if (showValue() && !indeterminate()) {\n <span class=\"progress__value\">{{ displayValue() }}</span>\n }\n </div>\n}\n\n<div\n [class]=\"trackClasses()\"\n role=\"progressbar\"\n [attr.aria-valuenow]=\"indeterminate() ? null : value()\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-label]=\"label() || i18n.progress\"\n>\n <div [class]=\"barClasses()\" [style.width.%]=\"indeterminate() ? null : percentage()\"></div>\n</div>\n", styles: ["@keyframes progress-stripes{0%{background-position:1.5rem 0}to{background-position:0 0}}@keyframes progress-indeterminate{0%{margin-left:-40%}to{margin-left:100%}}.progress{width:100%;background-color:var(--surface-active, #e5e7eb);overflow:hidden;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.progress__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.375rem}.progress__label{font-size:.8125rem;font-weight:500;color:var(--text-secondary, #374151)}.progress__value{font-size:.8125rem;font-weight:600;color:var(--text-muted, #6b7280)}.progress--rounded{border-radius:9999px}.progress--sm{height:.25rem}.progress--md{height:.5rem}.progress--lg{height:.875rem}.progress__bar{height:100%;transition:width .4s ease}.progress__bar--rounded{border-radius:9999px}.progress__bar--striped{background-image:repeating-linear-gradient(45deg,transparent,transparent .625rem,rgba(255,255,255,.2) .625rem,rgba(255,255,255,.2) 1.25rem);background-size:1.5rem 1.5rem}.progress__bar--animated{animation:progress-stripes .8s linear infinite}.progress__bar--indeterminate{width:40%!important;animation:progress-indeterminate 1.2s ease-in-out infinite}.progress--primary .progress__bar{background-color:var(--primary-500, #6366f1)}.progress--secondary .progress__bar{background-color:var(--fill-neutral, #6b7280)}.progress--danger .progress__bar{background-color:var(--danger-500, #ef4444)}.progress--success .progress__bar{background-color:var(--success-500, #10b981)}.progress--warning .progress__bar{background-color:var(--warning-500, #f59e0b)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
920
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ProgressBarComponent, isStandalone: true, selector: "ngx-ds-progress-bar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", 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 }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, animated: { classPropertyName: "animated", publicName: "animated", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, 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"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
917
921
|
}
|
|
918
922
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ProgressBarComponent, decorators: [{
|
|
919
923
|
type: Component,
|
|
920
|
-
args: [{ selector: 'ngx-ds-progress-bar', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (label() || (showValue() && !indeterminate())) {\n <div class=\"progress__header\">\n @if (label()) {\n <span class=\"progress__label\">{{ label() }}</span>\n }\n @if (showValue() && !indeterminate()) {\n <span class=\"progress__value\">{{ displayValue() }}</span>\n }\n </div>\n}\n\n<div\n [class]=\"trackClasses()\"\n role=\"progressbar\"\n [attr.aria-valuenow]=\"indeterminate() ? null : value()\"\n [attr.aria-valuemin]=\"0\"\n [attr.aria-valuemax]=\"max()\"\n [attr.aria-label]=\"label() || i18n.progress\"\n>\n <div [class]=\"barClasses()\" [style.width.%]=\"indeterminate() ? null : percentage()\"></div>\n</div>\n", styles: ["@keyframes progress-stripes{0%{background-position:1.5rem 0}to{background-position:0 0}}@keyframes progress-indeterminate{0%{margin-left:-40%}to{margin-left:100%}}.progress{width:100%;background-color:var(--surface-active, #e5e7eb);overflow:hidden;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.progress__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.375rem}.progress__label{font-size:.8125rem;font-weight:500;color:var(--text-secondary, #374151)}.progress__value{font-size:.8125rem;font-weight:600;color:var(--text-muted, #6b7280)}.progress--rounded{border-radius:9999px}.progress--sm{height:.25rem}.progress--md{height:.5rem}.progress--lg{height:.875rem}.progress__bar{height:100%;transition:width .4s ease}.progress__bar--rounded{border-radius:9999px}.progress__bar--striped{background-image:repeating-linear-gradient(45deg,transparent,transparent .625rem,rgba(255,255,255,.2) .625rem,rgba(255,255,255,.2) 1.25rem);background-size:1.5rem 1.5rem}.progress__bar--animated{animation:progress-stripes .8s linear infinite}.progress__bar--indeterminate{width:40%!important;animation:progress-indeterminate 1.2s ease-in-out infinite}.progress--primary .progress__bar{background-color:var(--primary-500, #6366f1)}.progress--secondary .progress__bar{background-color:var(--fill-neutral, #6b7280)}.progress--danger .progress__bar{background-color:var(--danger-500, #ef4444)}.progress--success .progress__bar{background-color:var(--success-500, #10b981)}.progress--warning .progress__bar{background-color:var(--warning-500, #f59e0b)}\n"] }]
|
|
924
|
+
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
925
|
}], 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
926
|
|
|
923
927
|
const ICON_SIZE$c = { sm: 14, md: 16, lg: 18 };
|
|
@@ -937,11 +941,11 @@ class MenuButtonComponent {
|
|
|
937
941
|
}, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
938
942
|
iconSize = computed(() => ICON_SIZE$c[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
939
943
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: MenuButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
940
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: MenuButtonComponent, isStandalone: true, selector: "ngx-ds-menu-button", inputs: { iconLeft: { classPropertyName: "iconLeft", publicName: "iconLeft", isSignal: true, isRequired: false, transformFunction: null }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, fullWidth: { classPropertyName: "fullWidth", publicName: "fullWidth", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button [type]=\"type()\" [class]=\"hostClasses()\" [disabled]=\"disabled() || null\">\n @if (iconLeft()) {\n <ngx-ds-icon\n class=\"menu-btn__icon\"\n [icon]=\"iconLeft()!\"\n [size]=\"iconSize()\"\n aria-hidden=\"true\"\n />\n }\n <ng-content />\n @if (iconRight()) {\n <ngx-ds-icon\n class=\"menu-btn__icon\"\n [icon]=\"iconRight()!\"\n [size]=\"iconSize()\"\n aria-hidden=\"true\"\n />\n }\n</button>\n", styles: [".menu-btn{display:inline-flex;align-items:center;gap:.5rem;border:none;background:transparent;cursor:pointer;border-radius:.375rem;white-space:nowrap;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif);font-weight:400;line-height:1;-webkit-user-select:none;user-select:none;transition:background .12s ease,color .12s ease}.menu-btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}.menu-btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.menu-btn--sm{padding:.375rem .625rem;font-size:.8125rem}.menu-btn--md{padding:.5rem .75rem;font-size:.875rem}.menu-btn--lg{padding:.625rem 1rem;font-size:1rem}.menu-btn--full{width:100%;justify-content:flex-start}.menu-btn--default{color:var(--text-base, #111827)}.menu-btn--default:hover:not(:disabled){background:var(--surface-hover, #f3f4f6)}.menu-btn--primary{color:var(--fill-primary, #4f46e5)}.menu-btn--primary:hover:not(:disabled){background:var(--primary-50, #eef2ff)}.menu-btn--danger{color:var(--fill-danger, #dc2626)}.menu-btn--danger:hover:not(:disabled){background:var(--danger-50, #fef2f2)}.menu-btn--success{color:var(--fill-success, #047857)}.menu-btn--success:hover:not(:disabled){background:var(--success-50, #ecfdf5)}.menu-btn--warning{color:var(--fill-warning, #b45309)}.menu-btn--warning:hover:not(:disabled){background:var(--warning-50, #fffbeb)}.menu-btn__icon{flex-shrink:0}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
944
|
+
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
945
|
}
|
|
942
946
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: MenuButtonComponent, decorators: [{
|
|
943
947
|
type: Component,
|
|
944
|
-
args: [{ selector: 'ngx-ds-menu-button', standalone: true, imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button [type]=\"type()\" [class]=\"hostClasses()\" [disabled]=\"disabled() || null\">\n @if (iconLeft()) {\n <ngx-ds-icon\n class=\"menu-btn__icon\"\n [icon]=\"iconLeft()!\"\n [size]=\"iconSize()\"\n aria-hidden=\"true\"\n />\n }\n <ng-content />\n @if (iconRight()) {\n <ngx-ds-icon\n class=\"menu-btn__icon\"\n [icon]=\"iconRight()!\"\n [size]=\"iconSize()\"\n aria-hidden=\"true\"\n />\n }\n</button>\n", styles: [".menu-btn{display:inline-flex;align-items:center;gap:.5rem;border:none;background:transparent;cursor:pointer;border-radius:.375rem;white-space:nowrap;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif);font-weight:400;line-height:1;-webkit-user-select:none;user-select:none;transition:background .12s ease,color .12s ease}.menu-btn:focus-visible{outline:2px solid currentColor;outline-offset:2px}.menu-btn:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.menu-btn--sm{padding:.375rem .625rem;font-size:.8125rem}.menu-btn--md{padding:.5rem .75rem;font-size:.875rem}.menu-btn--lg{padding:.625rem 1rem;font-size:1rem}.menu-btn--full{width:100%;justify-content:flex-start}.menu-btn--default{color:var(--text-base, #111827)}.menu-btn--default:hover:not(:disabled){background:var(--surface-hover, #f3f4f6)}.menu-btn--primary{color:var(--fill-primary, #4f46e5)}.menu-btn--primary:hover:not(:disabled){background:var(--primary-50, #eef2ff)}.menu-btn--danger{color:var(--fill-danger, #dc2626)}.menu-btn--danger:hover:not(:disabled){background:var(--danger-50, #fef2f2)}.menu-btn--success{color:var(--fill-success, #047857)}.menu-btn--success:hover:not(:disabled){background:var(--success-50, #ecfdf5)}.menu-btn--warning{color:var(--fill-warning, #b45309)}.menu-btn--warning:hover:not(:disabled){background:var(--warning-50, #fffbeb)}.menu-btn__icon{flex-shrink:0}\n"] }]
|
|
948
|
+
args: [{ selector: 'ngx-ds-menu-button', standalone: true, imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, 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"] }]
|
|
945
949
|
}], propDecorators: { iconLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeft", required: false }] }], iconRight: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconRight", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], fullWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullWidth", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
|
|
946
950
|
|
|
947
951
|
class TooltipBoxComponent {
|
|
@@ -1118,7 +1122,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
1118
1122
|
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
1123
|
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
1120
1124
|
|
|
1121
|
-
let nextId$
|
|
1125
|
+
let nextId$l = 0;
|
|
1122
1126
|
class CheckboxComponent {
|
|
1123
1127
|
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
1124
1128
|
/** Accessible name when there is no visible `label`. */
|
|
@@ -1128,9 +1132,10 @@ class CheckboxComponent {
|
|
|
1128
1132
|
indeterminate = input(false, ...(ngDevMode ? [{ debugName: "indeterminate" }] : /* istanbul ignore next */ []));
|
|
1129
1133
|
labelPosition = input('right', ...(ngDevMode ? [{ debugName: "labelPosition" }] : /* istanbul ignore next */ []));
|
|
1130
1134
|
checked = model(false, ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
|
|
1131
|
-
id = `ngx-checkbox-${nextId$
|
|
1132
|
-
|
|
1133
|
-
|
|
1135
|
+
id = `ngx-checkbox-${nextId$l++}`;
|
|
1136
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
1137
|
+
#cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#cvaDisabled" }] : /* istanbul ignore next */ []));
|
|
1138
|
+
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
1134
1139
|
onChange = () => { };
|
|
1135
1140
|
onTouched = () => { };
|
|
1136
1141
|
hostClasses = computed(() => {
|
|
@@ -1139,7 +1144,7 @@ class CheckboxComponent {
|
|
|
1139
1144
|
classes.push('checkbox--checked');
|
|
1140
1145
|
if (this.indeterminate() && !this.checked())
|
|
1141
1146
|
classes.push('checkbox--indeterminate');
|
|
1142
|
-
if (this
|
|
1147
|
+
if (this.isDisabled())
|
|
1143
1148
|
classes.push('checkbox--disabled');
|
|
1144
1149
|
return classes.join(' ');
|
|
1145
1150
|
}, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
@@ -1159,16 +1164,16 @@ class CheckboxComponent {
|
|
|
1159
1164
|
this.onTouched = fn;
|
|
1160
1165
|
}
|
|
1161
1166
|
setDisabledState(disabled) {
|
|
1162
|
-
this.#
|
|
1167
|
+
this.#cvaDisabled.set(disabled);
|
|
1163
1168
|
}
|
|
1164
1169
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: CheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1165
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: CheckboxComponent, isStandalone: true, selector: "ngx-ds-checkbox", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", 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 }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange" }, providers: [
|
|
1170
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: CheckboxComponent, isStandalone: true, selector: "ngx-ds-checkbox", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", 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 }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange" }, providers: [
|
|
1166
1171
|
{
|
|
1167
1172
|
provide: NG_VALUE_ACCESSOR,
|
|
1168
1173
|
useExisting: forwardRef(() => CheckboxComponent),
|
|
1169
1174
|
multi: true,
|
|
1170
1175
|
},
|
|
1171
|
-
], ngImport: i0, template: "<label [for]=\"id\" [class]=\"hostClasses()\">\n <input\n type=\"checkbox\"\n [id]=\"id\"\n class=\"checkbox__input\"\n [attr.aria-label]=\"label() ? null : (ariaLabel() ?? null)\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate() && !checked()\"\n [disabled]=\"isDisabled()\"\n (change)=\"onNativeChange($event)\"\n />\n\n @if (labelPosition() === 'left' && label()) {\n <span class=\"checkbox__label\">{{ label() }}</span>\n }\n\n <span class=\"checkbox__box\" aria-hidden=\"true\"></span>\n\n @if (labelPosition() === 'right' && label()) {\n <span class=\"checkbox__label\">{{ label() }}</span>\n }\n</label>\n", styles: [".checkbox{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.checkbox--disabled{cursor:not-allowed;opacity:.5}.checkbox__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.checkbox__input:focus-visible~.checkbox__box{outline:2px solid var(--ngx-checkbox-color);outline-offset:2px}.checkbox__box{position:relative;flex-shrink:0;border:2px solid var(--border-input, #d1d5db);border-radius:.25rem;background:var(--surface-base, #fff);transition:background-color .15s ease,border-color .15s ease}.checkbox__box:after{content:\"\";position:absolute;display:none;left:50%;top:46%;width:35%;height:58%;border:2px solid var(--text-on-color, #fff);border-top:none;border-left:none;transform:translate(-50%,-50%) rotate(45deg)}.checkbox:hover:not(.checkbox--disabled):not(.checkbox--checked):not(.checkbox--indeterminate) .checkbox__box{border-color:var(--ngx-checkbox-color)}.checkbox--checked .checkbox__box{background-color:var(--ngx-checkbox-color);border-color:var(--ngx-checkbox-color)}.checkbox--checked .checkbox__box:after{display:block}.checkbox--indeterminate .checkbox__box{background-color:var(--ngx-checkbox-color);border-color:var(--ngx-checkbox-color)}.checkbox--indeterminate .checkbox__box:after{display:block;width:55%;height:2px;border:none;background:var(--text-on-color, #fff);top:50%;transform:translate(-50%,-50%)}.checkbox__label{font-size:.875rem;color:var(--text-secondary, #374151);line-height:1.25}.checkbox--sm .checkbox__box{width:.875rem;height:.875rem}.checkbox--md .checkbox__box{width:1.125rem;height:1.125rem}.checkbox--lg .checkbox__box{width:1.375rem;height:1.375rem}.checkbox--primary{--ngx-checkbox-color: var(--primary-500, #6366f1)}.checkbox--secondary{--ngx-checkbox-color: var(--fill-neutral, #6b7280)}.checkbox--danger{--ngx-checkbox-color: var(--danger-500, #ef4444)}.checkbox--success{--ngx-checkbox-color: var(--success-500, #10b981)}.checkbox--warning{--ngx-checkbox-color: var(--warning-500, #f59e0b)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1176
|
+
], ngImport: i0, 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"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1172
1177
|
}
|
|
1173
1178
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: CheckboxComponent, decorators: [{
|
|
1174
1179
|
type: Component,
|
|
@@ -1178,10 +1183,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
1178
1183
|
useExisting: forwardRef(() => CheckboxComponent),
|
|
1179
1184
|
multi: true,
|
|
1180
1185
|
},
|
|
1181
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label [for]=\"id\" [class]=\"hostClasses()\">\n <input\n type=\"checkbox\"\n [id]=\"id\"\n class=\"checkbox__input\"\n [attr.aria-label]=\"label() ? null : (ariaLabel() ?? null)\"\n [checked]=\"checked()\"\n [indeterminate]=\"indeterminate() && !checked()\"\n [disabled]=\"isDisabled()\"\n (change)=\"onNativeChange($event)\"\n />\n\n @if (labelPosition() === 'left' && label()) {\n <span class=\"checkbox__label\">{{ label() }}</span>\n }\n\n <span class=\"checkbox__box\" aria-hidden=\"true\"></span>\n\n @if (labelPosition() === 'right' && label()) {\n <span class=\"checkbox__label\">{{ label() }}</span>\n }\n</label>\n", styles: [".checkbox{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.checkbox--disabled{cursor:not-allowed;opacity:.5}.checkbox__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.checkbox__input:focus-visible~.checkbox__box{outline:2px solid var(--ngx-checkbox-color);outline-offset:2px}.checkbox__box{position:relative;flex-shrink:0;border:2px solid var(--border-input, #d1d5db);border-radius:.25rem;background:var(--surface-base, #fff);transition:background-color .15s ease,border-color .15s ease}.checkbox__box:after{content:\"\";position:absolute;display:none;left:50%;top:46%;width:35%;height:58%;border:2px solid var(--text-on-color, #fff);border-top:none;border-left:none;transform:translate(-50%,-50%) rotate(45deg)}.checkbox:hover:not(.checkbox--disabled):not(.checkbox--checked):not(.checkbox--indeterminate) .checkbox__box{border-color:var(--ngx-checkbox-color)}.checkbox--checked .checkbox__box{background-color:var(--ngx-checkbox-color);border-color:var(--ngx-checkbox-color)}.checkbox--checked .checkbox__box:after{display:block}.checkbox--indeterminate .checkbox__box{background-color:var(--ngx-checkbox-color);border-color:var(--ngx-checkbox-color)}.checkbox--indeterminate .checkbox__box:after{display:block;width:55%;height:2px;border:none;background:var(--text-on-color, #fff);top:50%;transform:translate(-50%,-50%)}.checkbox__label{font-size:.875rem;color:var(--text-secondary, #374151);line-height:1.25}.checkbox--sm .checkbox__box{width:.875rem;height:.875rem}.checkbox--md .checkbox__box{width:1.125rem;height:1.125rem}.checkbox--lg .checkbox__box{width:1.375rem;height:1.375rem}.checkbox--primary{--ngx-checkbox-color: var(--primary-500, #6366f1)}.checkbox--secondary{--ngx-checkbox-color: var(--fill-neutral, #6b7280)}.checkbox--danger{--ngx-checkbox-color: var(--danger-500, #ef4444)}.checkbox--success{--ngx-checkbox-color: var(--success-500, #10b981)}.checkbox--warning{--ngx-checkbox-color: var(--warning-500, #f59e0b)}\n"] }]
|
|
1182
|
-
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }] } });
|
|
1186
|
+
], 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"] }]
|
|
1187
|
+
}], 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 }] }] } });
|
|
1183
1188
|
|
|
1184
|
-
let nextId$
|
|
1189
|
+
let nextId$k = 0;
|
|
1185
1190
|
class RadioComponent {
|
|
1186
1191
|
value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1187
1192
|
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
@@ -1197,7 +1202,7 @@ class RadioComponent {
|
|
|
1197
1202
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
1198
1203
|
/** Emits this radio's `value` when the user selects it. */
|
|
1199
1204
|
valueSelect = output();
|
|
1200
|
-
id = `ngx-radio-${nextId$
|
|
1205
|
+
id = `ngx-radio-${nextId$k++}`;
|
|
1201
1206
|
#modelValue = signal(null, ...(ngDevMode ? [{ debugName: "#modelValue" }] : /* istanbul ignore next */ []));
|
|
1202
1207
|
#formDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#formDisabled" }] : /* istanbul ignore next */ []));
|
|
1203
1208
|
isDisabled = computed(() => this.disabled() || this.#formDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
@@ -1240,7 +1245,7 @@ class RadioComponent {
|
|
|
1240
1245
|
useExisting: forwardRef(() => RadioComponent),
|
|
1241
1246
|
multi: true,
|
|
1242
1247
|
},
|
|
1243
|
-
], ngImport: i0, template: "<label [for]=\"id\" [class]=\"hostClasses()\">\n <input\n type=\"radio\"\n [id]=\"id\"\n [name]=\"name()\"\n [value]=\"value()\"\n class=\"radio__input\"\n [checked]=\"isChecked()\"\n [disabled]=\"isDisabled()\"\n (change)=\"onSelect()\"\n />\n\n @if (labelPosition() === 'left' && label()) {\n <span class=\"radio__label\">{{ label() }}</span>\n }\n\n <span class=\"radio__circle\" aria-hidden=\"true\">\n <span class=\"radio__dot\"></span>\n </span>\n\n @if (labelPosition() === 'right' && label()) {\n <span class=\"radio__label\">{{ label() }}</span>\n }\n</label>\n", styles: [".radio{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.radio--disabled{cursor:not-allowed;opacity:.5}.radio__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.radio__input:focus-visible~.radio__circle{outline:2px solid var(--ngx-radio-color);outline-offset:2px}.radio__circle{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:9999px;border:2px solid var(--border-input, #d1d5db);background:var(--surface-base, #fff);transition:border-color .15s ease,background-color .15s ease}.radio:hover:not(.radio--disabled):not(.radio--checked) .radio__circle{border-color:var(--ngx-radio-color)}.radio--checked .radio__circle{border-color:var(--ngx-radio-color);background-color:var(--ngx-radio-color)}.radio__dot{border-radius:9999px;background:var(--text-on-color, #fff);width:40%;height:40%;transform:scale(0);transition:transform .15s ease}.radio--checked .radio__dot{transform:scale(1)}.radio__label{font-size:.875rem;color:var(--text-secondary, #374151);line-height:1.25}.radio--sm .radio__circle{width:.875rem;height:.875rem}.radio--md .radio__circle{width:1.125rem;height:1.125rem}.radio--lg .radio__circle{width:1.375rem;height:1.375rem}.radio--primary{--ngx-radio-color: var(--primary-500, #6366f1)}.radio--secondary{--ngx-radio-color: var(--fill-neutral, #6b7280)}.radio--danger{--ngx-radio-color: var(--danger-500, #ef4444)}.radio--success{--ngx-radio-color: var(--success-500, #10b981)}.radio--warning{--ngx-radio-color: var(--warning-500, #f59e0b)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1248
|
+
], ngImport: i0, 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"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1244
1249
|
}
|
|
1245
1250
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: RadioComponent, decorators: [{
|
|
1246
1251
|
type: Component,
|
|
@@ -1250,10 +1255,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
1250
1255
|
useExisting: forwardRef(() => RadioComponent),
|
|
1251
1256
|
multi: true,
|
|
1252
1257
|
},
|
|
1253
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label [for]=\"id\" [class]=\"hostClasses()\">\n <input\n type=\"radio\"\n [id]=\"id\"\n [name]=\"name()\"\n [value]=\"value()\"\n class=\"radio__input\"\n [checked]=\"isChecked()\"\n [disabled]=\"isDisabled()\"\n (change)=\"onSelect()\"\n />\n\n @if (labelPosition() === 'left' && label()) {\n <span class=\"radio__label\">{{ label() }}</span>\n }\n\n <span class=\"radio__circle\" aria-hidden=\"true\">\n <span class=\"radio__dot\"></span>\n </span>\n\n @if (labelPosition() === 'right' && label()) {\n <span class=\"radio__label\">{{ label() }}</span>\n }\n</label>\n", styles: [".radio{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.radio--disabled{cursor:not-allowed;opacity:.5}.radio__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.radio__input:focus-visible~.radio__circle{outline:2px solid var(--ngx-radio-color);outline-offset:2px}.radio__circle{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:9999px;border:2px solid var(--border-input, #d1d5db);background:var(--surface-base, #fff);transition:border-color .15s ease,background-color .15s ease}.radio:hover:not(.radio--disabled):not(.radio--checked) .radio__circle{border-color:var(--ngx-radio-color)}.radio--checked .radio__circle{border-color:var(--ngx-radio-color);background-color:var(--ngx-radio-color)}.radio__dot{border-radius:9999px;background:var(--text-on-color, #fff);width:40%;height:40%;transform:scale(0);transition:transform .15s ease}.radio--checked .radio__dot{transform:scale(1)}.radio__label{font-size:.875rem;color:var(--text-secondary, #374151);line-height:1.25}.radio--sm .radio__circle{width:.875rem;height:.875rem}.radio--md .radio__circle{width:1.125rem;height:1.125rem}.radio--lg .radio__circle{width:1.375rem;height:1.375rem}.radio--primary{--ngx-radio-color: var(--primary-500, #6366f1)}.radio--secondary{--ngx-radio-color: var(--fill-neutral, #6b7280)}.radio--danger{--ngx-radio-color: var(--danger-500, #ef4444)}.radio--success{--ngx-radio-color: var(--success-500, #10b981)}.radio--warning{--ngx-radio-color: var(--warning-500, #f59e0b)}\n"] }]
|
|
1258
|
+
], 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"] }]
|
|
1254
1259
|
}], 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"] }] } });
|
|
1255
1260
|
|
|
1256
|
-
let nextId$
|
|
1261
|
+
let nextId$j = 0;
|
|
1257
1262
|
class SwitchComponent {
|
|
1258
1263
|
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
1259
1264
|
/** Accessible name when there is no visible `label`. */
|
|
@@ -1264,16 +1269,17 @@ class SwitchComponent {
|
|
|
1264
1269
|
labelOn = input('', ...(ngDevMode ? [{ debugName: "labelOn" }] : /* istanbul ignore next */ []));
|
|
1265
1270
|
labelOff = input('', ...(ngDevMode ? [{ debugName: "labelOff" }] : /* istanbul ignore next */ []));
|
|
1266
1271
|
checked = model(false, ...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
|
|
1267
|
-
id = `ngx-switch-${nextId$
|
|
1268
|
-
|
|
1269
|
-
|
|
1272
|
+
id = `ngx-switch-${nextId$j++}`;
|
|
1273
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
1274
|
+
#cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#cvaDisabled" }] : /* istanbul ignore next */ []));
|
|
1275
|
+
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
1270
1276
|
onChange = () => { };
|
|
1271
1277
|
onTouched = () => { };
|
|
1272
1278
|
hostClasses = computed(() => {
|
|
1273
1279
|
const classes = ['switch', `switch--${this.size()}`, `switch--${this.color()}`];
|
|
1274
1280
|
if (this.checked())
|
|
1275
1281
|
classes.push('switch--checked');
|
|
1276
|
-
if (this
|
|
1282
|
+
if (this.isDisabled())
|
|
1277
1283
|
classes.push('switch--disabled');
|
|
1278
1284
|
return classes.join(' ');
|
|
1279
1285
|
}, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
@@ -1294,16 +1300,16 @@ class SwitchComponent {
|
|
|
1294
1300
|
this.onTouched = fn;
|
|
1295
1301
|
}
|
|
1296
1302
|
setDisabledState(disabled) {
|
|
1297
|
-
this.#
|
|
1303
|
+
this.#cvaDisabled.set(disabled);
|
|
1298
1304
|
}
|
|
1299
1305
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1300
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: SwitchComponent, isStandalone: true, selector: "ngx-ds-switch", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, labelOn: { classPropertyName: "labelOn", publicName: "labelOn", isSignal: true, isRequired: false, transformFunction: null }, labelOff: { classPropertyName: "labelOff", publicName: "labelOff", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange" }, providers: [
|
|
1306
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: SwitchComponent, isStandalone: true, selector: "ngx-ds-switch", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, labelOn: { classPropertyName: "labelOn", publicName: "labelOn", isSignal: true, isRequired: false, transformFunction: null }, labelOff: { classPropertyName: "labelOff", publicName: "labelOff", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange" }, providers: [
|
|
1301
1307
|
{
|
|
1302
1308
|
provide: NG_VALUE_ACCESSOR,
|
|
1303
1309
|
useExisting: forwardRef(() => SwitchComponent),
|
|
1304
1310
|
multi: true,
|
|
1305
1311
|
},
|
|
1306
|
-
], ngImport: i0, template: "<label [for]=\"id\" [class]=\"hostClasses()\">\n <input\n type=\"checkbox\"\n role=\"switch\"\n [id]=\"id\"\n class=\"switch__input\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-checked]=\"checked()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n (change)=\"onNativeChange($event)\"\n />\n\n @if (labelPosition() === 'left' && label()) {\n <span class=\"switch__label\">{{ label() }}</span>\n }\n\n <span class=\"switch__track\" aria-hidden=\"true\">\n <span class=\"switch__thumb\"></span>\n </span>\n\n @if (labelPosition() === 'right' && label()) {\n <span class=\"switch__label\">{{ label() }}</span>\n }\n\n @if (activeLabel()) {\n <span class=\"switch__state-label\">{{ activeLabel() }}</span>\n }\n</label>\n", styles: [".switch{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)}.switch--disabled{cursor:not-allowed;opacity:.5}.switch__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.switch__input:focus-visible~.switch__track{outline:2px solid var(--ngx-switch-color);outline-offset:2px}.switch__track{position:relative;flex-shrink:0;border-radius:9999px;background-color:var(--border-input, #d1d5db);transition:background-color .2s ease}.switch--checked .switch__track{background-color:var(--ngx-switch-color)}.switch:hover:not(.switch--disabled) .switch__track{filter:brightness(.95)}.switch__thumb{position:absolute;top:50%;background:var(--surface-thumb, #fff);border-radius:9999px;box-shadow:0 1px 3px #0003;transition:transform .2s ease;transform:translateY(-50%) translate(var(--ngx-switch-thumb-start))}.switch--checked .switch__thumb{transform:translateY(-50%) translate(var(--ngx-switch-thumb-end))}.switch__label{font-size:.875rem;color:var(--text-secondary, #374151);line-height:1.25}.switch__state-label{font-size:.75rem;color:var(--text-muted, #6b7280);min-width:2rem}.switch--sm .switch__track{width:2rem;height:1.125rem}.switch--sm .switch__thumb{width:.75rem;height:.75rem;--ngx-switch-thumb-start: .1875rem;--ngx-switch-thumb-end: .875rem}.switch--md .switch__track{width:2.75rem;height:1.5rem}.switch--md .switch__thumb{width:1rem;height:1rem;--ngx-switch-thumb-start: .25rem;--ngx-switch-thumb-end: 1.25rem}.switch--lg .switch__track{width:3.5rem;height:1.875rem}.switch--lg .switch__thumb{width:1.25rem;height:1.25rem;--ngx-switch-thumb-start: .3125rem;--ngx-switch-thumb-end: 1.625rem}.switch--primary{--ngx-switch-color: var(--primary-500, #6366f1)}.switch--secondary{--ngx-switch-color: var(--fill-neutral, #6b7280)}.switch--danger{--ngx-switch-color: var(--danger-500, #ef4444)}.switch--success{--ngx-switch-color: var(--success-500, #10b981)}.switch--warning{--ngx-switch-color: var(--warning-500, #f59e0b)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1312
|
+
], ngImport: i0, template: "<label [for]=\"id\" [class]=\"hostClasses()\">\n <input\n type=\"checkbox\"\n role=\"switch\"\n [id]=\"id\"\n class=\"switch__input\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-checked]=\"checked()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n (change)=\"onNativeChange($event)\"\n />\n\n @if (labelPosition() === 'left' && label()) {\n <span class=\"switch__label\">{{ label() }}</span>\n }\n\n <span class=\"switch__track\" aria-hidden=\"true\">\n <span class=\"switch__thumb\"></span>\n </span>\n\n @if (labelPosition() === 'right' && label()) {\n <span class=\"switch__label\">{{ label() }}</span>\n }\n\n @if (activeLabel()) {\n <span class=\"switch__state-label\">{{ activeLabel() }}</span>\n }\n</label>\n", styles: [".switch{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)}.switch--disabled{cursor:not-allowed;opacity:.5}.switch__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.switch__input:focus-visible~.switch__track{outline:2px solid var(--ngx-switch-color);outline-offset:2px}.switch__track{position:relative;flex-shrink:0;border-radius:9999px;background-color:var(--border-input, #d1d5db);transition:background-color .2s ease}.switch--checked .switch__track{background-color:var(--ngx-switch-color)}.switch:hover:not(.switch--disabled) .switch__track{filter:brightness(.95)}.switch__thumb{position:absolute;top:50%;background:var(--surface-thumb, #fff);border-radius:9999px;box-shadow:0 1px 3px #0003;transition:transform .2s ease;transform:translateY(-50%) translate(var(--ngx-switch-thumb-start))}.switch--checked .switch__thumb{transform:translateY(-50%) translate(var(--ngx-switch-thumb-end))}.switch__label{font-size:.875rem;color:var(--text-secondary, #374151);line-height:1.25}.switch__state-label{font-size:.75rem;color:var(--text-muted, #6b7280);min-width:2rem}.switch--sm .switch__track{width:2rem;height:1.125rem}.switch--sm .switch__thumb{width:.75rem;height:.75rem;--ngx-switch-thumb-start: .1875rem;--ngx-switch-thumb-end: .875rem}.switch--md .switch__track{width:2.75rem;height:1.5rem}.switch--md .switch__thumb{width:1rem;height:1rem;--ngx-switch-thumb-start: .25rem;--ngx-switch-thumb-end: 1.25rem}.switch--lg .switch__track{width:3.5rem;height:1.875rem}.switch--lg .switch__thumb{width:1.25rem;height:1.25rem;--ngx-switch-thumb-start: .3125rem;--ngx-switch-thumb-end: 1.625rem}.switch--primary{--ngx-switch-color: var(--primary-500, #6366f1)}.switch--secondary{--ngx-switch-color: var(--fill-neutral, #6b7280)}.switch--danger{--ngx-switch-color: var(--danger-500, #ef4444)}.switch--success{--ngx-switch-color: var(--success-500, #10b981)}.switch--warning{--ngx-switch-color: var(--warning-500, #f59e0b)}.switch--info{--ngx-switch-color: var(--info-500, #3b82f6)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1307
1313
|
}
|
|
1308
1314
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SwitchComponent, decorators: [{
|
|
1309
1315
|
type: Component,
|
|
@@ -1313,8 +1319,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
1313
1319
|
useExisting: forwardRef(() => SwitchComponent),
|
|
1314
1320
|
multi: true,
|
|
1315
1321
|
},
|
|
1316
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label [for]=\"id\" [class]=\"hostClasses()\">\n <input\n type=\"checkbox\"\n role=\"switch\"\n [id]=\"id\"\n class=\"switch__input\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-checked]=\"checked()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n (change)=\"onNativeChange($event)\"\n />\n\n @if (labelPosition() === 'left' && label()) {\n <span class=\"switch__label\">{{ label() }}</span>\n }\n\n <span class=\"switch__track\" aria-hidden=\"true\">\n <span class=\"switch__thumb\"></span>\n </span>\n\n @if (labelPosition() === 'right' && label()) {\n <span class=\"switch__label\">{{ label() }}</span>\n }\n\n @if (activeLabel()) {\n <span class=\"switch__state-label\">{{ activeLabel() }}</span>\n }\n</label>\n", styles: [".switch{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)}.switch--disabled{cursor:not-allowed;opacity:.5}.switch__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.switch__input:focus-visible~.switch__track{outline:2px solid var(--ngx-switch-color);outline-offset:2px}.switch__track{position:relative;flex-shrink:0;border-radius:9999px;background-color:var(--border-input, #d1d5db);transition:background-color .2s ease}.switch--checked .switch__track{background-color:var(--ngx-switch-color)}.switch:hover:not(.switch--disabled) .switch__track{filter:brightness(.95)}.switch__thumb{position:absolute;top:50%;background:var(--surface-thumb, #fff);border-radius:9999px;box-shadow:0 1px 3px #0003;transition:transform .2s ease;transform:translateY(-50%) translate(var(--ngx-switch-thumb-start))}.switch--checked .switch__thumb{transform:translateY(-50%) translate(var(--ngx-switch-thumb-end))}.switch__label{font-size:.875rem;color:var(--text-secondary, #374151);line-height:1.25}.switch__state-label{font-size:.75rem;color:var(--text-muted, #6b7280);min-width:2rem}.switch--sm .switch__track{width:2rem;height:1.125rem}.switch--sm .switch__thumb{width:.75rem;height:.75rem;--ngx-switch-thumb-start: .1875rem;--ngx-switch-thumb-end: .875rem}.switch--md .switch__track{width:2.75rem;height:1.5rem}.switch--md .switch__thumb{width:1rem;height:1rem;--ngx-switch-thumb-start: .25rem;--ngx-switch-thumb-end: 1.25rem}.switch--lg .switch__track{width:3.5rem;height:1.875rem}.switch--lg .switch__thumb{width:1.25rem;height:1.25rem;--ngx-switch-thumb-start: .3125rem;--ngx-switch-thumb-end: 1.625rem}.switch--primary{--ngx-switch-color: var(--primary-500, #6366f1)}.switch--secondary{--ngx-switch-color: var(--fill-neutral, #6b7280)}.switch--danger{--ngx-switch-color: var(--danger-500, #ef4444)}.switch--success{--ngx-switch-color: var(--success-500, #10b981)}.switch--warning{--ngx-switch-color: var(--warning-500, #f59e0b)}\n"] }]
|
|
1317
|
-
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], labelOn: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelOn", required: false }] }], labelOff: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelOff", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }] } });
|
|
1322
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<label [for]=\"id\" [class]=\"hostClasses()\">\n <input\n type=\"checkbox\"\n role=\"switch\"\n [id]=\"id\"\n class=\"switch__input\"\n [checked]=\"checked()\"\n [disabled]=\"isDisabled()\"\n [attr.aria-checked]=\"checked()\"\n [attr.aria-label]=\"label() || ariaLabel() || null\"\n (change)=\"onNativeChange($event)\"\n />\n\n @if (labelPosition() === 'left' && label()) {\n <span class=\"switch__label\">{{ label() }}</span>\n }\n\n <span class=\"switch__track\" aria-hidden=\"true\">\n <span class=\"switch__thumb\"></span>\n </span>\n\n @if (labelPosition() === 'right' && label()) {\n <span class=\"switch__label\">{{ label() }}</span>\n }\n\n @if (activeLabel()) {\n <span class=\"switch__state-label\">{{ activeLabel() }}</span>\n }\n</label>\n", styles: [".switch{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)}.switch--disabled{cursor:not-allowed;opacity:.5}.switch__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.switch__input:focus-visible~.switch__track{outline:2px solid var(--ngx-switch-color);outline-offset:2px}.switch__track{position:relative;flex-shrink:0;border-radius:9999px;background-color:var(--border-input, #d1d5db);transition:background-color .2s ease}.switch--checked .switch__track{background-color:var(--ngx-switch-color)}.switch:hover:not(.switch--disabled) .switch__track{filter:brightness(.95)}.switch__thumb{position:absolute;top:50%;background:var(--surface-thumb, #fff);border-radius:9999px;box-shadow:0 1px 3px #0003;transition:transform .2s ease;transform:translateY(-50%) translate(var(--ngx-switch-thumb-start))}.switch--checked .switch__thumb{transform:translateY(-50%) translate(var(--ngx-switch-thumb-end))}.switch__label{font-size:.875rem;color:var(--text-secondary, #374151);line-height:1.25}.switch__state-label{font-size:.75rem;color:var(--text-muted, #6b7280);min-width:2rem}.switch--sm .switch__track{width:2rem;height:1.125rem}.switch--sm .switch__thumb{width:.75rem;height:.75rem;--ngx-switch-thumb-start: .1875rem;--ngx-switch-thumb-end: .875rem}.switch--md .switch__track{width:2.75rem;height:1.5rem}.switch--md .switch__thumb{width:1rem;height:1rem;--ngx-switch-thumb-start: .25rem;--ngx-switch-thumb-end: 1.25rem}.switch--lg .switch__track{width:3.5rem;height:1.875rem}.switch--lg .switch__thumb{width:1.25rem;height:1.25rem;--ngx-switch-thumb-start: .3125rem;--ngx-switch-thumb-end: 1.625rem}.switch--primary{--ngx-switch-color: var(--primary-500, #6366f1)}.switch--secondary{--ngx-switch-color: var(--fill-neutral, #6b7280)}.switch--danger{--ngx-switch-color: var(--danger-500, #ef4444)}.switch--success{--ngx-switch-color: var(--success-500, #10b981)}.switch--warning{--ngx-switch-color: var(--warning-500, #f59e0b)}.switch--info{--ngx-switch-color: var(--info-500, #3b82f6)}\n"] }]
|
|
1323
|
+
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], labelOn: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelOn", required: false }] }], labelOff: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelOff", 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 }] }] } });
|
|
1318
1324
|
|
|
1319
1325
|
/**
|
|
1320
1326
|
* Whether a control shows its error state: always with an explicit `errorMessage`,
|
|
@@ -1336,7 +1342,7 @@ function fieldErrorText(explicit, errors, touched) {
|
|
|
1336
1342
|
}
|
|
1337
1343
|
|
|
1338
1344
|
const ICON_SIZE$b = { sm: 14, md: 16, lg: 18 };
|
|
1339
|
-
let nextId$
|
|
1345
|
+
let nextId$i = 0;
|
|
1340
1346
|
class InputComponent {
|
|
1341
1347
|
i18n = inject(NGX_DS_LABELS);
|
|
1342
1348
|
// ── Configuration ────────────────────────────────────────────
|
|
@@ -1355,13 +1361,14 @@ class InputComponent {
|
|
|
1355
1361
|
readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly" }] : /* istanbul ignore next */ []));
|
|
1356
1362
|
// ── Value — two-way bindable (signal forms) ──────────────────
|
|
1357
1363
|
value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1358
|
-
id = `ngx-input-${nextId$
|
|
1364
|
+
id = `ngx-input-${nextId$i++}`;
|
|
1359
1365
|
messageId = `${this.id}-message`;
|
|
1360
1366
|
// ── Internal state ───────────────────────────────────────────
|
|
1361
|
-
|
|
1367
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
1368
|
+
#cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#cvaDisabled" }] : /* istanbul ignore next */ []));
|
|
1362
1369
|
#focused = signal(false, ...(ngDevMode ? [{ debugName: "#focused" }] : /* istanbul ignore next */ []));
|
|
1363
1370
|
#showPassword = signal(false, ...(ngDevMode ? [{ debugName: "#showPassword" }] : /* istanbul ignore next */ []));
|
|
1364
|
-
isDisabled = this
|
|
1371
|
+
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
1365
1372
|
isFocused = this.#focused.asReadonly();
|
|
1366
1373
|
eyeIcon = computed(() => (this.#showPassword() ? EyeOff : Eye), ...(ngDevMode ? [{ debugName: "eyeIcon" }] : /* istanbul ignore next */ []));
|
|
1367
1374
|
effectiveType = computed(() => this.type() === 'password' && this.#showPassword() ? 'text' : this.type(), ...(ngDevMode ? [{ debugName: "effectiveType" }] : /* istanbul ignore next */ []));
|
|
@@ -1426,10 +1433,10 @@ class InputComponent {
|
|
|
1426
1433
|
this.onTouched = fn;
|
|
1427
1434
|
}
|
|
1428
1435
|
setDisabledState(disabled) {
|
|
1429
|
-
this.#
|
|
1436
|
+
this.#cvaDisabled.set(disabled);
|
|
1430
1437
|
}
|
|
1431
1438
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1432
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: InputComponent, isStandalone: true, selector: "ngx-ds-input", inputs: { 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 }, type: { classPropertyName: "type", publicName: "type", 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 }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [
|
|
1439
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: InputComponent, isStandalone: true, selector: "ngx-ds-input", inputs: { 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 }, type: { classPropertyName: "type", publicName: "type", 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 }, iconRight: { classPropertyName: "iconRight", publicName: "iconRight", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [
|
|
1433
1440
|
{
|
|
1434
1441
|
provide: NG_VALUE_ACCESSOR,
|
|
1435
1442
|
useExisting: forwardRef(() => InputComponent),
|
|
@@ -1446,9 +1453,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
1446
1453
|
multi: true,
|
|
1447
1454
|
},
|
|
1448
1455
|
], 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"] }]
|
|
1449
|
-
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], floatingLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatingLabel", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], iconLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeft", required: false }] }], iconRight: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconRight", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }] } });
|
|
1456
|
+
}], 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 }] }] } });
|
|
1450
1457
|
|
|
1451
|
-
let nextId$
|
|
1458
|
+
let nextId$h = 0;
|
|
1452
1459
|
class TextareaComponent {
|
|
1453
1460
|
// ── Configuration ────────────────────────────────────────────
|
|
1454
1461
|
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
@@ -1467,12 +1474,13 @@ class TextareaComponent {
|
|
|
1467
1474
|
showCount = input(false, ...(ngDevMode ? [{ debugName: "showCount" }] : /* istanbul ignore next */ []));
|
|
1468
1475
|
// ── Value ─────────────────────────────────────────────────────
|
|
1469
1476
|
value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1470
|
-
id = `ngx-textarea-${nextId$
|
|
1477
|
+
id = `ngx-textarea-${nextId$h++}`;
|
|
1471
1478
|
messageId = `${this.id}-message`;
|
|
1472
1479
|
// ── Internal state ────────────────────────────────────────────
|
|
1473
|
-
|
|
1480
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
1481
|
+
#cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#cvaDisabled" }] : /* istanbul ignore next */ []));
|
|
1474
1482
|
#focused = signal(false, ...(ngDevMode ? [{ debugName: "#focused" }] : /* istanbul ignore next */ []));
|
|
1475
|
-
isDisabled = this
|
|
1483
|
+
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
1476
1484
|
isFocused = this.#focused.asReadonly();
|
|
1477
1485
|
// ── Derived ───────────────────────────────────────────────────
|
|
1478
1486
|
hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
@@ -1530,10 +1538,10 @@ class TextareaComponent {
|
|
|
1530
1538
|
this.onTouched = fn;
|
|
1531
1539
|
}
|
|
1532
1540
|
setDisabledState(disabled) {
|
|
1533
|
-
this.#
|
|
1541
|
+
this.#cvaDisabled.set(disabled);
|
|
1534
1542
|
}
|
|
1535
1543
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1536
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TextareaComponent, isStandalone: true, selector: "ngx-ds-textarea", inputs: { 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 }, resize: { classPropertyName: "resize", publicName: "resize", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", 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 }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, showCount: { classPropertyName: "showCount", publicName: "showCount", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [
|
|
1544
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TextareaComponent, isStandalone: true, selector: "ngx-ds-textarea", inputs: { 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 }, resize: { classPropertyName: "resize", publicName: "resize", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", 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 }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, maxLength: { classPropertyName: "maxLength", publicName: "maxLength", isSignal: true, isRequired: false, transformFunction: null }, showCount: { classPropertyName: "showCount", publicName: "showCount", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [
|
|
1537
1545
|
{
|
|
1538
1546
|
provide: NG_VALUE_ACCESSOR,
|
|
1539
1547
|
useExisting: forwardRef(() => TextareaComponent),
|
|
@@ -1550,7 +1558,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
1550
1558
|
multi: true,
|
|
1551
1559
|
},
|
|
1552
1560
|
], template: "<!-- Static label -->\n@if (!floatingLabel() && label()) {\n <label [for]=\"id\" class=\"ngx-textarea__label\">{{ label() }}</label>\n}\n\n<!-- Field container -->\n<div [class]=\"fieldClasses()\">\n <!-- Floating label -->\n @if (floatingLabel() && label()) {\n <label [for]=\"id\" [class]=\"floatLabelClasses()\">{{ label() }}</label>\n }\n\n <!-- Native textarea -->\n <textarea\n class=\"ngx-textarea__native\"\n [id]=\"id\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"errorText() || hint() ? messageId : null\"\n [rows]=\"rows()\"\n [value]=\"value()\"\n [placeholder]=\"effectivePlaceholder()\"\n [disabled]=\"isDisabled() || null\"\n [attr.readonly]=\"readonly() || null\"\n [attr.maxlength]=\"maxLength() ?? null\"\n (input)=\"onInput($event)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n ></textarea>\n</div>\n\n<!-- Footer: error/hint + char count -->\n<div class=\"ngx-textarea__footer\">\n @if (errorText()) {\n <p [id]=\"messageId\" class=\"ngx-textarea__message ngx-textarea__message--error\" role=\"alert\">\n {{ errorText() }}\n </p>\n } @else if (hint()) {\n <p [id]=\"messageId\" class=\"ngx-textarea__message ngx-textarea__message--hint\">{{ hint() }}</p>\n } @else {\n <span></span>\n }\n\n @if (showCount() && maxLength()) {\n <span\n class=\"ngx-textarea__count\"\n [class.ngx-textarea__count--limit]=\"charCount() >= maxLength()!\"\n >\n {{ charCount() }}/{{ maxLength() }}\n </span>\n }\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.ngx-textarea__label{display:block;margin-bottom:.375rem;font-size:.875rem;font-weight:500;color:var(--text-secondary, #374151)}.ngx-textarea__field{position:relative;display:flex;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-textarea__field--focused{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f61f}.ngx-textarea__field--error{border-color:var(--danger-500, #ef4444)}.ngx-textarea__field--error.ngx-textarea__field--focused{box-shadow:0 0 0 3px #ef44441f}.ngx-textarea__field--disabled{background:var(--surface-subtle, #f9fafb);cursor:not-allowed}.ngx-textarea__field--sm{padding:.375rem .625rem;font-size:.8125rem}.ngx-textarea__field--md{padding:.5rem .75rem;font-size:.875rem}.ngx-textarea__field--lg{padding:.625rem 1rem;font-size:1rem}.ngx-textarea__field--floating{padding-top:1.25rem}.ngx-textarea__field--resize-none .ngx-textarea__native{resize:none}.ngx-textarea__field--resize-vertical .ngx-textarea__native{resize:vertical}.ngx-textarea__field--resize-horizontal .ngx-textarea__native{resize:horizontal}.ngx-textarea__field--resize-both .ngx-textarea__native{resize:both}.ngx-textarea__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.6;resize:vertical}.ngx-textarea__native::placeholder{color:var(--text-placeholder, #6b7280)}.ngx-textarea__native:disabled{cursor:not-allowed;color:var(--text-muted, #6b7280)}.ngx-textarea__native[readonly]{cursor:default}.ngx-textarea__float-label{position:absolute;left:.75rem;top:.625rem;transform:none;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-textarea__float-label--active{top:0;font-size:.7rem;background:var(--surface-base, #fff);padding:0 .25rem;color:var(--fill-primary, #4f46e5);transform:translateY(-50%)}.ngx-textarea__float-label--focused:not(.ngx-textarea__float-label--error){color:var(--fill-primary, #4f46e5)}.ngx-textarea__float-label--error{color:var(--fill-danger, #dc2626)}.ngx-textarea__footer{display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem;min-height:1.25rem}.ngx-textarea__message{margin-top:.375rem;font-size:.75rem;line-height:1.4}.ngx-textarea__message--hint{color:var(--text-muted, #6b7280)}.ngx-textarea__message--error{color:var(--fill-danger, #dc2626)}.ngx-textarea__count{flex-shrink:0;margin-top:.375rem;font-size:.75rem;color:var(--text-placeholder, #6b7280)}.ngx-textarea__count--limit{color:var(--fill-danger, #dc2626)}\n"] }]
|
|
1553
|
-
}], 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 }] }], resize: [{ type: i0.Input, args: [{ isSignal: true, alias: "resize", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", 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 }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], showCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCount", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }] } });
|
|
1561
|
+
}], 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 }] }], resize: [{ type: i0.Input, args: [{ isSignal: true, alias: "resize", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", 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 }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], maxLength: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxLength", required: false }] }], showCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCount", 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 }] }] } });
|
|
1554
1562
|
|
|
1555
1563
|
/**
|
|
1556
1564
|
* Escucha clicks en `document` e invoca el callback cuando el click ocurre
|
|
@@ -1626,7 +1634,7 @@ function moveOptionFocus(event) {
|
|
|
1626
1634
|
}
|
|
1627
1635
|
|
|
1628
1636
|
const ICON_SIZE$a = { sm: 14, md: 16, lg: 18 };
|
|
1629
|
-
let nextId$
|
|
1637
|
+
let nextId$g = 0;
|
|
1630
1638
|
class SelectComponent {
|
|
1631
1639
|
i18n = inject(NGX_DS_LABELS);
|
|
1632
1640
|
// ── Configuration ──────────────────────────────────────────
|
|
@@ -1644,7 +1652,7 @@ class SelectComponent {
|
|
|
1644
1652
|
touched = input(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
|
|
1645
1653
|
// ── Value ─────────────────────────────────────────────────
|
|
1646
1654
|
value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1647
|
-
id = `ngx-select-${nextId$
|
|
1655
|
+
id = `ngx-select-${nextId$g++}`;
|
|
1648
1656
|
messageId = `${this.id}-message`;
|
|
1649
1657
|
// ── Icons ──────────────────────────────────────────────────
|
|
1650
1658
|
ChevronDown = ChevronDown;
|
|
@@ -1655,10 +1663,11 @@ class SelectComponent {
|
|
|
1655
1663
|
// ── Internal state ─────────────────────────────────────────
|
|
1656
1664
|
#open = signal(false, ...(ngDevMode ? [{ debugName: "#open" }] : /* istanbul ignore next */ []));
|
|
1657
1665
|
#search = signal('', ...(ngDevMode ? [{ debugName: "#search" }] : /* istanbul ignore next */ []));
|
|
1658
|
-
|
|
1666
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
1667
|
+
#cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#cvaDisabled" }] : /* istanbul ignore next */ []));
|
|
1659
1668
|
#focused = signal(false, ...(ngDevMode ? [{ debugName: "#focused" }] : /* istanbul ignore next */ []));
|
|
1660
1669
|
isOpen = this.#open.asReadonly();
|
|
1661
|
-
isDisabled = this
|
|
1670
|
+
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
1662
1671
|
searchText = this.#search.asReadonly();
|
|
1663
1672
|
iconSize = computed(() => ICON_SIZE$a[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
1664
1673
|
hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
@@ -1843,10 +1852,10 @@ class SelectComponent {
|
|
|
1843
1852
|
this.onTouched = fn;
|
|
1844
1853
|
}
|
|
1845
1854
|
setDisabledState(disabled) {
|
|
1846
|
-
this.#
|
|
1855
|
+
this.#cvaDisabled.set(disabled);
|
|
1847
1856
|
}
|
|
1848
1857
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1849
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: SelectComponent, isStandalone: true, selector: "ngx-ds-select", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", 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 }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [
|
|
1858
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: SelectComponent, isStandalone: true, selector: "ngx-ds-select", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", 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 }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [
|
|
1850
1859
|
{
|
|
1851
1860
|
provide: NG_VALUE_ACCESSOR,
|
|
1852
1861
|
useExisting: forwardRef(() => SelectComponent),
|
|
@@ -1863,10 +1872,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
1863
1872
|
multi: true,
|
|
1864
1873
|
},
|
|
1865
1874
|
], 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"] }]
|
|
1866
|
-
}], ctorParameters: () => [], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], floatingLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatingLabel", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], triggerRef: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }] } });
|
|
1875
|
+
}], 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 }] }] } });
|
|
1867
1876
|
|
|
1868
1877
|
const ICON_SIZE$9 = { sm: 14, md: 16, lg: 18 };
|
|
1869
|
-
let nextId$
|
|
1878
|
+
let nextId$f = 0;
|
|
1870
1879
|
class DropdownComponent {
|
|
1871
1880
|
i18n = inject(NGX_DS_LABELS);
|
|
1872
1881
|
// ── Configuration ──────────────────────────────────────────
|
|
@@ -1882,7 +1891,7 @@ class DropdownComponent {
|
|
|
1882
1891
|
touched = input(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
|
|
1883
1892
|
// ── Value ─────────────────────────────────────────────────
|
|
1884
1893
|
value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1885
|
-
id = `ngx-dropdown-${nextId$
|
|
1894
|
+
id = `ngx-dropdown-${nextId$f++}`;
|
|
1886
1895
|
messageId = `${this.id}-message`;
|
|
1887
1896
|
// ── Icons ──────────────────────────────────────────────────
|
|
1888
1897
|
ChevronDown = ChevronDown;
|
|
@@ -1891,10 +1900,11 @@ class DropdownComponent {
|
|
|
1891
1900
|
XIcon = X;
|
|
1892
1901
|
// ── Internal state ─────────────────────────────────────────
|
|
1893
1902
|
#open = signal(false, ...(ngDevMode ? [{ debugName: "#open" }] : /* istanbul ignore next */ []));
|
|
1894
|
-
|
|
1903
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
1904
|
+
#cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#cvaDisabled" }] : /* istanbul ignore next */ []));
|
|
1895
1905
|
#focused = signal(false, ...(ngDevMode ? [{ debugName: "#focused" }] : /* istanbul ignore next */ []));
|
|
1896
1906
|
isOpen = this.#open.asReadonly();
|
|
1897
|
-
isDisabled = this
|
|
1907
|
+
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
1898
1908
|
iconSize = computed(() => ICON_SIZE$9[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
1899
1909
|
hasError = computed(() => fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
1900
1910
|
errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
@@ -2015,10 +2025,10 @@ class DropdownComponent {
|
|
|
2015
2025
|
this.onTouched = fn;
|
|
2016
2026
|
}
|
|
2017
2027
|
setDisabledState(disabled) {
|
|
2018
|
-
this.#
|
|
2028
|
+
this.#cvaDisabled.set(disabled);
|
|
2019
2029
|
}
|
|
2020
2030
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2021
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: DropdownComponent, isStandalone: true, selector: "ngx-ds-dropdown", inputs: { options: { classPropertyName: "options", publicName: "options", 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 }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [
|
|
2031
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: DropdownComponent, isStandalone: true, selector: "ngx-ds-dropdown", inputs: { options: { classPropertyName: "options", publicName: "options", 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 }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [
|
|
2022
2032
|
{
|
|
2023
2033
|
provide: NG_VALUE_ACCESSOR,
|
|
2024
2034
|
useExisting: forwardRef(() => DropdownComponent),
|
|
@@ -2035,10 +2045,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
2035
2045
|
multi: true,
|
|
2036
2046
|
},
|
|
2037
2047
|
], 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"] }]
|
|
2038
|
-
}], ctorParameters: () => [], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], floatingLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatingLabel", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], triggerRef: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }] } });
|
|
2048
|
+
}], 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 }] }] } });
|
|
2039
2049
|
|
|
2040
2050
|
const ICON_SIZE$8 = { sm: 14, md: 16, lg: 18 };
|
|
2041
|
-
let nextId$
|
|
2051
|
+
let nextId$e = 0;
|
|
2042
2052
|
class AutocompleteComponent {
|
|
2043
2053
|
i18n = inject(NGX_DS_LABELS);
|
|
2044
2054
|
sanitizer = inject(DomSanitizer);
|
|
@@ -2070,7 +2080,7 @@ class AutocompleteComponent {
|
|
|
2070
2080
|
// ── Outputs ──────────────────────────────────────────────
|
|
2071
2081
|
/** Emits the current search string (debounced) — use for async data loading */
|
|
2072
2082
|
searchChange = output();
|
|
2073
|
-
id = `ngx-autocomplete-${nextId$
|
|
2083
|
+
id = `ngx-autocomplete-${nextId$e++}`;
|
|
2074
2084
|
messageId = `${this.id}-message`;
|
|
2075
2085
|
// ── Icons ────────────────────────────────────────────────
|
|
2076
2086
|
SearchIcon = Search;
|
|
@@ -2078,11 +2088,12 @@ class AutocompleteComponent {
|
|
|
2078
2088
|
// ── Internal state ────────────────────────────────────────
|
|
2079
2089
|
#open = signal(false, ...(ngDevMode ? [{ debugName: "#open" }] : /* istanbul ignore next */ []));
|
|
2080
2090
|
#inputText = signal('', ...(ngDevMode ? [{ debugName: "#inputText" }] : /* istanbul ignore next */ []));
|
|
2081
|
-
|
|
2091
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
2092
|
+
#cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#cvaDisabled" }] : /* istanbul ignore next */ []));
|
|
2082
2093
|
#focused = signal(false, ...(ngDevMode ? [{ debugName: "#focused" }] : /* istanbul ignore next */ []));
|
|
2083
2094
|
isOpen = this.#open.asReadonly();
|
|
2084
2095
|
inputText = this.#inputText.asReadonly();
|
|
2085
|
-
isDisabled = this
|
|
2096
|
+
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
2086
2097
|
isFocused = this.#focused.asReadonly();
|
|
2087
2098
|
searchTimer = null;
|
|
2088
2099
|
inputEl = null;
|
|
@@ -2260,10 +2271,10 @@ class AutocompleteComponent {
|
|
|
2260
2271
|
this.onTouched = fn;
|
|
2261
2272
|
}
|
|
2262
2273
|
setDisabledState(disabled) {
|
|
2263
|
-
this.#
|
|
2274
|
+
this.#cvaDisabled.set(disabled);
|
|
2264
2275
|
}
|
|
2265
2276
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: AutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2266
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: AutocompleteComponent, isStandalone: true, selector: "ngx-ds-autocomplete", inputs: { options: { classPropertyName: "options", publicName: "options", 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 }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, minChars: { classPropertyName: "minChars", publicName: "minChars", isSignal: true, isRequired: false, transformFunction: null }, debounceMs: { classPropertyName: "debounceMs", publicName: "debounceMs", isSignal: true, isRequired: false, transformFunction: null }, allowCustom: { classPropertyName: "allowCustom", publicName: "allowCustom", isSignal: true, isRequired: false, transformFunction: null }, showAllOnFocus: { classPropertyName: "showAllOnFocus", publicName: "showAllOnFocus", isSignal: true, isRequired: false, transformFunction: null }, noResultsText: { classPropertyName: "noResultsText", publicName: "noResultsText", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", searchChange: "searchChange" }, providers: [
|
|
2277
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: AutocompleteComponent, isStandalone: true, selector: "ngx-ds-autocomplete", inputs: { options: { classPropertyName: "options", publicName: "options", 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 }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, minChars: { classPropertyName: "minChars", publicName: "minChars", isSignal: true, isRequired: false, transformFunction: null }, debounceMs: { classPropertyName: "debounceMs", publicName: "debounceMs", isSignal: true, isRequired: false, transformFunction: null }, allowCustom: { classPropertyName: "allowCustom", publicName: "allowCustom", isSignal: true, isRequired: false, transformFunction: null }, showAllOnFocus: { classPropertyName: "showAllOnFocus", publicName: "showAllOnFocus", isSignal: true, isRequired: false, transformFunction: null }, noResultsText: { classPropertyName: "noResultsText", publicName: "noResultsText", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", searchChange: "searchChange" }, providers: [
|
|
2267
2278
|
{
|
|
2268
2279
|
provide: NG_VALUE_ACCESSOR,
|
|
2269
2280
|
useExisting: forwardRef(() => AutocompleteComponent),
|
|
@@ -2280,7 +2291,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
2280
2291
|
multi: true,
|
|
2281
2292
|
},
|
|
2282
2293
|
], template: "<!-- Static label -->\n@if (!floatingLabel() && label()) {\n <label [for]=\"id\" class=\"ngx-autocomplete__label\">{{ label() }}</label>\n}\n\n<!-- Field container -->\n<div [class]=\"fieldClasses()\">\n <!-- Floating label -->\n @if (floatingLabel() && label()) {\n <label [for]=\"id\" [class]=\"floatLabelClasses()\">{{ label() }}</label>\n }\n\n <!-- Left icon -->\n @if (iconLeft()) {\n <span class=\"ngx-autocomplete__icon ngx-autocomplete__icon--left\" aria-hidden=\"true\">\n <ngx-ds-icon [icon]=\"iconLeft()!\" [size]=\"iconSize()\" />\n </span>\n }\n\n <!-- Text input -->\n <input\n #nativeInput\n class=\"ngx-autocomplete__native\"\n [id]=\"id\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"errorText() || hint() ? messageId : null\"\n type=\"text\"\n [value]=\"inputText()\"\n [placeholder]=\"\n floatingLabel() && label() && !isFloating() ? '' : (placeholder() ?? i18n.searchPlaceholder)\n \"\n [disabled]=\"isDisabled() || null\"\n autocomplete=\"off\"\n role=\"combobox\"\n [attr.aria-controls]=\"id + '-panel'\"\n [attr.aria-expanded]=\"showPanel()\"\n [attr.aria-autocomplete]=\"'list'\"\n (input)=\"onInputChange($any($event.target).value)\"\n (focus)=\"onFocus()\"\n (blur)=\"onBlur()\"\n />\n\n <!-- Loading spinner -->\n @if (loading()) {\n <span class=\"ngx-autocomplete__spinner\" aria-hidden=\"true\">\n <span class=\"ngx-autocomplete__spinner-ring\"></span>\n </span>\n }\n\n <!-- Clear button -->\n @if (hasValue() && !isDisabled() && !loading()) {\n <button\n type=\"button\"\n class=\"ngx-autocomplete__clear\"\n [attr.aria-label]=\"i18n.clear\"\n (mousedown)=\"onClear($event)\"\n >\n <ngx-ds-icon [icon]=\"XIcon\" [size]=\"iconSize()\" />\n </button>\n }\n</div>\n\n<!-- Dropdown panel -->\n@if (showPanel()) {\n <div class=\"ngx-autocomplete__panel\" role=\"listbox\" [id]=\"id + '-panel'\">\n <ul class=\"ngx-autocomplete__options\" role=\"presentation\">\n @for (option of filteredOptions(); track option.value) {\n <li\n class=\"ngx-autocomplete__option\"\n [class.ngx-autocomplete__option--selected]=\"isSelected(option.value)\"\n [class.ngx-autocomplete__option--disabled]=\"option.disabled\"\n role=\"option\"\n [attr.aria-selected]=\"isSelected(option.value)\"\n (mousedown)=\"onOptionSelect(option)\"\n >\n <span [innerHTML]=\"getHighlightedLabel(option.label)\"></span>\n @if (isSelected(option.value)) {\n <span class=\"ngx-autocomplete__check\" aria-hidden=\"true\">\n <ngx-ds-icon [icon]=\"SearchIcon\" [size]=\"12\" />\n </span>\n }\n </li>\n } @empty {\n @if (!loading()) {\n <li class=\"ngx-autocomplete__empty\">{{ noResultsText() ?? i18n.noResults }}</li>\n }\n }\n </ul>\n @if (loading() && filteredOptions().length === 0) {\n <p class=\"ngx-autocomplete__loading-text\">{{ i18n.searching }}</p>\n }\n </div>\n}\n\n<!-- Error / Hint -->\n@if (errorText()) {\n <p\n [id]=\"messageId\"\n class=\"ngx-autocomplete__message ngx-autocomplete__message--error\"\n role=\"alert\"\n >\n {{ errorText() }}\n </p>\n} @else if (hint()) {\n <p [id]=\"messageId\" class=\"ngx-autocomplete__message ngx-autocomplete__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-autocomplete__label{display:block;margin-bottom:.375rem;font-size:.875rem;font-weight:500;color:var(--text-secondary, #374151)}.ngx-autocomplete__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-autocomplete__field--focused{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f61f}.ngx-autocomplete__field--error{border-color:var(--danger-500, #ef4444)}.ngx-autocomplete__field--error.ngx-autocomplete__field--focused{box-shadow:0 0 0 3px #ef44441f}.ngx-autocomplete__field--disabled{background:var(--surface-subtle, #f9fafb);cursor:not-allowed}.ngx-autocomplete__field--sm{padding:.375rem .625rem;font-size:.8125rem}.ngx-autocomplete__field--md{padding:.5rem .75rem;font-size:.875rem}.ngx-autocomplete__field--lg{padding:.625rem 1rem;font-size:1rem}.ngx-autocomplete__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-autocomplete__native::placeholder{color:var(--text-placeholder, #6b7280)}.ngx-autocomplete__native:disabled{cursor:not-allowed;color:var(--text-muted, #6b7280)}.ngx-autocomplete__icon{display:inline-flex;align-items:center;flex-shrink:0;color:var(--text-placeholder, #6b7280)}.ngx-autocomplete__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}.ngx-autocomplete__clear:hover{color:var(--text-muted, #6b7280)}.ngx-autocomplete__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-autocomplete__float-label--active{top:0;font-size:.7rem;background:var(--surface-base, #fff);padding:0 .25rem;color:var(--fill-primary, #4f46e5)}.ngx-autocomplete__float-label--offset{left:2.25rem}.ngx-autocomplete__float-label--focused:not(.ngx-autocomplete__float-label--error){color:var(--fill-primary, #4f46e5)}.ngx-autocomplete__float-label--error{color:var(--fill-danger, #dc2626)}.ngx-autocomplete__spinner{display:inline-flex;align-items:center;flex-shrink:0}.ngx-autocomplete__spinner-ring{display:block;width:1rem;height:1rem;border:2px solid var(--surface-active, #e5e7eb);border-top-color:var(--primary-500, #6366f1);border-radius:50%;animation:ngx-spin .7s linear infinite}@keyframes ngx-spin{to{transform:rotate(360deg)}}.ngx-autocomplete__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-autocomplete__options{list-style:none;margin:0;padding:.25rem 0;max-height:14rem;overflow-y:auto}.ngx-autocomplete__option{display:flex;align-items:center;justify-content:space-between;padding:.5rem .75rem;font-size:.875rem;color:var(--text-secondary, #374151);cursor:pointer;transition:background .1s ease}.ngx-autocomplete__option:hover:not(.ngx-autocomplete__option--disabled){background:var(--surface-subtle, #f9fafb)}.ngx-autocomplete__option--selected:not(.ngx-autocomplete__option--disabled){color:var(--primary-700, #4338ca);background:var(--primary-50, #eef2ff)}.ngx-autocomplete__option--disabled{color:var(--text-placeholder, #6b7280);cursor:not-allowed}.ngx-autocomplete__highlight{background:var(--warning-200, #fde68a);color:var(--warning-800, #92400e);border-radius:.125rem;font-style:normal;font-weight:600;padding:0 .1rem}.ngx-autocomplete__check{flex-shrink:0;color:var(--fill-primary, #4f46e5);display:inline-flex;align-items:center}.ngx-autocomplete__empty,.ngx-autocomplete__loading-text{padding:.75rem;text-align:center;font-size:.875rem;color:var(--text-placeholder, #6b7280)}.ngx-autocomplete__message{margin-top:.375rem;font-size:.75rem;line-height:1.4}.ngx-autocomplete__message--hint{color:var(--text-muted, #6b7280)}.ngx-autocomplete__message--error{color:var(--fill-danger, #dc2626)}\n"] }]
|
|
2283
|
-
}], 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 }] }], iconLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeft", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], minChars: [{ type: i0.Input, args: [{ isSignal: true, alias: "minChars", required: false }] }], debounceMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "debounceMs", required: false }] }], allowCustom: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowCustom", required: false }] }], showAllOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAllOnFocus", required: false }] }], noResultsText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noResultsText", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], searchChange: [{ type: i0.Output, args: ["searchChange"] }] } });
|
|
2294
|
+
}], 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 }] }], iconLeft: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconLeft", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], minChars: [{ type: i0.Input, args: [{ isSignal: true, alias: "minChars", required: false }] }], debounceMs: [{ type: i0.Input, args: [{ isSignal: true, alias: "debounceMs", required: false }] }], allowCustom: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowCustom", required: false }] }], showAllOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAllOnFocus", required: false }] }], noResultsText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noResultsText", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], searchChange: [{ type: i0.Output, args: ["searchChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
|
|
2284
2295
|
|
|
2285
2296
|
/** True when both dates fall on the same calendar day. */
|
|
2286
2297
|
function isSameDay(a, b) {
|
|
@@ -2342,7 +2353,7 @@ function moveFocusDate(date, event, firstDayOfWeek = 1) {
|
|
|
2342
2353
|
}
|
|
2343
2354
|
|
|
2344
2355
|
const ICON_SIZE$7 = { sm: 14, md: 16, lg: 18 };
|
|
2345
|
-
let nextId$
|
|
2356
|
+
let nextId$d = 0;
|
|
2346
2357
|
class DatepickerComponent {
|
|
2347
2358
|
i18n = inject(NGX_DS_LABELS);
|
|
2348
2359
|
// ── Configuration ─────────────────────────────────────────
|
|
@@ -2363,7 +2374,7 @@ class DatepickerComponent {
|
|
|
2363
2374
|
showToday = input(true, ...(ngDevMode ? [{ debugName: "showToday" }] : /* istanbul ignore next */ []));
|
|
2364
2375
|
// ── Value ────────────────────────────────────────────────
|
|
2365
2376
|
value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
2366
|
-
id = `ngx-datepicker-${nextId$
|
|
2377
|
+
id = `ngx-datepicker-${nextId$d++}`;
|
|
2367
2378
|
messageId = `${this.id}-message`;
|
|
2368
2379
|
// ── Icons ────────────────────────────────────────────────
|
|
2369
2380
|
CalendarIcon = Calendar;
|
|
@@ -2373,7 +2384,8 @@ class DatepickerComponent {
|
|
|
2373
2384
|
// ── Internal state ────────────────────────────────────────
|
|
2374
2385
|
#open = signal(false, ...(ngDevMode ? [{ debugName: "#open" }] : /* istanbul ignore next */ []));
|
|
2375
2386
|
#focused = signal(false, ...(ngDevMode ? [{ debugName: "#focused" }] : /* istanbul ignore next */ []));
|
|
2376
|
-
|
|
2387
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
2388
|
+
#cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#cvaDisabled" }] : /* istanbul ignore next */ []));
|
|
2377
2389
|
/** Day that owns the roving tabindex in the grid; the visible month follows it. */
|
|
2378
2390
|
#focusedDate = signal(startOfDay(new Date()), ...(ngDevMode ? [{ debugName: "#focusedDate" }] : /* istanbul ignore next */ []));
|
|
2379
2391
|
#viewMonth = computed(() => this.#focusedDate().getMonth(), ...(ngDevMode ? [{ debugName: "#viewMonth" }] : /* istanbul ignore next */ []));
|
|
@@ -2383,7 +2395,7 @@ class DatepickerComponent {
|
|
|
2383
2395
|
#months = monthNames(this.#locale);
|
|
2384
2396
|
#weekdays = weekdayNames(this.#locale);
|
|
2385
2397
|
isOpen = this.#open.asReadonly();
|
|
2386
|
-
isDisabled = this
|
|
2398
|
+
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
2387
2399
|
isFocused = this.#focused.asReadonly();
|
|
2388
2400
|
// ── Derived ───────────────────────────────────────────────
|
|
2389
2401
|
iconSize = computed(() => ICON_SIZE$7[this.size()], ...(ngDevMode ? [{ debugName: "iconSize" }] : /* istanbul ignore next */ []));
|
|
@@ -2601,10 +2613,10 @@ class DatepickerComponent {
|
|
|
2601
2613
|
this.onTouched = fn;
|
|
2602
2614
|
}
|
|
2603
2615
|
setDisabledState(disabled) {
|
|
2604
|
-
this.#
|
|
2616
|
+
this.#cvaDisabled.set(disabled);
|
|
2605
2617
|
}
|
|
2606
2618
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2607
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: DatepickerComponent, isStandalone: true, selector: "ngx-ds-datepicker", inputs: { 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 }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, disabledDates: { classPropertyName: "disabledDates", publicName: "disabledDates", isSignal: true, isRequired: false, transformFunction: null }, disabledDaysOfWeek: { classPropertyName: "disabledDaysOfWeek", publicName: "disabledDaysOfWeek", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, showToday: { classPropertyName: "showToday", publicName: "showToday", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [
|
|
2619
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: DatepickerComponent, isStandalone: true, selector: "ngx-ds-datepicker", inputs: { 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 }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, disabledDates: { classPropertyName: "disabledDates", publicName: "disabledDates", isSignal: true, isRequired: false, transformFunction: null }, disabledDaysOfWeek: { classPropertyName: "disabledDaysOfWeek", publicName: "disabledDaysOfWeek", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, showToday: { classPropertyName: "showToday", publicName: "showToday", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [
|
|
2608
2620
|
{
|
|
2609
2621
|
provide: NG_VALUE_ACCESSOR,
|
|
2610
2622
|
useExisting: forwardRef(() => DatepickerComponent),
|
|
@@ -2621,7 +2633,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
2621
2633
|
multi: true,
|
|
2622
2634
|
},
|
|
2623
2635
|
], template: "<!-- Static label -->\n@if (!floatingLabel() && label()) {\n <label [for]=\"id\" class=\"ngx-datepicker__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-datepicker__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 [attr.tabindex]=\"isDisabled() ? -1 : 0\"\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 <!-- Calendar icon -->\n <span class=\"ngx-datepicker__icon\" aria-hidden=\"true\">\n <ngx-ds-icon [icon]=\"CalendarIcon\" [size]=\"iconSize()\" />\n </span>\n\n <!-- Display value -->\n <span class=\"ngx-datepicker__display\">\n @if (displayValue()) {\n <span class=\"ngx-datepicker__value\">{{ displayValue() }}</span>\n } @else {\n <span class=\"ngx-datepicker__placeholder\">{{ placeholder() ?? i18n.datePlaceholder }}</span>\n }\n </span>\n </div>\n\n @if (hasValue() && !isDisabled()) {\n <button\n type=\"button\"\n class=\"ngx-datepicker__clear\"\n [attr.aria-label]=\"i18n.clearDate\"\n (click)=\"clearValue($event)\"\n >\n <ngx-ds-icon [icon]=\"XIcon\" [size]=\"iconSize()\" />\n </button>\n }\n</div>\n\n<!-- Calendar panel -->\n@if (isOpen()) {\n <div class=\"ngx-datepicker__panel\" role=\"dialog\" [attr.aria-label]=\"i18n.calendar\">\n <!-- Month navigation -->\n <div class=\"ngx-datepicker__header\">\n <button\n type=\"button\"\n class=\"ngx-datepicker__nav\"\n [attr.aria-label]=\"i18n.prevMonth\"\n (click)=\"prevMonth(); $event.stopPropagation()\"\n >\n <ngx-ds-icon [icon]=\"ChevronLeft\" [size]=\"16\" />\n </button>\n <span class=\"ngx-datepicker__header-text\">{{ headerText() }}</span>\n <button\n type=\"button\"\n class=\"ngx-datepicker__nav\"\n [attr.aria-label]=\"i18n.nextMonth\"\n (click)=\"nextMonth(); $event.stopPropagation()\"\n >\n <ngx-ds-icon [icon]=\"ChevronRight\" [size]=\"16\" />\n </button>\n </div>\n\n <!-- Weekday labels -->\n <div class=\"ngx-datepicker__weekdays\" aria-hidden=\"true\">\n @for (day of weekdayLabels(); track day) {\n <span class=\"ngx-datepicker__weekday\">{{ day }}</span>\n }\n </div>\n\n <!-- Day grid -->\n <div #grid class=\"ngx-datepicker__days\" role=\"grid\" [attr.aria-label]=\"headerText()\">\n @for (week of calendarWeeks(); track $index) {\n <div class=\"ngx-datepicker__week\" role=\"row\">\n @for (cell of week; track trackByTime($index, cell)) {\n <button\n type=\"button\"\n class=\"ngx-datepicker__day\"\n [class.ngx-datepicker__day--other-month]=\"!cell.inMonth\"\n [class.ngx-datepicker__day--today]=\"cell.isToday\"\n [class.ngx-datepicker__day--selected]=\"cell.isSelected\"\n [class.ngx-datepicker__day--disabled]=\"cell.isDisabled\"\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 role=\"gridcell\"\n (click)=\"selectDate(cell); $event.stopPropagation()\"\n (keydown)=\"onDayKeydown($event, cell)\"\n >\n {{ cell.date.getDate() }}\n </button>\n }\n </div>\n }\n </div>\n\n <!-- Footer -->\n @if (showToday()) {\n <div class=\"ngx-datepicker__footer\">\n <button\n type=\"button\"\n class=\"ngx-datepicker__today-btn\"\n (click)=\"selectToday(); $event.stopPropagation()\"\n >\n Hoy\n </button>\n </div>\n }\n </div>\n}\n\n<!-- Error / Hint -->\n@if (errorText()) {\n <p [id]=\"messageId\" class=\"ngx-datepicker__message ngx-datepicker__message--error\" role=\"alert\">\n {{ errorText() }}\n </p>\n} @else if (hint()) {\n <p [id]=\"messageId\" class=\"ngx-datepicker__message ngx-datepicker__message--hint\">{{ hint() }}</p>\n}\n", styles: [":host{display:block;position:relative;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.ngx-datepicker__label{display:block;margin-bottom:.375rem;font-size:.875rem;font-weight:500;color:var(--text-secondary, #374151)}.ngx-datepicker__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;cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .15s ease,box-shadow .15s ease;min-height:2.375rem}.ngx-datepicker__field--focused{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f61f}.ngx-datepicker__field--error{border-color:var(--danger-500, #ef4444)}.ngx-datepicker__field--error.ngx-datepicker__field--focused{box-shadow:0 0 0 3px #ef44441f}.ngx-datepicker__field--disabled{background:var(--surface-subtle, #f9fafb);cursor:not-allowed;color:var(--text-placeholder, #6b7280)}.ngx-datepicker__field--sm{padding:.375rem .625rem;font-size:.8125rem}.ngx-datepicker__field--md{padding:.5rem .75rem;font-size:.875rem}.ngx-datepicker__field--lg{padding:.625rem 1rem;font-size:1rem}.ngx-datepicker__float-label{position:absolute;left:2.25rem;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-datepicker__float-label--active{top:0;font-size:.7rem;background:var(--surface-base, #fff);padding:0 .25rem;color:var(--fill-primary, #4f46e5)}.ngx-datepicker__float-label--focused:not(.ngx-datepicker__float-label--error){color:var(--fill-primary, #4f46e5)}.ngx-datepicker__float-label--error{color:var(--fill-danger, #dc2626)}.ngx-datepicker__icon{display:inline-flex;align-items:center;flex-shrink:0;color:var(--text-placeholder, #6b7280)}.ngx-datepicker__display{flex:1;min-width:0}.ngx-datepicker__value{display:block;color:var(--text-base, #111827);font-variant-numeric:tabular-nums}.ngx-datepicker__placeholder{display:block;color:var(--text-placeholder, #6b7280)}.ngx-datepicker__control{position:relative}.ngx-datepicker__field.ngx-datepicker__field--clearable{padding-right:2.25rem}.ngx-datepicker__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-datepicker__clear:hover{color:var(--text-muted, #6b7280)}.ngx-datepicker__clear:focus-visible{outline:2px solid var(--primary-500, #6366f1);outline-offset:1px}.ngx-datepicker__panel{position:absolute;top:calc(100% + .25rem);left:0;z-index:100;background:var(--surface-base, #fff);border:1.5px solid var(--border-input, #d1d5db);border-radius:.5rem;box-shadow:0 8px 24px #0000001f;width:17.5rem;overflow:hidden}.ngx-datepicker__header{display:flex;align-items:center;justify-content:space-between;padding:.75rem .625rem .5rem;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.ngx-datepicker__header-text{font-size:.875rem;font-weight:600;color:var(--text-base, #111827);text-transform:capitalize}.ngx-datepicker__nav{display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;background:transparent;border:none;border-radius:.375rem;cursor:pointer;color:var(--text-muted, #6b7280);transition:background .1s ease,color .1s ease}.ngx-datepicker__nav:hover{background:var(--surface-muted, #f3f4f6);color:var(--text-base, #111827)}.ngx-datepicker__weekdays{display:grid;grid-template-columns:repeat(7,1fr);padding:.375rem .5rem .25rem}.ngx-datepicker__weekday{display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:600;color:var(--text-placeholder, #6b7280);text-transform:uppercase;letter-spacing:.03em}.ngx-datepicker__days{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;padding:0 .5rem .5rem}.ngx-datepicker__week{display:contents}.ngx-datepicker__day{display:flex;align-items:center;justify-content:center;height:2.25rem;padding:0;background:transparent;border:none;border-radius:.375rem;font-size:.8125rem;font-family:inherit;color:var(--text-secondary, #374151);cursor:pointer;transition:background .1s ease,color .1s ease;font-variant-numeric:tabular-nums}.ngx-datepicker__day:focus-visible{outline:2px solid var(--primary-300, #a5b4fc);outline-offset:1px}.ngx-datepicker__day:hover:not(.ngx-datepicker__day--disabled):not(.ngx-datepicker__day--selected){background:var(--surface-muted, #f3f4f6);color:var(--text-base, #111827)}.ngx-datepicker__day--other-month{color:var(--text-muted, #6b7280)}.ngx-datepicker__day--today:not(.ngx-datepicker__day--selected){color:var(--fill-primary, #4f46e5);font-weight:700;background:var(--primary-50, #eef2ff)}.ngx-datepicker__day--selected{background:var(--fill-primary, #4f46e5);color:var(--text-on-color, #fff);font-weight:600}.ngx-datepicker__day--selected:hover{background:var(--primary-700, #4338ca)}.ngx-datepicker__day--disabled{color:var(--text-disabled, #d1d5db);cursor:not-allowed;pointer-events:none}.ngx-datepicker__footer{display:flex;justify-content:center;padding:.5rem;border-top:1px solid var(--border-subtle, #f3f4f6)}.ngx-datepicker__today-btn{padding:.25rem .875rem;background:transparent;border:1.5px solid var(--border-base, #e5e7eb);border-radius:.375rem;font-size:.8125rem;font-family:inherit;font-weight:500;color:var(--fill-primary, #4f46e5);cursor:pointer;transition:background .1s ease,border-color .1s ease}.ngx-datepicker__today-btn:hover{background:var(--primary-50, #eef2ff);border-color:var(--primary-200, #c7d2fe)}.ngx-datepicker__message{margin-top:.375rem;font-size:.75rem;line-height:1.4}.ngx-datepicker__message--hint{color:var(--text-muted, #6b7280)}.ngx-datepicker__message--error{color:var(--fill-danger, #dc2626)}\n"] }]
|
|
2624
|
-
}], 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 }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], disabledDates: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDates", required: false }] }], disabledDaysOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDaysOfWeek", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], showToday: [{ type: i0.Input, args: [{ isSignal: true, alias: "showToday", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], triggerRef: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], gridRef: [{ type: i0.ViewChild, args: ['grid', { isSignal: true }] }] } });
|
|
2636
|
+
}], 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 }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], disabledDates: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDates", required: false }] }], disabledDaysOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDaysOfWeek", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], showToday: [{ type: i0.Input, args: [{ isSignal: true, alias: "showToday", 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 }] }], gridRef: [{ type: i0.ViewChild, args: ['grid', { isSignal: true }] }] } });
|
|
2625
2637
|
|
|
2626
2638
|
class PasswordStrengthComponent {
|
|
2627
2639
|
i18n = inject(NGX_DS_LABELS);
|
|
@@ -2717,7 +2729,10 @@ const TYPE_ICONS$1 = {
|
|
|
2717
2729
|
class AlertComponent {
|
|
2718
2730
|
i18n = inject(NGX_DS_LABELS);
|
|
2719
2731
|
title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
2720
|
-
|
|
2732
|
+
color = input('info', ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
2733
|
+
/** @deprecated Use `color`. Removed in 1.0. */
|
|
2734
|
+
type = input(undefined, ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
2735
|
+
effectiveColor = computed(() => this.type() ?? this.color(), ...(ngDevMode ? [{ debugName: "effectiveColor" }] : /* istanbul ignore next */ []));
|
|
2721
2736
|
variant = input('soft', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
2722
2737
|
showIcon = input(true, ...(ngDevMode ? [{ debugName: "showIcon" }] : /* istanbul ignore next */ []));
|
|
2723
2738
|
dismissible = input(false, ...(ngDevMode ? [{ debugName: "dismissible" }] : /* istanbul ignore next */ []));
|
|
@@ -2725,19 +2740,19 @@ class AlertComponent {
|
|
|
2725
2740
|
#closed = signal(false, ...(ngDevMode ? [{ debugName: "#closed" }] : /* istanbul ignore next */ []));
|
|
2726
2741
|
isClosed = this.#closed.asReadonly();
|
|
2727
2742
|
closeIcon = X;
|
|
2728
|
-
typeIcon = computed(() => TYPE_ICONS$1[this.
|
|
2729
|
-
hostClasses = computed(() => ['alert', `alert--${this.
|
|
2743
|
+
typeIcon = computed(() => TYPE_ICONS$1[this.effectiveColor()], ...(ngDevMode ? [{ debugName: "typeIcon" }] : /* istanbul ignore next */ []));
|
|
2744
|
+
hostClasses = computed(() => ['alert', `alert--${this.effectiveColor()}`, `alert--${this.variant()}`].join(' '), ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
2730
2745
|
close() {
|
|
2731
2746
|
this.#closed.set(true);
|
|
2732
2747
|
this.dismissed.emit();
|
|
2733
2748
|
}
|
|
2734
2749
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: AlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2735
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: AlertComponent, isStandalone: true, selector: "ngx-ds-alert", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dismissed: "dismissed" }, ngImport: i0, template: "@if (!isClosed()) {\n <div [class]=\"hostClasses()\" role=\"alert\">\n @if (showIcon()) {\n <ngx-ds-icon class=\"alert__icon\" [icon]=\"typeIcon()\" [size]=\"20\" aria-hidden=\"true\" />\n }\n\n <div class=\"alert__body\">\n @if (title()) {\n <p class=\"alert__title\">{{ title() }}</p>\n }\n <div class=\"alert__message\">\n <ng-content />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n type=\"button\"\n class=\"alert__close\"\n (click)=\"close()\"\n [attr.aria-label]=\"i18n.closeAlert\"\n >\n <ngx-ds-icon [icon]=\"closeIcon\" [size]=\"16\" aria-hidden=\"true\" />\n </button>\n }\n </div>\n}\n", styles: [".alert{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;border-radius:.5rem;border:1.5px solid transparent;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.alert__icon{flex-shrink:0;margin-top:.1rem}.alert__body{flex:1;min-width:0}.alert__title{margin:0 0 .25rem;font-size:.875rem;font-weight:600;line-height:1.25}.alert__message{font-size:.875rem;line-height:1.5}.alert__close{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;margin-top:.1rem;padding:0;background:transparent;border:none;border-radius:.25rem;cursor:pointer;opacity:.6;transition:opacity .15s ease}.alert__close:hover{opacity:1}.alert--info.alert--soft{background-color:var(--info-50, #eff6ff);border-color:var(--info-200, #bfdbfe);color:var(--info-800, #1e40af)}.alert--info.alert--solid{background-color:var(--fill-info, #2563eb);border-color:var(--fill-info, #2563eb);color:var(--text-on-color, #fff)}.alert--info.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-info, #2563eb);color:var(--info-800, #1e40af)}.alert--success.alert--soft{background-color:var(--success-50, #ecfdf5);border-color:var(--success-200, #a7f3d0);color:var(--success-800, #065f46)}.alert--success.alert--solid{background-color:var(--fill-success, #047857);border-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.alert--success.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-success, #047857);color:var(--success-800, #065f46)}.alert--warning.alert--soft{background-color:var(--warning-50, #fffbeb);border-color:var(--warning-200, #fde68a);color:var(--warning-800, #92400e)}.alert--warning.alert--solid{background-color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.alert--warning.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-warning, #b45309);color:var(--warning-800, #92400e)}.alert--danger.alert--soft{background-color:var(--danger-50, #fef2f2);border-color:var(--danger-200, #fecaca);color:var(--danger-800, #991b1b)}.alert--danger.alert--solid{background-color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.alert--danger.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-danger, #dc2626);color:var(--danger-800, #991b1b)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2750
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: AlertComponent, isStandalone: true, selector: "ngx-ds-alert", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dismissed: "dismissed" }, ngImport: i0, template: "@if (!isClosed()) {\n <div [class]=\"hostClasses()\" role=\"alert\">\n @if (showIcon()) {\n <ngx-ds-icon class=\"alert__icon\" [icon]=\"typeIcon()\" [size]=\"20\" aria-hidden=\"true\" />\n }\n\n <div class=\"alert__body\">\n @if (title()) {\n <p class=\"alert__title\">{{ title() }}</p>\n }\n <div class=\"alert__message\">\n <ng-content />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n type=\"button\"\n class=\"alert__close\"\n (click)=\"close()\"\n [attr.aria-label]=\"i18n.closeAlert\"\n >\n <ngx-ds-icon [icon]=\"closeIcon\" [size]=\"16\" aria-hidden=\"true\" />\n </button>\n }\n </div>\n}\n", styles: [".alert{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;border-radius:.5rem;border:1.5px solid transparent;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.alert__icon{flex-shrink:0;margin-top:.1rem}.alert__body{flex:1;min-width:0}.alert__title{margin:0 0 .25rem;font-size:.875rem;font-weight:600;line-height:1.25}.alert__message{font-size:.875rem;line-height:1.5}.alert__close{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;margin-top:.1rem;padding:0;background:transparent;border:none;border-radius:.25rem;cursor:pointer;opacity:.6;transition:opacity .15s ease}.alert__close:hover{opacity:1}.alert--info.alert--soft{background-color:var(--info-50, #eff6ff);border-color:var(--info-200, #bfdbfe);color:var(--info-800, #1e40af)}.alert--info.alert--solid{background-color:var(--fill-info, #2563eb);border-color:var(--fill-info, #2563eb);color:var(--text-on-color, #fff)}.alert--info.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-info, #2563eb);color:var(--info-800, #1e40af)}.alert--success.alert--soft{background-color:var(--success-50, #ecfdf5);border-color:var(--success-200, #a7f3d0);color:var(--success-800, #065f46)}.alert--success.alert--solid{background-color:var(--fill-success, #047857);border-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.alert--success.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-success, #047857);color:var(--success-800, #065f46)}.alert--warning.alert--soft{background-color:var(--warning-50, #fffbeb);border-color:var(--warning-200, #fde68a);color:var(--warning-800, #92400e)}.alert--warning.alert--solid{background-color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.alert--warning.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-warning, #b45309);color:var(--warning-800, #92400e)}.alert--danger.alert--soft{background-color:var(--danger-50, #fef2f2);border-color:var(--danger-200, #fecaca);color:var(--danger-800, #991b1b)}.alert--danger.alert--solid{background-color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.alert--danger.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-danger, #dc2626);color:var(--danger-800, #991b1b)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2736
2751
|
}
|
|
2737
2752
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: AlertComponent, decorators: [{
|
|
2738
2753
|
type: Component,
|
|
2739
2754
|
args: [{ selector: 'ngx-ds-alert', standalone: true, imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (!isClosed()) {\n <div [class]=\"hostClasses()\" role=\"alert\">\n @if (showIcon()) {\n <ngx-ds-icon class=\"alert__icon\" [icon]=\"typeIcon()\" [size]=\"20\" aria-hidden=\"true\" />\n }\n\n <div class=\"alert__body\">\n @if (title()) {\n <p class=\"alert__title\">{{ title() }}</p>\n }\n <div class=\"alert__message\">\n <ng-content />\n </div>\n </div>\n\n @if (dismissible()) {\n <button\n type=\"button\"\n class=\"alert__close\"\n (click)=\"close()\"\n [attr.aria-label]=\"i18n.closeAlert\"\n >\n <ngx-ds-icon [icon]=\"closeIcon\" [size]=\"16\" aria-hidden=\"true\" />\n </button>\n }\n </div>\n}\n", styles: [".alert{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;border-radius:.5rem;border:1.5px solid transparent;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.alert__icon{flex-shrink:0;margin-top:.1rem}.alert__body{flex:1;min-width:0}.alert__title{margin:0 0 .25rem;font-size:.875rem;font-weight:600;line-height:1.25}.alert__message{font-size:.875rem;line-height:1.5}.alert__close{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;margin-top:.1rem;padding:0;background:transparent;border:none;border-radius:.25rem;cursor:pointer;opacity:.6;transition:opacity .15s ease}.alert__close:hover{opacity:1}.alert--info.alert--soft{background-color:var(--info-50, #eff6ff);border-color:var(--info-200, #bfdbfe);color:var(--info-800, #1e40af)}.alert--info.alert--solid{background-color:var(--fill-info, #2563eb);border-color:var(--fill-info, #2563eb);color:var(--text-on-color, #fff)}.alert--info.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-info, #2563eb);color:var(--info-800, #1e40af)}.alert--success.alert--soft{background-color:var(--success-50, #ecfdf5);border-color:var(--success-200, #a7f3d0);color:var(--success-800, #065f46)}.alert--success.alert--solid{background-color:var(--fill-success, #047857);border-color:var(--fill-success, #047857);color:var(--text-on-color, #fff)}.alert--success.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-success, #047857);color:var(--success-800, #065f46)}.alert--warning.alert--soft{background-color:var(--warning-50, #fffbeb);border-color:var(--warning-200, #fde68a);color:var(--warning-800, #92400e)}.alert--warning.alert--solid{background-color:var(--fill-warning, #b45309);border-color:var(--fill-warning, #b45309);color:var(--text-on-color, #fff)}.alert--warning.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-warning, #b45309);color:var(--warning-800, #92400e)}.alert--danger.alert--soft{background-color:var(--danger-50, #fef2f2);border-color:var(--danger-200, #fecaca);color:var(--danger-800, #991b1b)}.alert--danger.alert--solid{background-color:var(--fill-danger, #dc2626);border-color:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff)}.alert--danger.alert--outline{background-color:var(--surface-base, #fff);border-color:var(--fill-danger, #dc2626);color:var(--danger-800, #991b1b)}\n"] }]
|
|
2740
|
-
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], dismissed: [{ type: i0.Output, args: ["dismissed"] }] } });
|
|
2755
|
+
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], dismissed: [{ type: i0.Output, args: ["dismissed"] }] } });
|
|
2741
2756
|
|
|
2742
2757
|
class FileUploadComponent {
|
|
2743
2758
|
i18n = inject(NGX_DS_LABELS);
|
|
@@ -2914,6 +2929,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
2914
2929
|
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"] }]
|
|
2915
2930
|
}], 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"] }] } });
|
|
2916
2931
|
|
|
2932
|
+
let nextId$c = 0;
|
|
2917
2933
|
const BOX_DIM = { sm: '2rem', md: '2.75rem', lg: '3.25rem' };
|
|
2918
2934
|
const BOX_FS = { sm: '0.875rem', md: '1rem', lg: '1.25rem' };
|
|
2919
2935
|
class OtpInputComponent {
|
|
@@ -2923,11 +2939,16 @@ class OtpInputComponent {
|
|
|
2923
2939
|
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
2924
2940
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
2925
2941
|
masked = input(false, ...(ngDevMode ? [{ debugName: "masked" }] : /* istanbul ignore next */ []));
|
|
2942
|
+
/** Message shown under the boxes. It also switches them to the error style. */
|
|
2943
|
+
errorMessage = input('', ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
|
|
2944
|
+
/** @deprecated Use `errorMessage`. Removed in 1.0. */
|
|
2926
2945
|
error = input(false, ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
2927
2946
|
/** Set by Signal Forms `[formField]`. Its errors show once the field is touched. */
|
|
2928
2947
|
errors = input([], ...(ngDevMode ? [{ debugName: "errors" }] : /* istanbul ignore next */ []));
|
|
2929
2948
|
touched = input(false, ...(ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []));
|
|
2930
|
-
hasError = computed(() => this.error() || fieldHasError(
|
|
2949
|
+
hasError = computed(() => this.error() || fieldHasError(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "hasError" }] : /* istanbul ignore next */ []));
|
|
2950
|
+
errorText = computed(() => fieldErrorText(this.errorMessage(), this.errors(), this.touched()), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
2951
|
+
messageId = `ngx-otp-${nextId$c++}-message`;
|
|
2931
2952
|
value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
2932
2953
|
complete = output();
|
|
2933
2954
|
#formDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#formDisabled" }] : /* istanbul ignore next */ []));
|
|
@@ -3044,13 +3065,13 @@ class OtpInputComponent {
|
|
|
3044
3065
|
this.#formDisabled.set(disabled);
|
|
3045
3066
|
}
|
|
3046
3067
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: OtpInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3047
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: OtpInputComponent, isStandalone: true, selector: "ngx-ds-otp-input", inputs: { length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", 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 }, masked: { classPropertyName: "masked", publicName: "masked", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", 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 }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", complete: "complete" }, providers: [
|
|
3068
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: OtpInputComponent, isStandalone: true, selector: "ngx-ds-otp-input", inputs: { length: { classPropertyName: "length", publicName: "length", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", 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 }, masked: { classPropertyName: "masked", publicName: "masked", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", 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 }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", complete: "complete" }, providers: [
|
|
3048
3069
|
{
|
|
3049
3070
|
provide: NG_VALUE_ACCESSOR,
|
|
3050
3071
|
useExisting: forwardRef(() => OtpInputComponent),
|
|
3051
3072
|
multi: true,
|
|
3052
3073
|
},
|
|
3053
|
-
], viewQueries: [{ propertyName: "boxes", predicate: ["otpBox"], descendants: true, isSignal: true }], ngImport: i0, template: "<div [class]=\"wrapperClasses()\" role=\"group\" [attr.aria-label]=\"i18n.otpGroup\">\n @for (i of indices(); track i) {\n <input\n #otpBox\n [class]=\"boxClasses()\"\n [type]=\"inputType()\"\n [inputMode]=\"inputMode()\"\n maxlength=\"1\"\n [value]=\"digits()[i] || ''\"\n [attr.autocomplete]=\"i === 0 ? 'one-time-code' : 'off'\"\n [disabled]=\"isDisabled() || null\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-label]=\"i18n.otpDigit(i + 1, indices().length)\"\n [style.width]=\"boxDim()\"\n [style.height]=\"boxDim()\"\n [style.fontSize]=\"boxFs()\"\n (input)=\"onInput($event, i)\"\n (keydown)=\"onKeydown($event, i)\"\n (paste)=\"onPaste($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur()\"\n />\n }\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.otp{display:flex;align-items:center;gap:.5rem}.otp--disabled{opacity:.55;pointer-events:none}.otp__box{display:flex;align-items:center;justify-content:center;padding:0;text-align:center;background:var(--surface-base, #fff);border:1.5px solid var(--border-input, #d1d5db);border-radius:.5rem;color:var(--text-base, #111827);font-family:inherit;font-weight:600;caret-color:var(--primary-500, #6366f1);transition:border-color .15s ease,box-shadow .15s ease;outline:none}.otp__box:focus{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f61f}.otp__box--error{border-color:var(--danger-500, #ef4444);background:#ef44440a}.otp__box--error:focus{box-shadow:0 0 0 3px #ef44441f}.otp__box--disabled{background:var(--surface-subtle, #f9fafb);cursor:not-allowed}.otp__box::-webkit-outer-spin-button,.otp__box::-webkit-inner-spin-button{-webkit-appearance:none}.otp__box{-moz-appearance:textfield}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3074
|
+
], viewQueries: [{ propertyName: "boxes", predicate: ["otpBox"], descendants: true, isSignal: true }], ngImport: i0, template: "<div [class]=\"wrapperClasses()\" role=\"group\" [attr.aria-label]=\"i18n.otpGroup\">\n @for (i of indices(); track i) {\n <input\n #otpBox\n [class]=\"boxClasses()\"\n [type]=\"inputType()\"\n [inputMode]=\"inputMode()\"\n maxlength=\"1\"\n [value]=\"digits()[i] || ''\"\n [attr.autocomplete]=\"i === 0 ? 'one-time-code' : 'off'\"\n [disabled]=\"isDisabled() || null\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"errorText() ? messageId : null\"\n [attr.aria-label]=\"i18n.otpDigit(i + 1, indices().length)\"\n [style.width]=\"boxDim()\"\n [style.height]=\"boxDim()\"\n [style.fontSize]=\"boxFs()\"\n (input)=\"onInput($event, i)\"\n (keydown)=\"onKeydown($event, i)\"\n (paste)=\"onPaste($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur()\"\n />\n }\n</div>\n@if (errorText()) {\n <p [id]=\"messageId\" class=\"otp__message\" role=\"alert\">{{ errorText() }}</p>\n}\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.otp{display:flex;align-items:center;gap:.5rem}.otp--disabled{opacity:.55;pointer-events:none}.otp__box{display:flex;align-items:center;justify-content:center;padding:0;text-align:center;background:var(--surface-base, #fff);border:1.5px solid var(--border-input, #d1d5db);border-radius:.5rem;color:var(--text-base, #111827);font-family:inherit;font-weight:600;caret-color:var(--primary-500, #6366f1);transition:border-color .15s ease,box-shadow .15s ease;outline:none}.otp__box:focus{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f61f}.otp__box--error{border-color:var(--danger-500, #ef4444);background:#ef44440a}.otp__box--error:focus{box-shadow:0 0 0 3px #ef44441f}.otp__box--disabled{background:var(--surface-subtle, #f9fafb);cursor:not-allowed}.otp__box::-webkit-outer-spin-button,.otp__box::-webkit-inner-spin-button{-webkit-appearance:none}.otp__box{-moz-appearance:textfield}.otp__message{margin:.375rem 0 0;font-size:.75rem;line-height:1.4;color:var(--fill-danger, #dc2626)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3054
3075
|
}
|
|
3055
3076
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: OtpInputComponent, decorators: [{
|
|
3056
3077
|
type: Component,
|
|
@@ -3060,8 +3081,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
3060
3081
|
useExisting: forwardRef(() => OtpInputComponent),
|
|
3061
3082
|
multi: true,
|
|
3062
3083
|
},
|
|
3063
|
-
], template: "<div [class]=\"wrapperClasses()\" role=\"group\" [attr.aria-label]=\"i18n.otpGroup\">\n @for (i of indices(); track i) {\n <input\n #otpBox\n [class]=\"boxClasses()\"\n [type]=\"inputType()\"\n [inputMode]=\"inputMode()\"\n maxlength=\"1\"\n [value]=\"digits()[i] || ''\"\n [attr.autocomplete]=\"i === 0 ? 'one-time-code' : 'off'\"\n [disabled]=\"isDisabled() || null\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-label]=\"i18n.otpDigit(i + 1, indices().length)\"\n [style.width]=\"boxDim()\"\n [style.height]=\"boxDim()\"\n [style.fontSize]=\"boxFs()\"\n (input)=\"onInput($event, i)\"\n (keydown)=\"onKeydown($event, i)\"\n (paste)=\"onPaste($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur()\"\n />\n }\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.otp{display:flex;align-items:center;gap:.5rem}.otp--disabled{opacity:.55;pointer-events:none}.otp__box{display:flex;align-items:center;justify-content:center;padding:0;text-align:center;background:var(--surface-base, #fff);border:1.5px solid var(--border-input, #d1d5db);border-radius:.5rem;color:var(--text-base, #111827);font-family:inherit;font-weight:600;caret-color:var(--primary-500, #6366f1);transition:border-color .15s ease,box-shadow .15s ease;outline:none}.otp__box:focus{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f61f}.otp__box--error{border-color:var(--danger-500, #ef4444);background:#ef44440a}.otp__box--error:focus{box-shadow:0 0 0 3px #ef44441f}.otp__box--disabled{background:var(--surface-subtle, #f9fafb);cursor:not-allowed}.otp__box::-webkit-outer-spin-button,.otp__box::-webkit-inner-spin-button{-webkit-appearance:none}.otp__box{-moz-appearance:textfield}\n"] }]
|
|
3064
|
-
}], ctorParameters: () => [], propDecorators: { length: [{ type: i0.Input, args: [{ isSignal: true, alias: "length", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], masked: [{ type: i0.Input, args: [{ isSignal: true, alias: "masked", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", 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"] }], complete: [{ type: i0.Output, args: ["complete"] }], boxes: [{ type: i0.ViewChildren, args: ['otpBox', { isSignal: true }] }] } });
|
|
3084
|
+
], template: "<div [class]=\"wrapperClasses()\" role=\"group\" [attr.aria-label]=\"i18n.otpGroup\">\n @for (i of indices(); track i) {\n <input\n #otpBox\n [class]=\"boxClasses()\"\n [type]=\"inputType()\"\n [inputMode]=\"inputMode()\"\n maxlength=\"1\"\n [value]=\"digits()[i] || ''\"\n [attr.autocomplete]=\"i === 0 ? 'one-time-code' : 'off'\"\n [disabled]=\"isDisabled() || null\"\n [attr.aria-invalid]=\"hasError() || null\"\n [attr.aria-describedby]=\"errorText() ? messageId : null\"\n [attr.aria-label]=\"i18n.otpDigit(i + 1, indices().length)\"\n [style.width]=\"boxDim()\"\n [style.height]=\"boxDim()\"\n [style.fontSize]=\"boxFs()\"\n (input)=\"onInput($event, i)\"\n (keydown)=\"onKeydown($event, i)\"\n (paste)=\"onPaste($event)\"\n (focus)=\"onFocus($event)\"\n (blur)=\"onBlur()\"\n />\n }\n</div>\n@if (errorText()) {\n <p [id]=\"messageId\" class=\"otp__message\" role=\"alert\">{{ errorText() }}</p>\n}\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.otp{display:flex;align-items:center;gap:.5rem}.otp--disabled{opacity:.55;pointer-events:none}.otp__box{display:flex;align-items:center;justify-content:center;padding:0;text-align:center;background:var(--surface-base, #fff);border:1.5px solid var(--border-input, #d1d5db);border-radius:.5rem;color:var(--text-base, #111827);font-family:inherit;font-weight:600;caret-color:var(--primary-500, #6366f1);transition:border-color .15s ease,box-shadow .15s ease;outline:none}.otp__box:focus{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f61f}.otp__box--error{border-color:var(--danger-500, #ef4444);background:#ef44440a}.otp__box--error:focus{box-shadow:0 0 0 3px #ef44441f}.otp__box--disabled{background:var(--surface-subtle, #f9fafb);cursor:not-allowed}.otp__box::-webkit-outer-spin-button,.otp__box::-webkit-inner-spin-button{-webkit-appearance:none}.otp__box{-moz-appearance:textfield}.otp__message{margin:.375rem 0 0;font-size:.75rem;line-height:1.4;color:var(--fill-danger, #dc2626)}\n"] }]
|
|
3085
|
+
}], ctorParameters: () => [], propDecorators: { length: [{ type: i0.Input, args: [{ isSignal: true, alias: "length", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], masked: [{ type: i0.Input, args: [{ isSignal: true, alias: "masked", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", 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"] }], complete: [{ type: i0.Output, args: ["complete"] }], boxes: [{ type: i0.ViewChildren, args: ['otpBox', { isSignal: true }] }] } });
|
|
3065
3086
|
|
|
3066
3087
|
// Theme tokens (with fallbacks) so consumers can restyle the slider via CSS.
|
|
3067
3088
|
const TRACK_COLORS = {
|
|
@@ -3070,6 +3091,7 @@ const TRACK_COLORS = {
|
|
|
3070
3091
|
success: 'var(--success-500, #10b981)',
|
|
3071
3092
|
warning: 'var(--warning-500, #f59e0b)',
|
|
3072
3093
|
danger: 'var(--danger-500, #ef4444)',
|
|
3094
|
+
info: 'var(--info-500, #3b82f6)',
|
|
3073
3095
|
};
|
|
3074
3096
|
let nextId$b = 0;
|
|
3075
3097
|
class RangeSliderComponent {
|
|
@@ -3694,7 +3716,10 @@ class ChipGroupComponent {
|
|
|
3694
3716
|
selected = model([], ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
3695
3717
|
selectable = input(true, ...(ngDevMode ? [{ debugName: "selectable" }] : /* istanbul ignore next */ []));
|
|
3696
3718
|
removable = input(false, ...(ngDevMode ? [{ debugName: "removable" }] : /* istanbul ignore next */ []));
|
|
3697
|
-
|
|
3719
|
+
multiple = input(true, ...(ngDevMode ? [{ debugName: "multiple" }] : /* istanbul ignore next */ []));
|
|
3720
|
+
/** @deprecated Use `multiple`. Removed in 1.0. */
|
|
3721
|
+
multiSelect = input(undefined, ...(ngDevMode ? [{ debugName: "multiSelect" }] : /* istanbul ignore next */ []));
|
|
3722
|
+
isMultiple = computed(() => this.multiSelect() ?? this.multiple(), ...(ngDevMode ? [{ debugName: "isMultiple" }] : /* istanbul ignore next */ []));
|
|
3698
3723
|
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
3699
3724
|
variant = input('soft', ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
3700
3725
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
@@ -3702,7 +3727,7 @@ class ChipGroupComponent {
|
|
|
3702
3727
|
isDisabled = computed(() => this.disabled() || this.#formDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
3703
3728
|
removed = output();
|
|
3704
3729
|
XIcon = X;
|
|
3705
|
-
hostClasses = computed(() => `chip-group chip-group--${this.size()} chip-group--${this.variant()}`, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
3730
|
+
hostClasses = computed(() => `chip-group chip-group--${this.size()} chip-group--${this.variant() === 'filled' ? 'solid' : this.variant()}`, ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
3706
3731
|
isSelected(chip) {
|
|
3707
3732
|
return this.selected().includes(chip.value);
|
|
3708
3733
|
}
|
|
@@ -3713,10 +3738,10 @@ class ChipGroupComponent {
|
|
|
3713
3738
|
const idx = current.indexOf(chip.value);
|
|
3714
3739
|
let next;
|
|
3715
3740
|
if (idx >= 0) {
|
|
3716
|
-
next = this.
|
|
3741
|
+
next = this.isMultiple() ? current.filter((v) => v !== chip.value) : [];
|
|
3717
3742
|
}
|
|
3718
3743
|
else {
|
|
3719
|
-
next = this.
|
|
3744
|
+
next = this.isMultiple() ? [...current, chip.value] : [chip.value];
|
|
3720
3745
|
}
|
|
3721
3746
|
this.selected.set(next);
|
|
3722
3747
|
this.#onChange(next);
|
|
@@ -3742,13 +3767,13 @@ class ChipGroupComponent {
|
|
|
3742
3767
|
this.#formDisabled.set(isDisabled);
|
|
3743
3768
|
}
|
|
3744
3769
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ChipGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3745
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ChipGroupComponent, isStandalone: true, selector: "ngx-ds-chip-group", inputs: { chips: { classPropertyName: "chips", publicName: "chips", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, removable: { classPropertyName: "removable", publicName: "removable", isSignal: true, isRequired: false, transformFunction: null }, multiSelect: { classPropertyName: "multiSelect", publicName: "multiSelect", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange", removed: "removed" }, providers: [
|
|
3770
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ChipGroupComponent, isStandalone: true, selector: "ngx-ds-chip-group", inputs: { chips: { classPropertyName: "chips", publicName: "chips", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, removable: { classPropertyName: "removable", publicName: "removable", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, multiSelect: { classPropertyName: "multiSelect", publicName: "multiSelect", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange", removed: "removed" }, providers: [
|
|
3746
3771
|
{
|
|
3747
3772
|
provide: NG_VALUE_ACCESSOR,
|
|
3748
3773
|
useExisting: forwardRef(() => ChipGroupComponent),
|
|
3749
3774
|
multi: true,
|
|
3750
3775
|
},
|
|
3751
|
-
], ngImport: i0, 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--
|
|
3776
|
+
], ngImport: i0, 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"], dependencies: [{ kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3752
3777
|
}
|
|
3753
3778
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ChipGroupComponent, decorators: [{
|
|
3754
3779
|
type: Component,
|
|
@@ -3758,8 +3783,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
3758
3783
|
useExisting: forwardRef(() => ChipGroupComponent),
|
|
3759
3784
|
multi: true,
|
|
3760
3785
|
},
|
|
3761
|
-
], template: "<div [class]=\"hostClasses()\" role=\"group\">\n @for (chip of chips(); track chip.value) {\n <span\n class=\"chip\"\n [class.chip--selected]=\"isSelected(chip)\"\n [class.chip--disabled]=\"chip.disabled || isDisabled()\"\n >\n <button\n type=\"button\"\n class=\"chip__label\"\n [disabled]=\"chip.disabled || isDisabled() || null\"\n [attr.aria-pressed]=\"selectable() ? isSelected(chip) : null\"\n (click)=\"toggle(chip)\"\n >\n {{ chip.label }}\n </button>\n\n @if (removable()) {\n <button\n type=\"button\"\n class=\"chip__remove\"\n [disabled]=\"chip.disabled || isDisabled() || null\"\n [attr.aria-label]=\"i18n.removeChip(chip.label)\"\n (click)=\"remove(chip, $event)\"\n >\n <ngx-ds-icon [icon]=\"XIcon\" [size]=\"12\" />\n </button>\n }\n </span>\n }\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.chip-group{display:flex;flex-wrap:wrap;gap:.5rem}.chip{display:inline-flex;align-items:center;gap:.375rem;border-radius:999px;cursor:pointer;font-family:inherit;font-weight:500;transition:background .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease;white-space:nowrap;position:relative}.chip:has(.chip__label:focus-visible){box-shadow:0 0 0 2px var(--primary-300, #a5b4fc)}.chip--disabled{opacity:.45;cursor:not-allowed}.chip__label,.chip__remove{appearance:none;background:none;border:0;padding:0;margin:0;color:inherit;font:inherit;cursor:inherit}.chip__label:disabled,.chip__remove:disabled{cursor:not-allowed}.chip__label{outline:none}.chip__label:after{content:\"\";position:absolute;inset:0;border-radius:inherit}.chip__remove{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:1rem;height:1rem;line-height:0;opacity:.6}.chip__remove:hover:not(:disabled){opacity:1}.chip__remove:focus-visible{opacity:1;outline:2px solid var(--primary-300, #a5b4fc);outline-offset:1px}.chip-group--sm .chip{font-size:.75rem;padding:.2rem .625rem}.chip-group--md .chip{font-size:.8125rem;padding:.3rem .875rem}.chip-group--lg .chip{font-size:.9375rem;padding:.4rem 1.125rem}.chip-group--soft .chip{background:var(--surface-muted, #f3f4f6);color:var(--text-secondary, #374151);border:1px solid transparent}.chip-group--soft .chip:hover:not(.chip--disabled){background:var(--surface-active, #e5e7eb);color:var(--text-base, #111827)}.chip-group--soft .chip--selected{background:var(--primary-100, #e0e7ff);color:var(--primary-700, #4338ca);border-color:var(--primary-200, #c7d2fe)}.chip-group--
|
|
3762
|
-
}], propDecorators: { chips: [{ type: i0.Input, args: [{ isSignal: true, alias: "chips", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], removable: [{ type: i0.Input, args: [{ isSignal: true, alias: "removable", required: false }] }], multiSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiSelect", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], removed: [{ type: i0.Output, args: ["removed"] }] } });
|
|
3786
|
+
], 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"] }]
|
|
3787
|
+
}], 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 }] }], multiSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiSelect", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], removed: [{ type: i0.Output, args: ["removed"] }] } });
|
|
3763
3788
|
|
|
3764
3789
|
let nextId$8 = 0;
|
|
3765
3790
|
class DateRangePickerComponent {
|
|
@@ -4354,6 +4379,8 @@ let nextId$6 = 0;
|
|
|
4354
4379
|
class FormFieldComponent {
|
|
4355
4380
|
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
4356
4381
|
hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
|
|
4382
|
+
errorMessage = input('', ...(ngDevMode ? [{ debugName: "errorMessage" }] : /* istanbul ignore next */ []));
|
|
4383
|
+
/** @deprecated Use `errorMessage`. Removed in 1.0. */
|
|
4357
4384
|
error = input('', ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
4358
4385
|
required = input(false, ...(ngDevMode ? [{ debugName: "required" }] : /* istanbul ignore next */ []));
|
|
4359
4386
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
@@ -4362,6 +4389,7 @@ class FormFieldComponent {
|
|
|
4362
4389
|
fieldId = computed(() => this.for() ?? this.generatedId, ...(ngDevMode ? [{ debugName: "fieldId" }] : /* istanbul ignore next */ []));
|
|
4363
4390
|
hintId = computed(() => `${this.fieldId()}-hint`, ...(ngDevMode ? [{ debugName: "hintId" }] : /* istanbul ignore next */ []));
|
|
4364
4391
|
errorId = computed(() => `${this.fieldId()}-error`, ...(ngDevMode ? [{ debugName: "errorId" }] : /* istanbul ignore next */ []));
|
|
4392
|
+
errorText = computed(() => this.errorMessage() || this.error(), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
4365
4393
|
host = inject((ElementRef));
|
|
4366
4394
|
renderer = inject(Renderer2);
|
|
4367
4395
|
constructor() {
|
|
@@ -4372,7 +4400,7 @@ class FormFieldComponent {
|
|
|
4372
4400
|
if (!control.getAttribute('id')) {
|
|
4373
4401
|
this.renderer.setAttribute(control, 'id', this.fieldId());
|
|
4374
4402
|
}
|
|
4375
|
-
const hasError = this.
|
|
4403
|
+
const hasError = this.errorText().length > 0;
|
|
4376
4404
|
const hasHint = this.hint().length > 0;
|
|
4377
4405
|
if (hasError) {
|
|
4378
4406
|
this.renderer.setAttribute(control, 'aria-describedby', this.errorId());
|
|
@@ -4389,12 +4417,12 @@ class FormFieldComponent {
|
|
|
4389
4417
|
});
|
|
4390
4418
|
}
|
|
4391
4419
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4392
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: FormFieldComponent, isStandalone: true, selector: "ngx-ds-form-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, for: { classPropertyName: "for", publicName: "for", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, 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 (
|
|
4420
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: FormFieldComponent, isStandalone: true, selector: "ngx-ds-form-field", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, errorMessage: { classPropertyName: "errorMessage", publicName: "errorMessage", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, for: { classPropertyName: "for", publicName: "for", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, 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"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4393
4421
|
}
|
|
4394
4422
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: FormFieldComponent, decorators: [{
|
|
4395
4423
|
type: Component,
|
|
4396
|
-
args: [{ selector: 'ngx-ds-form-field', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (label()) {\n <label [for]=\"fieldId()\" class=\"ngx-ff__label\">\n {{ label() }}\n @if (required()) {\n <span class=\"ngx-ff__required\" aria-hidden=\"true\">*</span>\n }\n </label>\n}\n\n<div class=\"ngx-ff__control\" [class.ngx-ff__control--disabled]=\"disabled()\">\n <ng-content />\n</div>\n\n@if (
|
|
4397
|
-
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], for: [{ type: i0.Input, args: [{ isSignal: true, alias: "for", required: false }] }] } });
|
|
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"] }]
|
|
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 }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], for: [{ type: i0.Input, args: [{ isSignal: true, alias: "for", required: false }] }] } });
|
|
4398
4426
|
|
|
4399
4427
|
const ICON_SIZE$3 = { sm: 14, md: 16, lg: 18 };
|
|
4400
4428
|
const LAST_MINUTE = 23 * 60 + 59;
|
|
@@ -4446,10 +4474,11 @@ class TimePickerComponent {
|
|
|
4446
4474
|
// ── Internal state ────────────────────────────────────────
|
|
4447
4475
|
#open = signal(false, ...(ngDevMode ? [{ debugName: "#open" }] : /* istanbul ignore next */ []));
|
|
4448
4476
|
#focused = signal(false, ...(ngDevMode ? [{ debugName: "#focused" }] : /* istanbul ignore next */ []));
|
|
4449
|
-
|
|
4477
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
4478
|
+
#cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#cvaDisabled" }] : /* istanbul ignore next */ []));
|
|
4450
4479
|
#injector = inject(Injector);
|
|
4451
4480
|
isOpen = this.#open.asReadonly();
|
|
4452
|
-
isDisabled = this
|
|
4481
|
+
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
4453
4482
|
isFocused = this.#focused.asReadonly();
|
|
4454
4483
|
#total = computed(() => parseTime(this.value()), ...(ngDevMode ? [{ debugName: "#total" }] : /* istanbul ignore next */ []));
|
|
4455
4484
|
#hour = computed(() => {
|
|
@@ -4699,10 +4728,10 @@ class TimePickerComponent {
|
|
|
4699
4728
|
this.onTouched = fn;
|
|
4700
4729
|
}
|
|
4701
4730
|
setDisabledState(disabled) {
|
|
4702
|
-
this.#
|
|
4731
|
+
this.#cvaDisabled.set(disabled);
|
|
4703
4732
|
}
|
|
4704
4733
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TimePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4705
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TimePickerComponent, isStandalone: true, selector: "ngx-ds-time-picker", inputs: { 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 }, hourFormat: { classPropertyName: "hourFormat", publicName: "hourFormat", isSignal: true, isRequired: false, transformFunction: null }, minuteStep: { classPropertyName: "minuteStep", publicName: "minuteStep", isSignal: true, isRequired: false, transformFunction: null }, minTime: { classPropertyName: "minTime", publicName: "minTime", isSignal: true, isRequired: false, transformFunction: null }, maxTime: { classPropertyName: "maxTime", publicName: "maxTime", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [
|
|
4734
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TimePickerComponent, isStandalone: true, selector: "ngx-ds-time-picker", inputs: { 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 }, hourFormat: { classPropertyName: "hourFormat", publicName: "hourFormat", isSignal: true, isRequired: false, transformFunction: null }, minuteStep: { classPropertyName: "minuteStep", publicName: "minuteStep", isSignal: true, isRequired: false, transformFunction: null }, minTime: { classPropertyName: "minTime", publicName: "minTime", isSignal: true, isRequired: false, transformFunction: null }, maxTime: { classPropertyName: "maxTime", publicName: "maxTime", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, providers: [
|
|
4706
4735
|
{
|
|
4707
4736
|
provide: NG_VALUE_ACCESSOR,
|
|
4708
4737
|
useExisting: forwardRef(() => TimePickerComponent),
|
|
@@ -4719,7 +4748,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
4719
4748
|
multi: true,
|
|
4720
4749
|
},
|
|
4721
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"] }]
|
|
4722
|
-
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], floatingLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "floatingLabel", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], hourFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourFormat", required: false }] }], minuteStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "minuteStep", required: false }] }], minTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "minTime", required: false }] }], maxTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxTime", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], triggerRef: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], panelRef: [{ type: i0.ViewChild, args: ['panel', { isSignal: true }] }] } });
|
|
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 }] }] } });
|
|
4723
4752
|
|
|
4724
4753
|
let nextId$4 = 0;
|
|
4725
4754
|
function escapeRegExp(text) {
|
|
@@ -4753,10 +4782,11 @@ class TagInputComponent {
|
|
|
4753
4782
|
messageId = `${this.id}-message`;
|
|
4754
4783
|
native = viewChild.required('native');
|
|
4755
4784
|
// ── Internal state ───────────────────────────────────────────
|
|
4756
|
-
|
|
4785
|
+
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
4786
|
+
#cvaDisabled = signal(false, ...(ngDevMode ? [{ debugName: "#cvaDisabled" }] : /* istanbul ignore next */ []));
|
|
4757
4787
|
#focused = signal(false, ...(ngDevMode ? [{ debugName: "#focused" }] : /* istanbul ignore next */ []));
|
|
4758
4788
|
text = signal('', ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
4759
|
-
isDisabled = this
|
|
4789
|
+
isDisabled = computed(() => this.disabled() || this.#cvaDisabled(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
4760
4790
|
isFocused = this.#focused.asReadonly();
|
|
4761
4791
|
// ── Derived ──────────────────────────────────────────────────
|
|
4762
4792
|
isFull = computed(() => {
|
|
@@ -4793,7 +4823,7 @@ class TagInputComponent {
|
|
|
4793
4823
|
this.onTouched = fn;
|
|
4794
4824
|
}
|
|
4795
4825
|
setDisabledState(disabled) {
|
|
4796
|
-
this.#
|
|
4826
|
+
this.#cvaDisabled.set(disabled);
|
|
4797
4827
|
}
|
|
4798
4828
|
// ── Actions ──────────────────────────────────────────────────
|
|
4799
4829
|
/** Adds the given labels, skipping blanks, duplicates and anything past `maxTags`. */
|
|
@@ -4905,7 +4935,7 @@ class TagInputComponent {
|
|
|
4905
4935
|
this.onChange(next);
|
|
4906
4936
|
}
|
|
4907
4937
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TagInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4908
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TagInputComponent, isStandalone: true, selector: "ngx-ds-tag-input", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, 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 }, separators: { classPropertyName: "separators", publicName: "separators", isSignal: true, isRequired: false, transformFunction: null }, maxTags: { classPropertyName: "maxTags", publicName: "maxTags", isSignal: true, isRequired: false, transformFunction: null }, allowDuplicates: { classPropertyName: "allowDuplicates", publicName: "allowDuplicates", isSignal: true, isRequired: false, transformFunction: null }, addOnBlur: { classPropertyName: "addOnBlur", publicName: "addOnBlur", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", added: "added", removed: "removed" }, providers: [
|
|
4938
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TagInputComponent, isStandalone: true, selector: "ngx-ds-tag-input", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, 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 }, separators: { classPropertyName: "separators", publicName: "separators", isSignal: true, isRequired: false, transformFunction: null }, maxTags: { classPropertyName: "maxTags", publicName: "maxTags", isSignal: true, isRequired: false, transformFunction: null }, allowDuplicates: { classPropertyName: "allowDuplicates", publicName: "allowDuplicates", isSignal: true, isRequired: false, transformFunction: null }, addOnBlur: { classPropertyName: "addOnBlur", publicName: "addOnBlur", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", added: "added", removed: "removed" }, providers: [
|
|
4909
4939
|
{
|
|
4910
4940
|
provide: NG_VALUE_ACCESSOR,
|
|
4911
4941
|
useExisting: forwardRef(() => TagInputComponent),
|
|
@@ -4922,7 +4952,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
4922
4952
|
multi: true,
|
|
4923
4953
|
},
|
|
4924
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"] }]
|
|
4925
|
-
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], errorMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessage", required: false }] }], errors: [{ type: i0.Input, args: [{ isSignal: true, alias: "errors", required: false }] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], separators: [{ type: i0.Input, args: [{ isSignal: true, alias: "separators", required: false }] }], maxTags: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxTags", required: false }] }], allowDuplicates: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowDuplicates", required: false }] }], addOnBlur: [{ type: i0.Input, args: [{ isSignal: true, alias: "addOnBlur", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], added: [{ type: i0.Output, args: ["added"] }], removed: [{ type: i0.Output, args: ["removed"] }], native: [{ type: i0.ViewChild, args: ['native', { isSignal: true }] }] } });
|
|
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 }] }] } });
|
|
4926
4956
|
|
|
4927
4957
|
const ICON_SIZE$2 = { sm: 12, md: 14, lg: 16 };
|
|
4928
4958
|
/**
|
|
@@ -5550,11 +5580,11 @@ class ToastComponent {
|
|
|
5550
5580
|
}
|
|
5551
5581
|
getIconPath(type) {
|
|
5552
5582
|
const defaultType = 'info';
|
|
5553
|
-
const effectiveType = type || defaultType;
|
|
5583
|
+
const effectiveType = type === 'error' ? 'danger' : type || defaultType;
|
|
5554
5584
|
// Return icon SVG path based on type
|
|
5555
5585
|
const icons = {
|
|
5556
5586
|
success: 'M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z',
|
|
5557
|
-
|
|
5587
|
+
danger: 'M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z',
|
|
5558
5588
|
warning: 'M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z',
|
|
5559
5589
|
info: 'M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z',
|
|
5560
5590
|
};
|
|
@@ -5564,11 +5594,11 @@ class ToastComponent {
|
|
|
5564
5594
|
this.toastService.remove(id);
|
|
5565
5595
|
}
|
|
5566
5596
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5567
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ToastComponent, isStandalone: true, selector: "ngx-ds-toast", ngImport: i0, template: "@for (position of ['top-right', 'top-left', 'bottom-right', 'bottom-left']; track position) {\n @if (getToastsByPosition(position).length > 0) {\n <div class=\"toast-container\" [class]=\"'toast-container--' + position\">\n @for (toast of getToastsByPosition(position); track toast.id) {\n <div class=\"toast\" [class]=\"'toast--' + toast.type\">\n <div class=\"toast__icon\">\n <svg fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n [attr.d]=\"getIconPath(toast.type)\"\n />\n </svg>\n </div>\n\n <div class=\"toast__content\">\n @if (toast.title) {\n <div class=\"toast__title\">{{ toast.title }}</div>\n }\n <div class=\"toast__message\">{{ toast.message }}</div>\n </div>\n\n <button\n type=\"button\"\n class=\"toast__close\"\n (click)=\"onClose(toast.id)\"\n [attr.aria-label]=\"i18n.close\"\n >\n <svg fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M6 18L18 6M6 6l12 12\"\n />\n </svg>\n </button>\n\n @if (toast.duration && toast.duration > 0) {\n <div class=\"toast__progress\" [style.animation-duration]=\"toast.duration + 'ms'\"></div>\n }\n </div>\n }\n </div>\n }\n}\n", styles: [".toast-container{position:fixed;z-index:10001;display:flex;flex-direction:column;gap:.75rem;pointer-events:none;max-width:24rem;width:calc(100% - 2rem);padding:1rem}.toast-container--top-right{top:0;right:0;align-items:flex-end}.toast-container--top-left{top:0;left:0;align-items:flex-start}.toast-container--bottom-right{bottom:0;right:0;align-items:flex-end}.toast-container--bottom-left{bottom:0;left:0;align-items:flex-start}.toast{position:relative;display:flex;align-items:center;gap:.75rem;background-color:var(--surface-subtle, #f9fafb);border-radius:.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;padding:.85rem;min-width:20rem;max-width:24rem;pointer-events:auto;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif);overflow:hidden}.toast-container--top-right .toast{animation:slideInRight .3s ease-out}@keyframes slideInRight{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}.toast-container--top-left .toast{animation:slideInLeft .3s ease-out}@keyframes slideInLeft{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}.toast-container--bottom-right .toast{animation:slideInBottomRight .3s ease-out}@keyframes slideInBottomRight{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.toast-container--bottom-left .toast{animation:slideInBottomLeft .3s ease-out}@keyframes slideInBottomLeft{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.toast__icon{width:2rem;height:2rem;flex-shrink:0}.toast__icon svg{width:100%;height:100%}.toast__content{flex:1;min-width:0}.toast__title{font-size:.875rem;font-weight:600;color:var(--text-base, #111827);line-height:1.4}.toast__message{font-size:.875rem;color:var(--text-muted, #6b7280);line-height:1.5;word-wrap:break-word}.toast__close{width:1rem;height:1rem;flex-shrink:0;display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;color:var(--text-muted, #6b7280);cursor:pointer;padding:0;border-radius:.25rem;transition:all .15s ease;margin-top:-2.2rem;margin-right:-.4rem}.toast__close:hover{color:var(--text-muted, #6b7280);background-color:var(--surface-muted, #f3f4f6)}.toast__close:focus{outline:2px solid var(--primary-500, #6366f1);outline-offset:2px}.toast__close svg{width:100%;height:100%}.toast__progress{position:absolute;bottom:0;left:0;height:3px;background-color:var(--primary-600, #4f46e5);animation:progressDecrease linear forwards;opacity:.3}@keyframes progressDecrease{0%{width:100%}to{width:0%}}.toast--success{--toast-accent: var(--success-500, #10b981)}.toast--
|
|
5597
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ToastComponent, isStandalone: true, selector: "ngx-ds-toast", ngImport: i0, template: "@for (position of ['top-right', 'top-left', 'bottom-right', 'bottom-left']; track position) {\n @if (getToastsByPosition(position).length > 0) {\n <div class=\"toast-container\" [class]=\"'toast-container--' + position\">\n @for (toast of getToastsByPosition(position); track toast.id) {\n <div class=\"toast\" [class]=\"'toast--' + toast.type\">\n <div class=\"toast__icon\">\n <svg fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n [attr.d]=\"getIconPath(toast.type)\"\n />\n </svg>\n </div>\n\n <div class=\"toast__content\">\n @if (toast.title) {\n <div class=\"toast__title\">{{ toast.title }}</div>\n }\n <div class=\"toast__message\">{{ toast.message }}</div>\n </div>\n\n <button\n type=\"button\"\n class=\"toast__close\"\n (click)=\"onClose(toast.id)\"\n [attr.aria-label]=\"i18n.close\"\n >\n <svg fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M6 18L18 6M6 6l12 12\"\n />\n </svg>\n </button>\n\n @if (toast.duration && toast.duration > 0) {\n <div class=\"toast__progress\" [style.animation-duration]=\"toast.duration + 'ms'\"></div>\n }\n </div>\n }\n </div>\n }\n}\n", styles: [".toast-container{position:fixed;z-index:10001;display:flex;flex-direction:column;gap:.75rem;pointer-events:none;max-width:24rem;width:calc(100% - 2rem);padding:1rem}.toast-container--top-right{top:0;right:0;align-items:flex-end}.toast-container--top-left{top:0;left:0;align-items:flex-start}.toast-container--bottom-right{bottom:0;right:0;align-items:flex-end}.toast-container--bottom-left{bottom:0;left:0;align-items:flex-start}.toast{position:relative;display:flex;align-items:center;gap:.75rem;background-color:var(--surface-subtle, #f9fafb);border-radius:.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;padding:.85rem;min-width:20rem;max-width:24rem;pointer-events:auto;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif);overflow:hidden}.toast-container--top-right .toast{animation:slideInRight .3s ease-out}@keyframes slideInRight{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}.toast-container--top-left .toast{animation:slideInLeft .3s ease-out}@keyframes slideInLeft{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}.toast-container--bottom-right .toast{animation:slideInBottomRight .3s ease-out}@keyframes slideInBottomRight{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.toast-container--bottom-left .toast{animation:slideInBottomLeft .3s ease-out}@keyframes slideInBottomLeft{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.toast__icon{width:2rem;height:2rem;flex-shrink:0}.toast__icon svg{width:100%;height:100%}.toast__content{flex:1;min-width:0}.toast__title{font-size:.875rem;font-weight:600;color:var(--text-base, #111827);line-height:1.4}.toast__message{font-size:.875rem;color:var(--text-muted, #6b7280);line-height:1.5;word-wrap:break-word}.toast__close{width:1rem;height:1rem;flex-shrink:0;display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;color:var(--text-muted, #6b7280);cursor:pointer;padding:0;border-radius:.25rem;transition:all .15s ease;margin-top:-2.2rem;margin-right:-.4rem}.toast__close:hover{color:var(--text-muted, #6b7280);background-color:var(--surface-muted, #f3f4f6)}.toast__close:focus{outline:2px solid var(--primary-500, #6366f1);outline-offset:2px}.toast__close svg{width:100%;height:100%}.toast__progress{position:absolute;bottom:0;left:0;height:3px;background-color:var(--primary-600, #4f46e5);animation:progressDecrease linear forwards;opacity:.3}@keyframes progressDecrease{0%{width:100%}to{width:0%}}.toast--success{--toast-accent: var(--success-500, #10b981)}.toast--danger{--toast-accent: var(--danger-500, #ef4444)}.toast--warning{--toast-accent: var(--warning-500, #f59e0b)}.toast--info{--toast-accent: var(--info-500, #3b82f6)}.toast--success,.toast--danger,.toast--warning,.toast--info{border-left:4px solid var(--toast-accent)}.toast--success .toast__icon,.toast--danger .toast__icon,.toast--warning .toast__icon,.toast--info .toast__icon{color:var(--toast-accent)}.toast--success .toast__progress,.toast--danger .toast__progress,.toast--warning .toast__progress,.toast--info .toast__progress{background-color:var(--toast-accent)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5568
5598
|
}
|
|
5569
5599
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ToastComponent, decorators: [{
|
|
5570
5600
|
type: Component,
|
|
5571
|
-
args: [{ selector: 'ngx-ds-toast', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@for (position of ['top-right', 'top-left', 'bottom-right', 'bottom-left']; track position) {\n @if (getToastsByPosition(position).length > 0) {\n <div class=\"toast-container\" [class]=\"'toast-container--' + position\">\n @for (toast of getToastsByPosition(position); track toast.id) {\n <div class=\"toast\" [class]=\"'toast--' + toast.type\">\n <div class=\"toast__icon\">\n <svg fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n [attr.d]=\"getIconPath(toast.type)\"\n />\n </svg>\n </div>\n\n <div class=\"toast__content\">\n @if (toast.title) {\n <div class=\"toast__title\">{{ toast.title }}</div>\n }\n <div class=\"toast__message\">{{ toast.message }}</div>\n </div>\n\n <button\n type=\"button\"\n class=\"toast__close\"\n (click)=\"onClose(toast.id)\"\n [attr.aria-label]=\"i18n.close\"\n >\n <svg fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M6 18L18 6M6 6l12 12\"\n />\n </svg>\n </button>\n\n @if (toast.duration && toast.duration > 0) {\n <div class=\"toast__progress\" [style.animation-duration]=\"toast.duration + 'ms'\"></div>\n }\n </div>\n }\n </div>\n }\n}\n", styles: [".toast-container{position:fixed;z-index:10001;display:flex;flex-direction:column;gap:.75rem;pointer-events:none;max-width:24rem;width:calc(100% - 2rem);padding:1rem}.toast-container--top-right{top:0;right:0;align-items:flex-end}.toast-container--top-left{top:0;left:0;align-items:flex-start}.toast-container--bottom-right{bottom:0;right:0;align-items:flex-end}.toast-container--bottom-left{bottom:0;left:0;align-items:flex-start}.toast{position:relative;display:flex;align-items:center;gap:.75rem;background-color:var(--surface-subtle, #f9fafb);border-radius:.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;padding:.85rem;min-width:20rem;max-width:24rem;pointer-events:auto;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif);overflow:hidden}.toast-container--top-right .toast{animation:slideInRight .3s ease-out}@keyframes slideInRight{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}.toast-container--top-left .toast{animation:slideInLeft .3s ease-out}@keyframes slideInLeft{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}.toast-container--bottom-right .toast{animation:slideInBottomRight .3s ease-out}@keyframes slideInBottomRight{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.toast-container--bottom-left .toast{animation:slideInBottomLeft .3s ease-out}@keyframes slideInBottomLeft{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.toast__icon{width:2rem;height:2rem;flex-shrink:0}.toast__icon svg{width:100%;height:100%}.toast__content{flex:1;min-width:0}.toast__title{font-size:.875rem;font-weight:600;color:var(--text-base, #111827);line-height:1.4}.toast__message{font-size:.875rem;color:var(--text-muted, #6b7280);line-height:1.5;word-wrap:break-word}.toast__close{width:1rem;height:1rem;flex-shrink:0;display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;color:var(--text-muted, #6b7280);cursor:pointer;padding:0;border-radius:.25rem;transition:all .15s ease;margin-top:-2.2rem;margin-right:-.4rem}.toast__close:hover{color:var(--text-muted, #6b7280);background-color:var(--surface-muted, #f3f4f6)}.toast__close:focus{outline:2px solid var(--primary-500, #6366f1);outline-offset:2px}.toast__close svg{width:100%;height:100%}.toast__progress{position:absolute;bottom:0;left:0;height:3px;background-color:var(--primary-600, #4f46e5);animation:progressDecrease linear forwards;opacity:.3}@keyframes progressDecrease{0%{width:100%}to{width:0%}}.toast--success{--toast-accent: var(--success-500, #10b981)}.toast--
|
|
5601
|
+
args: [{ selector: 'ngx-ds-toast', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "@for (position of ['top-right', 'top-left', 'bottom-right', 'bottom-left']; track position) {\n @if (getToastsByPosition(position).length > 0) {\n <div class=\"toast-container\" [class]=\"'toast-container--' + position\">\n @for (toast of getToastsByPosition(position); track toast.id) {\n <div class=\"toast\" [class]=\"'toast--' + toast.type\">\n <div class=\"toast__icon\">\n <svg fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n [attr.d]=\"getIconPath(toast.type)\"\n />\n </svg>\n </div>\n\n <div class=\"toast__content\">\n @if (toast.title) {\n <div class=\"toast__title\">{{ toast.title }}</div>\n }\n <div class=\"toast__message\">{{ toast.message }}</div>\n </div>\n\n <button\n type=\"button\"\n class=\"toast__close\"\n (click)=\"onClose(toast.id)\"\n [attr.aria-label]=\"i18n.close\"\n >\n <svg fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M6 18L18 6M6 6l12 12\"\n />\n </svg>\n </button>\n\n @if (toast.duration && toast.duration > 0) {\n <div class=\"toast__progress\" [style.animation-duration]=\"toast.duration + 'ms'\"></div>\n }\n </div>\n }\n </div>\n }\n}\n", styles: [".toast-container{position:fixed;z-index:10001;display:flex;flex-direction:column;gap:.75rem;pointer-events:none;max-width:24rem;width:calc(100% - 2rem);padding:1rem}.toast-container--top-right{top:0;right:0;align-items:flex-end}.toast-container--top-left{top:0;left:0;align-items:flex-start}.toast-container--bottom-right{bottom:0;right:0;align-items:flex-end}.toast-container--bottom-left{bottom:0;left:0;align-items:flex-start}.toast{position:relative;display:flex;align-items:center;gap:.75rem;background-color:var(--surface-subtle, #f9fafb);border-radius:.5rem;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;padding:.85rem;min-width:20rem;max-width:24rem;pointer-events:auto;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif);overflow:hidden}.toast-container--top-right .toast{animation:slideInRight .3s ease-out}@keyframes slideInRight{0%{opacity:0;transform:translate(100%)}to{opacity:1;transform:translate(0)}}.toast-container--top-left .toast{animation:slideInLeft .3s ease-out}@keyframes slideInLeft{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}.toast-container--bottom-right .toast{animation:slideInBottomRight .3s ease-out}@keyframes slideInBottomRight{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.toast-container--bottom-left .toast{animation:slideInBottomLeft .3s ease-out}@keyframes slideInBottomLeft{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}.toast__icon{width:2rem;height:2rem;flex-shrink:0}.toast__icon svg{width:100%;height:100%}.toast__content{flex:1;min-width:0}.toast__title{font-size:.875rem;font-weight:600;color:var(--text-base, #111827);line-height:1.4}.toast__message{font-size:.875rem;color:var(--text-muted, #6b7280);line-height:1.5;word-wrap:break-word}.toast__close{width:1rem;height:1rem;flex-shrink:0;display:flex;align-items:center;justify-content:center;background-color:transparent;border:none;color:var(--text-muted, #6b7280);cursor:pointer;padding:0;border-radius:.25rem;transition:all .15s ease;margin-top:-2.2rem;margin-right:-.4rem}.toast__close:hover{color:var(--text-muted, #6b7280);background-color:var(--surface-muted, #f3f4f6)}.toast__close:focus{outline:2px solid var(--primary-500, #6366f1);outline-offset:2px}.toast__close svg{width:100%;height:100%}.toast__progress{position:absolute;bottom:0;left:0;height:3px;background-color:var(--primary-600, #4f46e5);animation:progressDecrease linear forwards;opacity:.3}@keyframes progressDecrease{0%{width:100%}to{width:0%}}.toast--success{--toast-accent: var(--success-500, #10b981)}.toast--danger{--toast-accent: var(--danger-500, #ef4444)}.toast--warning{--toast-accent: var(--warning-500, #f59e0b)}.toast--info{--toast-accent: var(--info-500, #3b82f6)}.toast--success,.toast--danger,.toast--warning,.toast--info{border-left:4px solid var(--toast-accent)}.toast--success .toast__icon,.toast--danger .toast__icon,.toast--warning .toast__icon,.toast--info .toast__icon{color:var(--toast-accent)}.toast--success .toast__progress,.toast--danger .toast__progress,.toast--warning .toast__progress,.toast--info .toast__progress{background-color:var(--toast-accent)}\n"] }]
|
|
5572
5602
|
}] });
|
|
5573
5603
|
|
|
5574
5604
|
class ConfirmationComponent {
|
|
@@ -5972,7 +6002,7 @@ class TableComponent {
|
|
|
5972
6002
|
this.addClick.emit();
|
|
5973
6003
|
}
|
|
5974
6004
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5975
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TableComponent, isStandalone: true, selector: "ngx-ds-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingRows: { classPropertyName: "loadingRows", publicName: "loadingRows", isSignal: true, isRequired: false, transformFunction: null }, clientSide: { classPropertyName: "clientSide", publicName: "clientSide", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, selectMode: { classPropertyName: "selectMode", publicName: "selectMode", isSignal: true, isRequired: false, transformFunction: null }, selectedRows: { classPropertyName: "selectedRows", publicName: "selectedRows", isSignal: true, isRequired: false, transformFunction: null }, rowKey: { classPropertyName: "rowKey", publicName: "rowKey", isSignal: true, isRequired: false, transformFunction: null }, sort: { classPropertyName: "sort", publicName: "sort", isSignal: true, isRequired: false, transformFunction: null }, paginated: { classPropertyName: "paginated", publicName: "paginated", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, pageSizeOptions: { classPropertyName: "pageSizeOptions", publicName: "pageSizeOptions", isSignal: true, isRequired: false, transformFunction: null }, total: { classPropertyName: "total", publicName: "total", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, hoverable: { classPropertyName: "hoverable", publicName: "hoverable", isSignal: true, isRequired: false, transformFunction: null }, dense: { classPropertyName: "dense", publicName: "dense", isSignal: true, isRequired: false, transformFunction: null }, stickyHeader: { classPropertyName: "stickyHeader", publicName: "stickyHeader", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, emptyDescription: { classPropertyName: "emptyDescription", publicName: "emptyDescription", isSignal: true, isRequired: false, transformFunction: null }, emptyIcon: { classPropertyName: "emptyIcon", publicName: "emptyIcon", isSignal: true, isRequired: false, transformFunction: null }, emptyTemplate: { classPropertyName: "emptyTemplate", publicName: "emptyTemplate", isSignal: true, isRequired: false, transformFunction: null }, rowClickable: { classPropertyName: "rowClickable", publicName: "rowClickable", isSignal: true, isRequired: false, transformFunction: null }, addLabel: { classPropertyName: "addLabel", publicName: "addLabel", isSignal: true, isRequired: false, transformFunction: null }, showAddButton: { classPropertyName: "showAddButton", publicName: "showAddButton", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, actionsLabel: { classPropertyName: "actionsLabel", publicName: "actionsLabel", isSignal: true, isRequired: false, transformFunction: null }, actionsWidth: { classPropertyName: "actionsWidth", publicName: "actionsWidth", isSignal: true, isRequired: false, transformFunction: null }, globalFilter: { classPropertyName: "globalFilter", publicName: "globalFilter", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, filterKeys: { classPropertyName: "filterKeys", publicName: "filterKeys", isSignal: true, isRequired: false, transformFunction: null }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: true, isRequired: false, transformFunction: null }, columnToggle: { classPropertyName: "columnToggle", publicName: "columnToggle", isSignal: true, isRequired: false, transformFunction: null }, visibleColumnKeys: { classPropertyName: "visibleColumnKeys", publicName: "visibleColumnKeys", isSignal: true, isRequired: false, transformFunction: null }, expandable: { classPropertyName: "expandable", publicName: "expandable", isSignal: true, isRequired: false, transformFunction: null }, expandTemplate: { classPropertyName: "expandTemplate", publicName: "expandTemplate", isSignal: true, isRequired: false, transformFunction: null }, singleExpand: { classPropertyName: "singleExpand", publicName: "singleExpand", isSignal: true, isRequired: false, transformFunction: null }, expandedRows: { classPropertyName: "expandedRows", publicName: "expandedRows", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedRows: "selectedRowsChange", filterValue: "filterValueChange", visibleColumnKeys: "visibleColumnKeysChange", expandedRows: "expandedRowsChange", sortChange: "sortChange", pageChange: "pageChange", selectionChange: "selectionChange", rowClick: "rowClick", addClick: "addClick", filterChange: "filterChange", columnVisibilityChange: "columnVisibilityChange", rowExpandChange: "rowExpandChange" }, ngImport: i0, template: "@if (globalFilter() || columnToggle() || showAddButton()) {\n <div class=\"ngx-table__toolbar\">\n @if (globalFilter()) {\n <ngx-ds-search-input\n class=\"ngx-table__toolbar-filter\"\n [value]=\"filterValue()\"\n (valueChange)=\"onFilterChange($event)\"\n [placeholder]=\"filterPlaceholder() ?? i18n.searchPlaceholder\"\n size=\"sm\"\n />\n }\n\n <div class=\"ngx-table__toolbar-actions\">\n @if (columnToggle()) {\n <div\n class=\"ngx-table__column-menu\"\n [class.ngx-table__column-menu--open]=\"isColumnMenuOpen()\"\n >\n <ngx-ds-icon-button\n [icon]=\"icons.Columns3\"\n [ariaLabel]=\"i18n.visibleColumns\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n (click)=\"toggleColumnMenu($event)\"\n />\n\n @if (isColumnMenuOpen()) {\n <div class=\"ngx-table__column-panel\">\n @for (col of hideableColumns(); track col.key) {\n <ngx-ds-checkbox\n [label]=\"col.label\"\n [checked]=\"isColumnVisible(col.key)\"\n (checkedChange)=\"toggleColumn(col.key)\"\n />\n }\n </div>\n }\n </div>\n }\n\n @if (showAddButton()) {\n <ngx-ds-button\n size=\"sm\"\n color=\"primary\"\n variant=\"solid\"\n [iconLeft]=\"icons.Plus\"\n (click)=\"onAddClick()\"\n >{{ addLabel() ?? i18n.tableAdd }}</ngx-ds-button\n >\n }\n </div>\n </div>\n}\n\n<div\n class=\"ngx-table__wrapper\"\n [class.ngx-table__wrapper--sticky-head]=\"stickyHeader()\"\n [class.ngx-table__wrapper--attached]=\"globalFilter() || columnToggle() || showAddButton()\"\n [style.maxHeight]=\"stickyHeader() && maxHeight() ? maxHeight() : null\"\n [attr.tabindex]=\"stickyHeader() && maxHeight() ? 0 : null\"\n>\n <table\n class=\"ngx-table\"\n [class.ngx-table--striped]=\"striped()\"\n [class.ngx-table--hoverable]=\"hoverable()\"\n [class.ngx-table--dense]=\"dense()\"\n >\n <!-- \u2500\u2500 HEAD \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <thead class=\"ngx-table__head\">\n <tr class=\"ngx-table__row ngx-table__row--header\">\n @if (expandable()) {\n <th class=\"ngx-table__th ngx-table__th--expand\"></th>\n }\n\n @if (selectable()) {\n <th class=\"ngx-table__th ngx-table__th--checkbox\">\n @if (selectMode() === 'multi') {\n <ngx-ds-checkbox\n [checked]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n [ariaLabel]=\"i18n.selectAll\"\n (checkedChange)=\"toggleAll($event)\"\n />\n }\n </th>\n }\n\n @for (col of visibleColumns(); track col.key) {\n <th\n class=\"ngx-table__th\"\n [class.ngx-table__th--sortable]=\"col.sortable\"\n [class.ngx-table__th--sorted]=\"isSortActive(col)\"\n [class.ngx-table__th--sticky]=\"col.sticky\"\n [style.width]=\"col.width ?? null\"\n [style.minWidth]=\"col.minWidth ?? null\"\n [style.maxWidth]=\"col.maxWidth ?? null\"\n [style.textAlign]=\"col.align ?? 'left'\"\n [attr.aria-sort]=\"\n isSortActive(col) ? (isSortAsc(col) ? 'ascending' : 'descending') : null\n \"\n (click)=\"col.sortable && onSort(col)\"\n >\n @if (col.headerTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"col.headerTemplate\"\n [ngTemplateOutletContext]=\"{ column: col }\"\n />\n } @else {\n <span class=\"ngx-table__th-inner\">\n {{ col.label }}\n @if (col.sortable) {\n <span\n class=\"ngx-table__sort-icon\"\n [class.ngx-table__sort-icon--active]=\"isSortActive(col)\"\n >\n <ngx-ds-icon [icon]=\"sortIconFor(col)\" [size]=\"14\" />\n </span>\n }\n </span>\n }\n </th>\n }\n\n @if (hasActions()) {\n <th class=\"ngx-table__th ngx-table__th--actions\">...</th>\n }\n </tr>\n </thead>\n\n <!-- \u2500\u2500 BODY \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <tbody class=\"ngx-table__body\">\n @if (loading()) {\n @for (row of skeletonRowsArr(); track $index) {\n <tr class=\"ngx-table__row ngx-table__row--skeleton\">\n @for (col of skeletonColsArr(); track $index) {\n <td class=\"ngx-table__td\">\n <span class=\"ngx-table__skeleton-cell\"></span>\n </td>\n }\n </tr>\n }\n } @else if (processedData().length === 0) {\n <tr class=\"ngx-table__row ngx-table__row--empty\">\n <td [attr.colspan]=\"colSpanCount()\" class=\"ngx-table__td ngx-table__td--empty\">\n @if (emptyTemplate()) {\n <ng-container [ngTemplateOutlet]=\"emptyTemplate()!\" />\n } @else {\n <ngx-ds-empty-state\n [icon]=\"emptyIcon()\"\n [title]=\"emptyMessage() ?? i18n.tableEmpty\"\n [description]=\"emptyDescription() ?? i18n.tableEmptyDescription\"\n size=\"md\"\n >\n @if (showAddButton()) {\n <ngx-ds-button\n empty-action\n size=\"sm\"\n color=\"primary\"\n variant=\"solid\"\n [iconLeft]=\"icons.Plus\"\n (click)=\"onAddClick()\"\n >{{ addLabel() ?? i18n.tableAdd }}</ngx-ds-button\n >\n }\n </ngx-ds-empty-state>\n }\n </td>\n </tr>\n } @else {\n @for (row of processedData(); track rowTrack(row, $index)) {\n <tr\n class=\"ngx-table__row\"\n [class.ngx-table__row--odd]=\"$index % 2 === 1\"\n [class.ngx-table__row--selected]=\"isSelected(row)\"\n [class.ngx-table__row--clickable]=\"selectable() || rowClickable()\"\n (click)=\"onRowClick(row)\"\n >\n @if (expandable()) {\n <td class=\"ngx-table__td ngx-table__td--expand\" (click)=\"$event.stopPropagation()\">\n <span\n class=\"ngx-table__expand-icon\"\n [class.ngx-table__expand-icon--open]=\"isExpanded(row)\"\n >\n <ngx-ds-icon-button\n [icon]=\"icons.ChevronRight\"\n [ariaLabel]=\"i18n.expandRow\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n [attr.aria-expanded]=\"isExpanded(row)\"\n (click)=\"toggleExpand(row, $event)\"\n />\n </span>\n </td>\n }\n\n @if (selectable()) {\n <td class=\"ngx-table__td ngx-table__td--checkbox\" (click)=\"$event.stopPropagation()\">\n @if (selectMode() === 'multi') {\n <ngx-ds-checkbox\n [checked]=\"isSelected(row)\"\n [ariaLabel]=\"i18n.selectRow\"\n (checkedChange)=\"toggleRow(row)\"\n />\n } @else {\n <button\n type=\"button\"\n class=\"ngx-table__radio\"\n role=\"radio\"\n [attr.aria-label]=\"i18n.selectRow\"\n [attr.aria-checked]=\"isSelected(row)\"\n [class.ngx-table__radio--selected]=\"isSelected(row)\"\n (click)=\"toggleRow(row)\"\n ></button>\n }\n </td>\n }\n\n @for (col of visibleColumns(); track col.key) {\n <td\n class=\"ngx-table__td\"\n [class.ngx-table__td--sticky]=\"col.sticky\"\n [style.textAlign]=\"col.align ?? 'left'\"\n >\n @if (col.cellTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"col.cellTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: row,\n value: getCellValue(row, col),\n row: row,\n }\"\n />\n } @else if (col.type === 'boolean') {\n <span\n class=\"ngx-table__bool\"\n [class.ngx-table__bool--true]=\"getCellValue(row, col)\"\n >\n <ngx-ds-icon\n [icon]=\"getCellValue(row, col) ? icons.Check : icons.X\"\n [size]=\"16\"\n />\n </span>\n } @else if (col.type === 'badge') {\n <ngx-ds-badge\n [label]=\"formatCell(row, col)\"\n [color]=\"col.badgeColor ?? 'primary'\"\n [variant]=\"col.badgeVariant ?? 'soft'\"\n />\n } @else {\n {{ formatCell(row, col) }}\n }\n </td>\n }\n\n @if (hasActions()) {\n <td class=\"ngx-table__td ngx-table__td--actions\" (click)=\"$event.stopPropagation()\">\n <div\n class=\"ngx-table__action-menu\"\n [class.ngx-table__action-menu--open]=\"isMenuOpen(row)\"\n >\n <ngx-ds-icon-button\n [icon]=\"icons.MoreVertical\"\n [ariaLabel]=\"i18n.rowActions\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"toggleMenu(row, $event)\"\n />\n\n @if (isMenuOpen(row)) {\n <div class=\"ngx-table__action-panel\">\n @for (action of actions(); track action.label) {\n @if (isActionVisible(action, row)) {\n <ngx-ds-menu-button\n [color]=\"action.color ?? 'default'\"\n size=\"md\"\n [iconLeft]=\"action.icon\"\n [fullWidth]=\"true\"\n [disabled]=\"isActionDisabled(action, row)\"\n (click)=\"onActionClick(action, row, $event)\"\n >{{ action.label }}</ngx-ds-menu-button\n >\n }\n }\n </div>\n }\n </div>\n </td>\n }\n </tr>\n\n @if (expandable() && isExpanded(row)) {\n <tr class=\"ngx-table__row ngx-table__row--detail\">\n <td [attr.colspan]=\"colSpanCount()\" class=\"ngx-table__td ngx-table__td--detail\">\n <div class=\"ngx-table__detail-content\">\n @if (expandTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"expandTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: row, row: row }\"\n />\n }\n </div>\n </td>\n </tr>\n }\n }\n }\n </tbody>\n </table>\n</div>\n\n<!-- \u2500\u2500 FOOTER \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n@if (paginated()) {\n <div class=\"ngx-table__footer\">\n <div class=\"ngx-table__page-size\">\n <span class=\"ngx-table__label\">{{ i18n.rowsPerPage }}</span>\n <select\n class=\"ngx-table__page-size-select\"\n [attr.aria-label]=\"i18n.rowsPerPage\"\n [value]=\"effectivePageSize()\"\n (change)=\"onPageSizeChange($event)\"\n >\n @for (opt of pageSizeOptions(); track opt) {\n <option [value]=\"opt\">{{ opt }}</option>\n }\n </select>\n </div>\n\n <span class=\"ngx-table__page-info\">\n @if (totalItems() > 0) {\n {{ i18n.pageRange(pageStart(), pageEnd(), totalItems()) }}\n } @else {\n {{ i18n.zeroResults }}\n }\n </span>\n\n <ngx-ds-pagination\n [totalPages]=\"totalPages()\"\n [currentPage]=\"effectivePage()\"\n (pageChange)=\"onPageChange($event)\"\n />\n </div>\n}\n", styles: [":host{display:block}.ngx-table__toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.625rem .875rem;border:1px solid var(--border-base, #e5e7eb);border-bottom:none;border-radius:.5rem .5rem 0 0;background:var(--surface-base, #ffffff)}.ngx-table__toolbar-filter{max-width:20rem;width:100%}.ngx-table__toolbar-actions{display:flex;align-items:center;gap:.5rem;margin-left:auto;flex-shrink:0}.ngx-table__column-menu{position:relative;flex-shrink:0}.ngx-table__column-panel{position:absolute;right:0;top:calc(100% + .25rem);z-index:100;min-width:12rem;background:var(--surface-base, #ffffff);border:1px solid var(--border-base, #e5e7eb);border-radius:.5rem;box-shadow:0 4px 20px #0000001a,0 1px 4px #0000000f;padding:.5rem .625rem;display:flex;flex-direction:column;gap:.5rem}.ngx-table__wrapper{overflow-x:auto;border:1px solid var(--border-base, #e5e7eb);border-radius:.5rem .5rem 0 0}.ngx-table__wrapper--attached{border-radius:0}.ngx-table__wrapper--sticky-head{overflow-y:auto}.ngx-table__wrapper--sticky-head .ngx-table__th{position:sticky;top:0;z-index:2}.ngx-table{width:100%;border-collapse:collapse;font-size:.875rem;color:var(--text-base, #111827);background:var(--surface-base, #ffffff)}.ngx-table__head{background:var(--surface-subtle, #f9fafb)}.ngx-table__th{padding:.75rem 1rem;font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted, #6b7280);border-bottom:2px solid var(--border-base, #e5e7eb);white-space:nowrap;-webkit-user-select:none;user-select:none;background:var(--surface-subtle, #f9fafb)}.ngx-table__th--checkbox{width:3rem;padding-inline:.875rem}.ngx-table__th--sortable{cursor:pointer;transition:background .15s ease,color .15s ease}.ngx-table__th--sortable:hover{background:var(--surface-hover, #f3f4f6);color:var(--text-base, #111827)}.ngx-table__th--sorted{color:var(--fill-primary, #4f46e5)}.ngx-table__th--sticky{position:sticky;left:0;z-index:3;box-shadow:2px 0 6px -2px #00000014}.ngx-table__th-inner{display:inline-flex;align-items:center;gap:.375rem}.ngx-table__sort-icon{display:inline-flex;align-items:center;color:var(--text-disabled, #d1d5db);transition:color .15s ease}.ngx-table__sort-icon--active{color:var(--fill-primary, #4f46e5)}.ngx-table__row{border-bottom:1px solid var(--border-base, #e5e7eb)}.ngx-table__row:last-child{border-bottom:none}.ngx-table__row--selected,.ngx-table__row--selected .ngx-table__td--sticky{background:var(--primary-50, #eef2ff)}.ngx-table__row--clickable{cursor:pointer}.ngx-table__row--skeleton,.ngx-table__row--empty{pointer-events:none}.ngx-table__td{padding:.6rem .875rem;vertical-align:middle;background:var(--surface-base, #ffffff)}.ngx-table__td--checkbox{width:3rem;padding-inline:.875rem}.ngx-table__td--sticky{position:sticky;left:0;z-index:1;box-shadow:2px 0 6px -2px #0000000f}.ngx-table__td--empty{text-align:center;padding:0;pointer-events:auto}.ngx-table--striped .ngx-table__row--odd,.ngx-table--striped .ngx-table__row--odd .ngx-table__td--sticky{background:var(--surface-subtle, #f9fafb)}.ngx-table--hoverable .ngx-table__row:not(.ngx-table__row--header):not(.ngx-table__row--skeleton):not(.ngx-table__row--empty){transition:background .12s ease}.ngx-table--hoverable .ngx-table__row:not(.ngx-table__row--header):not(.ngx-table__row--skeleton):not(.ngx-table__row--empty):hover:not(.ngx-table__row--selected){background:var(--surface-hover, #f3f4f6)}.ngx-table--hoverable .ngx-table__row:not(.ngx-table__row--header):not(.ngx-table__row--skeleton):not(.ngx-table__row--empty):hover:not(.ngx-table__row--selected) .ngx-table__td--sticky{background:var(--surface-hover, #f3f4f6)}.ngx-table--dense .ngx-table__th,.ngx-table--dense .ngx-table__td{padding-block:.5rem}.ngx-table__skeleton-cell{display:block;height:.875rem;border-radius:.25rem;width:65%;min-width:3rem;background:linear-gradient(90deg,var(--border-base, #e5e7eb) 25%,var(--surface-subtle, #f9fafb) 50%,var(--border-base, #e5e7eb) 75%);background-size:300% 100%;animation:table-shimmer 1.5s ease-in-out infinite}.ngx-table__td--checkbox .ngx-table__skeleton-cell{width:1.125rem;border-radius:.25rem}@keyframes table-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.ngx-table__td--empty ngx-ds-empty-state{margin:auto}.ngx-table__bool{display:inline-flex;align-items:center;color:var(--fill-danger, #dc2626)}.ngx-table__bool--true{color:var(--fill-success, #047857)}.ngx-table__th--actions{width:2.75rem;min-width:2.75rem;text-align:center;padding-inline:.375rem;letter-spacing:.05em}.ngx-table__td--actions{width:2.75rem;min-width:2.75rem;padding-inline:.375rem;text-align:center}.ngx-table__action-menu{position:relative;display:flex;align-items:center;justify-content:center}.ngx-table__action-panel{position:absolute;right:0;top:calc(100% + .25rem);z-index:100;min-width:11rem;background:var(--surface-base, #ffffff);border:1px solid var(--border-base, #e5e7eb);border-radius:.5rem;box-shadow:0 4px 20px #0000001a,0 1px 4px #0000000f;padding:.25rem;display:flex;flex-direction:column;gap:.125rem}.ngx-table__action-menu--open ::ng-deep .icon-btn{background-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.ngx-table__radio{display:block;padding:0;background:transparent;width:1.125rem;height:1.125rem;border-radius:50%;border:2px solid var(--border-strong, #9ca3af);cursor:pointer;transition:border-color .15s ease,background .15s ease;position:relative;flex-shrink:0}.ngx-table__radio--selected{border-color:var(--primary-500, #6366f1);background:var(--primary-500, #6366f1)}.ngx-table__radio--selected:after{content:\"\";position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:.375rem;height:.375rem;border-radius:50%;background:var(--text-on-color, #fff)}.ngx-table__radio:hover:not(.ngx-table__radio--selected){border-color:var(--primary-500, #6366f1)}.ngx-table__th--expand{width:2.25rem;min-width:2.25rem;padding-inline:.375rem}.ngx-table__td--expand{width:2.25rem;min-width:2.25rem;padding-inline:.375rem;text-align:center}.ngx-table__expand-icon{display:inline-flex;align-items:center;justify-content:center}.ngx-table__expand-icon ::ng-deep .icon-btn{transition:transform .15s ease}.ngx-table__expand-icon--open ::ng-deep .icon-btn{transform:rotate(90deg)}.ngx-table__row--detail{background:var(--surface-subtle, #f9fafb)}.ngx-table__td--detail{padding:0}.ngx-table__detail-content{padding:.875rem 1rem;animation:table-detail-in .18s ease-out}@keyframes table-detail-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.ngx-table__footer{display:flex;align-items:center;justify-content:flex-end;gap:1.25rem;padding:.75rem 1rem;border:1px solid var(--border-base, #e5e7eb);border-top:none;border-radius:0 0 .5rem .5rem;background:var(--surface-base, #ffffff);flex-wrap:wrap;min-height:3.25rem}.ngx-table__page-size{display:flex;align-items:center;gap:.5rem}.ngx-table__label{font-size:.8125rem;color:var(--text-muted, #6b7280);white-space:nowrap}.ngx-table__page-size-select{appearance:none;padding:.25rem 1.75rem .25rem .625rem;border:1px solid var(--border-base, #e5e7eb);border-radius:.375rem;font-size:.8125rem;color:var(--text-base, #111827);background:var(--surface-base, #ffffff) url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E\") no-repeat right .5rem center;cursor:pointer;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.ngx-table__page-size-select:focus{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f626}.ngx-table__page-info{font-size:.8125rem;color:var(--text-muted, #6b7280);white-space:nowrap;margin-inline-end:auto}\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: IconButtonComponent, selector: "ngx-ds-icon-button", inputs: ["icon", "ariaLabel", "variant", "size", "color", "rounded", "bordered", "disabled", "type"] }, { kind: "component", type: MenuButtonComponent, selector: "ngx-ds-menu-button", inputs: ["iconLeft", "iconRight", "color", "size", "disabled", "fullWidth", "type"] }, { kind: "component", type: BadgeComponent, selector: "ngx-ds-badge", inputs: ["label", "count", "max", "dot", "size", "color", "variant", "rounded"] }, { kind: "component", type: CheckboxComponent, selector: "ngx-ds-checkbox", inputs: ["label", "ariaLabel", "size", "color", "indeterminate", "labelPosition", "checked"], outputs: ["checkedChange"] }, { kind: "component", type: PaginationComponent, selector: "ngx-ds-pagination", inputs: ["totalPages", "siblings", "showBoundary", "currentPage"], outputs: ["currentPageChange", "pageChange"] }, { kind: "component", type: EmptyStateComponent, selector: "ngx-ds-empty-state", inputs: ["icon", "title", "description", "size"] }, { kind: "component", type: SearchInputComponent, selector: "ngx-ds-search-input", inputs: ["value", "placeholder", "ariaLabel", "size", "disabled", "loading", "clearable"], outputs: ["valueChange", "searchSubmit", "cleared"] }, { kind: "component", type: ButtonComponent, selector: "ngx-ds-button", inputs: ["variant", "size", "color", "iconLeft", "iconRight", "disabled", "loading", "rounded", "type", "ariaLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6005
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: TableComponent, isStandalone: true, selector: "ngx-ds-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingRows: { classPropertyName: "loadingRows", publicName: "loadingRows", isSignal: true, isRequired: false, transformFunction: null }, clientSide: { classPropertyName: "clientSide", publicName: "clientSide", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, selectMode: { classPropertyName: "selectMode", publicName: "selectMode", isSignal: true, isRequired: false, transformFunction: null }, selectedRows: { classPropertyName: "selectedRows", publicName: "selectedRows", isSignal: true, isRequired: false, transformFunction: null }, rowKey: { classPropertyName: "rowKey", publicName: "rowKey", isSignal: true, isRequired: false, transformFunction: null }, sort: { classPropertyName: "sort", publicName: "sort", isSignal: true, isRequired: false, transformFunction: null }, paginated: { classPropertyName: "paginated", publicName: "paginated", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, pageSizeOptions: { classPropertyName: "pageSizeOptions", publicName: "pageSizeOptions", isSignal: true, isRequired: false, transformFunction: null }, total: { classPropertyName: "total", publicName: "total", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, hoverable: { classPropertyName: "hoverable", publicName: "hoverable", isSignal: true, isRequired: false, transformFunction: null }, dense: { classPropertyName: "dense", publicName: "dense", isSignal: true, isRequired: false, transformFunction: null }, stickyHeader: { classPropertyName: "stickyHeader", publicName: "stickyHeader", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, emptyDescription: { classPropertyName: "emptyDescription", publicName: "emptyDescription", isSignal: true, isRequired: false, transformFunction: null }, emptyIcon: { classPropertyName: "emptyIcon", publicName: "emptyIcon", isSignal: true, isRequired: false, transformFunction: null }, emptyTemplate: { classPropertyName: "emptyTemplate", publicName: "emptyTemplate", isSignal: true, isRequired: false, transformFunction: null }, rowClickable: { classPropertyName: "rowClickable", publicName: "rowClickable", isSignal: true, isRequired: false, transformFunction: null }, addLabel: { classPropertyName: "addLabel", publicName: "addLabel", isSignal: true, isRequired: false, transformFunction: null }, showAddButton: { classPropertyName: "showAddButton", publicName: "showAddButton", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, actionsLabel: { classPropertyName: "actionsLabel", publicName: "actionsLabel", isSignal: true, isRequired: false, transformFunction: null }, actionsWidth: { classPropertyName: "actionsWidth", publicName: "actionsWidth", isSignal: true, isRequired: false, transformFunction: null }, globalFilter: { classPropertyName: "globalFilter", publicName: "globalFilter", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, filterKeys: { classPropertyName: "filterKeys", publicName: "filterKeys", isSignal: true, isRequired: false, transformFunction: null }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: true, isRequired: false, transformFunction: null }, columnToggle: { classPropertyName: "columnToggle", publicName: "columnToggle", isSignal: true, isRequired: false, transformFunction: null }, visibleColumnKeys: { classPropertyName: "visibleColumnKeys", publicName: "visibleColumnKeys", isSignal: true, isRequired: false, transformFunction: null }, expandable: { classPropertyName: "expandable", publicName: "expandable", isSignal: true, isRequired: false, transformFunction: null }, expandTemplate: { classPropertyName: "expandTemplate", publicName: "expandTemplate", isSignal: true, isRequired: false, transformFunction: null }, singleExpand: { classPropertyName: "singleExpand", publicName: "singleExpand", isSignal: true, isRequired: false, transformFunction: null }, expandedRows: { classPropertyName: "expandedRows", publicName: "expandedRows", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedRows: "selectedRowsChange", filterValue: "filterValueChange", visibleColumnKeys: "visibleColumnKeysChange", expandedRows: "expandedRowsChange", sortChange: "sortChange", pageChange: "pageChange", selectionChange: "selectionChange", rowClick: "rowClick", addClick: "addClick", filterChange: "filterChange", columnVisibilityChange: "columnVisibilityChange", rowExpandChange: "rowExpandChange" }, ngImport: i0, template: "@if (globalFilter() || columnToggle() || showAddButton()) {\n <div class=\"ngx-table__toolbar\">\n @if (globalFilter()) {\n <ngx-ds-search-input\n class=\"ngx-table__toolbar-filter\"\n [value]=\"filterValue()\"\n (valueChange)=\"onFilterChange($event)\"\n [placeholder]=\"filterPlaceholder() ?? i18n.searchPlaceholder\"\n size=\"sm\"\n />\n }\n\n <div class=\"ngx-table__toolbar-actions\">\n @if (columnToggle()) {\n <div\n class=\"ngx-table__column-menu\"\n [class.ngx-table__column-menu--open]=\"isColumnMenuOpen()\"\n >\n <ngx-ds-icon-button\n [icon]=\"icons.Columns3\"\n [ariaLabel]=\"i18n.visibleColumns\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n (click)=\"toggleColumnMenu($event)\"\n />\n\n @if (isColumnMenuOpen()) {\n <div class=\"ngx-table__column-panel\">\n @for (col of hideableColumns(); track col.key) {\n <ngx-ds-checkbox\n [label]=\"col.label\"\n [checked]=\"isColumnVisible(col.key)\"\n (checkedChange)=\"toggleColumn(col.key)\"\n />\n }\n </div>\n }\n </div>\n }\n\n @if (showAddButton()) {\n <ngx-ds-button\n size=\"sm\"\n color=\"primary\"\n variant=\"solid\"\n [iconLeft]=\"icons.Plus\"\n (click)=\"onAddClick()\"\n >{{ addLabel() ?? i18n.tableAdd }}</ngx-ds-button\n >\n }\n </div>\n </div>\n}\n\n<div\n class=\"ngx-table__wrapper\"\n [class.ngx-table__wrapper--sticky-head]=\"stickyHeader()\"\n [class.ngx-table__wrapper--attached]=\"globalFilter() || columnToggle() || showAddButton()\"\n [style.maxHeight]=\"stickyHeader() && maxHeight() ? maxHeight() : null\"\n [attr.tabindex]=\"stickyHeader() && maxHeight() ? 0 : null\"\n>\n <table\n class=\"ngx-table\"\n [class.ngx-table--striped]=\"striped()\"\n [class.ngx-table--hoverable]=\"hoverable()\"\n [class.ngx-table--dense]=\"dense()\"\n >\n <!-- \u2500\u2500 HEAD \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <thead class=\"ngx-table__head\">\n <tr class=\"ngx-table__row ngx-table__row--header\">\n @if (expandable()) {\n <th class=\"ngx-table__th ngx-table__th--expand\"></th>\n }\n\n @if (selectable()) {\n <th class=\"ngx-table__th ngx-table__th--checkbox\">\n @if (selectMode() === 'multi') {\n <ngx-ds-checkbox\n [checked]=\"allSelected()\"\n [indeterminate]=\"someSelected()\"\n [ariaLabel]=\"i18n.selectAll\"\n (checkedChange)=\"toggleAll($event)\"\n />\n }\n </th>\n }\n\n @for (col of visibleColumns(); track col.key) {\n <th\n class=\"ngx-table__th\"\n [class.ngx-table__th--sortable]=\"col.sortable\"\n [class.ngx-table__th--sorted]=\"isSortActive(col)\"\n [class.ngx-table__th--sticky]=\"col.sticky\"\n [style.width]=\"col.width ?? null\"\n [style.minWidth]=\"col.minWidth ?? null\"\n [style.maxWidth]=\"col.maxWidth ?? null\"\n [style.textAlign]=\"col.align ?? 'left'\"\n [attr.aria-sort]=\"\n isSortActive(col) ? (isSortAsc(col) ? 'ascending' : 'descending') : null\n \"\n (click)=\"col.sortable && onSort(col)\"\n >\n @if (col.headerTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"col.headerTemplate\"\n [ngTemplateOutletContext]=\"{ column: col }\"\n />\n } @else {\n <span class=\"ngx-table__th-inner\">\n {{ col.label }}\n @if (col.sortable) {\n <span\n class=\"ngx-table__sort-icon\"\n [class.ngx-table__sort-icon--active]=\"isSortActive(col)\"\n >\n <ngx-ds-icon [icon]=\"sortIconFor(col)\" [size]=\"14\" />\n </span>\n }\n </span>\n }\n </th>\n }\n\n @if (hasActions()) {\n <th class=\"ngx-table__th ngx-table__th--actions\">...</th>\n }\n </tr>\n </thead>\n\n <!-- \u2500\u2500 BODY \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <tbody class=\"ngx-table__body\">\n @if (loading()) {\n @for (row of skeletonRowsArr(); track $index) {\n <tr class=\"ngx-table__row ngx-table__row--skeleton\">\n @for (col of skeletonColsArr(); track $index) {\n <td class=\"ngx-table__td\">\n <span class=\"ngx-table__skeleton-cell\"></span>\n </td>\n }\n </tr>\n }\n } @else if (processedData().length === 0) {\n <tr class=\"ngx-table__row ngx-table__row--empty\">\n <td [attr.colspan]=\"colSpanCount()\" class=\"ngx-table__td ngx-table__td--empty\">\n @if (emptyTemplate()) {\n <ng-container [ngTemplateOutlet]=\"emptyTemplate()!\" />\n } @else {\n <ngx-ds-empty-state\n [icon]=\"emptyIcon()\"\n [title]=\"emptyMessage() ?? i18n.tableEmpty\"\n [description]=\"emptyDescription() ?? i18n.tableEmptyDescription\"\n size=\"md\"\n >\n @if (showAddButton()) {\n <ngx-ds-button\n empty-action\n size=\"sm\"\n color=\"primary\"\n variant=\"solid\"\n [iconLeft]=\"icons.Plus\"\n (click)=\"onAddClick()\"\n >{{ addLabel() ?? i18n.tableAdd }}</ngx-ds-button\n >\n }\n </ngx-ds-empty-state>\n }\n </td>\n </tr>\n } @else {\n @for (row of processedData(); track rowTrack(row, $index)) {\n <tr\n class=\"ngx-table__row\"\n [class.ngx-table__row--odd]=\"$index % 2 === 1\"\n [class.ngx-table__row--selected]=\"isSelected(row)\"\n [class.ngx-table__row--clickable]=\"selectable() || rowClickable()\"\n (click)=\"onRowClick(row)\"\n >\n @if (expandable()) {\n <td class=\"ngx-table__td ngx-table__td--expand\" (click)=\"$event.stopPropagation()\">\n <span\n class=\"ngx-table__expand-icon\"\n [class.ngx-table__expand-icon--open]=\"isExpanded(row)\"\n >\n <ngx-ds-icon-button\n [icon]=\"icons.ChevronRight\"\n [ariaLabel]=\"i18n.expandRow\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n [attr.aria-expanded]=\"isExpanded(row)\"\n (click)=\"toggleExpand(row, $event)\"\n />\n </span>\n </td>\n }\n\n @if (selectable()) {\n <td class=\"ngx-table__td ngx-table__td--checkbox\" (click)=\"$event.stopPropagation()\">\n @if (selectMode() === 'multi') {\n <ngx-ds-checkbox\n [checked]=\"isSelected(row)\"\n [ariaLabel]=\"i18n.selectRow\"\n (checkedChange)=\"toggleRow(row)\"\n />\n } @else {\n <button\n type=\"button\"\n class=\"ngx-table__radio\"\n role=\"radio\"\n [attr.aria-label]=\"i18n.selectRow\"\n [attr.aria-checked]=\"isSelected(row)\"\n [class.ngx-table__radio--selected]=\"isSelected(row)\"\n (click)=\"toggleRow(row)\"\n ></button>\n }\n </td>\n }\n\n @for (col of visibleColumns(); track col.key) {\n <td\n class=\"ngx-table__td\"\n [class.ngx-table__td--sticky]=\"col.sticky\"\n [style.textAlign]=\"col.align ?? 'left'\"\n >\n @if (col.cellTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"col.cellTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: row,\n value: getCellValue(row, col),\n row: row,\n }\"\n />\n } @else if (col.type === 'boolean') {\n <span\n class=\"ngx-table__bool\"\n [class.ngx-table__bool--true]=\"getCellValue(row, col)\"\n >\n <ngx-ds-icon\n [icon]=\"getCellValue(row, col) ? icons.Check : icons.X\"\n [size]=\"16\"\n />\n </span>\n } @else if (col.type === 'badge') {\n <ngx-ds-badge\n [label]=\"formatCell(row, col)\"\n [color]=\"col.badgeColor ?? 'primary'\"\n [variant]=\"col.badgeVariant ?? 'soft'\"\n />\n } @else {\n {{ formatCell(row, col) }}\n }\n </td>\n }\n\n @if (hasActions()) {\n <td class=\"ngx-table__td ngx-table__td--actions\" (click)=\"$event.stopPropagation()\">\n <div\n class=\"ngx-table__action-menu\"\n [class.ngx-table__action-menu--open]=\"isMenuOpen(row)\"\n >\n <ngx-ds-icon-button\n [icon]=\"icons.MoreVertical\"\n [ariaLabel]=\"i18n.rowActions\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"toggleMenu(row, $event)\"\n />\n\n @if (isMenuOpen(row)) {\n <div class=\"ngx-table__action-panel\">\n @for (action of actions(); track action.label) {\n @if (isActionVisible(action, row)) {\n <ngx-ds-menu-button\n [color]=\"action.color ?? 'default'\"\n size=\"md\"\n [iconLeft]=\"action.icon\"\n [fullWidth]=\"true\"\n [disabled]=\"isActionDisabled(action, row)\"\n (click)=\"onActionClick(action, row, $event)\"\n >{{ action.label }}</ngx-ds-menu-button\n >\n }\n }\n </div>\n }\n </div>\n </td>\n }\n </tr>\n\n @if (expandable() && isExpanded(row)) {\n <tr class=\"ngx-table__row ngx-table__row--detail\">\n <td [attr.colspan]=\"colSpanCount()\" class=\"ngx-table__td ngx-table__td--detail\">\n <div class=\"ngx-table__detail-content\">\n @if (expandTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"expandTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: row, row: row }\"\n />\n }\n </div>\n </td>\n </tr>\n }\n }\n }\n </tbody>\n </table>\n</div>\n\n<!-- \u2500\u2500 FOOTER \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n@if (paginated()) {\n <div class=\"ngx-table__footer\">\n <div class=\"ngx-table__page-size\">\n <span class=\"ngx-table__label\">{{ i18n.rowsPerPage }}</span>\n <select\n class=\"ngx-table__page-size-select\"\n [attr.aria-label]=\"i18n.rowsPerPage\"\n [value]=\"effectivePageSize()\"\n (change)=\"onPageSizeChange($event)\"\n >\n @for (opt of pageSizeOptions(); track opt) {\n <option [value]=\"opt\">{{ opt }}</option>\n }\n </select>\n </div>\n\n <span class=\"ngx-table__page-info\">\n @if (totalItems() > 0) {\n {{ i18n.pageRange(pageStart(), pageEnd(), totalItems()) }}\n } @else {\n {{ i18n.zeroResults }}\n }\n </span>\n\n <ngx-ds-pagination\n [totalPages]=\"totalPages()\"\n [currentPage]=\"effectivePage()\"\n (pageChange)=\"onPageChange($event)\"\n />\n </div>\n}\n", styles: [":host{display:block}.ngx-table__toolbar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.625rem .875rem;border:1px solid var(--border-base, #e5e7eb);border-bottom:none;border-radius:.5rem .5rem 0 0;background:var(--surface-base, #ffffff)}.ngx-table__toolbar-filter{max-width:20rem;width:100%}.ngx-table__toolbar-actions{display:flex;align-items:center;gap:.5rem;margin-left:auto;flex-shrink:0}.ngx-table__column-menu{position:relative;flex-shrink:0}.ngx-table__column-panel{position:absolute;right:0;top:calc(100% + .25rem);z-index:100;min-width:12rem;background:var(--surface-base, #ffffff);border:1px solid var(--border-base, #e5e7eb);border-radius:.5rem;box-shadow:0 4px 20px #0000001a,0 1px 4px #0000000f;padding:.5rem .625rem;display:flex;flex-direction:column;gap:.5rem}.ngx-table__wrapper{overflow-x:auto;border:1px solid var(--border-base, #e5e7eb);border-radius:.5rem .5rem 0 0}.ngx-table__wrapper--attached{border-radius:0}.ngx-table__wrapper--sticky-head{overflow-y:auto}.ngx-table__wrapper--sticky-head .ngx-table__th{position:sticky;top:0;z-index:2}.ngx-table{width:100%;border-collapse:collapse;font-size:.875rem;color:var(--text-base, #111827);background:var(--surface-base, #ffffff)}.ngx-table__head{background:var(--surface-subtle, #f9fafb)}.ngx-table__th{padding:.75rem 1rem;font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted, #6b7280);border-bottom:2px solid var(--border-base, #e5e7eb);white-space:nowrap;-webkit-user-select:none;user-select:none;background:var(--surface-subtle, #f9fafb)}.ngx-table__th--checkbox{width:3rem;padding-inline:.875rem}.ngx-table__th--sortable{cursor:pointer;transition:background .15s ease,color .15s ease}.ngx-table__th--sortable:hover{background:var(--surface-hover, #f3f4f6);color:var(--text-base, #111827)}.ngx-table__th--sorted{color:var(--fill-primary, #4f46e5)}.ngx-table__th--sticky{position:sticky;left:0;z-index:3;box-shadow:2px 0 6px -2px #00000014}.ngx-table__th-inner{display:inline-flex;align-items:center;gap:.375rem}.ngx-table__sort-icon{display:inline-flex;align-items:center;color:var(--text-disabled, #d1d5db);transition:color .15s ease}.ngx-table__sort-icon--active{color:var(--fill-primary, #4f46e5)}.ngx-table__row{border-bottom:1px solid var(--border-base, #e5e7eb)}.ngx-table__row:last-child{border-bottom:none}.ngx-table__row--selected,.ngx-table__row--selected .ngx-table__td--sticky{background:var(--primary-50, #eef2ff)}.ngx-table__row--clickable{cursor:pointer}.ngx-table__row--skeleton,.ngx-table__row--empty{pointer-events:none}.ngx-table__td{padding:.6rem .875rem;vertical-align:middle;background:var(--surface-base, #ffffff)}.ngx-table__td--checkbox{width:3rem;padding-inline:.875rem}.ngx-table__td--sticky{position:sticky;left:0;z-index:1;box-shadow:2px 0 6px -2px #0000000f}.ngx-table__td--empty{text-align:center;padding:0;pointer-events:auto}.ngx-table--striped .ngx-table__row--odd,.ngx-table--striped .ngx-table__row--odd .ngx-table__td--sticky{background:var(--surface-subtle, #f9fafb)}.ngx-table--hoverable .ngx-table__row:not(.ngx-table__row--header):not(.ngx-table__row--skeleton):not(.ngx-table__row--empty){transition:background .12s ease}.ngx-table--hoverable .ngx-table__row:not(.ngx-table__row--header):not(.ngx-table__row--skeleton):not(.ngx-table__row--empty):hover:not(.ngx-table__row--selected){background:var(--surface-hover, #f3f4f6)}.ngx-table--hoverable .ngx-table__row:not(.ngx-table__row--header):not(.ngx-table__row--skeleton):not(.ngx-table__row--empty):hover:not(.ngx-table__row--selected) .ngx-table__td--sticky{background:var(--surface-hover, #f3f4f6)}.ngx-table--dense .ngx-table__th,.ngx-table--dense .ngx-table__td{padding-block:.5rem}.ngx-table__skeleton-cell{display:block;height:.875rem;border-radius:.25rem;width:65%;min-width:3rem;background:linear-gradient(90deg,var(--border-base, #e5e7eb) 25%,var(--surface-subtle, #f9fafb) 50%,var(--border-base, #e5e7eb) 75%);background-size:300% 100%;animation:table-shimmer 1.5s ease-in-out infinite}.ngx-table__td--checkbox .ngx-table__skeleton-cell{width:1.125rem;border-radius:.25rem}@keyframes table-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.ngx-table__td--empty ngx-ds-empty-state{margin:auto}.ngx-table__bool{display:inline-flex;align-items:center;color:var(--fill-danger, #dc2626)}.ngx-table__bool--true{color:var(--fill-success, #047857)}.ngx-table__th--actions{width:2.75rem;min-width:2.75rem;text-align:center;padding-inline:.375rem;letter-spacing:.05em}.ngx-table__td--actions{width:2.75rem;min-width:2.75rem;padding-inline:.375rem;text-align:center}.ngx-table__action-menu{position:relative;display:flex;align-items:center;justify-content:center}.ngx-table__action-panel{position:absolute;right:0;top:calc(100% + .25rem);z-index:100;min-width:11rem;background:var(--surface-base, #ffffff);border:1px solid var(--border-base, #e5e7eb);border-radius:.5rem;box-shadow:0 4px 20px #0000001a,0 1px 4px #0000000f;padding:.25rem;display:flex;flex-direction:column;gap:.125rem}.ngx-table__action-menu--open ::ng-deep .icon-btn{background-color:var(--fill-neutral, #6b7280);color:var(--text-on-color, #fff)}.ngx-table__radio{display:block;padding:0;background:transparent;width:1.125rem;height:1.125rem;border-radius:50%;border:2px solid var(--border-strong, #9ca3af);cursor:pointer;transition:border-color .15s ease,background .15s ease;position:relative;flex-shrink:0}.ngx-table__radio--selected{border-color:var(--primary-500, #6366f1);background:var(--primary-500, #6366f1)}.ngx-table__radio--selected:after{content:\"\";position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:.375rem;height:.375rem;border-radius:50%;background:var(--text-on-color, #fff)}.ngx-table__radio:hover:not(.ngx-table__radio--selected){border-color:var(--primary-500, #6366f1)}.ngx-table__th--expand{width:2.25rem;min-width:2.25rem;padding-inline:.375rem}.ngx-table__td--expand{width:2.25rem;min-width:2.25rem;padding-inline:.375rem;text-align:center}.ngx-table__expand-icon{display:inline-flex;align-items:center;justify-content:center}.ngx-table__expand-icon ::ng-deep .icon-btn{transition:transform .15s ease}.ngx-table__expand-icon--open ::ng-deep .icon-btn{transform:rotate(90deg)}.ngx-table__row--detail{background:var(--surface-subtle, #f9fafb)}.ngx-table__td--detail{padding:0}.ngx-table__detail-content{padding:.875rem 1rem;animation:table-detail-in .18s ease-out}@keyframes table-detail-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.ngx-table__footer{display:flex;align-items:center;justify-content:flex-end;gap:1.25rem;padding:.75rem 1rem;border:1px solid var(--border-base, #e5e7eb);border-top:none;border-radius:0 0 .5rem .5rem;background:var(--surface-base, #ffffff);flex-wrap:wrap;min-height:3.25rem}.ngx-table__page-size{display:flex;align-items:center;gap:.5rem}.ngx-table__label{font-size:.8125rem;color:var(--text-muted, #6b7280);white-space:nowrap}.ngx-table__page-size-select{appearance:none;padding:.25rem 1.75rem .25rem .625rem;border:1px solid var(--border-base, #e5e7eb);border-radius:.375rem;font-size:.8125rem;color:var(--text-base, #111827);background:var(--surface-base, #ffffff) url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E\") no-repeat right .5rem center;cursor:pointer;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.ngx-table__page-size-select:focus{border-color:var(--primary-500, #6366f1);box-shadow:0 0 0 3px #3b82f626}.ngx-table__page-info{font-size:.8125rem;color:var(--text-muted, #6b7280);white-space:nowrap;margin-inline-end:auto}\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: IconButtonComponent, selector: "ngx-ds-icon-button", inputs: ["icon", "ariaLabel", "variant", "size", "color", "rounded", "bordered", "disabled", "type"] }, { kind: "component", type: MenuButtonComponent, selector: "ngx-ds-menu-button", inputs: ["iconLeft", "iconRight", "color", "size", "disabled", "fullWidth", "type"] }, { kind: "component", type: BadgeComponent, selector: "ngx-ds-badge", inputs: ["label", "count", "max", "dot", "size", "color", "variant", "rounded"] }, { kind: "component", type: CheckboxComponent, selector: "ngx-ds-checkbox", inputs: ["label", "ariaLabel", "size", "color", "indeterminate", "labelPosition", "checked", "disabled"], outputs: ["checkedChange"] }, { kind: "component", type: PaginationComponent, selector: "ngx-ds-pagination", inputs: ["totalPages", "siblings", "showBoundary", "currentPage"], outputs: ["currentPageChange", "pageChange"] }, { kind: "component", type: EmptyStateComponent, selector: "ngx-ds-empty-state", inputs: ["icon", "title", "description", "size"] }, { kind: "component", type: SearchInputComponent, selector: "ngx-ds-search-input", inputs: ["value", "placeholder", "ariaLabel", "size", "disabled", "loading", "clearable"], outputs: ["valueChange", "searchSubmit", "cleared"] }, { kind: "component", type: ButtonComponent, selector: "ngx-ds-button", inputs: ["variant", "size", "color", "iconLeft", "iconRight", "disabled", "loading", "rounded", "type", "ariaLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5976
6006
|
}
|
|
5977
6007
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: TableComponent, decorators: [{
|
|
5978
6008
|
type: Component,
|
|
@@ -6016,7 +6046,11 @@ class ModalComponent {
|
|
|
6016
6046
|
open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
6017
6047
|
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
6018
6048
|
title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
6019
|
-
|
|
6049
|
+
/** Shows the close button in the header. */
|
|
6050
|
+
dismissible = input(true, ...(ngDevMode ? [{ debugName: "dismissible" }] : /* istanbul ignore next */ []));
|
|
6051
|
+
/** @deprecated Use `dismissible`. Removed in 1.0. */
|
|
6052
|
+
showClose = input(undefined, ...(ngDevMode ? [{ debugName: "showClose" }] : /* istanbul ignore next */ []));
|
|
6053
|
+
showCloseButton = computed(() => this.showClose() ?? this.dismissible(), ...(ngDevMode ? [{ debugName: "showCloseButton" }] : /* istanbul ignore next */ []));
|
|
6020
6054
|
closeOnBackdrop = input(true, ...(ngDevMode ? [{ debugName: "closeOnBackdrop" }] : /* istanbul ignore next */ []));
|
|
6021
6055
|
closeOnEscape = input(true, ...(ngDevMode ? [{ debugName: "closeOnEscape" }] : /* istanbul ignore next */ []));
|
|
6022
6056
|
// ── Outputs ──────────────────────────────────────────────────────────────
|
|
@@ -6044,12 +6078,12 @@ class ModalComponent {
|
|
|
6044
6078
|
this.close();
|
|
6045
6079
|
}
|
|
6046
6080
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6047
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ModalComponent, isStandalone: true, selector: "ngx-ds-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed" }, ngImport: i0, template: "@if (open()) {\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 class=\"modal-overlay\" (click)=\"$event.target === $event.currentTarget && onBackdropClick()\">\n <div\n [class]=\"panelClasses()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"title() || i18n.dialog\"\n ngxFocusTrap\n tabindex=\"-1\"\n >\n <!-- \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"modal__header\">\n @if (title()) {\n <h2 class=\"modal__title\">{{ title() }}</h2>\n }\n <ng-content select=\"[modal-header]\" />\n @if (
|
|
6081
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ModalComponent, isStandalone: true, selector: "ngx-ds-modal", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed" }, ngImport: i0, template: "@if (open()) {\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 class=\"modal-overlay\" (click)=\"$event.target === $event.currentTarget && onBackdropClick()\">\n <div\n [class]=\"panelClasses()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"title() || i18n.dialog\"\n ngxFocusTrap\n tabindex=\"-1\"\n >\n <!-- \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"modal__header\">\n @if (title()) {\n <h2 class=\"modal__title\">{{ title() }}</h2>\n }\n <ng-content select=\"[modal-header]\" />\n @if (showCloseButton()) {\n <ngx-ds-icon-button\n class=\"modal__close\"\n [icon]=\"icons.X\"\n [ariaLabel]=\"i18n.close\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"close()\"\n />\n }\n </div>\n\n <!-- \u2500\u2500 Body \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"modal__body\">\n <ng-content />\n </div>\n\n <!-- \u2500\u2500 Footer \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"modal__footer\">\n <ng-content select=\"[modal-footer]\" />\n </div>\n </div>\n </div>\n}\n", styles: [".modal-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem;background:#00000073;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:modal-overlay-in .18s ease}.modal{position:relative;width:100%;max-height:calc(100dvh - 2rem);display:flex;flex-direction:column;background:var(--surface-base, #ffffff);border-radius:.75rem;box-shadow:0 20px 60px #00000026,0 4px 20px #00000014;overflow:hidden;animation:modal-panel-in .22s cubic-bezier(.34,1.4,.64,1)}.modal--sm{max-width:24rem}.modal--md{max-width:32rem}.modal--lg{max-width:48rem}.modal--xl{max-width:64rem}.modal--full{max-width:calc(100vw - 2rem);height:calc(100dvh - 2rem);border-radius:.5rem}.modal__header{display:flex;align-items:center;gap:.75rem;padding:1.25rem 1.5rem 1rem;border-bottom:1px solid var(--border-base, #e5e7eb);flex-shrink:0}.modal__title{flex:1;margin:0;font-size:1rem;font-weight:600;color:var(--text-base, #111827);line-height:1.4}.modal__close{margin-inline-start:auto;flex-shrink:0}.modal__body{flex:1;overflow-y:auto;padding:1.5rem;font-size:.875rem;color:var(--text-muted, #6b7280);line-height:1.6}.modal__footer{display:flex;align-items:center;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid var(--border-base, #e5e7eb);flex-shrink:0;flex-wrap:wrap}.modal__footer:not(:has(*)){display:none}@keyframes modal-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes modal-panel-in{0%{opacity:0;transform:scale(.95) translateY(-.5rem)}to{opacity:1;transform:scale(1) translateY(0)}}\n"], dependencies: [{ kind: "component", type: IconButtonComponent, selector: "ngx-ds-icon-button", inputs: ["icon", "ariaLabel", "variant", "size", "color", "rounded", "bordered", "disabled", "type"] }, { kind: "directive", type: FocusTrapDirective, selector: "[ngxFocusTrap]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6048
6082
|
}
|
|
6049
6083
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ModalComponent, decorators: [{
|
|
6050
6084
|
type: Component,
|
|
6051
|
-
args: [{ selector: 'ngx-ds-modal', standalone: true, imports: [IconButtonComponent, FocusTrapDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (open()) {\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 class=\"modal-overlay\" (click)=\"$event.target === $event.currentTarget && onBackdropClick()\">\n <div\n [class]=\"panelClasses()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"title() || i18n.dialog\"\n ngxFocusTrap\n tabindex=\"-1\"\n >\n <!-- \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"modal__header\">\n @if (title()) {\n <h2 class=\"modal__title\">{{ title() }}</h2>\n }\n <ng-content select=\"[modal-header]\" />\n @if (
|
|
6052
|
-
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], showClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClose", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
6085
|
+
args: [{ selector: 'ngx-ds-modal', standalone: true, imports: [IconButtonComponent, FocusTrapDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (open()) {\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 class=\"modal-overlay\" (click)=\"$event.target === $event.currentTarget && onBackdropClick()\">\n <div\n [class]=\"panelClasses()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"title() || i18n.dialog\"\n ngxFocusTrap\n tabindex=\"-1\"\n >\n <!-- \u2500\u2500 Header \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"modal__header\">\n @if (title()) {\n <h2 class=\"modal__title\">{{ title() }}</h2>\n }\n <ng-content select=\"[modal-header]\" />\n @if (showCloseButton()) {\n <ngx-ds-icon-button\n class=\"modal__close\"\n [icon]=\"icons.X\"\n [ariaLabel]=\"i18n.close\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"close()\"\n />\n }\n </div>\n\n <!-- \u2500\u2500 Body \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"modal__body\">\n <ng-content />\n </div>\n\n <!-- \u2500\u2500 Footer \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"modal__footer\">\n <ng-content select=\"[modal-footer]\" />\n </div>\n </div>\n </div>\n}\n", styles: [".modal-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem;background:#00000073;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:modal-overlay-in .18s ease}.modal{position:relative;width:100%;max-height:calc(100dvh - 2rem);display:flex;flex-direction:column;background:var(--surface-base, #ffffff);border-radius:.75rem;box-shadow:0 20px 60px #00000026,0 4px 20px #00000014;overflow:hidden;animation:modal-panel-in .22s cubic-bezier(.34,1.4,.64,1)}.modal--sm{max-width:24rem}.modal--md{max-width:32rem}.modal--lg{max-width:48rem}.modal--xl{max-width:64rem}.modal--full{max-width:calc(100vw - 2rem);height:calc(100dvh - 2rem);border-radius:.5rem}.modal__header{display:flex;align-items:center;gap:.75rem;padding:1.25rem 1.5rem 1rem;border-bottom:1px solid var(--border-base, #e5e7eb);flex-shrink:0}.modal__title{flex:1;margin:0;font-size:1rem;font-weight:600;color:var(--text-base, #111827);line-height:1.4}.modal__close{margin-inline-start:auto;flex-shrink:0}.modal__body{flex:1;overflow-y:auto;padding:1.5rem;font-size:.875rem;color:var(--text-muted, #6b7280);line-height:1.6}.modal__footer{display:flex;align-items:center;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid var(--border-base, #e5e7eb);flex-shrink:0;flex-wrap:wrap}.modal__footer:not(:has(*)){display:none}@keyframes modal-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes modal-panel-in{0%{opacity:0;transform:scale(.95) translateY(-.5rem)}to{opacity:1;transform:scale(1) translateY(0)}}\n"] }]
|
|
6086
|
+
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], showClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClose", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
6053
6087
|
|
|
6054
6088
|
class TabContentDirective {
|
|
6055
6089
|
templateRef = inject(TemplateRef);
|
|
@@ -6204,7 +6238,11 @@ class DrawerComponent {
|
|
|
6204
6238
|
side = input('right', ...(ngDevMode ? [{ debugName: "side" }] : /* istanbul ignore next */ []));
|
|
6205
6239
|
size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
6206
6240
|
title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
6207
|
-
|
|
6241
|
+
/** Shows the close button in the header. */
|
|
6242
|
+
dismissible = input(true, ...(ngDevMode ? [{ debugName: "dismissible" }] : /* istanbul ignore next */ []));
|
|
6243
|
+
/** @deprecated Use `dismissible`. Removed in 1.0. */
|
|
6244
|
+
showClose = input(undefined, ...(ngDevMode ? [{ debugName: "showClose" }] : /* istanbul ignore next */ []));
|
|
6245
|
+
showCloseButton = computed(() => this.showClose() ?? this.dismissible(), ...(ngDevMode ? [{ debugName: "showCloseButton" }] : /* istanbul ignore next */ []));
|
|
6208
6246
|
closeOnBackdrop = input(true, ...(ngDevMode ? [{ debugName: "closeOnBackdrop" }] : /* istanbul ignore next */ []));
|
|
6209
6247
|
closeOnEscape = input(true, ...(ngDevMode ? [{ debugName: "closeOnEscape" }] : /* istanbul ignore next */ []));
|
|
6210
6248
|
// ── Outputs ──────────────────────────────────────────────────────────────
|
|
@@ -6232,12 +6270,12 @@ class DrawerComponent {
|
|
|
6232
6270
|
this.close();
|
|
6233
6271
|
}
|
|
6234
6272
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DrawerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6235
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: DrawerComponent, isStandalone: true, selector: "ngx-ds-drawer", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed" }, ngImport: i0, template: "@if (open()) {\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 class=\"drawer-overlay\" (click)=\"$event.target === $event.currentTarget && onBackdropClick()\">\n <div\n [class]=\"panelClasses()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"title() || i18n.drawer\"\n ngxFocusTrap\n tabindex=\"-1\"\n >\n <div class=\"drawer__header\">\n @if (title()) {\n <h2 class=\"drawer__title\">{{ title() }}</h2>\n }\n <ng-content select=\"[drawer-header]\" />\n @if (
|
|
6273
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: DrawerComponent, isStandalone: true, selector: "ngx-ds-drawer", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, side: { classPropertyName: "side", publicName: "side", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, showClose: { classPropertyName: "showClose", publicName: "showClose", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", closed: "closed" }, ngImport: i0, template: "@if (open()) {\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 class=\"drawer-overlay\" (click)=\"$event.target === $event.currentTarget && onBackdropClick()\">\n <div\n [class]=\"panelClasses()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"title() || i18n.drawer\"\n ngxFocusTrap\n tabindex=\"-1\"\n >\n <div class=\"drawer__header\">\n @if (title()) {\n <h2 class=\"drawer__title\">{{ title() }}</h2>\n }\n <ng-content select=\"[drawer-header]\" />\n @if (showCloseButton()) {\n <ngx-ds-icon-button\n class=\"drawer__close\"\n [icon]=\"icons.X\"\n [ariaLabel]=\"i18n.close\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"close()\"\n />\n }\n </div>\n\n <div class=\"drawer__body\">\n <ng-content />\n </div>\n\n <div class=\"drawer__footer\">\n <ng-content select=\"[drawer-footer]\" />\n </div>\n </div>\n </div>\n}\n", styles: [".drawer-overlay{position:fixed;inset:0;z-index:1000;background:#00000073;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:drawer-overlay-in .2s ease}.drawer{position:fixed;z-index:1001;display:flex;flex-direction:column;background:var(--surface-base, #ffffff);overflow:hidden}.drawer--right{top:0;right:0;bottom:0;border-left:1px solid var(--border-base, #e5e7eb);box-shadow:-4px 0 32px #0000001f,-1px 0 8px #0000000f;animation:drawer-slide-right .28s cubic-bezier(.32,.72,0,1)}.drawer--left{top:0;left:0;bottom:0;border-right:1px solid var(--border-base, #e5e7eb);box-shadow:4px 0 32px #0000001f,1px 0 8px #0000000f;animation:drawer-slide-left .28s cubic-bezier(.32,.72,0,1)}.drawer--top{top:0;left:0;right:0;border-bottom:1px solid var(--border-base, #e5e7eb);box-shadow:0 4px 32px #0000001f;animation:drawer-slide-top .28s cubic-bezier(.32,.72,0,1)}.drawer--bottom{bottom:0;left:0;right:0;border-top:1px solid var(--border-base, #e5e7eb);box-shadow:0 -4px 32px #0000001f;animation:drawer-slide-bottom .28s cubic-bezier(.32,.72,0,1)}.drawer--left.drawer--sm,.drawer--right.drawer--sm{width:16rem}.drawer--left.drawer--md,.drawer--right.drawer--md{width:24rem}.drawer--left.drawer--lg,.drawer--right.drawer--lg{width:36rem}.drawer--left.drawer--xl,.drawer--right.drawer--xl{width:48rem}.drawer--left.drawer--full,.drawer--right.drawer--full{width:100vw}.drawer--top.drawer--sm,.drawer--bottom.drawer--sm{height:12rem}.drawer--top.drawer--md,.drawer--bottom.drawer--md{height:18rem}.drawer--top.drawer--lg,.drawer--bottom.drawer--lg{height:24rem}.drawer--top.drawer--xl,.drawer--bottom.drawer--xl{height:32rem}.drawer--top.drawer--full,.drawer--bottom.drawer--full{height:100dvh}.drawer__header{display:flex;align-items:center;gap:.75rem;padding:1.25rem 1.5rem 1rem;border-bottom:1px solid var(--border-base, #e5e7eb);flex-shrink:0}.drawer__title{flex:1;margin:0;font-size:1rem;font-weight:600;color:var(--text-base, #111827);line-height:1.4}.drawer__close{margin-inline-start:auto;flex-shrink:0}.drawer__body{flex:1;overflow-y:auto;padding:1.5rem;font-size:.875rem;color:var(--text-muted, #6b7280);line-height:1.6}.drawer__footer{display:flex;align-items:center;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid var(--border-base, #e5e7eb);flex-shrink:0;flex-wrap:wrap}.drawer__footer:not(:has(*)){display:none}@keyframes drawer-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes drawer-slide-right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes drawer-slide-left{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes drawer-slide-top{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes drawer-slide-bottom{0%{transform:translateY(100%)}to{transform:translateY(0)}}\n"], dependencies: [{ kind: "component", type: IconButtonComponent, selector: "ngx-ds-icon-button", inputs: ["icon", "ariaLabel", "variant", "size", "color", "rounded", "bordered", "disabled", "type"] }, { kind: "directive", type: FocusTrapDirective, selector: "[ngxFocusTrap]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6236
6274
|
}
|
|
6237
6275
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: DrawerComponent, decorators: [{
|
|
6238
6276
|
type: Component,
|
|
6239
|
-
args: [{ selector: 'ngx-ds-drawer', standalone: true, imports: [IconButtonComponent, FocusTrapDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (open()) {\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 class=\"drawer-overlay\" (click)=\"$event.target === $event.currentTarget && onBackdropClick()\">\n <div\n [class]=\"panelClasses()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"title() || i18n.drawer\"\n ngxFocusTrap\n tabindex=\"-1\"\n >\n <div class=\"drawer__header\">\n @if (title()) {\n <h2 class=\"drawer__title\">{{ title() }}</h2>\n }\n <ng-content select=\"[drawer-header]\" />\n @if (
|
|
6240
|
-
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], showClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClose", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
6277
|
+
args: [{ selector: 'ngx-ds-drawer', standalone: true, imports: [IconButtonComponent, FocusTrapDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (open()) {\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 class=\"drawer-overlay\" (click)=\"$event.target === $event.currentTarget && onBackdropClick()\">\n <div\n [class]=\"panelClasses()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-label]=\"title() || i18n.drawer\"\n ngxFocusTrap\n tabindex=\"-1\"\n >\n <div class=\"drawer__header\">\n @if (title()) {\n <h2 class=\"drawer__title\">{{ title() }}</h2>\n }\n <ng-content select=\"[drawer-header]\" />\n @if (showCloseButton()) {\n <ngx-ds-icon-button\n class=\"drawer__close\"\n [icon]=\"icons.X\"\n [ariaLabel]=\"i18n.close\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"close()\"\n />\n }\n </div>\n\n <div class=\"drawer__body\">\n <ng-content />\n </div>\n\n <div class=\"drawer__footer\">\n <ng-content select=\"[drawer-footer]\" />\n </div>\n </div>\n </div>\n}\n", styles: [".drawer-overlay{position:fixed;inset:0;z-index:1000;background:#00000073;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:drawer-overlay-in .2s ease}.drawer{position:fixed;z-index:1001;display:flex;flex-direction:column;background:var(--surface-base, #ffffff);overflow:hidden}.drawer--right{top:0;right:0;bottom:0;border-left:1px solid var(--border-base, #e5e7eb);box-shadow:-4px 0 32px #0000001f,-1px 0 8px #0000000f;animation:drawer-slide-right .28s cubic-bezier(.32,.72,0,1)}.drawer--left{top:0;left:0;bottom:0;border-right:1px solid var(--border-base, #e5e7eb);box-shadow:4px 0 32px #0000001f,1px 0 8px #0000000f;animation:drawer-slide-left .28s cubic-bezier(.32,.72,0,1)}.drawer--top{top:0;left:0;right:0;border-bottom:1px solid var(--border-base, #e5e7eb);box-shadow:0 4px 32px #0000001f;animation:drawer-slide-top .28s cubic-bezier(.32,.72,0,1)}.drawer--bottom{bottom:0;left:0;right:0;border-top:1px solid var(--border-base, #e5e7eb);box-shadow:0 -4px 32px #0000001f;animation:drawer-slide-bottom .28s cubic-bezier(.32,.72,0,1)}.drawer--left.drawer--sm,.drawer--right.drawer--sm{width:16rem}.drawer--left.drawer--md,.drawer--right.drawer--md{width:24rem}.drawer--left.drawer--lg,.drawer--right.drawer--lg{width:36rem}.drawer--left.drawer--xl,.drawer--right.drawer--xl{width:48rem}.drawer--left.drawer--full,.drawer--right.drawer--full{width:100vw}.drawer--top.drawer--sm,.drawer--bottom.drawer--sm{height:12rem}.drawer--top.drawer--md,.drawer--bottom.drawer--md{height:18rem}.drawer--top.drawer--lg,.drawer--bottom.drawer--lg{height:24rem}.drawer--top.drawer--xl,.drawer--bottom.drawer--xl{height:32rem}.drawer--top.drawer--full,.drawer--bottom.drawer--full{height:100dvh}.drawer__header{display:flex;align-items:center;gap:.75rem;padding:1.25rem 1.5rem 1rem;border-bottom:1px solid var(--border-base, #e5e7eb);flex-shrink:0}.drawer__title{flex:1;margin:0;font-size:1rem;font-weight:600;color:var(--text-base, #111827);line-height:1.4}.drawer__close{margin-inline-start:auto;flex-shrink:0}.drawer__body{flex:1;overflow-y:auto;padding:1.5rem;font-size:.875rem;color:var(--text-muted, #6b7280);line-height:1.6}.drawer__footer{display:flex;align-items:center;justify-content:flex-end;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid var(--border-base, #e5e7eb);flex-shrink:0;flex-wrap:wrap}.drawer__footer:not(:has(*)){display:none}@keyframes drawer-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes drawer-slide-right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes drawer-slide-left{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes drawer-slide-top{0%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes drawer-slide-bottom{0%{transform:translateY(100%)}to{transform:translateY(0)}}\n"] }]
|
|
6278
|
+
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], side: [{ type: i0.Input, args: [{ isSignal: true, alias: "side", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], showClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClose", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
6241
6279
|
|
|
6242
6280
|
class StepComponent {
|
|
6243
6281
|
label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
@@ -6404,7 +6442,9 @@ class PopoverComponent {
|
|
|
6404
6442
|
i18n = inject(NGX_DS_LABELS);
|
|
6405
6443
|
open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
6406
6444
|
placement = input('bottom', ...(ngDevMode ? [{ debugName: "placement" }] : /* istanbul ignore next */ []));
|
|
6407
|
-
|
|
6445
|
+
closeOnBackdrop = input(true, ...(ngDevMode ? [{ debugName: "closeOnBackdrop" }] : /* istanbul ignore next */ []));
|
|
6446
|
+
/** @deprecated Use `closeOnBackdrop`. Removed in 1.0. */
|
|
6447
|
+
closeOnClickOutside = input(undefined, ...(ngDevMode ? [{ debugName: "closeOnClickOutside" }] : /* istanbul ignore next */ []));
|
|
6408
6448
|
closeOnEscape = input(true, ...(ngDevMode ? [{ debugName: "closeOnEscape" }] : /* istanbul ignore next */ []));
|
|
6409
6449
|
disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
6410
6450
|
ariaLabel = input(undefined, ...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
@@ -6447,7 +6487,7 @@ class PopoverComponent {
|
|
|
6447
6487
|
this.close();
|
|
6448
6488
|
});
|
|
6449
6489
|
setupClickOutside(() => {
|
|
6450
|
-
if (!this.open() || !this.closeOnClickOutside())
|
|
6490
|
+
if (!this.open() || !(this.closeOnClickOutside() ?? this.closeOnBackdrop()))
|
|
6451
6491
|
return;
|
|
6452
6492
|
this.close();
|
|
6453
6493
|
});
|
|
@@ -6457,12 +6497,12 @@ class PopoverComponent {
|
|
|
6457
6497
|
this.closed.emit();
|
|
6458
6498
|
}
|
|
6459
6499
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6460
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: PopoverComponent, isStandalone: true, selector: "ngx-ds-popover", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, closeOnClickOutside: { classPropertyName: "closeOnClickOutside", publicName: "closeOnClickOutside", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", opened: "opened", closed: "closed" }, viewQueries: [{ propertyName: "triggerRef", first: true, predicate: ["trigger"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"popover\">\n <div\n #trigger\n class=\"popover__trigger\"\n [attr.role]=\"nativeTrigger() ? null : 'button'\"\n [attr.tabindex]=\"nativeTrigger() || disabled() ? null : 0\"\n [attr.aria-expanded]=\"nativeTrigger() ? null : open()\"\n [attr.aria-haspopup]=\"nativeTrigger() ? null : 'dialog'\"\n (click)=\"toggle()\"\n (keydown.enter)=\"onTriggerKey($event)\"\n (keydown.space)=\"onTriggerKey($event)\"\n >\n <ng-content select=\"[popover-trigger]\" />\n </div>\n\n @if (open()) {\n <div [class]=\"panelClasses()\" role=\"dialog\" [attr.aria-label]=\"ariaLabel() ?? i18n.popover\">\n <ng-content select=\"[popover-content]\" />\n </div>\n }\n</div>\n", styles: [":host{display:inline-block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.popover{position:relative;display:inline-block}.popover__trigger{display:inline-flex;cursor:pointer}.popover__panel{position:absolute;z-index:1000;min-width:200px;background:var(--surface-base, #ffffff);border:1px solid var(--border-base, #e5e7eb);border-radius:.5rem;box-shadow:0 4px 16px #0000001f;padding:.75rem;animation:popoverIn .12s ease}.popover__panel--bottom{top:calc(100% + .5rem);left:50%;translate:-50% 0}.popover__panel--bottom-start{top:calc(100% + .5rem);left:0}.popover__panel--bottom-end{top:calc(100% + .5rem);right:0}.popover__panel--top{bottom:calc(100% + .5rem);left:50%;translate:-50% 0}.popover__panel--top-start{bottom:calc(100% + .5rem);left:0}.popover__panel--top-end{bottom:calc(100% + .5rem);right:0}.popover__panel--left{right:calc(100% + .5rem);top:50%;translate:0 -50%}.popover__panel--right{left:calc(100% + .5rem);top:50%;translate:0 -50%}@keyframes popoverIn{0%{opacity:0}to{opacity:1}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6500
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: PopoverComponent, isStandalone: true, selector: "ngx-ds-popover", inputs: { open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, closeOnBackdrop: { classPropertyName: "closeOnBackdrop", publicName: "closeOnBackdrop", isSignal: true, isRequired: false, transformFunction: null }, closeOnClickOutside: { classPropertyName: "closeOnClickOutside", publicName: "closeOnClickOutside", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", opened: "opened", closed: "closed" }, viewQueries: [{ propertyName: "triggerRef", first: true, predicate: ["trigger"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"popover\">\n <div\n #trigger\n class=\"popover__trigger\"\n [attr.role]=\"nativeTrigger() ? null : 'button'\"\n [attr.tabindex]=\"nativeTrigger() || disabled() ? null : 0\"\n [attr.aria-expanded]=\"nativeTrigger() ? null : open()\"\n [attr.aria-haspopup]=\"nativeTrigger() ? null : 'dialog'\"\n (click)=\"toggle()\"\n (keydown.enter)=\"onTriggerKey($event)\"\n (keydown.space)=\"onTriggerKey($event)\"\n >\n <ng-content select=\"[popover-trigger]\" />\n </div>\n\n @if (open()) {\n <div [class]=\"panelClasses()\" role=\"dialog\" [attr.aria-label]=\"ariaLabel() ?? i18n.popover\">\n <ng-content select=\"[popover-content]\" />\n </div>\n }\n</div>\n", styles: [":host{display:inline-block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.popover{position:relative;display:inline-block}.popover__trigger{display:inline-flex;cursor:pointer}.popover__panel{position:absolute;z-index:1000;min-width:200px;background:var(--surface-base, #ffffff);border:1px solid var(--border-base, #e5e7eb);border-radius:.5rem;box-shadow:0 4px 16px #0000001f;padding:.75rem;animation:popoverIn .12s ease}.popover__panel--bottom{top:calc(100% + .5rem);left:50%;translate:-50% 0}.popover__panel--bottom-start{top:calc(100% + .5rem);left:0}.popover__panel--bottom-end{top:calc(100% + .5rem);right:0}.popover__panel--top{bottom:calc(100% + .5rem);left:50%;translate:-50% 0}.popover__panel--top-start{bottom:calc(100% + .5rem);left:0}.popover__panel--top-end{bottom:calc(100% + .5rem);right:0}.popover__panel--left{right:calc(100% + .5rem);top:50%;translate:0 -50%}.popover__panel--right{left:calc(100% + .5rem);top:50%;translate:0 -50%}@keyframes popoverIn{0%{opacity:0}to{opacity:1}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6461
6501
|
}
|
|
6462
6502
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: PopoverComponent, decorators: [{
|
|
6463
6503
|
type: Component,
|
|
6464
6504
|
args: [{ selector: 'ngx-ds-popover', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"popover\">\n <div\n #trigger\n class=\"popover__trigger\"\n [attr.role]=\"nativeTrigger() ? null : 'button'\"\n [attr.tabindex]=\"nativeTrigger() || disabled() ? null : 0\"\n [attr.aria-expanded]=\"nativeTrigger() ? null : open()\"\n [attr.aria-haspopup]=\"nativeTrigger() ? null : 'dialog'\"\n (click)=\"toggle()\"\n (keydown.enter)=\"onTriggerKey($event)\"\n (keydown.space)=\"onTriggerKey($event)\"\n >\n <ng-content select=\"[popover-trigger]\" />\n </div>\n\n @if (open()) {\n <div [class]=\"panelClasses()\" role=\"dialog\" [attr.aria-label]=\"ariaLabel() ?? i18n.popover\">\n <ng-content select=\"[popover-content]\" />\n </div>\n }\n</div>\n", styles: [":host{display:inline-block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.popover{position:relative;display:inline-block}.popover__trigger{display:inline-flex;cursor:pointer}.popover__panel{position:absolute;z-index:1000;min-width:200px;background:var(--surface-base, #ffffff);border:1px solid var(--border-base, #e5e7eb);border-radius:.5rem;box-shadow:0 4px 16px #0000001f;padding:.75rem;animation:popoverIn .12s ease}.popover__panel--bottom{top:calc(100% + .5rem);left:50%;translate:-50% 0}.popover__panel--bottom-start{top:calc(100% + .5rem);left:0}.popover__panel--bottom-end{top:calc(100% + .5rem);right:0}.popover__panel--top{bottom:calc(100% + .5rem);left:50%;translate:-50% 0}.popover__panel--top-start{bottom:calc(100% + .5rem);left:0}.popover__panel--top-end{bottom:calc(100% + .5rem);right:0}.popover__panel--left{right:calc(100% + .5rem);top:50%;translate:0 -50%}.popover__panel--right{left:calc(100% + .5rem);top:50%;translate:0 -50%}@keyframes popoverIn{0%{opacity:0}to{opacity:1}}\n"] }]
|
|
6465
|
-
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], closeOnClickOutside: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnClickOutside", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], triggerRef: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }] } });
|
|
6505
|
+
}], ctorParameters: () => [], propDecorators: { open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], closeOnBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnBackdrop", required: false }] }], closeOnClickOutside: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnClickOutside", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], triggerRef: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }] } });
|
|
6466
6506
|
|
|
6467
6507
|
class TimelineItemComponent {
|
|
6468
6508
|
title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
@@ -6768,7 +6808,7 @@ const TYPE_ICONS = {
|
|
|
6768
6808
|
info: Info,
|
|
6769
6809
|
success: CheckCircle,
|
|
6770
6810
|
warning: AlertTriangle,
|
|
6771
|
-
|
|
6811
|
+
danger: AlertCircle,
|
|
6772
6812
|
};
|
|
6773
6813
|
function relativeTime(value, locale, labels) {
|
|
6774
6814
|
if (!value)
|
|
@@ -6794,15 +6834,22 @@ class NotificationItemComponent {
|
|
|
6794
6834
|
i18n = inject(NGX_DS_LABELS);
|
|
6795
6835
|
notification = input.required(...(ngDevMode ? [{ debugName: "notification" }] : /* istanbul ignore next */ []));
|
|
6796
6836
|
markRead = output();
|
|
6837
|
+
dismissed = output();
|
|
6838
|
+
/** @deprecated Use `dismissed`. Removed in 1.0. */
|
|
6797
6839
|
dismiss = output();
|
|
6798
6840
|
action = output();
|
|
6799
6841
|
XIcon = X;
|
|
6800
|
-
|
|
6842
|
+
/** The notification type, with the deprecated `'error'` mapped to `'danger'`. */
|
|
6843
|
+
type = computed(() => {
|
|
6844
|
+
const type = this.notification().type;
|
|
6845
|
+
return type === 'error' ? 'danger' : type;
|
|
6846
|
+
}, ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
6847
|
+
typeIcon = computed(() => TYPE_ICONS[this.type()], ...(ngDevMode ? [{ debugName: "typeIcon" }] : /* istanbul ignore next */ []));
|
|
6801
6848
|
#locale = inject(NGX_DS_LOCALE);
|
|
6802
6849
|
timeLabel = computed(() => relativeTime(this.notification().time, this.#locale, this.i18n), ...(ngDevMode ? [{ debugName: "timeLabel" }] : /* istanbul ignore next */ []));
|
|
6803
6850
|
hostClasses = computed(() => {
|
|
6804
6851
|
const n = this.notification();
|
|
6805
|
-
const cls = [`notif-item notif-item--${
|
|
6852
|
+
const cls = [`notif-item notif-item--${this.type()}`];
|
|
6806
6853
|
if (!n.read)
|
|
6807
6854
|
cls.push('notif-item--unread');
|
|
6808
6855
|
return cls.join(' ');
|
|
@@ -6813,6 +6860,7 @@ class NotificationItemComponent {
|
|
|
6813
6860
|
}
|
|
6814
6861
|
onDismiss(event) {
|
|
6815
6862
|
event.stopPropagation();
|
|
6863
|
+
this.dismissed.emit(this.notification());
|
|
6816
6864
|
this.dismiss.emit(this.notification());
|
|
6817
6865
|
}
|
|
6818
6866
|
onAction(event) {
|
|
@@ -6820,12 +6868,12 @@ class NotificationItemComponent {
|
|
|
6820
6868
|
this.action.emit(this.notification());
|
|
6821
6869
|
}
|
|
6822
6870
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: NotificationItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6823
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: NotificationItemComponent, isStandalone: true, selector: "ngx-ds-notification-item", inputs: { notification: { classPropertyName: "notification", publicName: "notification", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { markRead: "markRead", dismiss: "dismiss", action: "action" }, ngImport: i0, template: "<div [class]=\"hostClasses()\" tabindex=\"0\" (click)=\"onMarkRead()\" (keydown.enter)=\"onMarkRead()\">\n <!-- Unread dot -->\n @if (!notification().read) {\n <span class=\"notif-item__dot\" [attr.aria-label]=\"i18n.unread\"></span>\n }\n\n <!-- Type icon -->\n <div class=\"notif-item__icon-wrap\">\n <ngx-ds-icon [icon]=\"typeIcon()\" [size]=\"18\" class=\"notif-item__icon\" />\n </div>\n\n <!-- Content -->\n <div class=\"notif-item__body\">\n <p class=\"notif-item__title\">{{ notification().title }}</p>\n\n @if (notification().description) {\n <p class=\"notif-item__desc\">{{ notification().description }}</p>\n }\n\n <div class=\"notif-item__meta\">\n @if (timeLabel()) {\n <span class=\"notif-item__time\">{{ timeLabel() }}</span>\n }\n\n @if (notification().actionLabel) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"primary\" (click)=\"onAction($event)\">\n {{ notification().actionLabel }}\n </ngx-ds-button>\n }\n </div>\n </div>\n\n <!-- Dismiss -->\n <ngx-ds-icon-button\n class=\"notif-item__dismiss\"\n [icon]=\"XIcon\"\n [ariaLabel]=\"i18n.dismissNotification\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"onDismiss($event)\"\n />\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.notif-item{display:flex;align-items:flex-start;gap:.625rem;padding:.75rem 1rem;position:relative;cursor:pointer;transition:background .12s ease;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.notif-item:last-child{border-bottom:none}.notif-item:hover{background:var(--surface-subtle, #f9fafb)}.notif-item--unread{background:var(--surface-subtle, #fafafa)}.notif-item__dot{position:absolute;top:1rem;left:.375rem;width:.5rem;height:.5rem;border-radius:50%;background:var(--primary-500, #6366f1);flex-shrink:0}.notif-item__icon-wrap{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;flex-shrink:0;margin-top:.125rem}.notif-item--info .notif-item__icon-wrap{background:var(--info-100, #dbeafe)}.notif-item--success .notif-item__icon-wrap{background:var(--success-100, #d1fae5)}.notif-item--warning .notif-item__icon-wrap{background:var(--warning-100, #fef3c7)}.notif-item--
|
|
6871
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: NotificationItemComponent, isStandalone: true, selector: "ngx-ds-notification-item", inputs: { notification: { classPropertyName: "notification", publicName: "notification", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { markRead: "markRead", dismissed: "dismissed", dismiss: "dismiss", action: "action" }, ngImport: i0, template: "<div [class]=\"hostClasses()\" tabindex=\"0\" (click)=\"onMarkRead()\" (keydown.enter)=\"onMarkRead()\">\n <!-- Unread dot -->\n @if (!notification().read) {\n <span class=\"notif-item__dot\" [attr.aria-label]=\"i18n.unread\"></span>\n }\n\n <!-- Type icon -->\n <div class=\"notif-item__icon-wrap\">\n <ngx-ds-icon [icon]=\"typeIcon()\" [size]=\"18\" class=\"notif-item__icon\" />\n </div>\n\n <!-- Content -->\n <div class=\"notif-item__body\">\n <p class=\"notif-item__title\">{{ notification().title }}</p>\n\n @if (notification().description) {\n <p class=\"notif-item__desc\">{{ notification().description }}</p>\n }\n\n <div class=\"notif-item__meta\">\n @if (timeLabel()) {\n <span class=\"notif-item__time\">{{ timeLabel() }}</span>\n }\n\n @if (notification().actionLabel) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"primary\" (click)=\"onAction($event)\">\n {{ notification().actionLabel }}\n </ngx-ds-button>\n }\n </div>\n </div>\n\n <!-- Dismiss -->\n <ngx-ds-icon-button\n class=\"notif-item__dismiss\"\n [icon]=\"XIcon\"\n [ariaLabel]=\"i18n.dismissNotification\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"onDismiss($event)\"\n />\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.notif-item{display:flex;align-items:flex-start;gap:.625rem;padding:.75rem 1rem;position:relative;cursor:pointer;transition:background .12s ease;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.notif-item:last-child{border-bottom:none}.notif-item:hover{background:var(--surface-subtle, #f9fafb)}.notif-item--unread{background:var(--surface-subtle, #fafafa)}.notif-item__dot{position:absolute;top:1rem;left:.375rem;width:.5rem;height:.5rem;border-radius:50%;background:var(--primary-500, #6366f1);flex-shrink:0}.notif-item__icon-wrap{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;flex-shrink:0;margin-top:.125rem}.notif-item--info .notif-item__icon-wrap{background:var(--info-100, #dbeafe)}.notif-item--success .notif-item__icon-wrap{background:var(--success-100, #d1fae5)}.notif-item--warning .notif-item__icon-wrap{background:var(--warning-100, #fef3c7)}.notif-item--danger .notif-item__icon-wrap{background:var(--danger-100, #fee2e2)}.notif-item__icon{display:flex}.notif-item--info .notif-item__icon{color:var(--info-600, #2563eb)}.notif-item--success .notif-item__icon{color:var(--success-600, #059669)}.notif-item--warning .notif-item__icon{color:var(--warning-600, #d97706)}.notif-item--danger .notif-item__icon{color:var(--danger-600, #dc2626)}.notif-item__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.notif-item__title{margin:0;font-size:.875rem;font-weight:500;color:var(--text-base, #111827);white-space:normal;line-height:1.4}.notif-item--unread .notif-item__title{font-weight:600}.notif-item__desc{margin:0;font-size:.8125rem;color:var(--text-muted, #6b7280);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.notif-item__meta{display:flex;align-items:center;gap:.75rem;margin-top:.25rem}.notif-item__time{font-size:.75rem;color:var(--text-placeholder, #6b7280)}.notif-item__dismiss{flex-shrink:0;opacity:0;transition:opacity .1s ease}.notif-item:hover .notif-item__dismiss{opacity:1}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "ngx-ds-button", inputs: ["variant", "size", "color", "iconLeft", "iconRight", "disabled", "loading", "rounded", "type", "ariaLabel"] }, { kind: "component", type: IconComponent, selector: "ngx-ds-icon", inputs: ["icon", "size", "color", "strokeWidth", "absoluteStrokeWidth"] }, { kind: "component", type: IconButtonComponent, selector: "ngx-ds-icon-button", inputs: ["icon", "ariaLabel", "variant", "size", "color", "rounded", "bordered", "disabled", "type"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6824
6872
|
}
|
|
6825
6873
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: NotificationItemComponent, decorators: [{
|
|
6826
6874
|
type: Component,
|
|
6827
|
-
args: [{ selector: 'ngx-ds-notification-item', standalone: true, imports: [ButtonComponent, IconComponent, IconButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"hostClasses()\" tabindex=\"0\" (click)=\"onMarkRead()\" (keydown.enter)=\"onMarkRead()\">\n <!-- Unread dot -->\n @if (!notification().read) {\n <span class=\"notif-item__dot\" [attr.aria-label]=\"i18n.unread\"></span>\n }\n\n <!-- Type icon -->\n <div class=\"notif-item__icon-wrap\">\n <ngx-ds-icon [icon]=\"typeIcon()\" [size]=\"18\" class=\"notif-item__icon\" />\n </div>\n\n <!-- Content -->\n <div class=\"notif-item__body\">\n <p class=\"notif-item__title\">{{ notification().title }}</p>\n\n @if (notification().description) {\n <p class=\"notif-item__desc\">{{ notification().description }}</p>\n }\n\n <div class=\"notif-item__meta\">\n @if (timeLabel()) {\n <span class=\"notif-item__time\">{{ timeLabel() }}</span>\n }\n\n @if (notification().actionLabel) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"primary\" (click)=\"onAction($event)\">\n {{ notification().actionLabel }}\n </ngx-ds-button>\n }\n </div>\n </div>\n\n <!-- Dismiss -->\n <ngx-ds-icon-button\n class=\"notif-item__dismiss\"\n [icon]=\"XIcon\"\n [ariaLabel]=\"i18n.dismissNotification\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"onDismiss($event)\"\n />\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.notif-item{display:flex;align-items:flex-start;gap:.625rem;padding:.75rem 1rem;position:relative;cursor:pointer;transition:background .12s ease;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.notif-item:last-child{border-bottom:none}.notif-item:hover{background:var(--surface-subtle, #f9fafb)}.notif-item--unread{background:var(--surface-subtle, #fafafa)}.notif-item__dot{position:absolute;top:1rem;left:.375rem;width:.5rem;height:.5rem;border-radius:50%;background:var(--primary-500, #6366f1);flex-shrink:0}.notif-item__icon-wrap{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;flex-shrink:0;margin-top:.125rem}.notif-item--info .notif-item__icon-wrap{background:var(--info-100, #dbeafe)}.notif-item--success .notif-item__icon-wrap{background:var(--success-100, #d1fae5)}.notif-item--warning .notif-item__icon-wrap{background:var(--warning-100, #fef3c7)}.notif-item--
|
|
6828
|
-
}], propDecorators: { notification: [{ type: i0.Input, args: [{ isSignal: true, alias: "notification", required: true }] }], markRead: [{ type: i0.Output, args: ["markRead"] }], dismiss: [{ type: i0.Output, args: ["dismiss"] }], action: [{ type: i0.Output, args: ["action"] }] } });
|
|
6875
|
+
args: [{ selector: 'ngx-ds-notification-item', standalone: true, imports: [ButtonComponent, IconComponent, IconButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"hostClasses()\" tabindex=\"0\" (click)=\"onMarkRead()\" (keydown.enter)=\"onMarkRead()\">\n <!-- Unread dot -->\n @if (!notification().read) {\n <span class=\"notif-item__dot\" [attr.aria-label]=\"i18n.unread\"></span>\n }\n\n <!-- Type icon -->\n <div class=\"notif-item__icon-wrap\">\n <ngx-ds-icon [icon]=\"typeIcon()\" [size]=\"18\" class=\"notif-item__icon\" />\n </div>\n\n <!-- Content -->\n <div class=\"notif-item__body\">\n <p class=\"notif-item__title\">{{ notification().title }}</p>\n\n @if (notification().description) {\n <p class=\"notif-item__desc\">{{ notification().description }}</p>\n }\n\n <div class=\"notif-item__meta\">\n @if (timeLabel()) {\n <span class=\"notif-item__time\">{{ timeLabel() }}</span>\n }\n\n @if (notification().actionLabel) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"primary\" (click)=\"onAction($event)\">\n {{ notification().actionLabel }}\n </ngx-ds-button>\n }\n </div>\n </div>\n\n <!-- Dismiss -->\n <ngx-ds-icon-button\n class=\"notif-item__dismiss\"\n [icon]=\"XIcon\"\n [ariaLabel]=\"i18n.dismissNotification\"\n variant=\"outline\"\n color=\"secondary\"\n size=\"sm\"\n [bordered]=\"false\"\n (click)=\"onDismiss($event)\"\n />\n</div>\n", styles: [":host{display:block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.notif-item{display:flex;align-items:flex-start;gap:.625rem;padding:.75rem 1rem;position:relative;cursor:pointer;transition:background .12s ease;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.notif-item:last-child{border-bottom:none}.notif-item:hover{background:var(--surface-subtle, #f9fafb)}.notif-item--unread{background:var(--surface-subtle, #fafafa)}.notif-item__dot{position:absolute;top:1rem;left:.375rem;width:.5rem;height:.5rem;border-radius:50%;background:var(--primary-500, #6366f1);flex-shrink:0}.notif-item__icon-wrap{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border-radius:50%;flex-shrink:0;margin-top:.125rem}.notif-item--info .notif-item__icon-wrap{background:var(--info-100, #dbeafe)}.notif-item--success .notif-item__icon-wrap{background:var(--success-100, #d1fae5)}.notif-item--warning .notif-item__icon-wrap{background:var(--warning-100, #fef3c7)}.notif-item--danger .notif-item__icon-wrap{background:var(--danger-100, #fee2e2)}.notif-item__icon{display:flex}.notif-item--info .notif-item__icon{color:var(--info-600, #2563eb)}.notif-item--success .notif-item__icon{color:var(--success-600, #059669)}.notif-item--warning .notif-item__icon{color:var(--warning-600, #d97706)}.notif-item--danger .notif-item__icon{color:var(--danger-600, #dc2626)}.notif-item__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}.notif-item__title{margin:0;font-size:.875rem;font-weight:500;color:var(--text-base, #111827);white-space:normal;line-height:1.4}.notif-item--unread .notif-item__title{font-weight:600}.notif-item__desc{margin:0;font-size:.8125rem;color:var(--text-muted, #6b7280);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.notif-item__meta{display:flex;align-items:center;gap:.75rem;margin-top:.25rem}.notif-item__time{font-size:.75rem;color:var(--text-placeholder, #6b7280)}.notif-item__dismiss{flex-shrink:0;opacity:0;transition:opacity .1s ease}.notif-item:hover .notif-item__dismiss{opacity:1}\n"] }]
|
|
6876
|
+
}], propDecorators: { notification: [{ type: i0.Input, args: [{ isSignal: true, alias: "notification", required: true }] }], markRead: [{ type: i0.Output, args: ["markRead"] }], dismissed: [{ type: i0.Output, args: ["dismissed"] }], dismiss: [{ type: i0.Output, args: ["dismiss"] }], action: [{ type: i0.Output, args: ["action"] }] } });
|
|
6829
6877
|
|
|
6830
6878
|
class NotificationCenterComponent {
|
|
6831
6879
|
i18n = inject(NGX_DS_LABELS);
|
|
@@ -6837,6 +6885,8 @@ class NotificationCenterComponent {
|
|
|
6837
6885
|
// ── Outputs ───────────────────────────────────────────────────────────────
|
|
6838
6886
|
markRead = output();
|
|
6839
6887
|
markAllRead = output();
|
|
6888
|
+
dismissed = output();
|
|
6889
|
+
/** @deprecated Use `dismissed`. Removed in 1.0. */
|
|
6840
6890
|
dismiss = output();
|
|
6841
6891
|
dismissAll = output();
|
|
6842
6892
|
action = output();
|
|
@@ -6874,6 +6924,7 @@ class NotificationCenterComponent {
|
|
|
6874
6924
|
this.markAllRead.emit();
|
|
6875
6925
|
}
|
|
6876
6926
|
onDismiss(n) {
|
|
6927
|
+
this.dismissed.emit(n);
|
|
6877
6928
|
this.dismiss.emit(n);
|
|
6878
6929
|
}
|
|
6879
6930
|
onDismissAll() {
|
|
@@ -6891,12 +6942,12 @@ class NotificationCenterComponent {
|
|
|
6891
6942
|
setupEscapeClose(() => this.#open.set(false));
|
|
6892
6943
|
}
|
|
6893
6944
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: NotificationCenterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6894
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: NotificationCenterComponent, isStandalone: true, selector: "ngx-ds-notification-center", inputs: { notifications: { classPropertyName: "notifications", publicName: "notifications", isSignal: true, isRequired: false, transformFunction: null }, panelTitle: { classPropertyName: "panelTitle", publicName: "panelTitle", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { markRead: "markRead", markAllRead: "markAllRead", dismiss: "dismiss", dismissAll: "dismissAll", action: "action" }, ngImport: i0, template: "<div class=\"nc\">\n <!-- \u2500\u2500 Bell trigger \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"nc__bell-wrap\">\n <ngx-ds-icon-button\n [icon]=\"BellIcon\"\n [ariaLabel]=\"\n i18n.notifications + (unreadCount() > 0 ? ', ' + i18n.unreadCount(unreadCount()) : '')\n \"\n variant=\"outline\"\n [color]=\"isOpen() || hasUnread() ? 'primary' : 'secondary'\"\n size=\"md\"\n (click)=\"togglePanel()\"\n />\n @if (badgeLabel()) {\n <span class=\"nc__badge\">{{ badgeLabel() }}</span>\n }\n </div>\n\n <!-- \u2500\u2500 Panel \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n @if (isOpen()) {\n <div [class]=\"panelClasses()\" role=\"dialog\" [attr.aria-label]=\"i18n.notificationCenter\">\n <!-- Header -->\n <div class=\"nc__header\">\n <h3 class=\"nc__title\">{{ panelTitle() ?? i18n.notifications }}</h3>\n @if (unreadCount() > 0) {\n <span class=\"nc__unread-pill\">{{ i18n.unreadCount(unreadCount()) }}</span>\n }\n <div class=\"nc__header-actions\">\n @if (hasUnread()) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"primary\" (click)=\"onMarkAllRead()\">\n {{ i18n.markAllRead }}\n </ngx-ds-button>\n }\n @if (notifications().length > 0) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"danger\" (click)=\"onDismissAll()\">\n {{ i18n.clearAll }}\n </ngx-ds-button>\n }\n </div>\n </div>\n\n <!-- Filter tabs -->\n <div class=\"nc__filters\" role=\"tablist\">\n <ngx-ds-button\n role=\"tab\"\n [variant]=\"filter() === 'all' ? 'solid' : 'outline'\"\n [color]=\"filter() === 'all' ? 'primary' : 'secondary'\"\n size=\"sm\"\n (click)=\"setFilter('all')\"\n >\n {{ i18n.filterAll }}\n @if (notifications().length > 0) {\n <span class=\"nc__filter-count\">{{ notifications().length }}</span>\n }\n </ngx-ds-button>\n <ngx-ds-button\n role=\"tab\"\n [variant]=\"filter() === 'unread' ? 'solid' : 'outline'\"\n [color]=\"filter() === 'unread' ? 'primary' : 'secondary'\"\n size=\"sm\"\n (click)=\"setFilter('unread')\"\n >\n {{ i18n.filterUnread }}\n @if (unreadCount() > 0) {\n <span class=\"nc__filter-count\">{{ unreadCount() }}</span>\n }\n </ngx-ds-button>\n </div>\n\n <!-- List -->\n <div class=\"nc__list\" [style.maxHeight]=\"maxHeight()\">\n @if (isEmpty()) {\n <ngx-ds-empty-state\n [icon]=\"BellOffIcon\"\n [title]=\"filter() === 'unread' ? i18n.emptyUnread : i18n.emptyNotifications\"\n [description]=\"\n filter() === 'unread'\n ? i18n.emptyUnreadDescription\n : i18n.emptyNotificationsDescription\n \"\n size=\"sm\"\n />\n } @else {\n @for (n of displayedNotifications(); track n.id) {\n <ngx-ds-notification-item\n [notification]=\"n\"\n (markRead)=\"onMarkRead($event)\"\n (
|
|
6945
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: NotificationCenterComponent, isStandalone: true, selector: "ngx-ds-notification-center", inputs: { notifications: { classPropertyName: "notifications", publicName: "notifications", isSignal: true, isRequired: false, transformFunction: null }, panelTitle: { classPropertyName: "panelTitle", publicName: "panelTitle", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { markRead: "markRead", markAllRead: "markAllRead", dismissed: "dismissed", dismiss: "dismiss", dismissAll: "dismissAll", action: "action" }, ngImport: i0, template: "<div class=\"nc\">\n <!-- \u2500\u2500 Bell trigger \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"nc__bell-wrap\">\n <ngx-ds-icon-button\n [icon]=\"BellIcon\"\n [ariaLabel]=\"\n i18n.notifications + (unreadCount() > 0 ? ', ' + i18n.unreadCount(unreadCount()) : '')\n \"\n variant=\"outline\"\n [color]=\"isOpen() || hasUnread() ? 'primary' : 'secondary'\"\n size=\"md\"\n (click)=\"togglePanel()\"\n />\n @if (badgeLabel()) {\n <span class=\"nc__badge\">{{ badgeLabel() }}</span>\n }\n </div>\n\n <!-- \u2500\u2500 Panel \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n @if (isOpen()) {\n <div [class]=\"panelClasses()\" role=\"dialog\" [attr.aria-label]=\"i18n.notificationCenter\">\n <!-- Header -->\n <div class=\"nc__header\">\n <h3 class=\"nc__title\">{{ panelTitle() ?? i18n.notifications }}</h3>\n @if (unreadCount() > 0) {\n <span class=\"nc__unread-pill\">{{ i18n.unreadCount(unreadCount()) }}</span>\n }\n <div class=\"nc__header-actions\">\n @if (hasUnread()) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"primary\" (click)=\"onMarkAllRead()\">\n {{ i18n.markAllRead }}\n </ngx-ds-button>\n }\n @if (notifications().length > 0) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"danger\" (click)=\"onDismissAll()\">\n {{ i18n.clearAll }}\n </ngx-ds-button>\n }\n </div>\n </div>\n\n <!-- Filter tabs -->\n <div class=\"nc__filters\" role=\"tablist\">\n <ngx-ds-button\n role=\"tab\"\n [variant]=\"filter() === 'all' ? 'solid' : 'outline'\"\n [color]=\"filter() === 'all' ? 'primary' : 'secondary'\"\n size=\"sm\"\n (click)=\"setFilter('all')\"\n >\n {{ i18n.filterAll }}\n @if (notifications().length > 0) {\n <span class=\"nc__filter-count\">{{ notifications().length }}</span>\n }\n </ngx-ds-button>\n <ngx-ds-button\n role=\"tab\"\n [variant]=\"filter() === 'unread' ? 'solid' : 'outline'\"\n [color]=\"filter() === 'unread' ? 'primary' : 'secondary'\"\n size=\"sm\"\n (click)=\"setFilter('unread')\"\n >\n {{ i18n.filterUnread }}\n @if (unreadCount() > 0) {\n <span class=\"nc__filter-count\">{{ unreadCount() }}</span>\n }\n </ngx-ds-button>\n </div>\n\n <!-- List -->\n <div class=\"nc__list\" [style.maxHeight]=\"maxHeight()\">\n @if (isEmpty()) {\n <ngx-ds-empty-state\n [icon]=\"BellOffIcon\"\n [title]=\"filter() === 'unread' ? i18n.emptyUnread : i18n.emptyNotifications\"\n [description]=\"\n filter() === 'unread'\n ? i18n.emptyUnreadDescription\n : i18n.emptyNotificationsDescription\n \"\n size=\"sm\"\n />\n } @else {\n @for (n of displayedNotifications(); track n.id) {\n <ngx-ds-notification-item\n [notification]=\"n\"\n (markRead)=\"onMarkRead($event)\"\n (dismissed)=\"onDismiss($event)\"\n (action)=\"onAction($event)\"\n />\n }\n }\n </div>\n </div>\n }\n</div>\n", styles: [":host{display:inline-block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.nc{position:relative;display:inline-block}.nc__bell-wrap{position:relative;display:inline-flex}.nc__badge{position:absolute;top:-.35rem;right:-.35rem;min-width:1.125rem;height:1.125rem;padding:0 .25rem;background:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff);border-radius:999px;font-size:.625rem;font-weight:700;display:flex;align-items:center;justify-content:center;line-height:1;border:2px solid var(--surface-base, #ffffff);box-sizing:border-box}.nc__panel{position:absolute;top:calc(100% + .5rem);width:24rem;background:var(--surface-base, #ffffff);border:1px solid var(--border-base, #e5e7eb);border-radius:.875rem;box-shadow:0 8px 32px #0000001f;z-index:1000;overflow:hidden;animation:ncSlideIn .15s ease}.nc__panel--bottom-end{right:0}.nc__panel--bottom-start{left:0}@keyframes ncSlideIn{0%{opacity:0;transform:translateY(-.375rem) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.nc__header{display:flex;align-items:center;gap:.5rem;padding:1rem 1rem .625rem;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.nc__title{margin:0;font-size:.9375rem;font-weight:600;color:var(--text-base, #111827);flex:1}.nc__unread-pill{font-size:.7rem;font-weight:700;background:var(--primary-100, #e0e7ff);color:var(--primary-700, #4338ca);border-radius:999px;padding:.1rem .5rem;white-space:nowrap}.nc__header-actions{display:flex;align-items:center;gap:.25rem}.nc__filters{display:flex;gap:.25rem;padding:.375rem .75rem;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.nc__filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.25rem;height:1.25rem;padding:0 .25rem;border-radius:999px;font-size:.7rem;font-weight:700;background:color-mix(in srgb,currentColor 15%,transparent);margin-left:.25rem}.nc__list{overflow-y:auto}.nc__list ngx-ds-empty-state{padding:1.5rem}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "ngx-ds-button", inputs: ["variant", "size", "color", "iconLeft", "iconRight", "disabled", "loading", "rounded", "type", "ariaLabel"] }, { kind: "component", type: IconButtonComponent, selector: "ngx-ds-icon-button", inputs: ["icon", "ariaLabel", "variant", "size", "color", "rounded", "bordered", "disabled", "type"] }, { kind: "component", type: EmptyStateComponent, selector: "ngx-ds-empty-state", inputs: ["icon", "title", "description", "size"] }, { kind: "component", type: NotificationItemComponent, selector: "ngx-ds-notification-item", inputs: ["notification"], outputs: ["markRead", "dismissed", "dismiss", "action"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6895
6946
|
}
|
|
6896
6947
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: NotificationCenterComponent, decorators: [{
|
|
6897
6948
|
type: Component,
|
|
6898
|
-
args: [{ selector: 'ngx-ds-notification-center', standalone: true, imports: [ButtonComponent, IconButtonComponent, EmptyStateComponent, NotificationItemComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"nc\">\n <!-- \u2500\u2500 Bell trigger \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"nc__bell-wrap\">\n <ngx-ds-icon-button\n [icon]=\"BellIcon\"\n [ariaLabel]=\"\n i18n.notifications + (unreadCount() > 0 ? ', ' + i18n.unreadCount(unreadCount()) : '')\n \"\n variant=\"outline\"\n [color]=\"isOpen() || hasUnread() ? 'primary' : 'secondary'\"\n size=\"md\"\n (click)=\"togglePanel()\"\n />\n @if (badgeLabel()) {\n <span class=\"nc__badge\">{{ badgeLabel() }}</span>\n }\n </div>\n\n <!-- \u2500\u2500 Panel \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n @if (isOpen()) {\n <div [class]=\"panelClasses()\" role=\"dialog\" [attr.aria-label]=\"i18n.notificationCenter\">\n <!-- Header -->\n <div class=\"nc__header\">\n <h3 class=\"nc__title\">{{ panelTitle() ?? i18n.notifications }}</h3>\n @if (unreadCount() > 0) {\n <span class=\"nc__unread-pill\">{{ i18n.unreadCount(unreadCount()) }}</span>\n }\n <div class=\"nc__header-actions\">\n @if (hasUnread()) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"primary\" (click)=\"onMarkAllRead()\">\n {{ i18n.markAllRead }}\n </ngx-ds-button>\n }\n @if (notifications().length > 0) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"danger\" (click)=\"onDismissAll()\">\n {{ i18n.clearAll }}\n </ngx-ds-button>\n }\n </div>\n </div>\n\n <!-- Filter tabs -->\n <div class=\"nc__filters\" role=\"tablist\">\n <ngx-ds-button\n role=\"tab\"\n [variant]=\"filter() === 'all' ? 'solid' : 'outline'\"\n [color]=\"filter() === 'all' ? 'primary' : 'secondary'\"\n size=\"sm\"\n (click)=\"setFilter('all')\"\n >\n {{ i18n.filterAll }}\n @if (notifications().length > 0) {\n <span class=\"nc__filter-count\">{{ notifications().length }}</span>\n }\n </ngx-ds-button>\n <ngx-ds-button\n role=\"tab\"\n [variant]=\"filter() === 'unread' ? 'solid' : 'outline'\"\n [color]=\"filter() === 'unread' ? 'primary' : 'secondary'\"\n size=\"sm\"\n (click)=\"setFilter('unread')\"\n >\n {{ i18n.filterUnread }}\n @if (unreadCount() > 0) {\n <span class=\"nc__filter-count\">{{ unreadCount() }}</span>\n }\n </ngx-ds-button>\n </div>\n\n <!-- List -->\n <div class=\"nc__list\" [style.maxHeight]=\"maxHeight()\">\n @if (isEmpty()) {\n <ngx-ds-empty-state\n [icon]=\"BellOffIcon\"\n [title]=\"filter() === 'unread' ? i18n.emptyUnread : i18n.emptyNotifications\"\n [description]=\"\n filter() === 'unread'\n ? i18n.emptyUnreadDescription\n : i18n.emptyNotificationsDescription\n \"\n size=\"sm\"\n />\n } @else {\n @for (n of displayedNotifications(); track n.id) {\n <ngx-ds-notification-item\n [notification]=\"n\"\n (markRead)=\"onMarkRead($event)\"\n (
|
|
6899
|
-
}], ctorParameters: () => [], propDecorators: { notifications: [{ type: i0.Input, args: [{ isSignal: true, alias: "notifications", required: false }] }], panelTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelTitle", required: false }] }], maxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHeight", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], markRead: [{ type: i0.Output, args: ["markRead"] }], markAllRead: [{ type: i0.Output, args: ["markAllRead"] }], dismiss: [{ type: i0.Output, args: ["dismiss"] }], dismissAll: [{ type: i0.Output, args: ["dismissAll"] }], action: [{ type: i0.Output, args: ["action"] }] } });
|
|
6949
|
+
args: [{ selector: 'ngx-ds-notification-center', standalone: true, imports: [ButtonComponent, IconButtonComponent, EmptyStateComponent, NotificationItemComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"nc\">\n <!-- \u2500\u2500 Bell trigger \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div class=\"nc__bell-wrap\">\n <ngx-ds-icon-button\n [icon]=\"BellIcon\"\n [ariaLabel]=\"\n i18n.notifications + (unreadCount() > 0 ? ', ' + i18n.unreadCount(unreadCount()) : '')\n \"\n variant=\"outline\"\n [color]=\"isOpen() || hasUnread() ? 'primary' : 'secondary'\"\n size=\"md\"\n (click)=\"togglePanel()\"\n />\n @if (badgeLabel()) {\n <span class=\"nc__badge\">{{ badgeLabel() }}</span>\n }\n </div>\n\n <!-- \u2500\u2500 Panel \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n @if (isOpen()) {\n <div [class]=\"panelClasses()\" role=\"dialog\" [attr.aria-label]=\"i18n.notificationCenter\">\n <!-- Header -->\n <div class=\"nc__header\">\n <h3 class=\"nc__title\">{{ panelTitle() ?? i18n.notifications }}</h3>\n @if (unreadCount() > 0) {\n <span class=\"nc__unread-pill\">{{ i18n.unreadCount(unreadCount()) }}</span>\n }\n <div class=\"nc__header-actions\">\n @if (hasUnread()) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"primary\" (click)=\"onMarkAllRead()\">\n {{ i18n.markAllRead }}\n </ngx-ds-button>\n }\n @if (notifications().length > 0) {\n <ngx-ds-button variant=\"outline\" size=\"sm\" color=\"danger\" (click)=\"onDismissAll()\">\n {{ i18n.clearAll }}\n </ngx-ds-button>\n }\n </div>\n </div>\n\n <!-- Filter tabs -->\n <div class=\"nc__filters\" role=\"tablist\">\n <ngx-ds-button\n role=\"tab\"\n [variant]=\"filter() === 'all' ? 'solid' : 'outline'\"\n [color]=\"filter() === 'all' ? 'primary' : 'secondary'\"\n size=\"sm\"\n (click)=\"setFilter('all')\"\n >\n {{ i18n.filterAll }}\n @if (notifications().length > 0) {\n <span class=\"nc__filter-count\">{{ notifications().length }}</span>\n }\n </ngx-ds-button>\n <ngx-ds-button\n role=\"tab\"\n [variant]=\"filter() === 'unread' ? 'solid' : 'outline'\"\n [color]=\"filter() === 'unread' ? 'primary' : 'secondary'\"\n size=\"sm\"\n (click)=\"setFilter('unread')\"\n >\n {{ i18n.filterUnread }}\n @if (unreadCount() > 0) {\n <span class=\"nc__filter-count\">{{ unreadCount() }}</span>\n }\n </ngx-ds-button>\n </div>\n\n <!-- List -->\n <div class=\"nc__list\" [style.maxHeight]=\"maxHeight()\">\n @if (isEmpty()) {\n <ngx-ds-empty-state\n [icon]=\"BellOffIcon\"\n [title]=\"filter() === 'unread' ? i18n.emptyUnread : i18n.emptyNotifications\"\n [description]=\"\n filter() === 'unread'\n ? i18n.emptyUnreadDescription\n : i18n.emptyNotificationsDescription\n \"\n size=\"sm\"\n />\n } @else {\n @for (n of displayedNotifications(); track n.id) {\n <ngx-ds-notification-item\n [notification]=\"n\"\n (markRead)=\"onMarkRead($event)\"\n (dismissed)=\"onDismiss($event)\"\n (action)=\"onAction($event)\"\n />\n }\n }\n </div>\n </div>\n }\n</div>\n", styles: [":host{display:inline-block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.nc{position:relative;display:inline-block}.nc__bell-wrap{position:relative;display:inline-flex}.nc__badge{position:absolute;top:-.35rem;right:-.35rem;min-width:1.125rem;height:1.125rem;padding:0 .25rem;background:var(--fill-danger, #dc2626);color:var(--text-on-color, #fff);border-radius:999px;font-size:.625rem;font-weight:700;display:flex;align-items:center;justify-content:center;line-height:1;border:2px solid var(--surface-base, #ffffff);box-sizing:border-box}.nc__panel{position:absolute;top:calc(100% + .5rem);width:24rem;background:var(--surface-base, #ffffff);border:1px solid var(--border-base, #e5e7eb);border-radius:.875rem;box-shadow:0 8px 32px #0000001f;z-index:1000;overflow:hidden;animation:ncSlideIn .15s ease}.nc__panel--bottom-end{right:0}.nc__panel--bottom-start{left:0}@keyframes ncSlideIn{0%{opacity:0;transform:translateY(-.375rem) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.nc__header{display:flex;align-items:center;gap:.5rem;padding:1rem 1rem .625rem;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.nc__title{margin:0;font-size:.9375rem;font-weight:600;color:var(--text-base, #111827);flex:1}.nc__unread-pill{font-size:.7rem;font-weight:700;background:var(--primary-100, #e0e7ff);color:var(--primary-700, #4338ca);border-radius:999px;padding:.1rem .5rem;white-space:nowrap}.nc__header-actions{display:flex;align-items:center;gap:.25rem}.nc__filters{display:flex;gap:.25rem;padding:.375rem .75rem;border-bottom:1px solid var(--border-subtle, #f3f4f6)}.nc__filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.25rem;height:1.25rem;padding:0 .25rem;border-radius:999px;font-size:.7rem;font-weight:700;background:color-mix(in srgb,currentColor 15%,transparent);margin-left:.25rem}.nc__list{overflow-y:auto}.nc__list ngx-ds-empty-state{padding:1.5rem}\n"] }]
|
|
6950
|
+
}], ctorParameters: () => [], propDecorators: { notifications: [{ type: i0.Input, args: [{ isSignal: true, alias: "notifications", required: false }] }], panelTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelTitle", required: false }] }], maxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHeight", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], markRead: [{ type: i0.Output, args: ["markRead"] }], markAllRead: [{ type: i0.Output, args: ["markAllRead"] }], dismissed: [{ type: i0.Output, args: ["dismissed"] }], dismiss: [{ type: i0.Output, args: ["dismiss"] }], dismissAll: [{ type: i0.Output, args: ["dismissAll"] }], action: [{ type: i0.Output, args: ["action"] }] } });
|
|
6900
6951
|
|
|
6901
6952
|
class UserMenuComponent {
|
|
6902
6953
|
user = input.required(...(ngDevMode ? [{ debugName: "user" }] : /* istanbul ignore next */ []));
|
|
@@ -6912,7 +6963,7 @@ class UserMenuComponent {
|
|
|
6912
6963
|
this.popover().open.set(false);
|
|
6913
6964
|
}
|
|
6914
6965
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UserMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6915
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UserMenuComponent, isStandalone: true, selector: "ngx-ds-user-menu", inputs: { user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: true, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionClick: "actionClick" }, viewQueries: [{ propertyName: "popover", first: true, predicate: PopoverComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<ngx-ds-popover [placement]=\"placement()\">\n <!-- \u2500\u2500 Trigger \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <!-- Name as hidden text, not aria-label: the visible initials must not mismatch it. -->\n <button popover-trigger type=\"button\" class=\"um__trigger\">\n <span class=\"um__sr-only\">{{ user().name }}</span>\n <ngx-ds-avatar\n [src]=\"user().avatarSrc\"\n [alt]=\"user().name\"\n [initials]=\"user().initials ?? ''\"\n [color]=\"user().avatarColor ?? 'primary'\"\n [size]=\"size()\"\n aria-hidden=\"true\"\n />\n </button>\n\n <!-- \u2500\u2500 Panel \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div popover-content class=\"um__panel\">\n <!-- Header: name + email only, no avatar -->\n <div class=\"um__header\">\n <p class=\"um__name\">{{ user().name }}</p>\n <p class=\"um__email\">{{ user().email }}</p>\n </div>\n\n <ngx-ds-divider />\n\n <!-- Action list -->\n <div class=\"um__actions\">\n @for (action of actions(); track action.id; let first = $first) {\n @if (action.separator && !first) {\n <ngx-ds-divider />\n }\n <ngx-ds-menu-button\n [iconLeft]=\"action.icon\"\n [color]=\"action.color ?? 'default'\"\n [disabled]=\"action.disabled ?? false\"\n [fullWidth]=\"true\"\n (click)=\"onAction(action)\"\n >\n {{ action.label }}\n </ngx-ds-menu-button>\n }\n </div>\n </div>\n</ngx-ds-popover>\n", styles: [":host{display:inline-block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.um__sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.um__trigger{display:inline-flex;background:none;border:none;padding:0;cursor:pointer;border-radius:50%;transition:opacity .15s ease}.um__trigger:hover{opacity:.85}.um__trigger:focus-visible{outline:2px solid var(--primary-500, #6366f1);outline-offset:3px}.um__panel{min-width:14rem;padding:.25rem 0}.um__header{padding:.75rem 1rem .625rem;display:flex;flex-direction:column;gap:.125rem}.um__name{margin:0;font-size:.875rem;font-weight:600;color:var(--text-base, #111827);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.um__email{margin:0;font-size:.75rem;color:var(--text-muted, #6b7280);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.um__actions{padding:.25rem .375rem;display:flex;flex-direction:column;gap:.125rem}\n"], dependencies: [{ kind: "component", type: PopoverComponent, selector: "ngx-ds-popover", inputs: ["open", "placement", "closeOnClickOutside", "closeOnEscape", "disabled", "ariaLabel"], outputs: ["openChange", "opened", "closed"] }, { kind: "component", type: AvatarComponent, selector: "ngx-ds-avatar", inputs: ["src", "alt", "initials", "size", "shape", "status", "color", "bordered"] }, { kind: "component", type: MenuButtonComponent, selector: "ngx-ds-menu-button", inputs: ["iconLeft", "iconRight", "color", "size", "disabled", "fullWidth", "type"] }, { kind: "component", type: DividerComponent, selector: "ngx-ds-divider", inputs: ["orientation", "variant", "label", "align", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6966
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UserMenuComponent, isStandalone: true, selector: "ngx-ds-user-menu", inputs: { user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: true, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { actionClick: "actionClick" }, viewQueries: [{ propertyName: "popover", first: true, predicate: PopoverComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<ngx-ds-popover [placement]=\"placement()\">\n <!-- \u2500\u2500 Trigger \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <!-- Name as hidden text, not aria-label: the visible initials must not mismatch it. -->\n <button popover-trigger type=\"button\" class=\"um__trigger\">\n <span class=\"um__sr-only\">{{ user().name }}</span>\n <ngx-ds-avatar\n [src]=\"user().avatarSrc\"\n [alt]=\"user().name\"\n [initials]=\"user().initials ?? ''\"\n [color]=\"user().avatarColor ?? 'primary'\"\n [size]=\"size()\"\n aria-hidden=\"true\"\n />\n </button>\n\n <!-- \u2500\u2500 Panel \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n <div popover-content class=\"um__panel\">\n <!-- Header: name + email only, no avatar -->\n <div class=\"um__header\">\n <p class=\"um__name\">{{ user().name }}</p>\n <p class=\"um__email\">{{ user().email }}</p>\n </div>\n\n <ngx-ds-divider />\n\n <!-- Action list -->\n <div class=\"um__actions\">\n @for (action of actions(); track action.id; let first = $first) {\n @if (action.separator && !first) {\n <ngx-ds-divider />\n }\n <ngx-ds-menu-button\n [iconLeft]=\"action.icon\"\n [color]=\"action.color ?? 'default'\"\n [disabled]=\"action.disabled ?? false\"\n [fullWidth]=\"true\"\n (click)=\"onAction(action)\"\n >\n {{ action.label }}\n </ngx-ds-menu-button>\n }\n </div>\n </div>\n</ngx-ds-popover>\n", styles: [":host{display:inline-block;font-family:var(--ngx-primary-font-family, \"Poppins\", sans-serif)}.um__sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.um__trigger{display:inline-flex;background:none;border:none;padding:0;cursor:pointer;border-radius:50%;transition:opacity .15s ease}.um__trigger:hover{opacity:.85}.um__trigger:focus-visible{outline:2px solid var(--primary-500, #6366f1);outline-offset:3px}.um__panel{min-width:14rem;padding:.25rem 0}.um__header{padding:.75rem 1rem .625rem;display:flex;flex-direction:column;gap:.125rem}.um__name{margin:0;font-size:.875rem;font-weight:600;color:var(--text-base, #111827);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.um__email{margin:0;font-size:.75rem;color:var(--text-muted, #6b7280);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.um__actions{padding:.25rem .375rem;display:flex;flex-direction:column;gap:.125rem}\n"], dependencies: [{ kind: "component", type: PopoverComponent, selector: "ngx-ds-popover", inputs: ["open", "placement", "closeOnBackdrop", "closeOnClickOutside", "closeOnEscape", "disabled", "ariaLabel"], outputs: ["openChange", "opened", "closed"] }, { kind: "component", type: AvatarComponent, selector: "ngx-ds-avatar", inputs: ["src", "alt", "initials", "size", "shape", "status", "color", "bordered"] }, { kind: "component", type: MenuButtonComponent, selector: "ngx-ds-menu-button", inputs: ["iconLeft", "iconRight", "color", "size", "disabled", "fullWidth", "type"] }, { kind: "component", type: DividerComponent, selector: "ngx-ds-divider", inputs: ["orientation", "variant", "label", "align", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6916
6967
|
}
|
|
6917
6968
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UserMenuComponent, decorators: [{
|
|
6918
6969
|
type: Component,
|
|
@@ -7365,5 +7416,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
7365
7416
|
* Generated bundle index. Do not edit.
|
|
7366
7417
|
*/
|
|
7367
7418
|
|
|
7368
|
-
export { ACCORDION_CONTROLLER, AccordionComponent, AccordionItemComponent, AlertComponent, AutocompleteComponent, AvatarComponent, AvatarGroupComponent, BadgeComponent, BreadcrumbComponent, ButtonComponent, ButtonGroupComponent, CalendarComponent, CardComponent, CarouselComponent, CheckboxComponent, ChipGroupComponent, ColorPickerComponent, CommandPaletteComponent, ConfirmationComponent, ConfirmationService, ContextMenuComponent, DateRangePickerComponent, DatepickerComponent, DividerComponent, DrawerComponent, DropdownComponent, EmptyStateComponent, FileUploadComponent, FocusTrapDirective, FormFieldComponent, IconButtonComponent, IconComponent, InlineEditComponent, InputComponent, KbdComponent, LightboxComponent, MenuButtonComponent, MenuComponent, ModalComponent, MultiSelectComponent, NGX_DS_LABELS, NGX_DS_LABELS_EN, NGX_DS_LABELS_ES, NGX_DS_LOCALE, NotificationCenterComponent, NotificationItemComponent, NumberInputComponent, OtpInputComponent,
|
|
7419
|
+
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 };
|
|
7369
7420
|
//# sourceMappingURL=jdpo2008-ngx-ds.mjs.map
|