@spartan-ng/brain 1.8.0-beta.1 → 1.8.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/fesm2022/spartan-ng-brain-accordion.mjs +6 -3
- package/fesm2022/spartan-ng-brain-accordion.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-alert-dialog.mjs +10 -5
- package/fesm2022/spartan-ng-brain-alert-dialog.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-autocomplete.mjs +24 -13
- package/fesm2022/spartan-ng-brain-autocomplete.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-avatar.mjs +2 -1
- package/fesm2022/spartan-ng-brain-avatar.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-button.mjs +2 -1
- package/fesm2022/spartan-ng-brain-button.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-calendar.mjs +40 -20
- package/fesm2022/spartan-ng-brain-calendar.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-checkbox.mjs +11 -4
- package/fesm2022/spartan-ng-brain-checkbox.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-collapsible.mjs +4 -2
- package/fesm2022/spartan-ng-brain-collapsible.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-combobox.mjs +42 -22
- package/fesm2022/spartan-ng-brain-combobox.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-command.mjs +14 -7
- package/fesm2022/spartan-ng-brain-command.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-dialog.mjs +10 -5
- package/fesm2022/spartan-ng-brain-dialog.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-drawer.mjs +14 -7
- package/fesm2022/spartan-ng-brain-drawer.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-field.mjs +4 -2
- package/fesm2022/spartan-ng-brain-field.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-hover-card.mjs +2 -1
- package/fesm2022/spartan-ng-brain-hover-card.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-input-otp.mjs +4 -2
- package/fesm2022/spartan-ng-brain-input-otp.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-input.mjs +2 -1
- package/fesm2022/spartan-ng-brain-input.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-label.mjs +2 -1
- package/fesm2022/spartan-ng-brain-label.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-navigation-menu.mjs +12 -6
- package/fesm2022/spartan-ng-brain-navigation-menu.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-overlay.mjs +93 -10
- package/fesm2022/spartan-ng-brain-overlay.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-popover.mjs +4 -2
- package/fesm2022/spartan-ng-brain-popover.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-progress.mjs +2 -1
- package/fesm2022/spartan-ng-brain-progress.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-radio-group.mjs +2 -1
- package/fesm2022/spartan-ng-brain-radio-group.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-select.mjs +30 -15
- package/fesm2022/spartan-ng-brain-select.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-separator.mjs +2 -1
- package/fesm2022/spartan-ng-brain-separator.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-sheet.mjs +12 -6
- package/fesm2022/spartan-ng-brain-sheet.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-slider.mjs +8 -4
- package/fesm2022/spartan-ng-brain-slider.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-sonner.mjs +9 -6
- package/fesm2022/spartan-ng-brain-sonner.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-switch.mjs +12 -6
- package/fesm2022/spartan-ng-brain-switch.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-textarea.mjs +2 -1
- package/fesm2022/spartan-ng-brain-textarea.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-toggle-group.mjs +2 -1
- package/fesm2022/spartan-ng-brain-toggle-group.mjs.map +1 -1
- package/fesm2022/spartan-ng-brain-toggle.mjs +2 -1
- package/fesm2022/spartan-ng-brain-toggle.mjs.map +1 -1
- package/package.json +1 -1
- package/types/spartan-ng-brain-accordion.d.ts +3 -3
- package/types/spartan-ng-brain-alert-dialog.d.ts +5 -5
- package/types/spartan-ng-brain-autocomplete.d.ts +12 -12
- package/types/spartan-ng-brain-avatar.d.ts +1 -1
- package/types/spartan-ng-brain-button.d.ts +1 -1
- package/types/spartan-ng-brain-calendar.d.ts +20 -20
- package/types/spartan-ng-brain-checkbox.d.ts +4 -2
- package/types/spartan-ng-brain-collapsible.d.ts +2 -2
- package/types/spartan-ng-brain-combobox.d.ts +21 -21
- package/types/spartan-ng-brain-command.d.ts +7 -7
- package/types/spartan-ng-brain-dialog.d.ts +5 -5
- package/types/spartan-ng-brain-drawer.d.ts +7 -7
- package/types/spartan-ng-brain-field.d.ts +2 -2
- package/types/spartan-ng-brain-hover-card.d.ts +1 -1
- package/types/spartan-ng-brain-input-otp.d.ts +2 -2
- package/types/spartan-ng-brain-input.d.ts +1 -1
- package/types/spartan-ng-brain-label.d.ts +1 -1
- package/types/spartan-ng-brain-navigation-menu.d.ts +6 -6
- package/types/spartan-ng-brain-overlay.d.ts +13 -2
- package/types/spartan-ng-brain-popover.d.ts +2 -2
- package/types/spartan-ng-brain-progress.d.ts +1 -1
- package/types/spartan-ng-brain-radio-group.d.ts +1 -1
- package/types/spartan-ng-brain-select.d.ts +15 -15
- package/types/spartan-ng-brain-separator.d.ts +1 -1
- package/types/spartan-ng-brain-sheet.d.ts +6 -6
- package/types/spartan-ng-brain-slider.d.ts +4 -4
- package/types/spartan-ng-brain-sonner.d.ts +1 -1
- package/types/spartan-ng-brain-switch.d.ts +5 -3
- package/types/spartan-ng-brain-textarea.d.ts +1 -1
- package/types/spartan-ng-brain-toggle-group.d.ts +1 -1
- package/types/spartan-ng-brain-toggle.d.ts +1 -1
|
@@ -343,12 +343,13 @@ class BrnSliderRange {
|
|
|
343
343
|
return inset.join(' ');
|
|
344
344
|
}, ...(ngDevMode ? [{ debugName: "_rangeInset" }] : /* istanbul ignore next */ []));
|
|
345
345
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnSliderRange, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
346
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnSliderRange, isStandalone: true, selector: "[brnSliderRange]", host: { attributes: { "data-slot": "slider-range" }, properties: { "attr.data-disabled": "_slider.mutableDisabled() ? \"\" : null", "attr.data-orientation": "_slider.orientation()", "attr.data-draggable-range": "_slider.isDraggableRange() ? \"\" : null", "style.inset-inline": "_slider.isHorizontal() ? _rangeInset() : undefined", "style.inset-block": "!_slider.isHorizontal() ? _rangeInset() : undefined" } }, ngImport: i0 });
|
|
346
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnSliderRange, isStandalone: true, selector: "[brnSliderRange]", host: { attributes: { "data-slot": "slider-range" }, properties: { "attr.data-disabled": "_slider.mutableDisabled() ? \"\" : null", "attr.data-orientation": "_slider.orientation()", "attr.data-draggable-range": "_slider.isDraggableRange() ? \"\" : null", "style.inset-inline": "_slider.isHorizontal() ? _rangeInset() : undefined", "style.inset-block": "!_slider.isHorizontal() ? _rangeInset() : undefined" } }, exportAs: ["brnSliderRange"], ngImport: i0 });
|
|
347
347
|
}
|
|
348
348
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnSliderRange, decorators: [{
|
|
349
349
|
type: Directive,
|
|
350
350
|
args: [{
|
|
351
351
|
selector: '[brnSliderRange]',
|
|
352
|
+
exportAs: 'brnSliderRange',
|
|
352
353
|
host: {
|
|
353
354
|
'[attr.data-disabled]': '_slider.mutableDisabled() ? "" : null',
|
|
354
355
|
'[attr.data-orientation]': '_slider.orientation()',
|
|
@@ -495,12 +496,13 @@ class BrnSliderThumb {
|
|
|
495
496
|
event.preventDefault();
|
|
496
497
|
}
|
|
497
498
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnSliderThumb, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
498
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnSliderThumb, isStandalone: true, selector: "[brnSliderThumb]", host: { attributes: { "role": "slider", "data-slot": "slider-thumb" }, listeners: { "pointerdown": "_onPointerDown($event)", "pointermove": "_onPointerMove($event)", "pointerup": "_onPointerUp($event)", "keydown": "handleKeydown($event)" }, properties: { "attr.aria-label": "_computedAriaLabel()", "attr.aria-labelledby": "_slider.ariaLabelledby() || null", "attr.aria-orientation": "_slider.orientation()", "attr.aria-valuenow": "_slider.normalizedValue()[_index()]", "attr.aria-valuemin": "_slider.min()", "attr.aria-valuemax": "_slider.max()", "attr.tabindex": "_slider.mutableDisabled() ? -1 : 0", "attr.data-disabled": "_slider.mutableDisabled() ? \"\" : null", "attr.data-orientation": "_slider.orientation()", "style.inset-inline-start": "_slider.isHorizontal() ? _slider.inverted() ? undefined : _thumbOffset() : undefined", "style.inset-inline-end": "_slider.isHorizontal() ? _slider.inverted() ? _thumbOffset() : undefined : undefined", "style.inset-block-end": "!_slider.isHorizontal() ? _slider.inverted() ? undefined : _thumbOffset() : undefined", "style.inset-block-start": "!_slider.isHorizontal() ? _slider.inverted() ? _thumbOffset() : undefined : undefined", "style.visibility": "_thumbReady() ? undefined : \"hidden\"", "style.pointer-events": "_thumbReady() ? undefined : \"none\"", "style.transform": "_transformValue()" } }, ngImport: i0 });
|
|
499
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnSliderThumb, isStandalone: true, selector: "[brnSliderThumb]", host: { attributes: { "role": "slider", "data-slot": "slider-thumb" }, listeners: { "pointerdown": "_onPointerDown($event)", "pointermove": "_onPointerMove($event)", "pointerup": "_onPointerUp($event)", "keydown": "handleKeydown($event)" }, properties: { "attr.aria-label": "_computedAriaLabel()", "attr.aria-labelledby": "_slider.ariaLabelledby() || null", "attr.aria-orientation": "_slider.orientation()", "attr.aria-valuenow": "_slider.normalizedValue()[_index()]", "attr.aria-valuemin": "_slider.min()", "attr.aria-valuemax": "_slider.max()", "attr.tabindex": "_slider.mutableDisabled() ? -1 : 0", "attr.data-disabled": "_slider.mutableDisabled() ? \"\" : null", "attr.data-orientation": "_slider.orientation()", "style.inset-inline-start": "_slider.isHorizontal() ? _slider.inverted() ? undefined : _thumbOffset() : undefined", "style.inset-inline-end": "_slider.isHorizontal() ? _slider.inverted() ? _thumbOffset() : undefined : undefined", "style.inset-block-end": "!_slider.isHorizontal() ? _slider.inverted() ? undefined : _thumbOffset() : undefined", "style.inset-block-start": "!_slider.isHorizontal() ? _slider.inverted() ? _thumbOffset() : undefined : undefined", "style.visibility": "_thumbReady() ? undefined : \"hidden\"", "style.pointer-events": "_thumbReady() ? undefined : \"none\"", "style.transform": "_transformValue()" } }, exportAs: ["brnSliderThumb"], ngImport: i0 });
|
|
499
500
|
}
|
|
500
501
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnSliderThumb, decorators: [{
|
|
501
502
|
type: Directive,
|
|
502
503
|
args: [{
|
|
503
504
|
selector: '[brnSliderThumb]',
|
|
505
|
+
exportAs: 'brnSliderThumb',
|
|
504
506
|
host: {
|
|
505
507
|
role: 'slider',
|
|
506
508
|
'[attr.aria-label]': `_computedAriaLabel()`,
|
|
@@ -561,12 +563,13 @@ class BrnSliderTick {
|
|
|
561
563
|
});
|
|
562
564
|
}
|
|
563
565
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnSliderTick, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
564
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnSliderTick, isStandalone: true, selector: "[brnSliderTick]", host: { attributes: { "data-slot": "slider-tick" } }, ngImport: i0 });
|
|
566
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnSliderTick, isStandalone: true, selector: "[brnSliderTick]", host: { attributes: { "data-slot": "slider-tick" } }, exportAs: ["brnSliderTick"], ngImport: i0 });
|
|
565
567
|
}
|
|
566
568
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnSliderTick, decorators: [{
|
|
567
569
|
type: Directive,
|
|
568
570
|
args: [{
|
|
569
571
|
selector: '[brnSliderTick]',
|
|
572
|
+
exportAs: 'brnSliderTick',
|
|
570
573
|
host: {
|
|
571
574
|
'data-slot': 'slider-tick',
|
|
572
575
|
},
|
|
@@ -704,12 +707,13 @@ class BrnSliderTrack {
|
|
|
704
707
|
return this._slider.orientation() === 'horizontal' ? event.clientX : event.clientY;
|
|
705
708
|
}
|
|
706
709
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnSliderTrack, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
707
|
-
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnSliderTrack, isStandalone: true, selector: "[brnSliderTrack]", host: { attributes: { "data-slot": "slider-track" }, listeners: { "pointerdown": "onPointerDown($event)", "pointermove": "onPointerMove($event)", "pointerup": "onPointerUp($event)" }, properties: { "attr.data-disabled": "_slider.mutableDisabled() ? \"\" : null", "attr.data-orientation": "_slider.orientation()" } }, providers: [provideBrnSliderTrack(BrnSliderTrack)], ngImport: i0 });
|
|
710
|
+
/** @nocollapse */ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.16", type: BrnSliderTrack, isStandalone: true, selector: "[brnSliderTrack]", host: { attributes: { "data-slot": "slider-track" }, listeners: { "pointerdown": "onPointerDown($event)", "pointermove": "onPointerMove($event)", "pointerup": "onPointerUp($event)" }, properties: { "attr.data-disabled": "_slider.mutableDisabled() ? \"\" : null", "attr.data-orientation": "_slider.orientation()" } }, providers: [provideBrnSliderTrack(BrnSliderTrack)], exportAs: ["brnSliderTrack"], ngImport: i0 });
|
|
708
711
|
}
|
|
709
712
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnSliderTrack, decorators: [{
|
|
710
713
|
type: Directive,
|
|
711
714
|
args: [{
|
|
712
715
|
selector: '[brnSliderTrack]',
|
|
716
|
+
exportAs: 'brnSliderTrack',
|
|
713
717
|
providers: [provideBrnSliderTrack(BrnSliderTrack)],
|
|
714
718
|
host: {
|
|
715
719
|
'[attr.data-disabled]': '_slider.mutableDisabled() ? "" : null',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spartan-ng-brain-slider.mjs","sources":["../../../../libs/brain/slider/src/lib/brn-slider.token.ts","../../../../libs/brain/slider/src/lib/brn-slider.ts","../../../../libs/brain/slider/src/lib/brn-slider-range.ts","../../../../libs/brain/slider/src/lib/utils/linear-scale.ts","../../../../libs/brain/slider/src/lib/brn-slider-thumb.ts","../../../../libs/brain/slider/src/lib/brn-slider-tick.ts","../../../../libs/brain/slider/src/lib/brn-slider-track.token.ts","../../../../libs/brain/slider/src/lib/brn-slider-track.ts","../../../../libs/brain/slider/src/index.ts","../../../../libs/brain/slider/src/spartan-ng-brain-slider.ts"],"sourcesContent":["import { type ExistingProvider, inject, InjectionToken, type Type } from '@angular/core';\nimport type { BrnSlider } from './brn-slider';\n\nconst BrnSliderToken = new InjectionToken<BrnSlider>('BrnSliderToken');\n\nexport function provideBrnSlider(slider: Type<BrnSlider>): ExistingProvider {\n\treturn { provide: BrnSliderToken, useExisting: slider };\n}\n\nexport function injectBrnSlider(): BrnSlider {\n\treturn inject(BrnSliderToken);\n}\n","import { Directionality } from '@angular/cdk/bidi';\nimport type { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport {\n\tbooleanAttribute,\n\tcomputed,\n\tDirective,\n\tforwardRef,\n\tinject,\n\tInjector,\n\tinput,\n\tlinkedSignal,\n\tnumberAttribute,\n\ttype OnInit,\n\toutput,\n\tsignal,\n} from '@angular/core';\nimport { type ControlValueAccessor, NG_VALUE_ACCESSOR, NgControl, NgModel } from '@angular/forms';\nimport { BrnFieldControl } from '@spartan-ng/brain/field';\nimport { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';\nimport type { BrnSliderRange } from './brn-slider-range';\nimport type { BrnSliderThumb } from './brn-slider-thumb';\nimport type { BrnSliderTrack } from './brn-slider-track';\nimport { provideBrnSlider } from './brn-slider.token';\n\nexport const BRN_SLIDER_VALUE_ACCESSOR = {\n\tprovide: NG_VALUE_ACCESSOR,\n\tuseExisting: forwardRef(() => BrnSlider),\n\tmulti: true,\n};\n\nlet nextId = 0;\n\n@Directive({\n\tselector: '[brnSlider]',\n\texportAs: 'brnSlider',\n\tproviders: [BRN_SLIDER_VALUE_ACCESSOR, provideBrnSlider(BrnSlider)],\n\thostDirectives: [BrnFieldControl],\n\thost: {\n\t\t'[attr.id]': 'id()',\n\t\t'[attr.dir]': '_direction()',\n\t\t'[attr.aria-disabled]': 'mutableDisabled() ? \"true\" : null',\n\t\t'[attr.data-disabled]': 'mutableDisabled() ? \"\" : null',\n\t\t'[attr.data-inverted]': 'inverted() ? \"\" : null',\n\t\t'[attr.data-orientation]': 'orientation()',\n\t\t'data-slot': 'slider',\n\t\t'(focusout)': '_onFocusOut($event)',\n\t\t'[attr.aria-invalid]': '_ariaInvalid() ? \"true\" : null',\n\t\t'[attr.data-invalid]': '_ariaInvalid() ? \"true\" : null',\n\t\t'[attr.data-matches-spartan-invalid]': '_ariaInvalid() ? \"true\" : null',\n\t\t'[attr.data-dirty]': '_dirty() ? \"true\" : null',\n\t\t'[attr.data-touched]': '_touched() ? \"true\" : null',\n\t},\n})\nexport class BrnSlider implements ControlValueAccessor, OnInit {\n\tprivate readonly _dir = inject(Directionality);\n\tprivate readonly _injector = inject(Injector);\n\tprivate readonly _fieldControl = inject(BrnFieldControl);\n\tpublic ngControl: NgControl | null = null;\n\n\tprotected readonly _ariaInvalid = this._fieldControl.invalid;\n\tprotected readonly _dirty = this._fieldControl.dirty;\n\tprotected readonly _touched = this._fieldControl.touched;\n\tprotected readonly _spartanInvalid = this._fieldControl.spartanInvalid;\n\n\t/** Unique identifier for the slider element. Auto-generated if not provided. */\n\tpublic readonly id = input<string>(`brn-slider-${++nextId}`);\n\n\t/** Accessibility label for the slider. Forwarded to all thumbs. */\n\tpublic readonly ariaLabel = input<string | null>(null, { alias: 'aria-label' });\n\n\t/** ID of the element that labels this slider for accessibility. Forwarded to all thumbs. */\n\tpublic readonly ariaLabelledby = input<string | null>(null, { alias: 'aria-labelledby' });\n\n\t/**\n\t * The current slider value(s).\n\t *\n\t * For single-thumb sliders, this contains one value.\n\t * For range sliders, values are kept sorted in ascending order.\n\t */\n\tpublic readonly valueInput = input<number[]>([], { alias: 'value' });\n\tpublic readonly value = linkedSignal(this.valueInput);\n\n\t/** Minimum allowed slider value. */\n\tpublic readonly min = input<number, NumberInput>(0, {\n\t\ttransform: numberAttribute,\n\t});\n\n\t/** Maximum allowed slider value. */\n\tpublic readonly max = input<number, NumberInput>(100, {\n\t\ttransform: numberAttribute,\n\t});\n\n\t/** Step increment used when changing values. */\n\tpublic readonly step = input<number, NumberInput>(1, {\n\t\ttransform: numberAttribute,\n\t});\n\n\t/** Minimum number of steps required between thumbs in a range slider. */\n\tpublic readonly minStepsBetweenThumbs = input<number, NumberInput>(0, {\n\t\ttransform: numberAttribute,\n\t});\n\n\t/** Maximum number of steps allowed between thumbs in a range slider. */\n\tpublic readonly maxStepsBetweenThumbs = input<number, NumberInput>(Number.POSITIVE_INFINITY, {\n\t\ttransform: numberAttribute,\n\t});\n\n\t/** Whether a thumb is prevented from being dragged past its neighbouring thumbs in a range slider. */\n\tpublic readonly preventStepOverThumb = input<boolean, BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\n\t/** Whether the slider is disabled. */\n\tpublic readonly disabled = input<boolean, BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\n\t/** Whether the slider direction is inverted. */\n\tpublic readonly inverted = input<boolean, BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\n\t/** Slider orientation. */\n\tpublic readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n\n\t/** Whether tick marks should be displayed. */\n\tpublic readonly showTicks = input<boolean, BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\n\t/** Maximum number of ticks to render. Excess ticks are evenly distributed. */\n\tpublic readonly maxTicks = input<number, NumberInput>(25, {\n\t\ttransform: numberAttribute,\n\t});\n\n\t/** Interval at which tick labels are shown. A value of `2` shows a label every second tick. */\n\tpublic readonly tickLabelInterval = input<number, NumberInput>(2, {\n\t\ttransform: numberAttribute,\n\t});\n\n\t/** Defines how the tick should be displayed in the UI. */\n\tpublic readonly formatTick = input<(tick: number) => string>((tick) => tick.toString());\n\n\t/** Whether dragging the selected range should move all thumbs together. */\n\tpublic readonly draggableRange = input<boolean, BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\n\t/** Whether only dragging the range should work (overrides normal track clicks). */\n\tpublic readonly draggableRangeOnly = input<boolean, BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\n\t/** Emits when the value changes. */\n\tpublic readonly valueChange = output<number[]>();\n\n\t/** @internal Normalized slider values. Values are clamped to `[min, max]` and sorted in ascending order. */\n\tpublic readonly normalizedValue = computed(\n\t\t() => [...this.value()].sort((a, b) => a - b).map((v) => clamp(v, [this.min(), this.max()])),\n\t\t{ equal: areArrsEqual },\n\t);\n\n\t/** Indexes for all active thumbs. */\n\tpublic readonly thumbIndexes = computed(() => Array.from({ length: this.normalizedValue().length }, (_, i) => i), {\n\t\tequal: (a, b) => a.length === b.length,\n\t});\n\n\t/** @internal Whether the slider is in range mode and draggable range is enabled */\n\tpublic readonly isDraggableRange = computed(() => this.draggableRange() && this.normalizedValue().length > 1);\n\n\t/** @internal Whether dragging should only move the range. */\n\tpublic readonly isDraggableRangeOnly = computed(() => this.draggableRangeOnly() && this.isDraggableRange());\n\n\tprotected readonly _direction = this._dir.valueSignal;\n\n\t/** @internal Logical edge from which the slider value increases. */\n\tpublic readonly slidingSource = computed<'top' | 'bottom' | 'left' | 'right'>(() => {\n\t\tconst orientation = this.orientation();\n\t\tconst inverted = this.inverted();\n\n\t\tif (orientation === 'vertical') {\n\t\t\treturn inverted ? 'top' : 'bottom';\n\t\t}\n\n\t\tconst isLtr = this._direction() === 'ltr';\n\t\tconst fromLeft = (isLtr && !inverted) || (!isLtr && inverted);\n\n\t\treturn fromLeft ? 'left' : 'right';\n\t});\n\n\t/** @internal */\n\tpublic readonly isHorizontal = computed(() => this.orientation() === 'horizontal');\n\n\t/** @internal Reference to the slider track instance. */\n\tpublic readonly track = signal<BrnSliderTrack | null>(null);\n\n\t/** @internal Reference to the slider range instance. */\n\tpublic readonly range = signal<BrnSliderRange | null>(null);\n\n\t/** @internal All registered slider thumbs. */\n\tpublic readonly thumbs = signal<BrnSliderThumb[]>([]);\n\n\t/** @internal Index of the thumb currently being updated. */\n\tpublic readonly valueIndexToChange = signal(0);\n\n\t/** @internal Visible tick values after applying density reduction. */\n\tpublic readonly ticks = computed(() => {\n\t\tif (!this.showTicks()) {\n\t\t\treturn [];\n\t\t}\n\n\t\tconst min = this.min();\n\t\tconst max = this.max();\n\t\tconst step = this.step();\n\t\tconst maxTicks = this.maxTicks();\n\n\t\tif (step <= 0 || min > max) {\n\t\t\treturn [];\n\t\t}\n\n\t\tconst totalCount = Math.floor((max - min) / step) + 1;\n\n\t\t// No need to reduce\n\t\tif (totalCount <= maxTicks) {\n\t\t\treturn Array.from({ length: totalCount }, (_, i) => min + i * step);\n\t\t}\n\n\t\tconst stride = Math.ceil(totalCount / maxTicks);\n\n\t\treturn Array.from({ length: totalCount }, (_, i) => min + i * step).filter((_, index) => index % stride === 0);\n\t});\n\n\t/** @internal Disabled state that can be controlled internally or externally. */\n\tpublic readonly mutableDisabled = linkedSignal(() => this.disabled());\n\n\t/** @internal Store the on change callback */\n\tprivate _onChange?: ChangeFn<number[]>;\n\n\t/** @internal Store the on touched callback */\n\tprivate _onTouched?: TouchFn;\n\n\tngOnInit(): void {\n\t\tthis.ngControl = this._injector.get(NgControl, null);\n\n\t\t// If bound to an Angular form control, writeValue() will run after ngOnInit,\n\t\t// so avoid initializing defaults here to prevent a transient min-value override.\n\t\tif (!this.ngControl) {\n\t\t\tif (!this.value().length) {\n\t\t\t\tconst defaultValue = [this.min()];\n\t\t\t\tthis.value.set(defaultValue);\n\t\t\t}\n\n\t\t\tconst normalizedValue = this.value()\n\t\t\t\t.map((v) => clamp(v, [this.min(), this.max()]))\n\t\t\t\t.sort((a, b) => a - b);\n\n\t\t\tif (!areArrsEqual(normalizedValue, this.value())) {\n\t\t\t\tthis.value.set(normalizedValue);\n\t\t\t}\n\t\t}\n\t}\n\n\tregisterOnChange(fn: (value: number[]) => void): void {\n\t\tthis._onChange = fn;\n\t}\n\n\tregisterOnTouched(fn: () => void): void {\n\t\tthis._onTouched = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.mutableDisabled.set(isDisabled);\n\t}\n\n\twriteValue(value: number[]): void {\n\t\tif (!Array.isArray(value)) return;\n\n\t\tif (this.ngControl instanceof NgModel && !this._onChange) {\n\t\t\t// Avoid phantom call for ngModel\n\t\t\t// https://github.com/angular/angular/issues/14988#issuecomment-2946355465\n\t\t\treturn;\n\t\t}\n\n\t\tconst newValue = [...value].sort((a, b) => a - b).map((v) => clamp(v, [this.min(), this.max()]));\n\t\tthis.value.set(newValue);\n\t}\n\n\t/** Sets a new value for the slider at the given thumb index. */\n\tsetValue(value: number, atIndex: number): void {\n\t\tconst decimalCount = getDecimalCount(this.step());\n\t\tconst snapToStep = roundValue(\n\t\t\tMath.round((value - this.min()) / this.step()) * this.step() + this.min(),\n\t\t\tdecimalCount,\n\t\t);\n\n\t\tvalue = clamp(snapToStep, [this.min(), this.max()]);\n\n\t\tconst currentValue = this.normalizedValue();\n\n\t\tif (this.preventStepOverThumb() && currentValue.length > 1) {\n\t\t\tconst gap = this.minStepsBetweenThumbs() * this.step();\n\t\t\tconst lowerBound = atIndex > 0 ? Math.max(this.min(), currentValue[atIndex - 1] + gap) : this.min();\n\t\t\tconst upperBound =\n\t\t\t\tatIndex < currentValue.length - 1 ? Math.min(this.max(), currentValue[atIndex + 1] - gap) : this.max();\n\t\t\tvalue = clamp(value, [lowerBound, upperBound]);\n\t\t}\n\n\t\tconst newValue = [...currentValue];\n\t\tnewValue[atIndex] = value;\n\t\tnewValue.sort((a, b) => a - b);\n\n\t\tlet newValIndex = 0;\n\t\tfor (let i = 0; i < newValue.length; i++) {\n\t\t\tif (newValue[i] < value || (newValue[i] === value && i < atIndex)) {\n\t\t\t\tnewValIndex = i + 1;\n\t\t\t}\n\t\t}\n\n\t\t// Only validate the gaps adjacent to the moved thumb so that a state which already\n\t\t// violates the constraint (e.g. set programmatically via a form control) can still be\n\t\t// brought back into compliance by dragging.\n\t\tif (!isGapAtIndexWithinBounds(newValue, newValIndex, this.minStepsBetweenThumbs() * this.step(), true)) return;\n\n\t\tif (!isGapAtIndexWithinBounds(newValue, newValIndex, this.maxStepsBetweenThumbs() * this.step(), false)) return;\n\n\t\tthis.valueIndexToChange.set(newValIndex);\n\n\t\tif (areArrsEqual(newValue, this.value())) return;\n\n\t\tthis.value.set(newValue);\n\t\tthis._onChange?.(newValue);\n\t\tthis.valueChange.emit(newValue);\n\n\t\tif (this.thumbs()[newValIndex]) {\n\t\t\tthis.thumbs()[newValIndex].elementRef.nativeElement.focus();\n\t\t}\n\t}\n\n\t/** Moves the entire range by a delta value, snapping to step and preserving spacing. */\n\tsetAllValuesByDelta(delta: number): void {\n\t\tconst current = this.normalizedValue();\n\t\tif (!current.length || delta === 0) return;\n\n\t\tconst min = this.min();\n\t\tconst max = this.max();\n\t\tconst step = this.step();\n\t\tconst decimalCount = getDecimalCount(step);\n\n\t\tconst snappedDelta = roundValue(Math.round(delta / step) * step, decimalCount);\n\t\tif (snappedDelta === 0) return;\n\n\t\tlet next = current.map((v) => v + snappedDelta);\n\n\t\tconst rangeMin = Math.min(...next);\n\t\tconst rangeMax = Math.max(...next);\n\n\t\tif (rangeMin < min) {\n\t\t\tconst offset = min - rangeMin;\n\t\t\tnext = next.map((v) => v + offset);\n\t\t} else if (rangeMax > max) {\n\t\t\tconst offset = max - rangeMax;\n\t\t\tnext = next.map((v) => v + offset);\n\t\t}\n\n\t\tnext = next.map((v) => roundValue(v, decimalCount));\n\n\t\tif (areArrsEqual(next, this.value())) return;\n\n\t\tthis.value.set(next);\n\t\tthis._onChange?.(next);\n\t\tthis.valueChange.emit(next);\n\t}\n\n\t/** @internal */\n\taddThumb(thumb: BrnSliderThumb): void {\n\t\tthis.thumbs.update((thumbs) => {\n\t\t\tthumbs.push(thumb);\n\t\t\treturn [...thumbs];\n\t\t});\n\t}\n\n\t/** @internal */\n\tremoveThumb(thumb: BrnSliderThumb): void {\n\t\tthis.thumbs.update((thumbs) => thumbs.filter((t) => t !== thumb));\n\t}\n\n\tprotected _onFocusOut(event: FocusEvent): void {\n\t\tconst currentTarget = event.currentTarget as HTMLElement;\n\t\tconst focusedEl = event.relatedTarget as HTMLElement | null;\n\n\t\tif (!currentTarget.contains(focusedEl)) {\n\t\t\tthis._onTouched?.();\n\t\t}\n\t}\n}\n\nfunction areArrsEqual(arr1: unknown[], arr2: unknown[]): boolean {\n\treturn String(arr1) === String(arr2);\n}\n\nfunction roundValue(value: number, decimalCount: number): number {\n\tconst rounder = Math.pow(10, decimalCount);\n\treturn Math.round(value * rounder) / rounder;\n}\n\nfunction getDecimalCount(value: number): number {\n\treturn (String(value).split('.')[1] || '').length;\n}\n\nfunction clamp(value: number, [min, max]: [number, number]): number {\n\treturn Math.min(max, Math.max(min, value));\n}\n\n/**\n * Validates only the gaps immediately adjacent to `index`.\n *\n * Checking a single gap (instead of every gap) keeps the slider usable when its initial state\n * already violates the constraint: the unchanged gaps are ignored, so the user can gradually drag\n * the thumbs back into compliance.\n *\n * @param isMin When `true`, the adjacent gaps must be `>= bound`; otherwise they must be `<= bound`.\n */\nfunction isGapAtIndexWithinBounds(values: number[], index: number, bound: number, isMin: boolean): boolean {\n\tif (isMin ? bound <= 0 : !Number.isFinite(bound)) {\n\t\treturn true;\n\t}\n\n\tconst leftGap = index > 0 ? values[index] - values[index - 1] : undefined;\n\tconst rightGap = index < values.length - 1 ? values[index + 1] - values[index] : undefined;\n\n\tfor (const gap of [leftGap, rightGap]) {\n\t\tif (gap === undefined) continue;\n\t\tif (isMin ? gap < bound : gap > bound) return false;\n\t}\n\n\treturn true;\n}\n","import { computed, Directive, ElementRef, inject } from '@angular/core';\nimport { injectBrnSlider } from './brn-slider.token';\n\n@Directive({\n\tselector: '[brnSliderRange]',\n\thost: {\n\t\t'[attr.data-disabled]': '_slider.mutableDisabled() ? \"\" : null',\n\t\t'[attr.data-orientation]': '_slider.orientation()',\n\t\t'[attr.data-draggable-range]': '_slider.isDraggableRange() ? \"\" : null',\n\t\t'data-slot': 'slider-range',\n\t\t'[style.inset-inline]': '_slider.isHorizontal() ? _rangeInset() : undefined',\n\t\t'[style.inset-block]': '!_slider.isHorizontal() ? _rangeInset() : undefined',\n\t},\n})\nexport class BrnSliderRange {\n\tprotected readonly _slider = injectBrnSlider();\n\tpublic readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n\tconstructor() {\n\t\tthis._slider.range.set(this);\n\t}\n\n\tprotected readonly _rangeInset = computed(() => {\n\t\tconst thumbs = this._slider.thumbs();\n\t\tif (!thumbs.length) return;\n\n\t\tconst inverted = this._slider.inverted();\n\t\tconst isHorizontal = this._slider.isHorizontal();\n\n\t\tconst start = thumbs[0].percentage();\n\t\tconst end = thumbs[thumbs.length - 1].percentage();\n\n\t\tconst inset = thumbs.length > 1 ? [`${start}%`, `${100 - end}%`] : ['0px', `${100 - start}%`];\n\n\t\tif (!isHorizontal) {\n\t\t\tinset.reverse();\n\t\t}\n\n\t\tif (inverted) {\n\t\t\tinset.reverse();\n\t\t}\n\n\t\treturn inset.join(' ');\n\t});\n}\n","export function linearScale(\n\tinput: readonly [number, number],\n\toutput: readonly [number, number],\n): (value: number) => number {\n\treturn (value: number) => {\n\t\tif (input[0] === input[1] || output[0] === output[1]) return output[0];\n\t\tconst ratio = (output[1] - output[0]) / (input[1] - input[0]);\n\t\treturn output[0] + ratio * (value - input[0]);\n\t};\n}\n","import { isPlatformServer } from '@angular/common';\nimport { computed, DestroyRef, Directive, ElementRef, inject, PLATFORM_ID } from '@angular/core';\nimport { injectElementSize } from '@spartan-ng/brain/core';\nimport { injectBrnSlider } from './brn-slider.token';\nimport { linearScale } from './utils/linear-scale';\n\nconst PAGE_KEYS = ['PageUp', 'PageDown'];\n\n@Directive({\n\tselector: '[brnSliderThumb]',\n\thost: {\n\t\trole: 'slider',\n\t\t'[attr.aria-label]': `_computedAriaLabel()`,\n\t\t'[attr.aria-labelledby]': '_slider.ariaLabelledby() || null',\n\t\t'[attr.aria-orientation]': '_slider.orientation()',\n\t\t'[attr.aria-valuenow]': '_slider.normalizedValue()[_index()]',\n\t\t'[attr.aria-valuemin]': '_slider.min()',\n\t\t'[attr.aria-valuemax]': '_slider.max()',\n\t\t'[attr.tabindex]': '_slider.mutableDisabled() ? -1 : 0',\n\t\t'[attr.data-disabled]': '_slider.mutableDisabled() ? \"\" : null',\n\t\t'[attr.data-orientation]': '_slider.orientation()',\n\t\t'[style.inset-inline-start]':\n\t\t\t'_slider.isHorizontal() ? _slider.inverted() ? undefined : _thumbOffset() : undefined',\n\t\t'[style.inset-inline-end]': '_slider.isHorizontal() ? _slider.inverted() ? _thumbOffset() : undefined : undefined',\n\t\t'[style.inset-block-end]': '!_slider.isHorizontal() ? _slider.inverted() ? undefined : _thumbOffset() : undefined',\n\t\t'[style.inset-block-start]':\n\t\t\t'!_slider.isHorizontal() ? _slider.inverted() ? _thumbOffset() : undefined : undefined',\n\t\t'[style.visibility]': '_thumbReady() ? undefined : \"hidden\"',\n\t\t'[style.pointer-events]': '_thumbReady() ? undefined : \"none\"',\n\t\t'[style.transform]': '_transformValue()',\n\t\t'data-slot': 'slider-thumb',\n\t\t'(pointerdown)': '_onPointerDown($event)',\n\t\t'(pointermove)': '_onPointerMove($event)',\n\t\t'(pointerup)': '_onPointerUp($event)',\n\t\t'(keydown)': 'handleKeydown($event)',\n\t},\n})\nexport class BrnSliderThumb {\n\tprivate readonly _platform = inject(PLATFORM_ID);\n\tprivate readonly _destroyRef = inject(DestroyRef);\n\tprivate readonly _size = injectElementSize();\n\tprotected readonly _slider = injectBrnSlider();\n\tpublic readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n\t/**\n\t * Indicates whether the thumb is ready to be displayed and interactable.\n\t *\n\t * This signal returns `true` when the element's size has been measured\n\t * and the width is greater than 0. It ensures that the thumb is not\n\t * rendered or interacted with prematurely, which prevents layout\n\t * issues or first-frame “jerks” when using SSR.\n\t */\n\tprotected readonly _thumbReady = computed(() => {\n\t\tconst size = this._size();\n\t\treturn !!size && size.width > 0;\n\t});\n\n\tprotected readonly _index = computed(() => this._slider.thumbs().findIndex((thumb) => thumb === this));\n\n\tpublic readonly percentage = computed(() => {\n\t\tconst range = this._slider.max() - this._slider.min();\n\t\tif (range === 0) return 0;\n\n\t\treturn ((this._slider.normalizedValue()[this._index()] - this._slider.min()) / range) * 100;\n\t});\n\n\tprivate readonly _thumbInBoundsOffset = computed(() => {\n\t\t// we can't compute the offset on the server\n\t\tif (isPlatformServer(this._platform)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tconst size = this._slider.isHorizontal() ? this._size()?.width : this._size()?.height;\n\t\tif (!size) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tconst halfSize = size / 2;\n\t\tconst offset = linearScale([0, 50], [0, halfSize]);\n\t\tconst direction = this._slider.slidingSource() === 'left' || this._slider.slidingSource() === 'top' ? 1 : -1;\n\n\t\treturn (halfSize - offset(this.percentage()) * direction) * direction;\n\t});\n\n\t/**\n\t * Offsets the thumb centre point while sliding to ensure it remains\n\t * within the bounds of the slider when reaching the edges.\n\t * Based on https://github.com/radix-ui/primitives/blob/main/packages/react/slider/src/slider.tsx\n\t */\n\tprotected readonly _thumbOffset = computed(() => {\n\t\t// we can't compute the offset on the server\n\t\tif (isPlatformServer(this._platform)) {\n\t\t\treturn this.percentage() + '%';\n\t\t}\n\n\t\treturn `calc(${this.percentage()}% + ${this._thumbInBoundsOffset()}px)`;\n\t});\n\n\tprotected readonly _computedAriaLabel = computed(\n\t\t() => this._slider.ariaLabel() || `Value ${this._index() + 1} of ${this._slider.normalizedValue().length}`,\n\t);\n\n\tprotected readonly _transformValue = computed(() =>\n\t\tthis._slider.orientation() === 'horizontal' ? 'translateX(-50%)' : 'translateY(-50%)',\n\t);\n\n\tconstructor() {\n\t\tthis._slider.addThumb(this);\n\n\t\tthis._destroyRef.onDestroy(() => {\n\t\t\tthis._slider.removeThumb(this);\n\t\t});\n\t}\n\n\tprotected _onPointerDown(event: PointerEvent): void {\n\t\tthis._slider.track()?.onPointerDown(event);\n\t}\n\n\tprotected _onPointerMove(event: PointerEvent): void {\n\t\tthis._slider.track()?.onPointerMove(event);\n\t}\n\n\tprotected _onPointerUp(event: PointerEvent): void {\n\t\tthis._slider.track()?.onPointerUp(event);\n\t}\n\n\tprotected handleKeydown(event: KeyboardEvent): void {\n\t\tif (this._slider.mutableDisabled()) return;\n\n\t\tconst step = this._slider.step();\n\t\tconst min = this._slider.min();\n\t\tconst max = this._slider.max();\n\t\tconst multiplier = event.shiftKey || PAGE_KEYS.includes(event.key) ? 10 : 1;\n\n\t\t// Determine delta based on slider orientation\n\t\tconst dirLR = this._slider.slidingSource() === 'right' ? -1 : 1;\n\t\tconst dirUD = this._slider.slidingSource() === 'top' ? -1 : 1;\n\n\t\tconst deltas: Partial<Record<string, number>> = {\n\t\t\tArrowLeft: -step * multiplier * dirLR,\n\t\t\tArrowRight: step * multiplier * dirLR,\n\t\t\tArrowUp: step * multiplier * dirUD,\n\t\t\tArrowDown: -step * multiplier * dirUD,\n\t\t\tPageUp: step * multiplier,\n\t\t\tPageDown: -step * multiplier,\n\t\t};\n\n\t\t// Home/End keys\n\t\tif (event.key === 'Home') {\n\t\t\tif (this._slider.isDraggableRangeOnly()) {\n\t\t\t\tconst range = this._slider.normalizedValue();\n\t\t\t\tconst delta = min - range[0];\n\t\t\t\tthis._slider.setAllValuesByDelta(delta);\n\t\t\t} else {\n\t\t\t\tthis._slider.setValue(min, this._index());\n\t\t\t}\n\t\t\tevent.preventDefault();\n\t\t\treturn;\n\t\t}\n\n\t\tif (event.key === 'End') {\n\t\t\tif (this._slider.isDraggableRangeOnly()) {\n\t\t\t\tconst range = this._slider.normalizedValue();\n\t\t\t\tconst delta = max - range[range.length - 1];\n\t\t\t\tthis._slider.setAllValuesByDelta(delta);\n\t\t\t} else {\n\t\t\t\tthis._slider.setValue(max, this._index());\n\t\t\t}\n\t\t\tevent.preventDefault();\n\t\t\treturn;\n\t\t}\n\n\t\tconst delta = deltas[event.key];\n\t\tif (delta === undefined) return;\n\n\t\tif (this._slider.isDraggableRangeOnly()) {\n\t\t\tthis._slider.setAllValuesByDelta(delta);\n\t\t} else {\n\t\t\tconst index = this._index();\n\t\t\tconst value = this._slider.normalizedValue()[index];\n\t\t\tthis._slider.setValue(Math.min(max, Math.max(min, value + delta)), index);\n\t\t}\n\n\t\tevent.preventDefault();\n\t}\n}\n","import {\n\tDestroyRef,\n\tDirective,\n\teffect,\n\ttype EmbeddedViewRef,\n\tinject,\n\tRenderer2,\n\tTemplateRef,\n\tViewContainerRef,\n} from '@angular/core';\nimport { injectBrnSlider } from './brn-slider.token';\n\n@Directive({\n\tselector: '[brnSliderTick]',\n\thost: {\n\t\t'data-slot': 'slider-tick',\n\t},\n})\nexport class BrnSliderTick {\n\tprivate readonly _slider = injectBrnSlider();\n\tprivate readonly _templateRef = inject<TemplateRef<BrnSliderTickContext>>(TemplateRef);\n\tprivate readonly _renderer = inject(Renderer2);\n\tprivate readonly _viewContainer = inject(ViewContainerRef);\n\tprivate readonly _destroyRef = inject(DestroyRef);\n\tprivate _ticks: EmbeddedViewRef<BrnSliderTickContext>[] = [];\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst ticks = this._slider.ticks();\n\t\t\tconst tickLabelInterval = this._slider.tickLabelInterval();\n\n\t\t\t// Remove any existing ticks\n\t\t\tthis._ticks.forEach((tick) => this._viewContainer.remove(this._viewContainer.indexOf(tick)));\n\n\t\t\t// Create new ticks\n\t\t\tthis._ticks = [];\n\n\t\t\tticks.forEach((tick, index) => {\n\t\t\t\tconst view = this._viewContainer.createEmbeddedView(this._templateRef, {\n\t\t\t\t\t$implicit: tick,\n\t\t\t\t\tindex,\n\t\t\t\t\tformattedTick: this._slider.formatTick()(tick),\n\t\t\t\t});\n\n\t\t\t\tconst tickEl = view.rootNodes[0] as HTMLElement;\n\t\t\t\tif (tickLabelInterval === 0 || index % tickLabelInterval !== 0) {\n\t\t\t\t\tthis._renderer.setAttribute(tickEl, 'data-skip', '');\n\t\t\t\t}\n\n\t\t\t\tthis._ticks.push(view);\n\t\t\t});\n\t\t});\n\n\t\tthis._destroyRef.onDestroy(() => {\n\t\t\tthis._ticks.forEach((tick) => this._viewContainer.remove(this._viewContainer.indexOf(tick)));\n\t\t});\n\t}\n}\n\nexport interface BrnSliderTickContext {\n\t$implicit: number;\n\tindex: number;\n\tformattedTick: string;\n}\n","import { type ExistingProvider, inject, InjectionToken, type Type } from '@angular/core';\nimport type { BrnSliderTrack } from './brn-slider-track';\n\nexport const BrnSliderTrackToken = new InjectionToken<BrnSliderTrack>('BrnSliderTrackToken');\n\nexport function provideBrnSliderTrack(slider: Type<BrnSliderTrack>): ExistingProvider {\n\treturn { provide: BrnSliderTrackToken, useExisting: slider };\n}\n\nexport function injectBrnSliderTrack(): BrnSliderTrack {\n\treturn inject(BrnSliderTrackToken);\n}\n","import { Directive, ElementRef, inject } from '@angular/core';\nimport { provideBrnSliderTrack } from './brn-slider-track.token';\nimport { injectBrnSlider } from './brn-slider.token';\nimport { linearScale } from './utils/linear-scale';\n\n@Directive({\n\tselector: '[brnSliderTrack]',\n\tproviders: [provideBrnSliderTrack(BrnSliderTrack)],\n\thost: {\n\t\t'[attr.data-disabled]': '_slider.mutableDisabled() ? \"\" : null',\n\t\t'[attr.data-orientation]': '_slider.orientation()',\n\t\t'data-slot': 'slider-track',\n\t\t'(pointerdown)': 'onPointerDown($event)',\n\t\t'(pointermove)': 'onPointerMove($event)',\n\t\t'(pointerup)': 'onPointerUp($event)',\n\t},\n})\nexport class BrnSliderTrack {\n\tprivate readonly _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\tprotected readonly _slider = injectBrnSlider();\n\n\tprivate _rangeDragStartPointer: number | null = null;\n\tprivate _rangeDragAccumulatedDelta = 0;\n\n\tconstructor() {\n\t\tthis._slider.track.set(this);\n\t}\n\n\tpublic onPointerDown(event: PointerEvent): void {\n\t\tif (this._slider.mutableDisabled()) return;\n\n\t\tconst target = event.target as HTMLElement;\n\t\tconst isTrack = this._isTrack(target);\n\n\t\t// Draggable range only: ignore empty track clicks\n\t\tif (isTrack && this._slider.isDraggableRangeOnly()) return;\n\n\t\ttarget.setPointerCapture(event.pointerId);\n\t\tconst isRange = this._isRange(target);\n\n\t\t// Prevent browser focus behaviour because we instead focus a thumb manually when values change.\n\t\tif (isTrack || isRange) event.preventDefault();\n\n\t\tif ((isRange && this._slider.isDraggableRange()) || this._slider.isDraggableRangeOnly()) {\n\t\t\tthis._rangeDragStartPointer = this._getPointerPosition(event);\n\t\t\treturn;\n\t\t}\n\n\t\tconst pointerPosition = this._getPointerPosition(event);\n\t\tconst value = this._getValueFromPointer(pointerPosition);\n\t\tconst closestIndex = getClosestValueIndex(this._slider.normalizedValue(), value);\n\n\t\tif (isTrack || isRange) {\n\t\t\tthis._slider.setValue(value, closestIndex);\n\t\t} else {\n\t\t\tthis._slider.valueIndexToChange.set(closestIndex);\n\t\t}\n\t}\n\n\tpublic onPointerMove(event: PointerEvent): void {\n\t\tif (this._slider.mutableDisabled()) return;\n\n\t\tconst target = event.target as HTMLElement;\n\t\tif (!target.hasPointerCapture(event.pointerId)) return;\n\n\t\tif (this._rangeDragStartPointer !== null && this._slider.isDraggableRange()) {\n\t\t\tconst currentPointer = this._getPointerPosition(event);\n\t\t\tconst pixelDelta = currentPointer - this._rangeDragStartPointer;\n\t\t\tconst valueDelta = this._pixelDeltaToValueDelta(pixelDelta);\n\n\t\t\t// Accumulate sub-step deltas\n\t\t\tthis._rangeDragAccumulatedDelta += valueDelta;\n\n\t\t\tconst step = this._slider.step();\n\t\t\tconst snappedDelta = Math.trunc(this._rangeDragAccumulatedDelta / step) * step;\n\n\t\t\tif (snappedDelta !== 0) {\n\t\t\t\tthis._slider.setAllValuesByDelta(snappedDelta);\n\n\t\t\t\t// Remove the applied delta, keep remainder\n\t\t\t\tthis._rangeDragAccumulatedDelta -= snappedDelta;\n\t\t\t}\n\n\t\t\t// Reset start pointer so delta stays incremental\n\t\t\tthis._rangeDragStartPointer = currentPointer;\n\t\t\treturn;\n\t\t}\n\n\t\tconst pointerPosition = this._getPointerPosition(event);\n\t\tconst value = this._getValueFromPointer(pointerPosition);\n\t\tthis._slider.setValue(value, this._slider.valueIndexToChange());\n\t}\n\n\tpublic onPointerUp(event: PointerEvent): void {\n\t\tconst target = event.target as HTMLElement;\n\n\t\tif (target.hasPointerCapture(event.pointerId)) {\n\t\t\ttarget.releasePointerCapture(event.pointerId);\n\t\t}\n\n\t\tthis._rangeDragStartPointer = null;\n\t\tthis._rangeDragAccumulatedDelta = 0;\n\t}\n\n\tprivate _getValueFromPointer(pointerPosition: number): number {\n\t\tconst rect = this._elementRef.nativeElement.getBoundingClientRect();\n\t\tconst source = this._slider.slidingSource();\n\n\t\tconst isVertical = source === 'top' || source === 'bottom';\n\t\tconst size = isVertical ? rect.height : rect.width;\n\n\t\tconst input: [number, number] = [0, size];\n\t\tconst output: [number, number] = [this._slider.min(), this._slider.max()];\n\t\tconst value = linearScale(input, output);\n\n\t\tlet relativePosition: number;\n\n\t\tswitch (source) {\n\t\t\tcase 'left':\n\t\t\t\trelativePosition = pointerPosition - rect.left;\n\t\t\t\tbreak;\n\t\t\tcase 'right':\n\t\t\t\trelativePosition = rect.right - pointerPosition;\n\t\t\t\tbreak;\n\t\t\tcase 'top':\n\t\t\t\trelativePosition = pointerPosition - rect.top;\n\t\t\t\tbreak;\n\t\t\tcase 'bottom':\n\t\t\t\trelativePosition = rect.bottom - pointerPosition;\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn value(relativePosition);\n\t}\n\n\tprivate _pixelDeltaToValueDelta(pixelDelta: number): number {\n\t\tconst rect = this._elementRef.nativeElement.getBoundingClientRect();\n\t\tconst size = this._slider.isHorizontal() ? rect.width : rect.height;\n\n\t\tconst scale = linearScale([0, size], [this._slider.min(), this._slider.max()]);\n\n\t\t// Determine direction multiplier based on sliding source\n\t\tlet direction = 1;\n\t\tswitch (this._slider.slidingSource()) {\n\t\t\tcase 'right':\n\t\t\tcase 'bottom':\n\t\t\t\tdirection = -1;\n\t\t\t\tbreak;\n\t\t\tcase 'left':\n\t\t\tcase 'top':\n\t\t\t\tdirection = 1;\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn scale(pixelDelta * direction) - scale(0);\n\t}\n\n\tprivate _isTrack(el: HTMLElement): boolean {\n\t\treturn this._elementRef.nativeElement === el;\n\t}\n\n\tprivate _isRange(el: HTMLElement): boolean {\n\t\treturn this._slider.range()?.elementRef.nativeElement === el;\n\t}\n\n\tprivate _getPointerPosition(event: PointerEvent): number {\n\t\treturn this._slider.orientation() === 'horizontal' ? event.clientX : event.clientY;\n\t}\n}\n\nfunction getClosestValueIndex(values: number[], nextValue: number): number {\n\tif (values.length === 1) return 0;\n\tconst distances = values.map((value) => Math.abs(value - nextValue));\n\tconst closestDistance = Math.min(...distances);\n\treturn distances.indexOf(closestDistance);\n}\n","import { BrnSlider } from './lib/brn-slider';\nimport { BrnSliderRange } from './lib/brn-slider-range';\nimport { BrnSliderThumb } from './lib/brn-slider-thumb';\nimport { BrnSliderTick } from './lib/brn-slider-tick';\nimport { BrnSliderTrack } from './lib/brn-slider-track';\n\nexport * from './lib/brn-slider';\nexport * from './lib/brn-slider-range';\nexport * from './lib/brn-slider-thumb';\nexport * from './lib/brn-slider-tick';\nexport * from './lib/brn-slider-track';\nexport * from './lib/brn-slider-track.token';\nexport * from './lib/brn-slider.token';\n\nexport const BrnSliderImports = [BrnSlider, BrnSliderTrack, BrnSliderThumb, BrnSliderRange, BrnSliderTick] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAGA,MAAM,cAAc,GAAG,IAAI,cAAc,CAAY,gBAAgB,CAAC;AAEhE,SAAU,gBAAgB,CAAC,MAAuB,EAAA;IACvD,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,EAAE;AACxD;SAEgB,eAAe,GAAA;AAC9B,IAAA,OAAO,MAAM,CAAC,cAAc,CAAC;AAC9B;;ACaO,MAAM,yBAAyB,GAAG;AACxC,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,WAAW,EAAE,UAAU,CAAC,MAAM,SAAS,CAAC;AACxC,IAAA,KAAK,EAAE,IAAI;;AAGZ,IAAI,MAAM,GAAG,CAAC;MAuBD,SAAS,CAAA;AACJ,IAAA,IAAI,GAAG,MAAM,CAAC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/lib/brn-slider.ts","../../../../libs/brain/slider/src/lib/brn-slider-range.ts","../../../../libs/brain/slider/src/lib/utils/linear-scale.ts","../../../../libs/brain/slider/src/lib/brn-slider-thumb.ts","../../../../libs/brain/slider/src/lib/brn-slider-tick.ts","../../../../libs/brain/slider/src/lib/brn-slider-track.token.ts","../../../../libs/brain/slider/src/lib/brn-slider-track.ts","../../../../libs/brain/slider/src/index.ts","../../../../libs/brain/slider/src/spartan-ng-brain-slider.ts"],"sourcesContent":["import { type ExistingProvider, inject, InjectionToken, type Type } from '@angular/core';\nimport type { BrnSlider } from './brn-slider';\n\nconst BrnSliderToken = new InjectionToken<BrnSlider>('BrnSliderToken');\n\nexport function provideBrnSlider(slider: Type<BrnSlider>): ExistingProvider {\n\treturn { provide: BrnSliderToken, useExisting: slider };\n}\n\nexport function injectBrnSlider(): BrnSlider {\n\treturn inject(BrnSliderToken);\n}\n","import { Directionality } from '@angular/cdk/bidi';\nimport type { BooleanInput, NumberInput } from '@angular/cdk/coercion';\nimport {\n\tbooleanAttribute,\n\tcomputed,\n\tDirective,\n\tforwardRef,\n\tinject,\n\tInjector,\n\tinput,\n\tlinkedSignal,\n\tnumberAttribute,\n\ttype OnInit,\n\toutput,\n\tsignal,\n} from '@angular/core';\nimport { type ControlValueAccessor, NG_VALUE_ACCESSOR, NgControl, NgModel } from '@angular/forms';\nimport { BrnFieldControl } from '@spartan-ng/brain/field';\nimport { ChangeFn, TouchFn } from '@spartan-ng/brain/forms';\nimport type { BrnSliderRange } from './brn-slider-range';\nimport type { BrnSliderThumb } from './brn-slider-thumb';\nimport type { BrnSliderTrack } from './brn-slider-track';\nimport { provideBrnSlider } from './brn-slider.token';\n\nexport const BRN_SLIDER_VALUE_ACCESSOR = {\n\tprovide: NG_VALUE_ACCESSOR,\n\tuseExisting: forwardRef(() => BrnSlider),\n\tmulti: true,\n};\n\nlet nextId = 0;\n\n@Directive({\n\tselector: '[brnSlider]',\n\texportAs: 'brnSlider',\n\tproviders: [BRN_SLIDER_VALUE_ACCESSOR, provideBrnSlider(BrnSlider)],\n\thostDirectives: [BrnFieldControl],\n\thost: {\n\t\t'[attr.id]': 'id()',\n\t\t'[attr.dir]': '_direction()',\n\t\t'[attr.aria-disabled]': 'mutableDisabled() ? \"true\" : null',\n\t\t'[attr.data-disabled]': 'mutableDisabled() ? \"\" : null',\n\t\t'[attr.data-inverted]': 'inverted() ? \"\" : null',\n\t\t'[attr.data-orientation]': 'orientation()',\n\t\t'data-slot': 'slider',\n\t\t'(focusout)': '_onFocusOut($event)',\n\t\t'[attr.aria-invalid]': '_ariaInvalid() ? \"true\" : null',\n\t\t'[attr.data-invalid]': '_ariaInvalid() ? \"true\" : null',\n\t\t'[attr.data-matches-spartan-invalid]': '_ariaInvalid() ? \"true\" : null',\n\t\t'[attr.data-dirty]': '_dirty() ? \"true\" : null',\n\t\t'[attr.data-touched]': '_touched() ? \"true\" : null',\n\t},\n})\nexport class BrnSlider implements ControlValueAccessor, OnInit {\n\tprivate readonly _dir = inject(Directionality);\n\tprivate readonly _injector = inject(Injector);\n\tprivate readonly _fieldControl = inject(BrnFieldControl);\n\tpublic ngControl: NgControl | null = null;\n\n\tprotected readonly _ariaInvalid = this._fieldControl.invalid;\n\tprotected readonly _dirty = this._fieldControl.dirty;\n\tprotected readonly _touched = this._fieldControl.touched;\n\tprotected readonly _spartanInvalid = this._fieldControl.spartanInvalid;\n\n\t/** Unique identifier for the slider element. Auto-generated if not provided. */\n\tpublic readonly id = input<string>(`brn-slider-${++nextId}`);\n\n\t/** Accessibility label for the slider. Forwarded to all thumbs. */\n\tpublic readonly ariaLabel = input<string | null>(null, { alias: 'aria-label' });\n\n\t/** ID of the element that labels this slider for accessibility. Forwarded to all thumbs. */\n\tpublic readonly ariaLabelledby = input<string | null>(null, { alias: 'aria-labelledby' });\n\n\t/**\n\t * The current slider value(s).\n\t *\n\t * For single-thumb sliders, this contains one value.\n\t * For range sliders, values are kept sorted in ascending order.\n\t */\n\tpublic readonly valueInput = input<number[]>([], { alias: 'value' });\n\tpublic readonly value = linkedSignal(this.valueInput);\n\n\t/** Minimum allowed slider value. */\n\tpublic readonly min = input<number, NumberInput>(0, {\n\t\ttransform: numberAttribute,\n\t});\n\n\t/** Maximum allowed slider value. */\n\tpublic readonly max = input<number, NumberInput>(100, {\n\t\ttransform: numberAttribute,\n\t});\n\n\t/** Step increment used when changing values. */\n\tpublic readonly step = input<number, NumberInput>(1, {\n\t\ttransform: numberAttribute,\n\t});\n\n\t/** Minimum number of steps required between thumbs in a range slider. */\n\tpublic readonly minStepsBetweenThumbs = input<number, NumberInput>(0, {\n\t\ttransform: numberAttribute,\n\t});\n\n\t/** Maximum number of steps allowed between thumbs in a range slider. */\n\tpublic readonly maxStepsBetweenThumbs = input<number, NumberInput>(Number.POSITIVE_INFINITY, {\n\t\ttransform: numberAttribute,\n\t});\n\n\t/** Whether a thumb is prevented from being dragged past its neighbouring thumbs in a range slider. */\n\tpublic readonly preventStepOverThumb = input<boolean, BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\n\t/** Whether the slider is disabled. */\n\tpublic readonly disabled = input<boolean, BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\n\t/** Whether the slider direction is inverted. */\n\tpublic readonly inverted = input<boolean, BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\n\t/** Slider orientation. */\n\tpublic readonly orientation = input<'horizontal' | 'vertical'>('horizontal');\n\n\t/** Whether tick marks should be displayed. */\n\tpublic readonly showTicks = input<boolean, BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\n\t/** Maximum number of ticks to render. Excess ticks are evenly distributed. */\n\tpublic readonly maxTicks = input<number, NumberInput>(25, {\n\t\ttransform: numberAttribute,\n\t});\n\n\t/** Interval at which tick labels are shown. A value of `2` shows a label every second tick. */\n\tpublic readonly tickLabelInterval = input<number, NumberInput>(2, {\n\t\ttransform: numberAttribute,\n\t});\n\n\t/** Defines how the tick should be displayed in the UI. */\n\tpublic readonly formatTick = input<(tick: number) => string>((tick) => tick.toString());\n\n\t/** Whether dragging the selected range should move all thumbs together. */\n\tpublic readonly draggableRange = input<boolean, BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\n\t/** Whether only dragging the range should work (overrides normal track clicks). */\n\tpublic readonly draggableRangeOnly = input<boolean, BooleanInput>(false, {\n\t\ttransform: booleanAttribute,\n\t});\n\n\t/** Emits when the value changes. */\n\tpublic readonly valueChange = output<number[]>();\n\n\t/** @internal Normalized slider values. Values are clamped to `[min, max]` and sorted in ascending order. */\n\tpublic readonly normalizedValue = computed(\n\t\t() => [...this.value()].sort((a, b) => a - b).map((v) => clamp(v, [this.min(), this.max()])),\n\t\t{ equal: areArrsEqual },\n\t);\n\n\t/** Indexes for all active thumbs. */\n\tpublic readonly thumbIndexes = computed(() => Array.from({ length: this.normalizedValue().length }, (_, i) => i), {\n\t\tequal: (a, b) => a.length === b.length,\n\t});\n\n\t/** @internal Whether the slider is in range mode and draggable range is enabled */\n\tpublic readonly isDraggableRange = computed(() => this.draggableRange() && this.normalizedValue().length > 1);\n\n\t/** @internal Whether dragging should only move the range. */\n\tpublic readonly isDraggableRangeOnly = computed(() => this.draggableRangeOnly() && this.isDraggableRange());\n\n\tprotected readonly _direction = this._dir.valueSignal;\n\n\t/** @internal Logical edge from which the slider value increases. */\n\tpublic readonly slidingSource = computed<'top' | 'bottom' | 'left' | 'right'>(() => {\n\t\tconst orientation = this.orientation();\n\t\tconst inverted = this.inverted();\n\n\t\tif (orientation === 'vertical') {\n\t\t\treturn inverted ? 'top' : 'bottom';\n\t\t}\n\n\t\tconst isLtr = this._direction() === 'ltr';\n\t\tconst fromLeft = (isLtr && !inverted) || (!isLtr && inverted);\n\n\t\treturn fromLeft ? 'left' : 'right';\n\t});\n\n\t/** @internal */\n\tpublic readonly isHorizontal = computed(() => this.orientation() === 'horizontal');\n\n\t/** @internal Reference to the slider track instance. */\n\tpublic readonly track = signal<BrnSliderTrack | null>(null);\n\n\t/** @internal Reference to the slider range instance. */\n\tpublic readonly range = signal<BrnSliderRange | null>(null);\n\n\t/** @internal All registered slider thumbs. */\n\tpublic readonly thumbs = signal<BrnSliderThumb[]>([]);\n\n\t/** @internal Index of the thumb currently being updated. */\n\tpublic readonly valueIndexToChange = signal(0);\n\n\t/** @internal Visible tick values after applying density reduction. */\n\tpublic readonly ticks = computed(() => {\n\t\tif (!this.showTicks()) {\n\t\t\treturn [];\n\t\t}\n\n\t\tconst min = this.min();\n\t\tconst max = this.max();\n\t\tconst step = this.step();\n\t\tconst maxTicks = this.maxTicks();\n\n\t\tif (step <= 0 || min > max) {\n\t\t\treturn [];\n\t\t}\n\n\t\tconst totalCount = Math.floor((max - min) / step) + 1;\n\n\t\t// No need to reduce\n\t\tif (totalCount <= maxTicks) {\n\t\t\treturn Array.from({ length: totalCount }, (_, i) => min + i * step);\n\t\t}\n\n\t\tconst stride = Math.ceil(totalCount / maxTicks);\n\n\t\treturn Array.from({ length: totalCount }, (_, i) => min + i * step).filter((_, index) => index % stride === 0);\n\t});\n\n\t/** @internal Disabled state that can be controlled internally or externally. */\n\tpublic readonly mutableDisabled = linkedSignal(() => this.disabled());\n\n\t/** @internal Store the on change callback */\n\tprivate _onChange?: ChangeFn<number[]>;\n\n\t/** @internal Store the on touched callback */\n\tprivate _onTouched?: TouchFn;\n\n\tngOnInit(): void {\n\t\tthis.ngControl = this._injector.get(NgControl, null);\n\n\t\t// If bound to an Angular form control, writeValue() will run after ngOnInit,\n\t\t// so avoid initializing defaults here to prevent a transient min-value override.\n\t\tif (!this.ngControl) {\n\t\t\tif (!this.value().length) {\n\t\t\t\tconst defaultValue = [this.min()];\n\t\t\t\tthis.value.set(defaultValue);\n\t\t\t}\n\n\t\t\tconst normalizedValue = this.value()\n\t\t\t\t.map((v) => clamp(v, [this.min(), this.max()]))\n\t\t\t\t.sort((a, b) => a - b);\n\n\t\t\tif (!areArrsEqual(normalizedValue, this.value())) {\n\t\t\t\tthis.value.set(normalizedValue);\n\t\t\t}\n\t\t}\n\t}\n\n\tregisterOnChange(fn: (value: number[]) => void): void {\n\t\tthis._onChange = fn;\n\t}\n\n\tregisterOnTouched(fn: () => void): void {\n\t\tthis._onTouched = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.mutableDisabled.set(isDisabled);\n\t}\n\n\twriteValue(value: number[]): void {\n\t\tif (!Array.isArray(value)) return;\n\n\t\tif (this.ngControl instanceof NgModel && !this._onChange) {\n\t\t\t// Avoid phantom call for ngModel\n\t\t\t// https://github.com/angular/angular/issues/14988#issuecomment-2946355465\n\t\t\treturn;\n\t\t}\n\n\t\tconst newValue = [...value].sort((a, b) => a - b).map((v) => clamp(v, [this.min(), this.max()]));\n\t\tthis.value.set(newValue);\n\t}\n\n\t/** Sets a new value for the slider at the given thumb index. */\n\tsetValue(value: number, atIndex: number): void {\n\t\tconst decimalCount = getDecimalCount(this.step());\n\t\tconst snapToStep = roundValue(\n\t\t\tMath.round((value - this.min()) / this.step()) * this.step() + this.min(),\n\t\t\tdecimalCount,\n\t\t);\n\n\t\tvalue = clamp(snapToStep, [this.min(), this.max()]);\n\n\t\tconst currentValue = this.normalizedValue();\n\n\t\tif (this.preventStepOverThumb() && currentValue.length > 1) {\n\t\t\tconst gap = this.minStepsBetweenThumbs() * this.step();\n\t\t\tconst lowerBound = atIndex > 0 ? Math.max(this.min(), currentValue[atIndex - 1] + gap) : this.min();\n\t\t\tconst upperBound =\n\t\t\t\tatIndex < currentValue.length - 1 ? Math.min(this.max(), currentValue[atIndex + 1] - gap) : this.max();\n\t\t\tvalue = clamp(value, [lowerBound, upperBound]);\n\t\t}\n\n\t\tconst newValue = [...currentValue];\n\t\tnewValue[atIndex] = value;\n\t\tnewValue.sort((a, b) => a - b);\n\n\t\tlet newValIndex = 0;\n\t\tfor (let i = 0; i < newValue.length; i++) {\n\t\t\tif (newValue[i] < value || (newValue[i] === value && i < atIndex)) {\n\t\t\t\tnewValIndex = i + 1;\n\t\t\t}\n\t\t}\n\n\t\t// Only validate the gaps adjacent to the moved thumb so that a state which already\n\t\t// violates the constraint (e.g. set programmatically via a form control) can still be\n\t\t// brought back into compliance by dragging.\n\t\tif (!isGapAtIndexWithinBounds(newValue, newValIndex, this.minStepsBetweenThumbs() * this.step(), true)) return;\n\n\t\tif (!isGapAtIndexWithinBounds(newValue, newValIndex, this.maxStepsBetweenThumbs() * this.step(), false)) return;\n\n\t\tthis.valueIndexToChange.set(newValIndex);\n\n\t\tif (areArrsEqual(newValue, this.value())) return;\n\n\t\tthis.value.set(newValue);\n\t\tthis._onChange?.(newValue);\n\t\tthis.valueChange.emit(newValue);\n\n\t\tif (this.thumbs()[newValIndex]) {\n\t\t\tthis.thumbs()[newValIndex].elementRef.nativeElement.focus();\n\t\t}\n\t}\n\n\t/** Moves the entire range by a delta value, snapping to step and preserving spacing. */\n\tsetAllValuesByDelta(delta: number): void {\n\t\tconst current = this.normalizedValue();\n\t\tif (!current.length || delta === 0) return;\n\n\t\tconst min = this.min();\n\t\tconst max = this.max();\n\t\tconst step = this.step();\n\t\tconst decimalCount = getDecimalCount(step);\n\n\t\tconst snappedDelta = roundValue(Math.round(delta / step) * step, decimalCount);\n\t\tif (snappedDelta === 0) return;\n\n\t\tlet next = current.map((v) => v + snappedDelta);\n\n\t\tconst rangeMin = Math.min(...next);\n\t\tconst rangeMax = Math.max(...next);\n\n\t\tif (rangeMin < min) {\n\t\t\tconst offset = min - rangeMin;\n\t\t\tnext = next.map((v) => v + offset);\n\t\t} else if (rangeMax > max) {\n\t\t\tconst offset = max - rangeMax;\n\t\t\tnext = next.map((v) => v + offset);\n\t\t}\n\n\t\tnext = next.map((v) => roundValue(v, decimalCount));\n\n\t\tif (areArrsEqual(next, this.value())) return;\n\n\t\tthis.value.set(next);\n\t\tthis._onChange?.(next);\n\t\tthis.valueChange.emit(next);\n\t}\n\n\t/** @internal */\n\taddThumb(thumb: BrnSliderThumb): void {\n\t\tthis.thumbs.update((thumbs) => {\n\t\t\tthumbs.push(thumb);\n\t\t\treturn [...thumbs];\n\t\t});\n\t}\n\n\t/** @internal */\n\tremoveThumb(thumb: BrnSliderThumb): void {\n\t\tthis.thumbs.update((thumbs) => thumbs.filter((t) => t !== thumb));\n\t}\n\n\tprotected _onFocusOut(event: FocusEvent): void {\n\t\tconst currentTarget = event.currentTarget as HTMLElement;\n\t\tconst focusedEl = event.relatedTarget as HTMLElement | null;\n\n\t\tif (!currentTarget.contains(focusedEl)) {\n\t\t\tthis._onTouched?.();\n\t\t}\n\t}\n}\n\nfunction areArrsEqual(arr1: unknown[], arr2: unknown[]): boolean {\n\treturn String(arr1) === String(arr2);\n}\n\nfunction roundValue(value: number, decimalCount: number): number {\n\tconst rounder = Math.pow(10, decimalCount);\n\treturn Math.round(value * rounder) / rounder;\n}\n\nfunction getDecimalCount(value: number): number {\n\treturn (String(value).split('.')[1] || '').length;\n}\n\nfunction clamp(value: number, [min, max]: [number, number]): number {\n\treturn Math.min(max, Math.max(min, value));\n}\n\n/**\n * Validates only the gaps immediately adjacent to `index`.\n *\n * Checking a single gap (instead of every gap) keeps the slider usable when its initial state\n * already violates the constraint: the unchanged gaps are ignored, so the user can gradually drag\n * the thumbs back into compliance.\n *\n * @param isMin When `true`, the adjacent gaps must be `>= bound`; otherwise they must be `<= bound`.\n */\nfunction isGapAtIndexWithinBounds(values: number[], index: number, bound: number, isMin: boolean): boolean {\n\tif (isMin ? bound <= 0 : !Number.isFinite(bound)) {\n\t\treturn true;\n\t}\n\n\tconst leftGap = index > 0 ? values[index] - values[index - 1] : undefined;\n\tconst rightGap = index < values.length - 1 ? values[index + 1] - values[index] : undefined;\n\n\tfor (const gap of [leftGap, rightGap]) {\n\t\tif (gap === undefined) continue;\n\t\tif (isMin ? gap < bound : gap > bound) return false;\n\t}\n\n\treturn true;\n}\n","import { computed, Directive, ElementRef, inject } from '@angular/core';\nimport { injectBrnSlider } from './brn-slider.token';\n\n@Directive({\n\tselector: '[brnSliderRange]',\n\texportAs: 'brnSliderRange',\n\thost: {\n\t\t'[attr.data-disabled]': '_slider.mutableDisabled() ? \"\" : null',\n\t\t'[attr.data-orientation]': '_slider.orientation()',\n\t\t'[attr.data-draggable-range]': '_slider.isDraggableRange() ? \"\" : null',\n\t\t'data-slot': 'slider-range',\n\t\t'[style.inset-inline]': '_slider.isHorizontal() ? _rangeInset() : undefined',\n\t\t'[style.inset-block]': '!_slider.isHorizontal() ? _rangeInset() : undefined',\n\t},\n})\nexport class BrnSliderRange {\n\tprotected readonly _slider = injectBrnSlider();\n\tpublic readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n\tconstructor() {\n\t\tthis._slider.range.set(this);\n\t}\n\n\tprotected readonly _rangeInset = computed(() => {\n\t\tconst thumbs = this._slider.thumbs();\n\t\tif (!thumbs.length) return;\n\n\t\tconst inverted = this._slider.inverted();\n\t\tconst isHorizontal = this._slider.isHorizontal();\n\n\t\tconst start = thumbs[0].percentage();\n\t\tconst end = thumbs[thumbs.length - 1].percentage();\n\n\t\tconst inset = thumbs.length > 1 ? [`${start}%`, `${100 - end}%`] : ['0px', `${100 - start}%`];\n\n\t\tif (!isHorizontal) {\n\t\t\tinset.reverse();\n\t\t}\n\n\t\tif (inverted) {\n\t\t\tinset.reverse();\n\t\t}\n\n\t\treturn inset.join(' ');\n\t});\n}\n","export function linearScale(\n\tinput: readonly [number, number],\n\toutput: readonly [number, number],\n): (value: number) => number {\n\treturn (value: number) => {\n\t\tif (input[0] === input[1] || output[0] === output[1]) return output[0];\n\t\tconst ratio = (output[1] - output[0]) / (input[1] - input[0]);\n\t\treturn output[0] + ratio * (value - input[0]);\n\t};\n}\n","import { isPlatformServer } from '@angular/common';\nimport { computed, DestroyRef, Directive, ElementRef, inject, PLATFORM_ID } from '@angular/core';\nimport { injectElementSize } from '@spartan-ng/brain/core';\nimport { injectBrnSlider } from './brn-slider.token';\nimport { linearScale } from './utils/linear-scale';\n\nconst PAGE_KEYS = ['PageUp', 'PageDown'];\n\n@Directive({\n\tselector: '[brnSliderThumb]',\n\texportAs: 'brnSliderThumb',\n\thost: {\n\t\trole: 'slider',\n\t\t'[attr.aria-label]': `_computedAriaLabel()`,\n\t\t'[attr.aria-labelledby]': '_slider.ariaLabelledby() || null',\n\t\t'[attr.aria-orientation]': '_slider.orientation()',\n\t\t'[attr.aria-valuenow]': '_slider.normalizedValue()[_index()]',\n\t\t'[attr.aria-valuemin]': '_slider.min()',\n\t\t'[attr.aria-valuemax]': '_slider.max()',\n\t\t'[attr.tabindex]': '_slider.mutableDisabled() ? -1 : 0',\n\t\t'[attr.data-disabled]': '_slider.mutableDisabled() ? \"\" : null',\n\t\t'[attr.data-orientation]': '_slider.orientation()',\n\t\t'[style.inset-inline-start]':\n\t\t\t'_slider.isHorizontal() ? _slider.inverted() ? undefined : _thumbOffset() : undefined',\n\t\t'[style.inset-inline-end]': '_slider.isHorizontal() ? _slider.inverted() ? _thumbOffset() : undefined : undefined',\n\t\t'[style.inset-block-end]': '!_slider.isHorizontal() ? _slider.inverted() ? undefined : _thumbOffset() : undefined',\n\t\t'[style.inset-block-start]':\n\t\t\t'!_slider.isHorizontal() ? _slider.inverted() ? _thumbOffset() : undefined : undefined',\n\t\t'[style.visibility]': '_thumbReady() ? undefined : \"hidden\"',\n\t\t'[style.pointer-events]': '_thumbReady() ? undefined : \"none\"',\n\t\t'[style.transform]': '_transformValue()',\n\t\t'data-slot': 'slider-thumb',\n\t\t'(pointerdown)': '_onPointerDown($event)',\n\t\t'(pointermove)': '_onPointerMove($event)',\n\t\t'(pointerup)': '_onPointerUp($event)',\n\t\t'(keydown)': 'handleKeydown($event)',\n\t},\n})\nexport class BrnSliderThumb {\n\tprivate readonly _platform = inject(PLATFORM_ID);\n\tprivate readonly _destroyRef = inject(DestroyRef);\n\tprivate readonly _size = injectElementSize();\n\tprotected readonly _slider = injectBrnSlider();\n\tpublic readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n\t/**\n\t * Indicates whether the thumb is ready to be displayed and interactable.\n\t *\n\t * This signal returns `true` when the element's size has been measured\n\t * and the width is greater than 0. It ensures that the thumb is not\n\t * rendered or interacted with prematurely, which prevents layout\n\t * issues or first-frame “jerks” when using SSR.\n\t */\n\tprotected readonly _thumbReady = computed(() => {\n\t\tconst size = this._size();\n\t\treturn !!size && size.width > 0;\n\t});\n\n\tprotected readonly _index = computed(() => this._slider.thumbs().findIndex((thumb) => thumb === this));\n\n\tpublic readonly percentage = computed(() => {\n\t\tconst range = this._slider.max() - this._slider.min();\n\t\tif (range === 0) return 0;\n\n\t\treturn ((this._slider.normalizedValue()[this._index()] - this._slider.min()) / range) * 100;\n\t});\n\n\tprivate readonly _thumbInBoundsOffset = computed(() => {\n\t\t// we can't compute the offset on the server\n\t\tif (isPlatformServer(this._platform)) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tconst size = this._slider.isHorizontal() ? this._size()?.width : this._size()?.height;\n\t\tif (!size) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tconst halfSize = size / 2;\n\t\tconst offset = linearScale([0, 50], [0, halfSize]);\n\t\tconst direction = this._slider.slidingSource() === 'left' || this._slider.slidingSource() === 'top' ? 1 : -1;\n\n\t\treturn (halfSize - offset(this.percentage()) * direction) * direction;\n\t});\n\n\t/**\n\t * Offsets the thumb centre point while sliding to ensure it remains\n\t * within the bounds of the slider when reaching the edges.\n\t * Based on https://github.com/radix-ui/primitives/blob/main/packages/react/slider/src/slider.tsx\n\t */\n\tprotected readonly _thumbOffset = computed(() => {\n\t\t// we can't compute the offset on the server\n\t\tif (isPlatformServer(this._platform)) {\n\t\t\treturn this.percentage() + '%';\n\t\t}\n\n\t\treturn `calc(${this.percentage()}% + ${this._thumbInBoundsOffset()}px)`;\n\t});\n\n\tprotected readonly _computedAriaLabel = computed(\n\t\t() => this._slider.ariaLabel() || `Value ${this._index() + 1} of ${this._slider.normalizedValue().length}`,\n\t);\n\n\tprotected readonly _transformValue = computed(() =>\n\t\tthis._slider.orientation() === 'horizontal' ? 'translateX(-50%)' : 'translateY(-50%)',\n\t);\n\n\tconstructor() {\n\t\tthis._slider.addThumb(this);\n\n\t\tthis._destroyRef.onDestroy(() => {\n\t\t\tthis._slider.removeThumb(this);\n\t\t});\n\t}\n\n\tprotected _onPointerDown(event: PointerEvent): void {\n\t\tthis._slider.track()?.onPointerDown(event);\n\t}\n\n\tprotected _onPointerMove(event: PointerEvent): void {\n\t\tthis._slider.track()?.onPointerMove(event);\n\t}\n\n\tprotected _onPointerUp(event: PointerEvent): void {\n\t\tthis._slider.track()?.onPointerUp(event);\n\t}\n\n\tprotected handleKeydown(event: KeyboardEvent): void {\n\t\tif (this._slider.mutableDisabled()) return;\n\n\t\tconst step = this._slider.step();\n\t\tconst min = this._slider.min();\n\t\tconst max = this._slider.max();\n\t\tconst multiplier = event.shiftKey || PAGE_KEYS.includes(event.key) ? 10 : 1;\n\n\t\t// Determine delta based on slider orientation\n\t\tconst dirLR = this._slider.slidingSource() === 'right' ? -1 : 1;\n\t\tconst dirUD = this._slider.slidingSource() === 'top' ? -1 : 1;\n\n\t\tconst deltas: Partial<Record<string, number>> = {\n\t\t\tArrowLeft: -step * multiplier * dirLR,\n\t\t\tArrowRight: step * multiplier * dirLR,\n\t\t\tArrowUp: step * multiplier * dirUD,\n\t\t\tArrowDown: -step * multiplier * dirUD,\n\t\t\tPageUp: step * multiplier,\n\t\t\tPageDown: -step * multiplier,\n\t\t};\n\n\t\t// Home/End keys\n\t\tif (event.key === 'Home') {\n\t\t\tif (this._slider.isDraggableRangeOnly()) {\n\t\t\t\tconst range = this._slider.normalizedValue();\n\t\t\t\tconst delta = min - range[0];\n\t\t\t\tthis._slider.setAllValuesByDelta(delta);\n\t\t\t} else {\n\t\t\t\tthis._slider.setValue(min, this._index());\n\t\t\t}\n\t\t\tevent.preventDefault();\n\t\t\treturn;\n\t\t}\n\n\t\tif (event.key === 'End') {\n\t\t\tif (this._slider.isDraggableRangeOnly()) {\n\t\t\t\tconst range = this._slider.normalizedValue();\n\t\t\t\tconst delta = max - range[range.length - 1];\n\t\t\t\tthis._slider.setAllValuesByDelta(delta);\n\t\t\t} else {\n\t\t\t\tthis._slider.setValue(max, this._index());\n\t\t\t}\n\t\t\tevent.preventDefault();\n\t\t\treturn;\n\t\t}\n\n\t\tconst delta = deltas[event.key];\n\t\tif (delta === undefined) return;\n\n\t\tif (this._slider.isDraggableRangeOnly()) {\n\t\t\tthis._slider.setAllValuesByDelta(delta);\n\t\t} else {\n\t\t\tconst index = this._index();\n\t\t\tconst value = this._slider.normalizedValue()[index];\n\t\t\tthis._slider.setValue(Math.min(max, Math.max(min, value + delta)), index);\n\t\t}\n\n\t\tevent.preventDefault();\n\t}\n}\n","import {\n\tDestroyRef,\n\tDirective,\n\teffect,\n\ttype EmbeddedViewRef,\n\tinject,\n\tRenderer2,\n\tTemplateRef,\n\tViewContainerRef,\n} from '@angular/core';\nimport { injectBrnSlider } from './brn-slider.token';\n\n@Directive({\n\tselector: '[brnSliderTick]',\n\texportAs: 'brnSliderTick',\n\thost: {\n\t\t'data-slot': 'slider-tick',\n\t},\n})\nexport class BrnSliderTick {\n\tprivate readonly _slider = injectBrnSlider();\n\tprivate readonly _templateRef = inject<TemplateRef<BrnSliderTickContext>>(TemplateRef);\n\tprivate readonly _renderer = inject(Renderer2);\n\tprivate readonly _viewContainer = inject(ViewContainerRef);\n\tprivate readonly _destroyRef = inject(DestroyRef);\n\tprivate _ticks: EmbeddedViewRef<BrnSliderTickContext>[] = [];\n\n\tconstructor() {\n\t\teffect(() => {\n\t\t\tconst ticks = this._slider.ticks();\n\t\t\tconst tickLabelInterval = this._slider.tickLabelInterval();\n\n\t\t\t// Remove any existing ticks\n\t\t\tthis._ticks.forEach((tick) => this._viewContainer.remove(this._viewContainer.indexOf(tick)));\n\n\t\t\t// Create new ticks\n\t\t\tthis._ticks = [];\n\n\t\t\tticks.forEach((tick, index) => {\n\t\t\t\tconst view = this._viewContainer.createEmbeddedView(this._templateRef, {\n\t\t\t\t\t$implicit: tick,\n\t\t\t\t\tindex,\n\t\t\t\t\tformattedTick: this._slider.formatTick()(tick),\n\t\t\t\t});\n\n\t\t\t\tconst tickEl = view.rootNodes[0] as HTMLElement;\n\t\t\t\tif (tickLabelInterval === 0 || index % tickLabelInterval !== 0) {\n\t\t\t\t\tthis._renderer.setAttribute(tickEl, 'data-skip', '');\n\t\t\t\t}\n\n\t\t\t\tthis._ticks.push(view);\n\t\t\t});\n\t\t});\n\n\t\tthis._destroyRef.onDestroy(() => {\n\t\t\tthis._ticks.forEach((tick) => this._viewContainer.remove(this._viewContainer.indexOf(tick)));\n\t\t});\n\t}\n}\n\nexport interface BrnSliderTickContext {\n\t$implicit: number;\n\tindex: number;\n\tformattedTick: string;\n}\n","import { type ExistingProvider, inject, InjectionToken, type Type } from '@angular/core';\nimport type { BrnSliderTrack } from './brn-slider-track';\n\nexport const BrnSliderTrackToken = new InjectionToken<BrnSliderTrack>('BrnSliderTrackToken');\n\nexport function provideBrnSliderTrack(slider: Type<BrnSliderTrack>): ExistingProvider {\n\treturn { provide: BrnSliderTrackToken, useExisting: slider };\n}\n\nexport function injectBrnSliderTrack(): BrnSliderTrack {\n\treturn inject(BrnSliderTrackToken);\n}\n","import { Directive, ElementRef, inject } from '@angular/core';\nimport { provideBrnSliderTrack } from './brn-slider-track.token';\nimport { injectBrnSlider } from './brn-slider.token';\nimport { linearScale } from './utils/linear-scale';\n\n@Directive({\n\tselector: '[brnSliderTrack]',\n\texportAs: 'brnSliderTrack',\n\tproviders: [provideBrnSliderTrack(BrnSliderTrack)],\n\thost: {\n\t\t'[attr.data-disabled]': '_slider.mutableDisabled() ? \"\" : null',\n\t\t'[attr.data-orientation]': '_slider.orientation()',\n\t\t'data-slot': 'slider-track',\n\t\t'(pointerdown)': 'onPointerDown($event)',\n\t\t'(pointermove)': 'onPointerMove($event)',\n\t\t'(pointerup)': 'onPointerUp($event)',\n\t},\n})\nexport class BrnSliderTrack {\n\tprivate readonly _elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\tprotected readonly _slider = injectBrnSlider();\n\n\tprivate _rangeDragStartPointer: number | null = null;\n\tprivate _rangeDragAccumulatedDelta = 0;\n\n\tconstructor() {\n\t\tthis._slider.track.set(this);\n\t}\n\n\tpublic onPointerDown(event: PointerEvent): void {\n\t\tif (this._slider.mutableDisabled()) return;\n\n\t\tconst target = event.target as HTMLElement;\n\t\tconst isTrack = this._isTrack(target);\n\n\t\t// Draggable range only: ignore empty track clicks\n\t\tif (isTrack && this._slider.isDraggableRangeOnly()) return;\n\n\t\ttarget.setPointerCapture(event.pointerId);\n\t\tconst isRange = this._isRange(target);\n\n\t\t// Prevent browser focus behaviour because we instead focus a thumb manually when values change.\n\t\tif (isTrack || isRange) event.preventDefault();\n\n\t\tif ((isRange && this._slider.isDraggableRange()) || this._slider.isDraggableRangeOnly()) {\n\t\t\tthis._rangeDragStartPointer = this._getPointerPosition(event);\n\t\t\treturn;\n\t\t}\n\n\t\tconst pointerPosition = this._getPointerPosition(event);\n\t\tconst value = this._getValueFromPointer(pointerPosition);\n\t\tconst closestIndex = getClosestValueIndex(this._slider.normalizedValue(), value);\n\n\t\tif (isTrack || isRange) {\n\t\t\tthis._slider.setValue(value, closestIndex);\n\t\t} else {\n\t\t\tthis._slider.valueIndexToChange.set(closestIndex);\n\t\t}\n\t}\n\n\tpublic onPointerMove(event: PointerEvent): void {\n\t\tif (this._slider.mutableDisabled()) return;\n\n\t\tconst target = event.target as HTMLElement;\n\t\tif (!target.hasPointerCapture(event.pointerId)) return;\n\n\t\tif (this._rangeDragStartPointer !== null && this._slider.isDraggableRange()) {\n\t\t\tconst currentPointer = this._getPointerPosition(event);\n\t\t\tconst pixelDelta = currentPointer - this._rangeDragStartPointer;\n\t\t\tconst valueDelta = this._pixelDeltaToValueDelta(pixelDelta);\n\n\t\t\t// Accumulate sub-step deltas\n\t\t\tthis._rangeDragAccumulatedDelta += valueDelta;\n\n\t\t\tconst step = this._slider.step();\n\t\t\tconst snappedDelta = Math.trunc(this._rangeDragAccumulatedDelta / step) * step;\n\n\t\t\tif (snappedDelta !== 0) {\n\t\t\t\tthis._slider.setAllValuesByDelta(snappedDelta);\n\n\t\t\t\t// Remove the applied delta, keep remainder\n\t\t\t\tthis._rangeDragAccumulatedDelta -= snappedDelta;\n\t\t\t}\n\n\t\t\t// Reset start pointer so delta stays incremental\n\t\t\tthis._rangeDragStartPointer = currentPointer;\n\t\t\treturn;\n\t\t}\n\n\t\tconst pointerPosition = this._getPointerPosition(event);\n\t\tconst value = this._getValueFromPointer(pointerPosition);\n\t\tthis._slider.setValue(value, this._slider.valueIndexToChange());\n\t}\n\n\tpublic onPointerUp(event: PointerEvent): void {\n\t\tconst target = event.target as HTMLElement;\n\n\t\tif (target.hasPointerCapture(event.pointerId)) {\n\t\t\ttarget.releasePointerCapture(event.pointerId);\n\t\t}\n\n\t\tthis._rangeDragStartPointer = null;\n\t\tthis._rangeDragAccumulatedDelta = 0;\n\t}\n\n\tprivate _getValueFromPointer(pointerPosition: number): number {\n\t\tconst rect = this._elementRef.nativeElement.getBoundingClientRect();\n\t\tconst source = this._slider.slidingSource();\n\n\t\tconst isVertical = source === 'top' || source === 'bottom';\n\t\tconst size = isVertical ? rect.height : rect.width;\n\n\t\tconst input: [number, number] = [0, size];\n\t\tconst output: [number, number] = [this._slider.min(), this._slider.max()];\n\t\tconst value = linearScale(input, output);\n\n\t\tlet relativePosition: number;\n\n\t\tswitch (source) {\n\t\t\tcase 'left':\n\t\t\t\trelativePosition = pointerPosition - rect.left;\n\t\t\t\tbreak;\n\t\t\tcase 'right':\n\t\t\t\trelativePosition = rect.right - pointerPosition;\n\t\t\t\tbreak;\n\t\t\tcase 'top':\n\t\t\t\trelativePosition = pointerPosition - rect.top;\n\t\t\t\tbreak;\n\t\t\tcase 'bottom':\n\t\t\t\trelativePosition = rect.bottom - pointerPosition;\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn value(relativePosition);\n\t}\n\n\tprivate _pixelDeltaToValueDelta(pixelDelta: number): number {\n\t\tconst rect = this._elementRef.nativeElement.getBoundingClientRect();\n\t\tconst size = this._slider.isHorizontal() ? rect.width : rect.height;\n\n\t\tconst scale = linearScale([0, size], [this._slider.min(), this._slider.max()]);\n\n\t\t// Determine direction multiplier based on sliding source\n\t\tlet direction = 1;\n\t\tswitch (this._slider.slidingSource()) {\n\t\t\tcase 'right':\n\t\t\tcase 'bottom':\n\t\t\t\tdirection = -1;\n\t\t\t\tbreak;\n\t\t\tcase 'left':\n\t\t\tcase 'top':\n\t\t\t\tdirection = 1;\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn scale(pixelDelta * direction) - scale(0);\n\t}\n\n\tprivate _isTrack(el: HTMLElement): boolean {\n\t\treturn this._elementRef.nativeElement === el;\n\t}\n\n\tprivate _isRange(el: HTMLElement): boolean {\n\t\treturn this._slider.range()?.elementRef.nativeElement === el;\n\t}\n\n\tprivate _getPointerPosition(event: PointerEvent): number {\n\t\treturn this._slider.orientation() === 'horizontal' ? event.clientX : event.clientY;\n\t}\n}\n\nfunction getClosestValueIndex(values: number[], nextValue: number): number {\n\tif (values.length === 1) return 0;\n\tconst distances = values.map((value) => Math.abs(value - nextValue));\n\tconst closestDistance = Math.min(...distances);\n\treturn distances.indexOf(closestDistance);\n}\n","import { BrnSlider } from './lib/brn-slider';\nimport { BrnSliderRange } from './lib/brn-slider-range';\nimport { BrnSliderThumb } from './lib/brn-slider-thumb';\nimport { BrnSliderTick } from './lib/brn-slider-tick';\nimport { BrnSliderTrack } from './lib/brn-slider-track';\n\nexport * from './lib/brn-slider';\nexport * from './lib/brn-slider-range';\nexport * from './lib/brn-slider-thumb';\nexport * from './lib/brn-slider-tick';\nexport * from './lib/brn-slider-track';\nexport * from './lib/brn-slider-track.token';\nexport * from './lib/brn-slider.token';\n\nexport const BrnSliderImports = [BrnSlider, BrnSliderTrack, BrnSliderThumb, BrnSliderRange, BrnSliderTick] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mapp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A,yBAAyB,EAAE,uBAAuB;AAClD,wBAAA,WAAW,EAAE,cAAc;AAC3B,wBAAA,eAAe,EAAE,uBAAuB;AACxC,wBAAA,eAAe,EAAE,uBAAuB;AACxC,wBAAA,aAAa,EAAE,qBAAqB;AACpC,qBAAA;AACD,iBAAA;;AA0JD,SAAS,oBAAoB,CAAC,MAAgB,EAAE,SAAiB,EAAA;AAChE,IAAA,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;AAAE,QAAA,OAAO,CAAC;IACjC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IACpE,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;AAC9C,IAAA,OAAO,SAAS,CAAC,OAAO,CAAC,eAAe,CAAC;AAC1C;;AClKO,MAAM,gBAAgB,GAAG,CAAC,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa;;ACdzG;;AAEG;;;;"}
|
|
@@ -7,7 +7,7 @@ import clsx from 'clsx';
|
|
|
7
7
|
class BrnSonnerIcon {
|
|
8
8
|
type = input('default', ...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
9
9
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnSonnerIcon, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10
|
-
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: BrnSonnerIcon, isStandalone: true, selector: "brn-sonner-icon", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
10
|
+
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: BrnSonnerIcon, isStandalone: true, selector: "brn-sonner-icon", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["brnSonnerIcon"], ngImport: i0, template: `
|
|
11
11
|
@switch (type()) {
|
|
12
12
|
@case ('success') {
|
|
13
13
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20">
|
|
@@ -53,6 +53,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
53
53
|
type: Component,
|
|
54
54
|
args: [{
|
|
55
55
|
selector: 'brn-sonner-icon',
|
|
56
|
+
exportAs: 'brnSonnerIcon',
|
|
56
57
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
57
58
|
template: `
|
|
58
59
|
@switch (type()) {
|
|
@@ -102,7 +103,7 @@ class BrnSonnerLoader {
|
|
|
102
103
|
isVisible = input.required({ ...(ngDevMode ? { debugName: "isVisible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
103
104
|
_bars = Array(12).fill(0);
|
|
104
105
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnSonnerLoader, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
105
|
-
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: BrnSonnerLoader, isStandalone: true, selector: "brn-sonner-loader", inputs: { isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
106
|
+
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: BrnSonnerLoader, isStandalone: true, selector: "brn-sonner-loader", inputs: { isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: true, transformFunction: null } }, exportAs: ["brnSonnerLoader"], ngImport: i0, template: `
|
|
106
107
|
<div class="sonner-loading-wrapper" [attr.data-visible]="isVisible()">
|
|
107
108
|
<div class="sonner-spinner">
|
|
108
109
|
@for (_ of _bars; track $index) {
|
|
@@ -116,6 +117,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
116
117
|
type: Component,
|
|
117
118
|
args: [{
|
|
118
119
|
selector: 'brn-sonner-loader',
|
|
120
|
+
exportAs: 'brnSonnerLoader',
|
|
119
121
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
120
122
|
template: `
|
|
121
123
|
<div class="sonner-loading-wrapper" [attr.data-visible]="isVisible()">
|
|
@@ -594,7 +596,7 @@ class BrnSonnerToast {
|
|
|
594
596
|
};
|
|
595
597
|
}
|
|
596
598
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnSonnerToast, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
597
|
-
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: BrnSonnerToast, isStandalone: true, selector: "brn-sonner-toast", inputs: { toast: { classPropertyName: "toast", publicName: "toast", isSignal: true, isRequired: true, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: true, transformFunction: null }, invert: { classPropertyName: "invert", publicName: "invert", isSignal: true, isRequired: true, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: true, transformFunction: null }, visibleToasts: { classPropertyName: "visibleToasts", publicName: "visibleToasts", isSignal: true, isRequired: true, transformFunction: null }, expandByDefault: { classPropertyName: "expandByDefault", publicName: "expandByDefault", isSignal: true, isRequired: true, transformFunction: null }, closeButton: { classPropertyName: "closeButton", publicName: "closeButton", isSignal: true, isRequired: true, transformFunction: null }, interacting: { classPropertyName: "interacting", publicName: "interacting", isSignal: true, isRequired: true, transformFunction: null }, cancelButtonStyle: { classPropertyName: "cancelButtonStyle", publicName: "cancelButtonStyle", isSignal: true, isRequired: false, transformFunction: null }, actionButtonStyle: { classPropertyName: "actionButtonStyle", publicName: "actionButtonStyle", isSignal: true, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: true, isRequired: false, transformFunction: null }, descriptionClass: { classPropertyName: "descriptionClass", publicName: "descriptionClass", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, unstyled: { classPropertyName: "unstyled", publicName: "unstyled", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, actionTemplate: { classPropertyName: "actionTemplate", publicName: "actionTemplate", isSignal: true, isRequired: false, transformFunction: null }, cancelActionTemplate: { classPropertyName: "cancelActionTemplate", publicName: "cancelActionTemplate", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_toastRef", first: true, predicate: ["toastRef"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
599
|
+
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: BrnSonnerToast, isStandalone: true, selector: "brn-sonner-toast", inputs: { toast: { classPropertyName: "toast", publicName: "toast", isSignal: true, isRequired: true, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: true, transformFunction: null }, invert: { classPropertyName: "invert", publicName: "invert", isSignal: true, isRequired: true, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: true, transformFunction: null }, visibleToasts: { classPropertyName: "visibleToasts", publicName: "visibleToasts", isSignal: true, isRequired: true, transformFunction: null }, expandByDefault: { classPropertyName: "expandByDefault", publicName: "expandByDefault", isSignal: true, isRequired: true, transformFunction: null }, closeButton: { classPropertyName: "closeButton", publicName: "closeButton", isSignal: true, isRequired: true, transformFunction: null }, interacting: { classPropertyName: "interacting", publicName: "interacting", isSignal: true, isRequired: true, transformFunction: null }, cancelButtonStyle: { classPropertyName: "cancelButtonStyle", publicName: "cancelButtonStyle", isSignal: true, isRequired: false, transformFunction: null }, actionButtonStyle: { classPropertyName: "actionButtonStyle", publicName: "actionButtonStyle", isSignal: true, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: true, isRequired: false, transformFunction: null }, descriptionClass: { classPropertyName: "descriptionClass", publicName: "descriptionClass", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, unstyled: { classPropertyName: "unstyled", publicName: "unstyled", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, actionTemplate: { classPropertyName: "actionTemplate", publicName: "actionTemplate", isSignal: true, isRequired: false, transformFunction: null }, cancelActionTemplate: { classPropertyName: "cancelActionTemplate", publicName: "cancelActionTemplate", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "_toastRef", first: true, predicate: ["toastRef"], descendants: true, isSignal: true }], exportAs: ["brnSonnerToast"], ngImport: i0, template: `
|
|
598
600
|
<li
|
|
599
601
|
#toastRef
|
|
600
602
|
data-sonner-toast
|
|
@@ -741,6 +743,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImpo
|
|
|
741
743
|
type: Component,
|
|
742
744
|
args: [{
|
|
743
745
|
selector: 'brn-sonner-toast',
|
|
746
|
+
exportAs: 'brnSonnerToast',
|
|
744
747
|
imports: [NgComponentOutlet, IsStringPipe, AsComponentPipe, NgTemplateOutlet],
|
|
745
748
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
746
749
|
template: `
|
|
@@ -1073,7 +1076,7 @@ class BrnSonnerToaster {
|
|
|
1073
1076
|
return 'light';
|
|
1074
1077
|
}
|
|
1075
1078
|
/** @nocollapse */ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnSonnerToaster, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1076
|
-
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: BrnSonnerToaster, isStandalone: true, selector: "brn-sonner-toaster", inputs: { invert: { classPropertyName: "invert", publicName: "invert", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, hotKey: { classPropertyName: "hotKey", publicName: "hotKey", isSignal: true, isRequired: false, transformFunction: null }, richColors: { classPropertyName: "richColors", publicName: "richColors", isSignal: true, isRequired: false, transformFunction: null }, expand: { classPropertyName: "expand", publicName: "expand", isSignal: true, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: true, isRequired: false, transformFunction: null }, visibleToasts: { classPropertyName: "visibleToasts", publicName: "visibleToasts", isSignal: true, isRequired: false, transformFunction: null }, closeButton: { classPropertyName: "closeButton", publicName: "closeButton", isSignal: true, isRequired: false, transformFunction: null }, toastOptions: { classPropertyName: "toastOptions", publicName: "toastOptions", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "_loadingIcon", first: true, predicate: ["loadingIcon"], descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "_successIcon", first: true, predicate: ["successIcon"], descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "_errorIcon", first: true, predicate: ["errorIcon"], descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "_warningIcon", first: true, predicate: ["warningIcon"], descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "_infoIcon", first: true, predicate: ["infoIcon"], descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "_action", first: true, predicate: BrnToastAction, descendants: true, isSignal: true }, { propertyName: "_cancelAction", first: true, predicate: BrnToastCancelAction, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "_listRef", first: true, predicate: ["listRef"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1079
|
+
/** @nocollapse */ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.16", type: BrnSonnerToaster, isStandalone: true, selector: "brn-sonner-toaster", inputs: { invert: { classPropertyName: "invert", publicName: "invert", isSignal: true, isRequired: false, transformFunction: null }, theme: { classPropertyName: "theme", publicName: "theme", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, hotKey: { classPropertyName: "hotKey", publicName: "hotKey", isSignal: true, isRequired: false, transformFunction: null }, richColors: { classPropertyName: "richColors", publicName: "richColors", isSignal: true, isRequired: false, transformFunction: null }, expand: { classPropertyName: "expand", publicName: "expand", isSignal: true, isRequired: false, transformFunction: null }, duration: { classPropertyName: "duration", publicName: "duration", isSignal: true, isRequired: false, transformFunction: null }, visibleToasts: { classPropertyName: "visibleToasts", publicName: "visibleToasts", isSignal: true, isRequired: false, transformFunction: null }, closeButton: { classPropertyName: "closeButton", publicName: "closeButton", isSignal: true, isRequired: false, transformFunction: null }, toastOptions: { classPropertyName: "toastOptions", publicName: "toastOptions", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "_loadingIcon", first: true, predicate: ["loadingIcon"], descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "_successIcon", first: true, predicate: ["successIcon"], descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "_errorIcon", first: true, predicate: ["errorIcon"], descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "_warningIcon", first: true, predicate: ["warningIcon"], descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "_infoIcon", first: true, predicate: ["infoIcon"], descendants: true, read: TemplateRef, isSignal: true }, { propertyName: "_action", first: true, predicate: BrnToastAction, descendants: true, isSignal: true }, { propertyName: "_cancelAction", first: true, predicate: BrnToastCancelAction, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "_listRef", first: true, predicate: ["listRef"], descendants: true, isSignal: true }], exportAs: ["brnSonnerToaster"], ngImport: i0, template: `
|
|
1077
1080
|
@if (_toasts().length > 0) {
|
|
1078
1081
|
<section [attr.aria-label]="'Notifications ' + _hotKeyLabel()" [tabIndex]="-1">
|
|
1079
1082
|
@for (pos of _possiblePositions(); track pos) {
|
|
@@ -1152,11 +1155,11 @@ class BrnSonnerToaster {
|
|
|
1152
1155
|
}
|
|
1153
1156
|
</section>
|
|
1154
1157
|
}
|
|
1155
|
-
`, isInline: true, styles: ["html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start: var(--brn-sonner-toast-icon-margin-start, -3px);--toast-icon-margin-end: var(--brn-sonner-toast-icon-margin-end, 4px);--toast-svg-margin-start: var(--brn-sonner-toast-svg-margin-start, -1px);--toast-svg-margin-end: var(--brn-sonner-toast-svg-margin-end, 0px);--toast-button-margin-start: var(--brn-sonner-toast-button-margin-start, auto);--toast-button-margin-end: var(--brn-sonner-toast-button-margin-end, 0);--toast-close-button-start: var(--brn-sonner-toast-close-button-start, 0);--toast-close-button-end: var(--brn-sonner-toast-close-button-end, unset);--toast-close-button-transform: var(--brn-sonner-toast-close-button-transform, translate(-35%, -35%))}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start: var(--brn-sonner-rtl-toast-icon-margin-start, 4px);--toast-icon-margin-end: var(--brn-sonner-rtl-toast-icon-margin-end, -3px);--toast-svg-margin-start: var(--brn-sonner-rtl-toast-svg-margin-start, 0px);--toast-svg-margin-end: var(--brn-sonner-rtl-toast-svg-margin-end, -1px);--toast-button-margin-start: var(--brn-sonner-rtl-toast-button-margin-start, 0);--toast-button-margin-end: var(--brn-sonner-rtl-toast-button-margin-end, auto);--toast-close-button-start: var(--brn-sonner-rtl-toast-close-button-start, unset);--toast-close-button-end: var(--brn-sonner-rtl-toast-close-button-end, 0);--toast-close-button-transform: var(--brn-sonner-rtl-toast-close-button-transform, translate(35%, -35%))}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:var( --brn-sonner-font-family, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji );--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: var(--brn-sonner-border-radius, 8px);box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;flex:1;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast] [data-button]:focus-visible{box-shadow:var(--brn-sonner-toast-focus-box-shadow, 0 0 0 2px rgba(0, 0, 0, .4))}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:#00000014}[data-sonner-toast][data-theme=dark] [data-cancel]{background:#ffffff4d}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--brn-sonner-toast-close-button-background, var(--gray1));color:var(--brn-sonner-toast-close-button-color, var(--gray12));border:var(--brn-sonner-toast-close-button-border, 1px solid var(--gray4));transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--brn-sonner-toast-close-button-hover-background, var(--gray2));color:var(--brn-sonner-toast-close-button-hover-color, var(--gray12));border-color:var(--brn-sonner-toast-close-button-hover-border-color, var(--gray5))}[data-sonner-toast][data-swiping=true]:before{content:\"\";position:absolute;left:0;right:0;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:\"\";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:\"\";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y: translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y: translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media(max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: var(--brn-sonner-toast-normal-background, #fff);--normal-border: var(--brn-sonner-toast-normal-border-color, var(--gray4));--normal-text: var(--brn-sonner-toast-normal-color, var(--gray12));--success-bg: var(--brn-sonner-toast-success-background, hsl(143, 85%, 96%));--success-border: var(--brn-sonner-toast-success-border, hsl(145, 92%, 91%));--success-text: var(--brn-sonner-toast-success-color, hsl(140, 100%, 27%));--info-bg: var(--brn-sonner-toast-info-background, hsl(208, 100%, 97%));--info-border: var(--brn-sonner-toast-info-border, hsl(221, 91%, 91%));--info-text: var(--brn-sonner-toast-info-color, hsl(210, 92%, 45%));--warning-bg: var(--brn-sonner-toast-warning-background, hsl(49, 100%, 97%));--warning-border: var(--brn-sonner-toast-warning-border, hsl(49, 91%, 91%));--warning-text: var(--brn-sonner-toast-warning-color, hsl(31, 92%, 45%));--error-bg: var(--brn-sonner-toast-error-background, hsl(359, 100%, 97%));--error-border: var(--brn-sonner-toast-error-border, hsl(359, 100%, 94%));--error-text: var(--brn-sonner-toast-error-color, hsl(360, 100%, 45%))}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: var(--brn-sonner-toast-inverse-normal-background, #000);--normal-border: var(--brn-sonner-toast-inverse-normal-border-color, hsl(0, 0%, 20%));--normal-text: var(--brn-sonner-toast-inverse-normal-color, var(--gray1))}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: var(--brn-sonner-toast-inverse-dark-normal-background, #fff);--normal-border: var(--brn-sonner-toast-inverse-dark-normal-border-color, var(--gray3));--normal-text: var(--brn-sonner-toast-inverse-dark-normal-color, var(--gray12))}[data-sonner-toaster][data-theme=dark]{--normal-bg: var(--brn-sonner-toast-dark-normal-background, #000);--normal-border: var(--brn-sonner-toast-dark-normal-border-color, hsl(0, 0%, 20%));--normal-text: var(--brn-sonner-toast-dark-normal-color, var(--gray1));--success-bg: var(--brn-sonner-toast-dark-success-background, hsl(150, 100%, 6%));--success-border: var(--brn-sonner-toast-dark-success-border, hsl(147, 100%, 12%));--success-text: var(--brn-sonner-toast-dark-success-color, hsl(150, 86%, 65%));--info-bg: var(--brn-sonner-toast-dark-info-background, hsl(215, 100%, 6%));--info-border: var(--brn-sonner-toast-dark-info-border, hsl(223, 100%, 12%));--info-text: var(--brn-sonner-toast-dark-info-color, hsl(216, 87%, 65%));--warning-bg: var(--brn-sonner-toast-dark-warning-background, hsl(64, 100%, 6%));--warning-border: var(--brn-sonner-toast-dark-warning-border, hsl(60, 100%, 12%));--warning-text: var(--brn-sonner-toast-dark-warning-color, hsl(46, 87%, 65%));--error-bg: var(--brn-sonner-toast-dark-error-background, hsl(358, 76%, 10%));--error-border: var(--brn-sonner-toast-dark-error-border, hsl(357, 89%, 16%));--error-text: var(--brn-sonner-toast-dark-error-color, hsl(358, 100%, 81%))}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media(prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n"], dependencies: [{ kind: "component", type: BrnSonnerToast, selector: "brn-sonner-toast", inputs: ["toast", "index", "expanded", "invert", "position", "visibleToasts", "expandByDefault", "closeButton", "interacting", "cancelButtonStyle", "actionButtonStyle", "duration", "descriptionClass", "classes", "unstyled", "class", "style", "actionTemplate", "cancelActionTemplate"] }, { kind: "component", type: BrnSonnerIcon, selector: "brn-sonner-icon", inputs: ["type"] }, { kind: "component", type: BrnSonnerLoader, selector: "brn-sonner-loader", inputs: ["isVisible"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: ToastFilterPipe, name: "toastFilter" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1158
|
+
`, isInline: true, styles: ["html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start: var(--brn-sonner-toast-icon-margin-start, -3px);--toast-icon-margin-end: var(--brn-sonner-toast-icon-margin-end, 4px);--toast-svg-margin-start: var(--brn-sonner-toast-svg-margin-start, -1px);--toast-svg-margin-end: var(--brn-sonner-toast-svg-margin-end, 0px);--toast-button-margin-start: var(--brn-sonner-toast-button-margin-start, auto);--toast-button-margin-end: var(--brn-sonner-toast-button-margin-end, 0);--toast-close-button-start: var(--brn-sonner-toast-close-button-start, 0);--toast-close-button-end: var(--brn-sonner-toast-close-button-end, unset);--toast-close-button-transform: var(--brn-sonner-toast-close-button-transform, translate(-35%, -35%))}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start: var(--brn-sonner-rtl-toast-icon-margin-start, 4px);--toast-icon-margin-end: var(--brn-sonner-rtl-toast-icon-margin-end, -3px);--toast-svg-margin-start: var(--brn-sonner-rtl-toast-svg-margin-start, 0px);--toast-svg-margin-end: var(--brn-sonner-rtl-toast-svg-margin-end, -1px);--toast-button-margin-start: var(--brn-sonner-rtl-toast-button-margin-start, 0);--toast-button-margin-end: var(--brn-sonner-rtl-toast-button-margin-end, auto);--toast-close-button-start: var(--brn-sonner-rtl-toast-close-button-start, unset);--toast-close-button-end: var(--brn-sonner-rtl-toast-close-button-end, 0);--toast-close-button-transform: var(--brn-sonner-rtl-toast-close-button-transform, translate(35%, -35%))}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:var( --brn-sonner-font-family, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji );--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: var(--brn-sonner-border-radius, 8px);box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;flex:1;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast] [data-button]:focus-visible{box-shadow:var(--brn-sonner-toast-focus-box-shadow, 0 0 0 2px rgba(0, 0, 0, .4))}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:#00000014}[data-sonner-toast][data-theme=dark] [data-cancel]{background:#ffffff4d}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--brn-sonner-toast-close-button-background, var(--gray1));color:var(--brn-sonner-toast-close-button-color, var(--gray12));border:var(--brn-sonner-toast-close-button-border, 1px solid var(--gray4));transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--brn-sonner-toast-close-button-hover-background, var(--gray2));color:var(--brn-sonner-toast-close-button-hover-color, var(--gray12));border-color:var(--brn-sonner-toast-close-button-hover-border-color, var(--gray5))}[data-sonner-toast][data-swiping=true]:before{content:\"\";position:absolute;left:0;right:0;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:\"\";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:\"\";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y: translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y: translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media(max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: var(--brn-sonner-toast-normal-background, #fff);--normal-border: var(--brn-sonner-toast-normal-border-color, var(--gray4));--normal-text: var(--brn-sonner-toast-normal-color, var(--gray12));--success-bg: var(--brn-sonner-toast-success-background, hsl(143, 85%, 96%));--success-border: var(--brn-sonner-toast-success-border, hsl(145, 92%, 91%));--success-text: var(--brn-sonner-toast-success-color, hsl(140, 100%, 27%));--info-bg: var(--brn-sonner-toast-info-background, hsl(208, 100%, 97%));--info-border: var(--brn-sonner-toast-info-border, hsl(221, 91%, 91%));--info-text: var(--brn-sonner-toast-info-color, hsl(210, 92%, 45%));--warning-bg: var(--brn-sonner-toast-warning-background, hsl(49, 100%, 97%));--warning-border: var(--brn-sonner-toast-warning-border, hsl(49, 91%, 91%));--warning-text: var(--brn-sonner-toast-warning-color, hsl(31, 92%, 45%));--error-bg: var(--brn-sonner-toast-error-background, hsl(359, 100%, 97%));--error-border: var(--brn-sonner-toast-error-border, hsl(359, 100%, 94%));--error-text: var(--brn-sonner-toast-error-color, hsl(360, 100%, 45%))}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: var(--brn-sonner-toast-inverse-normal-background, #000);--normal-border: var(--brn-sonner-toast-inverse-normal-border-color, hsl(0, 0%, 20%));--normal-text: var(--brn-sonner-toast-inverse-normal-color, var(--gray1))}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: var(--brn-sonner-toast-inverse-dark-normal-background, #fff);--normal-border: var(--brn-sonner-toast-inverse-dark-normal-border-color, var(--gray3));--normal-text: var(--brn-sonner-toast-inverse-dark-normal-color, var(--gray12))}[data-sonner-toaster][data-theme=dark]{--normal-bg: var(--brn-sonner-toast-dark-normal-background, #000);--normal-border: var(--brn-sonner-toast-dark-normal-border-color, hsl(0, 0%, 20%));--normal-text: var(--brn-sonner-toast-dark-normal-color, var(--gray1));--success-bg: var(--brn-sonner-toast-dark-success-background, hsl(150, 100%, 6%));--success-border: var(--brn-sonner-toast-dark-success-border, hsl(147, 100%, 12%));--success-text: var(--brn-sonner-toast-dark-success-color, hsl(150, 86%, 65%));--info-bg: var(--brn-sonner-toast-dark-info-background, hsl(215, 100%, 6%));--info-border: var(--brn-sonner-toast-dark-info-border, hsl(223, 100%, 12%));--info-text: var(--brn-sonner-toast-dark-info-color, hsl(216, 87%, 65%));--warning-bg: var(--brn-sonner-toast-dark-warning-background, hsl(64, 100%, 6%));--warning-border: var(--brn-sonner-toast-dark-warning-border, hsl(60, 100%, 12%));--warning-text: var(--brn-sonner-toast-dark-warning-color, hsl(46, 87%, 65%));--error-bg: var(--brn-sonner-toast-dark-error-background, hsl(358, 76%, 10%));--error-border: var(--brn-sonner-toast-dark-error-border, hsl(357, 89%, 16%));--error-text: var(--brn-sonner-toast-dark-error-color, hsl(358, 100%, 81%))}[data-rich-colors=true] [data-sonner-toast][data-type=success],[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info],[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning],[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error],[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media(prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n"], dependencies: [{ kind: "component", type: BrnSonnerToast, selector: "brn-sonner-toast", inputs: ["toast", "index", "expanded", "invert", "position", "visibleToasts", "expandByDefault", "closeButton", "interacting", "cancelButtonStyle", "actionButtonStyle", "duration", "descriptionClass", "classes", "unstyled", "class", "style", "actionTemplate", "cancelActionTemplate"], exportAs: ["brnSonnerToast"] }, { kind: "component", type: BrnSonnerIcon, selector: "brn-sonner-icon", inputs: ["type"], exportAs: ["brnSonnerIcon"] }, { kind: "component", type: BrnSonnerLoader, selector: "brn-sonner-loader", inputs: ["isVisible"], exportAs: ["brnSonnerLoader"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: ToastFilterPipe, name: "toastFilter" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1156
1159
|
}
|
|
1157
1160
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.16", ngImport: i0, type: BrnSonnerToaster, decorators: [{
|
|
1158
1161
|
type: Component,
|
|
1159
|
-
args: [{ selector: 'brn-sonner-toaster', imports: [BrnSonnerToast, ToastFilterPipe, BrnSonnerIcon, BrnSonnerLoader, NgTemplateOutlet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1162
|
+
args: [{ selector: 'brn-sonner-toaster', exportAs: 'brnSonnerToaster', imports: [BrnSonnerToast, ToastFilterPipe, BrnSonnerIcon, BrnSonnerLoader, NgTemplateOutlet], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
1160
1163
|
@if (_toasts().length > 0) {
|
|
1161
1164
|
<section [attr.aria-label]="'Notifications ' + _hotKeyLabel()" [tabIndex]="-1">
|
|
1162
1165
|
@for (pos of _possiblePositions(); track pos) {
|